/* Website V2 — immersive layer. All color/type comes from system tokens.
   Scope prefix: .w2-  (no collisions with V1 kit.css) */

html { scroll-behavior: smooth; }
html, body { background: var(--bg); }
.w2 { min-height: 100vh; background: var(--bg); overflow-x: clip; }

/* Grain overlay */
.w2-grain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E"); }

/* Scroll progress hairline */
.w2-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 90; pointer-events: none;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* Intro veil */
.w2-veil { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--bg);
  transition: transform 900ms var(--ease-in-out), visibility 0s 900ms; }
.w2-veil--off { transform: translateY(-101%); visibility: hidden; }
.w2-veil__wm { font-family: var(--font-mono); font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 14px; }
.w2-veil__wm b { color: var(--accent-text); font-weight: 500; }
.w2-veil__bar { width: 120px; height: 1px; background: var(--border); position: relative; overflow: hidden; }
.w2-veil__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; animation: w2-load 800ms var(--ease-in-out) forwards; }
@keyframes w2-load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Custom cursor */
@media (pointer: fine) {
  .w2-cur-dot, .w2-cur-ring { position: fixed; top: 0; left: 0; z-index: 95; pointer-events: none; border-radius: 50%;
    transform: translate(-100px,-100px); }
  .w2-cur-dot { width: 6px; height: 6px; background: var(--accent); }
  .w2-cur-ring { width: 34px; height: 34px; border: 1px solid color-mix(in oklab, var(--accent) 55%, transparent);
    transition: width .25s var(--ease-out), height .25s var(--ease-out), border-color .25s, background-color .25s; }
  .w2-cur-ring--grow { width: 56px; height: 56px; border-color: color-mix(in oklab, var(--accent) 90%, transparent);
    background: color-mix(in oklab, var(--accent) 10%, transparent); }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .w2-cur-dot, .w2-cur-ring { display: none; } }

/* ============================== Header ============================== */
.w2-hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 64px; display: flex; align-items: center;
  padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid transparent;
  transition: background var(--duration-slow) var(--ease-out), border-color var(--duration-slow) var(--ease-out); }
.w2-hdr--solid { background: color-mix(in oklab, var(--bg) 72%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--border-subtle); }
.w2-hdr__in { width: 100%; display: flex; align-items: center; gap: 28px; }
.w2-hdr__nav { display: flex; gap: 2px; margin-left: 10px; }
.w2-hdr__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.w2-navlink { padding: 7px 12px; font-size: 13px; color: var(--text-muted); background: none; border: none; font-family: inherit;
  border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: var(--transition-colors); }
.w2-navlink:hover { color: var(--text); background: var(--surface-2); }
.w2-lang { display: inline-flex; padding: 2px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border-subtle); border-radius: var(--radius-full); }
.w2-lang button { padding: 4px 10px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); background: none; border: none;
  border-radius: var(--radius-full); cursor: pointer; transition: var(--transition-colors); }
.w2-lang button.on { color: var(--text); background: var(--surface-3); }

/* ============================== Hero ============================== */
.w2-hero { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  padding: 120px clamp(20px, 4vw, 48px) 40px; overflow: clip; }
.w2-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.w2-hero__wash { position: absolute; inset: auto 0 0; height: 40vh; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 88%); }
.w2-hero__washtop { position: absolute; inset: 0 0 auto; height: 30vh; pointer-events: none; opacity: .6;
  background: radial-gradient(55% 90% at 50% 0%, rgba(232,177,76,.10), transparent 70%); }
.w2-hero__in { position: relative; max-width: var(--container-wide); margin: 0 auto; width: 100%; }
.w2-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); }
.w2-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.w2-hero__title { font-family: var(--font-display); font-size: clamp(3.4rem, 1.6rem + 8.4vw, 8.6rem); line-height: .98;
  letter-spacing: -0.025em; color: var(--text); margin: 26px 0 0; font-weight: 400; }
.w2-hero__title em { font-style: italic; color: var(--accent-text); }
.w2-line { display: block; overflow: hidden; }
.w2-line > span { display: block; transform: translateY(112%); animation: w2-rise 1s var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
@keyframes w2-rise { to { transform: translateY(0); } }
.w2-hero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 5vh, 56px); flex-wrap: wrap; }
.w2-hero__sub { max-width: 34rem; font-size: var(--text-md); line-height: 1.65; color: var(--text-secondary); margin: 0; }
.w2-hero__cta { display: flex; gap: 14px; align-items: center; }
.w2-hero__stats { position: relative; display: flex; gap: clamp(28px, 5vw, 64px); margin-top: clamp(32px, 6vh, 64px);
  padding-top: 24px; border-top: 1px solid var(--border-subtle); flex-wrap: wrap; }
