/* ============================================================
   LAYERWORK — motion-first rebuild
   paper / ink / flame · Archivo · Spline Sans
   ============================================================ */

:root {
  --paper: #EFE9DD;
  --paper-2: #E7E0D1;
  --card: #F7F3EA;
  --ink: #15130F;
  --ink-2: #4A453C;
  --ink-faint: #8A8475;
  --line-soft: #CFC7B5;
  --flame: #FF4D1C;
  --teal: #0E3B3A;

  --font-display: 'Archivo', Impact, sans-serif;
  --font-body: 'Spline Sans', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --container: 1280px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(21, 19, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 15, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  overflow-x: hidden;
}
body.lock { overflow: hidden; }

::selection { background: var(--flame); color: var(--paper); }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
a, button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }

.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.2vw, 3.8rem);
  line-height: 1.0;
}

.skip-link {
  position: absolute;
  top: -100px; left: 1rem;
  z-index: 300;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   PRELOADER
   ============================================================ */
.loader { display: none; }
.js .loader {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--ink);
  color: var(--paper);
  transition: clip-path 0.85s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.js .loader.done { clip-path: inset(0 0 100% 0); }
.js .loader.gone { display: none; }

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  transition: opacity 0.3s ease, transform 0.4s var(--ease-io);
}
.loader.done .loader-inner { opacity: 0; transform: translateY(-24px); }

.loader-mark { position: relative; width: 64px; height: 64px; }
.loader-mark .lm-back,
.loader-mark .lm-front {
  content: '';
  position: absolute;
  width: 44px; height: 44px;
  border-radius: 12px;
}
.loader-mark .lm-back {
  top: 0; left: 0;
  border: 3px solid var(--paper);
  animation: lm-drift 2.2s var(--ease-io) infinite alternate;
}
.loader-mark .lm-front {
  bottom: 0; right: 0;
  background: var(--flame);
  animation: lm-drift-b 2.2s var(--ease-io) infinite alternate;
}
@keyframes lm-drift   { from { transform: translate(4px, 4px); }  to { transform: translate(-3px, -3px); } }
@keyframes lm-drift-b { from { transform: translate(-4px, -4px); } to { transform: translate(3px, 3px); } }

.loader-word {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}
.loader-count {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.loader-bar {
  width: 180px;
  height: 3px;
  background: rgba(239, 233, 221, 0.18);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ============================================================
   PROGRESS + NAV
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 220;
  pointer-events: none;
}
.progress-bar {
  height: 100%;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  border-bottom: 2px solid transparent;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease),
              transform 0.55s var(--ease), backdrop-filter 0.4s var(--ease);
  will-change: transform;
}
.nav.is-scrolled {
  background: rgba(239, 233, 221, 0.82);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--ink);
}
.nav.is-hidden { transform: translateY(-105%); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.logo-mark { position: relative; width: 30px; height: 30px; flex: none; }
.logo-mark::before, .logo-mark::after {
  content: '';
  position: absolute;
  width: 21px; height: 21px;
  border-radius: 6px; /* only rounded element in the brand */
  transition: transform 0.45s var(--ease);
}
.logo-mark::before { top: 0; left: 0; background: var(--card); border: 2px solid var(--ink); }
.logo-mark::after  { bottom: 0; right: 0; background: var(--flame); }
.logo:hover .logo-mark::before { transform: translate(2px, 2px); }
.logo:hover .logo-mark::after  { transform: translate(-2px, -2px); }
.logo-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo-inverse .logo-mark::before { background: transparent; border-color: var(--paper); }

.nav-links { display: flex; gap: clamp(1.25rem, 3vw, 2.5rem); }
.nav-links a {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink-2);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  padding: 0.9rem 1.5rem;
  box-shadow: 6px 6px 0 var(--ink);
  position: relative;
  z-index: 0; /* own stacking context so the wipe can sit behind the label text */
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform;
  white-space: nowrap;
}
.btn > * { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1; /* above the button background, below its text */
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.35s var(--ease);
}
.btn:hover { color: var(--paper); box-shadow: 9px 9px 0 var(--ink); }
.btn:hover::before { transform: scaleY(1); }
.btn-primary { background: var(--flame); }
.btn-primary:hover { box-shadow: 9px 9px 0 var(--flame); }
.btn-primary::before { background: var(--ink); }
.btn-nav { padding: 0.65rem 1.1rem; font-size: 0.78rem; box-shadow: 4px 4px 0 var(--ink); }
.btn-nav:hover { box-shadow: 6px 6px 0 var(--ink); }
.btn-big { font-size: clamp(0.85rem, 1.4vw, 1rem); padding: 1.1rem 1.75rem; }
.btn-demo { margin-top: 1.5rem; align-self: flex-start; pointer-events: none; }

