/* Webloped v4 — Digital Workshop static foundation (Stage 2)
   Tokens: ink #101014, paper #F6F5F1, white #FFFFFF, violet #6D38E8,
   lilac #C8B5FF, muted-dark #B8B5C2, muted-light #57535F */

:root {
  --ink: #101014;
  --ink-2: #17171c;
  --paper: #F6F5F1;
  --paper-deep: #ECEAE3;
  --white: #FFFFFF;
  --violet: #6D38E8;
  --violet-deep: #5529c4;
  --lilac: #C8B5FF;
  --muted-dark: #B8B5C2;
  --muted-light: #57535F;
  --line-light: rgba(16, 16, 20, 0.12);
  --line-dark: rgba(255, 255, 255, 0.14);
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-media: 16px;
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- Stage 1: Lenis smooth-scroll base ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.lenis-on { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- accessibility scaffolding ---------- */
.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--violet); color: #fff; padding: 12px 20px;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  transition: top var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible, .on-dark:focus-visible {
  outline-color: var(--lilac);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* ---------- layout primitives ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 56px;
  padding-right: 56px;
}
section { scroll-margin-top: 84px; }
.section { padding: 128px 0; }
.section-sm { padding: 96px 0; }

.eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--violet); margin: 0 0 24px;
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--violet); flex: none;
}
.on-dark .eyebrow { color: var(--lilac); }
.on-dark .eyebrow::before { background: var(--lilac); }

h1, h2, h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
.section-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.06; letter-spacing: -0.02em;
  margin: 0 0 24px; max-width: 16ch;
}
.section-lede {
  font-size: 19px; line-height: 1.6; margin: 0;
  max-width: 56ch; color: var(--muted-light);
}
.on-dark .section-lede { color: var(--muted-dark); }

.section-head { margin-bottom: 64px; max-width: 860px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 17px;
  padding: 16px 32px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
  line-height: 1.2;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--violet-deep); }
.btn-ghost { border-color: var(--line-dark); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--lilac); color: var(--lilac); }
.btn-ghost-light { border-color: var(--line-light); color: var(--ink); }
.btn-ghost-light:hover { border-color: var(--violet); color: var(--violet); }
.btn .arrow { transition: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(16, 16, 20, 0.86);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: 0.01em; }

.site-nav ul {
  display: flex; gap: 32px; list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--muted-dark); text-decoration: none; font-size: 16px; font-weight: 500;
  transition: color var(--ease), background-color var(--ease); padding: 8px 14px;
}
.site-nav a:hover { color: #fff; }
/* Current page: unmistakable pill highlight so visitors always know where they are. */
.site-nav a[aria-current="page"] {
  color: #fff; background: rgba(109, 56, 232, 0.28);
  border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(139, 109, 255, 0.45);
}
/* Mobile menu CTA: a clone of the header CTA is injected by JS (see main.js).
   Hidden on desktop; shown as a full-width button when the mobile menu opens. */
.site-nav .nav-cta { display: none; }
.header-cta { padding: 12px 24px; font-size: 16px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-dark);
  border-radius: 10px; padding: 10px 12px; cursor: pointer; color: #fff;
}
.nav-toggle svg { display: block; }

/* ---------- hero ---------- */
.hero {
  background: var(--ink); color: #fff;
  padding: 172px 0 128px; position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center;
}
.hero-eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lilac); margin: 0 0 28px;
}
.hero h1 {
  font-size: clamp(2.9rem, 6.2vw, 5.9rem);
  line-height: 1.0; letter-spacing: -0.025em; font-weight: 700;
  margin: 0 0 28px; color: #fff;
}
.hero h1 .accent { color: var(--lilac); }
.hero-sub {
  font-size: 20px; line-height: 1.6; color: var(--muted-dark);
  margin: 0 0 40px; max-width: 46ch;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note {
  margin: 40px 0 0; font-size: 15px; color: var(--muted-dark);
  border-top: 1px solid var(--line-dark); padding-top: 24px; max-width: 52ch;
}

/* --- layered website poster (pure CSS, static, decorative) --- */
.assembly {
  perspective: 1400px; display: flex; justify-content: center;
  padding: 24px 0; min-height: 560px; align-items: center;
}
.assembly-stage {
  position: relative; width: 380px; height: 480px;
  transform-style: preserve-3d;
  transform: rotateX(52deg) rotateZ(-36deg);
}
.layer {
  position: absolute; inset: 0; border-radius: var(--radius-media);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.layer-grid {
  background:
    repeating-linear-gradient(0deg, rgba(200,181,255,0.10) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(200,181,255,0.10) 0 1px, transparent 1px 32px),
    #17171d;
  transform: translateZ(0px);
}
.layer-content { background: var(--paper); transform: translateZ(52px); padding: 30px 28px; }
.bar { border-radius: 6px; }
.bar-title { height: 22px; width: 62%; background: var(--ink); margin-bottom: 22px; }
.bar-line { height: 12px; background: #cfccc2; margin-bottom: 12px; }
.bar-line.short { width: 55%; }
.bar-row { display: flex; gap: 12px; margin-top: 26px; }
.bar-chip { height: 44px; flex: 1; background: #e2dfd6; border-radius: 10px; }
.layer-image {
  background: linear-gradient(135deg, var(--violet) 0%, #8f5bf0 55%, var(--lilac) 100%);
  transform: translateZ(104px);
}
.layer-image::after {
  content: ""; position: absolute; left: 34px; top: 34px; right: 34px; bottom: 34px;
  border-radius: 12px; border: 2px solid rgba(255,255,255,0.35);
}
.layer-ui { transform: translateZ(156px); background: transparent; border: none; box-shadow: none; }
.ui-card {
  position: absolute; background: rgba(255,255,255,0.96); border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.ui-card.a { left: 30px; top: 40px; width: 150px; height: 96px; transform: translateZ(18px); }
.ui-card.b { right: 26px; top: 170px; width: 170px; height: 110px; transform: translateZ(34px); }
.ui-pill {
  position: absolute; left: 44px; bottom: 52px; width: 150px; height: 46px;
  background: var(--violet); border-radius: 999px; transform: translateZ(52px);
  box-shadow: 0 14px 30px rgba(109, 56, 232, 0.55);
}
.signal {
  position: absolute; inset: -40px; transform: translateZ(210px);
  filter: drop-shadow(0 0 10px rgba(109, 56, 232, 0.9));
  pointer-events: none;
}
.assembly-caption {
  text-align: center; color: var(--muted-dark); font-size: 14px; margin: 8px 0 0;
}

/* ---------- selected work ---------- */
.work { background: var(--paper); }
.work-block {
  display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--line-light);
}
.work-block:first-of-type { border-top: none; padding-top: 8px; }
.work-block.flip { grid-template-columns: 5fr 7fr; }
.work-block.flip .work-visual { order: 2; }

.work-visual {
  border-radius: var(--radius-media); overflow: hidden;
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 48px;
}
.work-visual.placeholder {
  background: var(--paper-deep);
  border: 2px dashed rgba(109, 56, 232, 0.45);
}
.placeholder-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--violet);
  border: 1px solid var(--violet); border-radius: 999px; padding: 8px 18px; margin-bottom: 20px;
}
.work-visual.placeholder p { color: var(--muted-light); font-size: 17px; max-width: 34ch; margin: 0; }

.work-index {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--violet); margin: 0 0 16px;
}
.work-block h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.4rem); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 24px;
}
.case-schema { margin: 0; display: grid; gap: 18px; }
.case-schema > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.case-schema dt { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-light); padding-top: 4px; }
.case-schema dd { margin: 0; font-size: 17px; color: var(--ink); }
.case-schema dd.pending { color: var(--muted-light); font-style: italic; }

