/* Revinetic brand: black, white, lime. Color zones: ink (dark) → white (light) → ink → lime (accent). */
:root {
  --ink: #040504;
  --ink-2: #0b0e0b;
  --bone: #f3f5ef;
  --signal: #9afe5a;
  --muted: rgba(243, 245, 239, .6);
  --line: rgba(243, 245, 239, .16);

  --bg-dark: var(--ink);
  --bg-light: var(--bone);
  --bg-accent: var(--signal);
  --text-on-dark: var(--bone);
  --text-on-light: #050605;

  --f-display: "Bricolage Grotesque", sans-serif;
  --f-serif: "Instrument Serif", serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --pad: clamp(1.25rem, 5vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--ink);
  color: var(--text-on-dark);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- fixed layers ---------- */
/* dims the city so type stays readable */
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(4,5,4,.78) 0%, rgba(4,5,4,.38) 55%, rgba(4,5,4,.12) 100%); }
/* extra dimming layer, faded in behind the illustrated sections */
.dim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(4,5,4,.72); opacity: 0; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
main, .nav, .hud { position: relative; z-index: 2; }
.grain {
  position: fixed; inset: -50%; z-index: 50; 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'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem var(--pad);
  color: var(--bone); transition: color .4s;
  font-family: var(--f-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
}
.nav__logo { display: flex; align-items: center; gap: .7rem; }
.nav__logo img { display: block; height: 30px; width: auto; }
.nav__logo .wm { height: 16px; transition: filter .4s; }
.nav.on-light .nav__logo img { filter: brightness(0); }
.nav__links { display: flex; gap: 2rem; align-items: center; }
.nav__links a { position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: currentColor; transition: right .35s cubic-bezier(.7,0,.2,1); }
.nav__links a:hover::after { right: 0; }
.nav__cta { padding: .55rem 1rem; border: 1px solid currentColor; border-radius: 99px; }
.nav__cta::after { display: none; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ---------- HUD ---------- */
.hud {
  position: fixed; right: var(--pad); top: 50%; transform: translateY(-50%) rotate(90deg); transform-origin: right center;
  z-index: 40; display: flex; align-items: center; gap: .75rem;
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .2em; color: var(--bone); transition: color .4s;
}
.on-light { color: var(--text-on-light) !important; }
.hud__bar { width: 80px; height: 1px; background: currentColor; opacity: .9; position: relative; }
.hud__bar i { position: absolute; inset: 0; background: var(--signal); height: 2px; top: -.5px; transform-origin: left; transform: scaleX(0); }
@media (max-width: 720px) { .hud { display: none; } }

/* ---------- shared type ---------- */
.label {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.5rem;
}
h2 {
  font-size: clamp(3rem, 8vw, 8rem); line-height: .94; font-weight: 700; letter-spacing: -.035em;
  font-variation-settings: "wdth" 82;
}
section { position: relative; }

/* ---------- 001 hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem var(--pad) 2.5rem; }
.hero__logo { display: block; width: min(38vw, 430px, 38vh); height: auto; margin-bottom: 1.4rem; filter: drop-shadow(0 0 28px rgba(154,254,90,.25)); }
.hero__title { font-size: clamp(2.8rem, min(8.6vw, 17vh), 9rem); line-height: .88; font-weight: 800; letter-spacing: -.015em; text-transform: uppercase; font-variation-settings: "wdth" 75; margin-bottom: 1.4rem; text-shadow: 0 0 60px rgba(4,5,4,.55); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line--serif { font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: lowercase; color: var(--signal); letter-spacing: -.02em; margin-left: .4em; }
.ch { display: inline-block; will-change: transform; }
.hero__sub { font-family: var(--f-mono); font-size: clamp(.8rem, 1.2vw, 1rem); max-width: 40rem; color: var(--bone); min-height: 3em; }
.caret { color: var(--signal); animation: blink 1s steps(2) infinite; font-weight: 400; }
@keyframes blink { 50% { opacity: 0; } }
.scrollcue { position: absolute; left: var(--pad); bottom: 1.6rem; display: flex; align-items: center; gap: .8rem; font-family: var(--f-mono); font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.scrollcue i { width: 48px; height: 1px; background: var(--muted); transform-origin: left; animation: cue 2s cubic-bezier(.7,0,.2,1) infinite; }
@keyframes cue { 0% { transform: scaleX(0); } 60% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }


.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.2rem 0 1.6rem; }
.btn--ghost { background: transparent; color: var(--bone); border: 1px solid rgba(243,245,239,.4); }
.btn--ghost:hover { border-color: var(--signal); color: var(--signal); }
.hero .btn { background: var(--signal); color: var(--ink); }
.hero .btn i { color: var(--ink); }
.hero .btn--ghost { background: transparent; color: var(--bone); }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.2rem 3.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.badge__v { display: flex; align-items: flex-start; font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variation-settings: "wdth" 80; font-variant-numeric: tabular-nums; }
.badge__v sup { font-size: .5em; margin: .12em .06em 0 0; color: var(--signal); }
.badge__v small { font-size: .5em; margin: auto 0 .08em .08em; letter-spacing: 0; color: var(--signal); }
.badge__l { display: block; margin-top: .5rem; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------- 002 pain: "Sound familiar?" (pinned; each pain gets struck out) ---------- */
.pain { min-height: 100vh; display: flex; align-items: center; padding: 6rem var(--pad); }
.pain__inner { width: 100%; }
.pain__list { list-style: none; }
.prow { display: flex; align-items: baseline; gap: 1.5rem; padding: .6vh 0; }
.prow:nth-child(even) { justify-content: flex-end; }
.prow__n { font-family: var(--f-mono); font-size: .8rem; color: var(--signal); }
.prow__t { position: relative; display: inline-block; font-size: clamp(2.2rem, 7.2vw, 7.2rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; font-variation-settings: "wdth" 78; text-shadow: 0 0 40px rgba(4,5,4,.7); }
.prow__t b { font-weight: inherit; transition: opacity .3s; }
.strike { position: absolute; left: -1.5%; right: -1.5%; top: 54%; height: clamp(4px, .45vw, 7px); background: var(--signal); transform-origin: left; border-radius: 99px; }
.pain__end { margin-top: 3vh; font-size: clamp(2rem, 5vw, 5rem); font-weight: 700; letter-spacing: -.03em; }
.pain__end em { color: var(--signal); }
html.motion .strike { transform: scaleX(0); }
html.motion .pain__end { opacity: 0; }
html:not(.motion) .prow__t b { opacity: .4; }

/* ---------- 003 manifesto (pinned; verbs light up, glyphs draw on scroll) ---------- */
.manifesto { min-height: 100vh; display: flex; align-items: center; padding: 6rem var(--pad); }
.manifesto__inner { width: 100%; }
.mrow { display: flex; align-items: center; justify-content: space-between; gap: 2rem; border-top: 1px solid var(--line); padding: 1.2vh 0; }
.mrow:last-of-type { border-bottom: 1px solid var(--line); }
.mrow__w { font-size: clamp(3.4rem, 12vw, 12rem); line-height: .95; font-weight: 800; letter-spacing: -.035em; text-transform: uppercase; font-variation-settings: "wdth" 75; text-shadow: 0 0 40px rgba(4,5,4,.7); }
.mrow__w i { font-style: normal; color: var(--signal); }
.glyph { flex: none; width: clamp(64px, 12vw, 150px); height: auto; overflow: visible; }
.glyph * { fill: none; stroke: var(--signal); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.glyph .fill { fill: var(--signal); stroke: none; }
.manifesto__end { margin-top: 2.5vh; font-size: clamp(2rem, 5vw, 5rem); font-weight: 700; letter-spacing: -.03em; }
.manifesto__end em { color: var(--signal); }
html.motion .mrow { opacity: .14; }
html.motion .manifesto__end { opacity: 0; }

/* ---------- marquee ---------- */
.marquee { padding: 6vh 0; overflow: hidden; }
.marquee__row { white-space: nowrap; font-size: clamp(5rem, 14vw, 15rem); line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: -.03em; font-variation-settings: "wdth" 75; will-change: transform; }
.marquee__row--outline { color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.marquee__row span { display: inline-block; padding-right: 3vw; }

/* ---------- 003 services (horizontal pinned scroll, animated scenes) ---------- */
.services { padding: 0; }
.hscroll { position: relative; overflow: hidden; }
.hscroll__label { position: absolute; top: 5.5rem; left: var(--pad); z-index: 3; margin: 0; }
.hscroll__track { display: flex; width: max-content; }
.panel { position: relative; flex: 0 0 100vw; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 7rem var(--pad) 4rem; overflow: hidden; }
.panel__t { position: absolute; left: 0; right: 0; bottom: 5vh; text-align: center; font-size: clamp(4rem, 17vw, 17rem); line-height: .85; font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; font-variation-settings: "wdth" 75; color: transparent; -webkit-text-stroke: 1.5px rgba(243,245,239,.38); white-space: nowrap; }
.panel .art { position: relative; z-index: 2; width: min(60vw, 80vh); height: auto; margin-bottom: 6vh; }
.panel__tags { position: absolute; left: var(--pad); bottom: 2rem; z-index: 3; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.panel__tags b { color: var(--signal); font-weight: 500; margin-right: .8rem; }
html:not(.motion) .hscroll__track { flex-direction: column; width: auto; }
html:not(.motion) .panel { flex-basis: auto; min-height: 90vh; height: auto; }
html:not(.motion) .hscroll__label { position: static; padding: 6rem var(--pad) 0; }

/* ---------- shared animated-art styling ---------- */
.art { overflow: visible; fill: none; stroke: var(--signal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art .fill { fill: var(--signal); stroke: none; }
.art .solid { fill: var(--signal); stroke: none; }
.art .line2 { fill: var(--ink); stroke: none; }
.art .ring { stroke-width: 2; opacity: .5; }
.art .dot { fill: var(--signal); stroke: none; }
.art .dot--bad { fill: rgba(243,245,239,.4); }
.art .cell { fill: var(--signal); stroke: none; }
.art .bar { fill: var(--signal); fill-opacity: .22; stroke: none; transform-box: fill-box; transform-origin: 50% 100%; }
.art .gate { stroke: var(--bone); stroke-width: 5; }
.art .coin { fill: var(--signal); stroke: none; }
.art .coin-t { fill: var(--ink); stroke: none; font: 800 22px var(--f-display); text-anchor: middle; }
.art .person { fill: var(--signal); stroke: none; }
.art .person--bad { fill: rgba(243,245,239,.4); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- 006 pricing (light zone) ---------- */
.pricing { background: var(--bg-light); color: var(--text-on-light); padding: 16vh var(--pad); }
.pricing .label { color: rgba(5,6,5,.55); }
.pricing__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: center; border-top: 1px solid rgba(5,6,5,.2); padding-top: 4rem; }
.price__v { font-size: clamp(5.5rem, 14vw, 14rem); line-height: .9; font-weight: 800; letter-spacing: -.05em; font-variation-settings: "wdth" 78; display: flex; align-items: flex-start; font-variant-numeric: tabular-nums; }
.price__v sup { font-size: .3em; margin: .25em .08em 0 0; font-weight: 600; color: #2f8a0c; }
.price__v small { font-size: .26em; font-weight: 600; margin: auto 0 .2em .1em; letter-spacing: 0; color: #2f8a0c; }
.price__l { margin: 1.2rem 0 2.2rem; font-family: var(--f-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(5,6,5,.7); }
.includes { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
.includes li { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.ic { display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 50%; background: var(--signal); transition: transform .5s cubic-bezier(.7,0,.2,1); }
.includes li:hover .ic { transform: rotate(-8deg) scale(1.08); }
.ic svg { width: 2.6rem; height: 2.6rem; fill: none; stroke: var(--text-on-light); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.inc__t { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.pricing .btn { display: inline-flex; }
@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; gap: 3rem; } .includes { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 005 system (pinned) ---------- */
.system { min-height: 100vh; }
.system__pin { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; padding: 8rem var(--pad); }
.system__left h2 em { color: var(--signal); }
.system__left h2 { text-shadow: 0 0 50px rgba(4,5,4,.7); }
.system__num { margin-top: 3rem; font-size: clamp(5rem, 12vw, 12rem); line-height: .9; font-weight: 800; letter-spacing: -.05em; font-variation-settings: "wdth" 75; color: transparent; -webkit-text-stroke: 1.5px var(--bone); }
.system__num i { font-style: normal; font-size: .3em; letter-spacing: 0; -webkit-text-stroke: 0; color: var(--muted); font-family: var(--f-mono); }
.system__bar { margin-top: 1.5rem; width: min(24rem, 100%); height: 1px; background: var(--line); }
.system__bar i { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(.33); }
.step h3 { font-size: clamp(2.4rem, 5vw, 5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-bottom: 1rem; text-transform: uppercase; font-variation-settings: "wdth" 78; }
.step .art { width: min(100%, 34rem); height: auto; }
/* motion mode: steps stack in the same cell and cross-fade */
html.motion .system__steps { position: relative; min-height: 26rem; }
html.motion .step { position: absolute; inset: 0; opacity: 0; }
html.motion .step:first-child { opacity: 1; }
html:not(.motion) .step { margin-bottom: 4rem; }
@media (max-width: 900px) { .system__pin { grid-template-columns: 1fr; gap: 2rem; align-content: center; } html.motion .system__steps { min-height: 21rem; } .system__num { margin-top: 1.5rem; } }

/* ---------- 006 cta (accent zone) ---------- */
.cta { background: var(--bg-accent); color: var(--text-on-light); min-height: 100vh; padding: 14vh var(--pad) 2rem; display: flex; flex-direction: column; }
.cta .label { color: rgba(5,6,5,.6); }
.cta__title { font-size: clamp(3.4rem, 11vw, 11.5rem); line-height: .9; font-weight: 800; letter-spacing: -.045em; text-transform: uppercase; font-variation-settings: "wdth" 75; margin-bottom: 4rem; }
.cta__title em { text-transform: lowercase; letter-spacing: -.02em; }
.clipline { display: block; overflow: hidden; padding-bottom: .06em; }
.clipline > span { display: block; }

/* "move your cursor to clear the fog" over the closing headline */
.cta__title { position: relative; }
.fog { position: absolute; left: -2.5rem; top: -2.5rem; width: calc(100% + 5rem); height: calc(100% + 5rem); z-index: 5; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, #000 55%, transparent 100%); }
.hint { display: none; }
@media (hover: hover) { html.motion .hint { display: inline; } }
.btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 1.2rem; padding: 1.3rem 2.2rem; background: var(--ink); color: var(--bone); border-radius: 99px; font-family: var(--f-mono); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; transition: transform .4s cubic-bezier(.7,0,.2,1), gap .4s; }
.btn:hover { transform: scale(1.04); gap: 1.8rem; }
.btn i { font-style: normal; color: var(--signal); font-size: 1.2rem; }
.cta__logo { display: block; align-self: flex-start; height: clamp(56px, 9vw, 110px); width: auto; margin-top: 4rem; }
.foot { margin-top: auto; padding-top: 6rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.motion-toggle { text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-family: var(--f-mono); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.motion-toggle b { font-weight: 500; }

:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
.cta :focus-visible { outline-color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .caret, .scrollcue i { animation: none; } }
