/* Elfsquad homepage: the back office with the lights off */

@font-face {
  font-family: 'Instrument Sans';
  src: url('assets/fonts/InstrumentSans-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('assets/fonts/InstrumentSerif-Italic-latin.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}

:root {
  --night: #00221F;
  --deep: #004B48;
  --neon: #00FF81;
  --free: #AEFFCB;
  --paper: #F5F6F0;
  --orange: #FF6911;
  --turq: #71D5D8;

  --gutter: max(clamp(20px, 4.4vw, 64px), calc(50vw - 656px));
  --ease: cubic-bezier(.16, 1, .3, 1);
  --rule-dark: rgba(0, 34, 31, .18);
  --rule-light: rgba(245, 246, 240, .18);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--deep) var(--night); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--night);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 1.0625rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--neon); color: var(--night); }

h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--focus, var(--neon)); outline-offset: 3px; border-radius: 6px; }
.road, .proof, .team { --focus: var(--night); }
.road, .proof, .team { background: var(--paper); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 30; background: var(--neon); color: var(--night); padding: 12px 20px; border-radius: 9999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Type ---------- */

h1, h2 { font-weight: 500; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.3vw, 5.6rem); line-height: 1; }
h2 { font-size: clamp(2rem, 4.3vw, 3.7rem); line-height: 1.04; }
h1 em, h2 em {
  font-family: 'Instrument Serif', 'Instrument Sans', serif;
  font-style: italic; font-weight: 400; letter-spacing: -.015em;
  font-size: 1.1em; line-height: .9;
}
.hero h1 em, .routine h2 em, .arch-section h2 em { color: var(--neon); }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; }
.sample { font-size: .8125rem; line-height: 1.5; opacity: .72; margin-top: 14px; }

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-block; background: var(--neon); color: var(--night);
  font-size: .875rem; font-weight: 600; line-height: 1.2;
  padding: 12px 24px; border-radius: 9999px; border: 1px solid var(--neon);
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.btn:hover { background: var(--free); border-color: var(--free); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-large { font-size: 1rem; padding: 16px 32px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.text-link:hover { text-decoration-thickness: 2px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed; z-index: 20; top: 16px; left: 24px; right: 24px;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 14px 0 24px;
  background: rgba(0, 34, 31, .78); color: var(--paper);
  border: 1px solid var(--rule-light); border-radius: 16px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.nav .logo { display: block; width: 128px; flex: none; }
.links { display: flex; gap: clamp(18px, 2.6vw, 40px); margin-inline: auto; font-size: .9375rem; font-weight: 500; }
.links a { text-decoration: none; padding-block: 8px; text-underline-offset: 6px; }
.links a:hover { text-decoration: underline; }
.menu-btn, .menu { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  min-height: max(700px, 100svh);
  display: flex; flex-direction: column; gap: 40px;
  padding: 120px var(--gutter) clamp(40px, 5vw, 64px);
  background: var(--night); color: var(--paper);
}
.hero-art, .hero-art img, .hero-art video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img, .hero-art video { object-fit: cover; object-position: 62% 0%; }
/* The day sky is its own layer: one wide cloud painting that repeats and slides slowly
   to the right behind the cut-out buildings. It never stops and never turns back. */
.sky { position: absolute; left: 0; top: 0; width: 100%; height: max(62%, 34.9vw); overflow: hidden; background: var(--night); }
.sky-track { height: 100%; aspect-ratio: 6.1333 / 1; background: url('assets/hero/sky-day.jpg') 0 0 / auto 100% repeat-x; animation: sky-drift 260s linear infinite; will-change: transform; }
@keyframes sky-drift { from { transform: translateX(-33.3333%); } to { transform: translateX(0); } }
.art-night { opacity: var(--night-mix, 0); transition: opacity 1.2s ease; }
/* The night glow is a brightened copy of the lit parts (skylights, doors, canal) that breathes over the still. */
.glow-wrap { position: absolute; inset: 0; }
.glow { filter: brightness(1.5) saturate(1.1); animation: glow 3.8s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: 0; } to { opacity: .6; } }

/* On roomy screens the hero holds still while the scroll turns the lights off. */
@media (min-width: 901px) and (min-height: 780px) and (prefers-reduced-motion: no-preference) {
  .hero-pin { height: 180svh; }
  .hero { position: sticky; top: 0; height: 100svh; min-height: 0; padding-top: 104px; padding-bottom: clamp(24px, 5vh, 64px); gap: clamp(12px, 3vh, 40px); }
  /* Everything in the pinned hero scales with the window height so nothing is cut off on laptops. */
  .hero h1 { font-size: min(5.6rem, 6.3vw, 9.6vh); }
  .hero-copy .lead { margin-top: clamp(10px, 2vh, 20px); max-width: min(34rem + (900px - 100vh) * 2, 52rem); }
  .hero-copy .actions { margin-top: clamp(14px, 2.8vh, 28px); }
  .order-card { padding: clamp(12px, 2.1vh, 20px) 22px; }
  .oc-steps { margin-top: clamp(8px, 1.6vh, 16px); }
  .oc-steps li { padding-block: clamp(5px, 1.1vh, 10px); }
  .oc-foot { padding-top: clamp(7px, 1.3vh, 12px); }
  .hero:not(.manual) .art-night { transition: opacity .15s linear; }
}
.hero-art::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--night) 0%, rgba(0, 34, 31, .88) 30%, rgba(0, 34, 31, .5) 50%, rgba(0, 34, 31, 0) 70%);
}

