/* ============================================================
   AhoritaWeb — obsidian gallery
   near-black void · warm bone · burnt-signal orange
   type: Clash Display (display) + Switzer (text)
   ============================================================ */

:root {
  /* motion: exponential ease-out — things land rather than coast to a stop */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --void: #0E0D0C;
  --void-2: #161413;
  --void-3: #1D1A18;
  --bone: #EDE6DA;
  --bone-dim: #9B948A;
  --signal: #FF4D00;
  --wa-green: #17472F;
  --hairline: rgba(237, 230, 218, 0.14);
  --hairline-soft: rgba(237, 230, 218, 0.08);
  --display: "Clash Display", sans-serif;
  --text: "Switzer", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], #top { scroll-margin-top: 84px; }
body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--signal); color: #140B05; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200;
  background: var(--signal); color: #140B05; font-weight: 600;
  padding: 10px 18px; border-radius: 8px; transition: top 0.2s ease;
}
.skip:focus { top: 16px; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1%); }
  50% { transform: translate(1%, -2%); }
  75% { transform: translate(-1%, 2%); }
  100% { transform: translate(2%, -1%); }
}

/* loader — belt and suspenders: JS removes it, a CSS animation also removes
   it, and no-anim hides it. It can never trap the page. */
.loader {
  position: fixed; inset: 0; z-index: 150;
  background: var(--void);
  display: grid; place-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: loader-out 0.6s ease 1.2s forwards;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 44px);
  opacity: 0; animation: loader-in 0.7s ease 0.05s forwards;
}
.loader-mark i { font-style: normal; color: var(--signal); }
@keyframes loader-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes loader-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }
html.no-anim .loader { display: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  gap: clamp(22px, 3.2vw, 48px);
  padding: 15px clamp(20px, 4vw, 56px);
  transition: background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(14, 13, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline-soft);
}
.wordmark { font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: 0.01em; }
.wordmark i { font-style: normal; color: var(--signal); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); font-size: 15px; }
.site-nav a { color: var(--bone-dim); transition: color 0.2s ease; }
.site-nav a:hover { color: var(--bone); }
.site-nav .nav-cta {
  color: #140B05; background: var(--signal); font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.site-nav .nav-cta:hover { background: var(--bone); color: #140B05; }
.lang-pill { display: inline-flex; align-items: center; gap: 12px; }
.lang-pill a {
  display: grid; place-items: center; border-radius: 50%;
  opacity: 0.35; filter: saturate(0.35);
  transition: opacity 0.25s var(--ease-out), filter 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.lang-pill a svg { display: block; }
.lang-pill a:hover { opacity: 0.85; filter: saturate(1); }
.lang-pill a[aria-current="page"] {
  opacity: 1; filter: none;
  box-shadow: 0 0 0 1.5px var(--bone), 0 0 0 4px rgba(237, 230, 218, 0.12);
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--bone); transition: transform 0.25s ease; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 1040px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(96px, 14svh, 150px) clamp(20px, 4vw, 56px) clamp(40px, 6svh, 90px);
}
.hero-title {
  font-size: clamp(48px, min(9.2vw, 16svh), 120px);
  margin-bottom: clamp(22px, 3.5svh, 52px);
}
.hero-title .line:nth-child(2) { margin-left: clamp(40px, 14vw, 240px); }
.hero-row {
  display: grid; grid-template-columns: 1fr 0.94fr;
  align-items: start; gap: clamp(28px, 5vw, 90px);
}
.kicker {
  font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--bone-dim); margin-bottom: clamp(16px, 2.6svh, 26px);
}
.cycle {
  display: inline-block; color: var(--signal); font-weight: 700;
  border-bottom: 1px solid rgba(255, 77, 0, 0.5); padding-bottom: 1px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cycle.swap { opacity: 0; transform: translateY(8px); }
.hero-title {
  font-family: var(--display); font-weight: 600;
  line-height: 0.96; letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .accent { color: var(--signal); }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--bone-dim); max-width: 46ch; margin-bottom: clamp(22px, 3.4svh, 36px); }
.lede, .hero-copy .kicker { text-wrap: pretty; }

