/* ============================================================
   Superteam Italy — design tokens & global styles
   ============================================================ */
:root {
  --blue: #0C36AF;
  --blue-deep: #082684;
  --blue-soft: #E8EDFB;
  --white: #FFFFFF;
  --black: #06091A;
  --ink: #0B0F1A;
  --muted: #5B6475;
  --muted-dark: #8A93A8;
  --green: #028E45;
  --red: #D02B31;
  --line: rgba(12, 54, 175, 0.10);
  --line-dark: rgba(255, 255, 255, 0.10);
  --grid: rgba(12, 54, 175, 0.06);
  --grid-dark: rgba(255, 255, 255, 0.05);
  --radius: 24px;
  --radius-sm: 14px;
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-cursor, body.no-cursor a, body.no-cursor button { cursor: none; }
img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
.h-xxl { font-size: clamp(52px, 11.5vw, 148px); line-height: 0.92; letter-spacing: -0.045em; text-transform: uppercase; }
.h-xl  { font-size: clamp(40px, 7vw, 96px); }
.h-l   { font-size: clamp(32px, 4.6vw, 64px); }
.h-m   { font-size: clamp(24px, 2.6vw, 34px); }
p { margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
}
.dark .mono { color: var(--muted-dark); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: 0.5; }

.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; padding-block: clamp(88px, 12vw, 160px); }
.section.tight { padding-block: clamp(64px, 8vw, 110px); }
.dark { background: var(--black); color: var(--white); }
.blue { background: var(--blue); color: var(--white); }
.grid-bg::before {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent, #000 15%, #000 85%, transparent);
}
.dark.grid-bg::before, .blue.grid-bg::before {
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
}
.wrap > * { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), color .35s;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: -2px;
  background: var(--white);
  transform: translateX(-115%) skewX(-18deg);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--blue); box-shadow: 0 18px 44px -18px rgba(12,54,175,.55); }
.btn:hover::before { transform: translateX(0) skewX(-18deg); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost::before { background: var(--blue); }
.btn.ghost:hover { color: var(--white); }
.btn.on-dark { border-color: var(--white); background: var(--white); color: var(--blue); }
.btn.on-dark::before { background: var(--blue); }
.btn.on-dark:hover { color: var(--white); box-shadow: 0 18px 44px -18px rgba(0,0,0,.6); }
.btn.ghost.on-dark { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn.ghost.on-dark::before { background: var(--white); }
.btn.ghost.on-dark:hover { color: var(--blue); }
.btn.big { padding: 22px 40px; font-size: clamp(18px, 1.6vw, 22px); }

/* ---------- Header ---------- */
.header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  padding: 18px 0;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, padding .4s;
}
.header.scrolled {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 var(--line);
  padding: 12px 0;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--blue); }
.brand .word { color: var(--blue); }
.brand .word span { font-weight: 500; opacity: .7; }
.brand .wordmark { height: 30px; width: auto; }
.logo { width: 40px; height: 40px; flex: none; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a { font-weight: 500; font-size: 15px; color: var(--ink); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav .btn { padding: 12px 22px; font-size: 15px; }
.burger { display: none; width: 44px; height: 44px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--blue); align-items: center; justify-content: center; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 49; background: var(--blue); color: var(--white);
  display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: var(--gutter);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path .6s var(--ease);
}
.mobile-nav.open { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.mobile-nav a { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 10vw, 64px); letter-spacing: -0.03em; line-height: 1.05; }
.mobile-nav .mono { color: rgba(255,255,255,.6); margin-bottom: 12px; }
.mobile-cta { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 48; display: none; }
.mobile-cta .btn { width: 100%; justify-content: center; box-shadow: 0 20px 40px -14px rgba(12,54,175,.5); }

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
  .mobile-cta { display: block; }
  body { padding-bottom: 84px; }
}