.order-card {
  position: relative; z-index: 1;
  width: min(460px, 100%);
  background: var(--paper); color: var(--night);
  border-radius: 18px; padding: 20px 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .38);
  animation: bob 7s ease-in-out infinite alternate;
}
@keyframes bob { to { transform: translateY(8px); } }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .9375rem; }
.oc-title b { font-variant-numeric: tabular-nums; }
.oc-mode {
  font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
  padding: 4px 10px; border-radius: 6px; white-space: nowrap;
  background: var(--orange); color: var(--night);
  transition: background-color .4s ease, color .4s ease;
}
.order-card[data-mode="dark"] .oc-mode { background: var(--night); color: var(--neon); }
.oc-steps { margin-top: 16px; }
.oc-steps li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-block: 10px; border-top: 1px solid var(--rule-dark); }
.oc-steps b { font-weight: 600; }
.oc-steps small { font-size: .8125rem; font-variant-numeric: tabular-nums; opacity: .7; }
.oc-steps .bar { grid-column: 1 / -1; grid-row: 2; height: 5px; border-radius: 3px; background: rgba(0, 34, 31, .1); overflow: hidden; }
.oc-steps .bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--orange); border-radius: 3px; }
.order-card[data-mode="dark"] .bar i { background: var(--night); }
.oc-steps li.run .bar i, .oc-steps li.done .bar i, .oc-steps li.fail .bar i { transform: scaleX(1); }
.oc-steps li.run .bar i { transition: transform var(--dur, 1s) linear; }
.oc-steps li.done small, .oc-steps li.fail small { opacity: 1; font-weight: 600; }
.oc-foot { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule-dark); font-size: .875rem; }
.oc-foot em { margin-left: auto; font-style: normal; font-size: .75rem; opacity: .65; }

.hero-copy { position: relative; z-index: 1; margin-top: auto; max-width: 820px; }
.hero-copy .lead { margin-top: 20px; max-width: 34rem; }
.hero-copy .actions { margin-top: 28px; }

.switch {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  background: rgba(0, 34, 31, .6); border: 1px solid rgba(245, 246, 240, .35); border-radius: 9999px;
  padding: 8px 18px 8px 8px; font-size: .9375rem; font-weight: 600; color: var(--paper);
  transition: border-color .2s ease;
}
.switch:hover { border-color: var(--paper); }
.switch:focus-visible { border-radius: 9999px; }
.switch-track { display: block; width: 52px; height: 30px; border-radius: 15px; background: var(--paper); position: relative; transition: background-color .4s ease; }
.switch-knob { position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); transition: transform .5s var(--ease), background-color .4s ease; }
.switch[aria-checked="true"] .switch-track { background: var(--deep); }
.switch[aria-checked="true"] .switch-knob { transform: translateX(22px); background: var(--neon); }

/* ---------- Trust strip ---------- */

