/* thorstenmeyer.com — "The Draft" (Meridian voice, static port of the
   Higgsfield build). Fonts come from site.css-compatible files in /assets/fonts. */

@font-face { font-family: "Spectral"; font-style: normal; font-weight: 300; src: url("fonts/Spectral-300.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; src: url("fonts/Spectral-300i.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Spectral"; font-style: normal; font-weight: 400; src: url("fonts/Spectral-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400; src: url("fonts/InstrumentSans-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 500; src: url("fonts/InstrumentSans-500.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 700; src: url("fonts/InstrumentSans-700.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); font-display: swap; }

:root {
  --ivory: #FBF6EC;
  --salmon: #F2DFCE;
  --ink: #33302B;
  --ink-soft: #7A7166;
  --teal: #0D7680;
  --roast: #E4581F;
  --hair: rgba(51, 48, 43, .18);
  --hair-soft: rgba(51, 48, 43, .10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ivory); color: var(--ink); line-height: 1.6;
  font-family: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums; }
img, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.serif { font-family: "Spectral", Georgia, "Times New Roman", serif; font-weight: 300; }
.mono { font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace; }
.shell { max-width: 1200px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ===== nav (over the hero) ===== */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: "Spectral", Georgia, serif; font-size: 21px; }
.brand b { color: var(--roast); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a.item { font-size: 13px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; transition: color .2s; }
.nav-links a.item:hover { color: var(--teal); }
.nav-contact { font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--hair);
  padding: 7px 12px; transition: color .2s, border-color .2s; }
.nav-contact:hover { color: var(--teal); border-color: var(--teal); }

/* ===== hero: sticky scrub track ===== */
.hero-track { position: relative; height: 280vh; }
.hero-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: var(--ivory); }
.hero-stage > img.base, .hero-stage > canvas { position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none;
  background: linear-gradient(to top, rgba(251,246,236,.94) 0%, rgba(251,246,236,.6) 45%, rgba(251,246,236,0) 100%); }
.hero-copy { position: relative; z-index: 10; display: flex; flex-direction: column;
  justify-content: flex-end; height: 100dvh; padding-bottom: 72px; }
.kick { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; color: var(--teal); }
.hero-copy h1 { font-family: "Spectral", Georgia, serif; font-weight: 300;
  font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: -.01em;
  max-width: 16ch; margin-top: 20px; }
.hero-copy h1 em { font-style: italic; color: var(--roast); }
.hero-copy .dek { margin-top: 22px; max-width: 52ch; font-size: 17px; line-height: 1.6; }
.hero-cta { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 30px;
  font-size: 14px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hero-cta .lbl { border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: color .25s, border-color .25s; }
.hero-cta .arr { color: var(--roast); transition: transform .3s; }
.hero-cta:hover .lbl { color: var(--roast); border-color: var(--roast); }
.hero-cta:hover .arr { transform: translateX(6px); }
.draft-mark { position: absolute; right: 16px; top: 50%; z-index: 10;
  transform: translateY(-50%) rotate(90deg); font-family: "IBM Plex Mono", monospace;
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--roast); }

/* mount build (CSS only, fires on load, never viewport-gated) */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(46px);
    animation: rise 1.05s cubic-bezier(.16,.84,.28,1) forwards; }
  .rise:nth-child(2) { animation-delay: .14s; }
  .rise:nth-child(3) { animation-delay: .28s; }
  .rise:nth-child(4) { animation-delay: .42s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ===== metrics ===== */
.metrics { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.metrics .inner { padding-top: 84px; padding-bottom: 84px; }
.sect-head { display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 12px; }
.sect-head h2 { font-family: "Spectral", Georgia, serif; font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px); }
.sect-head h2 .dot { color: var(--roast); }
.sect-head .meta { font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.metrics h2 { font-size: clamp(26px, 3vw, 38px); max-width: 24ch; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; }
.metric { padding: 8px 32px; border-left: 1px solid var(--hair-soft); }
.metric:first-child { border-left: none; padding-left: 0; }
.metric .num { font-family: "Spectral", Georgia, serif; font-weight: 300;
  font-size: clamp(52px, 5.4vw, 72px); line-height: 1; color: var(--teal); }
.metric .cap { margin-top: 16px; font-size: 14px; font-weight: 500; }
.metric .note { font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }

/* ===== writing ledger ===== */
.writing { position: relative; }
.writing .inner { padding-top: 100px; padding-bottom: 100px; }
.ledger { margin-top: 40px; border-top: 1px solid var(--hair); list-style: none; }
.ledger li { border-bottom: 1px solid var(--hair-soft); }
.ledger a { display: flex; align-items: baseline; gap: 28px; padding: 24px 0;
  transition: background .2s; }
.ledger a:hover { background: rgba(242,223,206,.35); }
.ledger .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--roast); }
.ledger .t { font-family: "Spectral", Georgia, serif; font-weight: 400;
  font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25;
  text-decoration: underline; text-decoration-color: rgba(13,118,128,.55);
  text-decoration-thickness: 1px; text-underline-offset: 8px; transition: text-decoration-color .2s; }
.ledger a:hover .t { text-decoration-color: var(--teal); }
.ledger .note { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); flex-shrink: 0; }
.ledger .arr { color: var(--teal); transition: transform .3s; }
.ledger a:hover .arr { transform: translateX(6px); }
.side-rail { position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .32em; color: var(--ink-soft); }

/* ===== building accordion ===== */
.building { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.building .inner { padding-top: 100px; padding-bottom: 100px; }
.acc { margin-top: 40px; border-top: 1px solid var(--hair); }
.acc-item { border-bottom: 1px solid var(--hair); }
.acc-btn { display: flex; align-items: baseline; gap: 24px; width: 100%; padding: 28px 0;
  background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.acc-btn .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--roast); }
.acc-btn .t { font-family: "Spectral", Georgia, serif; font-weight: 300;
  font-size: clamp(28px, 3.4vw, 40px); }
.acc-btn .x { margin-left: auto; font-size: 22px; color: var(--teal);
  transition: transform .3s; }
.acc-item.open .x { transform: rotate(45deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s cubic-bezier(.2,0,0,1); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-clip { overflow: hidden; }
.acc-grid { display: grid; grid-template-columns: 5fr 7fr; padding-bottom: 32px; }
.acc-panel { background: var(--salmon); padding: 30px; }
.acc-panel .lede { font-size: 14.5px; line-height: 1.6; }
.acc-panel ul { list-style: none; margin-top: 18px; border-top: 1px solid var(--hair-soft); }
.acc-panel li { border-bottom: 1px solid var(--hair-soft); }
.acc-panel li a { display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 13px 0; }
.acc-panel .vn { font-family: "IBM Plex Mono", monospace; font-size: 13px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: text-decoration-color .2s; }
.acc-panel li a:hover .vn { text-decoration-color: var(--teal); }
.acc-panel .vw { font-size: 12px; color: var(--ink-soft); text-align: right; }
.acc-panel .va { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--teal); }
.acc-media { position: relative; min-height: 230px; overflow: hidden; }
.acc-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ===== shelf ===== */
.shelf .inner { padding-top: 100px; padding-bottom: 100px; }
.shelf-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; margin-top: 48px;
  align-items: center; }
.plate-wrap { position: relative; max-width: 430px; }
.plate-frame { position: absolute; border: 1px solid var(--hair); inset: 16px auto auto -12px;
  width: 100%; height: 100%; }
.plate-frame.f2 { inset: 32px auto auto -24px; border-color: var(--hair-soft); }
.plate { position: relative; background: url("texture-salmon.jpg") center/400px, var(--salmon);
  border-radius: 8px; padding: 30px; }
.plate .flag { font-family: "IBM Plex Mono", monospace; font-size: 11px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; color: var(--roast); }
.plate video, .plate img.cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; margin-top: 16px; }
.plate h3 { font-family: "Spectral", Georgia, serif; font-weight: 400; font-size: 28px; margin-top: 22px; }
.plate .sub { font-family: "Spectral", Georgia, serif; font-style: italic; color: var(--ink-soft);
  margin-top: 8px; font-size: 15.5px; }
