/* ==========================================================================
   1MillionWebs v4 — "Live wall"
   Ink #0F1115, paper #FFFFFF, mist #F1F2F4, signal red #E3122B (logo).
   Display: Bricolage Grotesque (opsz/wdth/wght). Body: Instrument Sans.
   Screenshots and cards are square-cornered by design.
   ========================================================================== */
:root {
  --ink: #0F1115; --ink-2: #181B22; --ink-3: #232733;
  --paper: #FFFFFF; --mist: #F1F2F4; --mist-2: #E6E8EC;
  --red: #E3122B; --red-2: #FF3348; --red-ink: #B80D22;
  --muted: #555B67; --muted-d: #A7ACB7;
  --line-l: rgba(15,17,21,.12); --line-d: rgba(255,255,255,.14);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --fs-hero: clamp(2.8rem, 6.4vw, 7.4rem);
  --fs-1: clamp(2.4rem, 5.6vw, 5.8rem);
  --fs-2: clamp(1.8rem, 3.2vw, 3rem);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --max: 1480px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --header-h: 74px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; color: var(--paper); background: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 999; background: var(--red); color: #fff; padding: .6rem 1rem; }
.skip:focus { top: 1rem; }
.red { color: var(--red); }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type ------------------------------------------------------------------- */
.display, .h-display { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: .95; font-variation-settings: "opsz" 96, "wdth" 90; text-wrap: balance; }
.h-display { font-size: var(--fs-1); }
.h-md { font-size: clamp(2.1rem, 4.4vw, 4.2rem); }
.h-sm { font-size: var(--fs-2); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.w > span { display: inline-block; will-change: transform; }
.lede { font-size: clamp(1.08rem, 1.4vw, 1.25rem); line-height: 1.6; max-width: 40rem; }
[data-theme="dark"] .lede { color: var(--muted-d); }
[data-theme="light"] .lede { color: var(--muted); }
.label { font-size: .95rem; font-weight: 600; color: var(--red); }
[data-theme="dark"] .label { color: var(--red-2); }

/* Buttons ---------------------------------------------------------------- */
.btn { --bg: transparent; --fg: currentColor; --bd: currentColor; --fill: var(--paper); --fill-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 54px; padding: 0 1.6rem;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); font-weight: 600; font-size: 1rem; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: color .45s var(--ease), border-color .45s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--fill); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--fill-fg); border-color: var(--fill); }
.btn span { position: relative; }
.btn-sm { min-height: 42px; padding: 0 1.1rem; font-size: .92rem; }
.btn-red { --bg: var(--red); --fg: #fff; --bd: var(--red); }
.btn-line { --fg: var(--paper); --bd: rgba(255,255,255,.45); }
.btn-ink { --bg: var(--ink); --fg: #fff; --bd: var(--ink); --fill: var(--red); --fill-fg: #fff; }
.btn-ghost { --fg: var(--ink); --bd: var(--line-l); --fill: var(--ink); --fill-fg: #fff; }
.btn:disabled { opacity: .4; pointer-events: none; }
.arrow-link { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; border-bottom: 1.5px solid currentColor; padding-bottom: .2rem; }
.arrow-link::after { content: "→"; transition: transform .4s var(--ease); }
.arrow-link:hover::after { transform: translateX(5px); }

/* Loader ----------------------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; pointer-events: none; }
.js .loader { pointer-events: auto; }
.no-js .loader, .loader.is-done { display: none; }
.loader-panels { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.loader-panels i { background: var(--ink); border-right: 1px solid rgba(255,255,255,.04); }
.loader-word { position: relative; font-family: var(--display); font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.04em; display: flex; overflow: hidden; color: #fff; }
.loader-word span { display: inline-block; transform: translateY(110%); }
.loader-count { position: absolute; right: var(--pad); bottom: var(--pad); font-family: var(--display); font-size: clamp(4rem, 14vw, 12rem); font-weight: 800; line-height: .8; color: #fff; font-variant-numeric: tabular-nums; }

/* Cursor + progress ------------------------------------------------------ */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--red); pointer-events: none; opacity: 0; display: grid; place-items: center; mix-blend-mode: normal;
  transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), opacity .3s; }
