/* ---------- home hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; isolation: isolate; overflow: hidden; background: var(--black-800); } /* = BG in js/hero/config.js */
.stage { position: absolute; inset: 0; z-index: -1; touch-action: pan-y; }
.stage { transform-origin: 66% 53%; will-change: transform; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage.is-live .stage-placeholder { opacity: 0; transition: opacity .6s; }
/* ?capture: a clean frame of the light for the still and OG image */
html.capture .nav, html.capture .hero-copy, html.capture .wa-fab, html.capture .hero::after, html.capture .skip-link { display: none !important; }
/* soft fade from the hero into the next section */
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 18vh; z-index: 0; pointer-events: none; background: linear-gradient(transparent, var(--black-900)); }
/* placeholder glow until the prism engine lands (Phase 2) */
.stage-placeholder { position: absolute; inset: 0; background:
  radial-gradient(38vw 30vw at 66% 53%, rgba(251, 214, 35, .10), transparent 70%),
  radial-gradient(80vw 60vw at 50% 120%, rgba(16, 26, 36, .9), transparent 70%); }
.hero-copy {
  position: relative; z-index: 1; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: var(--nav-h) var(--gutter) 64px; max-width: 620px; pointer-events: none;
}
.hero-copy > * { pointer-events: auto; }
/* soft scrim so copy stays legible where the spectrum fans across it */
.hero-copy::before { content: ""; position: absolute; z-index: -1; inset: 10% -30% 0 -40%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(16, 26, 36, .62), rgba(16, 26, 36, .35) 60%, transparent); }
.hero-copy .eyebrow { margin-bottom: 18px; text-wrap: balance; }
.wordmark { font: 500 clamp(64px, 8.6vw, 124px)/.9 var(--display); letter-spacing: -.035em; margin-bottom: clamp(14px, 1.8vw, 22px); }
.lede { font: 400 clamp(26px, 2.8vw, 40px)/1.2 var(--sans); letter-spacing: -.025em; margin-bottom: clamp(24px, 2.6vw, 36px); }
.lede span { display: block; }
.lede span + span { color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.tab { color: var(--dim); padding: 6px 0; position: relative; transition: color var(--t-hover); }
.tab:hover { color: var(--muted); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--volt); border-radius: 2px; }
.tabs .dot { color: var(--dim); font-size: 11px; }
.cmd { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 460px; padding-top: 14px; font-size: 15px; line-height: 1.5; min-height: 58px; }
.cmd::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08) 70%, transparent); }
.cmd-text { transition: opacity .18s, transform .18s; }
.cmd-text.swap { opacity: 0; transform: translateY(3px); }
.cmd-go { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); transition: color var(--t-hover), border-color var(--t-hover), background var(--t-hover); }
.cmd-go:hover { color: var(--black-900); background: var(--volt); border-color: var(--volt); }
.cmd-go svg { width: 16px; height: 16px; }
[dir="rtl"] .cmd-go svg { transform: scaleX(-1); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.rise { opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease) forwards; }
.rise:nth-child(2) { animation-delay: .08s; } .rise:nth-child(3) { animation-delay: .16s; } .rise:nth-child(4) { animation-delay: .24s; }
.rise:nth-child(5) { animation-delay: .32s; } .rise:nth-child(6) { animation-delay: .4s; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .hero { min-height: max(100svh, 720px); }
  .hero-copy { justify-content: flex-start; min-height: 0; padding-top: calc(var(--nav-h) + clamp(28px, 7svh, 64px)); max-width: 100%; }
}
/* phones: the prism needs the lower half of the first screen; "Explore solutions" covers the tabs */
@media (max-width: 819px) { .hero .tabs, .hero .cmd { display: none; } .hero-ctas { margin-top: 4px; } }
@media (max-width: 420px) { .tabs { font-size: 14px; gap: 6px; } .cmd { font-size: 14px; } }
@media (pointer: coarse), (max-width: 819px) { .tab { padding-block: 12px; } .tabs { row-gap: 0; margin-bottom: 4px; } .cmd-go { width: 44px; height: 44px; } }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; animation: none; } }

/* ---------- trust strip ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; position: relative; z-index: 1; background: var(--black-900); }
.marquee { display: flex; width: max-content; }
.marquee-track { display: flex; align-items: center; gap: 28px; padding-inline-end: 28px; list-style: none; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { font: 400 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-track .bolt { width: 6px; height: 12px; opacity: .9; }
@keyframes marquee { to { transform: translateX(-100%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
html.no-motion .marquee-track { animation: none; }

/* ---------- intro statement ---------- */
.intro .statement { font: 500 clamp(30px, 4.4vw, 64px)/1.12 var(--display); letter-spacing: -.02em; max-width: 22ch; margin-block: 28px 36px; text-wrap: balance; }
.statement .word { opacity: .15; transition: opacity .2s linear; }
.statement .word.on { opacity: 1; }
html.no-motion .statement .word { opacity: 1; }
.intro-link { color: var(--muted); }

