/* ————————————————————————————————————————————————————————————————
   PROTOTYPE v2 — Solpera × the ashe.ai method (see ASHE-TEARDOWN.md).
   The matted-print frame: chrome bleeds, content never does. Paper page,
   ink chrome, ONE working accent (gold-ink) doing all interactive work.
   No banners. Circles for people, 2px radius for media. Lowercase source
   data dressed up by CSS. Motion says "archive", not "launch".
   ———————————————————————————————————————————————————————————————— */
@font-face { font-family: "Archivo"; src: url("/assets/font/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/font/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/font/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #F2EEE2;         /* page */
  --paper-deep: #EAE4D3;    /* row hover */
  --ink: #1C1710;           /* chrome: strip, rails, footer, borders */
  --body: rgba(28, 23, 16, 0.78);
  --soft: rgba(28, 23, 16, 0.66);
  --faint: rgba(28, 23, 16, 0.55);
  --hair: rgba(28, 23, 16, 0.14);
  --rule: rgba(28, 23, 16, 0.26);
  --gold: #8A6400;          /* THE accent — all interactive work */
  --gold-bright: #C9A44D;   /* dark-chrome hover only — a tint of the one accent, not a second color */
  --sand: rgba(200, 180, 143, 0.7); /* portrait ring */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--paper);
  color: var(--body);
  font-family: "Archivo", "Helvetica Neue", sans-serif;
  font-variation-settings: "wdth" 96;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
.foot { margin-top: auto; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.mono { font-family: "Plex Mono", monospace; }

/* ————— the frame: 10px spectral strip, 32px ink rails, deep ink footer ————— */
.strip { height: 10px; background: linear-gradient(90deg, #000000 0.00%, #000000 5.00%, #000000 10.00%, #000102 15.00%, #010306 20.00%, #030110 25.00%, #0f0320 30.00%, #1a0635 35.00%, #14094e 40.00%, #2f5370 45.00%, #5ca189 50.00%, #76cd95 55.00%, #81e28a 60.00%, #bae770 65.00%, #d9aa5b 70.00%, #ba5639 75.00%, #9a2f34 80.00%, #78232c 85.00%, #56161c 90.00%, #370d09 95.00%, #201005 100.00%); }
@media (min-width: 900px) {
  .rail-l, .rail-r { position: fixed; top: 0; bottom: 0; width: 32px; background: var(--ink); z-index: 40; }
  .rail-l { left: 0; } .rail-r { right: 0; }
}
@media (max-width: 899.9px) { .rail-l, .rail-r { display: none; } }

/* ————— header row ————— */
.head { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(48px, 6vw, 72px) 12px; }
.head .word { font-weight: 800; font-size: 15px; letter-spacing: 0.34em; font-variation-settings: "wdth" 110; text-decoration: none; color: var(--ink); }
.head .word span { color: var(--gold); }
.head .head-logo { width: 148px; height: auto; display: block; }
.head .live { font-family: "Plex Mono", monospace; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.head .live b { color: var(--gold); font-weight: 500; }

/* ————— nav: lowercase source, CSS dress ————— */
.nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--ink); }
.nav ul { display: flex; justify-content: center; gap: clamp(16px, 3vw, 30px); list-style: none; flex-wrap: wrap; padding: 0 16px; }
.nav a { display: block; padding: 14px 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; text-decoration: none; color: var(--body); }
.nav a:hover, .nav a[aria-current] { color: var(--gold); text-decoration: underline; text-underline-offset: 6px; }
.nav span.soon { display: block; padding: 14px 2px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--body); opacity: 0.4; }
a:focus-visible, button:focus-visible, .pill:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ————— columns: per-zone centered widths ————— */
.prose { max-width: 65ch; margin: 0 auto; padding: 0 20px; }
.ledgerband { max-width: 1024px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 900px) { .ledgerband { padding: 0 56px; } }
.workcol { max-width: 620px; margin: 0 auto; padding: 0 20px; }
main { padding: clamp(30px, 4vw, 48px) 0 clamp(44px, 5vw, 64px); }

/* ————— hero (mission page) ————— */
.hero { display: flex; flex-direction: column; align-items: center; text-align: left; }
.portrait { width: 300px; height: 300px; border-radius: 50%; overflow: hidden; position: relative; box-shadow: 0 0 0 1px var(--sand), 0 18px 45px rgba(31, 35, 25, 0.14); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--gold); opacity: 0; transition: opacity 0.2s; }
.portrait:hover::after { opacity: 0.35; }
@media (max-width: 640px) { .portrait { width: 260px; height: 260px; } }

.idblock { display: flex; gap: 22px; margin-top: 34px; align-items: stretch; }
.idblock .vr { width: 1px; background: var(--ink); align-self: stretch; }
@media (max-width: 640px) { .idblock .vr { display: none; } }
.eyebrow { font-size: 14px; font-weight: 300; text-transform: uppercase; letter-spacing: 0.1em; color: var(--soft); }
.q { font-size: clamp(22px, 3vw, 28px); font-weight: 300; line-height: 1.35; letter-spacing: 0.01em; color: var(--ink); max-width: 24ch; margin: 6px 0 4px; }
.mail { font-size: 14px; font-weight: 300; letter-spacing: 0.1em; color: var(--soft); text-decoration: none; }
.mail:hover { color: var(--gold); text-decoration: underline dotted; text-underline-offset: 4px; }
.bio { margin-top: 18px; }
.bio b { font-weight: 600; color: var(--ink); }
.bio a { color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.bio a:hover { color: var(--gold); }
.aside { margin-top: 14px; font-style: italic; }
.aside a { color: var(--body); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.aside a:hover { color: var(--gold); }

/* ————— ledger ————— */
.ledger { border-top: 1px solid var(--hair); margin-top: clamp(36px, 5vw, 52px); padding-top: 30px; }
.ledger-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--ink); }
.prov { font-family: "Plex Mono", monospace; font-size: 11px; letter-spacing: 0.1em; color: var(--faint); text-transform: uppercase; }
.log { width: 100%; border-collapse: collapse; }
.log th { text-align: left; padding: 12px 16px 12px 0; border-bottom: 2px solid var(--rule); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--soft); }
.log td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hair); vertical-align: baseline; }
.log tr:hover td { background: var(--paper-deep); }
.log .t { font-weight: 500; color: var(--ink); }
.log .desc { font-size: 14px; color: var(--soft); margin-top: 2px; }
.log td.d { font-family: "Plex Mono", monospace; font-size: 12px; color: var(--soft); white-space: nowrap; width: 13ch; }
.log td.s { font-size: 14px; color: var(--soft); white-space: nowrap; }
.log tr.planned td.d { color: var(--gold); font-weight: 500; }
.log .mloc { display: none; font-size: 13px; color: var(--soft); margin-top: 4px; }
@media (max-width: 720px) { .log td.s, .log th.s { display: none; } .log .mloc { display: block; } }

