:root {
  --paper: #0b0a09;
  --raised: #100e0d;
  --ink: 205, 196, 186;
  --mono: 'Space Mono', ui-monospace, monospace;
  --grotesk: 'Space Grotesk', system-ui, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  --gutter: 40px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --paper: #ece7dd; --raised: #e5dfd4; --ink: 11, 10, 9; }
}
:root[data-theme="light"] { --paper: #ece7dd; --raised: #e5dfd4; --ink: 11, 10, 9; }

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  background: var(--paper);
  color: rgb(var(--ink));
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: url(grain-180.png);
  background-size: 180px;
  opacity: .16;
  mix-blend-mode: overlay;
  z-index: 50;
}
a { color: inherit; text-decoration-color: rgba(var(--ink), .42); text-underline-offset: 3px; }
a:hover { text-decoration-color: rgb(var(--ink)); }
:focus-visible { outline: 1px solid rgb(var(--ink)); outline-offset: 3px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .6); }
.rule { height: 1px; background: rgba(var(--ink), .2); border: 0; margin: 0; }
.margin-text {
  position: fixed; left: 14px; top: 50%; transform: translateY(-50%) rotate(180deg);
  writing-mode: vertical-rl; font-size: 9px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(var(--ink), .4); z-index: 5;
}

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.top nav { display: flex; gap: 22px; }
.top nav a { text-decoration: none; }
.mark { font-family: var(--serif); font-size: 22px; font-weight: 350; letter-spacing: -.02em; text-decoration: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; padding: 56px 0 88px; position: relative; }
.wordmark { font-family: var(--serif); font-weight: 350; font-size: clamp(76px, 13vw, 168px); line-height: .9; letter-spacing: -.035em; margin: 18px 0 0; }
.tagline { font-family: var(--grotesk); font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.2; margin: 28px 0 0; max-width: 520px; }
.lead { color: rgba(var(--ink), .86); max-width: 470px; margin: 18px 0 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 22px;
  background: rgb(var(--ink)); color: var(--paper); border-radius: 2px;
  font-family: var(--grotesk); font-size: 17px; font-weight: 500; text-decoration: none;
}
.btn::after { content: ""; width: 10px; height: 10px; background: var(--paper); }
.btn.ghost { background: transparent; color: rgb(var(--ink)); border: 1px solid rgba(var(--ink), .42); }
.btn.ghost::after { display: none; }
.watermark {
  position: absolute; right: -40px; top: 20px; font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 380px; line-height: 1; color: rgba(var(--ink), .045); pointer-events: none; user-select: none; z-index: -1;
}

/* Plates: screenshots in a hairline dossier frame */
.plate { margin: 0; }
.plate .frame { border: 1px solid rgba(var(--ink), .2); border-radius: 2px; padding: 10px; background: var(--raised); }
.plate img { display: block; width: 100%; height: auto; border-radius: 2px; }
.plate figcaption { display: flex; justify-content: space-between; margin-top: 10px; }
.hero .plate { max-width: 340px; justify-self: end; width: 100%; }

/* Numbered sections */
.section { padding: 72px 0; border-top: 1px solid rgba(var(--ink), .2); }
.sec-head { display: flex; align-items: baseline; gap: 16px; }
.sec-num { font-size: 11px; letter-spacing: .12em; color: rgba(var(--ink), .4); }
h2 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.sec-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 36px; align-items: start; }
.sec-body p { margin: 0 0 14px; color: rgba(var(--ink), .86); max-width: 460px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 8px; }
.chip { min-width: 56px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(var(--ink), .42); border-radius: 2px; font-size: 15px; }
.chip.on { background: rgb(var(--ink)); color: var(--paper); border-color: transparent; }

.kv { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(var(--ink), .2); }
.kv li { display: flex; justify-content: space-between; gap: 24px; padding: 13px 0; border-bottom: 1px solid rgba(var(--ink), .2); }
.kv li span:first-child { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .6); padding-top: 2px; }
.kv li span:last-child { text-align: right; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.widgets { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.widgets img { display: block; width: 100%; height: auto; border-radius: 2px; }

.stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(var(--ink), .2); border-bottom: 1px solid rgba(var(--ink), .2); margin-top: 8px; }
.stat div { padding: 18px 0; }
.stat div + div { padding-left: 20px; border-left: 1px solid rgba(var(--ink), .2); }
.stat b { display: block; font-family: var(--serif); font-weight: 300; font-size: 54px; line-height: 1; letter-spacing: -.02em; margin-top: 8px; }

.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 36px; }
.plan { border: 1px solid rgba(var(--ink), .2); border-radius: 2px; padding: 26px; }
.plan.pro { border-color: rgba(var(--ink), .6); }
.plan h3 { font-family: var(--grotesk); font-weight: 500; font-size: 24px; margin: 10px 0 18px; }
.plan ul { list-style: none; margin: 0; padding: 0; }
.plan li { padding: 9px 0; border-top: 1px solid rgba(var(--ink), .12); color: rgba(var(--ink), .86); }
.promise { margin-top: 20px; border: 1px solid rgba(var(--ink), .2); border-radius: 2px; padding: 22px 26px; }
.promise p { margin: 8px 0 0; color: rgba(var(--ink), .86); max-width: 760px; }

