/* ============================================================
   iGears Canada — site.css
   Single stylesheet. Tokens per the 2026 Rebuild Guideline.
   Layers: tokens → base → layout → components → utilities.
   Breakpoints: min-width only — 480 / 768 / 1024 / 1280.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --brand: #ED9027;          /* logo amber */
  --brand-end: #E46935;      /* logo orange-red (gradient end) */
  --brand-dark: #A84A08;     /* orange TEXT on white — 5.76:1 */
  --brand-hover: #E08420;
  --brand-50: #FDF3E6;

  --ink: #14181D;            /* dark sections, primary-button text */
  --ink-2: #1F252D;          /* body text — 15.4:1 on white */
  --ink-3: #5C6673;          /* secondary text — 5.8:1 */
  --ink-4: #8A9099;          /* meta only, never body */

  --line: #E4E1D9;
  --line-2: #CFCBC0;
  --sand: #F4F1EA;
  --ground: #FAF9F6;
  --white: #FFFFFF;

  --success: #1F6F4A;
  --error: #A3231B;

  --content: 1200px;
  --prose: 68ch;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-1: 0 1px 2px rgba(20,24,29,.06);
  --shadow-2: 0 8px 24px rgba(20,24,29,.08);
  --shadow-3: 0 20px 48px rgba(20,24,29,.12);

  --d-instant: 100ms;
  --d-fast: 160ms;
  --d-base: 240ms;
  --d-slow: 320ms;
  --e-out: cubic-bezier(.22,1,.36,1);
  --e-in-out: cubic-bezier(.65,0,.35,1);

  --section: clamp(56px, 9vw, 128px);
  --font-display: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;             /* never below 16px */
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--ground);
}
body.nav-open { overflow: hidden; }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; }
.display { font-size: clamp(2.5rem, 6vw, 4.25rem); line-height: 1.03; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.15; font-weight: 700; }
h3 { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.25; font-weight: 500; }
h4 { font-size: 1.0625rem; line-height: 1.35; margin: 0 0 .4em; color: var(--ink); }
p { margin: 0 0 1em; max-width: var(--prose); }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; text-wrap: pretty; }
.small { font-size: .875rem; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand-dark); text-underline-offset: 2px; }

.eyebrow {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-dark); margin: 0 0 .9rem; font-weight: 400;
}
.on-dark .eyebrow { color: var(--brand); }

:focus-visible { outline: 2px solid var(--brand-dark); outline-offset: 2px; border-radius: 2px; }
.on-dark :focus-visible { outline-color: var(--brand); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus-visible { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: min(var(--content), 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: var(--section); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #C9CDD3; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
/* Link colour must NEVER capture buttons: `.section-dark a` is (0,1,1) and would
   otherwise beat `.btn-primary` (0,1,0), painting orange text on an orange fill
   — an invisible button. Every context link rule excludes .btn for this reason. */
.section-dark a:not(.btn) { color: var(--brand); }
.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 3.5vw, 3rem); }

.grid { display: grid; gap: 1rem; }
.grid > *, .quote-layout > * { min-width: 0; }   /* stop long <option>/word content stretching tracks */
@media (min-width: 768px) { .grid { gap: 1.5rem; } }
@media (min-width: 1280px) { .grid { gap: 2rem; } }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 480px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); }
                             .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); }
                             .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.4rem; border-radius: var(--radius-md);
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--d-fast) var(--e-out), transform var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
.btn.btn-primary { background: var(--brand); color: var(--ink); }        /* ink on orange — 7.3:1. Never white on orange. */
.btn-primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn.btn-secondary { background: var(--ink); color: #fff; }
.btn-secondary:hover { background: #2A313B; transform: translateY(-1px); }
.btn.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: var(--sand); }
.on-dark .btn-ghost:hover { background: rgba(255,255,255,.08); }

.text-link {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  color: var(--brand-dark); font-weight: 600; text-decoration: none;
}
.text-link .arr { transition: transform var(--d-fast) var(--e-out); }
.text-link:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-base) var(--e-out), background var(--d-base) var(--e-out);
}
.site-header.is-condensed { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand img { width: 168px; height: 56px; object-fit: contain; transition: transform var(--d-base) var(--e-out); transform-origin: left center; }
.site-header.is-condensed .brand img { transform: scale(.86); }

.desktop-nav { display: none; }
@media (min-width: 1024px) {
  .desktop-nav { display: flex; align-items: center; gap: .25rem; }
}
.nav-item { position: relative; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: .35rem; min-height: 44px;
  padding: .5rem .85rem; border: 0; background: none; cursor: pointer;
  font: 600 .95rem/1 var(--font-body); color: var(--ink-2); text-decoration: none; border-radius: var(--radius-sm);
}
.nav-link:hover, .nav-trigger:hover, .nav-link[aria-current="page"] { color: var(--brand-dark); }
.nav-caret { transition: transform var(--d-fast) var(--e-out); }
.nav-trigger[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

.subnav {
  position: absolute; top: calc(100% + .4rem); left: 0; min-width: 300px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: .6rem; display: none; z-index: 60;
}
.subnav.is-open { display: block; }
/* Bridge the 6.4px gap between the trigger and the panel. Without this the
   pointer leaves .nav-item on its way down and mouseleave slams the menu
   shut before you can reach a child item. The bridge is a child of .subnav,
   so hovering it counts as still being inside .nav-item. */
.subnav::before {
  content: ""; position: absolute; top: -.6rem; left: 0; right: 0; height: .6rem;
}
.subnav a {
  display: block; padding: .7rem .85rem; border-radius: var(--radius-md);
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .95rem;
}
.subnav a small { display: block; color: var(--ink-3); font-weight: 400; font-size: .82rem; margin-top: .1rem; }
.subnav a:hover { background: var(--brand-50); color: var(--brand-dark); }

.header-cta { display: none; }
@media (min-width: 480px) { .header-cta { display: inline-flex; } }

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid var(--line-2); border-radius: var(--radius-md); cursor: pointer;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--ink); transition: transform var(--d-base) var(--e-out), opacity var(--d-base) var(--e-out); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) { .menu-toggle { display: none; } }