.hero-ctas { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn-fill {
  display: inline-block; background: var(--signal); color: #140B05;
  font-weight: 600; font-size: 16px; border-radius: 999px; padding: 17px 34px;
  transition: background 0.25s ease;
}
.btn-fill:hover { background: var(--bone); }
.btn-ghost {
  display: inline-block; font-weight: 500; font-size: 16px; color: var(--bone);
  border-bottom: 1px solid var(--hairline); padding-bottom: 3px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

.hero-stats {
  list-style: none; display: flex; gap: clamp(28px, 3.4vw, 56px);
  margin-top: clamp(26px, 4.4svh, 48px); padding-top: clamp(18px, 2.6svh, 28px);
  border-top: 1px solid var(--hairline-soft);
}
.hero-stats strong { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(26px, 2.4vw, 38px); line-height: 1; }
.hero-stats span { font-size: 13.5px; color: var(--bone-dim); }

/* hero stage: self-assembling site */
.hero-stage { position: relative; }
.build-frame {
  background: var(--void-2);
  border: 1px solid var(--hairline);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  transform: rotate(1.2deg);
}
.frame-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; border-bottom: 1px solid var(--hairline-soft);
}
.frame-dots { display: flex; gap: 6px; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--void-3); }
.frame-url {
  font-size: 12.5px; color: var(--bone-dim); background: var(--void-3);
  border-radius: 6px; padding: 4px 14px; letter-spacing: 0.04em;
}
.frame-live {
  margin-left: auto; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #3ECF6E; opacity: 0; transition: opacity 0.4s ease;
}
.build-canvas {
  position: relative;
  padding: 16px; display: flex; flex-direction: column; gap: 13px;
  background: radial-gradient(130% 90% at 50% 0%, #1c1710 0%, #120f09 68%);
}
.b-header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.b-logo { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; color: #FF4D1C; }
.b-navlinks { display: flex; align-items: center; gap: 9px; }
.b-navlinks i { width: 24px; height: 5px; border-radius: 3px; background: rgba(239, 230, 216, 0.22); }
.b-cta {
  font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  color: #140B05; background: #FF4D1C; border-radius: 999px; padding: 5px 11px;
}
.b-hero {
  position: relative; flex: 1; min-height: clamp(160px, 26svh, 260px);
  border-radius: 10px; overflow: hidden;
}
.b-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.b-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 17, 9, 0) 34%, rgba(19, 17, 9, 0.82)); }
.b-kick {
  position: absolute; left: 16px; top: 14px; z-index: 1;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: #FFB01F;
}
.b-headline {
  position: absolute; left: 16px; bottom: 14px; z-index: 1;
  font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.1vw, 34px);
  line-height: 0.92; letter-spacing: 0.02em; color: #EFE6D8;
}
.b-row { display: flex; gap: 8px; flex-wrap: wrap; }
.b-chip {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #EFE6D8; border: 1px solid rgba(239, 230, 216, 0.22);
  border-radius: 999px; padding: 6px 13px;
}
.b-menu { display: flex; flex-direction: column; }
.b-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 2px; font-size: 12.5px; color: #C3B7A4;
  border-bottom: 1px solid rgba(239, 230, 216, 0.08);
}
.b-item:first-child { border-top: 1px solid rgba(239, 230, 216, 0.08); }
.b-item b { font-family: var(--display); font-weight: 700; font-size: 13.5px; color: #EFE6D8; }
.stage-chat {
  position: absolute; left: clamp(-170px, -11vw, -40px); bottom: -14px; width: min(290px, 70%);
  background: #1B1917; border: 1px solid var(--hairline); border-radius: 16px;
  padding: 14px; display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.msg {
  font-size: 13.5px; line-height: 1.45; padding: 9px 13px; border-radius: 12px;
  max-width: 88%;
}
.msg.them { background: #262320; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.us { background: var(--wa-green); border-bottom-right-radius: 4px; align-self: flex-end; }

/* ---------- clients marquee ---------- */
.clients { border-top: 1px solid var(--hairline-soft); border-bottom: 1px solid var(--hairline-soft); overflow: hidden; padding: 22px 0; }
.clients-track {
  display: flex; gap: 34px; align-items: center; width: max-content; white-space: nowrap;
  font-family: var(--display); font-weight: 500; font-size: 21px; color: var(--bone-dim);
  animation: marquee 52s linear infinite;
}
.clients-track i { font-style: normal; color: var(--signal); font-size: 14px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- section heads ---------- */
section { padding: clamp(90px, 12vh, 150px) clamp(20px, 4vw, 56px); }
.sec-head { margin-bottom: clamp(50px, 7vh, 80px); display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.split-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 5.6vw, 92px); line-height: 1; letter-spacing: -0.015em;
  text-wrap: balance;
}
.split-title em { font-style: normal; color: var(--signal); }
.sec-head p { color: var(--bone-dim); max-width: 38ch; font-size: 16.5px; }

/* ---------- journey ---------- */
.journey .sec-head { display: block; margin-bottom: clamp(40px, 6vh, 70px); }
.sec-kicker {
  display: inline-block; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--signal); margin-bottom: 18px;
}

.journey-pin { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(30px, 6vw, 90px); align-items: start; }

.j-cta { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; margin-top: clamp(40px, 7vh, 80px); }
.j-cta p { font-family: var(--display); font-weight: 500; font-size: clamp(20px, 2vw, 27px); }

/* extra track after the last step keeps the phone pinned (pill + live badge visible) through s4 */
.j-steps { display: flex; flex-direction: column; padding-bottom: clamp(140px, 32svh, 280px); }
.j-step {
  position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 28px; align-items: center;
  min-height: clamp(340px, 56vh, 560px);
}
.j-step-body { opacity: 0.28; transition: opacity 0.45s ease; }
.j-step.is-active .j-step-body { opacity: 1; }
.j-rail { position: relative; align-self: stretch; display: flex; justify-content: center; }
.j-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; background: var(--hairline-soft); }
.j-step:first-child .j-rail::before { top: 50%; }
.j-step:last-child .j-rail::before { bottom: 50%; }
.j-rail b {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--void); border: 2px solid var(--hairline); z-index: 1;
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.j-step.is-active .j-rail b {
  border-color: var(--signal); background: var(--signal);
  box-shadow: 0 0 0 6px rgba(255, 77, 0, 0.14);
}
/* beam from the active dot toward the phone */
.j-rail b::after {
  content: ""; position: absolute; left: calc(100% + 8px); top: 50%;
  width: clamp(30px, 7vw, 110px); height: 2px;
  background: linear-gradient(90deg, var(--signal), rgba(255, 77, 0, 0));
  transform: translateY(-50%) scaleX(0); transform-origin: left center;
  opacity: 0; transition: transform 0.5s ease 0.1s, opacity 0.4s ease;
}
.j-step.is-active .j-rail b::after { transform: translateY(-50%) scaleX(1); opacity: 1; }

/* desktop: rail sits between the text and the phone */
@media (min-width: 1061px) {
  .j-step { grid-template-columns: 1fr 16px; }
  .j-step-body { grid-column: 1; grid-row: 1; }
  .j-rail { grid-column: 2; grid-row: 1; }
}
@media (max-width: 1060px) {
  .j-rail b::after { display: none; }
}
.j-day { display: block; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.j-step h3 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.7vw, 46px); line-height: 1.03; margin-bottom: 14px; }
.j-step p { color: var(--bone-dim); max-width: 44ch; }

