/* Leucent — homepage: immersive scroll story */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bone { color: var(--bone); }

/* ---------- layers ---------- */

.field {
  position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 1;
  pointer-events: none; display: block;
}
.grain {
  position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

main { position: relative; z-index: 2; }

/* ---------- loader ---------- */

.loader { display: none; }
.js .loader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 80; background: var(--void);
  transition: opacity .9s cubic-bezier(.7,0,.2,1), visibility 0s .9s;
}
.js.is-loaded .loader { opacity: 0; visibility: hidden; }
.loader-inner { display: grid; gap: 14px; justify-items: center; }
.loader-num { font-family: var(--f-display); font-size: clamp(72px, 12vw, 140px); line-height: .9; font-variant-numeric: tabular-nums; }
.loader-num small { font-family: var(--f-mono); font-size: 14px; letter-spacing: .14em; color: var(--dim); }
.loader-bar { width: 220px; height: 1px; background: var(--line-strong); position: relative; overflow: hidden; }
.loader-bar i { position: absolute; inset: 0; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); box-shadow: 0 0 10px var(--signal); }

/* ---------- chapter nav ---------- */

.chapters {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 6px; align-items: center;
  position: absolute; left: 50%; top: 18px; transform: translateX(-50%);
}
.chapters a {
  display: grid; justify-items: center; gap: 4px;
  text-decoration: none; color: var(--dim);
}
.chapters a span {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .04em;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.chapters a em {
  font-style: normal; font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; text-transform: uppercase;
  opacity: 0; transform: translateY(-3px); transition: opacity .3s, transform .3s; color: var(--signal);
}
.chapters a:hover span { border-color: var(--bone); color: var(--bone); }
.chapters a.is-active span { background: var(--signal); border-color: var(--signal); color: var(--void); transform: scale(1.08); }
.chapters a.is-active em { opacity: 1; transform: none; }
.chapters li:nth-child(even) { transform: translateY(6px); }
@media (max-width: 1080px) { .chapters { display: none; } }

/* ---------- HUD ---------- */

.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: var(--hud-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 11, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.hud-cell { display: flex; align-items: center; gap: 14px; }
.hud-ch { justify-content: flex-end; }
.meter { position: relative; width: clamp(90px, 16vw, 220px); height: 6px; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.meter-fill {
  position: absolute; inset: 0; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255,107,44,.35), var(--signal));
  box-shadow: 0 0 12px var(--signal);
}
.meter-tick { position: absolute; top: -2px; bottom: -2px; width: 1px; left: calc(2.5 / 3.5 * 100%); background: var(--bone); }
.hud-val { font-family: var(--f-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; min-width: 3.4ch; }
.hud-val.is-met { color: var(--signal); }
@media (max-width: 700px) {
  .hud { grid-template-columns: 1fr auto; }
  .hud-mid { display: none; }
  [data-hud-status], [data-hud-status] + .dim { display: none; }
  .hud-val { font-size: 22px; }
}

/* ---------- chapters (shared) ---------- */

.ch {
  position: relative;
  min-height: 100vh;
  padding: 120px var(--gutter) calc(var(--hud-h) + 72px);
  display: flex; align-items: center;
  overflow-x: clip;
}
.ch-inner { position: relative; z-index: 3; width: 100%; max-width: 560px; }
.ch-inner.wide { max-width: var(--maxw); margin: 0 auto; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--dim); margin: 0 0 22px; }
.pip { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); flex: none; }