.trust { display: flex; align-items: center; gap: clamp(24px, 4vw, 64px); background: var(--night); color: var(--paper); padding: 28px var(--gutter) 36px; }
.trust p { flex: none; font-size: .9375rem; line-height: 1.35; max-width: 11rem; }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track li { padding-right: clamp(40px, 5vw, 72px); }
.marquee-track img { height: 28px; width: auto; max-width: 150px; filter: brightness(0) invert(1); opacity: .82; }
.marquee-track img.tall { height: 42px; }
.marquee-track img.h-l { height: 36px; }
.marquee-track img.h-s { height: 21px; }
.marquee-track img.h-c { height: 30px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Routine: the four handoffs ---------- */

.routine { background: var(--night); color: var(--paper); padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(56px, 7vw, 104px); }
.routine h2 { max-width: 16ch; }
.handoffs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(28px, 3.4vw, 48px); }
.handoffs li { border-top: 2px solid var(--neon); padding-top: 18px; }
.handoffs h3 { font-size: 1.25rem; }
.handoffs p { margin-top: 8px; color: rgba(245, 246, 240, .82); max-width: 22rem; }

/* ---------- How it works: systems, core, people ---------- */

.arch-section { background: var(--night); color: var(--paper); padding: clamp(40px, 6vw, 88px) var(--gutter) clamp(72px, 9vw, 128px); overflow: hidden; }
.arch-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.arch-head .lead { max-width: 34rem; color: rgba(245, 246, 240, .86); }

.flow {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(48px, 9vw, 150px);
  margin-top: clamp(32px, 4vw, 56px); padding: clamp(28px, 4.4vw, 64px);
  border: 1px solid var(--rule-light); border-radius: 28px; background: rgba(0, 75, 72, .34);
}
.flow-col { align-self: start; }
.flow-col h3 { font-size: .9375rem; font-weight: 600; letter-spacing: 0; color: rgba(245, 246, 240, .74); margin-bottom: 10px; }
.flow-col li { position: relative; padding: 14px 0; border-top: 1px solid var(--rule-light); font-size: clamp(1.05rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.25; transition: color .35s ease; }
.flow-col li small { display: block; margin-top: 2px; font-size: .875rem; font-weight: 400; color: rgba(245, 246, 240, .74); }
.flow-col li::after { content: ''; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 2px solid rgba(245, 246, 240, .5); transition: background-color .35s ease, border-color .35s ease, transform .5s var(--ease); }
.flow-systems li { padding-right: 28px; }
.flow-systems li::after { right: 0; }
.flow-people li { padding-left: 28px; }
.flow-people li::after { left: 0; }
.flow-col li.hot { color: var(--neon); }
.flow-col li.hot::after { background: var(--neon); border-color: var(--neon); transform: scale(1.5); }
.flow-col li.approve.hot { color: var(--orange); }
.flow-col li.approve.hot::after { background: var(--orange); border-color: var(--orange); }

.flow-core {
  position: relative; width: clamp(210px, 23vw, 300px); aspect-ratio: 1; border-radius: 50%;
  background: var(--night); border: 2px solid var(--neon);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 12%;
  transition: transform .6s var(--ease);
}
.flow-core.busy { transform: scale(1.05); }
.flow-core b { font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.flow-core span { font-size: .9375rem; line-height: 1.3; color: rgba(245, 246, 240, .86); }
.flow-core small { margin-top: 6px; font-size: .8125rem; font-weight: 600; color: var(--neon); }
.orbit { position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(0, 255, 129, .45); animation: orbit 18s linear infinite; }
.orbit i { position: absolute; inset: 0; }
.orbit i:nth-child(2) { transform: rotate(120deg); }
.orbit i:nth-child(3) { transform: rotate(240deg); }
.orbit i::before { content: ''; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--neon); }
@keyframes orbit { to { transform: rotate(360deg); } }

.flow-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flow-lines path { fill: none; stroke: var(--neon); stroke-width: 2; stroke-dasharray: 3 8; stroke-linecap: round; opacity: .75; }
.agent-dot { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--neon); border: 4px solid var(--night); opacity: 0; transition: opacity .3s ease, background-color .3s ease; pointer-events: none; }
.agent-dot.on { opacity: 1; }
.agent-dot.ask { background: var(--orange); }