/* phone device */
/* headroom above the phone (padding + size cap) keeps the day pill clear of the fixed header at every viewport height */
.j-visual { position: sticky; top: 0; height: min(100svh, 900px); display: flex; align-items: center; justify-content: center; padding-top: 96px; }
.phone {
  position: relative; width: min(342px, 90%, calc((min(100svh, 900px) - 192px) * 9 / 18.8)); aspect-ratio: 9 / 18.8;
  background: #0a0908; border-radius: 46px; padding: 12px;
  box-shadow: 0 60px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(237, 230, 218, 0.12), inset 0 0 0 2px #000;
}
.phone-day {
  position: absolute; top: -48px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--signal); background: var(--void-2);
  border: 1px solid rgba(255, 77, 0, 0.35); border-radius: 999px; padding: 8px 16px;
  transition: opacity 0.3s ease;
}
.phone-day.swap { opacity: 0; }
.phone-notch {
  position: absolute; top: 13px; left: 50%; transform: translateX(-50%);
  width: 116px; height: 26px; background: #0a0908; border-radius: 0 0 16px 16px; z-index: 6;
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--void-2); }

.jstate {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  opacity: 0; transform: scale(0.99); transition: opacity 0.5s ease, transform 0.5s ease; pointer-events: none;
}
.jstate.is-on { opacity: 1; transform: none; }
.msg { font-size: 13px; line-height: 1.45; padding: 9px 13px; border-radius: 12px; max-width: 84%; }
.msg.them { background: #262320; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.us { background: var(--wa-green); border-bottom-right-radius: 4px; align-self: flex-end; }

/* s1 — WhatsApp chat */
.chat-app { display: flex; flex-direction: column; height: 100%; background: #0d1317; }
.chat-bar { display: flex; align-items: center; gap: 10px; padding: 40px 16px 12px; background: #17472F; }
.chat-back { color: var(--bone); font-size: 20px; line-height: 1; }
.chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--signal); color: #140B05; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 16px; }
.chat-who strong { display: block; color: var(--bone); font-size: 14px; line-height: 1.1; }
.chat-who em { font-style: normal; font-size: 11px; color: #8fdcae; }
.chat-icons { margin-left: auto; font-size: 15px; }
.chat-body { flex: 1; padding: 16px 13px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.chat-day { align-self: center; font-size: 9.5px; letter-spacing: 0.12em; color: var(--bone-dim); background: rgba(255, 255, 255, 0.06); border-radius: 8px; padding: 3px 10px; margin-bottom: 4px; }
.chat-body .msg { font-size: 12.5px; }
.chat-input { display: flex; align-items: center; padding: 10px 13px 16px; background: #0d1317; }
.chat-input span { flex: 1; background: #1b262b; color: var(--bone-dim); font-size: 12.5px; border-radius: 999px; padding: 9px 15px; }
.chat-input i { margin-left: 9px; width: 34px; height: 34px; border-radius: 50%; background: var(--wa-green); color: var(--bone); display: grid; place-items: center; font-style: normal; font-size: 12px; }

/* s2 — builder */
.build-app { display: flex; flex-direction: column; height: 100%; padding: 44px 18px 18px; gap: 10px; background: #100e0b; }
.build-top { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-dim); margin-bottom: 4px; }
.build-top strong { color: var(--bone); }
.build-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 4px rgba(255, 77, 0, 0.16); }
.wf { border: 1px solid rgba(237, 230, 218, 0.1); border-radius: 8px; background: var(--void-3); }
.wf-head { height: 30px; }
.wf-hero { flex: 1; min-height: 92px; background: linear-gradient(120deg, #241a12, #17110b); border-color: rgba(255, 77, 0, 0.18); }
.wf-row { display: flex; gap: 8px; }
.wf-cell { flex: 1; height: 50px; }
.wf-line { height: 12px; border-radius: 6px; }
.wf-line.short { width: 58%; }
.build-status { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.build-log { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--bone-dim); }
.build-log i { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-style: normal; background: rgba(62, 207, 110, 0.16); color: #3ECF6E; }
.build-log.active { color: var(--bone); }
.build-log.active i { background: rgba(255, 77, 0, 0.18); color: var(--signal); }
.j-progress { height: 4px; border-radius: 4px; background: var(--void-3); overflow: hidden; margin-top: 12px; }
.j-progress i { display: block; height: 100%; width: 100%; background: var(--signal); transform: translateX(-100%); }
.jstate.s2.is-on .j-progress i { animation: j-fill 2.4s ease-out forwards; }
@keyframes j-fill { to { transform: translateX(-16%); } }

/* s2 choreography: the page assembles piece by piece each time the state comes on */
.jstate.s2.is-on .wf { animation: j-build-in 0.5s var(--ease-out) backwards; }
.jstate.s2.is-on .wf-head { animation-delay: 0.15s; }
.jstate.s2.is-on .wf-hero { animation-delay: 0.35s; }
.jstate.s2.is-on .wf-cell:first-child { animation-delay: 0.55s; }
.jstate.s2.is-on .wf-cell:last-child { animation-delay: 0.7s; }
.jstate.s2.is-on .wf-line { animation-delay: 0.85s; }
.jstate.s2.is-on .wf-line.short { animation-delay: 1s; }
@keyframes j-build-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.wf-hero { position: relative; overflow: hidden; }
.wf-hero::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 35%, rgba(255, 77, 0, 0.16) 50%, transparent 65%);
}
.jstate.s2.is-on .wf-hero::after { animation: j-shimmer 1.8s ease-in-out 0.6s infinite; }
@keyframes j-shimmer { 60%, 100% { transform: translateX(120%); } }
.jstate.s2.is-on .build-log { animation: j-build-in 0.4s var(--ease-out) backwards; }
.jstate.s2.is-on .build-log:nth-child(1) { animation-delay: 1.1s; }
.jstate.s2.is-on .build-log:nth-child(2) { animation-delay: 1.5s; }
.jstate.s2.is-on .build-log:nth-child(3) { animation-delay: 1.9s; }
.jstate.s2.is-on .build-dot,
.jstate.s2.is-on .build-log.active i { animation: j-pulse 1.2s ease-in-out infinite; }
@keyframes j-pulse { 50% { transform: scale(1.25); opacity: 0.7; } }

/* s3 / s4 — preview + live, filling the phone screen */
.j-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* live state shows a deeper scroll of the site so preview → live reads as a real change */
.jstate.s4 .j-shot { object-position: center 26%; }
/* bottom scrim so the chat bubbles read against the screenshot */
.jstate.s3::after, .jstate.s4::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.94) 18%, transparent);
  pointer-events: none;
}
.j-note { position: absolute; left: 12px; right: 12px; bottom: 18px; display: flex; flex-direction: column; gap: 9px; z-index: 2; }
.j-note .msg {
  font-size: 14px; padding: 11px 15px;
  border: 1px solid rgba(237, 230, 218, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
}
.jstate.is-on .j-note .msg { animation: j-msg-in 0.45s var(--ease-out) backwards; }
.jstate.is-on .j-note .msg:nth-child(1) { animation-delay: 0.5s; }
.jstate.is-on .j-note .msg:nth-child(2) { animation-delay: 1.2s; }
@keyframes j-msg-in { from { opacity: 0; transform: translateY(14px) scale(0.95); } }
.j-live-badge {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%); z-index: 2;
  white-space: nowrap;
  background: rgba(10, 20, 13, 0.92); border: 1px solid rgba(62, 207, 110, 0.55);
  color: #3ECF6E; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 9px 15px; backdrop-filter: blur(6px);
  box-shadow: 0 0 24px rgba(62, 207, 110, 0.25);
}
.jstate.s4.is-on .j-live-badge {
  animation: j-live-pop 0.5s var(--ease-out) 0.3s backwards, j-live-glow 2s ease-in-out 1s infinite;
}
@keyframes j-live-pop { from { opacity: 0; transform: translate(-50%, -8px) scale(0.9); } }
@keyframes j-live-glow {
  50% { box-shadow: 0 0 36px rgba(62, 207, 110, 0.5); border-color: rgba(62, 207, 110, 0.9); }
}

/* ---------- work ---------- */
.work .show {
  display: grid; grid-template-columns: 1.05fr 1fr;
  gap: clamp(24px, 3.5vw, 56px); align-items: center;
  padding: clamp(36px, 6vh, 64px) 0;
  border-top: 1px solid var(--hairline-soft);
}
.work .show.flip { grid-template-columns: 1fr 1.05fr; }
.work .show.flip .show-media { order: 2; }
/* text hugs the inner edge (next to the preview) so the two feel connected */
.show-info { max-width: 31rem; }
.work .show:not(.flip) .show-info { justify-self: start; }
.work .show.flip .show-info { justify-self: end; }
.show-media {
  position: relative; display: block; overflow: hidden; border-radius: 12px;
  border: 1px solid var(--hairline); aspect-ratio: 16 / 10.5; background: var(--void-2);
  container-type: size;
}
.show-media::after {
  content: "Hover — it scrolls"; position: absolute; bottom: 14px; right: 14px; z-index: 1;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--bone-dim); background: rgba(14, 13, 12, 0.78); backdrop-filter: blur(6px);
  border: 1px solid var(--hairline-soft); border-radius: 999px; padding: 6px 12px;
  opacity: 1; transition: opacity 0.35s ease;
}
.show-media:hover::after { opacity: 0; }
@media (hover: none) { .show-media::after { display: none; } }
/* the demo scrolls through its full site on hover */
.show-media img {
  width: 100%; height: auto; min-height: 100%;
  transition: transform 5s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.show-media:hover img { transform: translateY(calc(-100% + 100cqh)); }
.work-note {
  margin-top: clamp(60px, 9vh, 110px);
  padding-top: 30px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--bone-dim); font-size: 16.5px;
}
.work-note strong {
  display: block;
  font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.8vw, 24px);
  color: var(--bone); margin-bottom: 6px;
}
.show-index { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--signal); letter-spacing: 0.12em; }
.show-info h3 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1.05; margin: 12px 0 14px; }
.show-info p { color: var(--bone-dim); max-width: 42ch; margin-bottom: 20px; }
.show-tags { list-style: none; display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.show-tags li {
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim);
  border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px;
}
.show-link { font-weight: 600; color: var(--bone); border-bottom: 1px solid var(--hairline); padding-bottom: 3px; transition: color 0.2s ease, border-color 0.2s ease; }
.show-link:hover { color: var(--signal); border-color: var(--signal); }
.show-link span { display: inline-block; transition: transform 0.25s ease; }
.show-link:hover span { transform: translateX(5px); }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: stretch; }
.price-card {
  border: 1px solid var(--hairline); border-radius: 20px;
  padding: clamp(30px, 3.4vw, 48px);
  display: flex; flex-direction: column; gap: 18px;
  background: var(--void-2);
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.price-card:hover { border-color: rgba(237, 230, 218, 0.28); transform: translateY(-3px); }
.price-card.featured:hover { border-color: rgba(255, 77, 0, 0.75); }
.price-card.featured {
  background: linear-gradient(150deg, #1C110A, #140E0B 55%);
  border-color: rgba(255, 77, 0, 0.45);
  box-shadow: 0 30px 80px rgba(255, 77, 0, 0.07);
}
.price-tag {
  align-self: flex-start; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--signal); border: 1px solid rgba(255, 77, 0, 0.4); border-radius: 999px; padding: 6px 14px;
}
.price-card h3 { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 2.2vw, 32px); }
.pricing .sec-head { display: block; }
/* beats .sec-head p, which is measured for short right-column blurbs */
.sec-head .sec-note {
  color: var(--bone-dim); font-size: 17.5px; line-height: 1.7;
  max-width: 60ch; margin-top: 26px; text-wrap: pretty;
}
.sec-head .sec-note strong { color: var(--bone); font-weight: 500; }
.price-more { margin-top: 28px; text-align: center; color: var(--bone-dim); font-size: 15px; }
.price-more a { color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--hairline); transition: color 0.2s ease, border-color 0.2s ease; }
.price-more a:hover { color: var(--signal); border-color: var(--signal); }
.price-num { font-family: var(--display); font-weight: 700; font-size: clamp(52px, 5vw, 84px); line-height: 1; letter-spacing: -0.01em; }
.price-num em { font-style: normal; font-size: 0.32em; color: var(--bone-dim); font-weight: 500; }
.price-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 8px; }
.price-card li { padding-left: 24px; position: relative; color: var(--bone-dim); font-size: 15.5px; }
.price-card li::before { content: "✳"; position: absolute; left: 0; top: 1px; color: var(--signal); font-size: 12px; }
.price-card .btn-fill, .price-card .btn-ghost { align-self: flex-start; margin-top: auto; }