/* ---------- solutions grid ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol { display: flex; flex-direction: column; }
.sol-media { aspect-ratio: 4 / 3; overflow: hidden; }
.sol-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .4s; filter: saturate(.9) brightness(.86); }
.sol:hover .sol-media img { transform: scale(1.04); filter: none; }
.sol-body { position: relative; padding: 22px 22px 26px; display: grid; gap: 10px; flex: 1; align-content: start; }
.sol-idx { font: 400 12px/1 var(--mono); letter-spacing: .12em; color: var(--volt); }
.sol h3 { font-size: 24px; }
.sol p { color: var(--muted); font-size: 15px; line-height: 1.55; padding-inline-end: 40px; }
.sol-go { position: absolute; inset-inline-end: 18px; bottom: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: all var(--t-hover); }
.sol-go svg { width: 15px; height: 15px; }
.sol:hover .sol-go { background: var(--volt); border-color: var(--volt); color: var(--black-900); }
[dir="rtl"] .sol-go svg { transform: scaleX(-1); }
@media (max-width: 1100px) { .sol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sol-grid { grid-template-columns: 1fr; } }

/* ---------- studio teaser: two real showroom frames ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.studio .section-head { margin-bottom: 28px; }
.studio-stops { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.studio-stops li { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: var(--r-pill); }
.studio-stops a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; }
.studio-stops a:hover { color: var(--ink); }
.studio-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.studio-shots img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-card); }
.studio-shots picture:nth-child(2) { margin-top: 48px; }
.studio-shots figcaption { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- why (paper) ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.why-head { position: sticky; top: calc(var(--nav-h) + 48px); display: grid; gap: 20px; }
.pillars { list-style: none; position: relative; padding-inline-start: 32px; display: grid; gap: clamp(48px, 8vh, 96px); padding-block: 8vh; }
.pillars::before, .pillars::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 2px; border-radius: 2px; }
.pillars::before { background: var(--line-dark); }
.pillars::after { background: var(--volt); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(251, 214, 35, .6); }
.pillar { opacity: .28; transition: opacity .5s var(--ease); display: grid; gap: 10px; }
.pillar.on { opacity: 1; }
.pillar-n { font: 400 12px/1 var(--mono); letter-spacing: .12em; color: var(--volt-text); }
.pillar h3 { font-size: clamp(28px, 3vw, 40px); }
.pillar p { font-size: 18px; color: var(--muted-dark); max-width: 44ch; }
html.no-motion .pillar { opacity: 1; }
html.no-motion .pillars { --p: 1; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } .why-head { position: static; } }

/* ---------- process ---------- */
.steps { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 36px; --p: 0; }
.steps::before, .steps::after { content: ""; position: absolute; top: 7px; left: 7px; right: 7px; height: 1px; }
.steps::before { background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--volt-deep), var(--volt)); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 10px rgba(251, 214, 35, .7); }
[dir="rtl"] .steps::after { transform-origin: right; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.node { position: absolute; top: -36px; inset-inline-start: 0; width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--black-900); transition: all .4s var(--ease); z-index: 1; }
.step.on .node { background: var(--volt); border-color: var(--volt); box-shadow: 0 0 0 5px rgba(251, 214, 35, .14), 0 0 18px rgba(251, 214, 35, .8); }
.step h3 { font-size: 26px; }
.step p { color: var(--muted); font-size: 15px; }
html.no-motion .steps { --p: 1; }
html.no-motion .step .node { background: var(--volt); border-color: var(--volt); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; padding-top: 0; padding-inline-start: 36px; gap: 36px; }
  .steps::before, .steps::after { top: 7px; bottom: 7px; left: 7px; right: auto; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--p)); transform-origin: top; }
  .node { top: 4px; inset-inline-start: -36px; }
}

/* ---------- numbers ---------- */
.numbers { padding-block: clamp(64px, 8vw, 112px); border-block: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { display: grid; gap: 10px; padding-inline-start: 20px; border-inline-start: 1px solid var(--line-volt); }
.stat-n { font: 500 clamp(48px, 6vw, 88px)/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--muted); font-size: 15px; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } }

/* ---------- featured projects: pinned horizontal (desktop), swipe row (mobile) ---------- */
.featured { position: relative; padding-top: clamp(80px, 11vw, 160px); overflow-x: clip; } /* clip (not hidden) keeps sticky working */
/* not pinned (no JS, reduced motion, or before motion.js runs): a native scroll row at every width */
.featured:not(.is-pinned) .pin-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 12px; }
.featured:not(.is-pinned) .prj { scroll-snap-align: start; }
.pin-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.pin-head .eyebrow { margin-bottom: 20px; }
.pin-track { list-style: none; display: flex; gap: 16px; padding-inline: var(--gutter); }
.prj { flex: none; width: 34vw; }
.prj:nth-child(even) { margin-top: 48px; }
.prj figure { display: grid; gap: 14px; }
.prj picture { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-card); border: 1px solid var(--line); }
.prj img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.prj:hover img { transform: scale(1.04); }
.prj figcaption { display: grid; gap: 4px; }
.prj strong { font: 500 20px/1.2 var(--display); }
.prj span { font: 400 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 820px) {
  .featured.is-pinned .pin { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
  .featured.is-pinned .pin-track { will-change: transform; }
}
@media (max-width: 819px) {
  .pin-head { flex-direction: column; align-items: start; }
  .pin-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .pin-track::-webkit-scrollbar { display: none; }
  .prj { width: 82vw; scroll-snap-align: center; }
  .prj:nth-child(even) { margin-top: 0; }
}

/* ---------- testimonials (hidden by flag) ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quotes blockquote { padding: 28px; display: grid; gap: 20px; align-content: space-between; }
.quotes footer { font: 400 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- final CTA band: the one full-volt surface ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--volt); color: var(--black-900); padding-block: clamp(72px, 10vw, 140px); margin-top: clamp(80px, 11vw, 160px); }
.cta-band::after { content: ""; position: absolute; top: -50%; bottom: -50%; left: -40%; width: 30%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: sheen 6s var(--ease) infinite; }
@keyframes sheen { 0%, 70% { left: -40%; } 100% { left: 130%; } }
html.no-motion .cta-band::after { display: none; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(44px, 6.4vw, 96px); max-width: 12ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-line { border: 1px solid rgba(6, 10, 18, .35); color: var(--black-900); }
.btn-line:hover { background: rgba(6, 10, 18, .08); border-color: var(--black-900); }
.cta-band :focus-visible { outline-color: var(--black-900); }
