/* Mind Matrix Pro */
:root {
  --bg: #343539;
  --bg-2: #393a3f;
  --raised: #3f4045;
  --line: #50525a;
  --line-soft: #464850;
  --text: #d3d5d9;
  --muted: #9b9ea5;
  --head: #f5f5f6;
  --signal: #3fe0f5;
  --gold: #c8a476;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --display: 'Inter Tight', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  /* content width follows the screen: full-bleed feel on desktops, capped only on very wide monitors */
  --wrap: min(1720px, 100vw - 2 * var(--gut));
  --gut: clamp(20px, 4.5vw, 96px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--head); text-decoration-thickness: 1px; text-underline-offset: 4px; }
h1, h2, h3 { font-family: var(--display); color: var(--head); font-weight: 600; margin: 0; letter-spacing: -0.025em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--head); color: var(--bg); padding: 10px 14px; border-radius: 6px; z-index: 300; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
main, .footer { position: relative; z-index: 1; }

.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }

/* launch: the page waits while the matrix forms, then fades in as the sphere glides into the hero */
.is-launch .nav, .is-launch main, .is-launch .footer, .is-launch .wa-float { opacity: 0; }
.is-launch.launched .nav, .is-launch.launched main, .is-launch.launched .footer, .is-launch.launched .wa-float {
  opacity: 1; transition: opacity 1.1s var(--ease) .25s; }
.is-launch:not(.launched) { overflow: hidden; }

/* fixed matrix layer */
.orbit { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; background: var(--bg); }
.orbit::after { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, rgba(52,53,57,0) 55%, rgba(38,39,42,.55) 100%); }
.orbit-photo { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; object-position: center 35%; opacity: 0;
  filter: saturate(.7) contrast(1.05); animation: drift 36s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.06) translate3d(-1%, 1%, 0); } }
.orbit-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(52,53,57,.9) 0%, rgba(52,53,57,.55) 45%, rgba(52,53,57,.3) 100%), linear-gradient(180deg, rgba(52,53,57,.2) 0%, rgba(52,53,57,0) 30%, rgba(52,53,57,.75) 100%); }
#field { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-mark { position: absolute; left: 0; top: 0; width: 512px; height: 512px; max-width: none; will-change: transform, opacity;
  transform-origin: 0 0; opacity: 0; filter: drop-shadow(0 0 40px rgba(63,224,245,.22)); }