/* ---------- workshop (interactive 3D assembly — Stage 4) ---------- */
.workshop { background: var(--ink); color: #fff; }
.stage-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  margin: 0; padding: 0; list-style: none; counter-reset: stage;
}
.stage {
  border-top: 2px solid var(--line-dark); padding-top: 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.stage-num {
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.12em; color: var(--lilac);
}
.stage h3 { font-size: 1.45rem; letter-spacing: -0.01em; }
.stage p { margin: 0; color: var(--muted-dark); font-size: 16.5px; }
.stage-figure {
  margin-top: auto; padding-top: 20px;
  aspect-ratio: 4/3; border-radius: 12px;
  background: linear-gradient(160deg, #1d1d24 0%, #141419 100%);
  border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted-dark); font-size: 14px; text-align: center; padding: 20px;
}

/* ---------- services ---------- */
.services { background: var(--paper); }
.service-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-group {
  border-top: 2px solid var(--ink); padding-top: 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.service-group h3 { font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 8px; }
.service-media {
  overflow: hidden; border-radius: 12px; border: 1px solid var(--line-light);
  margin-bottom: 14px; aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-card);
  transition: box-shadow 300ms ease;
}
.service-visual {
  width: 100%; height: 100%; object-fit: cover; display: block;
  scale: 1.16; /* headroom for the scrubbed parallax drift */
  transition: scale 500ms cubic-bezier(0.16, 0.7, 0.2, 1);
  will-change: transform;
}
.service-group > p { color: var(--muted-light); font-size: 16.5px; margin: 0 0 12px; }
.service-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.service-group li {
  font-size: 16.5px; padding-left: 26px; position: relative; color: var(--ink);
}
.service-group li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 2px; background: var(--violet);
}

/* ---------- process ---------- */
.process { background: var(--white); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0; padding: 0; list-style: none; }
.process-step { padding: 32px; border: 1px solid var(--line-light); border-radius: var(--radius-media); background: var(--paper); }
.process-step .step-n {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: 0.14em; color: var(--violet); margin-bottom: 16px; display: block;
}
.process-step h3 { font-size: 1.4rem; margin-bottom: 12px; }
.process-step p { margin: 0 0 16px; color: var(--muted-light); font-size: 16.5px; }
.process-step ul { margin: 0; padding-left: 20px; color: var(--muted-light); font-size: 16px; display: grid; gap: 8px; }

/* ---------- people ---------- */
.people { background: var(--paper); }
.people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.person {
  display: grid; grid-template-columns: 200px 1fr; gap: 32px; align-items: center;
  background: var(--white); border: 1px solid var(--line-light);
  border-radius: var(--radius-media); padding: 32px;
}
.person img { border-radius: 12px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }
.person h3 { font-size: 1.5rem; margin-bottom: 6px; }
.person .role { color: var(--violet); font-weight: 600; font-size: 16px; margin: 0 0 12px; }
.person p { color: var(--muted-light); font-size: 16.5px; margin: 0; }

/* ---------- investment & FAQ ---------- */
.invest { background: var(--white); border-top: 1px solid var(--line-light); }
.invest-card {
  background: var(--ink); color: #fff; border-radius: 20px;
  padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  margin-bottom: 80px;
}
.invest-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.015em; margin-bottom: 16px; }
.invest-card p { color: var(--muted-dark); margin: 0 0 28px; max-width: 44ch; }

