/* Mermer site (5 Dec 2026). Doc pages, warm palette: #17130F, #FDF6F1, #B5ABA4, #3A322D. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #17130F; --ink: #FDF6F1; --mute: #B5ABA4; --line: #3A322D;
  --pad: clamp(24px, 6vw, 96px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }

.top { position: absolute; z-index: 5; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: center; padding: 28px var(--pad); }
.top .logo img { display: block; width: 136px; height: auto; }
.top nav { display: flex; gap: 24px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--mute); }
.top nav a:hover { color: var(--ink); }

.inner { max-width: 1248px; margin: 0 auto; padding: 0 var(--pad); }
.label { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute); display: flex; align-items: center; gap: 12px; }
.label::before { content: ""; width: 8px; height: 10px; border-radius: 50%; background: var(--ink); transform: rotate(13deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(22,22,26,.92) 0%, rgba(22,22,26,.6) 38%, rgba(22,22,26,0) 70%); }
.hero-copy { position: relative; z-index: 2; padding: 0 var(--pad) clamp(72px, 14vh, 140px); max-width: 820px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero h1 { font-size: clamp(56px, 10vw, 148px); line-height: .95; font-weight: 600; letter-spacing: -0.035em; }
.lede { margin-top: 28px; max-width: 30em; font-size: clamp(18px, 1.6vw, 22px); line-height: 1.5; color: var(--mute); text-wrap: pretty; }
.hero-meta { margin-top: 32px; font-size: 15px; font-weight: 500; }
.hero-hint { position: absolute; z-index: 2; right: var(--pad); bottom: 32px; font-size: 12px; color: var(--mute); max-width: 18em; text-align: right; opacity: .8; }
@media (max-width: 760px) {
  .hero-veil { background: linear-gradient(0deg, rgba(22,22,26,.96) 0%, rgba(22,22,26,.75) 45%, rgba(22,22,26,0) 80%); }
  .hero-hint { display: none; }
}

/* Manifesto */
.manifesto { padding: clamp(96px, 16vh, 180px) 0; border-top: 1px solid var(--line); }
.beats { list-style: none; padding: 0; margin-top: 56px; }
.beats li { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(16px, 4vw, 64px); padding: 36px 0; border-top: 1px solid var(--line); }
.beats h3 { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.beats p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--mute); padding-top: 6px; text-wrap: pretty; }
.sign { margin-top: 64px; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; color: var(--mute); }
.sign strong { display: block; margin-top: 8px; color: var(--ink); font-weight: 600; font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.035em; line-height: 1; }
@media (max-width: 760px) { .beats li { grid-template-columns: 1fr; padding: 28px 0; } }

