/* Inter, self-hosted.

   Google Fonts' stylesheet is render-blocking and lives on a third origin —
   two DNS+TLS handshakes before the first paint. Inter v20 ships as one
   variable woff2 covering 400-700, so the whole family is a single 48KB
   same-origin file, preloaded from the document head.
   Inter is SIL OFL; self-hosting is permitted. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ═══════════════════════════════════════════════════════════════
   ELARVIX TECHNOLOGIES — Design System
   Black · White · one brand accent · Swiss typography · cinematic
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #08090b;
  --ink-2: #0e1014;
  --ink-3: #15181e;
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --text: #0c0e12;
  --text-2: #4b5160;
  --text-inv: #f3f4f6;
  --text-inv-2: #9aa1ad;
  --accent: #f26a1b;
  --accent-2: #ff8b47;
  --line: rgba(12, 14, 18, 0.1);
  --line-inv: rgba(255, 255, 255, 0.11);
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1320px, calc(100% - 3rem)); margin-inline: auto; }
.container--wide { width: min(1600px, calc(100% - 3rem)); margin-inline: auto; }
.container--narrow { width: min(880px, calc(100% - 3rem)); margin-inline: auto; }

/* ─── Typography ─── */
h1, h2, h3, h4, .display { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; }
.display-xl { font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.95; letter-spacing: -0.045em; }
.display-lg { font-size: clamp(2.6rem, 5.6vw, 5rem); letter-spacing: -0.04em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); letter-spacing: -0.02em; line-height: 1.2; }
h4 { font-size: 1.1rem; letter-spacing: -0.01em; line-height: 1.3; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.55; color: var(--text-2); }
.dark .lead, .lead.inv { color: var(--text-inv-2); }
p { color: var(--text-2); }
.dark p { color: var(--text-inv-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.dark .eyebrow { color: var(--text-inv-2); }
.accent { color: var(--accent); }
.muted { color: var(--text-2); }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.max-45 { max-width: 45ch; }

/* ─── Sections ─── */
.section { padding: clamp(5rem, 10vw, 9rem) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.dark { background: var(--ink); color: var(--text-inv); }
.dark-2 { background: var(--ink-2); color: var(--text-inv); }
.light-2 { background: var(--paper-2); }
.section__head { max-width: 760px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section__head--split { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: end; max-width: none; }
.section__head p { margin-top: 1rem; }
.rule { height: 1px; background: var(--line); }
.dark .rule { background: var(--line-inv); }

/* ─── Buttons ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; letter-spacing: -0.005em;
  padding: 1rem 1.6rem; border-radius: 999px; overflow: hidden;
  background: var(--ink); color: #fff; border: 1px solid var(--ink);
  transition: transform 0.45s var(--ease-out), background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s;
  will-change: transform;
}
.btn .arr { display: inline-block; transition: transform 0.4s var(--ease-out); }
.btn:hover .arr { transform: translateX(5px); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(12,14,18,0.25); }
.btn--outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.dark .btn--outline, .dark-2 .btn--outline, .hero .btn--outline, .page-hero .btn--outline, .cta .btn--outline, .btn--outline.inv { color: #fff; border-color: rgba(255,255,255,0.35); }
.dark .btn--outline:hover, .dark-2 .btn--outline:hover, .hero .btn--outline:hover, .page-hero .btn--outline:hover, .cta .btn--outline:hover, .btn--outline.inv:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 0.7rem 1.2rem; font-size: 0.85rem; }
.btn--lg { padding: 1.2rem 2rem; font-size: 1rem; }
.link {
  display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  color: var(--text); border-bottom: 1px solid transparent; transition: gap 0.35s var(--ease-out), color 0.3s;
}
.link:hover { gap: 0.9rem; color: var(--accent); }
.dark .link { color: #fff; }
.dark .link:hover { color: var(--accent-2); }

/* ═══════════ NAVIGATION ═══════════ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 200; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s;
  color: #fff; border-bottom: 1px solid transparent;
}
.nav.is-light { color: var(--ink); }
.nav.is-scrolled { background: rgba(8, 9, 11, 0.7); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: rgba(255,255,255,0.08); }
.nav.is-scrolled.is-light { background: rgba(255,255,255,0.72); border-color: rgba(12,14,18,0.08); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 0.25rem; }
.nav__links > li { position: relative; }
.nav__links > li > a {
  display: inline-block; padding: 0.6rem 0.9rem; font-size: 0.9rem; font-weight: 500; opacity: 0.85; border-radius: 6px;
  transition: opacity 0.25s, background 0.25s;
}
.nav__links > li > a:hover, .nav__links > li.open > a { opacity: 1; background: rgba(255,255,255,0.08); }
.nav.is-light .nav__links > li > a:hover, .nav.is-light .nav__links > li.open > a { background: rgba(12,14,18,0.06); }
.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav .btn { padding: 0.7rem 1.25rem; font-size: 0.85rem; background: #fff; color: var(--ink); border-color: #fff; }
.nav .btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav.is-light .btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav.is-light .btn:hover { background: var(--accent); border-color: var(--accent); }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav__burger span { width: 24px; height: 1.5px; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.3s; }
.nav__burger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(880px, 92vw); background: #fff; color: var(--text); border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25), 0 0 0 1px rgba(12,14,18,0.06);
  padding: 1.75rem; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 1.5rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease-out), visibility 0.3s;
}
.nav__links > li.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega__intro { background: var(--ink); color: #fff; border-radius: 10px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; }
.mega__intro h4 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.mega__intro p { color: var(--text-inv-2); font-size: 0.9rem; }
.mega__col h5 { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.9rem; }
.mega__col a { display: block; padding: 0.5rem 0; font-size: 0.93rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--line); transition: color 0.25s, padding-left 0.3s var(--ease-out); }
.mega__col a:hover { color: var(--accent); padding-left: 6px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 190; background: var(--ink); color: #fff;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem; display: flex; flex-direction: column;
  transform: translateY(-100%); transition: transform 0.55s var(--ease-out); overflow-y: auto;
}
.drawer.open { transform: translateY(0); }
.drawer a.big { font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; padding: 0.55rem 0; border-bottom: 1px solid var(--line-inv); display: block; }
.drawer .small { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1rem; margin-top: 1.5rem; }
.drawer .small a { color: var(--text-inv-2); font-size: 0.95rem; padding: 0.35rem 0; }
.drawer .btn { margin-top: auto; align-self: flex-start; }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--ink); color: #fff; overflow: hidden; padding: calc(var(--nav-h) + 4rem) 0 5rem;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.14) translate(-1.5%, -1%); } }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,0.35) 0%, rgba(8,9,11,0.15) 40%, rgba(8,9,11,0.92) 100%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; mix-blend-mode: screen; }
.hero__content { position: relative; z-index: 2; }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 56ch; margin: 1.8rem 0 2.4rem; color: rgba(255,255,255,0.75); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__meta { display: flex; gap: 3rem; margin-top: 4rem; padding-top: 1.5rem; border-top: 1px solid var(--line-inv); flex-wrap: wrap; }
.hero__meta div { font-size: 0.8rem; color: var(--text-inv-2); letter-spacing: 0.04em; }
.hero__meta strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -0.01em; margin-bottom: 0.15rem; }
.scroll-hint { position: absolute; right: 2rem; bottom: 2.5rem; z-index: 3; display: flex; align-items: center; gap: 0.75rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-inv-2); writing-mode: vertical-rl; }
.scroll-hint::after { content: ""; width: 1px; height: 54px; background: linear-gradient(180deg, var(--accent), transparent); animation: hint 2s var(--ease) infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Inner-page hero */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: calc(var(--nav-h) + 6rem) 0 5rem; overflow: hidden; min-height: 62vh; display: flex; align-items: flex-end; }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.4; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,0.5), rgba(8,9,11,0.95)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 56ch; margin-top: 1.5rem; color: rgba(255,255,255,0.75); }
.crumbs { display: flex; gap: 0.6rem; font-size: 0.78rem; color: var(--text-inv-2); margin-bottom: 1.5rem; letter-spacing: 0.04em; }
.crumbs a:hover { color: #fff; }

/* ═══════════ AI STATEMENT ═══════════ */
.statement { position: relative; overflow: hidden; }
.statement__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: end; }
.statement h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.statement .lead { margin-top: 1.5rem; }
.net-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.35; pointer-events: none; }

/* Capability cards — no rounded corners; grid with hairlines */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-inv); border-left: 1px solid var(--line-inv); margin-top: 4rem; }
.cap { position: relative; padding: 2.2rem 1.8rem 2.4rem; border-right: 1px solid var(--line-inv); border-bottom: 1px solid var(--line-inv); min-height: 300px; display: flex; flex-direction: column; overflow: hidden; transition: background 0.4s var(--ease); }
.cap::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.cap:hover { background: rgba(255,255,255,0.03); }
.cap:hover::before { transform: scaleX(1); }
.cap__n { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--accent); margin-bottom: auto; }
.cap h3 { margin: 2.5rem 0 0.7rem; font-size: 1.35rem; }
.cap p { font-size: 0.95rem; }
.cap .link { margin-top: 1.4rem; font-size: 0.85rem; opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.4s var(--ease-out); }
.cap:hover .link { opacity: 1; transform: none; }

/* ═══════════ SERVICES ═══════════ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc { position: relative; padding: 2.4rem 2rem 2.2rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; display: flex; flex-direction: column; min-height: 380px; transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease), border-color 0.4s; overflow: hidden; }
.svc::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.svc:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(12,14,18,0.18); border-color: rgba(12,14,18,0.18); }
.svc:hover::after { transform: scaleX(1); }
.svc__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; margin-bottom: 1.6rem; color: var(--ink); }
.svc__icon svg { width: 22px; height: 22px; }
.svc h3 { margin-bottom: 0.7rem; }
.svc p { font-size: 0.95rem; }
.svc ul { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.svc li { font-size: 0.78rem; font-weight: 500; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text-2); transition: border-color 0.3s, color 0.3s; }
.svc:hover li { border-color: rgba(12,14,18,0.25); color: var(--text); }
.svc .link { margin-top: auto; padding-top: 1.6rem; font-size: 0.88rem; }
.svc--feature { background: var(--ink); color: #fff; border-color: var(--ink); grid-column: span 2; }
.svc--feature p, .svc--feature li { color: var(--text-inv-2); border-color: var(--line-inv); }
.svc--feature .svc__icon { background: rgba(255,255,255,0.08); color: #fff; }
.svc--feature .link { color: #fff; }

/* ═══════════ SPLIT / FEATURED ═══════════ */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90vh; }
.split__media { position: relative; overflow: hidden; min-height: 60vh; }
.split__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.split__body { padding: clamp(3rem, 6vw, 6rem); display: flex; flex-direction: column; justify-content: center; }
.split__body h2 { max-width: 14ch; }
.steps { margin-top: 2.5rem; border-top: 1px solid var(--line-inv); }
.step { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line-inv); align-items: baseline; transition: padding-left 0.4s var(--ease-out); }
.step:hover { padding-left: 0.6rem; }
.step span { font-family: var(--font-display); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.1em; }
.step h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.step p { font-size: 0.9rem; }
.light .steps, .light .step { border-color: var(--line); }

/* ═══════════ INDUSTRIES ═══════════ */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: 320px; gap: 4px; }
.ind { position: relative; overflow: hidden; background: var(--ink-3); color: #fff; display: flex; align-items: flex-end; padding: 1.5rem; isolation: isolate; }
.ind img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: transform 1.2s var(--ease-out), opacity 0.6s; }
.ind::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,0) 30%, rgba(8,9,11,0.9)); z-index: 1; transition: opacity 0.5s; }
.ind::after { content: ""; position: absolute; inset: 0; background: rgba(242,106,27,0.0); z-index: 1; transition: background 0.5s; }
.ind__body { position: relative; z-index: 2; width: 100%; }
.ind h3 { font-size: 1.15rem; display: flex; justify-content: space-between; align-items: center; }
.ind h3 .arr { transform: translateX(-8px); opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.35s; }
.ind p { font-size: 0.85rem; color: rgba(255,255,255,0.8); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.4s; }
.ind:hover img { transform: scale(1.08); opacity: 0.5; }
.ind:hover h3 .arr { transform: none; opacity: 1; }
.ind:hover p { max-height: 100px; opacity: 1; margin-top: 0.6rem; }
.ind--wide { grid-column: span 2; }

