/* Arvion Technologies company site. Self-hosted fonts, no external requests. */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-400_700.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-700.woff2") format("woff2");
  font-weight:700;
  font-display: swap;
}

:root {
  --night: #070a12;
  --navy: #0b1424;
  --surface: #101a2c;
  --surface-2: #0d1626;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2fb;
  --muted: #9aa4b8;
  --muted-2: #8b96aa;
  --gold: #f5c26b;
  --gold-2: #d9a24a;
  --green: #7ee2a8;
  --blue: #3a7bff;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 16px;
  --nav-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--night);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; }

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transition: width 0.1s linear;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 1000;
  border-radius: 50%; transform: translate(-50%, -50%); mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: #fff; }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.6); transition: width .15s ease, height .15s ease, border-color .15s ease; }
.cursor-ring.grow { width: 54px; height: 54px; border-color: var(--gold); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  display: flex; align-items: center; gap: 26px; padding: 0 clamp(20px, 5vw, 64px);
  z-index: 90; border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.nav.solid { background: rgba(7, 10, 18, 0.82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; }
.brand-lockup { height: 44px; width: auto; display: block; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 13.5px; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--gold); transition: width .25s ease; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
@media (max-width: 880px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-family: var(--font-body);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn.small { padding: 9px 18px; font-size: 13px; }
.btn.lg { padding: 16px 30px; font-size: 15px; }
.btn.gold { background: var(--gold); color: #17120a; box-shadow: 0 10px 34px -12px rgba(245,194,107,.6); }
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(245,194,107,.74); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; padding: calc(var(--nav-h) + 40px) clamp(20px, 6vw, 90px) 60px; overflow: hidden; display: flex; flex-direction: column; }
.hero-video { position: absolute; inset: 0; z-index: 0; }
.hero-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 55% 38%, rgba(58,123,255,.16) 0%, transparent 60%),
    radial-gradient(50% 50% at 20% 80%, rgba(245,194,107,.10) 0%, transparent 60%),
    radial-gradient(75% 65% at 50% 40%, transparent 0%, rgba(7,10,18,.28) 62%, rgba(7,10,18,.86) 100%),
    linear-gradient(180deg, rgba(7,10,18,.28) 0%, rgba(7,10,18,.42) 58%, var(--night) 100%);
}
.hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.9; }
.hero-inner {
  position: relative; z-index: 2; flex: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 4vw, 64px); align-items: center;
  max-width: 1240px; width: 100%; margin: 0 auto;
}
.eyebrow { font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.04; font-weight: 700; margin-bottom: 24px; }
.hero h1 .gold { background: linear-gradient(92deg, var(--gold), #ffe1a8 45%, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(15.5px, 1.4vw, 18px); color: #c3cbdb; max-width: 56ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { color: var(--muted); font-size: 13px; }

/* build log card */
.hero-log {
  background: rgba(13, 22, 38, 0.72); border: 1px solid var(--line-strong); border-radius: 16px;
  overflow: hidden; backdrop-filter: blur(10px); box-shadow: 0 40px 90px -50px #000;
}
.log-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.log-dots { display: flex; gap: 6px; }
.log-dots i { width: 9px; height: 9px; border-radius: 50%; background: #33405c; }
.log-dots i:first-child { background: #f87171aa; }
.log-dots i:nth-child(2) { background: #fbbf24aa; }
.log-dots i:nth-child(3) { background: #34d399aa; }
.log-title { font-family: var(--font-display); font-size: 12.5px; color: var(--text); }
.log-badge { margin-left: auto; font-size: 10.5px; letter-spacing: .1em; color: var(--green); border: 1px solid rgba(126,226,168,.4); border-radius: 999px; padding: 3px 10px; }
.log-body { padding: 6px 16px 14px; font-size: 12.5px; }
.log-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.log-row.cursor { border-bottom: 0; }
.log-date { color: var(--gold); font-family: var(--font-display); font-size: 11.5px; }
.log-msg { color: var(--text); }
.log-tag { color: var(--muted-2); font-size: 11px; white-space: nowrap; }
.blink { color: var(--gold); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.log-caption { padding: 0 16px 14px; color: var(--muted-2); font-size: 11.5px; }

/* hero stats */
.hero-stats-wrap { position: relative; z-index: 2; max-width: 1240px; width: 100%; margin: 40px auto 0; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 44px); border-top: 1px solid var(--line); padding-top: 26px; }
.stat { display: flex; flex-direction: column; gap: 5px; }
.stat .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1; }
.stat .lbl { font-size: 12px; color: var(--muted); }

.scroll-cue { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.35); border-radius: 14px; z-index: 2; display: grid; place-items: start center; padding-top: 7px; }
.scroll-cue span { width: 3px; height: 9px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-log { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 90px); position: relative; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 48px); margin-bottom: 16px; }
.section-head .sub { color: var(--muted); font-size: 16px; max-width: 62ch; }
.section-head .sub a { color: var(--gold); }
.section-head-cta { margin-top: 20px; }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: transform .3s ease, border-color .3s ease; }
.service:hover { transform: translateY(-4px); border-color: var(--gold-2); }
.svc-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.svc-k { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.service h3 { font-size: 17px; }
.service p { color: var(--muted); font-size: 13.5px; margin-bottom: 16px; }
.svc-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-stack span { font-size: 11px; color: var(--muted); padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .service-grid { grid-template-columns: 1fr; } }

/* ---------- products ---------- */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-bottom: 72px; }
.product.flip { direction: rtl; }
.product.flip > * { direction: ltr; }
.product-copy { max-width: 560px; }
.tag { display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: rgba(10,14,24,.7); border: 1px solid var(--line-strong); color: #dfe5f1; margin-bottom: 16px; }
.tag.live { color: var(--green); border-color: rgba(126,226,168,.4); }
.product-copy h3, .product-copy h2 { font-size: clamp(26px, 2.6vw, 36px); margin-bottom: 4px; }
.product-nep { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.product-desc { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.check { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.check li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--text); }
.check li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); }
.product-copy .svc-stack { margin-bottom: 18px; }
.link-arrow { font-size: 14px; font-weight: 500; color: var(--gold); }
.link-arrow:hover { text-decoration: underline; }

.product-phone { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.phone {
  position: relative; width: 280px; aspect-ratio: 9/19; background: #0a0e18;
  border: 2px solid var(--line-strong); border-radius: 40px; overflow: hidden;
  box-shadow: 0 40px 90px -40px #000;
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 100px; height: 22px; background: #05070d; border-radius: 999px; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 400px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.chip b { font-family: var(--font-display); font-size: 11px; color: var(--gold); }
.chip em { font-style: normal; color: var(--muted-2); font-size: 11px; }
@media (max-width: 880px) { .product { grid-template-columns: 1fr; } .product.flip { direction: ltr; } }

/* ---------- about / how we are different ---------- */
.diff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.diff { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.diff-num { font-family: var(--font-display); font-size: 13px; color: var(--gold); letter-spacing: .1em; }
.diff h3 { font-size: 16.5px; margin: 12px 0 8px; }
.diff p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 1000px) { .diff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; transition: border-color .3s ease; }
.step:hover { border-color: var(--gold-2); }
.step-num { font-family: var(--font-display); font-size: 12px; letter-spacing: .12em; color: var(--gold); }
.step h3 { font-size: 17px; margin: 10px 0 8px; }
.step p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.step-out { font-size: 12px; color: var(--green); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- samples ---------- */
.sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.sample-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.sample-card:hover { transform: translateY(-5px); border-color: var(--gold-2); }
.sample-media { aspect-ratio: 16/10; overflow: hidden; background: #0a0e18; }
.sample-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.sample-card:hover .sample-media img { transform: scale(1.04); }
.sample-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sample-body h3 { font-size: 17px; }
.sample-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.sample-body p { color: var(--muted); font-size: 13px; flex: 1; }
.sample-foot { font-size: 12px; color: var(--muted-2); }
@media (max-width: 1000px) { .sample-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sample-grid { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-family: var(--font-display); font-weight: 500; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-weight: 600; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .25s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

/* ---------- contact ---------- */
.contact { text-align: center; overflow: hidden; }
.contact-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,194,107,.14), transparent 70%); pointer-events: none; }
.contact .section-head { margin: 0 auto 40px; }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-note { color: var(--muted); font-size: 13px; margin-top: 20px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px clamp(20px, 6vw, 90px) 28px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 38ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcol { display: flex; flex-direction: column; gap: 9px; }
.fcol .fcol-title { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }
.fcol a { font-size: 13.5px; color: var(--muted); transition: color .2s ease; }
.fcol a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted-2); font-size: 12.5px; }
@media (max-width: 760px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- multipage additions ---------- */
.section.tight { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.footer-contact { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.footer-contact a { color: var(--gold); font-size: 13.5px; }
.footer-contact a:hover { text-decoration: underline; }

/* page hero (subpages) */
.page-hero {
  position: relative; padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) clamp(20px, 6vw, 90px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(70% 80% at 70% 0%, rgba(58, 123, 255, 0.10), transparent 60%),
    radial-gradient(60% 70% at 10% 10%, rgba(245, 194, 107, 0.10), transparent 60%),
    var(--night);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(60% 60% at 50% 40%, #000 0%, transparent 100%);
}
.page-hero-inner { position: relative; z-index: 2; max-width: 1000px; }
.page-hero h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.05; margin-bottom: 20px; }
.page-hero .lede { margin-bottom: 28px; }

/* CTA band */
.cta-band { position: relative; padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 90px); text-align: center; overflow: hidden; border-top: 1px solid var(--line); }
.cta-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(245,194,107,.14), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 14px; }
.cta-inner .sub { color: var(--muted); font-size: 16px; max-width: 62ch; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* services detail */
.service-detail-list { display: flex; flex-direction: column; gap: 18px; }
.service-detail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 3vw, 36px); transition: border-color .3s ease; }
.service-detail:hover { border-color: var(--gold-2); }
.sd-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.sd-k { font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.sd-head h2 { font-size: clamp(22px, 2.6vw, 30px); }
.sd-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 20px; }
.sd-desc { color: var(--muted); font-size: 15px; }
.service-detail .svc-stack span { font-size: 11.5px; }
@media (max-width: 820px) { .sd-cols { grid-template-columns: 1fr; gap: 18px; } }

/* about */
.about-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.about-story h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 18px; }
.about-story p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.about-story .svc-stack { margin-top: 20px; }
.about-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 26px; }
.about-card h3 { font-size: 18px; margin-bottom: 10px; }
.about-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.about-card .hero-log { box-shadow: none; }
.legal-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.legal-card h2 { font-size: 22px; margin-bottom: 18px; }
.legal-card dl { display: grid; grid-template-columns: 180px 1fr; gap: 10px 20px; font-size: 14px; }
.legal-card dt { color: var(--muted-2); }
.legal-card dd { color: var(--text); }
.legal-card a { color: var(--gold); }
@media (max-width: 820px) { .about-cols { grid-template-columns: 1fr; } .legal-card dl { grid-template-columns: 1fr; gap: 2px; } .legal-card dd { margin-bottom: 10px; } }

/* process stages */
.stage-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.stage { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.stage-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--gold); line-height: 1; }
.stage-body h2 { font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 8px; }
.stage-body p { color: var(--muted); font-size: 14.5px; max-width: 70ch; margin-bottom: 12px; }
.stage-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.stage-out { color: var(--green); }
.stage-dur { color: var(--muted-2); }
@media (max-width: 640px) { .stage { grid-template-columns: 1fr; gap: 8px; } .stage-num { font-size: 22px; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-form { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.contact-form h2 { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 6px; }
.form-note { color: var(--muted-2); font-size: 12.5px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.input {
  font-family: var(--font-body); font-size: 14px; color: var(--text); background: var(--night);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,194,107,.15); }
.input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
textarea.input { resize: vertical; min-height: 120px; }
select.input { appearance: none; }
.contact-form .btn { margin-top: 8px; }
.contact-side { display: flex; flex-direction: column; gap: 16px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); padding: 22px; }
.contact-card h3 { font-size: 16px; margin-bottom: 12px; }
.contact-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.contact-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.contact-line span { color: var(--muted-2); font-size: 12px; }
.contact-line b { font-weight: 500; font-size: 13.5px; color: var(--text); }
.contact-line:hover b { color: var(--gold); }
.contact-note { color: var(--muted-2) !important; font-size: 12px !important; margin: 12px 0 0 !important; }
.muted { color: var(--muted-2); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* careers */
.career-cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.career-story h2 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 16px; }
.career-story p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.career-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 3vw, 32px); }
.career-card h3 { font-size: 18px; margin-bottom: 14px; }
.career-note { color: var(--muted); font-size: 13.5px; margin: 18px 0 16px; }
.career-note a { color: var(--gold); }
@media (max-width: 820px) { .career-cols { grid-template-columns: 1fr; } }

/* screenshot mode: render final state immediately */
.shot-mode .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.shot-mode .blink, .shot-mode .scroll-cue span, .shot-mode .hero-video video { animation: none !important; }

/* ---------- mobile menu ---------- */
.nav-toggle { display: none; margin-left: 10px; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 89; background: rgba(7,10,18,.97); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); padding: 14px clamp(20px, 6vw, 40px) 22px; display: flex; flex-direction: column; gap: 2px; }
.mobile-menu a { padding: 13px 0; font-size: 16px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .mobile-cta { margin-top: 16px; border: 0; text-align: center; color: #17120a; background: var(--gold); border-radius: 999px; padding: 13px; font-weight: 600; }
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}
@media (min-width: 881px) { .mobile-menu { display: none; } }

/* ---------- moving project carousel ---------- */
.mover-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(26px, 4vw, 52px); align-items: center; }
.mover-steps { display: flex; flex-direction: column; gap: 10px; }
.mstep {
  text-align: left; cursor: pointer; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px;
  padding: 15px 18px; border-radius: 14px; border: 1px solid var(--line); background: transparent;
  color: var(--muted); font-family: var(--font-body); transition: border-color .25s ease, background .25s ease, color .25s ease;
}
.mstep b { font-family: var(--font-display); font-size: 12px; letter-spacing: .1em; color: var(--gold); grid-row: span 2; align-self: start; padding-top: 2px; }
.mstep span { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); }
.mstep small { font-size: 12.5px; color: var(--muted-2); line-height: 1.5; }
.mstep.active { border-color: var(--gold-2); background: var(--surface); }
.mstep:hover { border-color: var(--line-strong); }
.mover-frame { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 90px -50px #000; }
.mover-bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.mover-bar i { width: 8px; height: 8px; border-radius: 50%; background: #33405c; }
.mover-bar i:first-child { background: #f87171aa; } .mover-bar i:nth-child(2) { background: #fbbf24aa; } .mover-bar i:nth-child(3) { background: #34d399aa; }
.mover-bar span { margin-left: 8px; font-size: 11.5px; color: var(--muted-2); font-family: var(--font-mono, monospace); }
.mover-img { aspect-ratio: 16 / 9; overflow: hidden; background: #0a0e18; }
.mover-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: opacity .35s ease; }
.mover-progress { height: 3px; background: rgba(255,255,255,.06); }
.mover-progress i { display: block; height: 100%; width: 0; background: var(--gold); }
.mover-caption { margin-top: 14px; color: var(--muted); font-size: 14px; }
.mover-caption b { color: var(--text); }
@media (max-width: 900px) { .mover-grid { grid-template-columns: 1fr; } }

/* ---------- video band ---------- */
.video-band { position: relative; min-height: 62vh; scroll-margin-top: var(--nav-h); display: grid; place-items: center; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vb-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,18,.5), rgba(7,10,18,.82)); }
.vb-inner { position: relative; z-index: 2; text-align: center; max-width: 760px; padding: clamp(48px, 8vw, 100px) 24px; }
.vb-inner h2 { font-size: clamp(28px, 4vw, 46px); margin-bottom: 14px; }
.vb-inner p { color: var(--muted); font-size: 16px; margin-bottom: 26px; }

/* ---------- kathmandu panel ---------- */
.kathmandu { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); min-height: 360px; display: grid; align-items: end; }
.kathmandu video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,10,18,.15), rgba(7,10,18,.86)); }
.k-caption { position: relative; z-index: 2; padding: clamp(20px, 4vw, 36px); }
.k-caption span { display: block; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.k-caption b { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); font-weight: 600; }

