/* ============================================================
   AUDO v4 — Hajster-inspired
   • Putty/beige bg with butter-cream CTA pill
   • Inter — clean modern UI (Google Fonts)
   • Pill UI everywhere
   • Big asymmetric headlines, lots of whitespace
   ============================================================ */

:root,
:root[data-theme="light"] {
  /* Hajster-derived palette (default — light/putty) */
  --putty:      #e2dedb;
  --putty-2:    #d6d2cf;
  --putty-3:    #cbc7c3;
  --ink:        #1c1b1d;
  --ink-soft:   #3e3d3f;
  --ink-mute:   #6b6a6c;
  --line:       rgba(28, 27, 29, 0.10);
  --line-2:     rgba(28, 27, 29, 0.20);
  --butter:     #fffce3;
  --butter-2:   #fff7c2;
  --paper:      #f4f1ec;

  --bg:         var(--putty);
  --surface:    var(--putty-2);
  --surface-2:  var(--putty-3);
  --tile-bg:    #2a2a2c;
  --cta-pill:   var(--butter);
  --cta-pill-hover: var(--butter-2);
  --cta-text:   var(--ink);
  --footer-bg:  var(--putty-2);
  --stats-bg:   var(--ink);
  --stats-text: var(--putty);
  --accent:     #38d059;     /* bright AUDO green — used as emphasis */
  --accent-dim: rgba(56, 208, 89, 0.18);

  --container:  none;                       /* full-width — fluid, capped only by gutter */
  --gutter:     clamp(20px, 3.5vw, 72px);
  --radius:     20px;
  --radius-lg:  32px;

  /* Body font: Inter. Logo (`.logo-mark`) uses Helvetica explicitly. */
  --font-inter:     "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-helvetica: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font: var(--font-inter);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* The AUDO wordmark stays Helvetica */
.logo-mark { font-family: var(--font-helvetica) !important; }

/* Darkish — warm not-too-dark, like gallery concrete */
:root[data-theme="dark"] {
  --putty:      #26241f;
  --putty-2:    #2f2c27;
  --putty-3:    #3a3732;
  --ink:        #f1ede4;
  --ink-soft:   #c9c4ba;
  --ink-mute:   #8a857c;
  --line:       rgba(241, 237, 228, 0.10);
  --line-2:     rgba(241, 237, 228, 0.20);
  --butter:     #38d059;
  --butter-2:   #53e074;

  --bg:         var(--putty);
  --surface:    var(--putty-2);
  --surface-2:  var(--putty-3);
  --tile-bg:    #18160f;
  --cta-pill:   #38d059;
  --cta-pill-hover: #53e074;
  --cta-text:   #0e1c18;
  --footer-bg:  var(--putty-2);
  --stats-bg:   #18160f;
  --stats-text: var(--ink);
  --accent:     #53e074;
  --accent-dim: rgba(83, 224, 116, 0.18);
}

/* Green — bright statement theme with AUDO green everywhere */
:root[data-theme="green"] {
  --putty:      #38d059;    /* bright AUDO green bg */
  --putty-2:    #2dbf4d;
  --putty-3:    #23a840;
  --ink:        #0e1c18;
  --ink-soft:   #183028;
  --ink-mute:   #2f4a3e;
  --line:       rgba(14, 28, 24, 0.14);
  --line-2:     rgba(14, 28, 24, 0.25);
  --butter:     #fffce3;
  --butter-2:   #fff7c2;

  --bg:         var(--putty);
  --surface:    #2dbf4d;
  --surface-2:  #23a840;
  --tile-bg:    #0e1c18;
  --cta-pill:   var(--ink);
  --cta-pill-hover: #000;
  --cta-text:   var(--putty);
  --footer-bg:  var(--ink);
  --stats-bg:   var(--ink);
  --stats-text: var(--putty);
  --accent:     var(--butter);
  --accent-dim: rgba(255, 252, 227, 0.25);
}

*,*::before,*::after { box-sizing: border-box; }
html,body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-optical-sizing: auto;
  transition: background .5s var(--ease), color .5s var(--ease);
}
img,svg,video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--butter); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--container);     /* "none" = no cap; resolves to full-width */
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Typography ---------- */
.h-display {
  font-family: var(--font);
  font-weight: 500;                  /* Hajster uses ~500 */
  font-size: clamp(54px, 8.5vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  font-variation-settings: "opsz" 96;
}
.h-display em {
  font-style: italic;
  font-weight: 500;
}

/* CJK: keep characters together, scale down hero a notch (Chinese glyphs are
   much wider than Latin so the same px size overflows lines) */
[lang="zh"] .h-display {
  word-break: keep-all;
  overflow-wrap: normal;
  font-size: clamp(44px, 7vw, 116px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.h-section {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-label {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: lowercase;
  margin-bottom: 16px;
}

/* ---------- Pills (the core UI primitive) ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.pill--ghost {
  border-color: var(--line-2);
  background: transparent;
}
.pill--ghost:hover { background: var(--ink); color: var(--putty); border-color: var(--ink); }
.pill--outline {
  border-color: var(--ink);
}
.pill--outline:hover { background: var(--ink); color: var(--putty); }
.pill--cream {
  background: var(--cta-pill);
  border-color: var(--cta-pill);
  color: var(--cta-text);
}
.pill--cream:hover { background: var(--cta-pill-hover); border-color: var(--cta-pill-hover); }
.pill--sm { padding: 8px 14px; font-size: 13px; }
.pill--lg { padding: 16px 28px; font-size: 15px; }

/* ---------- Language switcher ---------- */
.lang-switch {
  position: relative;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 160px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18);
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu li { margin: 0; }
.lang-switch__menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.lang-switch__menu button:hover {
  background: var(--bg);
}
.lang-switch__menu button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--putty);
}
[data-theme="dark"] .lang-switch__menu button[aria-pressed="true"] {
  color: var(--bg);
}
[data-theme="green"] .lang-switch__menu {
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-color: rgba(255,255,255,0.15);
}
[data-theme="green"] .lang-switch__menu button:hover {
  background: rgba(255,255,255,0.08);
}
[data-theme="green"] .lang-switch__menu button[aria-pressed="true"] {
  background: var(--accent);
  color: #0e1c18;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: var(--bg);
  padding: 22px 0;
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}

.nav__logo {
  display: inline-flex; align-items: center;
  color: var(--ink);
}
.logo-mark {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
  display: inline-block;
}
.logo-mark strong { font-weight: 700; }

.nav__links {
  display: flex; gap: 32px;
  font-size: 15px;
  color: var(--ink-soft);
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transition: right .35s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { right: 0; }
[data-theme="green"] .nav__links a::after { background: var(--ink); }

.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; }

/* ---------- Theme toggle (3-way segmented pill) ---------- */
.theme-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--surface);
  border-radius: 999px;
  border: 1px solid var(--line);
  gap: 2px;
}
.theme-toggle__btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.theme-toggle__btn:hover { color: var(--ink); }
.theme-toggle__btn[aria-pressed="true"] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.theme-toggle__btn svg { width: 14px; height: 14px; }
.theme-toggle__swatch {
  width: 14px; height: 14px; border-radius: 50%;
  background: #38d059;
  border: 1px solid rgba(0,0,0,0.15);
}