.faq-list { display: grid; gap: 16px; max-width: 860px; }
.faq-list details {
  border: 1px solid var(--line-light); border-radius: 14px; background: var(--paper);
  padding: 0; overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 24px 28px; font-weight: 600; font-size: 18px;
  font-family: var(--font-display); list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; font-size: 26px; font-weight: 400; color: var(--violet); flex: none;
  transition: transform var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details .faq-a { padding: 0 28px 28px; color: var(--muted-light); font-size: 17px; max-width: 68ch; }
.faq-list details .faq-a p { margin: 0 0 12px; }
.faq-list details .faq-a p:last-child { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; }
.contact-rows { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line-dark); }
.contact-row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line-dark); text-decoration: none;
}
.contact-row .label { color: var(--muted-dark); font-size: 15px; }
.contact-row .value { color: #fff; font-weight: 600; font-size: 18px; text-align: right; }
a.contact-row:hover .value { color: var(--lilac); }

.contact-form {
  background: var(--ink-2); border: 1px solid var(--line-dark);
  border-radius: 20px; padding: 48px;
}
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.field .opt { color: var(--muted-dark); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--ink); border: 1px solid var(--line-dark);
  border-radius: 12px; color: #fff; font: inherit; font-size: 16.5px;
  padding: 14px 18px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23C8B5FF' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right 18px center;
  padding-right: 48px; cursor: pointer;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--lilac); outline-offset: 2px; border-color: var(--lilac);
}
.form-note { font-size: 15px; color: var(--muted-dark); margin: 20px 0 0; }
.form-note a { color: var(--lilac); }
.form-status { font-size: 15px; color: var(--lilac); margin: 16px 0 0; min-height: 1.5em; }
.form-errors {
  border: 2px solid #e05555; border-radius: 12px; padding: 18px 22px;
  margin-bottom: 24px; color: #fff; background: rgba(224, 85, 85, 0.08);
}
.form-errors strong { display: block; margin-bottom: 8px; }
.form-errors ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.form-errors a { color: #ffb3b3; }

/* ---------- footer ---------- */
.site-footer { background: #0b0b0e; color: var(--muted-dark); padding: 64px 0 40px; border-top: 1px solid var(--line-dark); }
.footer-grid { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; margin-bottom: 48px; }
.footer-brand img { width: 44px; height: 44px; margin-bottom: 16px; }
.footer-brand p { margin: 0; font-size: 15px; max-width: 30ch; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer-nav a { color: var(--muted-dark); text-decoration: none; font-size: 16px; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: grid; gap: 12px; font-size: 16px; }
.footer-contact a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-contact a:hover { color: var(--lilac); }
.footer-base {
  border-top: 1px solid var(--line-dark); padding-top: 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px;
}

/* ---------- service strip (included-in-every-project) ---------- */
.service-strip {
  margin-top: 64px; border: 1px solid var(--line-light); border-radius: var(--radius-media);
  background: var(--white); padding: 48px; display: grid; grid-template-columns: 240px 1fr; gap: 48px;
}
.service-strip h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.service-strip ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 20px; }
.service-strip li { font-size: 16.5px; color: var(--muted-light); max-width: 64ch; }
.service-strip li strong { color: var(--ink); }
.service-strip li::marker { content: none; }

/* ---------- work link under case schema ---------- */
.work-link { margin: 28px 0 0; font-size: 17px; font-weight: 600; }
.work-link a { color: var(--violet); text-decoration: none; border-bottom: 2px solid var(--lilac); padding-bottom: 2px; }
.work-link a:hover { color: var(--violet-deep); border-color: var(--violet-deep); }

/* ---------- case-study pages ---------- */
.draft-banner {
  background: #2a1d08; border: 1px solid #8a5a1a; color: #ffd98a;
  border-radius: 12px; padding: 16px 24px; font-size: 15.5px; margin-bottom: 40px;
}
.draft-banner strong { color: #fff; }
.case-hero { padding: 148px 0 72px; background: var(--ink); color: #fff; }
.case-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 20ch; }
.case-hero .section-lede { max-width: 62ch; }
.case-body { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; }
.case-facts { display: grid; gap: 28px; align-content: start; }
.case-fact h2 { font-size: 1.15rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.case-fact p { margin: 0; color: var(--muted-light); font-size: 17px; max-width: 52ch; }
.case-fact .pending { color: var(--muted-light); font-style: italic; }
.case-visual {
  border-radius: var(--radius-media); min-height: 420px; padding: 48px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--paper-deep); border: 2px dashed rgba(109, 56, 232, 0.45);
}
.case-visual p { color: var(--muted-light); font-size: 17px; max-width: 34ch; margin: 0; }
.case-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 72px; border-top: 1px solid var(--line-light); padding-top: 32px; flex-wrap: wrap; }
.case-nav a { color: var(--violet); font-weight: 600; text-decoration: none; font-size: 17px; }
.case-nav a:hover { color: var(--violet-deep); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .assembly { min-height: 420px; }
  .stage-list { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .invest-card { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-dark); padding: 16px 24px 28px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav a { display: block; padding: 12px 14px; font-size: 18px; }
  .site-nav a[aria-current="page"] { border-radius: 12px; }
  .site-nav.open .nav-cta { display: block; margin: 16px 4px 8px; text-align: center; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .work-block, .work-block.flip { grid-template-columns: 1fr; gap: 32px; }
  .work-block.flip .work-visual { order: 0; }
  .service-groups { grid-template-columns: 1fr; }
  .service-strip { grid-template-columns: 1fr; gap: 24px; padding: 32px 28px; }
  .process-steps { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 132px 0 72px; }
  .case-hero { padding: 124px 0 56px; }
  .hero-sub { font-size: 18px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .assembly { min-height: 430px; }
  .assembly-stage { width: 280px; height: 360px; }
  .stage-list { grid-template-columns: 1fr; }
  .person { grid-template-columns: 140px 1fr; gap: 20px; padding: 24px; }
  .invest-card { padding: 36px 28px; }
  .contact-form { padding: 32px 24px; }
  .case-schema > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Stage 4: workshop assembly ----------
   CSS-3D-first website assembly, scroll-driven by a small vanilla driver.
   Progressive enhancement: the .assembly block stays hidden until JS
   confirms preserve-3d support; everyone else keeps the plain stage list. */
.assembly[hidden], .stage-list[hidden] { display: none !important; }

.assembly-track { position: relative; height: 340vh; }
.assembly-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.assembly-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 72px; align-items: center; width: 100%;
}

/* --- 3D viewport --- */
.assembly-viewport {
  position: relative; height: min(74vh, 660px); min-height: 430px;
  perspective: 1500px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-media); overflow: hidden;
  border: 1px solid var(--line-dark);
  background:
    radial-gradient(ellipse 62% 52% at 50% 56%, rgba(109, 56, 232, 0.16), transparent 70%),
    repeating-linear-gradient(0deg, rgba(200, 181, 255, 0.07) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(200, 181, 255, 0.07) 0 1px, transparent 1px 44px),
    linear-gradient(160deg, #16161d, #0e0e13);
}
.a-tilt { transform-style: preserve-3d; will-change: transform; }
.a-sway { transform-style: preserve-3d; }
@media (prefers-reduced-motion: no-preference) {
  .a-sway { animation: aSway 8s ease-in-out infinite; }
}
@keyframes aSway { 0%, 100% { rotate: -2.5deg; } 50% { rotate: 2.5deg; } }
.a-stack {
  --ss: 1;
  position: relative; width: 400px; height: 500px;
  transform: scale(var(--ss)); transform-style: preserve-3d;
}
.a-layer {
  position: absolute; inset: 0; border-radius: 18px;
  transform-style: preserve-3d; backface-visibility: hidden;
  padding: 32px 30px; display: flex; flex-direction: column; gap: 13px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity;
}
.a-tag {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}

/* Layer 1: structure (blueprint) */
.a-l1 { background: linear-gradient(160deg, #17171f, #0f0f14); border: 1px solid rgba(200, 181, 255, 0.4); }
.a-l1 .a-tag { color: var(--lilac); }
.bp { display: block; border: 1.5px dashed rgba(200, 181, 255, 0.55); border-radius: 8px; }
.bp-head { height: 42px; }
.bp-hero { height: 118px; }
.bp-cols { display: flex; gap: 12px; }
.bp-cols i { flex: 1; height: 108px; border: 1.5px dashed rgba(200, 181, 255, 0.55); border-radius: 8px; }
.bp-foot { height: 32px; margin-top: auto; }

/* Layer 2: content (paper) */
.a-l2 { background: var(--paper); border: 1px solid rgba(16, 16, 20, 0.1); }
.a-l2 .a-tag { color: var(--violet-deep); }
.tx { display: block; border-radius: 6px; background: rgba(16, 16, 20, 0.16); height: 12px; }
.tx-h { height: 26px; background: var(--ink); border-radius: 8px; width: 88%; }
.tx-h2 { width: 62%; }
.tx-mid { width: 72%; }
.tx-q { height: 62px; margin-top: auto; background: rgba(109, 56, 232, 0.14); border-left: 4px solid var(--violet); border-radius: 0 8px 8px 0; }

/* Layer 3: imagery */
.a-l3 { background: linear-gradient(150deg, #241a52, #6d38e8 65%, #8f6bff); border: 1px solid rgba(255, 255, 255, 0.25); }
.a-l3 .a-tag { color: #fff; }
.im { display: block; }
.im-hero {
  height: 168px; border-radius: 12px; position: relative; overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.im-hero i { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); right: -32px; top: -32px; }
.im-row { display: flex; gap: 12px; }
.im-row i { flex: 1; height: 72px; border-radius: 10px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.25); }
.im-dev { margin-top: auto; position: relative; height: 118px; }
.d-desk { position: absolute; left: 0; bottom: 0; width: 196px; height: 116px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 10px; background: rgba(16, 16, 20, 0.35); }
.d-mob { position: absolute; right: 22px; bottom: 0; width: 62px; height: 106px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 12px; background: rgba(16, 16, 20, 0.45); }

/* Layer 4: interface + automation pulses */
.a-l4 { background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(16, 16, 20, 0.08); }
.a-l4 .a-tag { color: var(--violet-deep); }
.ui { display: block; }
.ui-nav { display: flex; align-items: center; gap: 10px; background: var(--ink); border-radius: 999px; padding: 12px 18px; }
.ui-nav i { width: 34px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.35); }
.ui-nav b { margin-left: auto; width: 72px; height: 24px; border-radius: 999px; background: linear-gradient(90deg, var(--violet), #7b27d8); }
.ui-cta { display: flex; gap: 12px; }
.ui-cta b { height: 44px; border-radius: 12px; background: linear-gradient(90deg, var(--violet), #7b27d8); flex: 1.2; }
.ui-cta b.ghost { background: transparent; border: 2px solid rgba(16, 16, 20, 0.2); flex: 1; }
.ui-chat { display: flex; flex-direction: column; gap: 8px; }
.ui-chat i { height: 28px; border-radius: 14px; background: rgba(109, 56, 232, 0.14); }
.ui-chat i:nth-child(1) { width: 75%; }
.ui-chat i:nth-child(2) { width: 55%; align-self: flex-end; background: rgba(16, 16, 20, 0.08); }
.ui-chat i:nth-child(3) { width: 65%; }
.ui-nodes { margin-top: auto; display: flex; gap: 16px; align-items: center; padding-top: 6px; }
.ui-nodes i { width: 15px; height: 15px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px rgba(109, 56, 232, 0.16); }
@media (prefers-reduced-motion: no-preference) {
  .ui-nodes i { animation: nodePulse 2.4s ease-in-out infinite; }
  .ui-nodes i:nth-child(2) { animation-delay: 0.4s; }
  .ui-nodes i:nth-child(3) { animation-delay: 0.8s; }
}
@keyframes nodePulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } }

.a-glow {
  position: absolute; left: 50%; top: 64%; width: 440px; height: 170px;
  transform: translate(-50%, -50%); pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse at center, rgba(109, 56, 232, 0.5), transparent 70%);
  filter: blur(32px);
}
.assembly-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  margin: 0; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-dark); white-space: nowrap; transition: opacity 400ms ease;
}
.assembly-hint.is-done { opacity: 0; }

/* --- side: panels, controls, progress --- */
.assembly-side { display: flex; flex-direction: column; gap: 26px; min-width: 0; }
.a-panel:not(.is-active) { display: none; }
.a-stage-num {
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac); margin: 0 0 10px;
}
.a-panel h3 { font-size: 2rem; letter-spacing: -0.01em; margin: 0 0 12px; }
.a-panel > p:last-child { color: var(--muted-dark); margin: 0; font-size: 17px; max-width: 44ch; }
@media (prefers-reduced-motion: no-preference) {
  .a-panel.is-active { animation: panelIn 320ms ease; }
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.assembly-controls { display: flex; flex-wrap: wrap; gap: 10px; }
.assembly-controls button {
  appearance: none; border: 1px solid var(--line-dark); background: transparent; color: #fff;
  border-radius: 999px; padding: 10px 18px 10px 12px; font: inherit; font-size: 15px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.assembly-controls button:hover { border-color: var(--lilac); transform: translateY(-1px); }
.assembly-controls button[aria-current="true"] { background: var(--violet); border-color: var(--violet); }
.ac-num {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
}
.assembly-controls button[aria-current="true"] .ac-num { background: rgba(255, 255, 255, 0.25); }

.assembly-progress { height: 3px; background: rgba(255, 255, 255, 0.12); border-radius: 2px; overflow: hidden; }
.assembly-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--lilac)); transform: scaleX(0); transform-origin: 0 50%; }
.assembly-skip { color: var(--lilac); font-size: 15px; font-weight: 600; text-decoration: none; align-self: flex-start; }
.assembly-skip:hover { text-decoration: underline; }

/* --- reduced motion: static assembled scene, tab-style controls --- */
.assembly.is-reduced .assembly-track { height: auto; }
.assembly.is-reduced .assembly-sticky { position: static; height: auto; overflow: visible; padding: 24px 0; }
.assembly.is-reduced .assembly-hint { display: none; }
@media (prefers-reduced-motion: reduce) {
  .a-sway, .ui-nodes i, .a-panel.is-active { animation: none !important; }
}

/* --- responsive --- */
@media (max-width: 1100px) {
  .assembly-track { height: 300vh; }
  .assembly-grid { grid-template-columns: 1fr; gap: 36px; }
  .assembly-viewport { height: 50vh; min-height: 380px; }
  .a-stack { --ss: 0.8; }
  .a-panel h3 { font-size: 1.6rem; }
}
@media (max-width: 640px) {
  .a-stack { --ss: 0.52; }
  .assembly-viewport { height: 42vh; min-height: 300px; }
  .assembly-grid { gap: 28px; }
  .assembly-controls button { font-size: 14px; padding: 8px 14px 8px 10px; }
  .assembly-side { gap: 18px; }
  .assembly-hint { font-size: 11px; bottom: 12px; }
  .a-panel > p:last-child { font-size: 16px; }
}

/* ---------- Stage 5: motion polish, scroll reveals, page transitions ----------
   Same rules as Stage 4: transform/opacity only, vanilla JS, no libraries.
   Everything below is progressive enhancement:
   - CSS entrance/ambient animation is gated behind prefers-reduced-motion: no-preference,
     so reduced-motion visitors get a calm static page.
   - Scroll reveals only apply when JS adds .rv (class .js on <html>), so no-JS
     visitors always see full content. */

/* --- header deepens once scrolled --- */
.site-header.is-scrolled {
  background: rgba(16, 16, 20, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* --- hero entrance: staggered, plays once on load --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: heroIn 720ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .hero-copy > :nth-child(1) { animation-delay: 40ms; }
  .hero-copy > :nth-child(2) { animation-delay: 130ms; }
  .hero-copy > :nth-child(3) { animation-delay: 220ms; }
  .hero-copy > :nth-child(4) { animation-delay: 310ms; }
  .hero-copy > :nth-child(5) { animation-delay: 400ms; }
  .hero-visual { animation: heroIn 720ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards; animation-delay: 280ms; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
}

/* --- hero poster: gentle continuous life --- */
@media (prefers-reduced-motion: no-preference) {
  .hero .assembly-stage { animation: posterDrift 16s ease-in-out infinite; }
  .hero .signal path {
    stroke-dasharray: 920; stroke-dashoffset: 920;
    animation: signalDraw 6s ease-in-out infinite;
  }
  .hero .signal circle {
    transform-box: fill-box; transform-origin: center;
    animation: signalPulse 6s ease-in-out infinite;
  }
}
@keyframes posterDrift {
  0%, 100% { transform: rotateX(calc(52deg + var(--tx, 0deg))) rotateZ(calc(-36deg + var(--tz, 0deg))); }
  50% { transform: rotateX(calc(47deg + var(--tx, 0deg))) rotateZ(calc(-31deg + var(--tz, 0deg))) translateZ(18px); }
}
@keyframes signalDraw {
  0% { stroke-dashoffset: 920; opacity: 0; }
  12% { opacity: 1; }
  55% { stroke-dashoffset: 0; opacity: 1; }
  78% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -920; opacity: 0; }
}
@keyframes signalPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.65; }
}

/* --- scroll reveals (JS adds .rv; .in when the element enters view) --- */
.js .rv {
  opacity: 0; translate: 0 30px;
  transition: opacity 700ms ease, translate 700ms ease;
  transition-delay: var(--rd, 0ms);
}
.js .rv.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
  .js .rv { opacity: 1; translate: none; transition: none; }
}

/* --- page transition veil (cross-page link fade) --- */
.veil {
  position: fixed; inset: 0; z-index: 400; background: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity 200ms ease;
}
.veil.is-on { opacity: 1; pointer-events: auto; }

/* ================= Stage 8 — Elevation =================
   Cinematic hero, depth/hover systems, CTA band, refined details.
   Vanilla only. All motion gated behind no-preference. */

:root {
  --shadow-card: 0 2px 6px rgba(16, 16, 20, 0.06), 0 18px 44px -18px rgba(16, 16, 20, 0.22);
  --shadow-lift: 0 4px 10px rgba(16, 16, 20, 0.08), 0 28px 60px -20px rgba(109, 56, 232, 0.35);
  --grad-brand: linear-gradient(135deg, #6D38E8 0%, #8b3ff0 55%, #5529c4 100%);
  --grad-text: linear-gradient(120deg, #C8B5FF 10%, #8f5bf0 90%);
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- buttons: depth, gradient, shine ---------- */
.btn {
  transition: background-color var(--ease), color var(--ease), border-color var(--ease),
    transform 220ms ease, box-shadow 220ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad-brand);
  box-shadow: 0 10px 28px -8px rgba(109, 56, 232, 0.55);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-primary:hover { background: var(--grad-brand); box-shadow: 0 16px 38px -8px rgba(109, 56, 232, 0.7); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform 700ms ease; }
.btn-lg { padding: 20px 46px; font-size: 19px; }

/* ---------- hero 2.0 ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; }
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-orbs { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-orbs span { position: absolute; border-radius: 50%; filter: blur(110px); }
.hero-orbs span:nth-child(1) {
  width: 560px; height: 560px; background: rgba(109, 56, 232, 0.38);
  top: -180px; right: -140px; animation: drift-a 18s ease-in-out infinite alternate;
}
.hero-orbs span:nth-child(2) {
  width: 440px; height: 440px; background: rgba(139, 63, 240, 0.28);
  bottom: -160px; left: -120px; animation: drift-b 24s ease-in-out infinite alternate;
}
.hero-orbs span:nth-child(3) {
  width: 320px; height: 320px; background: rgba(200, 181, 255, 0.16);
  top: 38%; left: 44%; animation: drift-a 28s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate(-70px, 50px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(60px, -60px) scale(1.06); } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-dark); border-radius: 999px;
  padding: 10px 20px; font-size: 13px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #18d26e; flex: none;
  box-shadow: 0 0 0 0 rgba(24, 210, 110, 0.5);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 12px rgba(24, 210, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(24, 210, 110, 0); }
}

.hero h1 { font-size: clamp(3rem, 6.6vw, 6.2rem); }

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 44px; border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px; z-index: 1;
  transition: border-color var(--ease);
}
.scroll-cue:hover { border-color: var(--lilac); }
.scroll-cue span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 9px;
  margin-left: -2px; border-radius: 4px; background: var(--lilac);
  animation: cue-drop 1.9s ease-in-out infinite;
}
@keyframes cue-drop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(15px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* hero poster: gentle float + glow */
.hero-visual .assembly {
  animation: floaty 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(109, 56, 232, 0.35));
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* kinetic headline: word-by-word rise (JS splits [data-kinetic]) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-kinetic] .w {
    display: inline-block; overflow: hidden; vertical-align: bottom;
    padding-bottom: 0.09em; margin-bottom: -0.09em;
  }
  .js [data-kinetic] .wi {
    display: inline-block; transform: translateY(112%);
    animation: rise-in 0.9s cubic-bezier(0.16, 0.7, 0.2, 1) forwards;
    animation-delay: var(--wd, 0ms);
  }
  @keyframes rise-in { to { transform: translateY(0); } }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 150px 0;
  background:
    radial-gradient(60% 90% at 50% 110%, rgba(109, 56, 232, 0.5), transparent 65%),
    radial-gradient(40% 60% at 85% 0%, rgba(139, 63, 240, 0.28), transparent 60%),
    var(--ink);
}
.cta-band .eyebrow { justify-content: center; }
.cta-band .eyebrow::before { display: none; }
.cta-band h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.025em;
  margin: 0 0 24px; color: #fff; text-wrap: balance;
}
.cta-sub {
  font-size: 20px; color: var(--muted-dark);
  margin: 0 0 44px; max-width: 52ch; margin-left: auto; margin-right: auto;
}

/* ---------- depth & hover systems ---------- */
.service-group { transition: transform 260ms ease; }
.service-group:hover { transform: translateY(-6px); }
/* Hover zoom uses the independent `scale` property so it composes with the
   scroll parallax (transform) instead of fighting it. */
.service-group:hover .service-media { box-shadow: var(--shadow-lift); }
.service-group:hover .service-visual { scale: 1.22; }

.work-block { transition: transform 260ms ease; }
.work-block:hover { transform: translateY(-4px); }
.work-visual.placeholder {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 100% at 12% 8%, rgba(109, 56, 232, 0.42), transparent 58%),
    radial-gradient(110% 90% at 88% 95%, rgba(200, 181, 255, 0.3), transparent 55%),
    linear-gradient(160deg, #1d1d26 0%, #101014 70%);
  border: 1px dashed rgba(200, 181, 255, 0.45);
  box-shadow: var(--shadow-card);
}
.work-visual.placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(200, 181, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 181, 255, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, black, transparent);
}

.person { transition: transform 260ms ease; }
.person:hover { transform: translateY(-6px); }
.person img {
  transition: transform 500ms cubic-bezier(0.16, 0.7, 0.2, 1), box-shadow 300ms ease;
  box-shadow: var(--shadow-card);
}
.person:hover img { transform: scale(1.02); box-shadow: var(--shadow-lift); }

.invest-card { transition: transform 260ms ease, box-shadow 260ms ease; }
.invest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.contact-row { transition: transform 200ms ease, border-color var(--ease); }
.contact-row:hover { transform: translateX(6px); border-color: var(--lilac); }

.step-n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 4.5vw, 4rem); line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- footer wordmark ---------- */
.footer-word {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(4rem, 15vw, 13rem); line-height: 0.95;
  letter-spacing: -0.035em; text-align: center;
  margin: 72px 0 8px; user-select: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- reduced motion: stillness ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-orbs span, .hero-visual .assembly, .pulse, .scroll-cue span { animation: none !important; }
  .btn:hover, .service-group:hover, .work-block:hover, .person:hover,
  .invest-card:hover, .contact-row:hover { transform: none; }
  .btn-primary::after { display: none; }
}

/* ---------- responsive tightening ---------- */
@media (max-width: 900px) {
  .hero { padding: 150px 0 110px; }
  .cta-band { padding: 110px 0; }
}
@media (max-width: 640px) {
  .hero { min-height: 100svh; padding: 140px 0 100px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
  .scroll-cue { display: none; }
  .cta-band { padding: 90px 0; }
  .footer-word { margin-top: 48px; }
}

/* ================= v4 polish — Stage 2: hero elevation =================
   Load veil, gradient headline accent, poster lighting (aura + ground
   shadow + rim light), and cursor-follow tilt on the poster.
   Vanilla only; everything gated behind no-preference. */

/* Load veil: covers first paint, lifts to reveal the entrance. */
.veiled .veil { opacity: 1; pointer-events: auto; }

/* Headline accent: gradient instead of flat lilac. */
.hero h1 .accent {
  background: linear-gradient(115deg, #d9c8ff 5%, #a47fff 55%, #8f5bf0 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* Poster lighting: violet aura behind the stack, soft ground shadow. */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: -12% -20%;
  background: radial-gradient(48% 48% at 50% 42%, rgba(109, 56, 232, 0.38), transparent 70%);
  filter: blur(28px); pointer-events: none;
}
.hero-visual::after {
  content: ""; position: absolute; left: 14%; right: 14%; bottom: 2%; height: 70px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.6), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
/* Rim light on the poster layers. */
.hero .layer {
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.hero .layer-ui { box-shadow: none; }

@media (prefers-reduced-motion: reduce) {
  .veiled .veil { opacity: 0; }
}

/* ================= Stage 3 — Section craft =================
   One signature refinement per section. CSS-first, transform/opacity-led,
   integrated with the existing .rv/.in reveal system. Vanilla only. */

:root { --ease-out: cubic-bezier(0.16, 0.7, 0.2, 1); }

/* --- section-head cascade: eyebrow, title, lede arrive in sequence --- */
.js .section-head.rv { opacity: 1; translate: none; transition: none; }
.js .section-head.rv > * {
  opacity: 0; translate: 0 26px;
  transition: opacity 700ms ease, translate 700ms ease;
  transition-delay: var(--rd, 0ms);
}
.js .section-head.rv.in > * { opacity: 1; translate: 0 0; }
.js .section-head.rv > :nth-child(2) { transition-delay: calc(var(--rd, 0ms) + 90ms); }
.js .section-head.rv > :nth-child(3) { transition-delay: calc(var(--rd, 0ms) + 180ms); }

/* --- services: violet sweep across the top rule, marker stretch, media tint --- */
.service-group { position: relative; }
.service-group::after {
  content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left center;
  transition: transform 450ms var(--ease-out);
}
.service-group:hover::after, .service-group:focus-within::after { transform: scaleX(1); }
.service-group li::before { transition: width 300ms ease, background 300ms ease; }
.service-group:hover li::before, .service-group:focus-within li::before { width: 20px; }
.service-media { position: relative; }
.service-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(160deg, rgba(109, 56, 232, 0.22), transparent 55%);
  opacity: 0; transition: opacity 400ms ease;
}
.service-group:hover .service-media::after { opacity: 1; }

/* --- work: index rule line, arrow nudge, placeholder sheen on reveal --- */
.work-index { display: flex; align-items: center; gap: 16px; }
.work-index::after { content: ""; flex: 1; height: 1px; background: var(--line-light); }
.work-link a span { display: inline-block; transition: translate 250ms ease; }
.work-link a:hover span, .work-link a:focus-visible span { translate: 5px 0; }

/* --- process: pill badges, connector arrows, card lift --- */
.process-step {
  position: relative;
  transition: transform 260ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.process-step:hover, .process-step:focus-within {
  transform: translateY(-6px);
  border-color: rgba(109, 56, 232, 0.4);
  box-shadow: var(--shadow-lift);
}
.process-step .step-n {
  display: inline-block; padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(109, 56, 232, 0.45); background: rgba(109, 56, 232, 0.08);
  margin-bottom: 20px;
}
@media (min-width: 901px) {
  .process-step:not(:last-child)::after {
    content: "\2192"; position: absolute; right: -30px; top: 40px; z-index: 1;
    width: 28px; text-align: center; color: var(--violet); font-size: 20px;
  }
}

/* --- people: portrait colour treatment, card lift, role underline --- */
.person { transition: transform 260ms ease, box-shadow 300ms ease; }
.person:hover, .person:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.person img { filter: saturate(0.82) contrast(1.02); transition: filter 500ms ease; }
.person:hover img, .person:focus-within img { filter: saturate(1.05) contrast(1); }
.person .role { display: inline-block; position: relative; }
.person .role::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left center;
  transition: transform 400ms var(--ease-out);
}
.person:hover .role::after, .person:focus-within .role::after { transform: scaleX(1); }

/* --- faq: smooth open/close, hover states, open card emphasis --- */
.faq-list details { transition: border-color 300ms ease, box-shadow 300ms ease; }
.faq-list details[open] { border-color: rgba(109, 56, 232, 0.4); box-shadow: var(--shadow-card); }
.faq-list summary { transition: background 250ms ease; border-radius: 14px; }
.faq-list details[open] summary { border-radius: 14px 14px 0 0; }
.faq-list summary:hover { background: rgba(109, 56, 232, 0.06); }
.faq-list details .faq-a {
  display: grid; grid-template-rows: 0fr; padding: 0;
  transition: grid-template-rows 480ms var(--ease-out);
}
.faq-list details[open] .faq-a { grid-template-rows: 1fr; }
.faq-list details .faq-a > * { overflow: hidden; min-height: 0; }
.faq-list details .faq-a > p { padding-left: 28px; padding-right: 28px; }
.faq-list details .faq-a > p:last-child { padding-bottom: 28px; }

/* --- investment card: hairline glow + corner aura --- */
.invest-card { position: relative; overflow: hidden; }
.invest-card::before {
  content: ""; position: absolute; top: 0; left: 56px; right: 56px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 181, 255, 0.55), transparent);
}
.invest-card::after {
  content: ""; position: absolute; top: -140px; right: -100px;
  width: 340px; height: 340px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(109, 56, 232, 0.28), transparent);
}