/* Acts */
.acts { padding: clamp(96px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.act-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.act { border: 1px solid var(--line); padding: 24px; }
.act-canvas { display: block; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 24px; }
.act .num { font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.act h3 { margin-top: 8px; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.act p:last-child { margin-top: 10px; color: var(--mute); line-height: 1.55; }
@media (max-width: 900px) { .act-grid { grid-template-columns: 1fr; } }

/* Spaces */
.spaces, .privacy-band { padding: clamp(96px, 14vh, 160px) 0; border-top: 1px solid var(--line); }
.big { margin-top: 40px; font-size: clamp(36px, 5.4vw, 76px); line-height: 1.02; font-weight: 600; letter-spacing: -0.03em; max-width: 14em; text-wrap: balance; }
.sub { margin-top: 24px; max-width: 36em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--mute); }
.space-cards { list-style: none; padding: 0; margin-top: 56px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.space-cards li { border: 1px solid var(--line); border-radius: 20px; padding: 24px; min-height: 200px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(160deg, rgba(243,241,236,.05), rgba(243,241,236,0)); }
.space-cards .kind { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.space-cards strong { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.space-cards .ask { margin-top: auto; color: var(--mute); line-height: 1.5; font-size: 15px; }
.note { margin-top: 16px; font-size: 12px; color: var(--mute); }
@media (max-width: 1000px) { .space-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .space-cards { grid-template-columns: 1fr; } .space-cards li { min-height: 0; } }

/* Privacy band */
.promises { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; max-width: 1000px; }
.promises li { padding: 20px 0 20px 28px; border-top: 1px solid var(--line); position: relative; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.promises li::before { content: ""; position: absolute; left: 0; top: 28px; width: 10px; height: 12px; border: 1.5px solid var(--ink); border-radius: 50%; transform: rotate(13deg); }
.more { margin-top: 40px; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }

/* Close */
.close { position: relative; min-height: 80svh; display: grid; place-items: center; overflow: hidden; border-top: 1px solid var(--line); text-align: center; }
.close::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(22,22,26,.9) 0%, rgba(22,22,26,.55) 40%, rgba(22,22,26,0) 75%); }
.close-copy { position: relative; z-index: 2; padding: 0 var(--pad); }
.close h2 { font-size: clamp(40px, 6.4vw, 92px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; max-width: 12em; margin: 0 auto; text-wrap: balance; }
.close p { margin-top: 24px; color: var(--mute); font-size: 17px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }
.foot nav { display: flex; gap: 20px; }

/* Reveal */
.reveal-on [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s ease; }
.reveal-on [data-reveal].in { opacity: 1; transform: none; }

/* Document pages: privacy, rules, support */
.doc .top { position: static; border-bottom: 1px solid var(--line); }
.doc main { max-width: 760px; margin: 0 auto; padding: clamp(48px, 10vh, 96px) var(--pad) 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.doc .meta { margin-top: 16px; color: var(--mute); font-size: 15px; }
.doc h2 { margin-top: 56px; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.doc h3 { margin-top: 32px; font-size: 18px; font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: #D9D7D2; }
.doc p { margin-top: 14px; }
.doc ul { margin-top: 14px; padding-left: 20px; }
.doc li { margin-top: 8px; }
.doc li::marker { color: var(--mute); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc .summary { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; }
.doc .summary ul { margin-top: 8px; }
.doc .table { margin-top: 20px; overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 14px 12px 14px 0; border-top: 1px solid var(--line); color: #D9D7D2; }
.doc th { color: var(--mute); font-weight: 500; font-size: 13px; letter-spacing: .04em; }
.doc td:first-child { color: var(--ink); width: 26%; }
.doc .toc { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.doc .toc a { color: var(--mute); }
@media (max-width: 640px) { .doc table, .doc thead, .doc tbody, .doc tr, .doc td, .doc th { display: block; } .doc thead { display: none; } .doc td { border-top: 0; padding: 4px 0; } .doc tr { border-top: 1px solid var(--line); padding: 12px 0; } .doc td:first-child { width: auto; } }
.doc .summary h2 { margin-top: 0; }

/* v2.1: one living field behind the whole page (D-1238). */
.world { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
.home main, .home .foot, .home .top { position: relative; z-index: 1; }
.home .top { position: absolute; z-index: 5; }
.home main { cursor: crosshair; }
.home main a, .home main .act, .home main .space-cards li { cursor: auto; }
.home main a { cursor: pointer; }
.home .act, .home .space-cards li { background: rgba(22,22,26,.78); backdrop-filter: blur(2px); }
.home .space-cards li { background: linear-gradient(160deg, rgba(243,241,236,.06), rgba(22,22,26,.82)); }
.home .foot { background: var(--bg); }
.hero-hint { max-width: 22em; }
/* v3 hero: your life, as Spaces (D-1240) */
.life-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px; min-height: 100svh; padding: 96px var(--pad) 48px; }
.life-hero .hero-copy { padding: 0; max-width: 560px; }
.life-hero h1 { font-size: clamp(44px, 5.6vw, 84px); line-height: 1; letter-spacing: -0.035em; text-wrap: balance; }
.life-wrap { position: relative; height: min(78svh, 720px); }
.life { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.life-hero .hero-hint { position: absolute; right: 0; bottom: 0; text-align: right; }
@media (max-width: 900px) {
  .life-hero { grid-template-columns: 1fr; padding-top: 88px; gap: 8px; }
  .life-wrap { order: -1; height: 62svh; min-height: 420px; }
  .life-hero .hero-hint { display: block; position: static; text-align: center; margin-top: 4px; }
}
@media (max-width: 900px) { .life-hero .hero-hint { display: none; } }
@media (max-width: 480px) { .top nav { gap: 16px; font-size: 13px; } .top nav a[href="#manifesto"] { display: none; } .top .logo img { width: 112px; } }