.arrow { display: inline-block; margin-top: 20px; font-size: 14px; letter-spacing: 0.05em; color: var(--gold); text-decoration: none; }
.arrow:hover { text-decoration: underline dotted; text-underline-offset: 4px; }

/* ————— stats line (record page) ————— */
.stats { text-align: center; font-size: 14px; color: var(--soft); margin-bottom: 28px; }
.stats b, .stats a { font-family: "Plex Mono", monospace; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.stats a { text-decoration: underline; text-underline-offset: 3px; }
.stats .sep { margin: 0 10px; color: var(--faint); }

/* ————— work page (instrument) ————— */
.workhead { text-align: center; }
.workhead .label { display: block; }
.serial { font-family: "Plex Mono", monospace; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.media { border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; margin: 26px 0; }
.media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.5s, opacity 0.5s; }
.media--free img { aspect-ratio: auto; height: auto; object-fit: contain; }

/* ————— gallery collage: 12-col mosaic, varied spans, uniform tile heights ————— */
.collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.collage .media { margin: 0; grid-column: span 12; display: flex; flex-direction: column; }
.collage .media img { aspect-ratio: auto; height: 300px; object-fit: cover; flex: 1; }
.collage .media figcaption { margin-top: auto; }
@media (min-width: 720px) {
  .collage .c7 { grid-column: span 7; }
  .collage .c5 { grid-column: span 5; }
  .collage .c4 { grid-column: span 4; }
  .collage .media img { height: 380px; }
}
.media:hover img { transform: scale(1.015); opacity: 0.95; }
.media figcaption { font-family: "Plex Mono", monospace; font-size: 10.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--faint); padding: 8px 10px; border-top: 1px solid var(--hair); display: flex; justify-content: space-between; }
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 28px; }
.spec th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--soft); padding: 10px 16px 10px 0; border-top: 1px solid var(--hair); white-space: nowrap; }
.spec td { font-family: "Plex Mono", monospace; font-size: 13px; color: var(--ink); padding: 10px 0; border-top: 1px solid var(--hair); }
.pill { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgba(138, 100, 0, 0.4); border-radius: 999px; padding: 12px 26px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; color: var(--ink); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.pill .ar { transition: transform 0.2s; }
.pill:hover { border-color: rgba(138, 100, 0, 0.8); background: rgba(138, 100, 0, 0.05); }
.pill:hover .ar { transform: translateX(2px); }
.micro { font-size: 12px; color: var(--faint); margin-top: 10px; letter-spacing: 0.04em; }

/* ————— the stack (mission page): four layers, four rows ————— */
.stack { border-top: 1px solid var(--hair); margin-top: clamp(32px, 4vw, 44px); padding-top: 26px; }
.stack .row { display: flex; gap: 18px; border-bottom: 1px solid var(--hair); padding: 14px 0; align-items: baseline; }
.stack .row:last-child { border-bottom: 0; }
.stack .n { font-family: "Plex Mono", monospace; font-size: 12px; color: var(--gold); font-weight: 500; }
.stack .nm { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--ink); min-width: 128px; flex-shrink: 0; }
.stack .nm a { color: inherit; text-decoration: none; }
.stack .nm a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.stack p { font-size: 14px; color: var(--soft); line-height: 1.6; }
@media (max-width: 640px) { .stack .row { flex-wrap: wrap; } }