/* ---------- Diagonal motif ---------- */
.diag {
  position: absolute; pointer-events: none;
  background: var(--blue);
  width: 22vw; min-width: 160px; max-width: 320px;
  height: 160%;
  top: -30%;
  transform: rotate(18deg);
  transform-origin: center;
}
.section-cut { position: relative; }
.section-cut::before {
  content: "";
  position: absolute; left: 0; right: 0; top: -1px; height: clamp(60px, 9vw, 140px);
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0);
  transform: translateY(-99%);
  z-index: 1;
}

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; background: var(--blue);
  display: grid; place-items: center;
}
.preloader .plogo { width: 110px; height: 110px; border-radius: 26px; opacity: 0; animation: pop .6s var(--ease) .1s forwards; }
.preloader .logo .l1, .preloader .logo .l2 { transform: translateY(24px); opacity: 0; animation: rise .7s var(--ease) forwards; }
.preloader .logo .l2 { animation-delay: .12s; }
.preloader .logo .flag { opacity: 0; animation: pop .4s var(--ease) .5s forwards; }
.preloader.leave { animation: wipe .8s var(--ease) .95s forwards; }
@keyframes rise { to { transform: none; opacity: 1; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wipe {
  from { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  to   { clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0); }
}

/* ---------- Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 1.5px solid var(--blue); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background .3s, border-color .3s;
  mix-blend-mode: normal;
}
.cursor .dot { width: 8px; height: 8px; border-radius: 50%; background: conic-gradient(var(--green) 0 33%, var(--white) 33% 66%, var(--red) 66% 100%); box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(12,54,175,.12); border-color: rgba(12,54,175,.5); }
.cursor.on-dark { border-color: rgba(255,255,255,.7); }
body.no-cursor .cursor { display: flex; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 88svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: 0;
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .diag { right: 8%; top: -40%; height: 190%; width: 24vw; will-change: transform; }
.hero .diag.thin { right: auto; left: -8%; top: 40%; width: 10vw; height: 120%; opacity: .12; }
.hero .wrap { padding-bottom: clamp(56px, 8vw, 110px); }
.hero-top { display: flex; justify-content: flex-end; align-items: flex-end; gap: 32px; margin-bottom: 28px; flex-wrap: wrap; }
.hero .mono.status { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.hero .mono.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(2,142,69,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(2,142,69,.5); } 70% { box-shadow: 0 0 0 12px rgba(2,142,69,0); } 100% { box-shadow: 0 0 0 0 rgba(2,142,69,0); } }
.hero h1 { color: var(--ink); max-width: 14ch; }
.hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .04em .1em; margin: -.12em -.04em -.1em; }
.hero h1 .w > span { display: inline-block; transform: translateY(110%); animation: up 1s var(--ease) forwards; }
.hero h1 .accent { color: var(--blue); }
@keyframes up { to { transform: none; } }
.hero-bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; margin-top: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.scroll-hint { position: absolute; left: var(--gutter); bottom: 24px; display: inline-flex; align-items: center; gap: 10px; color: var(--blue); animation: hint 2s infinite; }
@keyframes hint { 0%,100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(6px); opacity: .5; } }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: 120px; }
  .hero-bottom { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .hero .diag { right: -10%; width: 34vw; }
  .scroll-hint { display: none; }
}

/* ---------- Marquee ---------- */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: var(--white); padding: 9px 0; }
.marquee .track { display: flex; gap: 0; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: clamp(15px, 1.5vw, 19px); letter-spacing: -0.02em; color: var(--blue); padding-inline: 20px; white-space: nowrap; }
.marquee span::after { content: "·"; margin-left: 40px; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto p { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 4.6vw, 68px); line-height: 1.08; letter-spacing: -0.035em; max-width: 22ch; }
.manifesto p .w { color: rgba(255,255,255,.22); transition: color .3s; }
.manifesto p .w.on { color: var(--white); }
.manifesto p .w.hi.on { color: #7D9BFF; }
.manifesto .meta { display: flex; justify-content: space-between; gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.card {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  min-height: 360px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), border-color .4s;
  overflow: hidden;
}
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; box-shadow: inset 0 0 0 1.5px var(--blue), 0 30px 60px -30px rgba(12,54,175,.45); }
.card:hover::after { opacity: 1; }
.card .num { color: var(--blue); }
.card h3 { font-size: 28px; margin-top: 14px; }
.card p { color: var(--muted); margin-top: 10px; max-width: 32ch; }
.card .icon { width: 56px; height: 56px; border-radius: 16px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); }
.card .icon svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card .link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 600; font-size: 15px; }
.card .link svg { transition: transform .4s var(--ease); }
.card:hover .link svg { transform: translateX(4px); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } .card { min-height: 0; } }