/* Mobile drawer — display:none when closed so it is truly gone */
.drawer { display: none; }
.drawer.is-open {
  display: block; position: fixed; inset: 0; z-index: 90;
}
.drawer-backdrop { position: absolute; inset: 0; background: rgba(20,24,29,.45); border: 0; width: 100%; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: #fff; padding: 1.25rem; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: .25rem;
}
.drawer-panel a:not(.btn) {
  display: block; padding: .85rem .75rem; min-height: 48px; text-decoration: none;
  color: var(--ink); font-weight: 600; border-radius: var(--radius-md);
}
.drawer-panel a:not(.btn):hover { background: var(--sand); }
.drawer-panel .drawer-sub { padding-left: 1rem; font-weight: 400; color: var(--ink-3); }
.drawer-panel .btn { margin-top: auto; }
.drawer-close { align-self: flex-end; width: 44px; height: 44px; border: 1px solid var(--line-2); background: none; border-radius: var(--radius-md); cursor: pointer; font-size: 1.1rem; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #C9CDD3; }
.hero-glow {
  position: absolute; right: -18%; top: -32%; width: 68%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 42% 42%, rgba(237,144,39,.5), rgba(228,105,53,.14) 46%, rgba(228,105,53,0) 72%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; padding-block: clamp(4rem, 9vw, 7.5rem); }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.05fr .95fr; align-items: center; } }
.hero h1 { color: #fff; }
.hero .lead { color: #C9CDD3; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1.25rem; }
.hero-trust { font-size: .875rem; color: var(--ink-4); font-family: var(--font-mono); }
.hero-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-3); }

.hero-inner.hero-inner-page { display: block; padding-block: clamp(3rem, 6vw, 5rem); }
.breadcrumb { font-size: .875rem; margin-bottom: 1rem; color: var(--ink-4); }
.breadcrumb a { color: var(--ink-4); }
.breadcrumb a:hover { color: var(--brand); }
.answer-first { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: #C9CDD3; max-width: 62ch; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-1);
  transition: transform var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
@media (min-width: 1024px) {
  a.card:hover, .card.is-link:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-2); }
}
a.card { display: block; text-decoration: none; color: inherit; }
a.card:active { transform: scale(.985); }
.card h3 a { text-decoration: none; color: inherit; }
.card .icon { width: 44px; height: 44px; color: var(--brand-dark); margin-bottom: .9rem; }
.card p { color: var(--ink-3); font-size: .95rem; margin-bottom: .75rem; }