.w2-stat__n { font-family: var(--font-mono); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.w2-stat__n small { font-size: .62em; color: var(--accent-text); font-weight: 500; }
.w2-stat__l { margin-top: 5px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); }
/* Bottom-RIGHT corner, not centre: the hero stats row is left-aligned and its
   last stat sits near the horizontal centre, so a centred cue overlapped it. */
.w2-scrollcue { position: absolute; right: clamp(20px, 4vw, 48px); bottom: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-faint); }
@media (max-width: 720px) { .w2-scrollcue { display: none; } }
.w2-scrollcue i { width: 1px; height: 34px; background: var(--border-strong); position: relative; overflow: hidden; }
.w2-scrollcue i::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: w2-drip 1.8s var(--ease-in-out) infinite; }
@keyframes w2-drip { 0% { transform: translateY(-100%);} 60%,100% { transform: translateY(100%);} }

/* Buttons (magnetic wrap) */
.w2-mag { display: inline-block; will-change: transform; }
.w2-btn { display: inline-flex; align-items: center; gap: 9px; padding: 0 26px; height: 52px; border-radius: var(--radius-full);
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; text-decoration: none;
  border: 1px solid transparent; transition: var(--transition-colors), transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base); }
.w2-btn--gold { background: var(--accent); color: var(--text-on-signal); }
.w2-btn--gold:hover { background: var(--accent-hover); box-shadow: 0 8px 30px -8px color-mix(in oklab, var(--accent) 55%, transparent); }
.w2-btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.w2-btn--ghost:hover { border-color: var(--accent); color: var(--accent-text); }
.w2-btn svg { transition: transform var(--duration-base) var(--ease-out); }
.w2-btn:hover svg { transform: translateX(3px); }

/* ============================== Marquee ============================== */
.w2-marq { border-block: 1px solid var(--border-subtle); padding: 18px 0; overflow: clip; background: var(--bg-subtle); }
.w2-marq__track { display: flex; gap: 0; width: max-content; animation: w2-marq 36s linear infinite; }
.w2-marq:hover .w2-marq__track { animation-play-state: paused; }
.w2-marq__set { display: flex; align-items: center; flex: none; }
.w2-marq__item { display: inline-flex; align-items: center; gap: 26px; padding: 0 26px; font-family: var(--font-mono);
  font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.w2-marq__item::after { content: "◆"; font-size: 7px; color: var(--accent); opacity: .7; }
@keyframes w2-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .w2-marq__track { animation: none; } }

/* ============================== Reveal utility ============================== */
.w2-rev { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.w2-rev.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .w2-rev { opacity: 1; transform: none; transition: none; } }

/* ============================== Manifesto ============================== */
.w2-mani { max-width: 64rem; margin: 0 auto; padding: clamp(110px, 16vh, 180px) clamp(20px, 4vw, 48px); }
.w2-mani p { font-family: var(--font-display); font-size: clamp(1.7rem, 1rem + 3.1vw, 3.2rem); line-height: 1.22;
  letter-spacing: -0.012em; color: var(--text); margin: 0; text-wrap: pretty; }
.w2-mani .w { opacity: .14; transition: opacity .35s var(--ease-out); }
.w2-mani .w.on { opacity: 1; }
.w2-mani em { font-style: italic; color: var(--accent-text); }
@media (prefers-reduced-motion: reduce) { .w2-mani .w { opacity: 1; } }

/* ============================== Pipeline (pinned) ============================== */
.w2-pipe { position: relative; max-width: var(--container-wide); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.w2-pipe__head { padding: 40px 0 8px; }
.w2-pipe__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 6vw, 96px); }
.w2-pipe__stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.w2-pipe__ghost { font-family: var(--font-mono); font-weight: 600; font-size: clamp(96px, 14vw, 200px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--border-strong); letter-spacing: -0.02em; transition: opacity .3s; }
.w2-pipe__ghost b { color: var(--accent-text); -webkit-text-stroke: 0; font-weight: 600; }
.w2-pipe__track { width: 180px; height: 1px; background: var(--border); position: relative; }
.w2-pipe__track i { position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; }
.w2-pipe__stickname { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); color: var(--text); letter-spacing: -0.015em; }
.w2-pipe__steps { display: flex; flex-direction: column; }
.w2-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  border-bottom: 1px solid var(--border-subtle); padding: 32px 0; }
.w2-step:last-child { border-bottom: none; }
.w2-step__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; color: var(--text-faint); }
.w2-step__t { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 34px); color: var(--text); margin: 0; letter-spacing: -0.012em; }
.w2-step__d { font-size: var(--text-md); line-height: 1.65; color: var(--text-secondary); margin: 0; max-width: 30rem; }
.w2-step__gate { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-bg);
  border: 1px solid var(--border-signal); padding: 5px 10px; border-radius: var(--radius-full); }