.link-plain {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.2rem;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.link-plain:hover { color: var(--flame); border-color: var(--flame); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.float-sq {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}
.fsq-a {
  width: clamp(130px, 15vw, 220px);
  height: clamp(130px, 15vw, 220px);
  right: 12%;
  top: 22%;
  border: 3px solid var(--ink);
  opacity: 0.11;
}
.fsq-b {
  width: clamp(90px, 10vw, 150px);
  height: clamp(90px, 10vw, 150px);
  right: 19%;
  top: 44%;
  background: var(--flame);
  opacity: 0.13;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 96px;
  padding-bottom: 48px;
  will-change: transform, opacity;
}
.eyebrow { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 1.5rem; }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 6.8vw, 6rem);
  line-height: 0.93;
}
.hero-h1 .ln { display: block; overflow: hidden; padding: 0.03em 0; }
.flame-text { color: var(--flame); }

/* split chars */
.ch {
  display: inline-block;
  will-change: transform;
}
.js .hero-h1.pending .ch {
  transform: translateY(120%) rotate(6deg);
}
.hero-h1 .ch {
  transform: none;
  transition: transform 0.9s var(--ease);
  transition-delay: var(--chd, 0s);
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: clamp(1.75rem, 3.5vh, 2.75rem);
}

/* short desktop viewports: keep the whole hero (headline + copy + CTAs) on screen */
@media (min-width: 861px) and (max-height: 760px) {
  .hero-inner { padding-top: 86px; padding-bottom: 36px; }
  .hero-h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
  .eyebrow { margin-bottom: 1rem; }
  .hero-copy { font-size: 0.95rem; }
}
.hero-est {
  font-size: 0.8rem;
  color: var(--ink-2);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.hero-copy { color: var(--ink-2); }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: flex-end;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 1.6rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.cue-track {
  position: relative;
  width: 2px;
  height: 34px;
  background: var(--line-soft);
  overflow: hidden;
}
.cue-track i {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 12px;
  background: var(--flame);
  animation: cue-run 1.6s var(--ease-io) infinite;
}
@keyframes cue-run {
  0% { transform: translateY(-14px); }
  100% { transform: translateY(38px); }
}

/* ============================================================
   MARQUEES (velocity-reactive)
   ============================================================ */
.marquee-zone { position: relative; z-index: 2; }
.marquee {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  will-change: transform;
}
.m-dark { background: var(--ink); color: var(--paper); }
.m-flame { background: var(--flame); color: var(--ink); border-bottom: 2px solid var(--ink); }
.m-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.m-group { display: flex; align-items: center; flex: none; padding: 1.05rem 0; }
.m-group span {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  padding: 0 1.9rem;
  white-space: nowrap;
}
.m-group b { font-weight: 400; font-size: 1.1rem; }
.m-dark .m-group b { color: var(--flame); }
.m-flame .m-group b { color: var(--paper); }

/* ============================================================
   SCRUB STATEMENT
   ============================================================ */
.statement { padding: clamp(4.5rem, 11vh, 8rem) 0 clamp(2.5rem, 6vh, 4.5rem); }
.statement-text {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 4.6vw, 4rem);
  line-height: 1.08;
  max-width: 62rem;
}
.statement-text .wd {
  color: var(--line-soft);
  transition: color 0.35s ease;
}
.statement-text .wd.on { color: var(--ink); }
.statement-text .wd.accent.on { color: var(--flame); }