/* ---------- Timeline ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: var(--line); }
.steps .line { position: absolute; left: 0; top: 22px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.step { position: relative; padding-top: 56px; }
.step .pin { position: absolute; top: 12px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); display: grid; place-items: center; }
.step .pin::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); transform: scale(0); transition: transform .4s var(--ease); }
.step.on .pin::after { transform: none; }
.step h3 { font-size: 26px; margin-top: 8px; }
.step p { color: var(--muted); margin-top: 10px; max-width: 30ch; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .steps::before, .steps .line { display: none; }
  .step { padding-top: 0; padding-left: 44px; }
  .step .pin { top: 6px; }
}

/* ---------- Earn ---------- */
.earn .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.earn h2 { color: var(--white); }
.earn .lede { color: rgba(255,255,255,.72); }
.earn .stack { position: relative; height: 420px; overflow: hidden; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.earn .stack .col { position: absolute; left: 24px; right: 24px; top: 0; display: flex; flex-direction: column; gap: 16px; animation: rollup 18s linear infinite; }
@keyframes rollup { to { transform: translateY(-50%); } }
.bounty {
  background: var(--white); color: var(--ink); border-radius: 18px; padding: 18px 20px;
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.5);
}
.bounty .av { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); display: grid; place-items: center; color: var(--blue); font-family: var(--font-mono); font-size: 12px; font-weight: 700; }
.bounty .t { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bounty .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.bounty .r { text-align: right; }
.bounty .r b { display: block; font-family: var(--font-mono); font-size: 14px; color: var(--blue); }
.bounty .r small { color: var(--muted); font-size: 11px; }
.bounty .tag { display: inline-block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); margin-left: 6px; }
.bounty .tag.g { background: rgba(2,142,69,.12); color: var(--green); }
@media (max-width: 900px) { .earn .wrap { grid-template-columns: 1fr; } .earn .stack { height: 340px; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; margin-top: 56px; }
.slot {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg, rgba(12,54,175,.05) 0 14px, transparent 14px 34px),
    var(--white);
  background-size: 200% 200%, auto;
  display: flex; align-items: flex-end; padding: 20px;
  transition: border-color .4s, transform .5s var(--ease);
}
.slot:hover { border-color: var(--blue); transform: translateY(-3px); }
.slot .mono { color: var(--blue); }
.slot .mono::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 8px; vertical-align: 2px; animation: pulse-b 1.6s infinite; }
@keyframes pulse-b { 50% { opacity: .2; } }
.slot.wide { grid-column: span 2; }
.slot.tall { grid-row: span 2; }
.slot .hint { position: absolute; top: 20px; left: 20px; right: 20px; color: var(--muted-dark); font-size: 13px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .slot.tall { grid-row: span 1; } }