@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .nav__right .pill--outline { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
}

/* ---------- Mobile drawer (≤700px) ----------
   Strategy: re-use the existing .nav__links and .nav__right markup.
   The burger toggles [data-menu-open] on <html>. While open, those
   blocks expand into a vertical drawer below the nav bar. No markup
   duplication = i18n, theme persistence, font persistence, language
   selector etc. all keep working without extra wiring. */
@media (max-width: 700px) {
  .nav__burger {
    display: flex; flex-direction: column; gap: 5px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
    border: 1px solid var(--line-2); border-radius: 50%;
    background: transparent;
    z-index: 90;
    transition: transform .25s var(--ease);
  }
  .nav__burger span {
    width: 18px; height: 1.5px; background: var(--ink);
    transition: transform .25s var(--ease), opacity .25s var(--ease);
  }
  /* Burger → "X" when open */
  :root[data-menu-open] .nav__burger span:nth-child(1) {
    transform: translateY(3.25px) rotate(45deg);
  }
  :root[data-menu-open] .nav__burger span:nth-child(2) {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  /* Drawer container: slide down from under the nav */
  .nav__inner {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav__links,
  .nav__right {
    display: none;
  }
  :root[data-menu-open] .nav__links,
  :root[data-menu-open] .nav__right {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 16px;
    padding: 24px 0 8px;
    border-top: 1px solid var(--line);
    margin-top: 18px;
  }
  /* Stacked nav links — bigger tap targets */
  :root[data-menu-open] .nav__links {
    gap: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
  }
  :root[data-menu-open] .nav__links a {
    padding: 14px 4px;
    font-size: 18px;
    color: var(--ink);
  }
  /* Bring the toggle/start-project pill back into the drawer */
  :root[data-menu-open] .nav__right .pill--ghost,
  :root[data-menu-open] .nav__right .pill--outline {
    display: inline-flex;
    align-self: flex-start;
  }
  /* Counter the 900px-breakpoint `display: none` so the toggles reappear
     inside the drawer on phones. */
  :root[data-menu-open] .nav__right .theme-toggle {
    display: inline-flex;
    align-self: flex-start;
  }
  :root[data-menu-open] .nav__right .lang-switch__menu {
    position: static;
    box-shadow: none;
  }
  :root[data-menu-open] .nav__right .pill--cream {
    align-self: stretch;
    text-align: center;
    justify-content: center;
    padding: 14px 22px;
    font-size: 16px;
    margin-top: 4px;
  }
  /* Lock body scroll while drawer is open */
  :root[data-menu-open] body { overflow: hidden; }

  /* While the drawer is open, slightly darken the page below the nav so
     the user's eye snaps to the menu */
  :root[data-menu-open] .nav {
    box-shadow: 0 8px 32px -12px rgba(0, 0, 0, .25);
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 8vw, 100px) 0 clamp(120px, 18vw, 240px);
  background: var(--bg);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.hero__caption {
  font-size: clamp(17px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--ink);
  max-width: 38ch;
  padding-top: clamp(20px, 2vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero__caption p { margin: 0; }
.hero__caption p:first-child { color: var(--ink); }
.hero__caption strong { font-weight: 500; }
@media (max-width: 800px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__caption { padding-top: 16px; }
}

.scroll-pill {
  position: absolute;
  left: 50%; bottom: 60px;
  transform: translateX(-50%);
  width: 64px; height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--putty);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.scroll-pill:hover { background: #000; transform: translateX(-50%) translateY(2px); }
.scroll-pill svg { animation: bob 2.4s var(--ease) infinite; }
@keyframes bob {
  0%,100% { transform: translateY(-1px); }
  50%     { transform: translateY(2px); }
}

/* ---------- Brand marquee (big scrolling client names) ---------- */
.brands {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 100px);
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.brands__label {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 28px;
  padding: 0 var(--gutter);
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(40px, 6vw, 96px);
  white-space: nowrap;
  animation: marquee 110s linear infinite;
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  width: max-content;
}
.marquee__track span { flex-shrink: 0; }
.marquee__track .dot {
  color: var(--accent);
}
.marquee__track .mute {
  color: var(--ink-mute);
  font-style: italic;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Green emphasis touches ---------- */
.h-display em {
  color: var(--accent);
}
[data-theme="green"] .h-display em { color: #fff; }
.accent-dot {
  display: inline-block;
  width: 0.4em; height: 0.4em;
  border-radius: 50%;
  background: var(--accent);
  margin-left: 0.1em;
  vertical-align: baseline;
  transform: translateY(-0.05em);
}

/* ---------- Statement ---------- */
.statement {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}

/* Manifesto opener — shared between Statement (#studio) and Philosophy (#philosophy) */
.statement__manifesto,
.philosophy__manifesto {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 32px);
  margin-bottom: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--line);
}
.statement__manifesto-headline,
.philosophy__manifesto-headline {
  margin: 0;
  line-height: 0.96;
}
.statement__manifesto-tag,
.philosophy__manifesto-tag {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  margin: 0;
  max-width: 30ch;
}

/* Supporting copy below the manifesto — shared between both sections */
.statement__support,
.philosophy__support {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  max-width: 1080px;
}
.statement__support p,
.philosophy__support p { margin: 0; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; }
.statement__lede,
.philosophy__lede {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px) !important;
  letter-spacing: -0.015em;
  line-height: 1.3 !important;
  color: var(--ink);
  grid-column: 1 / -1;
}
.statement__support .pill,
.philosophy__support .pill {
  margin-top: 8px;
  align-self: start;
  grid-column: 1 / -1;
  width: fit-content;
}

@media (max-width: 800px) {
  .statement__support,
  .philosophy__support { grid-template-columns: 1fr; gap: 20px; }
}

/* Legacy class retained in case other versions reference */
.statement__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
}
.statement__left {
  display: flex; flex-direction: column; gap: 24px;
  max-width: 32ch;
  padding-bottom: clamp(20px, 2vw, 40px);
}
.statement__left p { margin: 0; font-size: 15px; line-height: 1.55; }
.statement__right { line-height: 0.95; }
@media (max-width: 800px) {
  .statement__grid { grid-template-columns: 1fr; }
}

/* ---------- Capabilities (big rounded inset card) ---------- */
.capabilities {
  padding: 0 0 clamp(80px, 10vw, 140px);
  background: var(--bg);
}
.cap-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
}
.cap-card__head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: clamp(20px, 3vw, 36px);
  font-size: 14px;
  color: var(--ink-soft);
}
.cap-card__brand {
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
}
.cap-card__brand-mute {
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}
.cap-card__head--secondary {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .cap-grid { grid-template-columns: 1fr; } }

.cap-tile {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), background .5s var(--ease);
}
.cap-tile:hover { transform: translateY(-4px); }

.cap-tile__media {
  position: relative;
  aspect-ratio: 4/5;
  background: var(--tile-bg);
  color: var(--ink);
  overflow: hidden;
}
.cap-tile__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,255,255,0.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}
.cap-tile__media--silicone   { background: linear-gradient(160deg, #3a3a3c 0%, #1c1b1d 100%); }
.cap-tile__media--injection  { background: linear-gradient(160deg, #2a2a2c 0%, #14131a 100%); }
.cap-tile__media--cnc        { background: linear-gradient(160deg, #44423f 0%, #1a1816 100%); }
.cap-tile__media--assembly   { background: linear-gradient(160deg, #3c3a36 0%, #181715 100%); }

/* ---------- Capability tile image fade-cycler ---------- */
.cap-tile__images {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
}
.cap-tile__images img,
.cap-tile__images video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}
.cap-tile__images img.is-active,
.cap-tile__images video.is-active { opacity: 1; }

/* When real images are present: hide the letter mark and tone the gradient overlay */
.cap-tile__media.has-images .cap-tile__mark { opacity: 0; }
.cap-tile__media.has-images::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.35) 100%);
  z-index: 2;
}
[data-theme="light"] .cap-tile__media.has-images::after {
  background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.20) 100%);
}

/* Managed tiles — lighter, more "muted partner" look */
.cap-tile--managed { background: var(--surface-2); }
.cap-tile--managed .cap-tile__media {
  aspect-ratio: 16/10;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  position: relative;
  color: var(--ink);
}
.cap-tile--managed .cap-tile__media::after {
  background: none;
}
.cap-tile__media--molds       { background: linear-gradient(160deg, #d8d3cc 0%, #c2bcb4 100%) !important; }
.cap-tile__media--stamping    { background: linear-gradient(160deg, #d2cdc6 0%, #b8b2aa 100%) !important; }
.cap-tile__media--electronics { background: linear-gradient(160deg, #cfcac3 0%, #b3ada4 100%) !important; }
.cap-tile__media--finishing   { background: linear-gradient(160deg, #d6d1ca 0%, #beb8b0 100%) !important; }

[data-theme="dark"] .cap-tile__media--molds       { background: linear-gradient(160deg, #3a3732 0%, #2a2724 100%) !important; }
[data-theme="dark"] .cap-tile__media--stamping    { background: linear-gradient(160deg, #36332e 0%, #28251f 100%) !important; }
[data-theme="dark"] .cap-tile__media--electronics { background: linear-gradient(160deg, #3a3633 0%, #2a2624 100%) !important; }
[data-theme="dark"] .cap-tile__media--finishing   { background: linear-gradient(160deg, #38342f 0%, #28241f 100%) !important; }
[data-theme="dark"] .cap-tile--managed .cap-tile__media { color: var(--ink); }

[data-theme="green"] .cap-tile__media--molds       { background: linear-gradient(160deg, #2dbf4d 0%, #23a840 100%) !important; }
[data-theme="green"] .cap-tile__media--stamping    { background: linear-gradient(160deg, #2dbf4d 0%, #23a840 100%) !important; }
[data-theme="green"] .cap-tile__media--electronics { background: linear-gradient(160deg, #2dbf4d 0%, #23a840 100%) !important; }
[data-theme="green"] .cap-tile__media--finishing   { background: linear-gradient(160deg, #2dbf4d 0%, #23a840 100%) !important; }

.cap-tile__mark--alt { color: var(--ink-soft) !important; }

.cap-tile__mark {
  position: absolute; top: 18px; left: 18px;
  font-weight: 500; font-size: 22px;
  color: rgba(255,255,255,0.85);
}

.cap-tile__body {
  padding: 22px 22px 26px;
  display: flex; flex-direction: column; gap: 8px;
}
.cap-tile__cat {
  font-size: 13px;
  color: var(--ink-soft);
}
.cap-tile__body h3 {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1.05;
  margin: 0 0 6px;
}
.cap-tile__body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ---------- Design philosophy ----------
   Shares the manifesto+support layout with .statement; see the grouped
   selectors above (.statement__manifesto, .philosophy__manifesto). */
.philosophy {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}
.philosophy__label {
  display: block;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.philosophy__support strong {
  color: var(--ink);
  font-weight: 500;
}
/* The three keyword-em treatments inside the manifesto tag: italic + AUDO green */
.philosophy__manifesto-tag em,
.statement__manifesto-tag em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
[data-theme="green"] .philosophy__manifesto-tag em,
[data-theme="green"] .statement__manifesto-tag em { color: var(--cta-pill); }

/* ---------- Quote ---------- */
.quote {
  padding: clamp(60px, 8vw, 120px) 0 clamp(120px, 16vw, 220px);
  background: var(--bg);
  text-align: left;
}
.quote__sub {
  margin: 0 0 24px;
  color: var(--ink-soft);
  font-size: 15px;
}
.quote__text {
  line-height: 0.95;
}
.quote__text em {
  font-style: italic;
}

/* ---------- Work ---------- */
.work {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}
.work__head {
  margin-bottom: clamp(48px, 6vw, 80px);
  /* No max-width on the wrapper — the h2's <br/> handles the line break.
     (The previous `max-width: 28ch` measured against the wrapper's 16px
     font, not the h2's 72px font, so it collapsed to ~223px and forced
     every word onto its own line.) */
}
/* ---------- Selected work: 4 tiles in 2×2 grid, each with own carousel ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.work-tile {
  display: flex; flex-direction: column;
  gap: 16px;
  transition: transform .4s var(--ease);
}
.work-tile:hover { transform: translateY(-4px); }

.work-tile__media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  filter: saturate(0.96);
  isolation: isolate;
}
.work-tile__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.20));
  pointer-events: none;
  z-index: 2;
}

/* Pip indicators sit over the image, bottom-center */
.work-tile__pips {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 5px;
  z-index: 3;
  pointer-events: none;
}
.work-tile__pip {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background .35s var(--ease), width .35s var(--ease);
}
.work-tile__pip.is-active {
  background: #fff;
  width: 14px;
  border-radius: 999px;
}

.work-tile__meta {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0 2px;
}
.work-tile__cat {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.work-tile__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
}
.work-tile__desc {
  margin: 0;
  font-size: clamp(14px, 1vw, 15px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 36ch;
}

@media (max-width: 700px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-tile__media { aspect-ratio: 4/3; }
}

/* ---------- Process ---------- */
.process {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
}
.process__head { margin-bottom: clamp(48px, 6vw, 80px); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .25s var(--ease);
}
.step:hover { background: var(--surface-2); }
.step__num {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-soft);
}
.step h3 {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 40px);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 50ch;
  font-size: 15px;
  line-height: 1.5;
}

/* ============================================================
   ROADMAP — IBM-Quantum-style Gantt, AUDO palette
   • One real programme (FLEX), 8 phases, 4 swimlanes + milestones
   • Same .cap-card wrapper as Capabilities for visual rhyme
   • Lane colors map to AUDO tokens: butter / putty / green / ink
   ============================================================ */
.roadmap {
  padding: 0 0 clamp(80px, 10vw, 140px);
  background: var(--bg);
}
.roadmap__card { padding: clamp(28px, 4vw, 56px); }

/* ---- Intro: product photo + headline + legend ---- */
.roadmap__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  margin-bottom: clamp(32px, 4vw, 56px);
  padding-bottom: clamp(28px, 3vw, 44px);
  border-bottom: 1px solid var(--line);
}
/* Section label sits above the intro grid (was inside the copy column,
   which pushed the headline below the image's top edge). Now image-top
   and headline-top sit on the same line. */
.roadmap__section-label {
  display: block;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.roadmap__hero {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/3;
  position: relative;
}
.roadmap__hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.roadmap__hero figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  font-size: 12px;
  color: var(--bg);
  background: rgba(0,0,0,0.55);
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.roadmap__copy { display: flex; flex-direction: column; gap: 18px; }
.roadmap__title {
  font-size: clamp(40px, 5vw, 84px);
  margin: 0;
  line-height: 0.95;
  /* Trim ascender whitespace above caps so the headline's visible top
     sits flush with the image top. */
  text-box: trim-start cap alphabetic;
}
.roadmap__copy p {
  margin: 0;
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Legend (lane swatches + status keys) */
.roadmap__legend {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.roadmap__legend li { display: inline-flex; align-items: center; gap: 8px; }
.roadmap__legend-sep {
  width: 1px; align-self: stretch; background: var(--line-2);
  margin: 0 6px;
}
.lane-swatch {
  width: 14px; height: 14px;
  border-radius: 4px;
  display: inline-block;
}
.lane-swatch--design { background: #fff7c2; border: 1px solid rgba(0,0,0,0.08); }
.lane-swatch--eng    { background: #cbc7c3; }
.lane-swatch--tool   { background: #38d059; }
.lane-swatch--prod   { background: var(--ink); }

/* Status indicator (mirrors IBM's circular completed/on-target dots) */
.status-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.status-dot--done   { background: #38d059; color: #0e1c18; }
.status-dot--target { background: #f4f1ea; color: #1c1b1d; border: 1px solid rgba(0,0,0,0.15); }

/* ============================================================
   The Gantt itself
   • CSS Grid: 1 left label column + 8 phase columns
   • Bars positioned via grid-column using data-start / data-span
   ============================================================ */
.gantt-wrap {
  margin: 0 -8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 8px;
}
.gantt {
  --label-col: 140px;
  --cols: 12;
  --row-h: 44px;
  --gap: 4px;
  min-width: 1100px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Shared row geometry — every row uses the same column template */
.gantt__phase-band,
.gantt__head,
.gantt__lane,
.gantt__milestones {
  display: grid;
  grid-template-columns: var(--label-col) repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}

/* Phase banner band — sits above the month axis, each block spans N months */
.gantt__phase-band {
  padding-bottom: 8px;
}
.gantt__phase-block {
  grid-column: calc(var(--start) + 1) / span var(--span);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  min-height: 36px;
}
.gantt__phase-block > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Month axis row */
.gantt__head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.gantt__row-label {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: lowercase;
  align-self: end;
  padding: 0 0 4px 4px;
}
.gantt__row-label--top {
  align-self: center;
  padding-bottom: 0;
}
.gantt__col {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0 4px 4px;
  min-width: 0;
  text-align: center;
}
/* Month axis cell spans 2 half-month columns; positioned via --start/--span */
.gantt__month-cell {
  grid-column: calc(var(--start) + 1) / span var(--span);
  display: flex; align-items: center; justify-content: center;
  padding: 0 8px 4px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.gantt__month-cell:first-of-type { border-left: 0; }
.gantt__month {
  font-size: 12px;
  color: var(--ink);
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

/* Lane row */
.gantt__lane {
  align-items: center;
  min-height: var(--row-h);
  padding: 6px 0;
  position: relative;
}
.gantt__lane + .gantt__lane { border-top: 1px solid var(--line); }
.gantt__lane-label {
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
  padding-left: 4px;
  align-self: center;
}

/* Per-lane background "track" tint — full row, very subtle */
.gantt__lane::before {
  content: "";
  position: absolute;
  top: 6px; bottom: 6px;
  left: calc(var(--label-col) + var(--gap));
  right: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 0;
}
.gantt__lane--design::before { background: rgba(255, 252, 227, 0.5); }
.gantt__lane--eng::before    { background: rgba(28, 27, 29, 0.04); }
.gantt__lane--tool::before   { background: rgba(56, 208, 89, 0.10); }
.gantt__lane--prod::before   { background: rgba(28, 27, 29, 0.05); }

/* The bars themselves */
.gantt__bar {
  position: relative;
  z-index: 1;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.1;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.gantt__bar:hover { filter: brightness(0.96); transform: translateY(-1px); }
.gantt__bar > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Position bars into the right grid cell — driven by --start / --span inline vars */
.gantt__bar { grid-column: calc(var(--start) + 1) / span var(--span); }

/* Lane → bar colors */
.gantt__lane--design .gantt__bar           { background: #fffce3; color: #4a4434; }
.gantt__lane--design .gantt__bar--strong   { background: #fff0a8; color: #2e2916; }

.gantt__lane--eng .gantt__bar              { background: #d6d2cd; color: #2a2724; }
.gantt__lane--eng .gantt__bar--strong      { background: #b3aea7; color: #1c1b1d; }

.gantt__lane--tool .gantt__bar             { background: rgba(56, 208, 89, 0.40); color: #0e1c18; }
.gantt__lane--tool .gantt__bar--strong     { background: #38d059; color: #0e1c18; }

.gantt__lane--prod .gantt__bar             { background: rgba(28, 27, 29, 0.65); color: var(--bg); }
.gantt__lane--prod .gantt__bar--strong     { background: #1c1b1d; color: var(--butter); }

/* ============================================================
   Milestone strip — dark cards along the bottom (IBM hardware row)
   ============================================================ */
.gantt__milestones {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.gantt__lane-label--inv {
  font-size: 12px;
  color: var(--ink-mute);
  text-transform: lowercase;
  align-self: start;
  padding-top: 12px;
}
.gantt__milestone {
  background: #1c1b1d;
  color: #f4f1ea;
  border-radius: 10px;
  padding: 12px 12px 10px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
  min-height: 86px;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.gantt__milestone:hover { background: #0e1c18; transform: translateY(-2px); }
.gantt__milestone { grid-column: calc(var(--start) + 1) / span var(--span); }
.gantt__milestone--accent {
  background: #0e1c18;
  outline: 1px solid #38d059;
  outline-offset: -1px;
}
.gantt__m-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.gantt__m-meta {
  font-size: 11px;
  color: rgba(244, 241, 234, 0.55);
  line-height: 1.3;
}
.gantt__milestone .status-dot {
  position: absolute;
  top: 10px; right: 10px;
}

/* Footnote under the chart */
.roadmap__footnote {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  font-style: italic;
}

/* ---- Theme adjustments ---- */
[data-theme="dark"] .gantt__lane--design .gantt__bar           { color: #2a2412; }
[data-theme="dark"] .gantt__lane--eng .gantt__bar              { background: #4a4540; color: #f1ede4; }
[data-theme="dark"] .gantt__lane--eng .gantt__bar--strong      { background: #6a635c; }
[data-theme="dark"] .gantt__lane--prod .gantt__bar             { background: rgba(241, 237, 228, 0.20); color: var(--ink); }
[data-theme="dark"] .gantt__lane--prod .gantt__bar--strong     { background: var(--ink); color: var(--bg); }
[data-theme="dark"] .gantt__milestone                          { background: #18160f; }
[data-theme="dark"] .gantt__lane--design::before               { background: rgba(255, 252, 227, 0.10); }
[data-theme="dark"] .gantt__lane--eng::before                  { background: rgba(241, 237, 228, 0.05); }
[data-theme="dark"] .gantt__lane--prod::before                 { background: rgba(241, 237, 228, 0.04); }

[data-theme="green"] .gantt__lane--tool .gantt__bar            { background: rgba(255, 252, 227, 0.65); color: #0e1c18; }
[data-theme="green"] .gantt__lane--tool .gantt__bar--strong    { background: var(--butter); color: #0e1c18; }
[data-theme="green"] .gantt__lane--tool::before                { background: rgba(255, 252, 227, 0.18); }
[data-theme="green"] .gantt__milestone                         { background: #0e1c18; }
[data-theme="green"] .lane-swatch--prod                        { background: #0e1c18; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .roadmap__intro { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .roadmap__hero { aspect-ratio: 16/10; }
}
@media (max-width: 640px) {
  .roadmap { padding-bottom: 60px; }
  .roadmap__card { padding: 20px; }
  .gantt { --label-col: 110px; --row-h: 40px; --gap: 3px; min-width: 980px; }
  .gantt__bar { font-size: 11px; height: 26px; padding: 0 8px; }
  .gantt__phase-block { font-size: 12px; padding: 8px 10px; min-height: 32px; }
  .gantt__milestone { min-height: 76px; padding: 10px; }
  .gantt__m-name { font-size: 12px; }
  .gantt__m-meta { font-size: 10px; }
  .gantt__month { font-size: 10px; }
  .roadmap__title { font-size: clamp(34px, 9vw, 52px); }
}

/* ---------- Stats ---------- */
.stats {
  padding: clamp(80px, 10vw, 120px) 0;
  background: var(--stats-bg);
  color: var(--stats-text);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.stat { display: flex; flex-direction: column; gap: 12px; }
.stat__num {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--stats-text);
}
.stat__num em {
  color: var(--accent);
  font-style: normal;
}
.stat__label {
  font-size: 13px;
  color: var(--stats-text);
  opacity: 0.6;
}
@media (max-width: 800px) { .stats__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* ---------- Awards ---------- */
.awards {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.awards__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.awards__label {
  font-size: 13px;
  color: var(--ink-soft);
  text-transform: lowercase;
  display: block;
  margin-bottom: 16px;
}
.awards__head .h-section { line-height: 0.95; }
.awards__head .h-section em {
  color: var(--accent);
  font-style: italic;
}
@media (max-width: 800px) {
  .awards__head { grid-template-columns: 1fr; gap: 24px; }
}

.awards__grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.award {
  background: var(--bg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  transition: background .25s var(--ease);
}
.award:hover { background: var(--surface); }
.award__year {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.025em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}
[data-theme="green"] .award__year { color: var(--ink); }
.award__name {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.15;
  display: block;
}
.award__cat {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .awards__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .awards__grid { grid-template-columns: 1fr; }
  .award { padding: 24px 4px; }
}

/* ---------- CTA ---------- */
.cta {
  padding: clamp(100px, 14vw, 180px) 0;
  background: var(--bg);
}
.cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: end;
}
.cta__left { display: flex; flex-direction: column; gap: 24px; }
.cta__right { display: flex; flex-direction: column; gap: 22px; padding-bottom: 12px; }
.cta__right p { margin: 0; color: var(--ink-soft); font-size: 16px; max-width: 36ch; line-height: 1.5; }
.cta__email {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.015em;
  color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 6px;
  align-self: flex-start;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cta__email:hover { color: var(--ink); border-color: var(--ink); }
.cta__phones {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 14px;
}
.cta__phones a { display: inline-flex; gap: 8px; color: var(--ink); }
.cta__phones a span { color: var(--ink-mute); }

/* ---------- vCard QR (scan to save AUDO to phone contacts) ---------- */
.vcard-qr {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
  margin-top: 8px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.vcard-qr__media {
  width: 180px;
  height: 180px;
  background: var(--qr-bg, #fff);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.vcard-qr__media svg {
  width: 100%;
  height: 100%;
  display: block;
  shape-rendering: crispEdges;
}
/* Theme-aware QR: dark cells on light card (light) → light cells on dark card (dark/green).
   The rect override needs !important to win against the lib's inline fill="white". */
.vcard-qr__media svg rect { fill: var(--qr-bg, #fff) !important; }
.vcard-qr__media svg path { fill: var(--qr-fg, #0e0e0e); }

/* Default (light mode): dark grey cells on white card */
:root,
:root[data-theme="light"] {
  --qr-bg: #ffffff;
  --qr-fg: #1a1a1a;     /* same dark ink we use across the site */
}

[data-theme="dark"] {
  --qr-bg: #1a1a1a;     /* slightly lifted dark to sit on the surface card */
  --qr-fg: #f4f1ea;     /* matches body --ink */
}

[data-theme="green"] {
  --qr-bg: #0e1c18;     /* deep forest from the brand palette */
  --qr-fg: #ffffff;
}
.vcard-qr__meta { display: flex; flex-direction: column; gap: 2px; }
.vcard-qr__label {
  font-family: var(--font-helvetica);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.vcard-qr__title {
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.2;
}
.vcard-qr__hint {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
  line-height: 1.4;
}
.vcard-qr__download {
  font-family: var(--font-helvetica);
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
  align-self: flex-start;
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.vcard-qr__download:hover { color: var(--ink); border-color: var(--ink); }

@media (max-width: 480px) {
  .vcard-qr { grid-template-columns: 144px 1fr; gap: 14px; padding: 12px; }
  .vcard-qr__media { width: 132px; height: 132px; padding: 8px; }
}

/* Make the small QR feel clickable */
button.vcard-qr__media {
  border: 0; cursor: zoom-in;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
button.vcard-qr__media:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
button.vcard-qr__media:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Enlarged QR modal ---------- */
.vcard-qr-modal {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center; justify-content: center;
  padding: 24px;
  animation: vcardQRFade .25s var(--ease);
}
.vcard-qr-modal[hidden] { display: none; }
@keyframes vcardQRFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.vcard-qr-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0;
  cursor: zoom-out;
  z-index: 1;
}
.vcard-qr-modal__panel {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 56px);
  max-width: min(92vw, 560px);
  width: 100%;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 24px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.5);
}
.vcard-qr-modal__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 24px; line-height: 1;
  color: var(--ink-soft);
  background: transparent;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.vcard-qr-modal__close:hover { background: var(--bg); color: var(--ink); }
.vcard-qr-modal__title {
  font-family: var(--font);
  font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--ink);
  margin: 0;
  text-align: center;
}
.vcard-qr-modal__media {
  width: clamp(280px, 60vw, 420px);
  aspect-ratio: 1;
  background: var(--qr-bg, #fff);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.vcard-qr-modal__media svg {
  width: 100%; height: 100%;
  display: block;
  shape-rendering: crispEdges;
}
.vcard-qr-modal__media svg rect { fill: var(--qr-bg, #fff) !important; }
.vcard-qr-modal__media svg path { fill: var(--qr-fg, #1a1a1a); }
.vcard-qr-modal__hint {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 36ch;
}
@media (max-width: 800px) {
  .cta__grid { grid-template-columns: 1fr; }
}

/* ---------- Map under contact ---------- */
.cta__map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  margin-top: clamp(60px, 8vw, 100px);
}
.cta__map-meta {
  display: flex; flex-direction: column; gap: 18px;
  padding-top: 8px;
}
.cta__map-meta address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.cta__map-meta address strong {
  font-weight: 500;
  display: inline-block;
  margin-bottom: 6px;
}
.cta__map-meta .pill { align-self: flex-start; }
.cta__map {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  border: 1px solid var(--line);
  position: relative;
  isolation: isolate;
}
.cta__map iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  /* Strip OSM's color completely → page-bg overlay supplies the tint */
  filter: grayscale(1) brightness(1.04) contrast(0.92);
}

/* Heavy multiply with the actual page bg = exact tone match. */
.cta__map::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg);
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

[data-theme="dark"] .cta__map iframe {
  filter: grayscale(0.9) invert(0.94) brightness(1.05) contrast(0.92);
}
[data-theme="dark"] .cta__map::after {
  /* Tint slightly with the page bg without crushing the map's mid-tones */
  background: var(--bg);
  mix-blend-mode: multiply;
  opacity: 0.18;
}

[data-theme="green"] .cta__map iframe {
  filter: grayscale(1) brightness(1.08) contrast(0.9);
}
[data-theme="green"] .cta__map::after {
  background: var(--bg);
  mix-blend-mode: multiply;
  opacity: 0.55;
}
@media (max-width: 800px) {
  .cta__map-wrap { grid-template-columns: 1fr; gap: 24px; }
  .cta__map { aspect-ratio: 4/3; }
  /* iOS Safari bug: filter on an iframe + mix-blend-mode overlay paints the
     iframe as a flat block. Show the map untreated on mobile. */
  .cta__map iframe { filter: none; }
  .cta__map::after { display: none; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--footer-bg);
  color: var(--ink);
  padding-top: 80px;
  border-top: 1px solid var(--line);
}
[data-theme="green"] .footer { color: var(--putty); }
[data-theme="green"] .footer__brand p,
[data-theme="green"] .footer__cols a { color: rgba(226,222,219,0.75); }
[data-theme="green"] .footer__cols h4 { color: var(--putty); }
[data-theme="green"] .footer__cols a:hover { color: var(--accent); }
[data-theme="green"] .footer__base { color: rgba(226,222,219,0.6); border-color: rgba(255,255,255,0.08); }
.footer__inner {
  display: grid; grid-template-columns: 1.2fr 2fr;
  gap: 60px; padding-bottom: 60px;
}
.footer__brand .nav__logo { color: var(--ink); margin-bottom: 16px; }
.footer__brand .logo-mark { font-size: 32px; }
.footer__brand p { margin: 0; line-height: 1.7; color: var(--ink-soft); font-size: 14px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer__cols h4 {
  font-family: var(--font);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  margin: 0 0 14px;
}
.footer__cols a {
  display: block; padding: 5px 0;
  color: var(--ink-soft);
  font-size: 14px;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--ink); }

/* ---------- Footer mobile layout ----------
   On phones the desktop two-column layout (brand | 3 cols) crowds out the
   contact info and reads as a duplicate of the hamburger menu. So below
   720px we:
     1. Stack the whole footer vertically (one column)
     2. Reorder the columns: contact FIRST (so it sits right under AUDO),
        then legal, then studio (which is just nav-link duplication —
        users already have it in the hamburger drawer)
     3. Hide the studio column entirely so the redundant menu doesn't
        compete with contact for visual weight
*/
@media (max-width: 720px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }
  .footer__cols {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  /* Hide the redundant nav-menu column (already in hamburger drawer) */
  .footer__cols > div:first-child { display: none; }
  /* Promote contact ahead of legal so it sits right under the AUDO address */
  .footer__cols > div:nth-child(2) { order: 1; }
  .footer__cols > div:nth-child(3) { order: 2; }
}

.footer__base {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--ink-soft);
  font-size: 12px;
}
.footer__base .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.footer__base-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Social icons row ---------- */
.socials {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}
.socials li { margin: 0; }
.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.socials a svg { width: 17px; height: 17px; }
.socials a:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-2px);
}
[data-theme="green"] .socials a { color: var(--ink); border-color: rgba(14,28,24,0.35); }
[data-theme="green"] .socials a:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
@media (max-width: 800px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   Responsive — phones & tablets
   Breakpoints: 1200 / 900 / 640
   ============================================================ */

/* Tablet & small laptop (<1200px) — tighten spacing */
@media (max-width: 1200px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet (<900px) — hero stacks, some nav collapses */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 24px; }
  .statement__grid { grid-template-columns: 1fr; gap: 24px; }
  .cta__grid { grid-template-columns: 1fr; gap: 40px; }
  .work-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .theme-toggle { display: none; }
  .marquee__track { font-size: clamp(32px, 7vw, 56px); }
}

/* Phone (<640px) — single column everywhere, compact */
@media (max-width: 640px) {
  :root {
    --gutter: 20px;
    --radius-lg: 22px;
    --radius: 16px;
  }
  body { font-size: 15px; }

  .h-display { font-size: clamp(40px, 11vw, 60px); line-height: 1; }
  .h-section { font-size: clamp(30px, 8vw, 44px); }

  .nav { padding: 14px 0; }
  .logo-mark { width: 44px; height: 24px; }
  .logo-word { font-size: 15px; }

  .hero { padding: 20px 0 140px; }
  .hero__caption { font-size: 14px; padding-top: 8px; }
  .scroll-pill { bottom: 40px; width: 56px; height: 32px; }

  .statement { padding: 60px 0; }
  .statement__left { padding-bottom: 0; max-width: none; }

  .cap-grid { grid-template-columns: 1fr; gap: 12px; }
  .cap-card { padding: 20px; }
  .cap-card__head { flex-direction: row; padding-bottom: 20px; font-size: 12px; }
  .cap-tile__media { aspect-ratio: 16/10; }
  .cap-tile__body { padding: 18px 18px 22px; }
  .cap-tile__body h3 { font-size: 22px; }

  .quote { padding: 80px 0; }
  .quote__sub { font-size: 13px; }

  .work { padding: 60px 0; }
  .work__head { margin-bottom: 36px; }

  .process { padding: 60px 0; }
  .process__head { margin-bottom: 36px; }
  .step { padding: 24px; }

  .stats { padding: 60px 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat__num { font-size: clamp(48px, 18vw, 72px); }

  .cta { padding: 80px 0; }
  .cta__right { gap: 18px; }
  .cta__email { font-size: 22px; }

  .footer { padding-top: 56px; }
  .footer__inner { gap: 32px; padding-bottom: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__base { padding: 20px 0; }

  .brands { padding: 28px 0 36px; }
  .brands__label { margin-bottom: 18px; font-size: 12px; }
  .marquee__track { font-size: clamp(32px, 10vw, 48px); gap: 32px; }

  /* Collapse hero into a 4-line display that doesn't overflow */
  .hero__grid .h-display br { display: none; }
  .hero__grid .h-display { hyphens: none; }
}

/* Very small phones (<380px) */
@media (max-width: 380px) {
  .h-display { font-size: clamp(34px, 12vw, 48px); }
  .stat__num { font-size: clamp(44px, 16vw, 64px); }
}