/* --- service strip: check-circle markers --- */
.service-strip li { position: relative; padding-left: 34px; }
.service-strip li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(109, 56, 232, 0.1); color: var(--violet);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* --- contact rows: hover wash, sliding value --- */
.contact-row { transition: background 250ms ease; }
.contact-row .value { transition: translate 250ms ease, color 250ms ease; }
a.contact-row:hover { background: rgba(200, 181, 255, 0.06); }
a.contact-row:hover .value, a.contact-row:focus-visible .value { translate: 4px 0; }

/* --- form fields: focus lift --- */
.field label { transition: color 250ms ease; }
.field input, .field textarea, .field select {
  transition: border-color 250ms ease, background 250ms ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  background: #141419; border-color: var(--violet);
}
.field:focus-within label { color: var(--lilac); }

/* --- workshop controls: active stage gets the brand gradient --- */
.assembly-controls button[aria-current="true"] {
  background: var(--grad-brand); border-color: transparent;
  box-shadow: 0 6px 20px -6px rgba(109, 56, 232, 0.55);
}

/* --- motion-gated flourishes --- */
@media (prefers-reduced-motion: no-preference) {
  /* one-shot sheen sweep across the work placeholder when it reveals */
  .js .work-block.in .work-visual.placeholder::after {
    content: ""; position: absolute; inset: -20%; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(200, 181, 255, 0.16) 50%, transparent 58%);
    transform: translateX(-60%);
    animation: sheenSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s 1 both;
  }
  @keyframes sheenSweep { to { transform: translateX(60%); } }
}
@media (prefers-reduced-motion: reduce) {
  .js .section-head.rv > * { opacity: 1; translate: none; transition: none; }
  .faq-list details .faq-a { transition: none; }
}