/* ---------- next steps ---------- */
.next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.next-step { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; }
.next-step h3 { font-size: 17px; margin: 10px 0 8px; }
.next-step p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 820px) { .next-grid { grid-template-columns: 1fr; } }

/* ---------- shared cinematic page hero (all pages) ---------- */
.hero-page {
  min-height: 72vh; padding: calc(var(--nav-h) + 80px) clamp(20px, 6vw, 90px) 76px;
  display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden;
}
.hero-page-inner { position: relative; z-index: 2; max-width: 1100px; width: 100%; margin: 0 auto; }
.hero-page h1 { font-size: clamp(32px, 5vw, 58px); line-height: 1.05; margin-bottom: 20px; color: var(--text); }
.hero-page .lede { margin-bottom: 28px; }
.hero-meta {
  display: grid; grid-template-columns: repeat(4, auto); gap: clamp(18px, 3vw, 46px);
  margin-top: 34px; border-top: 1px solid var(--line); padding-top: 20px; width: fit-content;
}
.hero-meta b { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.1; }
.hero-meta span { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .hero-page { min-height: 66vh; } .hero-meta { grid-template-columns: repeat(2, auto); } }

/* ---------- tech marquee ---------- */
.marquee-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; overflow: hidden; }
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { font-family: var(--font-display); font-weight: 500; font-size: 22px; color: var(--muted-2); padding: 0 26px; white-space: nowrap; position: relative; }
.marquee-track span::after { content: "·"; position: absolute; right: 0; color: var(--gold); }
.marquee-track span:last-child::after { content: ""; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- deliverables grid ---------- */
.deliver-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.deliver { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; transition: border-color .3s ease, transform .3s ease; }
.deliver:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.deliver h3 { font-size: 16.5px; margin: 12px 0 8px; }
.deliver p { color: var(--muted); font-size: 13.5px; }
@media (max-width: 1000px) { .deliver-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .deliver-grid { grid-template-columns: 1fr; } }

/* ---------- stats band (about) ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; }
.stats-band .num { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.stats-band .lbl { font-size: 12px; color: var(--muted); }
.stats-band .stat { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- keep strip (process) ---------- */
.keep-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.keep-strip span { font-size: 13px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; background: var(--surface); }
.keep-strip span::before { content: "✓"; color: var(--green); margin-right: 8px; }

/* ================= logo variants by theme ================= */
.lockup-light, .logo-light { display: none; }
[data-theme="light"] .lockup-dark, [data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .lockup-light, [data-theme="light"] .logo-light { display: block; }
.brand-lockup { transition: opacity .2s ease; }
.brand:hover .brand-lockup { opacity: .85; }

/* ================= theme toggle ================= */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex: 0 0 auto; margin-left: 14px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04); color: var(--text);
  cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle { background: rgba(20,17,12,.05); }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ================= LIGHT (day) THEME ================= */
[data-theme="light"] {
  color-scheme: light;
  --night: #f7f3e9;
  --navy: #efe9dc;
  --surface: #fffdf8;
  --surface-2: #fbf7ee;
  --line: rgba(24, 20, 14, 0.10);
  --line-strong: rgba(24, 20, 14, 0.20);
  --text: #17130d;
  --muted: #4f483c;
  --muted-2: #6d6555;
  --gold: #855514;
  --gold-2: #a87a2c;
  --green: #1d6e47;
  --blue: #2b5fd9;
}
[data-theme="light"] body { background: var(--night); }
[data-theme="light"] .nav { background: rgba(247,243,233,.86); border-bottom-color: var(--line); }
[data-theme="light"] .nav.solid { background: rgba(247,243,233,.96); }
[data-theme="light"] .btn.gold { color: #fff; }
[data-theme="light"] .btn.gold:hover { background: var(--gold-2); }
[data-theme="light"] .footer { background: var(--navy); }
[data-theme="light"] .marquee-track span { color: var(--muted); }
[data-theme="light"] .mobile-menu { background: rgba(247,243,233,.98); }
[data-theme="light"] .cursor-ring { border-color: rgba(23,19,13,.5); }
[data-theme="light"] .input { background: #fff; }
[data-theme="light"] .mover-frame, [data-theme="light"] .mover-bar { background: var(--surface); }
[data-theme="light"] .contact-form, [data-theme="light"] .contact-card, [data-theme="light"] .legal-card,
[data-theme="light"] .service-detail, [data-theme="light"] .deliver, [data-theme="light"] .person,
[data-theme="light"] .eng, [data-theme="light"] .diff, [data-theme="light"] .next-step,
[data-theme="light"] .career-card, [data-theme="light"] .about-card, [data-theme="light"] .sample-card,
[data-theme="light"] .keep-strip span { background: var(--surface); }
[data-theme="light"] .faq-item { background: var(--surface); }
[data-theme="light"] .hero-log, [data-theme="light"] .log-body { background: #0d1626; }
[data-theme="light"] .hero-log { color: #eef2fb; }

/* surfaces that sit on video always use light-on-dark tokens */
.hero, .hero-page, .video-band, .kathmandu, .cta-band {
  --text: #f6f2ea; --muted: rgba(255,255,255,.74); --muted-2: rgba(255,255,255,.52);
  --line: rgba(255,255,255,.16); --line-strong: rgba(255,255,255,.28); --gold: #f5c26b; --gold-2: #d9a24a;
  color: var(--text);
}
[data-theme="light"] .cta-band { background: var(--navy); }
[data-theme="light"] .cta-band, [data-theme="light"] .cta-band .sub { color: var(--muted); }
[data-theme="light"] .hero-shade { opacity: .9; }

/* ================= people ================= */
.people-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.people-grid.three { grid-template-columns: repeat(3, 1fr); }
.person { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; transition: border-color .3s ease, transform .3s ease; }
.person:hover { border-color: var(--gold-2); transform: translateY(-3px); }
.person-mono {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: .04em;
  color: #17120a; background: linear-gradient(145deg, var(--gold), var(--gold-2));
  margin-bottom: 16px;
}
[data-theme="light"] .person-mono { color: #fff; }
.person h3 { font-size: 18px; margin-bottom: 4px; }
.person-role { display: inline-block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.person p { color: var(--muted); font-size: 13.5px; }
.people-note { color: var(--muted-2); font-size: 13px; margin-top: 18px; max-width: 62ch; }
.people-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.people-strip a {
  display: inline-flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; text-decoration: none;
  transition: border-color .2s ease, color .2s ease;
}
.people-strip a:hover { border-color: var(--gold); color: var(--gold); }
.people-strip em { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
@media (max-width: 900px) { .people-grid, .people-grid.three { grid-template-columns: 1fr; } }

/* ================= engagement models ================= */
.eng-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eng { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 28px 24px; }
.eng h3 { font-size: 19px; margin-bottom: 8px; }
.eng p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.eng .check li { font-size: 13px; }
@media (max-width: 900px) { .eng-grid { grid-template-columns: 1fr; } }

.footer-reg { font-size: 12px; color: var(--muted-2); }
.person-loc { color: var(--muted-2) !important; font-size: 12.5px !important; }
.people-grid.solo { grid-template-columns: minmax(0, 720px); }

/* ================= work: case studies, galleries, build band ================= */
.browser { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 90px -55px #000; }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 13px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.03); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #33405c; }
.browser-bar i:first-child { background: #f87171aa; } .browser-bar i:nth-child(2) { background: #fbbf24aa; } .browser-bar i:nth-child(3) { background: #34d399aa; }
.browser-bar span { margin-left: 8px; font-size: 11.5px; color: var(--muted-2); }
.browser img { display: block; width: 100%; height: auto; }
.browser.big img { max-height: 620px; object-fit: cover; object-position: top; }

.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.case-card { display: block; text-decoration: none; color: inherit; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); transition: transform .3s ease, border-color .3s ease; }
.case-card:hover { transform: translateY(-4px); border-color: var(--gold-2); }
.case-media { padding: 16px 16px 0; }
.case-media .browser { box-shadow: none; }
.case-body { padding: 20px 24px 26px; }
.case-body h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 8px 0 2px; }
.case-nep { color: var(--muted-2); font-size: 13px; margin-bottom: 10px; }
.case-blurb { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.case-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-bottom: 16px; }
.case-facts b { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 2px; }
.case-facts span { font-size: 13px; color: var(--text); }
.case-card .link-arrow { color: var(--gold); }

.case-shot { padding-top: clamp(16px, 3vw, 32px); padding-bottom: clamp(16px, 3vw, 32px); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.photo img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .6s ease; }
.photo:hover img { transform: scale(1.05); }
.photo figcaption { padding: 12px 14px 14px; font-size: 12.5px; color: var(--muted); }

.build-band { display: grid; grid-template-columns: 1.05fr .95fr; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.build-band > img { width: 100%; height: 100%; object-fit: cover; min-height: 340px; }
.build-copy { padding: clamp(24px, 4vw, 44px); }
.build-copy h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; }
.build-copy p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.build-copy .check { margin-bottom: 20px; }

.built-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.built { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; }
.built h3 { font-size: 17px; margin: 10px 0 8px; }
.built p { color: var(--muted); font-size: 13.5px; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.flow li { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.flow b { font-family: var(--font-display); color: var(--gold); font-size: 13px; letter-spacing: .08em; }
.flow span { font-size: 13.5px; color: var(--text); }

.case-cols { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.case-text h2 { font-size: clamp(24px, 3vw, 34px); margin: 8px 0 14px; }
.case-text p { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.case-facts-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.case-facts-box h3 { font-size: 16px; margin-bottom: 14px; }
.case-facts-box dl { display: grid; grid-template-columns: 88px 1fr; gap: 9px 14px; font-size: 13.5px; }
.case-facts-box dt { color: var(--muted-2); }
.case-facts-box dd { color: var(--text); }
.sd-left { display: flex; flex-direction: column; gap: 14px; }

@media (max-width: 1000px) {
  .case-grid, .photo-grid, .built-grid, .case-cols, .build-band { grid-template-columns: 1fr; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; }
  .photo img { height: 200px; }
}

/* ================= split hero with 3D device stack ================= */
.hero-page-inner.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 60px); align-items: center; }
.hero-split-copy { min-width: 0; }
.hero-stack {
  position: relative; height: clamp(280px, 34vw, 420px);
  perspective: 1200px; transform-style: preserve-3d;
  transition: transform .3s ease;
}
.stack-frame { position: absolute; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 50px 90px -40px rgba(0,0,0,.75); transform-style: preserve-3d; }
.stack-frame.browser-mini { width: 74%; left: 0; top: 6%; transform: rotateY(9deg) rotateX(4deg) rotateZ(-1.2deg); animation: floatA 9s ease-in-out infinite; }
.stack-frame.browser-mini img { display: block; width: 100%; height: auto; }
.stack-frame.phone { width: 30%; right: 2%; bottom: 0; border-radius: 22px; border-width: 5px; border-color: #1b2540; transform: rotateY(-11deg) rotateX(3deg) rotateZ(2deg); animation: floatB 8s ease-in-out infinite; }
.stack-frame.phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@keyframes floatA { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes floatB { 0%,100% { translate: 0 0; } 50% { translate: 0 12px; } }
@media (max-width: 1000px) { .hero-page-inner.split { grid-template-columns: 1fr; } .hero-stack { display: none; } }

/* ================= 3D tilt ================= */
[data-tilt] { transition: transform .35s cubic-bezier(.2,.7,.3,1); will-change: transform; }
[data-tilt]:hover { z-index: 3; }
@media (prefers-reduced-motion: reduce) { [data-tilt], .stack-frame { transition: none !important; animation: none !important; } }

/* ================= photo bands ================= */
.photo-grid.two { grid-template-columns: repeat(2, 1fr); }
.photo-grid.two .photo img { height: 300px; }
.card-photo { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; display: block; }
@media (max-width: 1000px) { .photo-grid.two { grid-template-columns: 1fr; } }

/* split hero tuning */
.hero-page-inner.split { grid-template-columns: 1.26fr .74fr; }
.hero-page-inner.split h1 { font-size: clamp(26px, 2.9vw, 40px); line-height: 1.08; }
.hero-page-inner.split .hero-meta { gap: clamp(14px, 2vw, 32px); }
.stack-frame.browser-mini { width: 70%; }
.stack-frame.phone { width: 27%; right: 0; }
@media (max-width: 1200px) { .hero-page-inner.split .hero-meta { grid-template-columns: repeat(2, auto); } }

/* ================= accessibility + skip link ================= */
.skip { position: absolute; left: -9999px; top: 10px; z-index: 300; background: var(--gold); color: #17120a; padding: 10px 16px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ================= services with photos ================= */
.service-detail { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); align-items: start; }
.sd-thumb img { width: 100%; max-height: 190px; object-fit: cover; border-radius: 12px; display: block; }
.sd-main { min-width: 0; }
@media (max-width: 820px) { .service-detail { grid-template-columns: 1fr; } .sd-thumb img { max-height: 200px; } }

/* ================= comparison table ================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.compare { width: 100%; border-collapse: collapse; min-width: 660px; }
table.compare th, table.compare td { text-align: left; vertical-align: top; padding: 14px 16px; font-size: 13.5px; line-height: 1.5; border-bottom: 1px solid var(--line); }
table.compare th { font-family: var(--font-display); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
table.compare td.area { font-weight: 600; color: var(--text); width: 25%; }
table.compare td.them { color: var(--muted); }
table.compare td.us { color: var(--text); }
table.compare td.us::before { content: "✓ "; color: var(--green); font-weight: 700; }
table.compare tr:last-child td { border-bottom: 0; }

/* ================= download card ================= */
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); padding: clamp(24px, 3vw, 38px); }
.download-card h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 6px 0 10px; }
.download-card p { color: var(--muted); font-size: 14px; max-width: 62ch; }
@media (max-width: 760px) { .download-card { flex-direction: column; align-items: flex-start; } }

/* ================= case hero with phone ================= */
.case-device-wrap { position: relative; }
.case-phone { position: absolute; right: 3.5%; bottom: -7%; width: 150px; border: 5px solid #1b2540; border-radius: 22px; overflow: hidden; background: #0d1626; box-shadow: 0 40px 70px -30px rgba(0,0,0,.85); }
.case-phone img { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
@media (max-width: 900px) { .case-phone { display: none; } }

/* ================= parallax photos ================= */
[data-parallax] { overflow: hidden; }
[data-parallax] img { will-change: transform; }

/* ================= 3D ring gallery ================= */
.ring-section { overflow: hidden; }
.ring-wrap {
  position: relative; height: 380px; display: grid; place-items: center;
  perspective: 1500px; perspective-origin: 50% 45%; margin-top: 10px;
}
.ring {
  position: relative; width: 340px; height: 212px;
  transform-style: preserve-3d; transform: rotateY(0deg);
  cursor: grab; touch-action: pan-y;
}
.ring:active { cursor: grabbing; }
.ring-card {
  position: absolute; inset: 0; width: 340px; height: 212px;
  border-radius: 12px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.85);
  transform: rotateY(calc(var(--i) * 60deg)) translateZ(420px);
  backface-visibility: hidden;
}
.ring-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ring-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
  font-size: 11.5px; color: #fff; letter-spacing: .02em;
  background: linear-gradient(180deg, transparent, rgba(6,9,16,.86));
}
.ring-hint { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.ring-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: ringPulse 2s ease-in-out infinite; }
@keyframes ringPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@media (max-width: 820px) {
  .ring-wrap { height: auto; perspective: none; padding: 0; }
  .ring { width: 100%; height: auto; transform: none !important; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ring-card { position: static; width: auto; height: 120px; transform: none !important; }
  .ring-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ring-dot { animation: none; } }

/* hero log card on mid-size screens */
@media (max-width: 1120px) and (min-width: 881px) {
  .hero-log { padding: 16px 16px 14px; }
  .log-title { font-size: 11px; }
  .log-badge { font-size: 8.5px; letter-spacing: .06em; padding: 4px 7px; }
  .log-row { grid-template-columns: 62px minmax(0, 1fr); gap: 8px; font-size: 12px; }
  .log-tag { display: none; }
}

/* share card with the ring loop */
.share-copy { max-width: 62ch; }
.share-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.share-video { width: 340px; flex: 0 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #0d1626; }
.share-video video { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .share-video { width: 100%; max-width: 420px; } }

/* home hero on mid-size screens */
@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
}
@media (max-width: 1120px) and (min-width: 881px) {
  .log-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46%; }
  .log-badge { white-space: nowrap; }
}
table.compare.measure td { font-variant-numeric: tabular-nums; }
table.compare.measure td.area::before { content: none; }

/* ================= card photographs ================= */
.card-media { border-radius: 10px; overflow: hidden; margin-bottom: 14px; aspect-ratio: 16 / 10; background: #0d1626; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.deliver:hover .card-media img, .diff:hover .card-media img, .eng:hover .card-media img, .next-step:hover .card-media img { transform: scale(1.05); }
.deliver, .diff, .eng, .next-step { display: flex; flex-direction: column; }
.deliver h3, .diff h3, .eng h3, .next-step h3 { margin-top: 6px; }

/* ================= the waterfall ================= */
.waterfall { position: relative; display: flex; flex-direction: column; gap: 16px; }
.wf-step {
  position: relative; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(16px, 2vw, 26px);
  align-items: center; border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  padding: 14px; margin-left: calc(var(--i) * 46px);
  transition: border-color .3s ease, transform .3s ease;
}
.wf-step:hover { border-color: var(--gold-2); transform: translateX(4px); }
.wf-step::after {
  content: ""; position: absolute; left: -26px; top: calc(50% - 1px); width: 24px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-2)); opacity: .55;
}
.wf-step:first-child::after { display: none; }
.wf-media { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #0d1626; }
.wf-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.wf-step:hover .wf-media img { transform: scale(1.05); }
.wf-num { position: absolute; left: 10px; top: 10px; font-family: var(--font-display); font-weight: 600; font-size: 12px; letter-spacing: .1em; color: #17120a; background: var(--gold); border-radius: 999px; padding: 4px 10px; }
.wf-body h3 { font-size: clamp(17px, 1.9vw, 22px); margin-bottom: 6px; }
.wf-body p { color: var(--muted); font-size: 13.5px; max-width: 74ch; margin-bottom: 10px; }
.wf-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }
.wf-out { color: var(--green); }
.wf-dur { color: var(--muted-2); }
@media (max-width: 900px) {
  .wf-step { grid-template-columns: 1fr; margin-left: 0; }
  .wf-step::after { display: none; }
}
.card-media.service-media { aspect-ratio: 16 / 7; margin-bottom: 12px; }

/* ================= competitor profile ================= */
.profile-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.profile-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px 24px; }
.profile-card h3 { font-size: 17px; margin-bottom: 14px; }
.profile-card.them h3 { color: var(--muted); }
.profile-card .check li { font-size: 13.5px; }
.profile-card.them .check li::before { background: var(--muted-2); }
@media (max-width: 820px) { .profile-cols { grid-template-columns: 1fr; } }

/* ================= platforms grid ================= */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plat-grid span {
  display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); padding: 14px 16px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
}
.plat-grid b { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: .01em; }
@media (max-width: 1000px) { .plat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .plat-grid { grid-template-columns: 1fr; } }

/* ================= highlight row ================= */
.highlight-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.highlight-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  border: 1px solid var(--gold-2); border-radius: 16px; padding: 22px 22px 24px;
  background: linear-gradient(160deg, rgba(245,194,107,.12), rgba(245,194,107,.02) 60%), var(--surface);
  transition: border-color .3s ease, transform .3s ease;
}
.highlight-card:hover { border-color: var(--gold); }
.hl-k { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.highlight-card b { font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.2; }
.highlight-card span:last-child { color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 900px) { .highlight-row { grid-template-columns: 1fr; } }

/* ================= sample card hover video ================= */
.sample-media { position: relative; }
.sample-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #0d1626; }
.sample-media.is-playing img { opacity: 0; }
.sample-media img { transition: opacity .3s ease; }