.flow-caption { display: grid; justify-items: center; text-align: center; margin-top: 28px; }
.run-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.run-tabs button { position: relative; overflow: hidden; cursor: pointer; background: var(--night); border: 1px solid var(--rule-light); border-radius: 9999px; padding: 10px 20px; font-size: .9375rem; font-weight: 600; color: rgba(245, 246, 240, .8); transition: color .3s ease, border-color .3s ease; }
.run-tabs button:focus-visible { border-radius: 9999px; }
.run-tabs button:hover { color: var(--paper); border-color: rgba(245, 246, 240, .5); }
.run-tabs button[aria-pressed="true"] { color: var(--paper); border-color: var(--neon); }
.run-tabs button::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--neon); transform: scaleX(0); transform-origin: left; }
.run-tabs.auto button[aria-pressed="true"]::after { animation: tabtime var(--run-time, 12s) linear both; }
.flow-text { margin-top: 24px; max-width: 34ch; min-height: 2.5em; font-size: clamp(1.3rem, 2.3vw, 1.9rem); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.flow-text.swap { animation: logline .5s var(--ease) both; }
@keyframes logline { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Product clips: a real recording beside a short text ---------- */

.clip-row { display: grid; grid-template-columns: 1fr 1.7fr; gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.clip-row-light { grid-template-columns: 1.7fr 1fr; margin-top: clamp(12px, 1.4vw, 20px); margin-bottom: clamp(12px, 1.4vw, 20px); background: #FFFFFF; border-radius: 28px; padding: clamp(10px, 1.4vw, 20px); padding-right: clamp(24px, 3.4vw, 56px); }
.clip-video { display: block; width: 100%; height: auto; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule-light); }
.clip-row-light .clip-video { border-color: var(--rule-dark); }
.clip-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; }
.clip-copy p { margin-top: 14px; max-width: 30rem; }
.arch-section .clip-copy p { color: rgba(245, 246, 240, .86); }

/* ---------- Alve demo ---------- */

.alve-section { background: var(--night); color: var(--paper); padding: 0 var(--gutter) clamp(72px, 9vw, 128px); }
.alve-section h2 em { color: var(--neon); }
.demo { margin-top: clamp(32px, 4vw, 56px); border: 1px solid var(--rule-light); border-radius: 28px; background: rgba(0, 75, 72, .34); padding: clamp(10px, 1.4vw, 20px); }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 18px; background: var(--paper); }
.demo-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: clamp(10px, 1.4vw, 20px) 4px 4px; }
.demo-steps button { position: relative; display: block; width: 100%; height: 100%; text-align: left; cursor: pointer; background: none; border: 0; padding: 14px 0 0; font-size: .875rem; line-height: 1.35; font-weight: 500; color: rgba(245, 246, 240, .72); transition: color .3s ease; }
.demo-steps button::before, .demo-steps button::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 100%; border-radius: 2px; background: var(--rule-light); }
.demo-steps button::after { background: var(--neon); transform: scaleX(var(--p, 0)); transform-origin: left; }
.demo-steps button:hover, .demo-steps button.now { color: var(--paper); }
.demo-steps button.now { font-weight: 600; }
.alve-section > .sample { margin-top: 14px; }

/* ---------- Road ---------- */

.road { padding: clamp(72px, 9vw, 128px) var(--gutter) clamp(56px, 7vw, 96px); }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 40px); margin-top: clamp(32px, 4vw, 56px); }
.dimmer { position: relative; height: clamp(150px, 16vw, 230px); border-radius: 18px; overflow: hidden; background: var(--night) url('assets/hero/office-day.jpg') 82% 24% / 175% auto no-repeat; }
.dimmer span { position: absolute; inset: 0; background: url('assets/hero/office-night.jpg') 82% 24% / 175% auto no-repeat; opacity: var(--dark); transition: opacity 1.8s ease; }
.js .road:not(.in) .dimmer span { opacity: 0; }
.stages li:nth-child(2) .dimmer span { transition-delay: .3s; }
.stages li:nth-child(3) .dimmer span { transition-delay: .6s; }
.stages h3 { margin-top: 22px; }
.stages p { margin-top: 6px; max-width: 26rem; }

/* ---------- Proof ---------- */