/* ================= Stage 4 — Fine detail + performance =================
   Case-study pages elevated to the homepage standard, selection styling,
   404 page, and the placeholder sheen generalized to any revealed ancestor. */

/* --- case hero: ambient glow, breadcrumb --- */
.case-hero { position: relative; overflow: hidden; }
.case-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% 0%, rgba(109, 56, 232, 0.22), transparent 60%),
    radial-gradient(560px 380px at 88% 20%, rgba(200, 181, 255, 0.12), transparent 60%);
}
.case-hero .wrap { position: relative; }
.case-crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 32px; color: var(--muted-dark); }
.case-crumb a { color: var(--lilac); text-decoration: none; font-weight: 600; }
.case-crumb a:hover { text-decoration: underline; }
.case-crumb [aria-current] { color: var(--muted-dark); }
.case-hero .section-head { max-width: 920px; }
.case-hero .eyebrow { color: var(--lilac); }
.case-hero .eyebrow::before { background: var(--lilac); }
.case-hero h1 { color: #fff; }
.case-hero .section-lede { color: var(--muted-dark); }

/* --- fact cards --- */
.case-facts { display: grid; gap: 16px; align-content: start; }
.case-fact {
  position: relative; border: 1px solid var(--line-light); border-radius: 16px;
  background: var(--white); padding: 24px 24px 24px 76px;
  transition: transform 260ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.case-fact:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(109, 56, 232, 0.35); }
.case-fact .fact-n {
  position: absolute; left: 26px; top: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--violet);
}
.case-fact h2 { font-size: 1.05rem; margin: 0 0 6px; }
.case-fact p { margin: 0; color: var(--muted-light); font-size: 16.5px; }
.case-fact.is-pending { border-style: dashed; background: transparent; }
.case-fact.is-pending:hover { border-color: rgba(109, 56, 232, 0.5); }
.case-fact.is-pending p { font-style: italic; }