.has-cursor .cursor { opacity: 1; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(227,18,43,.22); }
.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--red); }
.cursor-label { font-size: .82rem; font-weight: 700; color: #fff; opacity: 0; transition: opacity .2s; }
.cursor.is-label .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* Header ----------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: calc(var(--header-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--pad) 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; color: var(--paper); transition: transform .6s var(--ease), color .35s; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.is-scrolled .site-header::before { background: rgba(15,17,21,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-d); }
body[data-header="light"] .site-header { color: var(--ink); }
body[data-header="light"].is-scrolled .site-header::before { background: rgba(255,255,255,.9); border-bottom-color: var(--line-l); }
.is-hidden .site-header { transform: translateY(-110%); }
.menu-open .site-header { color: #fff !important; transform: none; }
.menu-open .site-header::before { background: transparent !important; border-color: transparent !important; }
.logo { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -.045em; line-height: 1; display: inline-flex; }
.logo-lg { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.nav { display: flex; gap: .2rem; }
.nav a { position: relative; padding: .5rem .8rem; font-size: .96rem; font-weight: 500; }
.nav .roll { display: inline-block; overflow: hidden; height: 1.35em; line-height: 1.35; vertical-align: top; }
.nav .roll > span { display: inline-block; position: relative; transition: transform .5s var(--ease); }
.nav .roll > span::after { content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--red); }
.nav a:hover .roll > span { transform: translateY(-100%); }
.nav a.is-active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--red); }
.header-actions { display: flex; align-items: center; gap: .7rem; }
.menu-btn { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 46px 0 1rem; border: 1.5px solid currentColor; font-weight: 600; font-size: .92rem; }
.menu-btn i { position: absolute; right: 14px; width: 18px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn i:first-of-type { transform: translateY(-3.5px); }
.menu-btn i:last-of-type { transform: translateY(3.5px); }
.menu-open .menu-btn i:first-of-type { transform: rotate(45deg); }
.menu-open .menu-btn i:last-of-type { transform: rotate(-45deg); }
@media (max-width: 1100px) { .nav { display: none; } }
@media (max-width: 560px) { .header-actions .btn { display: none; } :root { --header-h: 64px; } .logo { font-size: 1.25rem; } }

/* Menu ------------------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; color: #fff; }
.menu-bg { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.menu-bg i { background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-io); }
.menu-bg i:nth-child(2) { transition-delay: .05s; } .menu-bg i:nth-child(3) { transition-delay: .1s; } .menu-bg i:nth-child(4) { transition-delay: .15s; }
.menu-open .menu { visibility: visible; pointer-events: auto; }
.menu-open .menu-bg i { transform: scaleY(1); }
.menu-inner { position: relative; height: 100%; overflow-y: auto; padding: calc(var(--header-h) + 4vh) var(--pad) 2rem; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.menu-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 3rem; }
.menu-group { color: var(--muted-d); font-size: .9rem; margin-bottom: 1rem; }
.menu-link { display: block; overflow: hidden; font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; transition: color .3s; }
.menu-link span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu-open .menu-link span { transform: none; }
.menu-link:hover, .menu-link.is-active { color: var(--red); }
.menu-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; border-top: 1px solid var(--line-d); padding-top: 1.5rem; opacity: 0; transition: opacity .5s .4s; }
.menu-open .menu-foot { opacity: 1; }
.menu-open { overflow: hidden; }
@media (max-width: 760px) { .menu-cols { grid-template-columns: 1fr 1fr; } .menu-col:first-child { grid-column: 1 / -1; } }

/* Sections --------------------------------------------------------------- */
[data-theme="light"] { background: var(--paper); color: var(--ink); }
[data-theme="mist"] { background: var(--mist); color: var(--ink); }
[data-theme="dark"] { background: var(--ink); color: var(--paper); }
.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-top p { max-width: 34rem; font-size: 1.1rem; }
[data-theme="light"] .section-top p, [data-theme="mist"] .section-top p { color: var(--muted); }
[data-theme="dark"] .section-top p { color: var(--muted-d); }
@media (max-width: 860px) { .section-top { grid-template-columns: 1fr; } }
.center-row { display: flex; justify-content: center; margin-top: 3.5rem; }

/* Hero: live wall of client sites ---------------------------------------- */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 2rem; padding: calc(var(--header-h) + 3rem) 0 4rem var(--pad); }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: .7rem; font-size: .98rem; color: var(--muted-d); margin-bottom: 1.6rem; }
.hero-kicker::before { content: ""; width: 9px; height: 9px; background: var(--red); animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero-title { font-family: var(--display); font-size: var(--fs-hero); font-weight: 800; line-height: .92; letter-spacing: -.04em; font-variation-settings: "opsz" 96, "wdth" 92; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.rotator { position: relative; display: inline-grid; height: 1em; overflow: hidden; vertical-align: bottom; color: var(--red); }
.rotator > span { grid-area: 1 / 1; transform: translateY(105%); transition: transform .9s var(--ease); }
.rotator > span.is-on { transform: none; }
.rotator > span.is-out { transform: translateY(-105%); }
.no-js .rotator > span:first-child { transform: none; }
.hero-sub { margin: 1.8rem 0 2.2rem; max-width: 36rem; font-size: 1.15rem; color: var(--muted-d); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 2.4rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line-d); }
.hero-proof div { display: grid; }
.hero-proof b { font-family: var(--display); font-size: 2.4rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.hero-proof span { font-size: .9rem; color: var(--muted-d); }
.wall { position: relative; height: 100svh; margin-top: calc(-1 * (var(--header-h) + 3rem)); margin-bottom: -4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%); }
.wall-col { display: flex; flex-direction: column; gap: 14px; animation: wall-up 60s linear infinite; will-change: transform; }
.wall-col:nth-child(2) { animation-name: wall-down; animation-duration: 70s; }
.wall-col:nth-child(3) { animation-duration: 54s; }
.wall:hover .wall-col { animation-play-state: paused; }
@keyframes wall-up { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes wall-down { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.wall a { display: block; position: relative; background: var(--ink-2); border: 1px solid var(--line-d); }
.wall img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; filter: saturate(.9); transition: filter .4s, transform .8s var(--ease); }
.wall a:hover img { filter: none; transform: scale(1.04); }
.wall a span { position: absolute; left: 0; bottom: 0; padding: .35rem .6rem; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600; transform: translateY(100%); transition: transform .4s var(--ease); }
.wall a:hover span { transform: none; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-right: var(--pad); }
  .wall { position: absolute; inset: 0; margin: 0; height: 100%; opacity: .22; grid-template-columns: repeat(2, 1fr); pointer-events: none; }
  .wall-col:nth-child(3) { display: none; }
}

/* Marquee ---------------------------------------------------------------- */
.marquee { overflow: hidden; padding: 1.1rem 0; background: var(--red); color: #fff; position: relative; z-index: 3; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.marquee-item { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.7rem); font-weight: 700; letter-spacing: -.02em; white-space: nowrap; padding: 0 1.4rem; }
.marquee-dot { opacity: .6; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Statement -------------------------------------------------------------- */
.statement { padding: clamp(6rem, 12vw, 11rem) 0; }
.statement-text { font-family: var(--display); font-size: clamp(1.9rem, 4.2vw, 4rem); font-weight: 600; line-height: 1.12; letter-spacing: -.03em; max-width: 22ch; }
.statement-text .sw { display: inline; opacity: .15; transition: opacity .2s; }
.no-js .statement-text .sw, .reduced .statement-text .sw { opacity: 1; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line-l); }
.stats div { padding: 1.6rem 1.2rem 0 0; }
.stats b { display: block; font-family: var(--display); font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stats span { color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 1.5rem; } }

/* Work tiles ------------------------------------------------------------- */
.work-link { display: block; }
.work-frame { position: relative; background: var(--ink-2); border: 1px solid var(--line-d); overflow: hidden; }
[data-theme="light"] .work-frame, [data-theme="mist"] .work-frame { border-color: var(--line-l); background: #fff; }
.work-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--ink); border-bottom: 1px solid var(--line-d); }
.work-bar i { width: 8px; height: 8px; background: rgba(255,255,255,.28); }
.work-bar i:first-child { background: var(--red); }
.work-bar span { margin-left: 8px; font-size: .76rem; color: var(--muted-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work-link:hover .work-shot img { transform: scale(1.05); }
.work-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; padding: 2rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue) 45% 22%), hsl(calc(var(--hue) + 40) 55% 10%)); }
.work-cover span { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: .95; }
.work-cover small { font-size: .85rem; border: 1px solid rgba(255,255,255,.35); padding: .25rem .8rem; }
.work-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-top: 1rem; }
.work-meta h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.work-meta p { font-size: .95rem; color: var(--muted-d); margin-top: .2rem; }
[data-theme="light"] .work-meta p, [data-theme="mist"] .work-meta p { color: var(--muted); }
.work-tag { flex: none; font-size: .82rem; font-weight: 600; padding: .3rem .7rem; border: 1px solid var(--line-d); white-space: nowrap; }
[data-theme="light"] .work-tag, [data-theme="mist"] .work-tag { border-color: var(--line-l); }
.work[hidden] { display: none; }
.js [data-reveal-img] { clip-path: inset(100% 0 0 0); }
.js [data-reveal-img].is-in, .reduced [data-reveal-img] { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease); }
.grid-work { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.2rem, 4vw, 3.4rem) clamp(1.2rem, 2.4vw, 2rem); }
@media (max-width: 1000px) { .grid-work { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-work { grid-template-columns: 1fr; } }

/* Chapters: work by market (pinned horizontal) --------------------------- */
.chapters { position: relative; overflow: hidden; padding-top: clamp(5rem, 9vw, 8rem); }
.chapters-head { margin-bottom: 3rem; }
.hrail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.hrail::-webkit-scrollbar { display: none; }
.hrail-track { display: flex; gap: clamp(1.25rem, 2.2vw, 2.4rem); width: max-content; padding: 0 var(--pad) clamp(4rem, 7vw, 6rem); align-items: stretch; }
.hrail-track > * { scroll-snap-align: start; flex: none; }
.is-pinned .hrail { overflow: visible; }
.work-xl { width: clamp(300px, 40vw, 660px); }
.chapter-card { width: clamp(260px, 24vw, 380px); display: flex; flex-direction: column; justify-content: space-between; padding: 1.8rem; background: var(--red); color: #fff; min-height: 340px; }
.chapter-card .flag { font-size: 2.4rem; line-height: 1; }
.chapter-card h3 { font-family: var(--display); font-size: clamp(2.6rem, 4.4vw, 4.4rem); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.chapter-card p { opacity: .9; margin-top: .8rem; }
.chapter-card a { margin-top: 1.4rem; align-self: flex-start; }
.chapter-card:nth-of-type(even) { background: var(--paper); color: var(--ink); }
.chapter-card:nth-of-type(even) a { color: var(--red); }
.hrail-progress { position: absolute; left: var(--pad); right: var(--pad); bottom: 2rem; height: 2px; background: var(--line-d); display: none; }
.hrail-progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }
.is-pinned .hrail-progress { display: block; }
@media (max-width: 760px) { .work-xl { width: 84vw; } .chapter-card { width: 72vw; } }

/* Services list ---------------------------------------------------------- */
.svc-list { border-top: 1px solid var(--line-l); }
.svc { border-bottom: 1px solid var(--line-l); }
.svc a { display: grid; grid-template-columns: 4rem minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; padding: clamp(1.3rem, 2.4vw, 2.1rem) 0; transition: padding .5s var(--ease), color .3s; }
.svc-n { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-title { font-family: var(--display); font-size: var(--fs-2); font-weight: 700; letter-spacing: -.04em; line-height: 1; transition: color .3s; }
.svc-desc { color: var(--muted); }
.svc-arrow { width: 54px; height: 54px; border: 1.5px solid var(--line-l); display: grid; place-items: center; font-size: 1.3rem; transition: background .3s, color .3s, border-color .3s, transform .5s var(--ease); }
.svc a:hover { padding-left: 1rem; }
.svc a:hover .svc-title { color: var(--red); }
.svc a:hover .svc-arrow { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
.preview-float { position: fixed; left: 0; top: 0; z-index: 60; width: 360px; aspect-ratio: 16 / 10; overflow: hidden; pointer-events: none; opacity: 0; transition: opacity .3s; box-shadow: 0 40px 80px -30px rgba(15,17,21,.5); }
.preview-float.is-on { opacity: 1; }
.preview-float img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (max-width: 760px) { .svc a { grid-template-columns: 1fr auto; } .svc-n, .svc-desc { display: none; } .svc-arrow { width: 44px; height: 44px; } }
@media (hover: none) { .preview-float { display: none; } }

/* Apps ------------------------------------------------------------------- */
.apps-band { overflow: hidden; }
.apps-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem 5rem; align-items: center; }
.apps-list { border-top: 1px solid var(--line-d); margin: 2rem 0; }
.apps-list a { display: flex; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-d); font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; transition: color .3s; }
.apps-list a span { font-family: var(--body); font-weight: 400; font-size: .92rem; color: var(--muted-d); }
.apps-list a:hover { color: var(--red-2); }
.phones { display: flex; justify-content: center; align-items: center; gap: 1.2rem; perspective: 1400px; min-height: 560px; }
.dphone { width: 230px; aspect-ratio: 9 / 18.6; padding: 8px; background: #1b1e26; border-radius: 34px; box-shadow: 0 40px 70px -30px rgba(0,0,0,.7), inset 0 0 0 1.5px #3a3f4d; flex: none; }
.dphone-screen { width: 100%; height: 100%; overflow: hidden; border-radius: 27px; background: #fff; }
.dphone-screen img { width: 100%; height: auto; }
.phones .dphone:nth-child(1) { transform: rotateY(18deg) translateY(30px) scale(.9); }
.phones .dphone:nth-child(2) { z-index: 2; width: 260px; }
.phones .dphone:nth-child(3) { transform: rotateY(-18deg) translateY(30px) scale(.9); }
@media (max-width: 900px) { .apps-grid { grid-template-columns: 1fr; } .phones { min-height: 0; } .dphone { width: 140px; border-radius: 24px; } .dphone-screen { border-radius: 18px; } .phones .dphone:nth-child(2) { width: 160px; } }

/* Apps page ------------------------------------------------------------- */
.app-case { padding: clamp(4.5rem, 9vw, 7.5rem) 0; overflow: hidden; }
.app-case-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: 3rem; }
.app-case-id { display: flex; gap: 1.2rem; align-items: center; }
.app-case-icon { flex: none; width: 72px; height: 72px; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 2rem; color: #fff; background: hsl(var(--ah, 215) 65% 38%); }
.app-case-kind { color: var(--red); font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
[data-theme="dark"] .app-case-kind { color: var(--red-2); }
.app-case h2 small { font-size: .38em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.app-case-client { color: var(--muted); margin-top: .5rem; }
[data-theme="dark"] .app-case-client, [data-theme="dark"] .app-case h2 small { color: var(--muted-d); }
.app-case-sum { font-size: 1.1rem; color: var(--muted); max-width: 38rem; }
[data-theme="dark"] .app-case-sum { color: var(--muted-d); }
.phone-rail { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.phone-rail::-webkit-scrollbar { display: none; }
.phone-rail-track { display: flex; gap: clamp(1.25rem, 2.5vw, 2.5rem); padding: 1rem var(--pad) 2rem; width: max-content; margin: 0 auto; }
.phone-fig { display: grid; justify-items: center; gap: .9rem; scroll-snap-align: center; }
.phone-fig .dphone { width: clamp(190px, 15vw, 236px); }
.phone-fig:nth-child(even) { margin-top: 2.4rem; }
.phone-fig figcaption { font-size: .9rem; font-weight: 600; color: var(--muted); }
.app-case-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-top: 3.5rem; }
.app-case-foot .ticks { flex: 1 1 520px; }
.alj-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem 5rem; align-items: center; }
.alj-web-note { margin-top: 1.8rem; font-size: .92rem; color: var(--muted-d); border-left: 2px solid var(--red); padding-left: .9rem; }
.alj-web-card { background: var(--ink-2); border: 1px solid var(--line-d); padding: 2.2rem; }
.alj-web-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line-d); }
.alj-web-stats div { display: grid; }
.alj-web-stats b { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.alj-web-stats span { font-size: .85rem; color: var(--muted-d); }
.gplay { display: inline-grid; background: #000; border: 1px solid #555; padding: .6rem 1.4rem; line-height: 1.1; transition: border-color .3s, transform .4s var(--ease); }
.gplay small { font-size: .7rem; color: #ccc; }
.gplay b { font-size: 1.5rem; }
.gplay:hover { border-color: #fff; transform: translateY(-3px); }
@media (max-width: 900px) { .app-case-top, .alj-grid { grid-template-columns: 1fr; } }

/* Process ---------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line-d); }
.step { position: relative; padding: 1.6rem 1.2rem 0 0; }
.step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; background: var(--red); }
.step-n { font-size: .9rem; color: var(--muted-d); }
.step h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: .7rem 0 .4rem; }
.step p { font-size: .95rem; color: var(--muted-d); }
[data-theme="light"] .steps, [data-theme="mist"] .steps { border-color: var(--line-l); }
[data-theme="light"] .step p, [data-theme="mist"] .step p, [data-theme="light"] .step-n { color: var(--muted); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr 1fr; } }

/* Markets grid ----------------------------------------------------------- */
.markets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.market { position: relative; display: flex; flex-direction: column; gap: .6rem; padding: 1.6rem; min-height: 260px; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); overflow: hidden; isolation: isolate; transition: color .4s; }
.market::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(101%); transition: transform .6s var(--ease); }
.market:hover { color: #fff; }
.market:hover::before { transform: none; }
.market .flag { font-size: 2rem; }
.market h3 { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: auto; }
.market p { font-size: .92rem; opacity: .75; min-height: 4.4em; }
.market b { font-family: var(--display); font-size: 3rem; font-weight: 800; line-height: 1; color: var(--red); }
@media (max-width: 1000px) { .markets { grid-template-columns: repeat(2, 1fr); } .market:last-child { grid-column: 1 / -1; } }

/* FAQ -------------------------------------------------------------------- */
.faq { border-top: 1px solid currentColor; border-color: var(--line-l); }
.faq details { border-bottom: 1px solid var(--line-l); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 700; letter-spacing: -.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.6rem; line-height: 1; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 1.5rem; max-width: 48rem; color: var(--muted); }
[data-theme="dark"] .faq, [data-theme="dark"] .faq details { border-color: var(--line-d); }
[data-theme="dark"] .faq details p { color: var(--muted-d); }

/* Inner page head -------------------------------------------------------- */
.page-head { position: relative; padding: calc(var(--header-h) + clamp(4rem, 9vw, 7rem)) 0 clamp(3.5rem, 6vw, 5rem); overflow: hidden; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: var(--muted-d); margin-bottom: 1.4rem; }
.crumbs a:hover { color: var(--red-2); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
[data-theme="light"] .crumbs, [data-theme="mist"] .crumbs { color: var(--muted); }
.page-head-title { font-family: var(--display); font-size: clamp(2.6rem, 6.4vw, 6.4rem); font-weight: 800; letter-spacing: -.04em; line-height: .94; font-variation-settings: "opsz" 96, "wdth" 94; max-width: 18ch; }
.page-head-sub { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; }
.page-head-sub p { max-width: 38rem; font-size: 1.15rem; color: var(--muted-d); }
.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; }
.stat-row div { display: grid; }
.stat-row b { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.stat-row span { font-size: .9rem; color: var(--muted-d); }

/* Work (case study) page ------------------------------------------------- */
.case-hero-shot { margin-top: 3rem; }
.case-hero-shot .work-shot { aspect-ratio: 16 / 9; }
.case-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem 5rem; align-items: start; }
.case-body p { font-size: 1.15rem; line-height: 1.7; color: var(--muted); max-width: 44rem; }
.case-body h2 { font-family: var(--display); font-size: var(--fs-2); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 0 0 1.2rem; }
.case-body * + h2 { margin-top: 3rem; }
.ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
.ticks li { display: flex; gap: .7rem; padding: .9rem 0; border-bottom: 1px solid var(--line-l); }
.ticks li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: .6em; background: var(--red); }
[data-theme="dark"] .ticks li { border-color: var(--line-d); color: #D8DBE2; }
.facts { position: sticky; top: calc(var(--header-h) + 2rem); border-top: 2px solid var(--ink); }
.facts div { display: grid; gap: .2rem; padding: 1rem 0; border-bottom: 1px solid var(--line-l); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.facts .btn { margin-top: 1.4rem; width: 100%; }
.case-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-d); }
.case-nav a { padding: 2.4rem var(--pad); display: grid; gap: .4rem; transition: background .4s; }
.case-nav a + a { border-left: 1px solid var(--line-d); text-align: right; }
.case-nav a:hover { background: var(--ink-2); }
.case-nav span { font-size: .9rem; color: var(--muted-d); }
.case-nav b { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
@media (max-width: 900px) { .case-grid { grid-template-columns: 1fr; } .facts { position: static; } .ticks { grid-template-columns: 1fr; } }

/* Location + service pages ---------------------------------------------- */
.prose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
.prose-grid article { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.prose-grid h2, .prose-grid h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-bottom: .8rem; }
.prose-grid p { color: var(--muted); }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips span { padding: .5rem .95rem; border: 1px solid var(--line-l); font-weight: 500; font-size: .95rem; }
[data-theme="dark"] .chips span { border-color: var(--line-d); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem 5rem; }
.split h2 { font-family: var(--display); font-size: var(--fs-2); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin-bottom: 1.4rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.links-cloud { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.links-cloud a { font-weight: 600; border-bottom: 1.5px solid var(--line-l); padding-bottom: .15rem; transition: border-color .3s, color .3s; }
.links-cloud a:hover { color: var(--red); border-color: var(--red); }

/* Portfolio filters ------------------------------------------------------ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem; }
.filter { padding: .6rem 1.1rem; border: 1.5px solid var(--line-l); font-weight: 600; font-size: .92rem; transition: all .3s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter sup { font-size: .7rem; margin-left: .25rem; opacity: .6; }

/* Contact ---------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 3rem 5rem; padding-block: clamp(4rem, 8vw, 7rem); }
.contact-ways { border-top: 1px solid var(--line-l); }
.contact-ways a, .contact-ways button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-l); font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -.03em; text-align: left; transition: color .3s; overflow-wrap: anywhere; }
.contact-ways small { display: block; font-family: var(--body); font-size: .9rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.contact-ways a:hover, .contact-ways button:hover { color: var(--red); }
.contact-form { background: var(--mist); padding: clamp(1.5rem, 4vw, 2.6rem); }
.contact-form h2 { font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.4rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer ----------------------------------------------------------------- */
.footer { position: relative; overflow: hidden; }
.footer-cta { padding: clamp(6rem, 12vw, 10rem) var(--pad) clamp(4rem, 8vw, 6rem); max-width: var(--max); margin: 0 auto; }
.footer-cta-kicker { color: var(--muted-d); margin-bottom: 1rem; }
.footer-cta-title { font-family: var(--display); font-size: clamp(3rem, 10vw, 10rem); font-weight: 800; line-height: .88; letter-spacing: -.045em; font-variation-settings: "opsz" 96, "wdth" 90; }
.footer-cta-title > span { display: block; overflow: hidden; }
.footer-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 2rem 3rem; margin-top: 3rem; }
.footer-cta-row p { max-width: 30rem; color: var(--muted-d); }
.footer-cta-row p a { color: #fff; border-bottom: 1px solid var(--red); }
.orb { position: relative; width: clamp(150px, 15vw, 190px); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: grid; place-items: center; transition: background .4s, color .4s; }
.orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(227,18,43,.5); animation: ring 2.8s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.orb:hover { background: #fff; color: var(--ink); }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 3.5rem var(--pad); display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; border-top: 1px solid var(--line-d); }
.footer-brand p { color: var(--muted-d); margin-top: 1.2rem; max-width: 26rem; font-size: .98rem; }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-h { color: var(--muted-d); font-size: .88rem; margin-bottom: .4rem; }
.footer-col a { font-size: .96rem; width: fit-content; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.footer-col a:hover { background-size: 100% 1.5px; }
.footer-mega { font-family: var(--display); font-size: 12.6vw; font-weight: 800; letter-spacing: -.06em; line-height: .78; white-space: nowrap; text-align: center; opacity: .08; user-select: none; display: flex; justify-content: center; }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding: 1.5rem var(--pad) 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; font-size: .88rem; color: var(--muted-d); border-top: 1px solid var(--line-d); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-bottom a:hover, .to-top:hover { color: #fff; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Quote modal and forms -------------------------------------------------- */
.quote-modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 1rem; visibility: hidden; pointer-events: none; }
.quote-modal[aria-hidden="false"] { visibility: visible; pointer-events: auto; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(15,17,21,.72); backdrop-filter: blur(8px); opacity: 0; transition: opacity .5s; }
.quote-modal[aria-hidden="false"] .quote-backdrop { opacity: 1; }
.quote-panel { position: relative; width: min(760px, 100%); max-height: calc(100svh - 2rem); overflow-y: auto; background: #fff; color: var(--ink); padding: clamp(1.5rem, 4vw, 2.8rem); clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); }
.quote-modal[aria-hidden="false"] .quote-panel { clip-path: inset(0 0 0 0); }
.quote-panel h2 { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; padding-right: 3rem; }
.quote-lede { color: var(--muted); margin: .8rem 0 1.4rem; }
.quote-progress { height: 3px; background: var(--mist-2); margin-bottom: 1.6rem; }
.quote-progress i { display: block; height: 100%; width: 25%; background: var(--red); transition: width .6s var(--ease); }
.close-x { position: absolute; right: 1.2rem; top: 1.2rem; width: 44px; height: 44px; border: 1.5px solid var(--line-l); font-size: 1.5rem; line-height: 1; transition: transform .5s var(--ease), background .3s, color .3s; }
.close-x:hover { transform: rotate(90deg); background: var(--ink); color: #fff; }
.quote-step { display: none; }
.quote-step.active { display: block; animation: stepIn .6s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.quote-step h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; margin-bottom: .9rem; }
.form-grid label { margin: 0; }
input, select, textarea { width: 100%; padding: .85rem 1rem; border: 1.5px solid var(--line-l); background: #fff; color: var(--ink); font-weight: 400; border-radius: 0; transition: border-color .3s, box-shadow .3s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15,17,21,.08); }
textarea { resize: vertical; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.choice { margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: block; padding: .85rem 1rem; border: 1.5px solid var(--line-l); font-weight: 500; transition: all .3s; }
.choice input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.consent { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.consent input { width: auto; }
.quote-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-l); }
.quote-count { color: var(--muted); font-size: .9rem; }
.quote-submit { width: 100%; margin-top: .5rem; }
.quote-submit[hidden], .quote-next[hidden] { display: none; }
.form-status { font-size: .95rem; }
.form-status:not(:empty) { padding: .8rem 1rem; margin-bottom: 1rem; }
.form-status.is-loading { background: var(--mist); }
.form-status.is-success { background: #E3F6EA; color: #0E6B34; }
.form-status.is-error { background: #FDE8EA; color: #A30F21; }
@media (max-width: 600px) { .form-grid, .choice-grid { grid-template-columns: 1fr; } }
.modal-open { overflow: hidden; }

/* Reveal ----------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Legacy content pages (pricing, FAQ, legal, insights…) in the v4 style
   ========================================================================== */
body.legacy main { background: var(--paper); color: var(--ink); }
.legacy .page-hero, .legacy .subhero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--header-h) + clamp(3.5rem, 9vw, 7rem)) var(--pad) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.legacy .page-hero > *, .legacy .subhero > * { max-width: var(--max); margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.legacy .page-hero h1, .legacy .subhero h1 { font-family: var(--display); font-size: clamp(2.6rem, 7vw, 6.5rem); font-weight: 800; letter-spacing: -.05em; line-height: .92; margin: 1rem auto 1.4rem; }
.legacy .page-hero p, .legacy .subhero p { color: var(--muted-d); font-size: 1.12rem; max-width: 42rem; margin-left: 0; }
.legacy .page-hero img, .legacy .subhero img { margin-top: 2rem; max-height: 440px; width: 100%; object-fit: cover; }
.legacy .eyebrow { display: inline-block; font-size: .92rem; font-weight: 600; color: var(--red); letter-spacing: 0; text-transform: none; }
.legacy .page-hero .eyebrow, .legacy .subhero .eyebrow { color: var(--red-2); }
.legacy .section, .legacy .content-section { padding: clamp(3.5rem, 7vw, 6rem) var(--pad); max-width: var(--max); margin: 0 auto; }
.legacy .content-section.alt { background: var(--mist); max-width: none; }
.legacy .section-heading { max-width: 52rem; margin-bottom: 2.5rem; }
.legacy h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; margin: .5rem 0 1rem; }
.legacy .section-heading p, .legacy .long-copy p { color: var(--muted); }
.legacy .long-copy { max-width: 46rem; padding: 2rem 0; border-top: 1px solid var(--line-l); }
.legacy .long-copy p { margin-bottom: 1rem; line-height: 1.7; }
.legacy .long-copy li, .legacy .check-list li { padding-left: 1.2rem; position: relative; color: var(--muted); margin-bottom: .5rem; }
.legacy .long-copy li::before, .legacy .check-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--red); }
.legacy .editorial-grid, .legacy .article-grid, .legacy .industry-card-grid, .legacy .pricing-grid, .legacy .pricing-preview, .legacy .contact-cards, .legacy .service-directory-grid, .legacy .service-picture-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.5rem; }
.legacy .editorial-grid .long-copy, .legacy article.reveal, .legacy .industry-card, .legacy .price-card, .legacy .article-grid article { background: #fff; border: 1px solid var(--line-l); padding: 1.8rem; max-width: none; }
.legacy .industry-card img, .legacy .article-grid img { margin-bottom: 1rem; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.legacy .industry-card h3, .legacy .price-card h3, .legacy .article-grid h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; margin: .4rem 0 .6rem; }
.legacy .price-card strong { display: block; font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; color: var(--red); margin: .3rem 0 .8rem; }
.legacy .price-card ul { margin: 1rem 0 1.4rem; }
.legacy .price-card li { padding-left: 1.2rem; position: relative; color: var(--muted); margin-bottom: .45rem; }
.legacy .price-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: var(--red); }
.legacy .price-card p, .legacy .industry-card p, .legacy .article-grid p { color: var(--muted); }
.legacy .btn-primary { --bg: var(--red); --fg: #fff; --bd: var(--red); --fill: var(--ink); --fill-fg: #fff; }
.legacy .btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; --fill: var(--red); --fill-fg: #fff; }
.legacy .btn-ghost-dark, .legacy .btn-outline-dark { --fg: var(--ink); --bd: var(--line-l); --fill: var(--ink); --fill-fg: #fff; }
.legacy .page-hero .btn-ghost, .legacy .subhero .btn-ghost { --fg: #fff; --bd: rgba(255,255,255,.4); }
.legacy .hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.legacy .text-button, .legacy .text-link { color: var(--red); font-weight: 600; border-bottom: 1.5px solid currentColor; }
.legacy .cta-band, .legacy .future-cta { background: var(--ink); color: #fff; padding: clamp(2rem, 5vw, 4rem); margin: 2rem var(--pad) clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.legacy .cta-band h2, .legacy .future-cta h2 { color: #fff; max-width: 22ch; }
.legacy .cta-band p, .legacy .future-cta p { color: var(--muted-d); max-width: 40rem; margin-bottom: 1.4rem; }
.legacy .future-cta-overlay { display: none; }
.legacy details { border-top: 1px solid var(--line-l); padding: 1.2rem 0; max-width: 56rem; }
.legacy details summary { cursor: pointer; font-weight: 700; font-size: 1.15rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.legacy details summary::after { content: "+"; color: var(--red); font-size: 1.4rem; line-height: 1; transition: transform .4s var(--ease); }
.legacy details[open] summary::after { transform: rotate(45deg); }
.legacy details p { color: var(--muted); margin-top: .8rem; }
.legacy .faq-list .reveal { background: none; border: 0; padding: 0; }
.legacy .ai-product-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; margin-bottom: 1.2rem; }
.legacy .ai-product-number { font-family: var(--display); font-size: 2.4rem; font-weight: 800; color: var(--red); }
.legacy .product-category-nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.legacy .product-category-nav a { padding: .6rem 1.1rem; border: 1.5px solid var(--line-l); font-weight: 600; }
.legacy .ai-orbit-card { background: var(--ink); color: #fff; padding: 1.5rem; }
.legacy .wrap { padding: 0; }
.legacy .reveal { opacity: 1; transform: none; }

/* Reduced motion --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .wall-col, .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-reveal-img] { clip-path: none; }
  .loader { display: none; }
  .rotator > span:first-child { transform: none; }
}