.orbit-word { position: absolute; left: 0; right: 0; top: 0; text-align: center; font: 600 clamp(13px, 1.4vw, 19px)/1 var(--display);
  text-transform: uppercase; color: var(--head); opacity: 0; will-change: transform, opacity; padding-left: .5em; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px; cursor: pointer;
  font: 500 15px/1 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; background: none;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-light { background: var(--head); color: var(--bg); }
.btn-light:hover { background: #fff; }
.btn-ghost { color: var(--head); border-color: rgba(245,245,246,.28); }
.btn-ghost:hover { border-color: var(--head); }
.play-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; position: relative; flex: none; }
.play-dot::after { content: ''; position: absolute; left: 8px; top: 6px; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.text-link { font-size: 15px; color: var(--text); }
.text-link:hover { color: var(--head); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .35s, border-color .35s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(42, 43, 46, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: var(--line-soft); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--head);
  font: 600 15px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; }
.brand img { width: 36px; height: 36px; }
.menu { display: flex; align-items: center; gap: 34px; }
.menu a:not(.btn) { color: var(--text); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.menu a:not(.btn):hover { color: var(--head); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 0; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 1.5px; background: var(--head); margin: 0 auto; position: relative; transition: transform .25s, opacity .25s; }
.bars::before, .bars::after { content: ''; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .bars { background: transparent; }
.menu-btn[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 90px; }
.hero::before { content: none; }
.hero-grid { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 118px); line-height: .98; letter-spacing: -0.04em; font-weight: 600; }
.typeline { margin: 30px 0 0; font: 300 clamp(20px, 1.9vw, 32px)/1.3 var(--sans); color: var(--text); }
.type { color: var(--head); font-weight: 500; white-space: nowrap; }
.type::after { content: ''; display: inline-block; width: 2px; height: .95em; margin-left: 4px; vertical-align: -0.1em;
  background: var(--signal); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-anchor { aspect-ratio: 1 / 1; width: 100%; max-width: min(460px, 32vw); justify-self: center; }
.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); color: var(--muted); text-decoration: none;
  font: 500 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; padding-bottom: 34px; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 24px; background: var(--muted); animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* sections */
.section { position: relative; padding: clamp(96px, 12vw, 160px) 0; }
.section::before { content: ''; position: absolute; top: 0; left: 50%; width: var(--wrap); transform: translateX(-50%); height: 1px; background: var(--line-soft); }
.section h2 { font-size: clamp(32px, 3.8vw, 68px); line-height: 1.05; max-width: 18ch; }
.sec-head { margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head > p:not(.eyebrow) { max-width: 56ch; margin-top: 24px; color: var(--text); font-size: clamp(17px, 1.1vw, 20px); }

/* photo bands: a dimmed photograph behind a section, content stays on top */
.has-band { overflow: hidden; }
.has-band > .band { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; filter: saturate(.6); z-index: 0; }
.has-band > .band-shade { position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(52,53,57,.55) 18%, rgba(52,53,57,.55) 82%, var(--bg) 100%); }
.has-band > .wrap { position: relative; z-index: 1; }

/* services */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.services li { padding: 40px 36px 44px 0; border-bottom: 1px solid var(--line); position: relative; }
.services li:not(:nth-child(3n+1)) { padding-left: 36px; border-left: 1px solid var(--line); }
.services .num { display: block; font: 500 13px/1 var(--sans); color: var(--muted); letter-spacing: .1em; margin-bottom: 40px; }
.services h3 { font-size: 26px; margin-bottom: 14px; }
.services p { font-size: 16px; color: var(--text); }
.services .stack { font-size: 13px; color: var(--muted); margin: 18px 0 0; letter-spacing: .01em; }
.also { margin: 48px 0 0; color: var(--muted); max-width: 70ch; }

.services-brief li { padding-top: 34px; padding-bottom: 36px; }
.services-brief .num { margin-bottom: 22px; }
.services-brief h3 { font-size: clamp(26px, 2.2vw, 34px); margin-bottom: 10px; }
.services-brief p { font-size: 16px; color: var(--muted); max-width: 34ch; margin: 0; }
.also strong { color: var(--head); font-weight: 600; }

/* connect */
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.connect-copy p { max-width: 50ch; }
.connect-copy h2 { margin-bottom: 28px; }
.statement { margin: 40px 0; padding-left: 22px; border-left: 2px solid var(--signal);
  font: 400 clamp(21px, 2vw, 26px)/1.4 var(--display); color: var(--head); max-width: 28ch; letter-spacing: -0.01em; }
.systems strong { color: var(--head); font-weight: 600; }
.fine { font-size: 13px; color: var(--muted); }
.arch { margin: 0; }
.arch svg { width: 100%; max-width: 440px; margin: 0 auto; }
.arch-links line { stroke: #56585e; stroke-width: 1.2; }
.arch-flow line { stroke: var(--signal); stroke-width: 2; stroke-dasharray: 4 30; opacity: 0; }
.arch.on .arch-flow line { opacity: .9; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -34; } }
.arch-taps line { stroke: #4c4e53; stroke-width: 1; stroke-dasharray: 2 4; }
.arch-nodes rect { fill: rgba(52,53,57,.92); stroke: #5a5c62; stroke-width: 1; }
.arch-nodes rect.end { fill: var(--head); stroke: var(--head); }
.arch-nodes text, .arch-ai text { font: 500 12px var(--sans); fill: var(--text); text-anchor: middle; letter-spacing: .04em; }
.arch-nodes text.end { fill: var(--bg); }
.arch-ai rect { fill: rgba(52,53,58,.92); stroke: #5e6066; }
.arch-ai text { fill: var(--head); font-size: 11px; letter-spacing: .3em; }

/* work */
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
.case-flip .case-media { order: -1; }
.case-kicker { font: 500 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.case h3 { font-size: clamp(40px, 4.6vw, 84px); letter-spacing: -0.04em; line-height: 1; }
.case-lead { font-size: 19px; line-height: 1.6; color: var(--text); margin: 24px 0 0; max-width: 46ch; }
.features { list-style: none; padding: 0; margin: 32px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; font-size: 15px; }
.features li { padding: 12px 0; border-top: 1px solid var(--line-soft); }
.case-links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.case-media { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.reel { width: 100%; max-width: min(380px, 24vw); aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; position: relative;
  background: #1c1d20; border: 1px solid var(--line); box-shadow: 0 60px 90px -50px rgba(0,0,0,.9); }
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel-aimeal { background: #10221a; }
.reel-aiwaiters { background: #1d1915; }
.reel-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.reel-tabs button { background: none; border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.reel-tabs button:hover { border-color: var(--muted); color: var(--head); }
.reel-tabs button[aria-selected="true"] { background: var(--head); color: var(--bg); border-color: var(--head); }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 48px); margin-bottom: clamp(96px, 12vw, 150px); }
.shots:last-child { margin-bottom: 0; }
.phone { margin: 0; }
.phone img { width: 100%; aspect-ratio: 640 / 1391; object-fit: cover; object-position: center top;
  border-radius: 30px; border: 8px solid #18191b; outline: 1px solid #4a4c51; background: #18191b;
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.85); transition: transform .5s var(--ease); }
.phone figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .phone:hover img { transform: translateY(-8px); } }


/* more work */
.more-head { margin-top: clamp(96px, 12vw, 150px); }
.more { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 90px); align-items: center; padding: clamp(40px, 5vw, 64px) 0; border-top: 1px solid var(--line); }
.more-flip .more-media { order: 2; }
.more-copy h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.035em; line-height: 1.02; }
.more-copy > p:not(.case-kicker) { margin: 20px 0 0; font-size: 17px; max-width: 50ch; }
.more-copy .features { margin: 26px 0 0; font-size: 14.5px; }
.more-copy .case-links { margin-top: 26px; }
/* every product sits on the same dark stage, whatever colours its own UI uses */
.more-media { perspective: 1200px; }
.stage { border-radius: 22px; border: 1px solid var(--line); background:
  radial-gradient(ellipse 80% 70% at 50% 0%, rgba(63,224,245,.06), transparent 60%),
  linear-gradient(180deg, rgba(63,64,69,.55), rgba(52,53,57,.75)); padding: clamp(18px, 2.6vw, 34px); overflow: hidden; }
.stage .tilt-in, .stage > .tilt-in { display: flex; flex-direction: column; gap: 22px; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.stage .phone img, .stage .browser, .stage .diagram { transform: translateZ(18px); }
.stage .diagram { background: transparent; border: 0; padding: 0; }
.browser-small { width: 72%; margin-left: auto; margin-top: -8px; }
.duo, .trio { display: flex; justify-content: center; align-items: flex-end; gap: clamp(12px, 2vw, 28px); }
/* staggered rise of the devices when their row scrolls in */
.reveal .stage .phone, .reveal .stage .browser, .reveal .stage .diagram { opacity: 0; transform: translate3d(0, 28px, 18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.in .stage .phone, .reveal.in .stage .browser, .reveal.in .stage .diagram { opacity: 1; transform: translate3d(0, 0, 18px); }
.reveal.in .stage .phone:nth-child(2) { transition-delay: .12s; } .reveal.in .stage .phone:nth-child(3) { transition-delay: .24s; }
.reveal.in .stage .browser { transition-delay: .18s; } .reveal.in .stage .browser-small { transition-delay: .3s; }
.duo .phone { width: 42%; max-width: 280px; }
.trio .phone { width: 31%; max-width: 240px; }
.phone-free img { aspect-ratio: auto; object-fit: contain; object-position: top; background: #0f1012; }
.browser { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #1c1d20; box-shadow: 0 40px 70px -40px rgba(0,0,0,.85); position: relative; }
.browser::before { content: ''; display: block; height: 22px; background: #26272b; border-bottom: 1px solid var(--line); }
.browser::after { content: ''; position: absolute; left: 10px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #5a5c62; box-shadow: 14px 0 0 #5a5c62, 28px 0 0 #5a5c62; }
.browser img { width: 100%; height: auto; display: block; }
.diagram { margin: 0; background: rgba(63,64,69,.45); border: 1px solid var(--line); border-radius: 16px; padding: clamp(12px, 2vw, 24px); }
.diagram svg { width: 100%; height: auto; font-family: var(--sans); }
.dg-box rect { fill: rgba(52,53,57,.95); stroke: #5e6066; stroke-width: 1; }
.dg-box text, .dg-core text, .dg-data text { fill: var(--head); font-size: 13px; font-weight: 600; text-anchor: middle; }
.dg-box text.sub, .dg-core text.sub, .dg-data text.sub { fill: var(--muted); font-size: 10.5px; font-weight: 400; }
.dg-core rect { fill: rgba(63,224,245,.08); stroke: var(--signal); stroke-width: 1.2; }
.dg-data rect { fill: rgba(245,245,246,.06); stroke: #7a7d84; }
.dg-link line { stroke: #6a6d73; stroke-width: 1; stroke-dasharray: 3 4; }
.dg-wall rect { fill: none; stroke: var(--signal); stroke-width: 1; stroke-dasharray: 6 6; opacity: .55; }
.dg-wall text { fill: var(--text); font-size: 11px; text-anchor: middle; }
.partner { margin-top: clamp(64px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center;
  padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: rgba(63,64,69,.5); }
.partner h3 { font-size: clamp(26px, 2.8vw, 38px); letter-spacing: -0.03em; line-height: 1.05; }
.partner p:not(.eyebrow) { margin: 16px 0 0; max-width: 62ch; }
.partner .eyebrow { margin-bottom: 14px; }
@media (max-width: 980px) {
  .more, .partner { grid-template-columns: 1fr; }
  .more-flip .more-media { order: 0; }
  .duo .phone { max-width: 200px; } .trio .phone { max-width: 160px; }
  .browser-small { width: 80%; }
}

/* flows */
.flow { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 15px; color: var(--text); }
.flow li { display: inline-flex; align-items: center; }
.flow li:not(:last-child)::after { content: '\2192'; color: #6e7177; margin: 0 12px; }
.flow li:last-child { color: var(--head); font-weight: 500; }

/* projects */
.ledger { border-top: 1px solid var(--line); }
.ledger .row { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ledger h3 { font-size: 19px; letter-spacing: -0.01em; font-weight: 500; }
.ledger .flow { margin: 0; }

/* approach */
.journey { position: relative; max-width: 1000px; margin-bottom: clamp(64px, 8vw, 96px); }
.journey ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.journey li { font: 500 15px/1.2 var(--display); color: var(--muted); padding-top: 30px; position: relative; }
.journey li::before { content: ''; position: absolute; left: 0; top: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid #6a6d73; transform: translateY(-5px); }
.track { position: absolute; left: 5px; right: 0; top: 0; height: 1px; background: var(--line); }
.pulse { position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 12px 2px rgba(63, 224, 245, .5); opacity: 0; transition: left 1.1s cubic-bezier(.45,.05,.35,1), opacity .4s; }
.journey.live .pulse { opacity: 1; }
.journey li, .journey li::before { transition: color .35s, background-color .35s, border-color .35s; }
.journey li.lit { color: var(--head); }
.journey li.lit::before { border-color: var(--signal); background: var(--signal); }
.journey li.done::before { border-color: #8a8d93; background: #8a8d93; }
.matrix { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 88px); }
.matrix > div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.matrix dt { color: var(--muted); }
.matrix dd { margin: 0; color: var(--head); font-weight: 500; }
.closing { margin: clamp(64px, 9vw, 110px) 0 0; font: 400 clamp(26px, 3.2vw, 42px)/1.22 var(--display); color: var(--head); max-width: 28ch; letter-spacing: -0.02em; }

/* finale: the page scrolls out to the logo in its matrix, like the showreel's end card */
.finale { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; text-align: center; padding: clamp(64px, 8vw, 100px) 0; }
.finale-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.end-anchor { width: min(46vh, 60vw, 520px); aspect-ratio: 1 / 1; margin: 0 auto clamp(24px, 4vh, 48px); }
.big { font-size: clamp(44px, 6.2vw, 116px) !important; letter-spacing: -0.045em; line-height: .95 !important; max-width: none !important; }
.finale-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin: 28px 0 0; font-size: clamp(16px, 1.4vw, 20px); color: var(--text); letter-spacing: .02em; }
.finale-line a { color: var(--head); text-decoration: none; }
.finale-line a:hover { text-decoration: underline; }
.finale-line span, .finale-meta span[aria-hidden] { color: var(--muted); }
.finale-actions { justify-content: center; margin-top: 40px; }
.finale-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; margin: 36px 0 0; font-size: 14px; color: var(--muted); }
.finale-meta a { color: var(--text); text-decoration: none; }
.finale-meta a:hover { color: var(--head); text-decoration: underline; }

/* footer */
.footer { padding: 44px 0 calc(44px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; }
.footer p { margin: 0; }
.footer .brand { font-size: 13px; }
.footer .brand img { width: 28px; height: 28px; }

/* showreel */
.reel-modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; overflow: hidden; }
.reel-modal[open] { display: grid; place-items: center; }
.reel-modal::backdrop { background: rgba(20, 21, 23, .92); }
.reel-modal video { width: min(92vw, 1600px); height: auto; max-height: 88vh; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; object-fit: contain; box-shadow: 0 60px 120px rgba(0,0,0,.6); }
.reel-modal .close { position: absolute; top: calc(16px + env(safe-area-inset-top, 0px)); right: 18px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: rgba(52,53,57,.6); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.reel-modal .close:hover { border-color: #fff; }

/* floating WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }

/* reveal */
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li, .services li:not(:nth-child(3n+1)) { padding: 36px 28px 40px 0; border-left: 0; }
  .services li:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .connect-grid, .case { grid-template-columns: 1fr; }
  .case-flip .case-media { order: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-anchor { order: -1; max-width: 170px; justify-self: start; margin: 0 0 18px -10px; }
  .orbit-shade { background: linear-gradient(180deg, rgba(52,53,57,.5) 0%, rgba(52,53,57,.85) 100%); }
  .orbit-photo { object-position: 60% 30%; }
  .ledger .row { grid-template-columns: 1fr; gap: 10px; }
  .matrix { grid-template-columns: 1fr; }
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(190px, 44%);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    margin-left: calc(-1 * var(--gut)); margin-right: calc(-1 * var(--gut)); padding: 0 var(--gut) 12px; scroll-padding-inline: var(--gut); }
  .shots::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: start; }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .menu { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(52,53,57,.98); border-bottom: 1px solid var(--line); padding: 8px var(--gut) 22px;
    margin-top: env(safe-area-inset-top, 0px); display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
  .menu .btn { margin-top: 18px; }
  .nav { background: rgba(42, 43, 46, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .services li, .services li:nth-child(2n), .services li:not(:nth-child(3n+1)) { padding: 30px 0 32px; border-left: 0; }
  .services .num, .services-brief .num { margin-bottom: 16px; }
  .services-brief li { padding-top: 24px; padding-bottom: 26px; }
  .journey ol { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
  .track { display: none; }
  .journey li::before { transform: none; }
  .actions .btn { flex: 1 1 100%; }
  .features { grid-template-columns: 1fr; }
  .end-anchor { width: min(38vh, 70vw); }
  .finale-actions .btn { flex: 1 1 100%; }
  .matrix > div { grid-template-columns: 1fr; gap: 4px; }
  .shots { grid-auto-columns: 64%; }
  .phone img { border-radius: 26px; border-width: 6px; }
  .reel { max-width: 300px; }
  .scroll-cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage .tilt-in, .reveal .stage .phone, .reveal .stage .browser, .reveal .stage .diagram { transition: none; opacity: 1; transform: none; }
  .orbit-photo { animation: none; }
  .arch.on .arch-flow line { animation: none !important; }
  .pulse { display: none; }
  .journey li { color: var(--head); }
  .journey li::before { border-color: var(--signal); background: var(--signal); }
  .type::after, .scroll-cue::after { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .phone img { transition: none; }
}

/* 404 */
.notfound { min-height: 100vh; display: flex; align-items: center; }
.notfound::before { display: none; }
.notfound h1 { font-size: clamp(36px, 5vw, 64px); margin-top: 28px; }
.notfound .btn { margin-top: 12px; }
