:root {
  --bg:#fff; --band:#f3f5f3; --ink:#14221d; --soft:#55615b; --faint:#66756d;
  --rule:#dfe6e1; --acc:#0c6b5e; --acc-ink:#fff; --r:16px;
  --f:"Archivo",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  --s2:16px; --s3:28px;
  --section:clamp(56px,7vw,96px);
  --columns:minmax(0,.94fr) minmax(0,1.06fr);
  --gap:clamp(32px,4.5vw,64px);
  color-scheme:light;
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]) {
    --bg:#0c110f; --band:#121b17; --ink:#eef3f1; --soft:#afbbb5;
    --faint:#96a79e; --rule:#2c3932; --acc:#69d9bd; --acc-ink:#09281e;
    color-scheme:dark;
  }
}
:root[data-theme="dark"] {
  --bg:#0c110f; --band:#121b17; --ink:#eef3f1; --soft:#afbbb5;
  --faint:#96a79e; --rule:#2c3932; --acc:#69d9bd; --acc-ink:#09281e;
  color-scheme:dark;
}
*,*::before,*::after { box-sizing:border-box; }
html { scroll-padding-top:32px; }
body { margin:0; background:var(--bg); color:var(--ink); font:16px/1.65 var(--f); -webkit-font-smoothing:antialiased; }
img,video { display:block; max-width:100%; }
img { height:auto; }
a { color:inherit; }
:focus-visible { outline:2px solid var(--acc); outline-offset:5px; }
.shell { width:100%; max-width:1248px; margin-inline:auto; }
.gut { padding-inline:max(32px,env(safe-area-inset-left,0px)) max(32px,env(safe-area-inset-right,0px)); }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { text-wrap:balance; }
h1 { font-size:clamp(44px,4.45vw,64px); line-height:1.045; font-weight:600; letter-spacing:-.05em; }
h2 { font-size:clamp(30px,3.05vw,42px); line-height:1.14; font-weight:600; letter-spacing:-.04em; }
h3 { font-size:23px; line-height:1.25; font-weight:600; letter-spacing:-.03em; }
.lede { color:var(--soft); font-size:18px; line-height:1.65; max-width:43ch; }
.kick { display:block; color:var(--acc); font:500 11px/1.5 var(--f-mono); letter-spacing:.12em; text-transform:uppercase; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 22px; border:1px solid var(--rule); border-radius:9px; color:var(--ink); background:var(--bg); font:500 14px/1.4 var(--f); text-decoration:none; text-align:center; transition:background .18s,border-color .18s; }
.btn:hover { background:var(--band); border-color:var(--soft); }
.btn.pri { background:var(--acc); border-color:var(--acc); color:var(--acc-ink); }
.btn.pri:hover { filter:brightness(.92); }
.link { color:var(--soft); font-size:14px; text-decoration:none; }
a.link:hover,nav a:hover,footer a:hover { color:var(--acc); }
/* One container and one column split across all major sections. */
.nav { border-bottom:1px solid var(--rule); }
.nav .shell { min-height:80px; display:flex; align-items:center; gap:40px; }
.mark { flex-shrink:0; font-size:22px; font-weight:700; letter-spacing:-.05em; }
.mark i { font-style:normal; color:var(--acc); }
.nav nav { display:flex; align-items:center; gap:28px; }
.nav nav a { padding-block:12px; font-size:14px; color:var(--soft); text-decoration:none; white-space:nowrap; }
.nav .sp { flex:1; }
.nav > .shell > .link { white-space:nowrap; padding-block:12px; }
.search { display:flex; align-items:center; gap:10px; border:1px solid var(--rule); border-radius:8px; padding:8px 12px; }
.search:focus-within { outline:2px solid var(--acc); outline-offset:3px; }
.search span { color:var(--faint); }
.search input { width:22ch; min-width:0; padding:0; border:0; outline:none; background:transparent; color:var(--ink); font:13px/1.5 var(--f); }
.search input::placeholder { color:var(--faint); }
.hero .shell { display:grid; grid-template-columns:var(--columns); column-gap:var(--gap); row-gap:40px; align-items:center; padding-block:88px 36px; }
.hero .copy { min-width:0; }
.hero h1 { margin-bottom:24px; }
.hero .lede { max-width:42ch; margin-bottom:30px; }
.hero .acts { display:flex; gap:12px; flex-wrap:wrap; }
.hero .shot { overflow:hidden; border-radius:var(--r); background:var(--band); }
.hero .shot img { width:100%; aspect-ratio:16/9; object-fit:contain; }
.stat { grid-column:1/-1; padding-top:22px; border-top:1px solid var(--rule); color:var(--faint); font:11px/1.8 var(--f-mono); letter-spacing:.015em; }
.band { background:var(--band); }
.band .shell,.plain .shell { padding-block:var(--section); }
.upload .shell,.proof .shell { display:grid; grid-template-columns:var(--columns); gap:var(--gap); align-items:center; }
.upload .pic { border-radius:var(--r); overflow:hidden; }
.upload .pic img { width:100%; aspect-ratio:16/10; object-fit:cover; }
.upload h2,.proof h2 { margin:16px 0 20px; }
.upload .lede,.proof .lede { font-size:17px; }
.upload .copy > p:last-child { margin-top:28px; }
.head { margin-bottom:36px; }
.head .kick { margin-bottom:14px; }
/* Shared media size and flexible body copy keep all card baselines aligned. */
.prods { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:24px; row-gap:0; }
.prod { min-width:0; display:grid; grid-template-rows:subgrid; grid-row:span 4; }
.prod .pic { width:100%; aspect-ratio:4/3; overflow:hidden; border-radius:12px; margin-bottom:24px; background:#0c1522; }
.prod .pic img,.prod .pic video { width:100%; height:100%; object-fit:contain; }
.prod .pic img { background:var(--band); }
.prod h3 { margin-bottom:12px; }
.prod p { flex:1; color:var(--soft); font-size:15px; line-height:1.65; }
.prod .fmt { display:block; padding-top:20px; margin-top:20px; border-top:1px solid var(--rule); color:var(--faint); font:11px/1.7 var(--f-mono); }
.quote { margin:0; border:1px solid var(--rule); border-radius:var(--r); background:var(--bg); padding:32px; }
.quote p { font-size:16px; line-height:1.75; }
.quote .src { display:block; margin-top:22px; color:var(--acc); font:11px/1.7 var(--f-mono); }
.quote .note { display:block; margin-top:22px; padding-top:20px; border-top:1px solid var(--rule); color:var(--faint); font:11px/1.8 var(--f-mono); }
.library .shell { display:grid; grid-template-columns:var(--columns); gap:var(--gap); align-items:start; }
.library .head { margin:0; }
.library h2 { max-width:19ch; }
.chips { display:flex; flex-wrap:wrap; gap:10px; }
.chip { display:inline-flex; align-items:center; gap:10px; padding:9px 14px; border:1px solid var(--rule); border-radius:8px; color:var(--soft); font-size:13px; text-decoration:none; }
.chip:hover { border-color:var(--acc); color:var(--acc); }
.chip b { color:var(--faint); font:11px var(--f-mono); }
.scope { margin-top:24px; max-width:58ch; color:var(--faint); font-size:13px; line-height:1.7; }
.faq { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px var(--gap); }
.faq > div { min-width:0; border-top:1px solid var(--rule); padding-top:24px; }
.faq b { display:block; margin-bottom:10px; font-size:16px; font-weight:600; }
.faq p { max-width:56ch; color:var(--soft); font-size:15px; }
.close { text-align:center; }
.close h2 { margin-bottom:28px; }
footer { border-top:1px solid var(--rule); }
footer .shell { padding-block:28px; display:flex; justify-content:space-between; align-items:center; gap:24px; color:var(--faint); font-size:12px; }
footer .shell > div:first-child { display:flex; flex-wrap:wrap; gap:12px 24px; }
footer a { color:var(--soft); text-decoration:none; }
@media (max-width:1100px) {
  .search { display:none; }
  .hero .shell { padding-top:64px; }
  h3 { font-size:21px; }
}
@media (max-width:900px) {
  :root { --columns:minmax(0,1fr); }
  .hero .shell { row-gap:32px; }
  .hero .copy { max-width:680px; }
  .hero h1 { max-width:18ch; font-size:clamp(44px,7.5vw,60px); }
  .hero .lede { max-width:48ch; }
  .hero .shot { width:100%; }
  .upload .shell,.proof .shell { gap:32px; }
  .upload .lede,.proof .lede { max-width:62ch; }
  .upload .pic { max-height:400px; }
  .upload .pic img { height:100%; max-height:400px; }
  .prods { grid-template-columns:1fr; gap:36px; }
  .prod { display:grid; grid-row:auto; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px 28px; grid-template-rows:auto 1fr auto; }
  .prod .pic { grid-row:1/4; margin:0; }
  .prod h3 { margin:0; }
  .prod p { margin:0; }
  .prod .fmt { margin:0; padding-top:14px; }
  .library .shell { gap:28px; }
  .library h2 { max-width:26ch; }
  footer .shell { align-items:flex-start; }
}
@media (max-width:600px) {
  :root { --section:56px; }
  .gut { padding-left:max(24px,env(safe-area-inset-left,0px)); padding-right:max(24px,env(safe-area-inset-right,0px)); }
  .nav .shell { min-height:0; gap:0; flex-wrap:wrap; padding-top:16px; }
  .nav .mark { font-size:21px; }
  .nav nav { order:4; width:100%; gap:26px; margin-top:12px; border-top:1px solid var(--rule); }
  .nav nav a { font-size:12px; padding-block:13px; }
  .nav .sp { flex:1; }
  .hero .shell { padding-block:40px 28px; gap:28px; }
  .hero h1 { font-size:clamp(38px,10vw,52px); max-width:17ch; line-height:1.07; margin-bottom:20px; }
  .hero .lede { font-size:17px; margin-bottom:24px; }
  .hero .acts .btn { flex:1 1 150px; padding-inline:12px; }
  .stat { padding-top:18px; font-size:10px; line-height:1.9; }
  .upload .lede,.proof .lede { font-size:16px; }
  .prods { gap:40px; }
  .prod { display:flex; flex-direction:column; gap:0; }
  .prod .pic { margin-bottom:20px; }
  .prod h3 { font-size:23px; margin-bottom:10px; }
  .prod .fmt { margin-top:18px; padding-top:16px; }
  .head { margin-bottom:28px; }
  .quote { padding:24px; }
  .quote p { font-size:15px; }
  .faq { grid-template-columns:1fr; gap:28px; }
  .chip { padding:8px 11px; font-size:12px; }
  footer .shell { flex-direction:column; gap:20px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; }
}

/* ---------- admin: the daily columns ----------
   Flexbox rather than SVG, so the 2px gap is 2px and the 3px radius is 3px at every
   panel width and every column count. A stretched viewBox gives neither.

   .col is the hover target - the whole day, not the bar - so a day with nothing in it
   still answers when you point at it, and a one-pixel bar is not a one-pixel target. */
.plot { display:flex; align-items:flex-end; gap:2px; height:48px; margin-top:12px;
  border-bottom:1px solid var(--rule); }
.plot .col { flex:1 1 0; min-width:0; height:100%; display:flex; align-items:flex-end; }
.plot .col i { display:block; width:100%; max-width:24px; margin-inline:auto;
  background:var(--acc); border-radius:3px 3px 0 0; }
.plot .col:hover i { filter:brightness(1.15); }

/* search, on the library page itself rather than only in the header, which is hidden
   below 1100px on every page. Same shape as .req. */
.find { display:flex; align-items:center; gap:12px; flex-wrap:wrap; max-width:560px;
  margin-top:24px; }
.find input { flex:1 1 240px; min-width:0; background:var(--bg); border:1px solid var(--rule);
  border-radius:999px; color:var(--ink); font-family:inherit; font-size:14px; padding:11px 18px; }
.find input::placeholder { color:var(--faint); }
.find input:focus-visible { outline:2px solid var(--acc); outline-offset:2px; }
.find .link { font-size:13px; color:var(--faint); }

/* request a field */
.req { display:flex; gap:var(--s2); flex-wrap:wrap; max-width:560px; margin-top:var(--s3); }
.req input { flex:1 1 280px; min-width:0; background:var(--bg); border:1px solid var(--rule);
  border-radius:999px; color:var(--ink); font-family:inherit; font-size:14px; padding:11px 18px; }
.req input::placeholder,.req textarea::placeholder { color:var(--faint); }

/* A .req laid out as a stack of labelled fields - the takedown form, where a radius of
   999px on a five-row textarea would be absurd. */
.req label { display:grid; gap:6px; font-size:14px; font-weight:500; }
.req label small { font-weight:400; font-size:13px; line-height:1.5; color:var(--faint); }
.req textarea,.req select { width:100%; min-width:0; background:var(--bg);
  border:1px solid var(--rule); border-radius:12px; color:var(--ink);
  font-family:inherit; font-size:14px; line-height:1.6; padding:11px 16px; }
.req textarea { resize:vertical; }
.req label input { flex:none; width:100%; border-radius:12px; }
.req :is(input,textarea,select):focus-visible { outline:2px solid var(--acc); outline-offset:2px; }

/* ---------- library shelves ----------
   Rows that scroll sideways. Portrait reels get their own row because a 9:16
   card in a 16:9 row is either enormous or letterboxed. */
.shelf { margin-top:48px; }
.shelf > header { display:flex; align-items:baseline; gap:16px; margin-bottom:18px; }
.shelf h3 { font-size:21px; font-weight:600; letter-spacing:-.03em; }
.shelf header a { font:13px var(--f); color:var(--soft); text-decoration:none; }
.shelf header a:hover { color:var(--acc); }
.rowscroll { display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x proximity;
  padding-bottom:6px; scrollbar-width:thin; }
.rowscroll::-webkit-scrollbar { height:6px; }
.rowscroll::-webkit-scrollbar-thumb { background:var(--rule); border-radius:3px; }
.tile { flex:0 0 272px; scroll-snap-align:start; text-decoration:none; min-width:0; }
.tile .th { position:relative; border:1px solid var(--rule); border-radius:10px;
  overflow:hidden; background:var(--band); }
.tile .th img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.tile .d { position:absolute; right:8px; bottom:8px; background:rgba(8,16,13,.86);
  color:#eaf3ef; font:11px var(--f-mono); padding:2px 6px; border-radius:4px; }
.tile h4 { margin:10px 0 4px; font-size:15px; font-weight:600; line-height:1.3;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.tile .m { font:11px var(--f-mono); color:var(--faint); }
.tile .st { display:block; margin-top:6px; font:10px var(--f-mono); color:var(--faint); }
.rowscroll.reels .tile { flex-basis:150px; }
.rowscroll.reels .tile .th img { aspect-ratio:9/16; }
@media (max-width:640px) { .tile { flex-basis:220px; } .rowscroll.reels .tile { flex-basis:128px; } }

/* A portrait tile is narrow wherever it appears, including a lone one in a row
   of landscape tiles (related papers on a paper page). */
.tile.reel { flex-basis:150px; }
.tile.reel .th img { aspect-ratio:9/16; }