/* --- case nav arrow nudge --- */
.case-nav a span[aria-hidden] { display: inline-block; transition: translate 250ms ease; }
.case-nav a:first-child:hover span[aria-hidden] { translate: -4px 0; }
.case-nav a:last-child:hover span[aria-hidden] { translate: 4px 0; }

/* --- text selection --- */
::selection { background: var(--violet); color: #fff; }

/* --- 404 --- */
.not-found { min-height: 72vh; display: flex; align-items: center; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.not-found::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(680px 400px at 50% 30%, rgba(109, 56, 232, 0.22), transparent 65%);
}
.not-found .wrap { position: relative; text-align: center; max-width: 640px; }
.not-found .eyebrow { justify-content: center; }
.not-found .eyebrow::before { display: none; }
.not-found h1 { font-size: clamp(3rem, 9vw, 5.5rem); letter-spacing: -0.03em; margin: 0 0 16px; }
.not-found h1 .grad-text { display: inline-block; white-space: nowrap; }
.not-found p { color: var(--muted-dark); font-size: 18px; margin: 0 0 32px; }

/* --- sheen generalized: any revealed placeholder, homepage or case pages --- */
@media (prefers-reduced-motion: no-preference) {
  .js .in.work-visual.placeholder::after,
  .js .in .work-visual.placeholder::after {
    content: ""; position: absolute; inset: -20%; pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(200, 181, 255, 0.16) 50%, transparent 58%);
    transform: translateX(-60%);
    animation: sheenSweep 1.6s cubic-bezier(0.4, 0, 0.2, 1) 0.35s 1 both;
  }
}