/* ═══════════ CASE STUDIES ═══════════ */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.case { position: relative; display: block; overflow: hidden; border-radius: 6px; background: var(--ink-3); color: #fff; aspect-ratio: 4 / 3; }
.case--tall { grid-row: span 2; aspect-ratio: auto; min-height: 640px; }
.case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.75; transition: transform 1.3s var(--ease-out), opacity 0.6s; }
.case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,0.05) 35%, rgba(8,9,11,0.92)); }
.case__body { position: absolute; inset: auto 0 0 0; padding: 2rem; z-index: 2; }
.case__tags { display: flex; gap: 0.5rem; margin-bottom: 0.9rem; }
.case__tags span { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.3rem 0.65rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; backdrop-filter: blur(6px); }
.case h3 { font-size: 1.5rem; max-width: 20ch; }
.case p { color: rgba(255,255,255,0.75); margin-top: 0.5rem; max-width: 46ch; font-size: 0.93rem; }
.case__metric { position: absolute; top: 1.5rem; right: 1.5rem; z-index: 2; text-align: right; }
.case__metric strong { display: block; font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; }
.case__metric small { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.case .arr-circle { position: absolute; right: 2rem; bottom: 2rem; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.4); display: grid; place-items: center; transition: background 0.4s, transform 0.5s var(--ease-out); }
.case:hover img { transform: scale(1.06); opacity: 0.85; }
.case:hover .arr-circle { background: var(--accent); border-color: var(--accent); transform: translate(3px, -3px); }

/* Case detail blocks (case studies page) */
.cs { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 4rem 0; border-top: 1px solid var(--line); align-items: start; }
.cs__media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4/3; }
.cs__media img { width: 100%; height: 100%; object-fit: cover; }
.cs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin-top: 1.8rem; }
.cs__grid h5 { font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.4rem; }
.cs__grid p { font-size: 0.92rem; }
.cs__metrics { display: flex; gap: 2.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.cs__metrics strong { display: block; font-family: var(--font-display); font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; }
.cs__metrics small { color: var(--text-2); font-size: 0.78rem; }
.cs:nth-child(even) .cs__media { order: 2; }

/* ═══════════ TECHNOLOGY ECOSYSTEM ═══════════ */
.eco { position: relative; overflow: hidden; }
.eco__grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line-inv); border: 1px solid var(--line-inv); }
.eco__col { background: var(--ink); padding: 2rem 1.5rem 2.2rem; min-height: 320px; transition: background 0.4s; }
.eco__col:hover { background: var(--ink-2); }
.eco__col h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.6rem; }
.eco__col h4::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(242,106,27,0.15); }
.eco__col li { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; padding: 0.55rem 0; border-bottom: 1px solid var(--line-inv); color: rgba(255,255,255,0.85); transition: color 0.3s, padding-left 0.35s var(--ease-out); }
.eco__col li:hover { color: #fff; padding-left: 0.5rem; }
.eco__col li:last-child { border-bottom: 0; }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.12) 1px, transparent 1px); background-size: 28px 28px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.marquee { overflow: hidden; border-block: 1px solid var(--line-inv); padding: 1.2rem 0; margin-top: 4rem; }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; color: rgba(255,255,255,0.5); white-space: nowrap; display: flex; align-items: center; gap: 3rem; }
.marquee__track span::after { content: "◆"; font-size: 0.5rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ═══════════ PHILOSOPHY / ABOUT TEASER ═══════════ */
.philo { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.philo__media { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4/5; }
.philo__media img { width: 100%; height: 100%; object-fit: cover; }
.philo__badge { position: absolute; left: 1.5rem; bottom: 1.5rem; background: #fff; color: var(--ink); padding: 1rem 1.25rem; border-radius: 6px; max-width: 260px; font-size: 0.85rem; box-shadow: 0 20px 40px rgba(0,0,0,0.25); }
.philo__badge strong { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -0.03em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 3.4vw, 3.2rem); letter-spacing: -0.04em; line-height: 1; }
.stat strong sup { font-size: 0.5em; color: var(--accent); vertical-align: super; margin-left: 2px; }
.stat span { font-size: 0.85rem; color: var(--text-2); }
.dark .stats { border-color: var(--line-inv); }
.dark .stat span { color: var(--text-inv-2); }

/* Values (horizontal scroll) */
.values-scroll { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; scrollbar-width: none; }
.values-scroll::-webkit-scrollbar { display: none; }
.value { flex: 0 0 min(360px, 80vw); scroll-snap-align: start; padding: 2.2rem; border: 1px solid var(--line-inv); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.4s, border-color 0.4s; }
.value:hover { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.25); }
.value span { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--accent); }
.value h3 { font-size: 1.6rem; margin-bottom: 0.6rem; }
.value p { font-size: 0.95rem; }