/* ---------- Network map ---------- */
.network { overflow: hidden; }
.network .wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
.network svg { width: 100%; height: auto; }
.network .node { fill: rgba(255,255,255,.14); }
.network .node.on { fill: var(--white); }
.network .node.italy { fill: #7D9BFF; }
.network .node.italy.on { fill: var(--white); filter: drop-shadow(0 0 12px #7D9BFF); }
.network .edge { stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-dasharray: 600; stroke-dashoffset: 600; }
.network .edge.on { animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.network .lbl { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; fill: rgba(255,255,255,.5); text-transform: uppercase; }
.network .lbl.italy { fill: var(--white); font-size: 11px; font-weight: 700; }
.network .countries { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.network .countries span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line-dark); border-radius: 999px; color: rgba(255,255,255,.7); }
.network .countries span.it { border-color: var(--white); color: var(--white); }
.network .countries span.it::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: conic-gradient(var(--green) 0 33%, var(--white) 33% 66%, var(--red) 66% 100%); }
@media (max-width: 900px) { .network .wrap { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final { text-align: left; overflow: hidden; }
.final h2 { position: relative; display: inline-block; color: var(--white); }
.final h2 .fill { position: absolute; inset: 0; color: transparent; -webkit-text-stroke: 0; }
.final .diag { right: -6%; opacity: 0; transform: rotate(18deg) translateX(40%); transition: opacity .6s, transform .9s var(--ease); }
.final:hover .diag { opacity: 1; transform: rotate(18deg) translateX(0); }
.final .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.final .row .mono { color: rgba(255,255,255,.55); max-width: 36ch; letter-spacing: .06em; text-transform: none; font-size: 13px; line-height: 1.6; }

/* ---------- Footer ---------- */
.footer { background: var(--blue); color: var(--white); padding-block: 72px 40px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.footer .biglogo { width: 120px; height: 120px; border-radius: 28px; }
.footer h4 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.footer ul a:hover { text-decoration: underline; text-underline-offset: 6px; }
.footer .tag { margin-top: 20px; color: rgba(255,255,255,.75); max-width: 34ch; }
.footer .bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,.6); }
@media (max-width: 900px) { .footer .top { grid-template-columns: 1fr; } }

/* ---------- Reveal (GSAP driven; visible at rest) ---------- */
.rv { will-change: transform, opacity; }

/* ---------- Secondary pages ---------- */
.page-head { padding-top: 160px; padding-bottom: 48px; position: relative; overflow: hidden; }
.page-head .diag { right: -4%; opacity: .9; }
.page-head h1 { max-width: 12ch; }
.page-head .lede { margin-top: 20px; }
.guides { display: grid; gap: 64px; }
.guide-group h2 { font-size: clamp(28px, 3vw, 40px); }
.guide-group .mono { display: block; margin-bottom: 12px; color: var(--blue); }
.guide-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.guide { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.guide summary { list-style: none; cursor: pointer; padding: 24px; display: grid; gap: 10px; }
.guide summary::-webkit-details-marker { display: none; }
.guide summary h3 { font-size: 21px; }
.guide summary .mono { color: var(--muted-dark); }
.guide summary .mono b { color: var(--blue); font-weight: 500; }
.guide[open] summary { border-bottom: 1px solid var(--line); }
.guide .body { padding: 20px 24px 28px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.guide .body p + p, .guide .body ol, .guide .body ul { margin-top: 10px; }
.guide .body ol, .guide .body ul { padding-left: 20px; }
.guide .body strong { color: var(--ink); }
.guide .body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.guide .body code { font-family: var(--font-mono); font-size: 13px; background: var(--blue-soft); color: var(--blue); padding: 2px 6px; border-radius: 6px; }
.guide .body pre { background: var(--black); color: #E5EAFF; padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-family: var(--font-mono); font-size: 13px; margin-top: 10px; }
.guide .body pre code { background: none; color: inherit; padding: 0; }
@media (max-width: 900px) { .guide-list { grid-template-columns: 1fr; } }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; }
.filters button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 9px 16px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: all .3s; cursor: pointer; }
.filters button:hover, .filters button.on { background: var(--blue); border-color: var(--blue); color: var(--white); }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.project { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); padding: 24px; min-height: 200px; display: flex; flex-direction: column; gap: 14px; transition: border-color .3s, transform .5s var(--ease); }
.project:hover { border-color: var(--blue); transform: translateY(-3px); }
.project .head { display: flex; align-items: center; gap: 12px; }
.project .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.project h3 { font-size: 20px; }
.project p { color: var(--muted); font-size: 15px; flex: 1; }
.project .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.project .foot a { color: var(--blue); font-weight: 600; font-size: 14px; }
.project.soon { background: repeating-linear-gradient(-45deg, rgba(12,54,175,.05) 0 14px, transparent 14px 34px), var(--white); }
.project.soon .mark { background: var(--white); border: 1px dashed var(--blue); }
.empty { margin-top: 32px; color: var(--muted); }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .preloader { display: none; }
  .hero h1 .w > span { transform: none; }
  .manifesto p .w { color: var(--white); }
  .steps .line { transform: none; }
  .network .node { fill: var(--white); }
  .network .edge { stroke-dashoffset: 0; }
}

/* ---------- Hero legibility over the diagonal ---------- */
.hero .btn:not(.ghost) { box-shadow: 0 0 0 3px var(--white); }
.hero .btn.ghost { background: rgba(255,255,255,.92); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero .btn.ghost:hover { background: var(--blue); }
.hero .lede { background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.9)); box-decoration-break: clone; -webkit-box-decoration-break: clone; display: inline; padding: 2px 0; }
@media (max-width: 900px) { .hero .diag { right: -26%; width: 30vw; } }

/* ---------- Token ---------- */
.token .token-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.token h2 { color: var(--white); }
.token .ca { display: grid; gap: 14px; padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid var(--line-dark); }
.token .ca code { font-family: var(--font-mono); font-size: clamp(13px, 1.3vw, 17px); color: var(--white); word-break: break-all; line-height: 1.5; user-select: all; }
.token .ca .btn { justify-self: start; }
@media (max-width: 900px) { .token .token-grid { grid-template-columns: 1fr; } }
