/* Living in Amaroo · site styles
   Brand: brand/BRAND.md. Two faces, two grounds, one reagent (ember, once per page).
   The site is an instrument: a vast quiet field and small precise annotation. */

@font-face { font-family: "Crimson Pro"; src: url("fonts/CrimsonPro-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/CrimsonPro-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --ground: #0E0D0C;
  --ground-2: #171512;
  --ground-3: #1E1B17;
  --bone: #E7DECE;
  --bone-soft: rgba(231, 222, 206, 0.76);
  --bone-mid: rgba(203, 193, 177, 0.55);
  --bone-dim: rgba(203, 193, 177, 0.30);
  --ink: rgba(203, 193, 177, 0.58);
  --hair: rgba(203, 193, 177, 0.15);
  --hair-2: rgba(203, 193, 177, 0.26);
  --ember: #C66E3E;
  --serif: "Crimson Pro", Georgia, "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --gutter: clamp(16px, 5.5vw, 96px);
  --measure: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--ground); color: var(--bone);
  font-family: var(--serif); font-size: 1.1875rem; line-height: 1.55;
  min-height: 100vh; position: relative; overflow-x: hidden;
}
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before { background: radial-gradient(135% 85% at 22% 4%, rgba(214,178,132,0.10) 0%, rgba(160,124,84,0.035) 34%, rgba(0,0,0,0) 64%); }
body::after  { background: radial-gradient(90% 75% at 50% 45%, rgba(0,0,0,0) 45%, rgba(0,0,0,0.45) 100%); }
.wrap { position: relative; z-index: 1; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--bone-dim); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--bone); }
:focus-visible { outline: 1px solid var(--bone); outline-offset: 3px; }
::selection { background: var(--bone); color: var(--ground); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; z-index: 50; background: var(--bone); color: var(--ground); padding: 8px 12px; }

/* ---------- annotation ---------- */
.mono, .label {
  font-family: var(--mono); font-size: 0.74rem; line-height: 1.6;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink);
}
.label { display: block; }
.mono b, .label b { font-weight: 400; color: var(--bone); }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.012em; }
.display { font-size: clamp(2.7rem, 7.6vw, 6.2rem); line-height: 1.06; }
.display-2 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.12; }
h3, .h3 { font-size: 1.55rem; line-height: 1.25; }
.lede { font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.45; color: var(--bone-soft); max-width: 34em; }
p + p { margin-top: 0.9em; }
.prose { max-width: 36em; }
.prose p, .prose li { color: var(--bone-soft); }
.prose h2 { font-size: 1.9rem; margin: 1.6em 0 0.5em; }
.prose ul { margin: 0.8em 0 0 1.1em; }
.prose blockquote { border-left: 1px solid var(--bone-dim); padding-left: 1em; margin: 1.2em 0; font-style: italic; color: var(--bone); }

/* ---------- the readout bar (top of every page) ---------- */
.readout {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14,13,12,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.readout .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 56px; }
.readout .brandname { text-decoration: none; color: var(--bone-soft); white-space: nowrap; }
.readout .brandname:hover { color: var(--bone); }
.readout .live { display: flex; gap: 22px; align-items: center; overflow: hidden; white-space: nowrap; flex: 1; justify-content: center; }
.readout .live span { display: inline-flex; align-items: center; gap: 8px; }
.readout canvas { width: 14px; height: 14px; }
.index-btn { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; padding: 8px 0; }
.index-btn i { display: inline-flex; gap: 3px; align-items: flex-end; height: 12px; }
.index-btn i::before, .index-btn i::after, .index-btn i span { content: ""; display: block; width: 1px; background: var(--bone); }
.index-btn i::before { height: 7px; } .index-btn i span { height: 12px; } .index-btn i::after { height: 9px; }
.index-btn:hover { color: var(--bone); }
@media (max-width: 900px) { .readout .live .opt { display: none; } }
@media (max-width: 560px) { .readout .live { display: none; } }