/* ---------- voices ---------- */
.voice-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.voice {
  position: relative;
  border: 1px solid var(--hairline-soft); border-radius: 18px; padding: 54px 30px 30px;
  background: var(--void-2); display: flex; flex-direction: column; gap: 22px;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.voice:hover { border-color: var(--hairline); transform: translateY(-3px); }
.voice::before {
  content: "✳"; position: absolute; top: 22px; left: 30px;
  color: var(--signal); font-size: 20px; line-height: 1;
}
.voice blockquote { font-size: 17.5px; font-weight: 500; line-height: 1.5; flex: 1; }
.voice figcaption { display: flex; align-items: center; gap: 13px; font-size: 14px; color: var(--bone-dim); }
.voice figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.voice figcaption strong { display: block; color: var(--bone); font-size: 15px; }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.founder img { width: 100%; height: clamp(360px, 52vh, 520px); object-fit: cover; border-radius: 18px; filter: saturate(0.9); }
.founder-note .split-title { margin-bottom: 24px; }
.founder-note p { color: var(--bone-dim); max-width: 56ch; font-size: 17px; margin-bottom: 16px; }
.founder-note .sig { font-family: var(--display); font-weight: 500; color: var(--bone); font-size: 19px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 0.52fr; gap: clamp(36px, 6vw, 100px); align-items: start; }
.faq-list { max-width: 860px; }
.faq-aside {
  position: sticky; top: 110px;
  border: 1px solid var(--hairline); border-radius: 16px; background: var(--void-2);
  padding: clamp(26px, 3vw, 38px);
}
.faq-aside h3 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2vw, 28px); margin-bottom: 12px; }
.faq-aside p { color: var(--bone-dim); margin-bottom: 24px; max-width: 34ch; }
.faq details { border-top: 1px solid var(--hairline-soft); }
.faq details:last-child { border-bottom: 1px solid var(--hairline-soft); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.8vw, 24px);
  padding: 26px 54px 26px 0;
  transition: color 0.2s ease;
}
.faq summary:hover { color: var(--signal); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--signal); font-size: 30px; font-weight: 400; transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--bone-dim); max-width: 64ch; padding-bottom: 28px; margin-top: -6px; }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--signal); color: #140B05;
  border-radius: 24px; margin: 0 clamp(12px, 2vw, 32px);
  text-align: center;
  padding: clamp(80px, 13vh, 150px) clamp(20px, 4vw, 56px);
}
.cta-band h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(64px, 11vw, 190px); line-height: 0.92; letter-spacing: -0.02em;
  text-transform: uppercase; margin-bottom: 30px;
}
.cta-band h2 .line { display: block; }
.cta-band p { font-size: clamp(16px, 1.5vw, 20px); font-weight: 500; max-width: 52ch; margin: 0 auto 40px; }
.btn-dark {
  display: inline-block; background: var(--void); color: var(--bone);
  font-weight: 600; font-size: 17px; border-radius: 999px; padding: 19px 40px;
  transition: background 0.25s ease, color 0.25s ease;
}
.btn-dark:hover { background: #140B05; }

/* ---------- footer ---------- */
.site-footer {
  padding: clamp(64px, 9vh, 120px) clamp(20px, 4vw, 56px) 32px;
  border-top: 1px solid var(--hairline-soft);
}
.foot-main {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(44px, 6vh, 76px);
}
.foot-brand { max-width: 36ch; }
.foot-logo {
  display: inline-block; font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 2.4vw, 34px); letter-spacing: 0.01em; color: var(--bone);
  margin-bottom: 22px;
}
.foot-logo i { font-style: normal; color: var(--signal); }
.foot-brand p { color: var(--bone-dim); font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
.foot-cta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--bone);
  border-bottom: 1px solid var(--hairline); padding-bottom: 6px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.foot-cta span { color: var(--signal); transition: transform 0.25s ease; }