/* ═══════════ INSIGHTS ═══════════ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post { display: block; }
.post__media { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 16/10; background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.post:hover .post__media img { transform: scale(1.06); }
.post__meta { display: flex; gap: 0.75rem; align-items: center; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin: 1.2rem 0 0.6rem; }
.post__meta b { color: var(--accent); font-weight: 700; }
.post h3 { font-size: 1.25rem; transition: color 0.3s; }
.post:hover h3 { color: var(--accent); }
.post p { font-size: 0.92rem; margin-top: 0.5rem; }
.post--feature { grid-column: span 3; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: center; }
.post--feature .post__media { aspect-ratio: 16/9; }
.post--feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 3rem; }
.cats a { font-size: 0.82rem; font-weight: 500; padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.cats a:hover, .cats a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══════════ BIG CTA ═══════════ */
.cta { position: relative; min-height: 80vh; display: flex; align-items: center; background: var(--ink); color: #fff; overflow: hidden; text-align: center; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,9,11,0.3), rgba(8,9,11,0.9)); }
.cta .container { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.6rem, 6vw, 5.6rem); max-width: 16ch; margin-inline: auto; }
.cta .lead { margin: 1.5rem auto 2.5rem; color: rgba(255,255,255,0.75); }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--ink); color: var(--text-inv); padding: 5rem 0 2rem; border-top: 1px solid var(--line-inv); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.6fr; gap: 3rem; padding-bottom: 4rem; border-bottom: 1px solid var(--line-inv); }
.footer__brand img { height: 84px; width: auto; margin-bottom: 1.2rem; }
.footer__brand p { max-width: 34ch; font-size: 0.92rem; }
.footer h5 { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-inv-2); margin-bottom: 1.2rem; }
.footer li a { display: inline-block; padding: 0.3rem 0; font-size: 0.93rem; color: rgba(255,255,255,0.85); transition: color 0.3s, transform 0.3s var(--ease-out); }
.footer li a:hover { color: var(--accent-2); transform: translateX(4px); }
.newsletter p { font-size: 0.9rem; margin-bottom: 1rem; }
.newsletter form { display: flex; border: 1px solid var(--line-inv); border-radius: 999px; overflow: hidden; }
.newsletter input { flex: 1; background: transparent; border: 0; padding: 0.9rem 1.2rem; color: #fff; font: inherit; font-size: 0.9rem; outline: none; min-width: 0; }
.newsletter input::placeholder { color: var(--text-inv-2); }
.newsletter button { padding: 0 1.4rem; background: #fff; color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; transition: background 0.3s, color 0.3s; }
.newsletter button:hover { background: var(--accent); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: 2rem; font-size: 0.8rem; color: var(--text-inv-2); flex-wrap: wrap; }
.footer__bottom nav { display: flex; gap: 1.5rem; }
.footer__bottom a:hover { color: #fff; }

/* ═══════════ FORMS ═══════════ */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form .full { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: transparent; border: 0; border-bottom: 1px solid rgba(12,14,18,0.25);
  padding: 0.8rem 0; outline: none; border-radius: 0; transition: border-color 0.3s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230c0e12' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 1.5rem; }
.form__note { grid-column: span 2; font-size: 0.9rem; color: var(--accent); min-height: 1.4em; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
.contact-info dl { display: grid; gap: 1.6rem; margin-top: 2.5rem; }
.contact-info dt { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 0.3rem; }
.contact-info dd { font-size: 1.05rem; }
.contact-info dd a:hover { color: var(--accent); }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.socials a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ═══════════ MISC COMPONENTS ═══════════ */
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.feature-list > div { background: #fff; padding: 2rem; }
.feature-list h4 { margin-bottom: 0.5rem; }
.feature-list p { font-size: 0.93rem; }
.dark .feature-list { background: var(--line-inv); border-color: var(--line-inv); }
.dark .feature-list > div { background: var(--ink); }
.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-list span { font-size: 0.82rem; padding: 0.45rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; }
.dark .pill-list span { border-color: var(--line-inv); }
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.member__photo { aspect-ratio: 3/4; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter 0.6s, transform 1s var(--ease-out); }
.member:hover .member__photo img { filter: none; transform: scale(1.04); }
.member h4 { margin-top: 1rem; }
.member span { font-size: 0.85rem; color: var(--text-2); }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); transition: padding-left 0.4s var(--ease-out); }
.job:hover { padding-left: 0.75rem; }
.job h4 { font-size: 1.15rem; }
.job span { font-size: 0.9rem; color: var(--text-2); }
.job .arr-circle { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.job:hover .arr-circle { background: var(--ink); color: #fff; border-color: var(--ink); }
.dept-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line-inv); border: 1px solid var(--line-inv); }
.dept-grid > * { background: var(--ink); padding: 1.6rem 1rem; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; transition: background 0.3s, color 0.3s; }
.dept-grid > *:hover { background: var(--accent); }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 260px; gap: 6px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery > *:first-child { grid-row: span 2; }
.timeline { border-left: 1px solid var(--line); padding-left: 2rem; display: grid; gap: 2rem; }
.timeline div { position: relative; }
.timeline div::before { content: ""; position: absolute; left: calc(-2rem - 5px); top: 0.5rem; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline strong { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.2em; color: var(--accent); }
.timeline h4 { margin: 0.3rem 0; }
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.product { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: grid; grid-template-rows: 240px 1fr; transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.product:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -25px rgba(12,14,18,0.25); }
.product img { width: 100%; height: 100%; object-fit: cover; }
.product__body { padding: 1.8rem; }
.product__body span { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.product__body h3 { margin: 0.5rem 0 0.6rem; }
.product__body p { font-size: 0.93rem; }
.quote { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; max-width: 26ch; }
.quote + cite { display: block; margin-top: 1.5rem; font-style: normal; font-size: 0.9rem; color: var(--text-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.img-block { border-radius: 6px; overflow: hidden; }
.img-block img { width: 100%; height: 100%; object-fit: cover; }
.img-block.tall { aspect-ratio: 4/5; }
.img-block.wide { aspect-ratio: 16/9; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 3rem; align-items: center; justify-content: space-between; opacity: 0.55; }
.logo-strip span { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-size: 1.2rem; }

/* ═══════════ MOTION ═══════════ */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out); }
.reveal-img.in { clip-path: inset(0 0 0 0); }
.d1 { transition-delay: 0.1s; } .d2 { transition-delay: 0.2s; } .d3 { transition-delay: 0.3s; } .d4 { transition-delay: 0.4s; } .d5 { transition-delay: 0.5s; }
.mask-lines .line { display: block; overflow: hidden; }
.mask-lines .line > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.mask-lines.in .line:nth-child(1) > span { transform: none; transition-delay: 0.05s; }
.mask-lines.in .line:nth-child(2) > span { transform: none; transition-delay: 0.15s; }
.mask-lines.in .line:nth-child(3) > span { transform: none; transition-delay: 0.25s; }
.cursor { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, opacity 0.3s; mix-blend-mode: difference; opacity: 0; }
.cursor.on { opacity: 1; }
.cursor.big { width: 44px; height: 44px; background: #fff; }
.page-fade { animation: pagein 0.8s var(--ease-out) both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .reveal, .reveal-img, .mask-lines .line > span { opacity: 1; transform: none; clip-path: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1200px) {
  .caps { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; }
  .ind--wide { grid-column: span 1; }
  .eco__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand, .newsletter { grid-column: span 3; }
  .team { grid-template-columns: repeat(3, 1fr); }
  .dept-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav .btn { display: none; }
  .statement__grid, .split, .philo, .two-col, .contact-grid, .cases, .cs, .products, .post--feature { grid-template-columns: 1fr; }
  .split__media { min-height: 50vh; }
  .split__media img { position: relative; inset: auto; height: 100%; }
  .case--tall { grid-row: auto; min-height: 0; aspect-ratio: 4/3; }
  .cs:nth-child(even) .cs__media { order: 0; }
  .services { grid-template-columns: 1fr 1fr; }
  .svc--feature { grid-column: span 2; }
  .posts { grid-template-columns: 1fr 1fr; }
  .post--feature { grid-column: span 2; }
  .philo__media { aspect-ratio: 16/10; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .job { grid-template-columns: 1fr auto; }
  .job span:nth-of-type(2) { display: none; }
  .hero__meta { gap: 1.5rem 2rem; }
  .section__head--split { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 640px) {
  .container, .container--wide { width: calc(100% - 2.5rem); }
  .caps, .services, .posts, .industries, .eco__grid, .feature-list, .form, .stats, .team { grid-template-columns: 1fr; }
  .svc--feature, .post--feature, .form .full, .form__note { grid-column: span 1; }
  .industries { grid-auto-rows: 240px; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand, .newsletter { grid-column: span 1; }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-hint { display: none; }
  .hero { padding-bottom: 3.5rem; }
  .split__body { padding: 3rem 1.25rem; }
  .cta { min-height: 70vh; }
  .cs__grid { grid-template-columns: 1fr; }
  .cursor { display: none; }
  .gallery { grid-template-columns: 1fr; }
  .gallery > *:first-child { grid-row: auto; }
}

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V2 â€” cinematic media, AI visual system, new sections
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root { --cyan: #22d3ee; --cyan-dim: rgba(34, 211, 238, 0.14); }

/* Background media (poster image + lazily attached video) */
.bg-media { position: absolute; inset: 0; overflow: hidden; }
.bg-media img, .bg-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-media img { opacity: 0.5; transform: scale(1.06); animation: kenburns 26s ease-in-out infinite alternate; }
.bg-media video { opacity: 0; transition: opacity 1.4s var(--ease); }
.bg-media video.is-ready { opacity: 0.6; }
.bg-media.has-video img { animation: none; }
.bg-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,0.55) 0%, rgba(8,9,11,0.35) 45%, rgba(8,9,11,0.92) 100%); }
.hero .bg-media img { opacity: 0.55; }
.hero .bg-media video.is-ready { opacity: 0.7; }
.cta .bg-media::after { background: radial-gradient(ellipse at center, rgba(8,9,11,0.35), rgba(8,9,11,0.9)); }
.page-hero .bg-media img { opacity: 0.4; }
.page-hero .bg-media video.is-ready { opacity: 0.5; }

/* Editorial capability cards */
.cap__glyph { width: 40px; height: 40px; margin-bottom: auto; color: var(--accent); opacity: 0.9; transition: color 0.4s; }
.cap__glyph svg { width: 100%; height: 100%; }
.cap .cap__n { position: absolute; top: 1.6rem; right: 1.6rem; margin: 0; color: var(--text-inv-2); }
.cap:hover .cap__glyph { color: var(--cyan); }

/* AI Stack flow */
.stack { position: relative; margin-top: 4rem; }
.stack__row { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.stack__node { position: relative; padding: 2rem 1.4rem 2.2rem; text-align: center; }
.stack__node::before { content: ""; position: absolute; top: 3.15rem; left: 50%; width: 100%; height: 1px; background: rgba(255,255,255,0.14); z-index: 0; }
.stack__node:nth-child(5)::before { display: none; }
.stack__node::after { content: ""; position: absolute; top: 3.15rem; left: 50%; width: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--cyan)); z-index: 1; transition: width 1.1s var(--ease-out); }
.stack__node:nth-child(5)::after { display: none; }
.stack.in .stack__node:nth-child(1)::after { width: 100%; transition-delay: 0.3s; }
.stack.in .stack__node:nth-child(2)::after { width: 100%; transition-delay: 1.2s; }
.stack.in .stack__node:nth-child(3)::after { width: 100%; transition-delay: 2.1s; }
.stack.in .stack__node:nth-child(4)::after { width: 100%; transition-delay: 3s; }
.stack__dot { position: relative; z-index: 2; width: 2.3rem; height: 2.3rem; margin: 0 auto 1.6rem; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: var(--ink); display: grid; place-items: center; transition: border-color 0.5s, box-shadow 0.5s; }
.stack__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.35); transition: background 0.5s, transform 0.5s; }
.stack.in .stack__dot { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(242,106,27,0.12), 0 0 30px rgba(242,106,27,0.35); }
.stack.in .stack__dot::before { background: var(--accent); transform: scale(1.3); }
.stack.in .stack__node:nth-child(2) .stack__dot, .stack.in .stack__node:nth-child(2) .stack__dot::before { transition-delay: 1.2s; }
.stack.in .stack__node:nth-child(3) .stack__dot, .stack.in .stack__node:nth-child(3) .stack__dot::before { transition-delay: 2.1s; }
.stack.in .stack__node:nth-child(4) .stack__dot, .stack.in .stack__node:nth-child(4) .stack__dot::before { transition-delay: 3s; }
.stack.in .stack__node:nth-child(5) .stack__dot { transition-delay: 3.9s; border-color: var(--cyan); box-shadow: 0 0 0 6px var(--cyan-dim), 0 0 30px rgba(34,211,238,0.35); }
.stack.in .stack__node:nth-child(5) .stack__dot::before { transition-delay: 3.9s; background: var(--cyan); }
.stack__node h4 { font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: #fff; margin-bottom: 0.6rem; }
.stack__node p { font-size: 0.88rem; }
.stack__node small { display: block; margin-top: 0.8rem; font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--accent); }
.stack__pulse { position: absolute; top: 3.15rem; left: 0; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); opacity: 0; z-index: 2; }
.stack.in .stack__pulse { animation: pulseflow 5s linear 4.5s infinite; }
@keyframes pulseflow { 0% { left: 0; opacity: 0; } 5% { opacity: 1; } 95% { opacity: 1; } 100% { left: calc(100% - 60px); opacity: 0; } }

/* Principles (replaces stats) */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 3rem; }
.principles > div { background: #fff; padding: 1.8rem 1.6rem; }
.principles strong { display: block; font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.22em; color: var(--accent); margin-bottom: 0.6rem; }
.principles p { font-size: 0.92rem; }
.dark .principles { background: var(--line-inv); border-color: var(--line-inv); }
.dark .principles > div { background: var(--ink); }

/* Why Elarvix */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-inv); border: 1px solid var(--line-inv); margin-top: 4rem; }
.why__item { background: var(--ink); padding: 2.4rem 1.8rem 2.6rem; position: relative; overflow: hidden; transition: background 0.4s; }
.why__item::before { content: attr(data-n); position: absolute; right: 1rem; top: 0.4rem; font-family: var(--font-display); font-size: 5rem; font-weight: 800; letter-spacing: -0.05em; color: rgba(255,255,255,0.05); transition: color 0.5s; }
.why__item:hover { background: var(--ink-2); }
.why__item:hover::before { color: rgba(242,106,27,0.18); }
.why__item h3 { font-size: 1.35rem; margin: 3.5rem 0 0.7rem; }
.why__item p { font-size: 0.95rem; }

/* How we work â€” sticky storytelling */
.how { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
.how__sticky { position: sticky; top: calc(var(--nav-h) + 3rem); }
.how__list { position: relative; padding-left: 3rem; }
.how__track { position: absolute; left: 0.55rem; top: 0.6rem; bottom: 0.6rem; width: 1px; background: var(--line); }
.how__fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(180deg, var(--accent), var(--cyan)); transition: height 0.2s linear; }
.how__step { position: relative; padding: 2rem 0 2.4rem; border-bottom: 1px solid var(--line); opacity: 0.4; transition: opacity 0.5s; }
.how__step.on { opacity: 1; }
.how__step::before { content: ""; position: absolute; left: -3rem; top: 2.5rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid var(--line); background: #fff; transition: border-color 0.4s, box-shadow 0.4s; }
.how__step.on::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--accent); }
.how__step span { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.22em; color: var(--accent); }
.how__step h3 { font-size: 1.6rem; margin: 0.4rem 0 0.5rem; }
.how__step p { font-size: 1rem; max-width: 46ch; }

/* What we build */
.build-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; gap: 6px; }
.build { position: relative; overflow: hidden; background: var(--ink-3); color: #fff; display: flex; align-items: flex-end; padding: 1.5rem; isolation: isolate; border-radius: 4px; }
.build img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: transform 1.2s var(--ease-out), opacity 0.6s; }
.build::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,9,11,0.05) 35%, rgba(8,9,11,0.92)); z-index: 1; }
.build__body { position: relative; z-index: 2; width: 100%; }
.build h3 { font-size: 1.2rem; display: flex; justify-content: space-between; align-items: center; }
.build h3 .arr { transform: translateX(-8px); opacity: 0; transition: transform 0.45s var(--ease-out), opacity 0.35s; }
.build p { font-size: 0.85rem; color: rgba(255,255,255,0.8); max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.6s var(--ease-out), opacity 0.4s, margin 0.4s; }
.build:hover img { transform: scale(1.07); opacity: 0.45; }
.build:hover h3 .arr { transform: none; opacity: 1; }
.build:hover p { max-height: 90px; opacity: 1; margin-top: 0.5rem; }
.build--wide { grid-column: span 2; }