/* ---------- the index overlay ---------- */
.index-panel {
  position: fixed; inset: 0; z-index: 40; background: rgba(10,9,8,0.97);
  display: grid; grid-template-rows: auto 1fr auto; opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.index-panel.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.index-panel .top { display: flex; justify-content: space-between; align-items: center; height: 56px; border-bottom: 1px solid var(--hair); }
.index-panel nav { align-self: center; padding: 32px 0; }
.index-panel ol { list-style: none; }
.index-panel li a {
  display: grid; grid-template-columns: 4.5em 1fr auto; align-items: baseline; gap: 16px;
  text-decoration: none; padding: clamp(10px, 1.8vh, 18px) 0; border-bottom: 1px solid var(--hair);
  transform: translateY(14px); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.index-panel.open li a { transform: none; opacity: 1; }
.index-panel li:nth-child(2) a { transition-delay: .04s } .index-panel li:nth-child(3) a { transition-delay: .08s }
.index-panel li:nth-child(4) a { transition-delay: .12s } .index-panel li:nth-child(5) a { transition-delay: .16s }
.index-panel li:nth-child(6) a { transition-delay: .2s }  .index-panel li:nth-child(7) a { transition-delay: .24s }
.index-panel .n { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--ink); }
.index-panel .t { font-size: clamp(1.9rem, 5.4vw, 3.6rem); line-height: 1.1; }
.index-panel .d { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-align: right; }
.index-panel li a:hover .t { font-style: italic; }
.index-panel li a:hover .n, .index-panel li a:hover .d { color: var(--bone); }
.index-panel li a[aria-current="page"] .t { color: var(--bone-mid); }
@media (max-width: 640px) { .index-panel .d { display: none; } .index-panel li a { grid-template-columns: 3em 1fr; } }
.index-panel .bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 26px; border-top: 1px solid var(--hair); }
.index-panel .bot a { text-decoration: none; } .index-panel .bot a:hover { color: var(--bone); }
body.locked { overflow: hidden; }

/* ---------- sections ---------- */
.band { padding-top: clamp(80px, 12vw, 160px); }
.band-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); padding-bottom: 12px; margin-bottom: clamp(32px, 5vw, 56px); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 820px) { .split, .split.even { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 22px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- buttons: square, no shadow, no glow ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; padding: 15px 22px; border: 1px solid var(--bone); color: var(--ground); background: var(--bone);
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: transparent; color: var(--bone); }
.btn.quiet { background: transparent; color: var(--bone); border-color: var(--bone-dim); }
.btn.quiet:hover { border-color: var(--bone); }
.btn.ember { background: var(--ember); border-color: var(--ember); color: #160B05; }
.btn.ember:hover { background: transparent; color: var(--bone); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.arrow::after { content: "→"; font-family: var(--mono); }

/* ---------- HOME: the observatory ---------- */
.observatory { position: relative; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); display: grid; grid-template-rows: auto 1fr auto auto; padding-top: clamp(20px, 3.5vh, 40px); }
.observatory .field-wrap { align-self: center; margin-top: clamp(90px, 14vh, 150px); }
.obs-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.obs-title { align-self: end; padding-bottom: clamp(18px, 3vh, 32px); }
.obs-title .display { max-width: 12em; }
.obs-title .lede { margin-top: 18px; }
.field-wrap { position: relative; height: clamp(200px, 34vh, 360px); margin: 0 calc(-1 * min(var(--gutter), 24px)); cursor: crosshair; touch-action: pan-y; }
.field-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope {
  position: absolute; top: 0; pointer-events: none; transform: translateX(-50%); min-width: 230px;
  background: rgba(14,13,12,0.92); border: 1px solid var(--hair-2); padding: 12px 14px; opacity: 0; transition: opacity .2s;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1.75;
}
.scope.on { opacity: 1; }
.scope b { font-weight: 400; color: var(--bone); }
.scope .row { display: flex; justify-content: space-between; gap: 18px; }
.scope canvas { position: static; width: 34px; height: 34px; float: right; margin: 0 0 4px 10px; }
.obs-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 22px; border-top: 1px solid var(--hair); }
.obs-years { display: inline-flex; gap: 6px; }
.obs-years button { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--ink); padding: 4px 10px; border: 1px solid transparent; }
.obs-years button[aria-pressed="true"] { color: var(--bone); border-color: var(--hair-2); }
.obs-years button:hover { color: var(--bone); }

/* today's sky: an instrument card */
.today { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (max-width: 820px) { .today { grid-template-columns: 1fr; } }
.moon-stage { position: relative; aspect-ratio: 1; max-width: 360px; width: 100%; }
.moon-stage canvas { width: 100%; height: 100%; }
.dials { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); margin-top: 28px; }
.dial { border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 16px 16px 18px; }
.dial .v { font-size: 1.9rem; line-height: 1.1; margin-top: 6px; }
.dial .v small { font-size: 1rem; color: var(--bone-mid); }
.fine { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(203,193,177,0.42); margin-top: 14px; }