.book-cta { display: inline-block; margin-top: 22px; border: 2px solid var(--roast);
  background: var(--roast); color: #fff; padding: 14px 24px; font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; transition: background .2s, color .2s; }
.book-cta:hover { background: transparent; color: var(--roast); }
.book-cta:active { transform: translateY(1px); }
.shelf-list { list-style: none; border-top: 1px solid var(--hair); }
.shelf-list li { border-bottom: 1px solid var(--hair-soft); }
.shelf-list a { display: flex; align-items: baseline; gap: 20px; padding: 20px 0; }
.shelf-list .n { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--teal); }
.shelf-list .t { font-family: "Spectral", Georgia, serif; font-weight: 400;
  font-size: clamp(19px, 2vw, 24px); }
.shelf-list .s { margin-left: auto; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); flex-shrink: 0; }
.shelf-list .y { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--teal);
  flex-shrink: 0; text-decoration: underline; text-decoration-color: transparent;
  text-underline-offset: 4px; transition: text-decoration-color .2s; }
.shelf-list a:hover .y { text-decoration-color: var(--teal); }

/* ===== dispatch + footer ===== */
.dispatch { background: var(--ink); color: var(--ivory); }
.dispatch .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 40px; padding-top: 84px; padding-bottom: 64px; text-align: center; }
.dispatch h2 { font-family: "Spectral", Georgia, serif; font-weight: 300;
  font-size: clamp(34px, 4.4vw, 52px); }