/* ============================================================
   BUILT IN LAYERS — pinned product-assembly scrollytelling
   Base styles = finished state (no-JS / reduced motion).
   Pre-states live under html.mo (motion on).
   ============================================================ */
.build { position: relative; }
html.mo .build { height: 430vh; }
.build-pin { padding: clamp(4rem, 9vw, 7rem) 0; }
html.mo .build-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(92px, 11vh, 120px) 0 28px;
}

.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.build-left h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.4rem);
  margin-bottom: clamp(1.4rem, 3.5vh, 2.75rem);
}

.stages {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: clamp(0.9rem, 2.2vh, 1.5rem);
}
.stage {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 0 1rem;
  align-items: start;
}
.stage-num { font-size: 0.8rem; color: var(--flame); padding-top: 0.25rem; }
.stage-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.stage-body p { font-size: 0.88rem; color: var(--ink-2); max-width: 28rem; margin-top: 0.15rem; }
.stage-bar {
  grid-column: 1 / -1;
  display: block;
  height: 2px;
  margin-top: 0.8rem;
  background: var(--line-soft);
  overflow: hidden;
}
.stage-bar i {
  display: block;
  height: 100%;
  background: var(--flame);
  transform-origin: 0 50%;
  will-change: transform;
}
html.mo .stage .stage-num,
html.mo .stage .stage-body h3,
html.mo .stage .stage-body p { color: var(--ink-faint); transition: color 0.35s ease; }
html.mo .stage.on .stage-num { color: var(--flame); }
html.mo .stage.on .stage-body h3 { color: var(--ink); }
html.mo .stage.on .stage-body p { color: var(--ink-2); }
html.mo .stage-bar i { transform: scaleX(0); }

/* --- the assembling mockup --- */
.bmock {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}
html.mo .bmock { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
html.mo .bmock.deployed { transform: translateY(-8px); box-shadow: 12px 14px 0 var(--ink); }

.bm-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.9rem;
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.bm-bar > i { width: 8px; height: 8px; background: var(--ink); flex: none; }
.bm-bar > i:first-child { background: var(--flame); }
.bm-url {
  position: relative;
  flex: 1;
  margin-left: 0.6rem;
  height: 1.2em;
  font-size: 0.68rem;
  color: var(--ink-faint);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.bm-url .u {
  position: absolute;
  left: 0; top: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
  opacity: 0;
}
.bm-url .u:last-child { opacity: 1; color: var(--ink-2); }
html.mo .bm-url .u { opacity: 0; transition: opacity 0.35s ease; }
html.mo .bm-url .u.on { opacity: 1; }

.bm-stage { position: relative; padding: 1rem 1rem 3.4rem; overflow: hidden; }

.req-panel { display: none; }
html.mo .req-panel {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--card);
  padding: clamp(1.1rem, 2.5vw, 1.75rem) clamp(1.2rem, 2.8vw, 2rem);
  transition: opacity 0.5s ease, transform 0.5s var(--ease);
}
html.mo .req-panel.out { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.req-h { font-size: 0.7rem; color: var(--flame); margin-bottom: 0.9rem; }
.req-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(0.68rem, 1.5vw, 0.82rem);
  color: var(--ink-2);
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--paper-2);
}
.req-tick { width: 12px; height: 12px; border: 2px solid var(--ink-faint); flex: none; transition: background-color 0.3s ease, border-color 0.3s ease; }
html.mo .req-line { opacity: 0; transform: translateX(-12px); transition: opacity 0.4s ease, transform 0.4s var(--ease); }
html.mo .req-line.on { opacity: 1; transform: none; }
html.mo .req-line.on .req-tick { background: var(--flame); border-color: var(--ink); }

.bm-app {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}
.bm-head, .bm-chart, .bm-row { grid-column: 1 / -1; }

