/* flowKreator landing. Layout: warm-charcoal studio, one accent (Klein blue), bone type.
   Hero is asymmetric: headline left, a floating creator-page composition overlapping bottom right. */
:root {
  --ink: #141318;
  --ink-2: #1b1a21;
  --ink-3: #26252e;
  --line: rgba(238, 234, 226, 0.1);
  --bone: #eeeae2;
  --bone-2: #b3aea6;
  --bone-3: #7b776f;
  --klein: #2541ff;
  --klein-deep: #1a2ed6;
  --klein-glow: rgba(37, 65, 255, 0.35);
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 4vw, 64px);
  --section: clamp(104px, 14vw, 220px);
  --radius: 22px;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { width: 100%; max-width: 100%; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--klein); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); position: relative; }
.kicker {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--klein); }
.h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1; max-width: 18ch; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--bone-2); max-width: 56ch; line-height: 1.55; }

/* Grain and ambient */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: 0.035;
  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='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.9'/></svg>");
}

/* Cursor */
.cursor {
  position: fixed; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--klein); pointer-events: none; z-index: 70; box-shadow: 0 0 0 1px rgba(238, 234, 226, 0.5);
  transform: translate(-50%, -50%); transition: width 0.35s var(--ease), height 0.35s var(--ease), background 0.3s;
}
.cursor.is-hover { width: 56px; height: 56px; background: rgba(37, 65, 255, 0.18); }
.cursor.is-hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Preloader */
.loader {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); display: grid; place-items: center;
}
.loader svg { width: 96px; height: 96px; }
.loader .draw { fill: none; stroke: var(--klein); stroke-width: 1.4; stroke-dasharray: 400; stroke-dashoffset: 400; }
.loader .fill { fill: var(--klein); opacity: 0; }
.loader__count {
  position: absolute; bottom: 40px; right: var(--gutter); font-family: var(--display);
  font-size: 13px; letter-spacing: 0.12em; color: var(--bone-3); font-variant-numeric: tabular-nums;
}

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: calc(18px + env(safe-area-inset-top, 0px)) var(--gutter) 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  transition: padding 0.5s var(--ease);
}
.nav.is-scrolled { padding-top: calc(10px + env(safe-area-inset-top, 0px)); padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 28px; height: 28px; }
.brand b { font-weight: 800; color: var(--klein); }
.nav__pill {
  display: flex; gap: 2px; padding: 6px;
  background: rgba(27, 26, 33, 0.72); border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.nav__pill a { padding: 9px 16px; border-radius: 999px; font-size: 14px; color: var(--bone-2); transition: color 0.3s, background 0.3s; }
.nav__pill a:hover { color: var(--bone); background: rgba(238, 234, 226, 0.06); }
.nav__right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.nav__right .login { font-size: 14px; color: var(--bone-2); }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  position: relative; overflow: hidden; isolation: isolate; transition: transform 0.4s var(--ease);
  white-space: nowrap;
}
.btn--klein { background: var(--klein); color: #fff; }
.btn--klein::after { content: ""; position: absolute; inset: 0; background: var(--klein-deep); transform: translateY(101%); transition: transform 0.5s var(--ease); z-index: -1; border-radius: inherit; }
.btn--klein:hover::after { transform: translateY(0); }
.btn--ghost { color: var(--bone); border: 1px solid rgba(238, 234, 226, 0.22); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--bone { background: var(--bone); color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn .arrow { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav__pill { display: none; }
  .nav__right .login { display: none; }
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding-top: 140px; padding-bottom: clamp(48px, 7vw, 110px); overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__wash { position: absolute; inset: 0; background:
  radial-gradient(60% 55% at 20% 60%, rgba(20, 19, 24, 0.85), rgba(20, 19, 24, 0) 70%),
  linear-gradient(180deg, rgba(20, 19, 24, 0.55) 0%, rgba(20, 19, 24, 0) 30%, rgba(20, 19, 24, 0.2) 70%, var(--ink) 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; width: 100%; }
.hero__copy { max-width: 1100px; }
.hero__title {
  font-size: clamp(2.9rem, 6.4vw, 6.3rem); line-height: 0.98; font-weight: 600; letter-spacing: -0.04em;
  max-width: 1100px;
}
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero__title .w > span { display: inline-block; will-change: transform; }
.is-loading .hero__title, .is-loading .hero__lead, .is-loading .hero__cta, .is-loading .stage { visibility: hidden; }
.hero__title em { color: var(--bone); font-size: 1.08em; }
.pill {
  display: inline-block; width: 1.7em; height: 0.72em; border-radius: 999px; vertical-align: -0.06em; margin: 0 0.08em;
  background: linear-gradient(100deg, var(--klein) 0%, #6f85ff 45%, var(--bone) 100%);
  background-size: 200% 100%; animation: pillflow 4s ease-in-out infinite alternate; position: relative; overflow: hidden;
}
.pill svg { position: absolute; inset: 0; margin: auto; height: 62%; width: auto; fill: #fff; opacity: 0.95; }
@keyframes pillflow { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.hero__lead { margin-top: 28px; max-width: 54ch; font-size: clamp(1.05rem, 1.35vw, 1.28rem); color: var(--bone-2); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.stage { position: relative; height: clamp(360px, 42vw, 560px); perspective: 1200px; }
.card {
  position: absolute; background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); color: var(--bone);
}
.card__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--bone-3); display: flex; justify-content: space-between; align-items: center; }
.card__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--klein); box-shadow: 0 0 0 4px var(--klein-glow); display: inline-block; }
.card--video { width: 58%; left: 2%; top: 4%; z-index: 3; }
.video {
  margin-top: 12px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; position: relative;
  background: #0f1660;
}
.video::before {
  content: ""; position: absolute; inset: -30%;
  background: conic-gradient(from 210deg at 50% 50%, #0f1660, #2541ff 25%, #0b0c22 55%, #4b63ff 80%, #0f1660);
  filter: blur(18px); animation: spin 22s linear infinite; will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }
.video::after { content: ""; position: absolute; inset: 0; background: rgba(20, 19, 24, 0.28); }
.video__lock, .video__bar { z-index: 1; }
.video__lock {
  position: absolute; inset: 0; display: grid; place-items: center; gap: 6px; text-align: center;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.video__lock svg { width: 26px; height: 26px; }
.video__lock small { display: block; font-family: var(--body); font-size: 12px; color: var(--bone-2); letter-spacing: 0; }
.video__bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 3px; background: rgba(238, 234, 226, 0.2); border-radius: 2px; }
.video__bar::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--bone); border-radius: 2px; animation: scrub 6s var(--ease) infinite alternate; }
@keyframes scrub { to { width: 72%; } }
.card__row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; }
.card__row strong { font-family: var(--display); font-weight: 600; }

.card--merch { width: 42%; right: 0; top: 10%; z-index: 4; }
.tee { margin-top: 12px; aspect-ratio: 1; border-radius: 12px; background: #0f0f14; display: grid; place-items: center; overflow: hidden; }
.tee svg { width: 70%; transition: transform 0.8s var(--ease); }
.card--merch:hover .tee svg { transform: scale(1.06) rotate(-3deg); }

.card--rate { width: 46%; left: 8%; bottom: 0; z-index: 5; }
.rate { margin-top: 10px; display: grid; gap: 8px; }
.rate div { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rate div:last-child { border-bottom: 0; }
.rate span:last-child { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 999px; font-size: 11px; background: rgba(37, 65, 255, 0.16); color: #9eadff; letter-spacing: 0.04em; }

.card--payout { width: 40%; right: 4%; bottom: 0; z-index: 6; background: var(--klein); border-color: transparent; color: #fff; }
.card--payout .card__label { color: rgba(255, 255, 255, 0.7); }
.card--payout .card__label i { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.payout__amt { font-family: var(--display); font-size: clamp(1.4rem, 2.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.spark { margin-top: 8px; width: 100%; height: 36px; }
.spark path { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; }
.spark .area { fill: rgba(255, 255, 255, 0.14); stroke: none; }

@media (max-width: 1000px) {
  .hero { align-items: flex-start; padding-top: 120px; }
  .hero__grid { grid-template-columns: 1fr; }
  .stage { height: clamp(380px, 110vw, 520px); margin-top: 24px; }
  .card--video { width: 64%; }
  .card--merch { width: 40%; }
  .card--rate { width: 54%; }
  .card--payout { width: 44%; }
}
@media (max-width: 520px) {
  .card { padding: 12px; border-radius: 14px; }
  .card--video { width: 68%; top: 0; }
  .card--merch { width: 44%; top: 30%; }
  .card--rate { width: 58%; bottom: 2%; left: 0; }
  .card--payout { width: 46%; bottom: 14%; right: 0; }
  .rate div { font-size: 12px; }
}

/* Marquee */
.marquee { border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; white-space: nowrap; background: var(--ink); }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 28px; padding-inline: 14px; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: -0.02em; color: var(--bone-2); }
.marquee__item svg { width: 18px; height: 18px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Pillars bento */
.pillars__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 72px); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(310px, auto); grid-auto-flow: dense; gap: 14px; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; transform-origin: center; }
.tile h3 { font-size: clamp(1.3rem, 1.8vw, 1.7rem); line-height: 1.05; margin-bottom: 8px; position: relative; }
.tile p { color: var(--bone-2); font-size: 15px; max-width: 42ch; position: relative; }
.tile--a { grid-column: span 2; grid-row: span 2; }
.tile--b { grid-column: span 2; }
.tile--c, .tile--d { grid-column: span 1; }
.tile__art { position: absolute; inset: 0; pointer-events: none; transition: transform 1s var(--ease); }
.tile:hover .tile__art { transform: scale(1.04); }
.tile__fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 26, 33, 0) 35%, rgba(27, 26, 33, 0.95) 80%); pointer-events: none; }

.tile--a .tile__art { background: radial-gradient(120% 90% at 80% 10%, #3b55ff 0%, #1a2ed6 30%, #0d0f2a 70%, #141318 100%); }
.film { position: absolute; left: 7%; right: 7%; top: 10%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(238, 234, 226, 0.18); background: rgba(20, 19, 24, 0.55); }
.film__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 3px; padding: 14% 8% 10%; }
.film__bars i { flex: 1; background: linear-gradient(180deg, #9eadff, var(--klein)); border-radius: 3px 3px 0 0; height: var(--h); opacity: 0.7; animation: eq 2.4s ease-in-out infinite alternate; animation-delay: var(--d); }
@keyframes eq { to { height: calc(var(--h) * 0.4); } }
.film__ui { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--bone); font-variant-numeric: tabular-nums; }
.film__ui .play { width: 24px; height: 24px; border-radius: 50%; background: var(--bone); display: grid; place-items: center; }
.film__ui .play svg { width: 9px; height: 9px; }
.film__ui .line { flex: 1; height: 2px; background: rgba(238, 234, 226, 0.25); position: relative; }
.film__ui .line::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 45%; background: var(--bone); }
.film__chip { position: absolute; top: 12px; left: 12px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(238, 234, 226, 0.14); }

.tile--b .tile__art { background: linear-gradient(135deg, #1b1a21, #221f2d); }
.shelf { position: absolute; top: 24px; left: 24px; right: 24px; height: 42%; display: flex; gap: 12px; }
.shelf div { height: 100%; aspect-ratio: 1; flex: none; border-radius: 12px; display: grid; place-items: center; transition: transform 0.7s var(--ease); }
.shelf div:nth-child(1) { background: #0f0f14; }
.shelf div:nth-child(2) { background: var(--klein); }
.shelf div:nth-child(3) { background: var(--bone); }
.shelf div svg { width: 58%; }
.tile--b:hover .shelf div:nth-child(1) { transform: translateY(-8px); }
.tile--b:hover .shelf div:nth-child(2) { transform: translateY(-16px); transition-delay: 0.05s; }
.tile--b:hover .shelf div:nth-child(3) { transform: translateY(-8px); transition-delay: 0.1s; }

.tile--c .tile__art { background: linear-gradient(160deg, #1b1a21, #1b1d33); }
.rates { position: absolute; top: 22px; left: 22px; right: 22px; display: grid; gap: 6px; }
.rates div { display: flex; justify-content: space-between; font-size: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(238, 234, 226, 0.05); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.rates div:nth-child(2) { background: rgba(37, 65, 255, 0.22); border-color: rgba(37, 65, 255, 0.45); }

.tile--d .tile__art { background: linear-gradient(160deg, #1b1a21, #211a2a); }
.mosaic { position: absolute; top: 22px; left: 22px; right: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mosaic i { aspect-ratio: 2 / 1; border-radius: 8px; display: block; background: var(--c); transition: transform 0.6s var(--ease); }
.tile--d:hover .mosaic i { transform: scale(0.95); }

@media (max-width: 900px) {
  .pillars__head { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(280px, auto); }
  .tile--a { grid-column: span 2; grid-row: span 2; }
  .tile--b { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: span 1; grid-row: span 1; min-height: 300px; }
  .tile--a { min-height: 380px; }
}

/* Doors (horizontal accordion) */
.doors { display: flex; gap: 10px; height: clamp(420px, 56vh, 620px); margin-top: clamp(40px, 5vw, 72px); }
.door {
  flex: 1; min-width: 0; position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--ink-2); border: 1px solid var(--line); transition: flex 0.9s var(--ease);
}
.door.is-open { flex: 3.2; }
.door__bg { position: absolute; inset: 0; background: var(--bg); opacity: 0.9; transition: transform 1.2s var(--ease); }
.door.is-open .door__bg { transform: scale(1.04); }
.door__vert {
  position: absolute; left: 22px; bottom: 22px; writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap;
  transition: opacity 0.4s;
}
.door.is-open .door__vert { opacity: 0; }
.door__num { position: absolute; top: 22px; left: 22px; font-size: 12px; letter-spacing: 0.14em; color: var(--bone-2); font-variant-numeric: tabular-nums; }
.door__body {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; opacity: 0; transform: translateY(16px);
  transition: opacity 0.6s 0.25s, transform 0.8s 0.25s var(--ease);
  background: linear-gradient(180deg, rgba(20, 19, 24, 0), rgba(20, 19, 24, 0.85));
}
.door.is-open .door__body { opacity: 1; transform: translateY(0); }
.door__body h3 { font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1; margin-bottom: 10px; }
.door__body p { color: var(--bone-2); max-width: 46ch; font-size: 15px; }
.door__body .btn { margin-top: 18px; }
.door--merch .door__bg { --bg: radial-gradient(80% 60% at 70% 20%, #2e2a3f, #141318 70%); }
.door--members .door__bg { --bg: radial-gradient(90% 70% at 30% 30%, #2541ff, #0d0f2a 65%, #141318); }
.door--sponsors .door__bg { --bg: radial-gradient(80% 60% at 60% 80%, #26253a, #141318 70%); }
.door--portfolio .door__bg { --bg: linear-gradient(200deg, #eeeae2 0%, #c9c4bb 40%, #1b1a21 40.5%, #141318 100%); }
.door__sketch { position: absolute; inset: 0; pointer-events: none; opacity: 0.9; }
.door__sketch svg { width: 100%; height: 100%; }
@media (max-width: 760px) {
  .doors { flex-direction: column; height: auto; }
  .door { min-height: 110px; transition: min-height 0.7s var(--ease); }
  .door.is-open { min-height: 380px; }
  .door__vert { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: 20px; }
}

/* Stack (process) */
.stack { position: relative; }
.stack__head { position: sticky; top: 90px; }
.stack__cards { display: grid; gap: 18px; }
.step {
  position: sticky; top: 140px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2);
  padding: clamp(24px, 3vw, 40px); min-height: 320px; display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 48px); align-items: start;
  transform-origin: top center; box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}
.step:nth-child(2) { top: 160px; background: #1e1d25; }
.step:nth-child(3) { top: 180px; background: #212029; }
.step:nth-child(4) { top: 200px; background: var(--klein); border-color: transparent; color: #fff; }
.step__n { font-family: var(--display); font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; opacity: 0.35; font-variant-numeric: tabular-nums; }
.step h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; margin-bottom: 12px; }
.step p { color: var(--bone-2); max-width: 52ch; }
.step:nth-child(4) p { color: rgba(255, 255, 255, 0.78); }
.step__aside { font-family: var(--display); font-size: 14px; letter-spacing: 0.02em; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.step:nth-child(4) .step__aside { border-color: rgba(255, 255, 255, 0.4); }
.stack__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 96px); align-items: start; }
@media (max-width: 900px) {
  .stack__grid { grid-template-columns: 1fr; }
  .stack__head { position: static; }
  .step { grid-template-columns: auto 1fr; min-height: 260px; }
  .step__aside { grid-column: 2; justify-self: start; }
}

/* Manifesto scrub */
.manifesto { padding-block: var(--section); }
.manifesto p { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 3.6rem); line-height: 1.12; letter-spacing: -0.03em; font-weight: 500; max-width: 1200px; }
.manifesto .wd { opacity: 0.12; display: inline-block; margin-right: 0.26em; transition: none; }
.manifesto em { color: #9eadff; }

/* Showcase carousel */
.show__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.show__ctrl { display: flex; gap: 10px; }
.show__ctrl button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(238, 234, 226, 0.22); display: grid; place-items: center; transition: background 0.3s, border-color 0.3s; }
.show__ctrl button:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.show__ctrl svg { width: 18px; height: 18px; }
.show__viewport { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.show__track { display: flex; gap: 18px; will-change: transform; }
.page {
  flex: 0 0 clamp(280px, 30vw, 420px); aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--ink-2); border: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.page__hero { height: 36%; border-radius: 14px; background: var(--c); position: relative; overflow: hidden; }
.page__hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(20, 19, 24, 0) 0 14px, rgba(20, 19, 24, 0.16) 14px 16px); }
.page__id { display: flex; align-items: center; gap: 12px; }
.page__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c); border: 2px solid var(--ink-2); box-shadow: 0 0 0 1px var(--line); }
.page__id strong { font-family: var(--display); font-size: 17px; display: block; letter-spacing: -0.02em; }
.page__id span { font-size: 12px; color: var(--bone-3); }
.page__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.page__tiles div { padding: 12px; border-radius: 10px; background: rgba(238, 234, 226, 0.05); border: 1px solid var(--line); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.page__tiles div b { font-family: var(--display); font-size: 15px; font-weight: 600; }
.page__tiles div:nth-child(1) { background: rgba(37, 65, 255, 0.2); border-color: rgba(37, 65, 255, 0.4); }
.page__kind { position: absolute; top: 22px; left: 22px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(20, 19, 24, 0.7); }

/* Fees */
.fees { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: clamp(40px, 5vw, 72px); }
.fee { padding: 28px 24px; border-right: 1px solid var(--line); min-width: 0; }
.fee:last-child { border-right: 0; background: var(--klein); color: #fff; }
.fee span { font-size: 13px; color: var(--bone-3); display: block; }
.fee:last-child span { color: rgba(255, 255, 255, 0.75); }
.fee strong { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 1; margin-top: 10px; font-variant-numeric: tabular-nums; }
.fee small { display: block; margin-top: 8px; font-size: 12px; color: var(--bone-3); }
.fee:last-child small { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 760px) {
  .fees { grid-template-columns: 1fr 1fr; }
  .fee:nth-child(2) { border-right: 0; }
  .fee:nth-child(1), .fee:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* Final CTA */
.cta { position: relative; overflow: hidden; padding-block: var(--section); }
.cta__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
.cta__wash { position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 60%, rgba(20, 19, 24, 0.2), rgba(20, 19, 24, 0.92) 75%); }
.cta__inner { position: relative; text-align: center; display: grid; justify-items: center; gap: 28px; }
.cta__title { font-size: clamp(3.4rem, 12vw, 12rem); line-height: 1.02; letter-spacing: -0.05em; font-weight: 700; padding-inline: 0.04em; }
.cta__title .ch { display: inline-block; transition: transform 0.5s var(--ease), color 0.3s; will-change: transform; }
.cta__title .ch:hover { transform: translateY(-0.08em) skewX(-6deg); color: var(--klein); }
.cta__form { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid rgba(238, 234, 226, 0.22); background: rgba(27, 26, 33, 0.92); width: min(100%, 560px); }
.cta__form input { flex: 1; min-width: 0; background: none; border: 0; padding: 12px 18px; color: var(--bone); font: inherit; outline: none; }
.cta__form input::placeholder { color: var(--bone-3); }
.cta__note { font-size: 14px; color: var(--bone-3); }
.cta__note b { color: var(--bone-2); font-weight: 500; }
@media (max-width: 520px) {
  .cta__form { flex-direction: column; border-radius: 24px; }
  .cta__form .btn { justify-content: center; }
}

/* Footer: the page lifts away like a curtain and uncovers a full-screen footer */
main { position: relative; z-index: 2; background: var(--ink); border-radius: 0 0 36px 36px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5); }
.footer { position: sticky; bottom: 0; z-index: 1; min-height: 100svh; background: #0f0e12; color: var(--bone); overflow: hidden; display: flex; }
.footer__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(16px, 3.5vh, 64px); padding-block: clamp(84px, 11vh, 128px) calc(16px + env(safe-area-inset-bottom, 0px)); width: 100%; }
.footer__currents { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footer__currents path { fill: none; stroke: var(--klein); stroke-width: 1.2; stroke-opacity: 0.32; stroke-dasharray: 14 22; animation: current 24s linear infinite; }
.footer__currents path:nth-child(2) { animation-duration: 32s; stroke-opacity: 0.22; }
.footer__currents path:nth-child(3) { animation-duration: 40s; stroke-opacity: 0.16; }
@keyframes current { to { stroke-dashoffset: -720; } }

.footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.footer__status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; color: var(--bone-2); }
.footer__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--klein); box-shadow: 0 0 0 0 var(--klein-glow); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--klein-glow); } 100% { box-shadow: 0 0 0 12px rgba(37, 65, 255, 0); } }
.footer__clock { font-variant-numeric: tabular-nums; color: var(--bone-3); padding-left: 12px; border-left: 1px solid var(--line); }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer h4 { margin: 0 0 14px; font-family: var(--body); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bone-3); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; justify-items: start; }
.fl { position: relative; display: inline-block; overflow: hidden; line-height: 1.5; font-size: 16px; color: var(--bone); padding-block: 1px; }
.fl span { display: block; transition: transform 0.6s var(--ease); }
.fl::after { content: attr(data-text); position: absolute; top: 100%; left: 0; color: #9eadff; transition: transform 0.6s var(--ease); }
.fl:hover span, .fl:focus-visible span, .fl:hover::after, .fl:focus-visible::after { transform: translateY(-100%); }
.fl:focus-visible { outline-offset: 2px; }

.footer__mid { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.footer__tag { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vh, 2.2rem); color: var(--bone-2); }
.footer__top-btn { width: clamp(48px, 7vh, 64px); height: clamp(48px, 7vh, 64px); border-radius: 50%; border: 1px solid rgba(238, 234, 226, 0.22); display: grid; place-items: center; color: var(--bone); flex: none; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.footer__top-btn svg { width: 26px; height: 26px; transform: rotate(-90deg); transition: transform 0.7s var(--ease); }
.footer__top-btn:hover { background: var(--klein); border-color: var(--klein); color: #fff; }
.footer__top-btn:hover svg { transform: rotate(-90deg) translateX(4px) scale(1.1); }

.footer__wordmark { overflow: hidden; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.footer__wordmark { display: flex; justify-content: center; }
.wordmark { font-family: var(--display); font-weight: 500; letter-spacing: -0.05em; line-height: 0.82; white-space: nowrap; display: inline-flex; align-items: baseline; width: max-content; padding-top: 0.08em; font-variation-settings: "opsz" 96; }
.wordmark .l { display: inline-block; flex: none; font-variation-settings: "wght" var(--w, 500), "opsz" 96; will-change: font-variation-settings; }
.wordmark .l--mark { align-self: end; height: 0.74em; width: 0.62em; margin: 0 0.01em 0 0.03em; transform: translateY(0.015em); }
.wordmark .l--mark svg { width: 100%; height: 100%; display: block; }

.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--bone-3); border-top: 1px solid var(--line); padding-top: 18px; }
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { transition: color 0.3s; }
.footer__legal a:hover { color: var(--bone); }
@media (max-width: 900px) {
  main { border-radius: 0 0 24px 24px; }
  .footer { position: static; min-height: 0; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .manifesto .wd { opacity: 1; }
  .cursor, .grain { display: none; }
}