/* ————— product blocks (instrumentation page) ————— */
.prod { border-top: 1px solid var(--hair); margin-top: 30px; padding-top: 26px; }
.prod .pname { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--ink); }
.prod .bio { margin-top: 12px; }

/* ————— offering rows (work page) ————— */
.offer { border-top: 1px solid var(--hair); padding: 16px 0; }
.offer .oname { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; color: var(--ink); }
.offer p { font-size: 14px; color: var(--soft); margin-top: 5px; line-height: 1.65; }

/* ————— q&a rows (work page) ————— */
.qa { border-top: 1px solid var(--hair); padding: 16px 0; }
.qa .qq { font-weight: 500; color: var(--ink); font-size: 15px; }
.qa .qa-a { font-size: 14px; color: var(--soft); margin-top: 4px; }

/* ————— footer: full-bleed ink ————— */
.foot { background: var(--ink); color: #EDE9DC; padding: 90px 20px 20px; margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.foot .logo { width: 170px; height: auto; margin: 0 auto 26px; }
.foot .loc { font-size: 12px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; color: rgba(237, 233, 220, 0.75); }
.foot .links { display: flex; justify-content: center; gap: 26px; margin-top: 22px; flex-wrap: wrap; }
.foot .links a { font-size: 12px; font-weight: 300; letter-spacing: 2px; text-transform: uppercase; color: rgba(237, 233, 220, 0.75); text-decoration: none; }
.foot .links a:hover { color: var(--gold-bright); }
.foot .fine { margin-top: 56px; font-size: 11px; font-weight: 300; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(237, 233, 220, 0.58); }

/* ————— editorial motion only ————— */
.rise { opacity: 0; transform: translateY(14px); transition: opacity 0.7s, transform 0.7s; }
.rise.in { opacity: 1; transform: none; }
html:not(.js) .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } }

/* Shared privacy and measurement controls. */