.bm-el { border: 2px solid var(--ink); background: var(--card); }
html.mo .bm-el {
  opacity: 0;
  transform: translateY(14px);
  border-style: dashed;
  border-color: var(--line-soft);
  background: var(--paper-2);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease),
              border-color 0.45s ease, background-color 0.45s ease;
}
html.mo .bm-el.shown { opacity: 1; transform: none; }
html.mo .bm-el.built {
  border-style: solid;
  border-color: var(--ink);
  background: var(--card);
}
.bm-c { display: flex; align-items: center; }
html.mo .bm-c { opacity: 0; transition: opacity 0.45s ease 0.08s; }
html.mo .built .bm-c { opacity: 1; }

.bm-head .bm-c { justify-content: space-between; padding: 0.65rem 0.9rem; }
.bm-ht {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 0.95rem;
}
.bm-hbtn { font-size: 0.6rem; border: 2px solid var(--ink); padding: 0.25rem 0.55rem; background: var(--flame); }

.bm-kpi .bm-c { display: block; padding: 0.6rem 0.7rem; }
.bm-kl { font-size: 0.58rem; color: var(--ink-faint); margin-bottom: 0.25rem; }
.bm-kv {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(0.95rem, 1.6vw, 1.3rem);
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.bm-chart .bm-c { display: block; padding: 0.7rem 0.8rem 0.5rem; }
.bm-chart svg { width: 100%; height: clamp(56px, 9vh, 88px); }

.bm-row .bm-c { gap: 0.6rem; padding: 0.5rem 0.7rem; }
.bm-dot { width: 8px; height: 8px; background: var(--teal); flex: none; }
.bm-dot-hot { background: var(--flame); }
.bm-rt { font-size: 0.78rem; font-weight: 500; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-badge { font-size: 0.55rem; border: 2px solid var(--line-soft); padding: 0.15rem 0.4rem; color: var(--ink-2); }
.bm-badge-hot { border-color: var(--flame); color: var(--flame); }

.bm-deploy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.66rem;
  padding: 0.6rem 1rem;
}
.bm-deploy span { display: inline-flex; align-items: center; gap: 0.5rem; }
html.mo .bm-deploy { transform: translateY(104%); transition: transform 0.55s var(--ease); }
html.mo .bmock.deployed .bm-deploy { transform: none; }

@media (max-width: 1024px) {
  .build-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 1.75rem; }
}
@media (max-width: 860px) {
  html.mo .build { height: 360vh; }
  html.mo .build-pin { padding-top: 80px; }
  .build-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; align-items: start; }
  .build-left h2 { margin-bottom: 1.1rem; }
  .stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
  .stage-num { font-size: 0.62rem; padding-top: 0; }
  .stage-body h3 { font-size: 0.58rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stage-body p { display: none; }
  .stage-bar { margin-top: 0.45rem; }
  .bmock { margin-left: 0; }
  .bm-rt { font-size: 0.7rem; }
}
@media (max-height: 720px) and (min-width: 861px) {
  .build-left h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1.1rem; }
  .stages { gap: 0.7rem; }
  .stage-body p { font-size: 0.8rem; }
  .bm-chart svg { height: 52px; }
}

/* ============================================================
   SECTIONS SHARED
   ============================================================ */
.section { padding: clamp(5.5rem, 11vw, 9rem) 0; position: relative; }