@media (max-width: 860px) {
  .w2-pipe__grid { grid-template-columns: 1fr; }
  .w2-pipe__stick { display: none; }
  .w2-step { min-height: 0; padding: 36px 0; }
}

/* ============================== Showcase (horizontal) ============================== */
.w2-show { position: relative; }
.w2-show__pin { position: sticky; top: 0; height: 100vh; overflow: clip; display: flex; align-items: center; }
.w2-show__track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 0 clamp(20px, 4vw, 48px); will-change: transform; }
.w2-show__intro { flex: none; width: min(44vw, 560px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.w2-show__h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.02em; color: var(--text); margin: 0; }
.w2-show__h2 em { font-style: italic; color: var(--accent-text); }
.w2-card { flex: none; width: min(78vw, 620px); display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); text-decoration: none;
  transition: transform .45s var(--ease-out), border-color .45s, box-shadow .45s; }
.w2-card:hover { transform: translateY(-8px); border-color: var(--border-signal); box-shadow: 0 24px 60px -24px rgba(0,0,0,.5); }
.w2-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w2-card__dom { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); }
.w2-card__dom i { width: 8px; height: 8px; border-radius: 50%; background: var(--dc); }
.w2-card__score { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--accent-text); letter-spacing: -0.02em; }
.w2-card__score small { font-size: 12px; color: var(--text-faint); font-weight: 400; }
.w2-card__t { font-family: var(--font-display); font-size: clamp(1.5rem, 1rem + 1.8vw, 2.2rem); line-height: 1.1; letter-spacing: -0.014em;
  color: var(--text); margin: 0; }
.w2-card__lede { font-size: var(--text-md); line-height: 1.6; color: var(--text-secondary); margin: 0; }
.w2-card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 16px;
  border-top: 1px solid var(--border-subtle); font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.w2-card__foot b { color: var(--text-secondary); font-weight: 500; }
.w2-card__go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); }
.w2-show__hint { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint);
  display: inline-flex; align-items: center; gap: 10px; }
.w2-show__hint i { display: inline-block; width: 40px; height: 1px; background: var(--border-strong); }

/* ============================== Graph teaser ============================== */
.w2-graph { position: relative; margin-top: clamp(90px, 14vh, 160px); border-block: 1px solid var(--border-subtle);
  background: var(--bg-subtle); overflow: clip; }
.w2-graph__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .85; }
.w2-graph__in { position: relative; max-width: var(--container-wide); margin: 0 auto; min-height: 78vh;
  padding: clamp(70px, 11vh, 120px) clamp(20px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 20px;
  pointer-events: none; }
.w2-graph__in > * { pointer-events: auto; }
.w2-graph__h2 { font-family: var(--font-display); font-size: clamp(2.6rem, 1.4rem + 4.6vw, 5rem); line-height: 1.0; letter-spacing: -0.022em;
  color: var(--text); margin: 0; max-width: 16ch; }
.w2-graph__h2 em { font-style: italic; color: var(--accent-text); }
.w2-graph__sub { max-width: 32rem; font-size: var(--text-md); line-height: 1.65; color: var(--text-secondary); margin: 0; }
.w2-graph__meta { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.w2-graph__meta span { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.w2-graph__meta b { color: var(--text); font-weight: 600; }

/* ============================== Outro / footer ============================== */
.w2-outro { position: relative; text-align: center; padding: clamp(110px, 18vh, 200px) clamp(20px, 4vw, 48px) clamp(80px, 12vh, 140px); overflow: clip; }
.w2-outro__wash { position: absolute; inset: auto 0 -40%; height: 70%; pointer-events: none; opacity: .55;
  background: radial-gradient(50% 80% at 50% 100%, rgba(232,177,76,.12), transparent 70%); }
.w2-outro__h2 { position: relative; font-family: var(--font-display); font-size: clamp(3rem, 1.6rem + 6.4vw, 7rem); line-height: 1;
  letter-spacing: -0.024em; color: var(--text); margin: 0 0 14px; }
.w2-outro__h2 em { font-style: italic; color: var(--accent-text); }
.w2-outro__sub { position: relative; max-width: 34rem; margin: 0 auto 34px; font-size: var(--text-md); line-height: 1.65; color: var(--text-secondary); }
.w2-outro__row { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.w2-ftr { border-top: 1px solid var(--border-subtle); }
.w2-ftr__in { max-width: var(--container-wide); margin: 0 auto; padding: 26px clamp(20px, 4vw, 48px); display: flex; align-items: center;
  justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.w2-ftr__in a { color: var(--text-muted); text-decoration: none; transition: var(--transition-colors); }
.w2-ftr__in a:hover { color: var(--text); }
.w2-ftr__links { display: flex; gap: 22px; }
.w2-ftr__live { display: inline-flex; align-items: center; gap: 7px; }
.w2-ftr__live i { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