.dispatch .bar { width: 1px; height: 48px; background: rgba(251,246,236,.3); }
.subscribe { font-family: "IBM Plex Mono", monospace; font-size: 18px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--roast);
  transition: letter-spacing .3s; }
.subscribe:hover { letter-spacing: .34em; }
.dispatch .fine { width: 100%; padding-bottom: 34px; text-align: center;
  font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(251,246,236,.5); }
footer.site .inner { padding-top: 40px; padding-bottom: 36px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-start;
  border-bottom: 1px solid var(--hair-soft); padding-bottom: 24px; }
.legal a { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  transition: color .2s; }
.legal a:hover { color: var(--teal); }
.foot-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 12px 24px; padding-top: 24px; font-family: "IBM Plex Mono", monospace; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase; }
.foot-row .soft { color: var(--ink-soft); }
.foot-row .social { display: flex; gap: 18px; }
.foot-row .social a:hover { color: var(--teal); }
.powered a { color: var(--roast); border-bottom: 1px solid var(--roast); padding-bottom: 2px; }
.agent-line { padding-bottom: 34px; font-family: "IBM Plex Mono", monospace; font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.agent-line a { color: var(--teal); }

/* ===== responsive ===== */
@media (max-width: 1024px) {
  .shell { padding-left: 28px; padding-right: 28px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .metric:nth-child(3) { border-left: none; padding-left: 0; }
  .shelf-grid { grid-template-columns: 1fr; gap: 48px; }
  .side-rail { display: none; }
}
@media (max-width: 640px) {
  .shell { padding-left: 18px; padding-right: 18px; }
  .nav-links a.item { display: none; }
  .hero-track { height: 240vh; }
  .hero-scrim { height: 56%; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric { border-left: none; padding-left: 0; padding-right: 0; }
  .ledger a { gap: 14px; }
  .ledger .note { display: none; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-media { min-height: 200px; position: relative; }
  .acc-media video { position: absolute; }
  .plate-wrap { max-width: 100%; }
  .dispatch .inner { flex-direction: column; }
  .dispatch .bar { display: none; }
  .legal { justify-content: center; }
  .foot-row { justify-content: center; text-align: center; }
  .agent-line { text-align: center; }
  .draft-mark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-track { height: auto; }
  .hero-stage { position: relative; }
}

/* writing ledger stagger (desktop) */
@media (min-width: 641px) {
  .ledger li:nth-child(2) a { padding-left: 6%; }
  .ledger li:nth-child(3) a { padding-left: 12%; }
  .ledger li:nth-child(4) a { padding-left: 18%; }
  .ledger li:nth-child(5) a { padding-left: 24%; }
}