.sec-label {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec-label .mono { font-size: 0.85rem; color: var(--ink-2); white-space: nowrap; }
.sec-label .rule { flex: 1; height: 2px; background: var(--ink); transform-origin: 0 50%; }
.js .sec-label.rv .rule { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.15s; }
.js .sec-label.rv.in .rule { transform: scaleX(1); }

.sec-sub {
  color: var(--ink-2);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  max-width: 46rem;
  margin-top: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
}

/* line mask reveal for headings */
.mask-l { display: block; overflow: hidden; padding: 0.04em 0; }
.mask-l > span { display: block; will-change: transform; }
.js .rv .mask-l > span { transform: translateY(115%); transition: transform 1s var(--ease); }
.js .rv.in .mask-l > span { transform: none; }
.js .rv .mask-l:nth-child(2) > span { transition-delay: 0.1s; }

/* ============================================================
   SERVICES — tilt cards
   ============================================================ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.svc {
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s var(--ease);
}
.svc:hover { box-shadow: 12px 14px 0 var(--ink); }
.svc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2.75rem;
}
.svc-num { font-size: 0.85rem; color: var(--flame); }
.svc-ico {
  width: 30px; height: 30px;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.svc:hover .svc-ico { color: var(--flame); }
.svc h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.svc p { color: var(--ink-2); font-size: 1rem; }
.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
}
.tags li {
  font-size: 0.7rem;
  border: 2px solid var(--line-soft);
  color: var(--ink-2);
  padding: 0.3rem 0.6rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.svc:hover .tags li { border-color: var(--ink-faint); color: var(--ink); }

/* ============================================================
   WORK — pinned horizontal gallery
   ============================================================ */
.work { position: relative; }
.work-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.work-head { padding-top: 88px; }
.work-head .sec-label { margin-bottom: 1.25rem; }
.work-head h2 { max-width: none; font-size: clamp(1.7rem, 3vw, 3.2rem); }
.work-hint { font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.75rem; }

.work-track {
  display: flex;
  align-items: stretch;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 0 clamp(1.25rem, 4vw, 3rem) 10px;
  width: max-content;
  margin: auto 0; /* centers the cards in the space left under the heading */
  will-change: transform;
}

.wcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  width: min(64vw, 900px);
  flex: none;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
}
.wcard-link { position: absolute; inset: 0; z-index: 5; }
.wcard-visual {
  position: relative;
  background: var(--paper-2);
  border-right: 2px solid var(--ink);
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.corner-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.68rem;
  padding: 0.35rem 0.7rem;
}
.mock {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  will-change: transform;
}
.wcard-body {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wcard-kicker { font-size: 0.72rem; color: var(--flame); margin-bottom: 0.75rem; }
.wcard-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  margin-bottom: 0.75rem;
}
.wcard-copy { color: var(--ink-2); font-size: 0.95rem; }

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
  margin-top: 1.25rem;
}
.metric { padding: 0.85rem 0.9rem 0 0; }
.metric + .metric { border-left: 2px solid var(--ink); padding-left: 0.9rem; }
.metric-v {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.3rem;
  line-height: 1.1;
}
.metric-k { font-size: 0.8rem; color: var(--ink-2); margin-top: 0.3rem; }

.wcard-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4rem;
  width: min(38vw, 480px);
  background: var(--ink);
  color: var(--paper);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: 8px 8px 0 var(--flame);
  transition: box-shadow 0.35s var(--ease);
}
.wcard-cta:hover { box-shadow: 12px 12px 0 var(--flame); }
.wcard-cta-eyebrow { font-size: 0.75rem; color: var(--ink-faint); }
.wcard-cta h3 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 0.98;
}

/* --- mockups --- */
.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid var(--ink);
  padding: 0.6rem 0.85rem;
  background: var(--paper);
}
.browser-bar i { width: 8px; height: 8px; background: var(--ink); flex: none; }
.browser-bar i:first-child { background: var(--flame); }
.browser-bar .mono {
  margin-left: 0.6rem;
  font-size: 0.65rem;
  color: var(--ink-faint);
  text-transform: lowercase;
  letter-spacing: 0.03em;
}
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 2px solid var(--ink); }
.kpi { padding: 0.75rem 0.7rem; }
.kpi + .kpi { border-left: 2px solid var(--ink); }
.kpi-label { font-size: 0.6rem; color: var(--ink-faint); margin-bottom: 0.3rem; }
.kpi-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.kpi-live { display: flex; align-items: center; gap: 0.45rem; color: var(--teal); }
.live-dot { width: 9px; height: 9px; background: var(--flame); flex: none; }
.mock-chart { padding: 0.85rem 0.75rem 0.75rem; }
.mock-chart svg { width: 100%; height: 64px; }

.booking { padding: 1.3rem 1.4rem 0; }
.booking-eyebrow { font-size: 0.65rem; color: var(--ink-faint); margin-bottom: 0.6rem; }
.booking-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.slots { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.slot { font-size: 0.72rem; border: 2px solid var(--ink); padding: 0.45rem 0.7rem; background: var(--paper); }
.slot-sel { background: var(--flame); }
.confirm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--paper);
  margin: 0 -1.4rem;
  padding: 0.9rem 1.4rem;
}
.confirm-bar .mono { font-size: 0.78rem; }