/* ================= Content pages (blog, pricing, services, about, contact) ================= */

/* --- page hero: same ambient language as case-hero, wider headline measure --- */
.page-hero { position: relative; overflow: hidden; padding: 148px 0 72px; background: var(--ink); color: #fff; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% 0%, rgba(109, 56, 232, 0.22), transparent 60%),
    radial-gradient(560px 380px at 88% 20%, rgba(200, 181, 255, 0.12), transparent 60%);
}
.page-hero .wrap { position: relative; }
.page-hero .section-head { max-width: 920px; }
.page-hero .eyebrow { color: var(--lilac); }
.page-hero .eyebrow::before { background: var(--lilac); }
.page-hero h1 {
  color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0 0 20px; max-width: 26ch;
}
.page-hero .section-lede { color: var(--muted-dark); max-width: 62ch; }

/* --- long-form article typography --- */
.prose { max-width: 740px; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.01em; margin: 2.4em 0 0.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; }
.prose p, .prose li { font-size: 17.5px; line-height: 1.75; color: var(--muted-light); }
.prose p + p { margin-top: 1.1em; }
.prose ul, .prose ol { margin: 1.2em 0; padding-left: 1.4em; display: grid; gap: 0.55em; }
.prose a { color: var(--violet); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--violet-deep); }
.prose strong { color: var(--ink); }