/* the question card */
.deck { position: relative; perspective: 1400px; }
.qcard {
  position: relative; min-height: clamp(300px, 42vh, 420px); border: 1px solid var(--hair-2); background: var(--ground-2);
  padding: clamp(24px, 4vw, 48px); display: grid; grid-template-rows: auto 1fr auto; gap: 20px;
  transform-style: preserve-3d; transition: transform .7s var(--ease);
}
.qcard.turn { transform: rotateY(-90deg); }
.qcard .q { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.16; align-self: center; max-width: 18em; }
.qcard .q em { font-style: italic; }
.qcard .meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.qcard-lines { position: absolute; right: clamp(16px, 3vw, 36px); top: clamp(16px, 3vw, 36px); bottom: clamp(16px, 3vw, 36px); width: 64px; opacity: .7; pointer-events: none; }
@media (max-width: 640px) { .qcard-lines { display: none; } }
.channels-inline { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.channels-inline a { text-decoration: none; } .channels-inline a:hover { color: var(--bone); }

/* drawers (shop, world, etc.) */
.drawers { border-top: 1px solid var(--hair); }
.drawer { border-bottom: 1px solid var(--hair); }
.drawer > summary, .drawer > .summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 4em minmax(0, 1fr) auto auto; gap: 18px; align-items: center;
  padding: clamp(18px, 2.4vw, 26px) 0;
}
.drawer > summary::-webkit-details-marker { display: none; }
.drawer .n { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--ink); }
.drawer .t { font-size: clamp(1.45rem, 2.8vw, 2.2rem); line-height: 1.15; }
.drawer .s { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-align: right; white-space: nowrap; }
.drawer .s.live { color: var(--bone); }
.drawer .plus { width: 14px; height: 14px; position: relative; }
.drawer .plus::before, .drawer .plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--bone-mid); transition: transform .3s var(--ease); }
.drawer .plus::after { transform: rotate(90deg); }
.drawer[open] .plus::after { transform: rotate(0); }
.drawer summary:hover .t { font-style: italic; }
.drawer .body { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); padding: 6px 0 36px 4em; }
.drawer .body img { border: 1px solid var(--hair); }
.drawer .body .stack > * + * { margin-top: 18px; }
@media (max-width: 760px) {
  .drawer > summary { grid-template-columns: 2.6em minmax(0, 1fr) auto; }
  .drawer .s { display: none; }
  .drawer .body { grid-template-columns: 1fr; padding-left: 0; }
}
.drawer .body .price { font-family: var(--mono); letter-spacing: .12em; color: var(--bone); font-size: .9rem; }

/* channels (socials) */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.channel { position: relative; display: block; text-decoration: none; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 22px 22px 26px; min-height: 210px; overflow: hidden; transition: background .3s; }
.channel:hover { background: var(--ground-2); }
.channel .head { display: flex; justify-content: space-between; }
.channel .t { font-size: 1.9rem; line-height: 1.1; margin-top: 34px; }
.channel .h { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; color: var(--bone-soft); margin-top: 6px; }
.channel .w { color: var(--bone-mid); font-size: 1.02rem; margin-top: 12px; max-width: 22em; }
.channel svg { position: absolute; right: 18px; bottom: 18px; width: 70px; height: 34px; }
.channel svg line { stroke: var(--bone-dim); stroke-width: 1; transition: transform .5s var(--ease); transform-origin: bottom; transform-box: fill-box; }
.channel:hover svg line { stroke: var(--bone-mid); }
.channel:hover svg line:nth-child(odd) { transform: scaleY(1.35); }