.kanban { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1rem; }
.kcol { padding: 0 0.5rem; }
.kcol + .kcol { border-left: 2px solid var(--line-soft); }
.kcol:first-child { padding-left: 0; }
.kcol:last-child { padding-right: 0; }
.kcol-h { font-size: 0.6rem; color: var(--ink-faint); margin-bottom: 0.6rem; }
.kcard {
  border: 2px solid var(--ink);
  background: var(--paper);
  font-size: 0.7rem;
  font-weight: 500;
  line-height: 1.35;
  padding: 0.5rem 0.55rem 0.55rem;
  margin-bottom: 0.5rem;
}
.kcard .kbar { display: block; width: 18px; height: 4px; background: var(--line-soft); margin-bottom: 0.4rem; }
.kcard-hot .kbar { background: var(--flame); }
.kcard-dim { color: var(--ink-faint); }
.kcard-dim .kbar { background: var(--teal); }

/* short desktop viewports: keep the whole pinned gallery on screen */
@media (min-width: 861px) and (max-height: 820px) {
  .work-head { padding-top: 78px; }
  .work-head h2 { font-size: clamp(1.4rem, 2.4vw, 2.4rem); }
  .work-hint { display: none; }
  .wcard { width: min(58vw, 800px); }
  .wcard-visual { padding: 1.25rem; }
  .wcard-body { padding: 1.25rem 1.5rem; }
  .wcard-copy { font-size: 0.9rem; }
  .metrics { margin-top: 1rem; }
  .mock { max-width: 330px; }
  .mock-chart svg { height: 50px; }
  .btn-demo { margin-top: 1.1rem; }
  .wcard-cta { width: min(34vw, 420px); }
}

/* ============================================================
   PROCESS — timeline
   ============================================================ */
.timeline { position: relative; padding-left: clamp(2rem, 5vw, 3.5rem); }
.tl-rail {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line-soft);
}
.tl-rail i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--flame);
  transform: scaleY(0);
  transform-origin: 0 0;
  will-change: transform;
}
.steps { list-style: none; display: flex; flex-direction: column; gap: clamp(2.5rem, 6vh, 4rem); }
.step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(60px, 140px) 1fr;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: start;
}
.step-dot {
  position: absolute;
  left: calc(-1 * clamp(2rem, 5vw, 3.5rem) - 5px);
  top: 0.6rem;
  width: 12px; height: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  transition: background-color 0.3s ease;
}
.step.in .step-dot { background: var(--flame); }
.step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink-faint);
  letter-spacing: -0.02em;
  transition: color 0.5s ease, -webkit-text-stroke-color 0.5s ease;
}
.step.in .step-num { color: var(--flame); -webkit-text-stroke-color: var(--flame); }
.step-body h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}
.step-body p { color: var(--ink-2); max-width: 34rem; }

/* ============================================================
   APPROACH — dark
   ============================================================ */