.foot-cta:hover { color: var(--signal); border-color: var(--signal); }
.foot-cta:hover span { transform: translateX(5px); }

.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.foot-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone-dim); margin-bottom: 6px;
}
.foot-col a {
  color: var(--bone-dim); font-size: 15.5px; transition: color 0.2s ease;
  display: flex; align-items: center; min-height: 40px; /* thumb-sized tap target */
}
.foot-col a:hover { color: var(--bone); }

.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline-soft); padding-top: 26px;
  color: var(--bone-dim); font-size: 13.5px;
}
.foot-mx { letter-spacing: 0.04em; }
.foot-legal { transition: color 0.2s ease; }
.foot-legal:hover { color: var(--bone); }
.foot-up { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s ease; }
.foot-up span { color: var(--signal); transition: transform 0.25s ease; }
.foot-up:hover { color: var(--bone); }
.foot-up:hover span { transform: translateY(-3px); }

/* ---------- motion primitives ---------- */
.anim-fade { opacity: 1; }
html.no-anim .anim-fade { opacity: 1; }
html.no-anim .hero-title .line, html.no-anim .split-title { opacity: 1 !important; transform: none !important; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.reveal.in-view { opacity: 1; transform: none; }
html.no-anim .reveal { opacity: 1; transform: none; }
html.no-anim .jstate { transform: none; }
html.no-anim .j-step-body { opacity: 1; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-fade { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
  .clients-track { animation: none; }
  .grain { animation: none; }
  .loader { display: none; }
  .jstate.s2.is-on .wf-hero::after,
  .jstate.s2.is-on .build-dot,
  .jstate.s2.is-on .build-log.active i,
  .jstate.s4.is-on .j-live-badge { animation: none; }
}
@media (hover: none) { .grain { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .hero { padding-top: 120px; min-height: 0; }
  .hero-title .line { white-space: normal; }
  .hero-title .line:nth-child(2) { margin-left: 0; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-stage { max-width: 560px; margin-top: 30px; }
  .stage-chat { left: -8px; }
  .journey-pin { grid-template-columns: 1fr; gap: 0; }
  .j-visual {
    position: sticky; top: 72px; height: 54svh; min-height: 380px;
    order: -1; z-index: 2; margin-bottom: 20px; background: var(--void);
  }
  .phone { width: min(220px, 64vw, calc((max(54svh, 380px) - 96px) * 9 / 18.8)); }
  .j-step { min-height: 58svh; padding: 38px 0; }
  .work .show, .work .show.flip { grid-template-columns: 1fr; }
  .work .show.flip .show-media { order: 0; }
  .work .show .show-info, .work .show.flip .show-info { justify-self: start; max-width: none; }
  .price-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-aside { position: static; }
  .voice-row { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder img { height: 380px; }
}
@media (max-width: 900px) {
  .site-header { justify-content: space-between; }
  .site-nav {
    position: fixed; inset: 0; z-index: -1;
    background: var(--void);
    display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 26px; padding: 0 clamp(24px, 8vw, 60px);
    font-family: var(--display); font-size: 34px; font-weight: 500;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .site-nav.open {
    opacity: 1; visibility: visible; pointer-events: auto; z-index: 99;
    transition-delay: 0s;
  }
  .site-nav .nav-cta { font-size: 20px; margin-top: 10px; }
  .nav-toggle { display: flex; z-index: 100; }
  .site-nav.open ~ .nav-toggle span:first-child,
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
}
body.nav-open { overflow: hidden; }
@media (max-width: 820px) {
  .foot-main { grid-template-columns: 1fr 1fr 1fr; gap: clamp(32px, 6vw, 48px); }
  .foot-brand { grid-column: 1 / -1; max-width: 48ch; }
}
@media (max-width: 560px) {
  .hero { padding-top: 108px; }
  .hero-title { font-size: clamp(40px, 12vw, 58px); overflow-wrap: break-word; }
  .hero-stats { gap: 22px; }
  .stage-chat { position: relative; left: 0; bottom: 0; width: 100%; margin-top: 14px; box-shadow: none; }
  .build-frame { transform: none; }
  .cta-band h2 { font-size: clamp(52px, 15vw, 76px); }
  .foot-main { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