footer { border-top: 1px solid rgba(var(--ink), .2); padding: 30px 0 60px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

/* Legal pages */
.doc { max-width: 720px; padding: 40px 0 80px; }
.doc h1 { font-family: var(--grotesk); font-weight: 500; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 14px 0 8px; letter-spacing: -.01em; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; }
.doc p, .doc li { color: rgba(var(--ink), .86); }
.doc ul { padding-left: 18px; }
.doc table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.doc td, .doc th { text-align: left; vertical-align: top; padding: 11px 12px 11px 0; border-bottom: 1px solid rgba(var(--ink), .2); }
.doc th { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--ink), .6); font-weight: 400; }

@media (max-width: 820px) {
  :root { --gutter: 16px; }
  .margin-text, .watermark { display: none; }
  .hero, .sec-body, .plans { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding: 28px 0 56px; }
  .hero .plate { justify-self: start; max-width: 300px; }
  .top nav { gap: 14px; }
  .section { padding: 52px 0; }
  .widgets { grid-template-columns: minmax(0, 1fr); }
  .stat b { font-size: 40px; }
  .kv li { flex-direction: column; gap: 4px; }
  .kv li span:last-child { text-align: left; }
}

/* Scroll progress hairline */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: rgb(var(--ink)); transform: scaleX(0); transform-origin: left; }

.scroll-cue { text-decoration: none; margin-left: 8px; }
.ticker, .n2, .clock { font-weight: 400; color: rgb(var(--ink)); }
.hero-plate .frame { will-change: transform; }

/* Marquee band */
.marquee { border-top: 1px solid rgba(var(--ink), .2); border-bottom: 1px solid rgba(var(--ink), .2); overflow: hidden; padding: 18px 0; }
.marquee-track { display: flex; gap: 28px; width: max-content; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(28px, 4vw, 48px); line-height: 1; white-space: nowrap; }
.marquee-track span:nth-child(even) { color: rgba(var(--ink), .3); font-style: normal; }

/* Pinned nag counter */
.nag { min-height: 100vh; display: flex; align-items: center; padding: 72px 0; position: relative; }
.nag-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; width: 100%; }
.nag-count { position: relative; }
.numeral { font-family: var(--serif); font-weight: 300; font-size: clamp(200px, 30vw, 400px); line-height: .78; letter-spacing: -.04em; margin: 24px 0 26px -.04em; font-variant-numeric: tabular-nums; }
.numeral .num { display: inline-block; will-change: transform; }
.nag-copy p { color: rgba(var(--ink), .86); max-width: 460px; margin: 0 0 14px; }
.nag-copy h2 { margin-bottom: 26px; }
.nag-bar { height: 1px; background: rgba(var(--ink), .2); margin-top: 30px; max-width: 460px; }
.nag-bar span { display: block; height: 100%; background: rgb(var(--ink)); transform: scaleX(0); transform-origin: left; }
.done-stamp { position: absolute; left: 0; bottom: -86px; display: flex; align-items: center; justify-content: space-between; width: min(320px, 100%); height: 62px; padding: 0 22px; background: rgb(var(--ink)); color: var(--paper); border-radius: 2px; font-family: var(--grotesk); font-size: 22px; font-weight: 500; opacity: 0; }
.done-stamp i { width: 11px; height: 11px; background: var(--paper); }

/* Plate pairs with parallax */
.plates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.plates .plate:nth-child(2) { margin-top: 90px; }

/* Horizontal widget gallery */
.gallery { border-top: 1px solid rgba(var(--ink), .2); overflow: hidden; }
.gallery-pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 72px 0; gap: 34px; }
.gallery-lead { color: rgba(var(--ink), .86); max-width: 520px; margin: 18px 0 0; }
.gallery-track { display: flex; gap: 22px; align-items: center; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.w-card { margin: 0; flex: none; }
.w-card img { display: block; width: 100%; height: auto; border-radius: 2px; border: 1px solid rgba(var(--ink), .12); }
.w-card figcaption { display: flex; justify-content: space-between; margin-top: 10px; }
.w-card.wide { width: min(560px, 80vw); }
.w-card.small { width: min(300px, 60vw); }
.w-card.phone { width: min(260px, 56vw); }

/* Outro */
.outro { border-top: 1px solid rgba(var(--ink), .2); padding: 120px 0 110px; text-align: left; }
.outro-word { font-family: var(--serif); font-weight: 300; font-size: clamp(64px, 12vw, 176px); line-height: .92; letter-spacing: -.035em; margin-bottom: 40px; }

.split-mask { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

@media (max-width: 820px) {
  .nag-inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .numeral { font-size: 42vw; margin: 12px 0 18px; }
  .done-stamp { bottom: -70px; height: 54px; font-size: 19px; }
  .plates .plate:nth-child(2) { margin-top: 48px; }
  .gallery-track { flex-direction: column; align-items: stretch; width: auto; }
  .w-card.wide, .w-card.small, .w-card.phone { width: 100%; }
  .w-card.phone { max-width: 280px; }
  .outro { padding: 80px 0; }
}

/* Section rules drawn by a scaled pseudo-element so they can animate in. */
.section, .gallery, .outro { border-top: 0; position: relative; }
.section::before, .gallery::before, .outro::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: rgba(var(--ink), .2); transform: scaleX(var(--rule, 1)); transform-origin: left;
}
.gallery-pin .wrap { width: 100%; }
@media (max-width: 820px) {
  .done-stamp { top: 44%; bottom: auto; }
  .chips { gap: 6px; }
  .chip { min-width: 48px; }
}