/* teaser tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
@media (max-width: 820px) { .tiles { grid-template-columns: 1fr; } }
.tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; text-decoration: none; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 22px; min-height: 340px; overflow: hidden; transition: background .3s; }
.tile:hover { background: var(--ground-2); }
.tile canvas, .tile .art { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.tile > *:not(canvas):not(.art) { position: relative; }
.tile .t { font-size: 2rem; line-height: 1.1; }
.tile .w { color: var(--bone-mid); font-size: 1.02rem; margin-top: 8px; }
.tile .go { font-family: var(--mono); font-size: .72rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink); }
.tile:hover .go { color: var(--bone); }
.tile img.cover { position: absolute; right: -8%; bottom: -14%; width: 62%; transform: rotate(-4deg); border: 1px solid var(--hair); transition: transform .6s var(--ease); }
.tile:hover img.cover { transform: rotate(-2deg) translateY(-8px); }

/* forms */
.field { display: grid; gap: 8px; }
.field + .field { margin-top: 16px; }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; font-size: 1.12rem; color: var(--bone); background: var(--ground-2);
  border: 1px solid var(--bone-dim); border-radius: 0; padding: 13px 14px;
}
textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: rgba(203,193,177,0.4); }
input:focus, textarea:focus { outline: none; border-color: var(--bone); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; color: var(--bone-soft); }
.check input { margin-top: 6px; accent-color: #E7DECE; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.6em; }
.counter { text-align: right; }

/* sign-up */
.signup form { display: flex; flex-wrap: wrap; gap: 12px; }
.signup label { flex-basis: 100%; }
.signup input[type="email"] { flex: 1 1 220px; min-width: 0; }
.signup .form-note { flex-basis: 100%; }

/* ---------- campfire ---------- */
.fire-stage { position: relative; height: clamp(300px, 52vh, 520px); }
.fire-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.answers { columns: 3 300px; column-gap: 0; border-top: 1px solid var(--hair); border-left: 1px solid var(--hair); }
.answer { break-inside: avoid; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); padding: 22px; }
.answer p { color: var(--bone-soft); font-size: 1.12rem; }
.answer .by { margin-top: 14px; }
.empty { border: 1px dashed var(--hair-2); padding: 28px; color: var(--bone-mid); }
.care { border-left: 1px solid var(--bone-dim); padding-left: 16px; color: var(--bone-mid); font-size: 1rem; max-width: 40em; }

/* ---------- world ---------- */
.world-stage { position: relative; height: calc(100vh - 56px); height: calc(100svh - 56px); min-height: 520px; overflow: hidden; }
.world-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-stage .over { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: clamp(24px, 5vh, 56px); }
.stone { font-family: var(--mono); font-size: .62rem; letter-spacing: .3em; color: rgba(203,193,177,0.16); position: absolute; cursor: default; user-select: none; transition: color 1.2s; }
.stone:hover, .stone.found { color: rgba(203,193,177,0.6); }

/* ---------- notes ---------- */
.notes-list { border-top: 1px solid var(--hair); }
.note-row { display: grid; grid-template-columns: 7em minmax(0, 1fr) auto; gap: 18px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.note-row .t { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.15; }
.note-row .w { color: var(--bone-mid); font-size: 1.05rem; margin-top: 6px; }
.note-row:hover .t { font-style: italic; }
@media (max-width: 640px) { .note-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- calendar product page pieces (kept) ---------- */
.specimen { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.specimen figure img { border: 1px solid var(--hair); }
.specimen figcaption { margin-top: 12px; }
.specimen .text > * + * { margin-top: 22px; }
@media (max-width: 760px) { .specimen { grid-template-columns: 1fr; } .product-hero figure { order: 2; } }
.price { font-family: var(--mono); font-size: 0.92rem; letter-spacing: 0.12em; color: var(--bone); }
.index { list-style: none; border-top: 1px solid var(--hair); }
.index li { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--hair); color: var(--bone-soft); }
.index li > span:first-child { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.12em; color: var(--ink); padding-top: 0.35em; }
.index b { font-weight: 400; color: var(--bone); }
.plates { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(20px, 3vw, 36px); }
.plates a { text-decoration: none; display: block; }
.plates img { border: 1px solid var(--hair); transition: border-color .15s, transform .5s var(--ease); aspect-ratio: 1270 / 1797; width: 100%; object-fit: cover; }
.plates a:hover img { border-color: var(--bone-dim); transform: translateY(-4px); }
.plates figcaption { margin-top: 10px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(32px, 5vw, 72px); }
.cols h3 { margin-bottom: 14px; }
.hero { padding-top: clamp(48px, 8vw, 110px); }
.hero .display { max-width: 11em; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 45; background: rgba(10,9,8,0.96); display: none; align-items: center; justify-content: center; padding: 56px 16px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: calc(100vh - 90px); width: auto; border: 1px solid var(--hair-2); }
.lightbox .x { position: absolute; top: 14px; right: var(--gutter); }
.lightbox .nav { position: absolute; top: 50%; transform: translateY(-50%); padding: 16px; font-family: var(--mono); color: var(--ink); }
.lightbox .nav:hover { color: var(--bone); }
.lightbox .prev { left: 4px; } .lightbox .next { right: 4px; }

/* ---------- footer ---------- */
.plate-foot { margin-top: clamp(100px, 14vw, 180px); border-top: 1px solid var(--hair); padding: 26px 0 44px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; }
.plate-foot a { text-decoration: none; } .plate-foot a:hover { color: var(--bone); }
.plate-foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; }
@media (max-width: 700px) { .plate-foot { grid-template-columns: 1fr; } .plate-foot .links { justify-content: flex-start; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