/* Service cards V2 */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.svc { display: flex; flex-direction: column; padding: 0; min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.dark .svc { background: var(--ink-2); border-color: var(--line-inv); color: #fff; }
.svc__media { aspect-ratio: 16/9; overflow: hidden; background: var(--ink-3); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85); transition: transform 1.2s var(--ease-out), filter 0.6s; }
.svc:hover .svc__media img { transform: scale(1.06); filter: saturate(1); }
.svc__body { padding: 1.6rem 1.6rem 1.7rem; position: relative; flex: 1; }
.svc__tag { font-family: var(--font-display); font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.svc__body h3 { margin: 0.5rem 0 0.5rem; padding-right: 3rem; }
.svc__body p { font-size: 0.92rem; }
.dark .svc__body p { color: var(--text-inv-2); }
.svc .arr-circle { position: absolute; right: 1.4rem; top: 1.4rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.5s var(--ease-out); }
.dark .svc .arr-circle { border-color: var(--line-inv); }
.svc:hover .arr-circle { background: var(--accent); border-color: var(--accent); color: #fff; transform: translate(3px, -3px); }

/* Interactive technology ecosystem */
.eco__col li { position: relative; cursor: default; }
.eco__col li::after { content: ""; position: absolute; right: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-50%) scale(0); transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.eco__col li:hover { color: #fff; padding-left: 0.6rem; text-shadow: 0 0 24px rgba(242,106,27,0.5); }
.eco__col li:hover::after { transform: translateY(-50%) scale(1); box-shadow: 0 0 0 5px rgba(242,106,27,0.15), 0 0 18px rgba(242,106,27,0.6); }
.eco__col:hover h4::before { animation: ping 1.2s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(242,106,27,0.5); } 100% { box-shadow: 0 0 0 12px rgba(242,106,27,0); } }

/* Domain cards */
.domains { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.domain { display: block; border: 1px solid var(--line-inv); background: var(--ink-2); border-radius: 4px; overflow: hidden; transition: transform 0.5s var(--ease-out), border-color 0.4s; }
.domain:hover { transform: translateY(-5px); border-color: rgba(242,106,27,0.5); }
.domain__media { aspect-ratio: 4/3; overflow: hidden; }
.domain__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 1.2s var(--ease-out), opacity 0.5s; }
.domain:hover .domain__media img { transform: scale(1.06); opacity: 1; }
.domain__body { padding: 1.4rem 1.4rem 1.6rem; }
.domain__body h3 { font-size: 1.1rem; margin-bottom: 0.4rem; display: flex; justify-content: space-between; align-items: center; }
.domain__body h3 .arr { color: var(--accent); transform: translateX(-6px); opacity: 0; transition: transform 0.4s var(--ease-out), opacity 0.3s; }
.domain:hover h3 .arr { transform: none; opacity: 1; }
.domain__body p { font-size: 0.88rem; }

/* Typographic statement */
.type-statement { padding: clamp(5rem, 12vw, 10rem) 0; overflow: hidden; }
.type-statement p { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 8.5vw, 8rem); line-height: 0.98; letter-spacing: -0.045em; color: #fff; }
.type-statement p.outline { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.45); }
.type-statement p.accent-w { color: var(--accent); }

/* Dashboard mockup ("Technology in action") */
.dash-wrap { perspective: 1600px; }
.dash { background: #0c0e12; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 200px 1fr; box-shadow: 0 60px 120px -40px rgba(0,0,0,0.8); transform: rotateX(4deg) rotateY(-4deg); transition: transform 1s var(--ease-out); font-size: 0.78rem; color: #cfd3da; text-align: left; }
.dash-wrap:hover .dash { transform: rotateX(0) rotateY(0); }
.dash__side { background: #0a0c10; border-right: 1px solid rgba(255,255,255,0.08); padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.dash__side .lg { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-weight: 800; letter-spacing: 0.1em; color: #fff; margin-bottom: 1.2rem; font-size: 0.75rem; }
.dash__side .lg i { width: 18px; height: 18px; background: var(--accent); border-radius: 4px; display: inline-block; }
.dash__side a { padding: 0.5rem 0.7rem; border-radius: 6px; color: #8b93a1; }
.dash__side a.on { background: rgba(255,255,255,0.06); color: #fff; }
.dash__main { padding: 1.2rem 1.4rem 1.4rem; display: grid; gap: 1rem; }
.dash__top { display: flex; justify-content: space-between; align-items: center; }
.dash__top h5 { font-family: var(--font-display); font-size: 0.95rem; color: #fff; }
.dash__top .status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.7rem; color: #9aa1ad; }
.dash__top .status i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,0.15); }
.dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem; }
.kpi { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 0.8rem 0.9rem; }
.kpi span { display: block; font-size: 0.66rem; color: #8b93a1; letter-spacing: 0.06em; text-transform: uppercase; }
.kpi strong { display: block; font-family: var(--font-display); font-size: 1.25rem; color: #fff; margin: 0.25rem 0 0.15rem; letter-spacing: -0.02em; }
.kpi em { font-style: normal; font-size: 0.68rem; color: #34d399; }
.kpi em.dn { color: #f87171; }
.dash__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0.7rem; }
.panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 8px; padding: 0.9rem 1rem; }
.panel h6 { font-size: 0.7rem; color: #9aa1ad; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.7rem; display: flex; justify-content: space-between; }
.panel h6 b { color: var(--cyan); font-weight: 600; }
.panel svg { width: 100%; height: auto; display: block; }
.insight { display: grid; grid-template-columns: 8px 1fr; gap: 0.6rem; padding: 0.55rem 0; border-top: 1px solid rgba(255,255,255,0.06); align-items: start; }
.insight i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 0.3rem; }
.insight i.c { background: var(--cyan); }
.insight strong { color: #fff; font-weight: 600; display: block; font-size: 0.75rem; }
.insight span { color: #8b93a1; font-size: 0.7rem; }
.dash path.line { stroke-dasharray: 700; stroke-dashoffset: 700; }
.dash.in path.line { animation: drawline 2.4s var(--ease-out) forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.dash.in .bars rect { animation: growbar 1.2s var(--ease-out) backwards; transform-origin: 50% 100%; transform-box: fill-box; }
@keyframes growbar { from { transform: scaleY(0); } }

/* Video in split layouts */
.split__media .bg-media img { animation: none; transform: none; opacity: 0.85; }
.split__media .bg-media video.is-ready { opacity: 0.9; }
.split__media .bg-media::after { background: linear-gradient(180deg, rgba(8,9,11,0.1), rgba(8,9,11,0.5)); }

@media (max-width: 1100px) {
  .build-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
  .why__grid, .principles, .domains { grid-template-columns: repeat(2, 1fr); }
  .stack__row { grid-template-columns: 1fr; }
  .stack__node { text-align: left; padding: 1.2rem 0 1.4rem 3.4rem; }
  .stack__node::before { left: 1.15rem; top: 50%; width: 1px; height: 100%; }
  .stack__node::after { left: 1.15rem; top: 50%; width: 1px; height: 0; transition-property: height; }
  .stack.in .stack__node:nth-child(n)::after { height: 100%; width: 1px; }
  .stack__dot { position: absolute; left: 0; top: 1.3rem; margin: 0; }
  .stack__pulse { display: none; }
  .how { grid-template-columns: 1fr; gap: 2rem; }
  .how__sticky { position: static; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .dash { grid-template-columns: 1fr; transform: none; }
  .dash__side { display: none; }
  .dash__kpis { grid-template-columns: repeat(2, 1fr); }
  .dash__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .build-grid, .why__grid, .principles, .domains, .svc-grid { grid-template-columns: 1fr; }
  .build--wide { grid-column: span 1; }
  .build-grid { grid-auto-rows: 220px; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V3 THEME â€” White + Orange Â· single font (Inter) Â· refined type scale
   This layer intentionally overrides the earlier dark design system.
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --charcoal: #171717;
  --charcoal-2: #1c1c1c;
  --white: #ffffff;
  --off-white: #fafafa;
  --warm-gray: #f7f7f5;
  --light-gray: #f3f3f3;
  --border: #eaeaea;
  --border-strong: #dcdcdc;
  --accent: #F26A21;
  --accent-hover: #d95c19;
  --accent-soft: rgba(242, 106, 33, 0.1);
  --cyan: #0ea5b7;
  /* remap legacy tokens so every ex-dark section turns light */
  --ink: #ffffff;
  --ink-2: #f7f7f5;
  --ink-3: #f3f3f3;
  --paper: #ffffff;
  --paper-2: #f3f3f3;
  --text: #171717;
  --text-2: #5c5c5c;
  --text-inv: #171717;
  --text-inv-2: #5c5c5c;
  --line: rgba(23, 23, 23, 0.1);
  --line-inv: rgba(23, 23, 23, 0.1);
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-card: 0 1px 2px rgba(23,23,23,0.04), 0 10px 30px -18px rgba(23,23,23,0.16);
  --shadow-card-hover: 0 2px 4px rgba(23,23,23,0.05), 0 22px 44px -22px rgba(23,23,23,0.22);
}
body { background: var(--white); color: var(--text); font-size: 1rem; line-height: 1.65; }
::selection { background: var(--accent); color: #fff; }

/* â”€â”€â”€ Typography system (one family, refined scale) â”€â”€â”€ */
h1, h2, h3, h4, .display, .display-xl, .display-lg { font-family: var(--font-body); letter-spacing: -0.02em; line-height: 1.12; }
h1, .display-xl, .display-lg { font-size: clamp(2.25rem, 1.45rem + 2.6vw, 4.25rem); font-weight: 700; line-height: 1.08; }
h2 { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 3rem); font-weight: 600; }
h3 { font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.875rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.statement h2 { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 3rem); }
.cta h2 { font-size: clamp(1.875rem, 1.3rem + 1.6vw, 3rem); }
.hero h1 { max-width: 16ch; }
.lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.6; color: var(--text-2); }
p { color: var(--text-2); }
.dark p, .dark-2 p, .dark .lead, .lead.inv { color: var(--text-2); }
.eyebrow, .svc__tag, .footer h5, .mega__col h5, .principles strong, .stack__node h4, .cap__n, .cs__grid h5, .contact-info dt, .field label, .value span, .timeline strong, .case__tags span, .post__meta, .stack__node small, .product__body span, .why__item h5, .kpi span, .panel h6, .crumbs { letter-spacing: 0.1em; font-weight: 500; }
.eyebrow { font-size: 0.75rem; color: var(--text-2); }
.eyebrow::before { background: var(--accent); }
.dark .eyebrow, .dark-2 .eyebrow { color: var(--text-2); }
.type-statement p { font-size: clamp(2rem, 1.4rem + 2vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.1; }
.type-statement p.outline { color: transparent; -webkit-text-stroke: 1px rgba(23,23,23,0.35); }
.type-statement p.accent-w { color: var(--accent); }
.drawer a.big { font-size: clamp(1.75rem, 6vw, 2.25rem); font-weight: 600; }
.how__step h3, .value h3 { font-size: 1.5rem; }
.post--feature h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
.why__item h3 { font-size: 1.25rem; }
.why__item::before { font-size: 4rem; color: rgba(23,23,23,0.05); }
.why__item:hover::before { color: var(--accent-soft); }

/* â”€â”€â”€ Sections: bright rhythm â”€â”€â”€ */
.section { color: var(--text); }
.dark { background: var(--white); color: var(--text); }
.dark-2 { background: var(--warm-gray); color: var(--text); }
.light-2 { background: var(--light-gray); }
.dark .rule, .dark .stats { border-color: var(--border); background: var(--border); }
.dark .link, .dark-2 .link { color: var(--text); }
.dark .link:hover, .dark-2 .link:hover { color: var(--accent); }
.dots { background-image: radial-gradient(rgba(23,23,23,0.12) 1px, transparent 1px); }

/* â”€â”€â”€ Navigation: always white â”€â”€â”€ */
.nav, .nav.is-light, .nav.is-scrolled, .nav.is-scrolled.is-light { color: var(--text); background: rgba(255,255,255,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.nav__links > li > a { font-weight: 500; opacity: 1; color: var(--text); position: relative; }
.nav__links > li > a::after { content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.25rem; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out); }
.nav__links > li > a:hover, .nav__links > li.open > a, .nav.is-light .nav__links > li > a:hover, .nav.is-light .nav__links > li.open > a { color: var(--accent); background: transparent; }
.nav__links > li > a[aria-current="page"] { color: var(--accent); }
.nav__links > li > a[aria-current="page"]::after, .nav__links > li > a:hover::after { transform: scaleX(1); }
.nav .btn, .nav.is-light .btn { background: var(--accent); color: #fff; border-color: var(--accent); }
.nav .btn:hover, .nav.is-light .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.nav__burger span { background: var(--text); }
.drawer { background: var(--white); color: var(--text); }
.drawer a.big { border-color: var(--border); }
.drawer .small a { color: var(--text-2); }
.mega { box-shadow: 0 24px 60px -20px rgba(23,23,23,0.25), 0 0 0 1px var(--border); }
.mega__intro { background: var(--charcoal); color: #fff; }
.mega__intro p { color: #a3a3a3; }
.mega__intro .link { color: #fff; }
.mega__intro .link:hover { color: var(--accent); }

/* â”€â”€â”€ Buttons: one unified system â”€â”€â”€ */
.btn { background: var(--accent); border: 1px solid var(--accent); color: #fff; border-radius: var(--radius-sm); font-weight: 600; font-family: var(--font-body); box-shadow: 0 6px 18px -8px rgba(242,106,33,0.55); }
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--light, .btn--outline, .dark .btn--outline, .dark-2 .btn--outline, .hero .btn--outline, .page-hero .btn--outline, .btn--outline.inv { background: var(--white); color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn--light:hover, .btn--outline:hover, .dark .btn--outline:hover, .dark-2 .btn--outline:hover, .hero .btn--outline:hover, .page-hero .btn--outline:hover, .btn--outline.inv:hover { background: var(--white); color: var(--accent); border-color: var(--accent); }
.cta .btn--outline, .cta .btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.cta .btn--outline:hover, .cta .btn--light:hover { color: var(--accent); border-color: var(--accent); background: transparent; }
.link { color: var(--text); }
.link:hover { color: var(--accent); }
.arr, .arr-circle { color: inherit; }
.newsletter button { background: var(--accent); color: #fff; }
.newsletter button:hover { background: var(--accent-hover); color: #fff; }

/* â”€â”€â”€ Hero (white, restrained media) â”€â”€â”€ */
.hero, .page-hero { background: var(--off-white); color: var(--text); }
.hero .bg-media img, .page-hero .bg-media img, .page-hero__media img { opacity: 0.16; }
.hero .bg-media video.is-ready, .page-hero .bg-media video.is-ready { opacity: 0.16; filter: grayscale(0.4); }
.hero .bg-media::after, .page-hero .bg-media::after, .page-hero__media::after { background: linear-gradient(180deg, rgba(250,250,250,0.55) 0%, rgba(250,250,250,0.6) 45%, rgba(250,250,250,0.98) 100%); }
.hero__canvas { mix-blend-mode: multiply; opacity: 0.35; }
.hero .lead, .page-hero .lead { color: var(--text-2); }
.hero__meta { border-top-color: var(--border); }
.hero__meta div { color: var(--text-2); }
.hero__meta strong { color: var(--text); font-weight: 600; }
.scroll-hint { color: var(--text-2); }
.crumbs { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.hero .grad, h1 .accent, h2 .accent { color: var(--accent); }

/* â”€â”€â”€ Cards: one unified style â”€â”€â”€ */
.svc, .dark .svc, .product, .domain, .post__media, .cs__media, .img-block, .philo__media, .member__photo, .gallery img { border-radius: var(--radius-md); }
.svc, .dark .svc { background: var(--white); border: 1px solid var(--border); box-shadow: var(--shadow-card); color: var(--text); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease), border-color 0.35s; }
.svc:hover, .dark .svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--accent); }
.svc__body p, .dark .svc__body p { color: var(--text-2); }
.svc .arr-circle, .dark .svc .arr-circle { border-color: var(--border-strong); color: var(--text); }
.svc:hover .arr-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc__media { background: var(--light-gray); }
.svc__media img { filter: none; }
.domain { background: var(--white); border-color: var(--border); box-shadow: var(--shadow-card); }
.domain:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); }
.domain__media img { opacity: 1; }
.product { border-color: var(--border); box-shadow: var(--shadow-card); background: var(--white); }
.product:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); }
.caps { border-color: var(--border); }
.cap { border-color: var(--border); background: var(--white); }
.cap:hover { background: var(--off-white); }
.cap__n { color: var(--text-2); }
.cap__glyph { color: var(--accent); }
.cap:hover .cap__glyph { color: var(--accent); }
.feature-list, .principles, .why__grid, .eco__grid, .dark .feature-list, .dark .principles { background: var(--border); border-color: var(--border); }
.feature-list > div, .principles > div, .why__item, .eco__col, .dark .feature-list > div, .dark .principles > div, .dept-grid > * { background: var(--white); }
.why__item:hover, .eco__col:hover { background: var(--off-white); }
.principles strong { color: var(--accent); }
.value { border-color: var(--border); background: var(--white); border-radius: var(--radius-md); }
.value:hover { background: var(--white); border-color: var(--accent); }
.eco__col li { color: var(--text); border-color: var(--border); }
.eco__col li:hover { color: var(--accent); text-shadow: none; }
.marquee { border-color: var(--border); }
.marquee__track span { color: var(--text-2); }
.dept-grid { background: var(--border); border-color: var(--border); }
.dept-grid > *:hover { background: var(--accent); color: #fff; }
.pill-list span, .dark .pill-list span, .cats a { border-color: var(--border-strong); color: var(--text); background: var(--white); }
.cats a:hover, .cats a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.svc li { border-color: var(--border-strong); }
.steps, .step, .light .steps, .light .step { border-color: var(--border); }
.step span { color: var(--accent); }
.timeline { border-color: var(--border); }
.job, .jobs { border-color: var(--border); }
.job .arr-circle { border-color: var(--border-strong); }
.job:hover .arr-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.socials a { border-color: var(--border-strong); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.philo__badge { box-shadow: var(--shadow-card-hover); border: 1px solid var(--border); }
.member__photo img { filter: none; }
.post h3 { color: var(--text); }
.post__meta b { color: var(--accent); }
.case { border-radius: var(--radius-md); }
.case::after { background: linear-gradient(180deg, rgba(23,23,23,0.0) 40%, rgba(23,23,23,0.85)); }
.build::before { background: linear-gradient(180deg, rgba(23,23,23,0.0) 40%, rgba(23,23,23,0.85)); }
.build img { opacity: 0.9; }
.build:hover img { opacity: 0.8; }
.build, .build-grid { border-radius: var(--radius-md); }
.build:hover h3 .arr, .domain:hover h3 .arr, .build h3 .arr { color: var(--accent); }
.case:hover .arr-circle, .case .arr-circle:hover { background: var(--accent); border-color: var(--accent); }

/* â”€â”€â”€ AI stack + visuals on white â”€â”€â”€ */
.stack__node::before { background: var(--border-strong); }
.stack__dot { background: var(--white); border-color: var(--border-strong); }
.stack__dot::before { background: var(--border-strong); }
.stack.in .stack__dot { border-color: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); }
.stack.in .stack__node:nth-child(5) .stack__dot { border-color: var(--cyan); box-shadow: 0 0 0 6px rgba(14,165,183,0.14); }
.stack__node h4 { color: var(--text); font-size: 0.8rem; }
.stack__node small { color: var(--accent); }
.stack__pulse { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.split__media .bg-media::after { background: linear-gradient(180deg, rgba(23,23,23,0.05), rgba(23,23,23,0.35)); }
.how__step::before { background: var(--white); border-color: var(--border-strong); }
.how__step.on::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--accent); }
.how__track { background: var(--border); }
.how__step { border-color: var(--border); }
.dash { border-radius: var(--radius-md); box-shadow: 0 30px 70px -30px rgba(23,23,23,0.45), 0 0 0 1px var(--border); }

/* â”€â”€â”€ Forms â”€â”€â”€ */
.field label { color: var(--text); font-size: 0.78rem; }
.field input, .field select, .field textarea { background: var(--white); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.85rem 1rem; color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field select { background-position: right 0.9rem center; padding-right: 2.4rem; }
.form__note { color: var(--accent); }
.contact-info dd a:hover { color: var(--accent); }

/* â”€â”€â”€ Final CTA + Footer: charcoal ending â”€â”€â”€ */
.cta { background: var(--charcoal); color: #fff; --text-2: #b3b3b3; }
.cta .eyebrow { color: #b3b3b3; }
.cta .lead { color: #c9c9c9; }
.cta .bg-media img { opacity: 0.35; }
.cta .bg-media video.is-ready { opacity: 0.45; }
.cta .bg-media::after { background: radial-gradient(ellipse at center, rgba(23,23,23,0.45), rgba(23,23,23,0.92)); }
.footer { background: var(--charcoal); color: #fff; border-top: 1px solid rgba(255,255,255,0.08); --line-inv: rgba(255,255,255,0.12); --text-inv-2: #a3a3a3; }
.footer p, .footer__copy { color: #a3a3a3; }
.footer h5 { color: #8a8a8a; }
.footer li a { color: #e5e5e5; }
.footer li a:hover { color: var(--accent); }
.footer__top, .footer__bottom { border-color: rgba(255,255,255,0.1); }
.footer__bottom { color: #8a8a8a; }
.footer__bottom a:hover { color: #fff; }
.newsletter form { border-color: rgba(255,255,255,0.18); }
.newsletter input { color: #fff; }
.newsletter input::placeholder { color: #8a8a8a; }
.newsletter p { color: #a3a3a3; }
.section.dark .newsletter form { border-color: var(--border-strong); }
.section.dark .newsletter input { color: var(--text); }
.section.dark .newsletter input::placeholder { color: var(--text-2); }

/* â”€â”€â”€ Misc â”€â”€â”€ */
.cursor { background: var(--accent); mix-blend-mode: normal; opacity: 0.85; }
.cursor.big { background: rgba(242,106,33,0.25); }
@media (max-width: 640px) {
  h1, .display-xl, .display-lg { font-size: clamp(2.25rem, 8vw, 2.625rem); }
  h2 { font-size: clamp(1.875rem, 7vw, 2.125rem); }
  h3 { font-size: clamp(1.375rem, 5vw, 1.625rem); }
  body { font-size: 0.97rem; }
  .type-statement p { font-size: 2rem; }
}


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V4 NAV â€” unified mega-menu system (desktop hover, mobile accordion)
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
.nav__links > li > a { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav__links .chev { width: 11px; height: 11px; opacity: 0.6; transition: transform 0.25s var(--ease-out), opacity 0.25s; }
.nav__links > li.open > a .chev, .nav__links > li > a:hover .chev { transform: rotate(180deg); opacity: 1; }
.nav__links > li > a::after { left: 0.9rem; right: 0.9rem; }

/* container */
.mega {
  position: absolute; top: 100%; left: 50%; translate: -50% 0; transform: translateY(6px);
  padding: 0; display: block; width: auto; grid-template-columns: none; gap: 0;
  background: #fff; color: var(--text); border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 24px 60px -24px rgba(23,23,23,0.28), 0 6px 18px -12px rgba(23,23,23,0.12);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.22s var(--ease-out), visibility 0.2s;
  margin-top: 10px;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }  /* hover bridge */
.nav__links > li.open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.mega--sm { width: 320px; }
.mega--md { width: 760px; }
.mega--lg { width: min(1040px, calc(100vw - 2rem)); }
.nav__links > li:nth-last-child(-n+2) .mega { left: auto; right: 0; translate: 0 0; }
.nav__links > li:nth-last-child(-n+3) .mega--lg { left: auto; right: -6rem; translate: 0 0; }
.mega__grid { display: grid; gap: 0.25rem 1.25rem; padding: 1.25rem; }
.mega--sm .mega__grid { grid-template-columns: 1fr; padding: 0.75rem; }
.mega--md .mega__grid { grid-template-columns: 1.05fr 1fr 1fr; gap: 1.25rem; }
.mega--lg .mega__grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem 1.5rem; }
.mega--lg .mega__grid:has(> .mega__col:nth-child(6)) { grid-template-columns: repeat(6, 1fr); gap: 0.5rem 1rem; }
.mega__intro { background: var(--charcoal); color: #fff; border-radius: 8px; padding: 1.25rem; min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; }
.mega__intro h4 { font-size: 1.1rem; margin-bottom: 0.4rem; color: #fff; }
.mega__intro p { color: #a3a3a3; font-size: 0.85rem; }
.mega__intro .link { color: #fff; font-size: 0.85rem; }
.mega__intro .link:hover { color: var(--accent); }
.mega__col h5, .mega__h { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin: 0.35rem 0 0.35rem; padding: 0 0.6rem; }
.mega__h { color: var(--text); font-weight: 600; text-transform: none; letter-spacing: -0.005em; font-size: 0.82rem; padding: 0.4rem 0.6rem; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.mega__h:hover { color: var(--accent); background: rgba(242,106,33,0.06); }
.mega__col a.mega__item { display: block; padding: 0.55rem 0.6rem; border-radius: 8px; border-bottom: 0; color: var(--text); transition: background 0.2s var(--ease), color 0.2s; }
.mega__col a.mega__item:hover { background: rgba(242,106,33,0.07); color: var(--accent); padding-left: 0.6rem; }
.mega__t { display: flex; align-items: center; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.mega__t .arr { opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.25s var(--ease-out); font-size: 0.85rem; }
.mega__item:hover .mega__t .arr { opacity: 1; transform: none; }
.mega__d { display: block; font-size: 0.78rem; color: var(--text-2); margin-top: 0.1rem; line-height: 1.4; }
.mega__item:hover .mega__d { color: var(--text-2); }
.mega__item--plain { font-size: 0.86rem; font-weight: 500; padding: 0.35rem 0.6rem !important; color: var(--text-2) !important; }
.mega__item--plain:hover { color: var(--accent) !important; }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin: 0; padding: 0.85rem 1.25rem; border-top: 1px solid var(--border); background: var(--off-white); border-radius: 0 0 12px 12px; font-size: 0.85rem; font-weight: 600; color: var(--text); transition: color 0.2s; }
.mega__foot:hover { color: var(--accent); }
.mega__foot .arr { transition: transform 0.25s var(--ease-out); }
.mega__foot:hover .arr { transform: translateX(4px); }
.mega--sm .mega__foot { padding: 0.75rem 1rem; }

/* Mobile drawer accordions */
.drawer .acc { border-bottom: 1px solid var(--border); }
.drawer .acc__row { display: flex; align-items: center; justify-content: space-between; }
.drawer .acc__row a.big { border-bottom: 0; flex: 1; padding: 0.7rem 0; }
.drawer .acc__btn { width: 44px; height: 44px; display: grid; place-items: center; position: relative; flex-shrink: 0; }
.drawer .acc__btn span { position: absolute; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.drawer .acc__btn span:last-child { transform: rotate(90deg); }
.drawer .acc.open .acc__btn span:last-child { transform: rotate(0); opacity: 0; }
.drawer .acc.open .acc__btn span:first-child { background: var(--accent); }
.drawer .acc.open .acc__row a.big { color: var(--accent); }
.drawer .acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-out); }
.drawer .acc.open .acc__panel { grid-template-rows: 1fr; }
.drawer .acc__inner { overflow: hidden; display: flex; flex-direction: column; }
.drawer .acc__inner a { padding: 0.5rem 0 0.5rem 0.75rem; color: var(--text-2); font-size: 1rem; border-left: 2px solid var(--border); margin-left: 0.15rem; }
.drawer .acc__inner a:hover { color: var(--accent); border-color: var(--accent); }
.drawer .acc__inner a.acc__all { color: var(--accent); font-weight: 600; margin-bottom: 0.75rem; }
.drawer .small { margin-top: 1.5rem; }


/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   V5 FIXES â€” visible hero media, footer brand, articles
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* Hero media: fully visible on the right, text sits on a white gradient on the left */
.hero .bg-media img, .page-hero .bg-media img, .page-hero__media img { opacity: 1; filter: none; }
.hero .bg-media video.is-ready, .page-hero .bg-media video.is-ready { opacity: 1; filter: none; }
.hero .bg-media::after, .page-hero .bg-media::after, .page-hero__media::after {
  background:
    linear-gradient(90deg, #fafafa 0%, #fafafa 30%, rgba(250,250,250,0.94) 46%, rgba(250,250,250,0.55) 64%, rgba(250,250,250,0.12) 84%, rgba(250,250,250,0) 100%),
    linear-gradient(180deg, rgba(250,250,250,0.35) 0%, rgba(250,250,250,0) 30%, rgba(250,250,250,0) 70%, #fafafa 100%);
}
.hero__canvas { opacity: 0.6; mix-blend-mode: multiply; }
.hero__content, .page-hero .container { position: relative; z-index: 2; }
.hero .lead, .page-hero .lead { max-width: 50ch; }
@media (max-width: 960px) {
  .hero .bg-media::after, .page-hero .bg-media::after, .page-hero__media::after {
    background: linear-gradient(180deg, rgba(250,250,250,0.05) 0%, rgba(250,250,250,0.3) 14%, rgba(250,250,250,0.88) 26%, #fafafa 38%);
  }
}

/* Footer brand (crisp mark + wordmark) */
.footer .brand { margin-bottom: 1.2rem; }
.footer .brand img { height: 48px; width: auto; }

/* Insight article pages */
.article-body p { font-size: 1.1rem; line-height: 1.8; color: var(--text); margin-bottom: 1.4rem; }
.article-body p.muted { color: var(--text-2); }
.article-body h1 { margin-bottom: 0.5rem; }
.article-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-2); }
.post[hidden] { display: none; }


/* Statement section (V6): two-column with proof points + image */
.type-statement { padding: clamp(4rem, 8vw, 7rem) 0; background: var(--white); }
.statement-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.type-statement p:not(.lead):not(.eyebrow) { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 3rem); line-height: 1.1; }
.type-statement .eyebrow { font-size: 0.75rem; line-height: 1.6; }
.statement-points { list-style: none; margin-top: 1.6rem; display: grid; gap: 0.9rem; }
.statement-points li { display: grid; grid-template-columns: 12px 1fr; gap: 0.8rem; align-items: baseline; }
.statement-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 0.45rem; }
.statement-points strong { display: block; font-weight: 600; color: var(--text); font-size: 1rem; }
.statement-points span { color: var(--text-2); font-size: 0.93rem; }
.statement-media { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(23,23,23,0.35); }
.statement-media img { width: 100%; height: 100%; object-fit: cover; }
.statement-chip { position: absolute; left: 1.25rem; bottom: 1.25rem; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; box-shadow: 0 16px 36px -18px rgba(23,23,23,0.35); display: flex; flex-direction: column; gap: 0.15rem; }
.statement-chip span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.statement-chip b { font-size: 0.95rem; color: var(--text); font-weight: 600; }
@media (max-width: 960px) { .statement-grid { grid-template-columns: 1fr; } .statement-media { aspect-ratio: 16 / 10; order: -1; } }
.type-statement p.lead { font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem); font-weight: 400; letter-spacing: 0; line-height: 1.6; color: var(--text-2); max-width: 52ch; }
.type-statement p.eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.1em; color: var(--text-2); line-height: 1.6; }
.statement-points li { grid-template-columns: 12px 1fr; grid-template-areas: "dot t" "dot d"; column-gap: 0.8rem; row-gap: 0.1rem; align-items: start; }
.statement-points li::before { grid-area: dot; margin-top: 0.42rem; }
.statement-points strong { grid-area: t; }
.statement-points span { grid-area: d; }

/* ═══════════ V6 — hero split, foundation list, service storytelling rows ═══════════ */
.hero--split { background: var(--white); align-items: center; padding: calc(var(--nav-h) + 4rem) 0 4rem; min-height: 92vh; }
.hero--split .hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2.5rem, 5vw, 5rem); align-items: center; position: relative; z-index: 2; }
.hero--split h1 { max-width: 12ch; }
.hero--split .lead { max-width: 46ch; }
.hero--split .hero__meta { margin-top: 3rem; }
.hero--split .hero__canvas { opacity: 0.22; }
.hero__visual { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 5 / 4; background: #0d0f13; box-shadow: 0 40px 80px -40px rgba(23,23,23,0.45), 0 0 0 1px var(--border); }
.hero__visual .bg-media img { opacity: 0.85; animation: kenburns 26s ease-in-out infinite alternate; }
.hero__visual .bg-media video.is-ready { opacity: 1; }
.hero--split .bg-media::after { background: linear-gradient(180deg, rgba(13,15,19,0) 45%, rgba(13,15,19,0.6) 100%); }
.hero__chip { position: absolute; left: 1.25rem; bottom: 1.25rem; z-index: 3; background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 10px; padding: 0.8rem 1rem; display: flex; flex-direction: column; gap: 0.15rem; box-shadow: 0 16px 36px -18px rgba(23,23,23,0.4); }
.hero__chip span { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.hero__chip b { font-size: 0.92rem; color: var(--text); font-weight: 600; }
.disc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.4rem; }
.disc-list li { font-size: 0.82rem; font-weight: 500; padding: 0.4rem 0.8rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); background: var(--white); }
.disc-list li::before { content: "◆"; color: var(--accent); font-size: 0.5rem; margin-right: 0.5rem; vertical-align: middle; }
/* featured service split */
.svc-feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 1.25rem; }
.svc-feature__media { aspect-ratio: 4 / 3; height: 100%; }
.svc-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.svc-feature__body { padding: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) 0; }
.svc-feature__body h3 { margin: 0.5rem 0 0.7rem; }
.svc-feature__body .pill-list { margin-top: 1.2rem; list-style: none; }
/* storytelling rows */
.srows { display: grid; gap: 0.75rem; }
.srow { display: grid; grid-template-columns: 3rem 3rem 1fr 160px 44px; align-items: center; gap: 1.25rem; padding: 1rem 1.25rem; background: var(--white); border: 1px solid var(--border); border-radius: 12px; transition: border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.4s var(--ease-out); }
.srow:hover { border-color: var(--accent); box-shadow: var(--shadow-card-hover); transform: translateX(4px); }
.srow__n { font-size: 0.75rem; letter-spacing: 0.1em; color: var(--text-2); font-weight: 500; }
.srow__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--light-gray); color: var(--accent); display: grid; place-items: center; }
.srow__icon svg { width: 22px; height: 22px; }
.srow__body strong { display: block; font-weight: 600; font-size: 1.05rem; color: var(--text); }
.srow__body span { display: block; font-size: 0.9rem; color: var(--text-2); margin-top: 0.15rem; }
.srow__media { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--light-gray); }
.srow__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.srow:hover .srow__media img { transform: scale(1.06); }
.srow .arr-circle { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.srow:hover .arr-circle { background: var(--accent); border-color: var(--accent); color: #fff; }
.build-grid--6 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
  .hero--split .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 16 / 10; }
  .svc-feature { grid-template-columns: 1fr; }
  .svc-feature__body { padding: 1.5rem; }
  .srow { grid-template-columns: 3rem 1fr 44px; }
  .srow__n, .srow__media { display: none; }
}

.hero__visual { animation: heroin 1.2s var(--ease-out) 0.2s both; }
@keyframes heroin { from { opacity: 0; transform: translateY(24px) scale(0.98); } to { opacity: 1; transform: none; } }

/* V7 — full-bleed hero with clearly visible background media */
.hero--full { background: var(--off-white); align-items: flex-end; padding: calc(var(--nav-h) + 4rem) 0 5rem; min-height: 100svh; }
.hero--full .bg-media img { opacity: 1; filter: none; }
.hero--full .bg-media video.is-ready { opacity: 1; }
.hero--full .bg-media::after {
  background:
    linear-gradient(90deg, rgba(250,250,250,0.97) 0%, rgba(250,250,250,0.92) 24%, rgba(250,250,250,0.72) 40%, rgba(250,250,250,0.32) 56%, rgba(250,250,250,0.06) 72%, rgba(250,250,250,0) 100%),
    linear-gradient(180deg, rgba(250,250,250,0.18) 0%, rgba(250,250,250,0) 22%, rgba(250,250,250,0) 78%, rgba(250,250,250,0.85) 100%);
}
.hero--full .hero__canvas { opacity: 0.5; mix-blend-mode: multiply; }
.hero--full h1 { max-width: 12ch; }
.hero--full .lead { max-width: 46ch; }
.hero--full .hero__meta { border-top-color: rgba(23,23,23,0.14); }
@media (max-width: 960px) {
  .hero--full .bg-media::after { background: linear-gradient(180deg, rgba(250,250,250,0.05) 0%, rgba(250,250,250,0.3) 14%, rgba(250,250,250,0.88) 26%, #fafafa 38%); }
}

@media (min-width: 1200px) { .svc-grid--4 { grid-template-columns: repeat(4, 1fr); } .svc-grid--4 .svc__body h3 { font-size: 1.2rem; } }

/* ═══════════ V8 — mobile-first refinements ═══════════ */
.feature-list--two { grid-template-columns: 1fr 1fr; }
.feature-list--two > .pad-lg { padding: 3rem; }
.caps--3 { grid-template-columns: repeat(3, 1fr); }
.principles--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1100px) { .caps--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) {
  .feature-list--two { grid-template-columns: 1fr; }
  .feature-list--two > .pad-lg { padding: 2rem 1.5rem; }
  .split__media { min-height: 42vh; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav { height: 64px; }
  .brand img { height: 32px; }
  .section { padding: 3.5rem 0; }
  .section__head { margin-bottom: 2rem; }
  .container, .container--wide, .container--narrow { width: calc(100% - 2.5rem); }
  .caps, .caps--3, .principles, .principles--2 { grid-template-columns: 1fr; }
  .cap { min-height: 0; padding: 1.5rem 1.25rem 1.7rem; }
  .cap .cap__n { top: 1.3rem; right: 1.3rem; }
  .cap h3 { margin-top: 1.6rem; }
  .cap .link { opacity: 1; transform: none; }
  .hero, .hero--full { min-height: auto; padding: calc(var(--nav-h) + 3.5rem) 0 3.5rem; }
  .hero__actions { display: grid; grid-template-columns: 1fr; gap: 0.7rem; }
  .hero__actions .btn { justify-content: center; }
  .hero__meta { margin-top: 2.2rem; gap: 1rem 1.5rem; }
  .page-hero { min-height: auto; padding: calc(var(--nav-h) + 4rem) 0 3rem; }
  .job { grid-template-columns: 1fr 44px; grid-template-areas: "t a" "d a"; row-gap: 0.15rem; padding: 1.1rem 0; }
  .job h4 { grid-area: t; font-size: 1.05rem; }
  .job > span:first-of-type { grid-area: d; display: block; }
  .job .arr-circle { grid-area: a; align-self: center; }
  .cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; -webkit-overflow-scrolling: touch; }
  .cats::-webkit-scrollbar { display: none; }
  .cats a { white-space: nowrap; flex: 0 0 auto; }
  .link { padding: 0.45rem 0; }
  .form .btn, .contact-info .btn { width: 100%; justify-content: center; }
  .svc__tag, .kpi span, .post__meta { font-size: 0.72rem; }
  .dash__main { padding: 1rem; }
  .kpi strong { font-size: 1.1rem; }
  .split__media { min-height: 38vh; }
  .split__body { padding: 2.5rem 1.25rem; }
  .cta { min-height: 56vh; }
  .type-statement p:not(.lead):not(.eyebrow) { font-size: 1.85rem; }
  .statement-media { aspect-ratio: 4 / 3; }
  .stack__node { padding: 1rem 0 1.2rem 3.2rem; }
  .how__step { padding: 1.4rem 0 1.6rem; }
  .how__step h3 { font-size: 1.3rem; }
  .why__item { padding: 1.8rem 1.4rem 2rem; }
  .why__item h3 { margin-top: 2.6rem; }
  .eco__col { min-height: 0; padding: 1.5rem 1.25rem; }
  .build-grid, .build-grid--6 { grid-auto-rows: 200px; }
  .footer { padding: 3rem 0 1.5rem; }
  .footer__top { gap: 1.75rem; padding-bottom: 2.5rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .article-body p { font-size: 1.02rem; }
  .values-scroll { padding-inline: 1.25rem; }
  .value { flex-basis: 78vw; min-height: 220px; padding: 1.6rem; }
  .svc__body { padding: 1.3rem 1.3rem 1.5rem; }
  .svc__body h3 { font-size: 1.2rem; }
  .cs { padding: 2.5rem 0; }
  .principles > div { padding: 1.3rem 1.2rem; }
  .steps { margin-top: 1.5rem; }
  .step { grid-template-columns: 2.4rem 1fr; }
}
@media (max-width: 400px) {
  h1, .display-xl, .display-lg { font-size: 2.15rem; }
  h2 { font-size: 1.75rem; }
  .btn { padding: 0.9rem 1.3rem; font-size: 0.9rem; }
}

@media (max-width: 1100px) { .build-grid--6 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .build-grid--6 { grid-template-columns: 1fr; } .build-grid--6 .build--wide { grid-column: span 1; } }

/* ═══════════ V9 — mobile hero media band + video everywhere ═══════════ */
@media (max-width: 640px) {
  .hero--full, .hero, .page-hero { padding-top: 0; }
  .hero--full .bg-media, .hero .bg-media, .page-hero .bg-media, .page-hero__media { position: absolute; top: 0; left: 0; right: 0; bottom: auto; height: calc(var(--nav-h) + 40vh); }
  .hero--full .bg-media img, .hero .bg-media img, .page-hero .bg-media img, .page-hero__media img { opacity: 1; filter: none; animation: none; transform: none; }
  .hero--full .bg-media video.is-ready, .page-hero .bg-media video.is-ready { opacity: 1; }
  .hero--full .bg-media::after, .hero .bg-media::after, .page-hero .bg-media::after, .page-hero__media::after {
    background: linear-gradient(180deg, rgba(250,250,250,0) 0%, rgba(250,250,250,0) 62%, rgba(250,250,250,0.55) 84%, #fafafa 100%);
  }
  .hero .hero__content, .page-hero .container { padding-top: calc(var(--nav-h) + 40vh + 1.25rem); }
  .hero__canvas { display: none; }
  .hero--full h1, .page-hero h1 { max-width: none; }
  .scroll-hint { display: none; }
  .cta { min-height: 0; padding: 4rem 0; }
  .cta .bg-media img { opacity: 0.45; }
  .cta .bg-media video.is-ready { opacity: 0.55; }
}

/* ═══════════ V10 — make background videos clearly visible ═══════════ */
.bg-media img { transition: opacity 0.9s var(--ease); }
.bg-media.has-video img { opacity: 0 !important; }
.cta .bg-media video.is-ready { opacity: 0.85; }
.cta .bg-media img { opacity: 0.55; }
.cta .bg-media::after { background: radial-gradient(ellipse at center, rgba(23,23,23,0.28) 0%, rgba(23,23,23,0.72) 70%, rgba(23,23,23,0.9) 100%); }
.hero--full .bg-media video.is-ready, .page-hero .bg-media video.is-ready, .hero .bg-media video.is-ready { opacity: 1; }
@media (max-width: 640px) {
  .cta .bg-media video.is-ready { opacity: 0.85; }
  .cta .bg-media img { opacity: 0.55; }
}

/* ═══════════ V11 — compact mobile menu ═══════════ */
.drawer { padding: calc(var(--nav-h) + 1rem) 1.25rem 2rem; }
.drawer a.big, .drawer .acc__row a.big { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; padding: 0.85rem 0; line-height: 1.3; }
.drawer .acc__row { min-height: 52px; }
.drawer .acc__btn { width: 40px; height: 40px; }
.drawer .acc__btn span { width: 14px; height: 1.5px; }
.drawer .acc__inner a { font-size: 0.95rem; padding: 0.45rem 0 0.45rem 0.85rem; }
.drawer .acc__inner a.acc__all { font-size: 0.9rem; margin-bottom: 0.6rem; }
.drawer .small { grid-template-columns: 1fr 1fr; gap: 0.35rem 1rem; margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.drawer .small a { font-size: 0.92rem; padding: 0.3rem 0; }
.drawer .btn { margin-top: 1.5rem; width: 100%; justify-content: center; }
.drawer.open { display: flex; }
@media (max-width: 400px) { .drawer a.big, .drawer .acc__row a.big { font-size: 1.1rem; } }

/* ═══════════ Trusted by leading businesses ═══════════ */
.trusted-by { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 0 2.25rem; }
.trusted__label { text-align: center; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-2); margin: 0 0 1.5rem; }
.trusted__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.trusted__track { display: flex; width: max-content; animation: trusted-marquee 55s linear infinite; }
.trusted__viewport:hover .trusted__track { animation-play-state: paused; }
.trusted__row { list-style: none; display: flex; align-items: center; flex-shrink: 0; gap: clamp(2.5rem, 5vw, 4.5rem); padding-right: clamp(2.5rem, 5vw, 4.5rem); margin: 0; }
.trusted__row li { flex: 0 0 auto; width: 150px; height: 46px; display: flex; align-items: center; justify-content: center; }
.trusted__row img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
@keyframes trusted-marquee { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .trusted-by { padding: 1.5rem 0 1.75rem; } .trusted__row li { width: 120px; height: 38px; } .trusted__row { gap: 2rem; padding-right: 2rem; } .trusted__label { font-size: 0.7rem; margin-bottom: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .trusted__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; } .trusted__row[aria-hidden] { display: none; } }

/* ═══════════ Nine practices (illustrated capability cards) ═══════════ */
.practices { --amber: var(--accent); --cyan: #1c3d69; --chalk: #171717; --mute: #5c5c5c; --dim: #5d6b85; --void: #ffffff; --panel: #ffffff; --hair-strong: rgba(23,23,23,0.22); --font-jetbrains: "Inter", system-ui, sans-serif; background: var(--white); }
.practices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.practice { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-card); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease), border-color 0.35s; }
.practice:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-color: var(--accent); }
.practice__media { position: relative; aspect-ratio: 400 / 152; background: var(--white); padding: 1.1rem 1.1rem 0; }
.practice__art { display: block; width: 100%; height: 100%; }
.practice__body { padding: 1rem 1.4rem 1.5rem; }
.practice__meta { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); font-weight: 500; margin-bottom: 0.7rem; }
.practice__body h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.practice__body p:not(.practice__meta) { font-size: 0.9rem; color: var(--text-2); }
@keyframes drift { 0%, 100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }
@keyframes dash { to { stroke-dashoffset: -1000; } }
@keyframes stack { 0%, 4% { opacity: 0; transform: scaleY(0); } 12%, 60% { opacity: 1; transform: scaleY(1); } 72%, 100% { opacity: 0; transform: scaleY(0); } }
@keyframes assemble { 0%, 8% { opacity: 0; transform: translateY(6px); } 18%, 72% { opacity: 1; transform: translateY(0); } 84%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes blink { 0%, 100% { opacity: 0.15; } 50% { opacity: 0.75; } }
@keyframes level { 0% { transform: rotate(-6deg); } 30% { transform: rotate(3.5deg); } 52% { transform: rotate(-1.5deg); } 72%, 100% { transform: rotate(0deg); } }
@keyframes pulse-ring { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(1); } }
@media (max-width: 1100px) { .practices__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .practices__grid { grid-template-columns: 1fr; gap: 1rem; } .practice__body { padding: 0.9rem 1.2rem 1.3rem; } }
@media (prefers-reduced-motion: reduce) { .practice__art * { animation: none !important; } }

/* ═══════════ Fix: image reveal (clip-path made elements invisible to IntersectionObserver) ═══════════ */
.reveal-img { clip-path: none !important; opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal-img img { transform: scale(1.06); transition: transform 1.4s var(--ease-out); }
.reveal-img.in { opacity: 1; transform: none; }
.reveal-img.in img { transform: none; }
.philo__media { background: var(--light-gray); }
@media (prefers-reduced-motion: reduce) { .reveal-img { opacity: 1; transform: none; } .reveal-img img { transform: none; } }

/* ═══════════ Who-we-are media: proportion + readable caption ═══════════ */
.philo { align-items: center; }
.philo__media { aspect-ratio: 5 / 4; border-radius: 14px; background: var(--light-gray); box-shadow: 0 30px 60px -30px rgba(23,23,23,0.35); }
.philo__media img { object-position: center; }
.philo__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,23,23,0) 55%, rgba(23,23,23,0.35) 100%); pointer-events: none; }
.philo__badge { position: absolute; left: 1.25rem; right: auto; bottom: 1.25rem; z-index: 2; max-width: 300px; background: rgba(255,255,255,0.97); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1.1rem; box-shadow: 0 16px 36px -18px rgba(23,23,23,0.4); display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; }
.philo__badge-k { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.philo__badge strong { color: var(--text); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.philo__badge small { color: var(--text-2); font-size: 0.82rem; line-height: 1.45; }
@media (max-width: 960px) { .philo__media { aspect-ratio: 16 / 10; } .philo__badge { max-width: 260px; } }

/* ═══════════ Foundation section: subtle background image ═══════════ */
.statement { position: relative; overflow: hidden; }
.statement-bg { position: absolute; inset: 0; pointer-events: none; }
.statement-bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.statement-bg::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.97) 0%, rgba(255,255,255,0.94) 34%, rgba(255,255,255,0.82) 55%, rgba(255,255,255,0.55) 78%, rgba(255,255,255,0.35) 100%),
    linear-gradient(180deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0.55) 82%, rgba(255,255,255,0.8) 100%);
}
.statement > .container { position: relative; z-index: 2; }
.statement .cap { background: rgba(255,255,255,0.92); backdrop-filter: blur(2px); }
.statement .cap:hover { background: rgba(255,255,255,0.99); }
.statement .disc-list li { background: rgba(255,255,255,0.92); }
@media (max-width: 640px) {
  .statement-bg::after { background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.92) 100%); }
}

/* ═══════════ AI architecture section: subtle background image ═══════════ */
.stack-bg { position: absolute; inset: 0; pointer-events: none; }
.stack-bg img { width: 100%; height: 100%; object-fit: cover; }
.stack-bg::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 62% 52% at 50% 40%, rgba(247,247,245,0.9) 0%, rgba(247,247,245,0.72) 55%, rgba(247,247,245,0.28) 85%, rgba(247,247,245,0.05) 100%),
    linear-gradient(180deg, rgba(247,247,245,0.55) 0%, rgba(247,247,245,0) 25%, rgba(247,247,245,0) 72%, rgba(247,247,245,0.75) 100%);
}
.stack-bg img { opacity: 0.9; }
#ai-architecture .dots { opacity: 0.35; }
#ai-architecture .stack__node p, #ai-architecture .section__head p { color: #3d3d3d; }
@media (max-width: 640px) { .stack-bg::after { background: linear-gradient(180deg, rgba(247,247,245,0.95), rgba(247,247,245,0.88)); } }

/* ═══════════ AI band: one continuous parallax background for foundation + architecture ═══════════ */
.ai-band { position: relative; overflow: hidden; background: var(--off-white); }
.ai-band__bg { position: absolute; inset: 0; pointer-events: none; }
.ai-band__bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; opacity: 0.95; will-change: transform; }
.ai-band__bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,0.72) 9%, rgba(250,250,250,0.5) 30%, rgba(250,250,250,0.42) 55%, rgba(250,250,250,0.55) 80%, #ffffff 100%);
}
.ai-band .statement, .ai-band #ai-architecture { background: transparent; }
.ai-band .statement > .container, .ai-band #ai-architecture .container { position: relative; z-index: 2; }
.ai-band #ai-architecture .dots { opacity: 0.25; }
.ai-band .cap { background: rgba(255,255,255,0.9); backdrop-filter: blur(3px); }
.ai-band .cap:hover { background: rgba(255,255,255,0.98); }
.ai-band .disc-list li { background: rgba(255,255,255,0.92); }
.ai-band .stack__dot { background: #fff; }
.ai-band .stack__node p { color: #3d3d3d; }
@media (max-width: 640px) {
  .ai-band__bg img { top: -8%; height: 116%; }
  .ai-band__bg::after { background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,0.85) 10%, rgba(250,250,250,0.72) 50%, rgba(250,250,250,0.85) 90%, #ffffff 100%); }
}

/* ═══════════ Layered 3D backgrounds (foundation + architecture) ═══════════ */
.ai-band { background: linear-gradient(180deg, #fafafa 0%, #f4f4f9 35%, #f5f7fb 70%, #ffffff 100%); }
.bg3d { position: absolute; inset: 0; pointer-events: none; }
.bg3d img { position: absolute; left: 0; width: 100%; object-fit: cover; will-change: transform; }
.bg3d__far { top: -8%; height: 116%; }
.bg3d__near { top: -10%; height: 120%; }
.bg3d::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 38%, rgba(250,250,252,0.55) 0%, rgba(250,250,252,0.25) 60%, rgba(250,250,252,0) 100%);
}
.bg3d--arch::after {
  background: radial-gradient(ellipse 64% 46% at 50% 40%, rgba(250,250,252,0.6) 0%, rgba(250,250,252,0.25) 60%, rgba(250,250,252,0) 100%),
              linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 80%, #ffffff 100%);
}
@media (max-width: 640px) {
  .bg3d__near { display: none; }
  .bg3d__far { top: 0; height: 100%; opacity: 0.85; }
  .bg3d::after, .bg3d--arch::after { background: linear-gradient(180deg, rgba(250,250,252,0.55), rgba(250,250,252,0.4)); }
}
@media (prefers-reduced-motion: reduce) { .bg3d img { transform: none !important; } }

/* Foundation refinement: third depth layer + imperceptible drift */
.bg3d__mid { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.bg3d__drift { position: absolute; inset: 0; animation: bgdrift 18s ease-in-out infinite; }
@keyframes bgdrift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
#foundation .bg3d::after { background: radial-gradient(ellipse 72% 56% at 50% 36%, rgba(250,250,252,0.5) 0%, rgba(250,250,252,0.2) 60%, rgba(250,250,252,0) 100%); }
@media (max-width: 640px) {
  .bg3d__mid { top: 0; height: 100%; opacity: 0.9; }
  .bg3d__drift { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bg3d__drift { animation: none; } }

/* ═══════════ AI band: single cinematic render, higher visibility ═══════════ */
.ai-band__bg img { opacity: 1; }
.ai-band__bg::after { background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,0.6) 8%, rgba(250,250,250,0.36) 30%, rgba(250,250,250,0.3) 55%, rgba(250,250,250,0.42) 82%, #ffffff 100%); }
.ai-band .stack__node p { color: #3d3d3d; }
@media (max-width: 640px) {
  .ai-band__bg::after { background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,0.78) 10%, rgba(250,250,250,0.62) 50%, rgba(250,250,250,0.78) 90%, #ffffff 100%); }
}

/* ═══════════ AI band: rebalance — background secondary to content ═══════════ */
.ai-band__bg img { opacity: 0.85; }
.ai-band__bg::after { background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,0.8) 8%, rgba(250,250,250,0.62) 30%, rgba(250,250,250,0.56) 55%, rgba(250,250,250,0.66) 82%, #ffffff 100%); }
@media (max-width: 640px) {
  .ai-band__bg::after { background: linear-gradient(180deg, #fafafa 0%, rgba(250,250,250,0.88) 10%, rgba(250,250,250,0.78) 50%, rgba(250,250,250,0.88) 90%, #ffffff 100%); }
}

/* ═══════════ Careers: application form ═══════════ */
.apply { max-width: 52rem; margin: 0 auto; }
.apply__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: clamp(1.5rem, 4vw, 2.75rem); }
.apply__step { display: block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin: 2.5rem 0 1.25rem; }
.apply__step:first-child { margin-top: 0; }
.apply .form { gap: 1.25rem 1.5rem; }
.apply .field label .req { color: var(--accent); margin-left: 0.15rem; }
.apply .field textarea { resize: vertical; line-height: 1.6; }
.hint { font-size: 0.78rem; color: var(--text-2); margin-top: -0.15rem; }
.err { font-size: 0.78rem; color: #c2410c; margin-top: -0.15rem; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c2410c; }
.field.is-invalid input:focus, .field.is-invalid select:focus, .field.is-invalid textarea:focus { box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12); }

/* Yes / No pairs */
.choice { border: 0; padding: 0; margin: 0; }
.choice > legend { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); padding: 0; margin-bottom: 0.5rem; }
.choice__row { display: flex; gap: 0.6rem; }
.choice__opt { flex: 1; position: relative; }
.choice__opt input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.choice__opt span { display: block; text-align: center; padding: 0.85rem 1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--white); font-size: 0.92rem; color: var(--text-2); transition: border-color 0.25s, color 0.25s, background 0.25s; }
.choice__opt input:hover + span { border-color: var(--accent); }
.choice__opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--text); font-weight: 600; }
.choice__opt input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* CV drop zone */
.drop { border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--off-white); transition: border-color 0.25s, background 0.25s; }
.drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop.is-invalid { border-color: #c2410c; }
.drop__prompt { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding: 1.9rem 1rem; text-align: center; cursor: pointer; }
.drop__prompt svg { width: 22px; height: 22px; color: var(--accent); }
.drop__prompt b { font-size: 0.95rem; color: var(--text); }
.drop__prompt small { font-size: 0.78rem; color: var(--text-2); }
.drop__file { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.1rem; }
.drop__file svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); }
.drop__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; color: var(--text); }
.drop__size { flex-shrink: 0; font-size: 0.78rem; color: var(--text-2); }
.drop__acts { display: flex; gap: 0.85rem; flex-shrink: 0; font-size: 0.78rem; }
.drop__acts label, .drop__acts button { cursor: pointer; background: none; border: 0; padding: 0; font: inherit; color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.drop__acts label:hover, .drop__acts button:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Consent, submit, outcome */
.consent { display: flex; align-items: flex-start; gap: 0.7rem; margin-top: 2rem; font-size: 0.85rem; line-height: 1.6; color: var(--text-2); cursor: pointer; }
.consent input { width: 1rem; height: 1rem; margin-top: 0.25em; flex-shrink: 0; accent-color: var(--accent); }
.apply__submit { width: 100%; justify-content: center; margin-top: 1.25rem; }
.apply__foot { margin-top: 0.9rem; text-align: center; font-size: 0.8rem; color: var(--text-2); }
.apply__alert { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--off-white); font-size: 0.85rem; line-height: 1.6; color: var(--text-2); }
.apply__alert a, .apply__alert button { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; font-size: inherit; font-family: inherit; cursor: pointer; }
.apply__done { text-align: center; padding: clamp(2rem, 6vw, 3.5rem); }
.apply__done h3 { margin: 0.75rem 0 1rem; }
.apply__done p { max-width: 46ch; margin: 0 auto; }
.apply__done .btn { margin-top: 2rem; }
.job[href^="#"] { cursor: pointer; }

@media (max-width: 640px) {
  .apply .form { grid-template-columns: 1fr; }
  .apply .form .full { grid-column: span 1; }
  .drop__file { flex-wrap: wrap; }
  .drop__acts { width: 100%; justify-content: flex-end; }
}

/* ═══════════ Admin: login + applications ═══════════ */
.admin { min-height: 100vh; background: var(--off-white); padding: clamp(2rem, 6vh, 4rem) 0; }
.admin__bar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.admin__eyebrow { font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); }
.admin__bar h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-top: 0.6rem; }
.admin__meta { font-size: 0.8rem; color: var(--text-2); }
.admin__panel { margin-top: 2rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow-x: auto; }
.admin__msg { padding: 2.5rem 1.5rem; text-align: center; color: var(--text-2); font-size: 0.92rem; }
.admin__msg code { background: var(--light-gray); border-radius: 4px; padding: 0.1rem 0.4rem; font-size: 0.85em; }
.admin table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin th { font-family: var(--font-display); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-2); text-align: left; white-space: nowrap; padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); }
.admin td { padding: 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin tbody tr:last-child td { border-bottom: 0; }
.admin tbody tr:hover { background: var(--off-white); }
.admin .nowrap { white-space: nowrap; }
.admin .strong { font-weight: 600; color: var(--text); }
.admin .sub { font-size: 0.78rem; color: var(--text-2); margin-top: 0.25rem; }
.admin .faint { font-size: 0.74rem; color: #8a8a8a; margin-top: 0.25rem; }
.admin td a[href^="mailto:"] { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.admin td a[href^="mailto:"]:hover { color: var(--accent); }
.admin details summary { cursor: pointer; font-size: 0.74rem; color: var(--text-2); margin-top: 0.4rem; }
.admin details summary:hover { color: var(--accent); }
.admin details p { font-size: 0.8rem; margin-top: 0.4rem; }
.admin .role { max-width: 24ch; }
.admin .btn--sm { padding: 0.5rem 0.9rem; font-size: 0.78rem; }

/* Login card */
.login { min-height: 100vh; display: grid; place-items: center; background: var(--off-white); padding: 2rem 1.25rem; }
.login__card { width: 100%; max-width: 24rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: clamp(1.75rem, 5vw, 2.5rem); }
.login__card .brand { margin-bottom: 1.75rem; }
.login__card h1 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.login__card > p { font-size: 0.88rem; color: var(--text-2); margin-bottom: 1.75rem; }
.login__card .field + .field { margin-top: 1rem; }
.login__card .btn { width: 100%; justify-content: center; margin-top: 1.5rem; }
.login__err { margin-top: 1rem; font-size: 0.84rem; color: #c2410c; min-height: 1.4em; }
.login__back { display: block; margin-top: 1.5rem; text-align: center; font-size: 0.82rem; color: var(--text-2); }
.login__back:hover { color: var(--accent); }

/* Admin: switching between the two inboxes */
.admin__tabs { display: flex; gap: 0.4rem; margin-top: 1.5rem; }
.admin__tabs a { padding: 0.5rem 0.95rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--white); font-size: 0.85rem; font-weight: 600; color: var(--text-2); transition: border-color 0.25s, color 0.25s, background 0.25s; }
.admin__tabs a:hover { border-color: var(--accent); color: var(--accent); }
.admin__tabs a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.admin .msg { max-width: 60ch; }
.admin details.msg-more summary { list-style: none; }
.admin details.msg-more summary::-webkit-details-marker { display: none; }

/* ═══════════ Nav: eight top-level items ═══════════
   ERP joins AI Solutions, Services, Technology, Solutions, Case Studies,
   About and Insights. Eight items fit comfortably on a wide desktop but not
   between the burger breakpoint (960px) and roughly 1280px, where the row
   would wrap under the logo. Tighten the item spacing through that band and
   stop the row wrapping at any width. */
.nav__links { flex-wrap: nowrap; }
/* Two-word labels must not break across lines — that is what made the
   row look wrapped once ERP took it to eight items. */
.nav__links > li > a, .nav .btn { white-space: nowrap; }
.nav__inner { flex-wrap: nowrap; }
@media (min-width: 961px) and (max-width: 1280px) {
  .nav__links { gap: 0; }
  .nav__links > li > a { padding: 0.6rem 0.55rem; font-size: 0.84rem; }
  .nav__links > li > a::after { left: 0.55rem; right: 0.55rem; }
  .brand img { height: 34px; }
  .nav .btn { padding: 0.6rem 0.9rem; font-size: 0.8rem; }
}

/* ======= Reveal failsafe: content is visible by default ======= */
/* The hidden "waiting to animate" state only applies while main.js is running
   (it sets html.js). If the script is slow, blocked, or errors, nothing stays hidden. */
html:not(.js) .reveal,
html:not(.js) .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
html:not(.js) .reveal-img img { transform: none !important; }
html:not(.js) .mask-lines .line > span { transform: none !important; }

/* ======= Careers: teams grid filters the open positions ======= */
.dept-grid > a { color: var(--text); text-decoration: none; cursor: pointer; display: block; }
.dept-grid > a:hover, .dept-grid > a.active { background: var(--accent); color: #fff; }
.dept-hint { margin-top: 0.9rem; font-size: 0.85rem; color: var(--text-2); text-align: center; }
.jobs-filter { margin: -1rem 0 1.4rem; font-size: 0.95rem; color: var(--text-2); }
.jobs-filter strong { color: var(--text); }
.jobs-filter a { color: var(--accent); font-weight: 600; text-decoration: none; }
.jobs-filter a:hover { text-decoration: underline; }
.job.hide { display: none; }

/* ======= Anchor targets clear the fixed nav ======= */
[id] { scroll-margin-top: 96px; }

/* ======= Accessibility: AA-compliant orange for text (fills keep #F26A21) ======= */
:root { --accent-text: #b84a0e; }
.cap__n, .step span, .cs__grid h5, .eco__col h4, .value span, .post__meta b,
.form__note, .timeline strong, .product__body span, .principles strong,
.stack__node small, .how__step span, .svc__tag, .statement-chip span,
.hero__chip span, .philo__badge-k, .apply__step, .admin__eyebrow,
.jobs-filter a, .mega__foot, .drawer .acc__inner a.acc__all,
.drawer .acc.open .acc__row a.big, .nav__links > li > a[aria-current="page"],
.apply .field label .req { color: var(--accent-text); }

/* ======= Skip link for keyboard and screen-reader users ======= */
.skip { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--ink); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0; font-size: 0.9rem; text-decoration: none; }
.skip:focus { left: 0; }

/* ======= Mega-menu headings demoted to <p> (outline starts at the H1) ======= */
.mega__title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.25; margin: 0 0 0.4rem; }
.mega__intro .mega__title { color: #fff; }
.mega__label { display: block; font-family: var(--font-display); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); font-weight: 600; margin: 0.35rem 0; padding: 0 0.6rem; }

/* ======= Above-the-fold content renders at rest; reveals are below-fold only ======= */
.hero .reveal, .hero .reveal-img, .page-hero .reveal, .page-hero .reveal-img { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
.hero .mask-lines .line > span, .page-hero .mask-lines .line > span { transform: none !important; transition: none !important; }