.ch-title { font-size: clamp(40px, min(6.2vw, 9.4vh), 92px); margin-bottom: 28px; text-wrap: balance; }
.ch-title em { display: block; }
.ch-copy p { color: #cfccc4; font-size: 18px; max-width: 46ch; margin: 0 0 16px; }
.ch-copy strong { color: var(--bone); font-weight: 500; }
.kicker { color: var(--bone) !important; font-family: var(--f-display); font-size: 26px !important; line-height: 1.2; margin-top: 24px !important; }

.text-link { display: inline-flex; margin-top: 26px; color: var(--bone); text-decoration: none; border-bottom: 1px solid var(--signal); padding-bottom: 4px; }
.text-link:hover { color: var(--signal); }

.callout { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 16px; border: 1px solid rgba(255,107,44,.45); border-radius: 999px; color: var(--signal); background: rgba(255,107,44,.06); }

/* floating tags */
.tags { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.tag {
  position: absolute; left: var(--x, 0); top: var(--y, 0);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; color: var(--bone);
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px;
  opacity: 0; transition: opacity .6s;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bone); flex: none; }
.tag-signal { color: var(--signal); }
.tag-signal::before { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.tag[data-anchor] { left: 0; top: 0; will-change: transform; }
.ch.is-active .tag { opacity: .9; }
.ch.is-active .tag.dim { opacity: .55; }
@media (max-width: 760px) { .tags { display: none; } }

/* ---------- 01 hero ---------- */

.ch-hero { min-height: 100svh; align-items: flex-end; padding-bottom: calc(var(--hud-h) + 56px); }
.hero-media {
  position: absolute; z-index: 1; right: -4vw; top: 50%; transform: translateY(-50%);
  width: min(70vw, 1280px); aspect-ratio: 16 / 9;
  -webkit-mask-image: radial-gradient(ellipse 52% 50% at 55% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 50% at 55% 50%, #000 55%, transparent 100%);
}
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-title { font-size: clamp(54px, min(9.6vw, 15vh), 168px); margin-bottom: 30px; }
.hero-title .line { display: block; }
.hero-copy { font-size: 18px; max-width: 40ch; color: #cfccc4; margin: 0 0 30px; }
.hero-copy strong { color: var(--bone); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ch-hero .ch-inner { max-width: 760px; }

@media (max-width: 900px) {
  /* phones & small tablets: the product gets its own space above the headline */
  .ch-hero { flex-direction: column; align-items: stretch; justify-content: center; padding-top: 76px; }
  .hero-media {
    position: relative; right: auto; top: auto; transform: none;
    width: 100vw; margin: 0 0 4px calc(50% - 50vw); flex: none;
    -webkit-mask-image: radial-gradient(ellipse 64% 58% at 50% 50%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 64% 58% at 50% 50%, #000 70%, transparent 100%);
  }
  .hero-title { font-size: clamp(44px, 12.5vw, 72px); margin-bottom: 20px; }
  .hero-copy { font-size: 16.5px; margin-bottom: 22px; }
}

/* ---------- 02 problem (sticky scrub) ---------- */

.ch-problem { display: block; padding: 0; min-height: 0; height: 260vh; }
.ch-problem .sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
  padding: 120px var(--gutter) calc(var(--hud-h) + 56px);
}
.dissolve {
  position: absolute; z-index: 1; right: -6vw; top: 50%; transform: translateY(-50%);
  width: min(72vw, 1300px); aspect-ratio: 16 / 9;
  -webkit-mask-image: radial-gradient(ellipse 50% 48% at 55% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 48% at 55% 50%, #000 55%, transparent 100%);
}
.dissolve-video { width: 100%; height: 100%; object-fit: cover; }
.readout { display: flex; gap: 0; margin: 30px 0 0; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.readout div { padding: 12px 16px; border-right: 1px solid var(--line); }
.readout div:last-child { border-right: 0; }
.readout dt { color: var(--dim); margin-bottom: 4px; }
.readout dd { margin: 0; color: var(--bone); font-size: 13px; }
.readout dd.signal { color: var(--signal); }
@media (max-width: 900px) {
  /* phones: no sticky scrub; the bar sits above the copy and dissolves once when it scrolls into view */
  .ch-problem { height: auto; }
  .ch-problem .sticky { position: relative; height: auto; overflow: visible; flex-direction: column; align-items: stretch; padding-top: 88px; }
  .dissolve {
    position: relative; right: auto; top: auto; transform: none;
    width: 124vw; margin: 0 0 8px calc(50% - 62vw); flex: none;
    -webkit-mask-image: radial-gradient(ellipse 46% 48% at 52% 50%, #000 62%, transparent 100%);
    mask-image: radial-gradient(ellipse 46% 48% at 52% 50%, #000 62%, transparent 100%);
  }
}

/* ---------- 03 threshold ---------- */

.fibre {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 55% 60% at 72% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 60% at 72% 50%, #000 20%, transparent 75%);
}
.fibre-video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) contrast(1.1); }

/* ---------- 04 molecule ---------- */

.specimen { margin: 34px 0 0; width: min(100%, 360px); border: 1px solid var(--line); background: #070808; }
.specimen img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.specimen figcaption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }

/* ---------- 05 formula ---------- */

.ch-formula { flex-direction: column; align-items: stretch; justify-content: center; gap: 72px; }
.ch-formula .ch-inner { max-width: 600px; }
.spec { display: grid; gap: 22px; }
.spec-big { display: flex; align-items: flex-end; gap: 16px; }
.spec-num { font-family: var(--f-display); font-size: clamp(110px, 15vw, 210px); line-height: .78; color: var(--signal); font-variant-numeric: tabular-nums; text-shadow: 0 0 60px rgba(255,107,44,.35); }
.spec-big .mono { color: var(--dim); padding-bottom: 8px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table caption { text-align: left; padding-bottom: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.spec-table th { color: var(--dim); width: 38%; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: 14px; }
.spec-table tr.hl td { color: var(--signal); }
.spec-table tr.hl th { color: var(--signal); }
.spec-flavours { color: var(--dim); margin: 0; }
.spec-flavours span { color: var(--bone); }
.plate { position: relative; z-index: 3; margin: 0; width: 100%; max-width: var(--maxw); align-self: center; border: 1px solid var(--line); background: #070808; }
.plate img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.plate figcaption { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); }

/* ---------- 06 who ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.card { border: 1px solid var(--line); background: rgba(14, 16, 16, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 0 0 22px; }
.card > :not(.card-media) { padding: 0 20px; }
.card-media { aspect-ratio: 4 / 5; overflow: hidden; border-bottom: 1px solid var(--line); margin-bottom: 18px; background: #070808; }
.card-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05); transform: scale(1.04); transition: filter .8s, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { filter: none; transform: scale(1); }
.card h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 1; margin: 6px 0 10px; }
.card p { margin: 0; color: #cfccc4; font-size: 15.5px; }
.card .mono { margin: 0; }
.card-figure { display: grid; align-content: center; gap: 4px; padding: 28px; background: radial-gradient(ellipse at 70% 30%, rgba(255,107,44,.16), transparent 60%), #070808; }
.cf-row { display: flex; align-items: baseline; gap: 14px; border-bottom: 1px solid var(--line); padding: 10px 0; }
.cf-row b { font-family: var(--f-display); font-weight: 400; font-size: clamp(48px, 5vw, 72px); line-height: 1; }
.cf-row i { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.cf-plus { font-family: var(--f-display); font-size: clamp(56px, 6vw, 88px); color: var(--signal); line-height: 1; margin-top: 12px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card-media { aspect-ratio: 16 / 11; } }

/* ---------- 07 compare ---------- */

.ch-compare .data-table { min-width: 0; }

/* ---------- 08 questions + waitlist ---------- */

.ch-questions { display: block; padding-top: 140px; }
.faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 12px; border-top: 1px solid var(--line); }
.qa { padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; font-size: 28px; line-height: 1.05; margin: 0 0 12px; }
.qa p { margin: 0; color: #cfccc4; max-width: 56ch; }
.qa a { color: var(--bone); text-decoration-color: var(--signal); text-underline-offset: 3px; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }

.waitlist-block { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 120px; padding: 48px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(255,107,44,.08), transparent 50%), rgba(14,16,16,.8); }
.wl-title { font-size: clamp(42px, 5vw, 76px); margin-bottom: 30px; }
.wl-title em { display: block; }
.wl-media { margin: 0; }
.wl-media img { width: 100%; }
@media (max-width: 900px) { .waitlist-block { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; margin-top: 80px; } }

/* ---------- reveal ---------- */

.js .rv { opacity: 0; transform: translateY(28px); }

/* ---------- mobile chapter layout ---------- */

@media (max-width: 760px) {
  .ch { padding-top: 96px; align-items: flex-end; }
  /* stage for the particle shape above the copy */
  .ch-threshold, .ch-molecule, .ch-formula, .ch-compare { padding-top: 56vh; align-items: flex-start; }
  .ch-formula { gap: 40px; }
  .spec-big { flex-wrap: wrap; gap: 6px 14px; }
  .ch-copy p { font-size: 16.5px; }
  .kicker { font-size: 22px !important; }
  .readout { width: 100%; }
  .readout div { flex: 1; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; }
  .js .rv { opacity: 1; transform: none; }
}