.section-dark {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.section-dark .sec-label .mono { color: var(--ink-faint); }
.section-dark .sec-label .rule { background: var(--flame); }
.orbit { position: absolute; inset: 0; pointer-events: none; }
.orbit span {
  position: absolute;
  will-change: transform;
}
.orb-a {
  width: clamp(220px, 30vw, 460px);
  height: clamp(220px, 30vw, 460px);
  right: -6%;
  top: 8%;
  border: 3px solid rgba(239, 233, 221, 0.14);
  animation: orb-spin 60s linear infinite;
}
.orb-b {
  width: clamp(120px, 16vw, 260px);
  height: clamp(120px, 16vw, 260px);
  right: 6%;
  bottom: 4%;
  background: var(--flame);
  opacity: 0.14;
  animation: orb-spin 45s linear infinite reverse;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: rgba(239, 233, 221, 0.25);
  border: 2px solid rgba(239, 233, 221, 0.25);
  position: relative;
  z-index: 1;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.point {
  background: var(--ink);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  transition: background-color 0.4s ease;
}
.point:hover { background: #201d17; }
.point-letter { font-size: 0.9rem; color: var(--flame); margin-bottom: 1.75rem; }
.point h3 {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.point p { color: rgba(239, 233, 221, 0.72); font-size: 0.98rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: clamp(6rem, 12vw, 10rem); }
.contact-inner { text-align: center; }
.contact-h {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.0;
}
.stroke-text { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.contact-sub { margin-left: auto; margin-right: auto; max-width: 42rem; margin-bottom: 0; }
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3.5rem, 6vw, 5rem) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-tag { color: rgba(239, 233, 221, 0.72); max-width: 26rem; margin-top: 1.5rem; }
.footer-h { font-size: 0.75rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; }
.footer-col a {
  display: inline-block;
  text-decoration: none;
  color: var(--paper);
  font-size: 0.95rem;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer-col a:hover { color: var(--flame); transform: translateX(4px); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  border-top: 2px solid rgba(239, 233, 221, 0.3);
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.72rem;
  color: var(--ink-faint);
}

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
.js .rv {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.js .rv.in { opacity: 1; transform: none; }
/* headings using line masks handle their own motion */
.js h2.rv { opacity: 1; transform: none; }
.js .sec-label.rv { opacity: 1; transform: none; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
html.no-motion .loader { display: none !important; }
html.no-motion .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-motion .mask-l > span { transform: none !important; transition: none !important; }
html.no-motion .sec-label .rule { transform: none !important; transition: none !important; }
html.no-motion .ch { transform: none !important; transition: none !important; }
html.no-motion .hero-h1.pending .ch { transform: none !important; }
html.no-motion .cue-track i,
html.no-motion .lm-back, html.no-motion .lm-front,
html.no-motion .orb-a, html.no-motion .orb-b { animation: none !important; }
html.no-motion .tl-rail i { transform: none !important; }
html.no-motion .step .step-num { color: var(--flame); -webkit-text-stroke-color: var(--flame); }
html.no-motion .step .step-dot { background: var(--flame); }
html.no-motion .statement-text .wd { color: var(--ink); }
html.no-motion .statement-text .wd.accent { color: var(--flame); }
html.no-motion .work-pin { position: static; height: auto; }
html.no-motion .work-track {
  flex-direction: column;
  width: 100%;
  transform: none !important;
}
html.no-motion .wcard, html.no-motion .wcard-cta { width: 100%; }
html.no-motion .scroll-cue { display: none; }
html.no-motion { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-row { grid-template-columns: 1fr; gap: 1.5rem; max-width: 36rem; }
  .hero-ctas { justify-content: flex-start; }
  .svc-grid { grid-template-columns: 1fr; }
  .wcard { width: 82vw; grid-template-columns: 1fr; }
  .wcard-visual { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 260px; }
  .wcard-cta { width: 60vw; }
}

@media (max-width: 860px) {
  /* the pinned horizontal gallery becomes a vertical stack */
  .work-pin { position: static; height: auto; overflow: visible; display: block; }
  .work { height: auto !important; }
  .work-head { padding-top: 0; }
  .work-hint { display: none; }
  .work-track {
    flex-direction: column;
    width: 100%;
    transform: none !important;
    padding-top: 2.5rem;
  }
  .wcard, .wcard-cta { width: 100%; }
  .points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .step { grid-template-columns: 1fr; gap: 0.75rem; }
  .fsq-a, .fsq-b { display: none; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; }
  .hero-inner { padding-top: 96px; }
  .metrics { grid-template-columns: 1fr; }
  .metric + .metric { border-left: 0; border-top: 2px solid var(--line-soft); margin-top: 1rem; padding-left: 0; }
  .contact-ctas { flex-direction: column; gap: 1.5rem; }
  .btn-big { white-space: normal; word-break: break-word; }
}

@media (max-width: 420px) {
  .logo-word { font-size: 1.15rem; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-mark::before, .logo-mark::after { width: 18px; height: 18px; }
  .btn-nav { font-size: 0.68rem; padding: 0.55rem 0.75rem; }
  .nav-inner { gap: 0.75rem; }
}