/* Pillar cards (home) */
.pillar { position: relative; padding: 1.75rem; }
.pillar .num { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-4); }
.pillar ul { list-style: none; padding: 0; margin: .75rem 0 0; }
.pillar li { font-size: .9rem; color: var(--ink-3); padding-left: 1.1rem; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }
.stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -.02em;
}
.section-dark .stat b { color: #fff; }
.stat b em { font-style: normal; white-space: nowrap; color: var(--brand-dark); }
.section-dark .stat b em { color: var(--brand); }
.stat span { display: block; margin-top: .55rem; font-size: .875rem; color: var(--ink-3); }
.section-dark .stat span { color: var(--ink-4); }

/* ---------- Logo marquee / wall ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee-track { display: flex; gap: 3rem; align-items: center; width: max-content; padding-block: .5rem; }
.marquee .logo-tile { flex: none; }
.logo-tile {
  width: 150px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: .6rem .9rem;
}
.logo-tile img { max-height: 42px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .68; transition: filter var(--d-fast), opacity var(--d-fast); }
@media (min-width: 1024px) { .logo-tile:hover img { filter: none; opacity: 1; } }
.logo-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 480px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .logo-wall { grid-template-columns: repeat(6, 1fr); } }
.logo-wall .logo-tile { width: auto; }
.logo-wall .logo-tile img { filter: none; opacity: 1; }
.marquee-controls { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; }
.marquee-pause {
  min-height: 44px; padding: .4rem 1rem; border: 1px solid var(--line-2); background: #fff;
  border-radius: 999px; font: 600 .82rem/1 var(--font-body); color: var(--ink-2); cursor: pointer;
}
.marquee-note { font-size: .82rem; color: var(--ink-4); }

/* ---------- Case / work cards ---------- */
.case-media { aspect-ratio: 16 / 10; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line); margin-bottom: 1rem; background: var(--sand); }
.case-media img { width: 100%; height: 100%; object-fit: cover; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: .6rem 0 0; list-style: none; }
.tags li {
  margin: 0; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3);
  border: 1px solid var(--line); border-radius: 999px; padding: .25rem .6rem; background: #fff;
}

/* ---------- Game teaser ---------- */
.game-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (min-width: 768px) { .game-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(7, 1fr); } }
.game-card {
  aspect-ratio: 3 / 4; border-radius: var(--radius-md); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #1F252D, #14181D);
  border: 1px solid rgba(255,255,255,.09);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  transition: transform var(--d-fast) var(--e-out), border-color var(--d-fast) var(--e-out);
}
@media (min-width: 1024px) { .game-card:hover { transform: translateY(-4px); border-color: rgba(237,144,39,.5); } }
.game-card .q {
  font-family: var(--font-display); font-weight: 700; font-size: 1.9rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-end));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.game-card .code { font-family: var(--font-mono); font-size: .72rem; color: #8A9099; letter-spacing: .1em; }
.game-card .soon {
  position: absolute; top: .6rem; right: .6rem; font-family: var(--font-mono); font-size: .58rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--brand);
  border-radius: 999px; padding: .28rem .55rem; font-weight: 700;
}
.store-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.store-badge {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius-md);
  font: 600 .85rem/1.2 var(--font-body); color: #DDE1E6;
}
.store-badge small { display: block; font-weight: 400; font-size: .68rem; color: var(--ink-4); }

