/* Layout: a record-sleeve grid. Bold condensed display type on a clean white (or studio-black) ground, one signal-red heartbeat line borrowed from the logo, and a split sheet as the hero object, because that page is where publishing starts. */
:root {
  --bg: #FAFAFB;
  --surface: #FFFFFF;
  --sunk: #F0F0F3;
  --ink: #0F0F12;
  --ink-2: #565663;
  --line: #E1E1E7;
  --signal: #D42A3B;
  --signal-ink: #FFFFFF;
  --signal-soft: #FBE7EA;
  --ok: #1F7A4D;
  --ok-soft: #E3F2EA;
  --logo-filter: none;
  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C0F; --surface: #15151A; --sunk: #101014; --ink: #F2F2F5; --ink-2: #A3A3B2; --line: #2A2A33;
    --signal: #FF4A5C; --signal-ink: #120406; --signal-soft: #3A1418; --ok: #5DCB92; --ok-soft: #12281C;
    --logo-filter: invert(1);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C0F; --surface: #15151A; --sunk: #101014; --ink: #F2F2F5; --ink-2: #A3A3B2; --line: #2A2A33;
  --signal: #FF4A5C; --signal-ink: #120406; --signal-soft: #3A1418; --ok: #5DCB92; --ok-soft: #12281C;
  --logo-filter: invert(1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-display); margin: 0; text-wrap: balance; line-height: .98; }
h1 { font-size: clamp(2.9rem, 7.4vw, 6rem); font-weight: 800; font-stretch: 72%; text-transform: uppercase; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; font-stretch: 75%; text-transform: uppercase; }
h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 90%; line-height: 1.15; }
p { margin: 0; }
.label { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 58ch; }
.tabnum { font-variant-numeric: tabular-nums; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem/1 var(--f-body); padding: 1em 1.4em; border-radius: 999px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .12s ease, border-color .12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.logo { display: block; margin-right: auto; line-height: 0; }
.logo img { height: 46px; width: auto; filter: var(--logo-filter); }
.nav { display: flex; gap: 24px; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.site-header .btn { padding: .72em 1.1em; font-size: .9rem; white-space: nowrap; }
@media (max-width: 860px) { .nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 7vw, 96px) clamp(28px, 4vw, 56px); }
.pulse { display: block; width: 100%; height: 90px; margin-top: clamp(36px, 5vw, 64px); pointer-events: none; }
.pulse path { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 0; animation: draw 2.4s cubic-bezier(.6,.1,.2,1) both; }
@keyframes draw { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: 0; } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero-copy h1 span { color: var(--signal); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.societies { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--f-mono); font-size: .8rem; color: var(--ink-2); }
.societies b { color: var(--ink); font-weight: 500; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Split sheet */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(0,0,0,.35); font-family: var(--f-mono); font-size: .82rem; min-width: 0; transform: rotate(1.2deg); }
@media (max-width: 920px) { .sheet { transform: none; } }
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 2px solid var(--ink); }
.sheet-top b { font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
.chip { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; color: var(--ink-2); white-space: nowrap; }
.sheet-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 14px 16px; border-bottom: 1px dashed var(--line); }
.sheet-meta dt { color: var(--ink-2); }
.sheet-meta dd { margin: 0; font-weight: 500; }
.sheet-meta dd.title { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: 1.25rem; line-height: 1.1; text-transform: uppercase; }
.sheet-table { width: 100%; border-collapse: collapse; }
.sheet-table th, .sheet-table td { text-align: left; padding: 8px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sheet-table th { font-weight: 400; color: var(--ink-2); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.sheet-table td.pct { text-align: right; font-weight: 500; }
.sheet-table th.pct { text-align: right; }
.sheet-status { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.st { padding: 3px 8px; border-radius: 4px; font-size: .72rem; }
.st.done { background: var(--ok-soft); color: var(--ok); }
.st.todo { background: var(--signal-soft); color: var(--signal); }

/* Sections */
section { padding-block: clamp(60px, 8vw, 104px); }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 820px; }

/* Services: numbered ledger rows */
.ledger { border-top: 2px solid var(--ink); }
.ledger article { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ledger .code { font-family: var(--f-mono); font-size: .8rem; color: var(--signal); }
.ledger h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; font-stretch: 78%; text-transform: uppercase; }
.ledger p { color: var(--ink-2); }
@media (max-width: 760px) { .ledger article { grid-template-columns: 52px minmax(0, 1fr); } .ledger p { grid-column: 2; } }

/* Creator services */
.creators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.creators div { background: var(--surface); padding: 22px; display: grid; gap: 8px; align-content: start; }
.creators h3 { font-size: 1.1rem; }
.creators p { color: var(--ink-2); font-size: .95rem; }
@media (max-width: 960px) { .creators { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) { .creators { grid-template-columns: 1fr; } }

/* Process */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: s; }
.process li { counter-increment: s; display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid var(--ink); min-width: 0; }
.process li::before { content: "Step " counter(s); font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--signal); }
.process p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.about-copy { display: grid; gap: 16px; min-width: 0; }
.about-copy p { color: var(--ink-2); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.stats div { padding: 18px 12px 0 0; display: grid; gap: 4px; }
.stats b { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stats span { font-size: .9rem; color: var(--ink-2); }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 20px; min-width: 0; }
.contact-lines { display: grid; gap: 14px; }
.contact-lines div { display: grid; gap: 2px; }
.contact-lines a, .contact-lines .v { font-size: 1.1rem; font-weight: 500; word-break: break-word; }
.social { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 500; }
form.card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--signal); padding: 26px; display: grid; gap: 16px; min-width: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: .92rem; }
.field label small { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; padding: 12px 14px; border-radius: 6px; }
.form-status.ok { background: var(--ok-soft); color: var(--ok); }
.form-status.err { background: var(--signal-soft); color: var(--signal); }
.form-status.info { background: var(--sunk); color: var(--ink-2); }
.form-foot { font-size: .85rem; color: var(--ink-2); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 8px; }
.legal .body { margin-top: 32px; color: var(--ink-2); display: grid; gap: 14px; }
.legal .body strong { color: var(--ink); }
.legal .body p { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding-block: 30px; font-size: .9rem; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer img { height: 28px; width: auto; filter: var(--logo-filter); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: var(--ink); }