/* --- blog index cards --- */
.post-list { display: grid; gap: 20px; }
.post-card {
  display: block; text-decoration: none; background: var(--white);
  border: 1px solid var(--line-light); border-radius: 18px; padding: 32px;
  transition: transform 260ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: rgba(109, 56, 232, 0.35); }
.post-card h2 { color: var(--ink); font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.post-card p { color: var(--muted-light); font-size: 16.5px; line-height: 1.65; margin: 0 0 16px; }
.post-meta { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); }
.post-card .read-more { color: var(--violet); font-weight: 600; font-size: 15.5px; }
.post-card .read-more span { display: inline-block; transition: translate 250ms ease; }
.post-card:hover .read-more span { translate: 4px 0; }

/* --- pricing plan cards --- */
.plan-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.plan-card {
  position: relative; background: var(--white); border: 1px solid var(--line-light);
  border-radius: 20px; padding: 36px; display: flex; flex-direction: column;
  transition: transform 260ms ease, box-shadow 300ms ease, border-color 300ms ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.plan-card.featured { border: 2px solid var(--violet); box-shadow: var(--shadow-lift); }
.plan-flag {
  position: absolute; top: -14px; left: 36px; background: var(--violet); color: #fff;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
}
.plan-card h2 { font-size: 1.35rem; margin: 0 0 8px; }
.plan-card .plan-desc { color: var(--muted-light); font-size: 16px; margin: 0 0 20px; }
.plan-price { font-family: var(--font-display); font-weight: 700; font-size: 3rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.plan-price small { font-family: var(--font-body); font-weight: 500; font-size: 1rem; letter-spacing: 0; color: var(--muted-light); }
.plan-card ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.plan-card li { position: relative; padding-left: 34px; font-size: 16px; color: var(--muted-light); }
.plan-card li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(109, 56, 232, 0.1); color: var(--violet);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.plan-card li strong { color: var(--ink); }
.plan-card .btn { margin-top: auto; }

/* --- maintenance banner on homepage --- */
.care-banner {
  margin-top: 48px; border-radius: 22px; padding: 40px;
  background: linear-gradient(160deg, #1d1d26 0%, #101014 70%);
  border: 1px solid rgba(200, 181, 255, 0.25);
  display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center;
  position: relative; overflow: hidden;
}
.care-banner::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 12% 8%, rgba(109, 56, 232, 0.42), transparent 58%);
}
.care-banner > * { position: relative; }
.care-banner h3 { color: #fff; font-size: 1.6rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.care-banner h3 .grad-text { display: inline-block; }
.care-banner p { color: var(--muted-dark); font-size: 16.5px; margin: 0; max-width: 56ch; }
.care-banner p strong { color: #fff; }
@media (max-width: 720px) {
  .care-banner { grid-template-columns: 1fr; padding: 32px 26px; }
}

/* --- detail rows (services page) --- */
.detail-block { border-top: 1px solid var(--line-light); padding: 56px 0; }
.detail-block:first-of-type { border-top: 0; padding-top: 8px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-grid h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin: 0 0 14px; }
.detail-grid .detail-lede { font-size: 18px; color: var(--muted-light); line-height: 1.7; margin: 0 0 24px; }
.detail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.detail-list li { position: relative; padding-left: 34px; font-size: 16.5px; color: var(--muted-light); }
.detail-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(109, 56, 232, 0.1); color: var(--violet);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.detail-list li strong { color: var(--ink); display: block; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; gap: 28px; } }

/* --- steps (how quoting works) --- */
.steps { display: grid; gap: 16px; counter-reset: step; }
.step {
  position: relative; background: var(--white); border: 1px solid var(--line-light);
  border-radius: 16px; padding: 26px 26px 26px 84px;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 28px; top: 28px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--violet);
}
.step h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted-light); font-size: 16.5px; line-height: 1.65; }

/* --- team cards (about page) --- */
.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.team-card {
  background: var(--white); border: 1px solid var(--line-light); border-radius: 20px;
  overflow: hidden; transition: transform 260ms ease, box-shadow 300ms ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.team-card img { width: 100%; height: 320px; object-fit: cover; display: block; }
.team-card .team-body { padding: 28px; }
.team-card h2 { font-size: 1.35rem; margin: 0 0 4px; }
.team-card .team-role { color: var(--violet); font-weight: 600; font-size: 15px; margin: 0 0 12px; }
.team-card p:last-child { color: var(--muted-light); font-size: 16px; line-height: 1.7; margin: 0; }