.road { border-radius: 28px 28px 0 0; }
.proof { padding: 0 var(--gutter) clamp(72px, 9vw, 128px); }
.quote-card { display: grid; grid-template-columns: 1.4fr 1fr; background: var(--night); color: var(--paper); border-radius: 28px; overflow: hidden; --focus: var(--neon); }
.quote { padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.quote blockquote p { font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-weight: 500; line-height: 1.3; letter-spacing: -.015em; max-width: 34ch; quotes: "\201C" "\201D"; text-wrap: balance; }
.quote blockquote p::before { content: open-quote; color: var(--neon); }
.quote blockquote p::after { content: close-quote; color: var(--neon); }
.quote figcaption { font-size: .9375rem; line-height: 1.45; }
.quote figcaption b { display: block; font-weight: 600; }
.quote-side { background: var(--deep); padding: clamp(28px, 3.4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote-logo { height: 44px; width: auto; align-self: flex-start; filter: brightness(0) invert(1); }
.quote-side h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; max-width: 16rem; }
.results div { display: flex; align-items: baseline; gap: 18px; padding-block: 14px; border-top: 1px solid var(--rule-light); }
.results dt { font-size: clamp(2.2rem, 4vw, 3.3rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; min-width: 2.5em; color: var(--neon); }
.results dd { line-height: 1.3; }
.quote-side .sample { margin-top: 0; opacity: .85; }

.makers { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(12px, 1.4vw, 20px); }
.makers a { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--paper); background: var(--night); --focus: var(--night); }
.makers img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.makers a:hover img { transform: scale(1.06); }
.makers a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 34, 31, .9), rgba(0, 34, 31, 0) 50%); }
.makers span { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; font-size: 1.1875rem; font-weight: 600; line-height: 1.2; }

/* ---------- Team ---------- */

.team { padding: 0 var(--gutter) clamp(72px, 9vw, 128px); border-radius: 0 0 28px 28px; }
.team-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 104px); align-items: start; border-top: 1px solid var(--rule-dark); padding-top: clamp(40px, 5vw, 72px); }
.team-copy .lead { margin-top: 28px; }
.team-copy p { max-width: 36rem; }
.team-copy p + p { margin-top: 1em; }
.team-copy .btn { margin-top: 28px; }
.btn-night { background: var(--night); border-color: var(--night); color: var(--paper); }
.btn-night:hover { background: var(--deep); border-color: var(--deep); }
.team-people li { display: grid; grid-template-columns: 104px 1fr; gap: 20px; align-items: start; padding-block: 24px; border-top: 1px solid var(--rule-dark); }
.team-people li:first-child { border-top: 0; padding-top: 6px; }
.portrait { display: block; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: var(--night); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transform: scale(1.5); transform-origin: 50% 18%; transition: transform .8s var(--ease); }
.portrait:hover img { transform: scale(1.6); }
.portrait:focus-visible { border-radius: 50%; }
.team-people h3 { font-size: 1.25rem; }
.team-people .role { font-size: .9375rem; font-weight: 600; opacity: .72; margin-top: 2px; }
.team-people .role + p { margin-top: 8px; font-size: .9375rem; line-height: 1.5; }

/* ---------- Industries ---------- */

.industries { background: var(--night); color: var(--paper); padding: 0 var(--gutter) clamp(56px, 7vw, 104px); }
.industries h2 em { color: var(--neon); }
.industries .makers { margin-top: clamp(28px, 3.4vw, 48px); }
.industries .makers a { --focus: var(--neon); aspect-ratio: 4 / 3; }

/* ---------- Alve mark ---------- */

.alve-mark { display: flex; align-items: center; gap: 12px; font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; margin-bottom: 20px; }
.alve-mark img { width: auto; height: 1.25em; }

/* ---------- Close ---------- */

.close { position: relative; overflow: hidden; text-align: center; background: var(--night); color: var(--paper); padding: clamp(88px, 10vw, 150px) var(--gutter) clamp(260px, 34vw, 520px); }
.close > * { position: relative; }
.close-art, .close-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.close-art img { object-fit: cover; object-position: 50% 100%; }
.close-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--night) 0%, rgba(0, 34, 31, .7) 30%, rgba(0, 34, 31, 0) 62%); }
.close h2 { font-size: clamp(2.6rem, 6.3vw, 5.6rem); }
.close h2 em { color: var(--neon); }
.close .lead { margin: 24px auto 0; max-width: 32rem; }
.close .actions { justify-content: center; margin-top: 32px; }

/* ---------- Scroll entrances ---------- */

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1.2s var(--ease); }
[data-reveal].shown { opacity: 1; transform: none; }
.makers li:nth-child(2) { transition-delay: .08s; }
.makers li:nth-child(3) { transition-delay: .16s; }
.makers li:nth-child(4) { transition-delay: .24s; }

/* ---------- Footer ---------- */

.footer { margin: 0 24px 24px; background: var(--deep); color: var(--paper); border-radius: 28px; padding: clamp(32px, 4.4vw, 64px); position: relative; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer .logo { display: block; width: 150px; margin-bottom: 14px; }
.footer-line { font-size: clamp(1.3rem, 2.2vw, 1.8rem); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; max-width: 14ch; margin: 22px 0 22px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); }
.footer h3 { font-size: .9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; color: var(--turq); }
.footer li + li { margin-top: 8px; }
.footer a { text-decoration: none; font-size: .9375rem; }
.footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 56px; padding-top: 24px; border-top: 1px dashed var(--rule-light); font-size: .8125rem; color: rgba(245, 246, 240, .8); }
.legal a { font-size: inherit; }