/* ---------- Steps / process ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; margin: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); color: var(--brand-dark); font-size: .8rem; display: block; margin-bottom: .5rem;
}
.steps b { display: block; color: var(--ink); font-family: var(--font-display); margin-bottom: .25rem; }
.steps span { font-size: .875rem; color: var(--ink-3); }
.steps .dur { display: block; margin-top: .5rem; font-family: var(--font-mono); font-size: .72rem; color: var(--ink-4); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 48px; padding: 1rem 0; cursor: pointer; list-style: none;
  font: 600 1.02rem/1.4 var(--font-body); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); color: var(--brand-dark); font-size: 1.3rem; flex: none; transition: transform var(--d-base) var(--e-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--ink-3); }

/* ---------- Quote band ---------- */
.quote-band { text-align: left; }
.quote-band-inner { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 1024px) { .quote-band-inner { grid-template-columns: 1.4fr 1fr; } }
.quote-band .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.quote-band .alt { font-size: .9rem; color: var(--ink-4); margin-top: 1rem; }
.quote-band .alt a { color: #DDE1E6; }

/* ---------- Forms ---------- */
.quote-layout { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .quote-layout { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.form-progress { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.form-progress .dot {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); font: 700 .8rem/1 var(--font-mono); color: var(--ink-3); background: #fff;
}
.form-progress .dot.is-active { background: var(--brand); border-color: var(--brand); color: var(--ink); }
.form-progress .bar { flex: 1; height: 3px; background: var(--line); border-radius: 999px; overflow: hidden; }
.form-progress .bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; transition: transform var(--d-slow) var(--e-out); }

.form-step[hidden] { display: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; }
legend { font-weight: 700; color: var(--ink); padding: 0; margin-bottom: .6rem; font-family: var(--font-display); }
legend .req, .field > span .req { color: var(--brand-dark); font-size: .78rem; font-weight: 600; margin-left: .4rem; }
legend .opt, .field > span .opt { color: var(--ink-4); font-size: .78rem; font-weight: 400; font-style: italic; margin-left: .4rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; cursor: pointer; z-index: 1; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; font-weight: 600;
  color: var(--ink-2); background: #fff; cursor: pointer;
  transition: background var(--d-fast), border-color var(--d-fast), transform var(--d-instant);
}
.chips input:checked + span { background: var(--brand-50); border-color: var(--brand); color: var(--brand-dark); }
.chips input:focus-visible + span { outline: 2px solid var(--brand-dark); outline-offset: 2px; }
.chips input:active + span { transform: scale(.96); }
.chip-group-label { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-4); margin: .9rem 0 .45rem; }
/* Partner chip reads as a different kind of enquiry, not another service */
.chips .chip-partner { flex-basis: 100%; margin-top: .35rem; }
.chips .chip-partner span { width: 100%; border-style: dashed; border-color: var(--brand); color: var(--brand-dark); }
.chips .chip-partner input:checked + span { background: var(--brand-50); border-style: solid; }

.radio-stack { display: grid; gap: .5rem; }
.radio-stack label {
  display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: .6rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; background: #fff;
}
.radio-stack label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.radio-stack input { width: 20px; height: 20px; accent-color: var(--brand-dark); }
.radio-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-row label { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: #fff; }
.radio-row label:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.radio-row input { width: 18px; height: 18px; accent-color: var(--brand-dark); }

.field { display: block; margin-bottom: 1.1rem; }
.field > span { display: block; font-weight: 600; color: var(--ink); margin-bottom: .4rem; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .9rem; font: 400 1rem/1.4 var(--font-body);
  color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-md);
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--brand-dark); outline-offset: 2px;
}
.field .hint { display: block; font-size: .82rem; color: var(--ink-4); margin-top: .35rem; }
.field-error { display: block; font-size: .85rem; color: var(--error); font-weight: 600; margin-top: .35rem; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; margin: 1.1rem 0; }
.consent input { width: 24px; height: 24px; flex: none; margin-top: .1rem; accent-color: var(--brand-dark); }

.form-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; }
.form-status { margin-top: 1rem; }
.success-panel { text-align: center; padding: 2rem 1rem; }
.success-panel .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--success); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 1rem; }