/* ---------- Pause control ---------- */

.pause { position: fixed; z-index: 15; right: 16px; bottom: 16px; cursor: pointer; font-size: .8125rem; font-weight: 600; line-height: 1.2; padding: 9px 14px; border-radius: 9999px; background: rgba(0, 34, 31, .86); color: var(--paper); border: 1px solid rgba(245, 246, 240, .4); }
.pause:hover { border-color: var(--paper); }
.pause:focus-visible { border-radius: 9999px; }
@media (max-width: 900px) {
  .pause { display: none; }
}
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* ---------- Narrow screens ---------- */

@media (max-width: 900px) {
  .nav { left: 12px; right: 12px; top: 12px; gap: 10px; padding: 0 10px 0 16px; height: 58px; }
  .nav .logo { width: 104px; margin-right: auto; }
  .links { display: none; }
  .nav .btn { padding: 10px 16px; }
  .menu-btn { display: block; cursor: pointer; font-size: .875rem; font-weight: 600; line-height: 1.2; padding: 10px 16px; border-radius: 9999px; background: transparent; border: 1px solid rgba(245, 246, 240, .5); }
  .menu:not([hidden]) { display: block; position: fixed; z-index: 19; top: 78px; left: 12px; right: 12px; background: var(--deep); color: var(--paper); border-radius: 16px; padding: 8px; box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
  .menu a { display: block; color: var(--paper); padding: 14px 16px; font-weight: 600; text-decoration: none; border-radius: 10px; }
  .menu a:hover, .menu-pause:hover { background: var(--night); }
  .menu-pause { display: block; width: 100%; text-align: left; cursor: pointer; background: none; border: 0; border-top: 1px solid var(--rule-light); border-radius: 0 0 10px 10px; color: var(--paper); padding: 14px 16px; font-weight: 600; }

  .hero { padding-top: 96px; gap: 28px; min-height: max(680px, 100svh); }
  .hero-art img, .hero-art video { object-position: 74% 0%; }
  .hero-art::after { background: linear-gradient(to bottom, rgba(0, 34, 31, 0) 140px, var(--night) 300px); }
  .order-card { padding: 16px 18px; order: 2; }
  .hero-copy { margin-top: 232px; }
  .hero-art img, .hero-art video { height: 320px; }
  .sky { height: 198px; }
  .oc-steps li { padding-block: 8px; }

  .trust { flex-direction: column; align-items: flex-start; gap: 18px; }
  .trust p { max-width: none; }
  .marquee { width: 100%; flex: none; }

  .quote-card, .arch-head, .team-grid, .flow { grid-template-columns: 1fr; }
  .team-people li { grid-template-columns: 80px 1fr; gap: 16px; }
  .portrait { width: 80px; height: 80px; }
  .handoffs { grid-template-columns: 1fr 1fr; }
  .flow { gap: 64px; justify-items: stretch; }
  .flow-core { justify-self: center; }
  .flow-systems ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .flow-col li::after { display: none; }
  .flow-systems li, .flow-people li { padding-inline: 0; }
  .flow-text { min-height: 3.8em; }
  .stages { grid-template-columns: 1fr; gap: 36px; }
  .clip-row, .clip-row-light { grid-template-columns: 1fr; }
  .clip-row-light { padding: 10px 10px 24px; }
  .clip-row-light .clip-copy { padding-inline: 10px; }
  .clip-row:not(.clip-row-light) .clip-video { order: 2; }
  .demo-steps { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .demo-steps button { font-size: 0; padding-top: 12px; }
  .demo-steps li:has(.now) { grid-column: 1 / -1; grid-row: 2; }
  .demo-steps button.now { font-size: 1rem; padding-top: 10px; }
  .demo-steps button.now::before, .demo-steps button.now::after { display: none; }
  .dimmer { height: 170px; }
  .makers { grid-template-columns: 1fr 1fr; }
  .makers span { font-size: 1rem; left: 14px; right: 14px; bottom: 14px; }
  .close-art img { object-position: 68% 100%; }
  .footer { margin: 0 12px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee-track { flex-wrap: wrap; row-gap: 20px; width: auto; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