.trust-panel { background: var(--ink); color: #C9CDD3; border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }
.trust-panel h2 { color: #fff; font-size: 1.4rem; }
.trust-panel ul { list-style: none; padding: 0; }
.trust-panel li { padding-left: 1.4rem; position: relative; margin-bottom: .8rem; font-size: .92rem; }
.trust-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.trust-panel li b { color: #fff; display: block; }
.trust-contact { border-top: 1px solid rgba(255,255,255,.15); margin-top: 1.25rem; padding-top: 1.25rem; font-size: .92rem; }
.trust-contact a { display: inline-flex; min-height: 44px; align-items: center; color: #fff; font-weight: 600; margin-right: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #A8AEB6; font-size: .9rem; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.5rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--font-mono); font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; color: #C9CDD3; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; }
.footer-bottom a { min-height: 44px; }
.footer-about img { width: 150px; margin-bottom: 1rem; filter: brightness(1.05); }

/* ---------- Sticky mobile bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: .6rem;
  padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); transform: translateY(110%);
  transition: transform var(--d-slow) var(--e-out);
}
.mobile-bar.is-visible { transform: translateY(0); }
.mobile-bar .btn { flex: 1; min-height: 48px; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
body { padding-bottom: 0; }

/* ---------- Reveal (motion only when allowed; content visible by default) ---------- */
.reveal { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.notice {
  border: 1px solid var(--line-2); border-left: 4px solid var(--brand); background: var(--brand-50);
  border-radius: var(--radius-md); padding: 1rem 1.25rem; max-width: 760px;
}
.notice.on-dark-notice { background: rgba(237,144,39,.08); border-color: rgba(237,144,39,.4); color: #C9CDD3; }
.check-list { list-style: none; padding: 0; columns: 1; }
@media (min-width: 768px) { .check-list.two-col { columns: 2; column-gap: 2.5rem; } }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: .55rem; break-inside: avoid; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.kv-row { display: flex; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.kv-row b { flex: none; width: 40%; max-width: 220px; color: var(--ink); }
.mock-note {
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; color: var(--ink-4);
  text-transform: uppercase; margin-top: .5rem;
}

/* ---------- Motion (added only when the user allows it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Hidden state ONLY when JS is confirmed running (html.js set inline in <head>).
     No JS → content simply visible. This is deliberate; do not "simplify". */
  html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 520ms var(--e-out), transform 520ms var(--e-out); }
  html.js .reveal.in { opacity: 1; transform: none; }
  .reveal-2 { transition-delay: 60ms; } .reveal-3 { transition-delay: 120ms; }
  .reveal-4 { transition-delay: 180ms; } .reveal-5 { transition-delay: 240ms; } .reveal-6 { transition-delay: 300ms; }

  .marquee-track { animation: marquee 55s linear infinite; }
  .marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
  @keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

  .hero-glow { animation: drift 22s var(--e-in-out) infinite alternate; }
  @keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(-4%, 5%) scale(1.07); } }
  .is-paused .hero-glow { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { flex-wrap: wrap; width: auto; }        /* static grid instead of motion */
  .marquee-pause { display: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .mobile-bar, .drawer, .quote-band, .marquee-controls { display: none; }
  body { background: #fff; }
}

/* ---------- Client name wall (real names; the archive holds project
     screenshots, not logo files, so names are set in type) ---------- */
.client-name {
  flex: none; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--ink-3); white-space: nowrap;
  padding-right: 2.5rem; position: relative;
}
.client-name::after {
  content: ""; position: absolute; right: 1.1rem; top: 50%;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .55;
}
.marquee-track { align-items: center; }

.name-wall { display: grid; gap: 1.5rem; }
@media (min-width: 768px)  { .name-wall { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .name-wall { grid-template-columns: repeat(3, 1fr); } }
.name-group { break-inside: avoid; }
.name-group h3 {
  font-size: .8rem; font-family: var(--font-mono); font-weight: 400; text-transform: uppercase;
  letter-spacing: .1em; color: var(--brand-dark); padding-bottom: .5rem;
  border-bottom: 1px solid var(--line-2); margin-bottom: .75rem;
  display: flex; justify-content: space-between; gap: .5rem;
}
.name-group h3 span { color: var(--ink-4); }
.name-group ul { list-style: none; padding: 0; margin: 0; }
.name-group li { font-size: .95rem; color: var(--ink-2); padding: .3rem 0; }

/* work card: screenshot fills the frame, title stays compact */
.work-card h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: .25rem; }
.work-card p { font-size: .9rem; margin-bottom: .5rem; }
.work-card .case-media { background: var(--sand); }

/* mailto fallback inside the "email ready" panel */
.mailto-fallback { margin-top: 1.5rem; text-align: left; }
.mailto-fallback summary {
  cursor: pointer; min-height: 44px; display: flex; align-items: center;
  font-weight: 600; color: var(--brand-dark); font-size: .95rem;
}
.mailto-fallback textarea { font-family: var(--font-mono); font-size: .8rem; }
.copy-done { margin-left: .75rem; color: var(--success); font-weight: 600; font-size: .9rem; }

/* soften marquee edges so names never look chopped mid-word */
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
           mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

/* "All services" sits above the four pillars, separated */
.subnav .subnav-all { border-bottom: 1px solid var(--line); border-radius: var(--radius-md) var(--radius-md) 0 0; margin-bottom: .3rem; }
