/* Look Inward Look Up — prototype styles
   Direction: museum calm (National Gallery) + esoteric library warmth (Embassy of the Free Mind) */

:root {
  /* Palette after Museo Cappella Sansevero: charcoal, antique gold, parchment */
  --ivory: #F4F1EA;      /* page */
  --paper: #FFFFFF;      /* cards, panels */
  --ink: #222222;
  --ink-2: #3D3A33;
  --muted: #6F6A5E;
  --line: #E2DBC4;
  --green: #171717;      /* primary dark (kept name for compatibility) */
  --green-2: #2B2B2B;
  --green-ink: #E2DBC4;  /* text on dark */
  --gold: #8C741D;       /* gold text on light */
  --gold-2: #B29D68;     /* gold on dark, fills */
  --night: #171717;
  --night-2: #222222;
  --parchment: #EBE8DD;

  --t-event: #D9B865;
  --t-art: #F4F1EA;
  --t-ancient: #C47A5A;
  --t-community: #9FB3BD;

  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif-text: "Libre Caslon Text", Georgia, serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 0px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main:focus { outline: none; }

/* ---------- type ---------- */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; margin: 0; }
h1, h2 { text-transform: uppercase; line-height: 1.04; letter-spacing: -0.012em; }
h1 { font-size: clamp(38px, 5.6vw, 78px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: clamp(22px, 2.2vw, 28px); font-family: var(--serif-text); }
h1 em, h2 em { font-style: normal; color: var(--gold); }
.eyebrow {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 18px;
}
.lede { font-family: var(--serif-text); font-size: clamp(20px, 2vw, 25px); line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border: 1px solid var(--ink); background: transparent;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--ink); color: var(--ivory); }
.btn-green { background: var(--green); border-color: var(--green); color: var(--paper); }
.btn-green:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--night); }
.btn-gold { background: var(--gold-2); border-color: var(--gold-2); color: var(--night); }
.btn-gold:hover { background: #fff; border-color: #fff; color: var(--night); }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-light:hover { background: #fff; color: var(--night); }
.btn-small { padding: 9px 14px; font-size: 11.5px; }
.link-arrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; font-size: 12.5px; cursor: pointer; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--line); color: var(--ink-2);
  background: var(--paper);
}
.tag-documented { border-color: #C9BC93; color: var(--gold); }
.tag-provisional { border-color: #D8C08F; color: #7D5E25; }
.tag-research { border-color: #D7A592; color: #8A3F25; }
.dot-event { background: var(--t-event); }
.dot-art { background: #E2DBC4; }
.dot-ancient { background: var(--t-ancient); }
.dot-community { background: var(--t-community); }

/* ---------- banner & header ---------- */
.proto-banner {
  background: var(--night); color: #E2DBC4; font-size: 12px; text-align: center;
  padding: 7px var(--gutter); letter-spacing: .02em;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
/* Logo: transparent PNGs, so the letters inside the blocks show the page colour */
.logo { display: block; flex-shrink: 0; line-height: 0; }
.logo img { height: 46px; width: auto; }
.logo-footer { display: block; height: 64px; width: auto; }
@media (max-width: 560px) { .logo img { height: 38px; } }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a.active { border-bottom-color: var(--gold); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 8px 14px; font-size: 13px; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .site-nav .btn { margin-top: 16px; justify-content: center; }
}

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 46ch; margin: 12px 0 0; color: var(--muted); }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.bg-paper { background: var(--paper); }
.bg-green { background: var(--green); color: var(--green-ink); }
.bg-green h2, .bg-green h3 { color: #fff; }
.bg-green .eyebrow { color: var(--gold-2); }
.bg-night { background: var(--night); color: #E2DBC4; }
.bg-night h1, .bg-night h2, .bg-night h3 { color: #FFFFFF; }
.bg-night h2 em, .bg-night h1 em, .bg-green h2 em, .bg-green h1 em { color: var(--gold-2); }
.bg-night .eyebrow { color: var(--gold-2); }

/* ---------- home ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lede { margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-figure { position: relative; }
.frame { background: var(--paper); padding: clamp(10px, 1.6vw, 18px); box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(23, 23, 23, .35); }
.frame img { width: 100%; height: auto; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.hero-figure figcaption strong { color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 500; display: block; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); font-weight: 400; display: block; line-height: 1; color: var(--ink); }
.stat span { font-size: 13px; color: var(--muted); }
.thesis { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.thesis blockquote { margin: 0; font-family: var(--serif-text); font-size: clamp(30px, 3.6vw, 46px); line-height: 1.15; font-style: italic; }
.thesis blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: 13px; color: var(--gold-2); margin-top: 22px; letter-spacing: .06em; }
.three-layers { display: grid; gap: 0; }
.layer { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.15); }
.layer:last-child { border-bottom: 1px solid rgba(255,255,255,.15); }
.layer .n { font-family: var(--serif); font-size: 24px; color: var(--gold-2); }
.layer h3 { font-size: 24px; margin-bottom: 4px; }
.layer p { margin: 0; font-size: 14.5px; }

@media (max-width: 860px) {
  .hero-grid, .thesis { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.card { text-decoration: none; display: flex; flex-direction: column; gap: 14px; }
.card-img { aspect-ratio: 4 / 5; background: #E2DBC4; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .type-flag { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(251,248,242,.92); font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; }
.card-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.card h3 { font-size: 23px; line-height: 1.15; }
.card .card-sub { font-size: 14px; color: var(--ink-2); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 24px; background: repeating-linear-gradient(135deg, #EBE8DD 0 14px, #E2DBC4 14px 28px); color: var(--muted); font-size: 13px; }
.noimg strong { display: block; font-family: var(--serif); font-size: 22px; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }

.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 28px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.hscroll > * { scroll-snap-align: start; }

/* ---------- collection ---------- */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 4vw, 48px); }
.page-head h1 { font-size: clamp(42px, 6vw, 80px); margin-bottom: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 40px; position: sticky; top: 72px; background: var(--ivory); z-index: 10; }
.toolbar .search { flex: 1 1 240px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--ink-2); padding: 6px 0; }
.toolbar input[type=search] { border: 0; background: transparent; outline: none; width: 100%; font-size: 15px; }
.toolbar select { border: 1px solid var(--line); background: var(--paper); padding: 7px 10px; font-size: 13px; border-radius: var(--radius); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.result-count { font-size: 13px; color: var(--muted); margin: -20px 0 28px; }
.empty { padding: 60px 0; text-align: center; color: var(--muted); }
@media (max-width: 700px) { .toolbar { position: static; } }

/* ---------- work page ---------- */
.work-top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); align-items: start; }
.work-figure { position: sticky; top: 96px; }
.work-figure .frame { cursor: zoom-in; }
.work-figure .zoom-hint { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: none; }
.work-info h1 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 10px; }
.work-artist { font-family: var(--serif-text); font-size: 22px; font-style: italic; color: var(--ink-2); margin: 0 0 22px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tombstone { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); margin: 0 0 32px; font-size: 14.5px; }
.tombstone dt, .tombstone dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; }
.tombstone dt { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; padding-top: 14px; }
.sky-note { background: var(--paper); border-left: 3px solid var(--gold); padding: 20px 22px; margin-bottom: 32px; }
.sky-note .eyebrow { margin-bottom: 8px; }
.sky-note p { margin: 0; font-family: var(--serif-text); font-size: 20px; line-height: 1.45; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cultural { background: #F4EDE2; border: 1px solid #E2DBC4; padding: 14px 16px; font-size: 14px; margin-bottom: 28px; }

.readings { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); background: var(--paper); }
.reading { padding: clamp(24px, 3.4vw, 44px); }
.reading + .reading { border-left: 1px solid var(--line); }
.reading h3 { margin-bottom: 14px; }
.reading p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }
.reading .who { font-size: 12.5px; color: var(--muted); margin-top: 18px; }
.reading-case { background: var(--green); color: var(--green-ink); }
.reading-case h3 { color: #fff; }
.reading-case p { color: var(--green-ink); }
.reading-case .eyebrow { color: var(--gold-2); }
.reading-case .who { color: #B5AE98; }
@media (max-width: 860px) {
  .work-top { grid-template-columns: 1fr; }
  .work-figure { position: static; }
  .readings { grid-template-columns: 1fr; }
  .reading + .reading { border-left: 0; border-top: 1px solid var(--line); }
}

.poll { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.poll-options { display: grid; gap: 10px; }
.poll-opt { position: relative; text-align: left; border: 1px solid var(--line); background: var(--paper); padding: 16px 18px; cursor: pointer; overflow: hidden; display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.poll-opt:hover { border-color: var(--ink-2); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: rgba(178, 157, 104, .18); width: 0; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.poll-opt span { position: relative; }
.poll-opt.mine { border-color: var(--gold-2); }
.poll-opt.mine .bar { background: rgba(178, 157, 104, .22); }
.poll-foot { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
@media (max-width: 760px) { .poll { grid-template-columns: 1fr; } }

.sources { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.sources li { counter-increment: s; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.sources li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 15px; font-size: 12px; color: var(--gold); font-weight: 600; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.pager { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; max-width: 45%; }
.pager small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pager strong { font-family: var(--serif); font-size: 20px; font-weight: 500; }

/* ---------- atlas ---------- */
.atlas { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.atlas-globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 680px; margin: 0 auto; touch-action: pan-y; cursor: grab; }
.atlas-globe:active { cursor: grabbing; }
.atlas-globe svg { width: 100%; height: 100%; overflow: visible; }
.atlas-globe .land { fill: #2A2A2A; stroke: #3A3A3A; stroke-width: .6; }
.atlas-globe .grat { fill: none; stroke: rgba(201, 165, 106, .10); stroke-width: .6; }
.atlas-globe .pt { cursor: pointer; transition: opacity .3s; }
.atlas-globe .pt-halo { animation: halo 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.atlas-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #8F897A; font-size: 13px; }
.atlas-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.atlas-count b { font-family: var(--serif); font-size: clamp(54px, 6vw, 84px); font-weight: 500; line-height: 1; color: #FFFFFF; display: block; }
.atlas-count span { font-size: 14px; color: #B5AE98; }
.atlas-card { background: var(--night-2); border: 1px solid rgba(201,165,106,.22); display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; text-decoration: none; color: inherit; min-height: 124px; }
.atlas-card img, .atlas-card .noimg { width: 96px; height: 96px; object-fit: cover; }
.atlas-card .noimg { font-size: 10px; padding: 6px; }
.atlas-card h3 { font-size: 21px; color: #FFFFFF; margin: 2px 0 4px; }
.atlas-card p { margin: 0; font-size: 13px; color: #B5AE98; }
.atlas-card .open { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-top: 8px; display: inline-block; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: 8px; }
.atlas-legend .chip { background: transparent; border-color: rgba(255,255,255,.18); color: #E2DBC4; }
.atlas-legend .chip[aria-pressed="false"] { opacity: .45; }
.atlas-legend .chip[aria-pressed="true"] { background: rgba(255,255,255,.07); border-color: rgba(201,165,106,.6); color: #fff; }
.atlas select { background: var(--night-2); color: #EBE8DD; border: 1px solid rgba(255,255,255,.18); padding: 8px 10px; font-size: 13px; width: 100%; }

.timeline { margin-top: clamp(24px, 3vw, 40px); user-select: none; -webkit-user-select: none; }
.tl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.tl-year { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); color: #FFFFFF; line-height: 1; }
.tl-year small { font-family: var(--sans); font-size: 12px; color: #B5AE98; margin-left: 10px; letter-spacing: .1em; text-transform: uppercase; }
.tl-play { background: none; border: 1px solid rgba(201,165,106,.5); color: var(--gold-2); padding: 9px 16px; cursor: pointer; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.tl-play:hover { background: rgba(201,165,106,.12); }
.tl-track { position: relative; height: 74px; touch-action: pan-y; cursor: pointer; }
.tl-line { position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: rgba(255,255,255,.22); }
.tl-fill { position: absolute; left: 0; top: 39px; height: 3px; background: linear-gradient(90deg, rgba(201,165,106,.2), var(--gold-2)); }
.tl-tick { position: absolute; top: 33px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; border: 2px solid var(--night); cursor: pointer; transition: transform .2s, opacity .2s; padding: 0; }
.tl-tick:hover, .tl-tick.sel { transform: scale(1.5); }
.tl-tick.off { opacity: .25; }
.tl-handle { position: absolute; top: 12px; width: 2px; height: 56px; margin-left: -1px; background: var(--gold-2); pointer-events: none; }
.tl-handle::before { content: ""; position: absolute; top: -6px; left: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 6px rgba(201,165,106,.18); }
.tl-eras { position: relative; height: 20px; font-size: 11px; color: #8F897A; letter-spacing: .06em; }
.tl-eras span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.tl-eras span.first { transform: none; }
.tl-eras span.last { transform: translateX(-100%); }
.tl-note { font-size: 12px; color: #8F897A; margin-top: 10px; }
.tl-tip { position: absolute; bottom: 58px; transform: translateX(-50%); background: #FFFFFF; color: var(--ink); font-size: 12.5px; padding: 6px 10px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 3; }
.tl-tip.show { opacity: 1; }

.atlas-compact .atlas { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) {
  .atlas, .atlas-compact .atlas { grid-template-columns: 1fr; }
  .atlas-globe { max-width: 520px; }
  .tl-eras span:nth-child(even) { display: none; }
}

/* ---------- motifs ---------- */
.motif-row { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 36px 0; border-top: 1px solid var(--line); text-decoration: none; align-items: center; }
.motif-row:last-child { border-bottom: 1px solid var(--line); }
.motif-row h3 { font-size: clamp(28px, 3vw, 38px); }
.motif-row p { margin: 8px 0 0; color: var(--muted); font-size: 14.5px; }
.motif-strip { display: flex; gap: 10px; overflow: hidden; }
.motif-strip .ms { flex: 0 0 auto; width: 92px; height: 116px; overflow: hidden; background: #E2DBC4; }
.motif-strip img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: filter .3s; }
.motif-row:hover .motif-strip img { filter: none; }
.motif-span { font-size: 12.5px; color: var(--gold); letter-spacing: .06em; margin-top: 10px; display: block; }
@media (max-width: 760px) { .motif-row { grid-template-columns: 1fr; gap: 18px; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 22px; max-width: 760px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); background: var(--paper); padding: 12px 14px; font-size: 15px; border-radius: var(--radius);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid rgba(178,157,104,.45); border-color: var(--green-2); }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 4px; accent-color: var(--green); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 22px; }
legend { font-family: var(--serif); font-size: 28px; margin-bottom: 6px; padding: 0; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 28px 0; counter-reset: st; }
.step { padding: 18px 16px 0 0; border-top: 2px solid var(--line); font-size: 13.5px; color: var(--muted); counter-increment: st; }
.step::before { content: "0" counter(st); display: block; font-family: var(--serif); font-size: 22px; color: var(--line); margin-bottom: 4px; }
.step.done { border-top-color: var(--gold-2); color: var(--ink); }
.step.done::before { color: var(--gold); }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } }

.side-note { background: var(--paper); border: 1px solid var(--line); padding: 26px; }
.side-note h3 { margin-bottom: 10px; }
.side-note ul { padding-left: 18px; margin: 0; font-size: 14.5px; color: var(--ink-2); }
.side-note li { margin-bottom: 8px; }
.submit-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.submit-grid aside { position: sticky; top: 96px; display: grid; gap: 20px; }
@media (max-width: 900px) { .submit-grid { grid-template-columns: 1fr; } .submit-grid aside { position: static; } }

/* ---------- review desk ---------- */
.queue { display: grid; gap: 16px; }
.qitem { display: grid; grid-template-columns: 120px 1fr auto; gap: 22px; padding: 20px; background: var(--paper); border: 1px solid var(--line); align-items: start; }
.qitem .qimg { width: 120px; height: 120px; background: #E2DBC4; overflow: hidden; }
.qitem .qimg img { width: 100%; height: 100%; object-fit: cover; }
.qitem h3 { font-size: 24px; margin-bottom: 4px; }
.qitem p { margin: 4px 0; font-size: 14px; color: var(--ink-2); }
.qactions { display: flex; flex-direction: column; gap: 8px; }
.qstatus { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.qstatus.submitted { color: #7D5E25; } .qstatus.published { color: var(--gold); } .qstatus.info { color: #2C5A7A; } .qstatus.rejected { color: #8A3F25; }
@media (max-width: 760px) { .qitem { grid-template-columns: 80px 1fr; } .qitem .qimg { width: 80px; height: 80px; } .qactions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }

/* ---------- community & support ---------- */
.people { display: grid; gap: 0; }
.person { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold-2); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 22px; }
.person b { font-family: var(--serif); font-size: 21px; font-weight: 500; display: block; line-height: 1.1; }
.person small { color: var(--muted); }
.person .finds { font-family: var(--serif); font-size: 26px; color: var(--gold); }
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.channel { border: 1px solid rgba(255,255,255,.18); padding: 24px; }
.channel h3 { font-size: 24px; margin-bottom: 6px; }
.channel p { font-size: 14px; margin: 0 0 16px; }
@media (max-width: 760px) { .channels { grid-template-columns: 1fr; } }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); }
.tier { padding: 34px 30px; display: flex; flex-direction: column; gap: 14px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier.feature { background: var(--green); color: var(--green-ink); }
.tier.feature h3, .tier.feature .price { color: #fff; }
.tier.feature .eyebrow { color: var(--gold-2); }
.tier .price { font-family: var(--serif); font-size: 46px; line-height: 1; }
.tier .price small { font-size: 16px; color: var(--muted); }
.tier.feature .price small { color: #B5AE98; }
.tier ul { padding-left: 18px; margin: 0; font-size: 14.5px; flex: 1; }
.tier li { margin-bottom: 8px; }
@media (max-width: 860px) { .tiers { grid-template-columns: 1fr; } .tier + .tier { border-left: 0; border-top: 1px solid var(--line); } }
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.roadmap > div { border-top: 2px solid var(--gold); padding-top: 18px; }
.roadmap h3 { margin-bottom: 8px; }
.roadmap p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }

.legend-list { display: grid; gap: 0; }
.legend-list > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 640px) { .legend-list > div { grid-template-columns: 1fr; gap: 6px; } }
.prose { max-width: 66ch; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose p { margin: 0 0 1.1em; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #C7C0AA; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr 1.3fr; gap: 40px; }
.site-footer h4 { font-family: var(--sans); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 16px; font-weight: 600; }
.site-footer a { display: block; text-decoration: none; font-size: 14.5px; padding: 4px 0; color: #E2DBC4; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-quiet { color: #8F897A; font-size: 13px; }
.footer-note { font-size: 14px; max-width: 34ch; margin-top: 18px; }
.newsletter p { font-size: 14px; margin: 0 0 14px; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; background: transparent; border: 1px solid rgba(255,255,255,.25); padding: 11px 12px; color: #fff; }
.nl-done { color: var(--gold-2); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 22px; font-size: 12px; color: #8F897A; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 17, 17, .97); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px var(--gutter); color: #EBE8DD; border-bottom: 1px solid rgba(255,255,255,.1); }
.lb-title { font-family: var(--serif); font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.lb-controls button { background: none; border: 1px solid rgba(255,255,255,.22); color: #EBE8DD; min-width: 38px; height: 36px; padding: 0 10px; cursor: pointer; }
.lb-controls button:hover { background: rgba(255,255,255,.08); }
.lb-level { font-size: 12px; min-width: 46px; text-align: center; color: #B5AE98; }
.lb-stage { flex: 1; overflow: hidden; position: relative; cursor: grab; touch-action: none; }
.lb-stage:active { cursor: grabbing; }
.lb-stage img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; }
.lb-hint { text-align: center; font-size: 12px; color: #8F897A; margin: 0; padding: 10px; }
@media (max-width: 560px) { .lb-title { display: none; } .lb-bar { justify-content: center; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .3s; z-index: 120; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.fade-in { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ======================================================================
   Mobile optimisation (phones and small tablets)
   ====================================================================== */
.pb-short { display: none; }
.atlas-card-slot-mobile { display: none; }

@media (max-width: 760px) {
  /* banner + header */
  .pb-long { display: none; }
  .pb-short { display: inline; }
  .proto-banner { font-size: 11.5px; padding: 6px var(--gutter); }
  .header-inner { min-height: 64px; }
  .logo img { height: 42px; }
  .nav-toggle { min-height: 40px; padding: 8px 16px; }
  .site-nav { max-height: calc(100vh - 100px); overflow-y: auto; box-shadow: 0 24px 40px -20px rgba(23,23,23,.35); }

  /* rhythm */
  .section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .page-head { padding: 36px 0 24px; }
  .section-head { margin-bottom: 26px; gap: 16px; }
  .lede { font-size: 19px; }

  /* hero */
  .hero { padding: 28px 0 44px; }
  .hero h1 { margin-bottom: 20px; }
  .hero .lede { margin-bottom: 26px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hero-actions .btn { justify-content: center; }
  .hero-figure figcaption { flex-direction: column; gap: 8px; }
  .hero-figure figcaption strong { font-size: 17px; }
  .stat { padding: 20px 14px; }
  .stat b { font-size: 34px; }

  /* collection: two-up cards */
  .grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card { gap: 10px; }
  .card h3 { font-size: 17px; line-height: 1.2; }
  .card .card-sub { font-size: 12.5px; }
  .card-meta { font-size: 11.5px; line-height: 1.4; }
  .card-img .type-flag { left: 6px; top: 6px; font-size: 0; padding: 5px; gap: 0; }   /* dot only */
  .card-img .type-flag .dot { width: 9px !important; height: 9px !important; }
  .noimg { padding: 10px; font-size: 11.5px; }
  .noimg strong { font-size: 16px; }

  /* collection toolbar: one scrolling chip row + one row of selects */
  .toolbar { gap: 12px; padding: 14px 0; margin-bottom: 28px; }
  .toolbar .search { flex-basis: 100%; }
  .toolbar .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); width: calc(100% + 2 * var(--gutter)); scrollbar-width: none; }
  .toolbar .chips::-webkit-scrollbar { display: none; }
  .toolbar select { flex: 1 1 0; min-width: 0; padding: 9px 8px; }
  .result-count { margin: -12px 0 20px; }

  /* iOS zooms into inputs under 16px: keep every field at 16px */
  input, select, textarea, .toolbar input[type=search], .field input, .field textarea, .field select, .nl-row input { font-size: 16px !important; }

  /* work page */
  .work-top { padding: 20px 0 36px; gap: 24px; }
  .work-figure .frame { padding: 8px; }
  .work-info h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .work-artist { font-size: 19px; margin-bottom: 18px; }
  .tombstone { grid-template-columns: 96px 1fr; font-size: 14px; }
  .sky-note { padding: 16px 18px; }
  .sky-note p { font-size: 18px; }
  .share-row .btn { flex: 1 1 auto; justify-content: center; }
  .reading { padding: 24px 20px; }
  .poll-opt { padding: 15px 14px; font-size: 14.5px; min-height: 52px; align-items: center; }
  .pager strong { font-size: 16px; }
  .pager a { max-width: 48%; }

  /* atlas */
  .atlas { gap: 8px; }
  .atlas-globe { max-width: 100%; margin: 0 -6px; width: calc(100% + 12px); }
  .atlas-panel { gap: 14px; }
  .atlas-count b { font-size: 48px; }
  .atlas-panel .atlas-card-slot { display: none; }       /* card moves under the timeline */
  .atlas-card-slot-mobile { display: block; margin-top: 18px; }
  .atlas-legend { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .atlas-legend::-webkit-scrollbar { display: none; }
  .timeline { margin-top: 18px; }
  .tl-head { gap: 10px; }
  .tl-year { font-size: 30px; }
  .tl-year small { display: block; margin: 6px 0 0; font-size: 10.5px; }
  .tl-play { padding: 10px 14px; }
  .tl-tick { width: 11px; height: 11px; margin-left: -5.5px; top: 35px; border-width: 1.5px; }
  .tl-tip { display: none; }
  .tl-eras { font-size: 10.5px; }
  .tl-eras span:nth-child(n) { display: block; }
  .tl-eras span:nth-child(2), .tl-eras span:nth-child(3), .tl-eras span:nth-child(5), .tl-eras span:nth-child(7) { display: none; }
  .tl-note { font-size: 11.5px; }

  /* motifs */
  .motif-row { padding: 26px 0; gap: 14px; }
  .motif-strip { overflow-x: auto; scrollbar-width: none; }
  .motif-strip .ms { width: 78px; height: 98px; }

  /* forms */
  .steps { margin: 20px 0; }
  .submit-grid { gap: 32px; }

  /* footer: logo + newsletter full width, link lists side by side */
  .site-footer { padding: 52px 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .footer-grid > :first-child, .footer-grid > .newsletter { grid-column: 1 / -1; }
  .logo-footer { height: 54px; }
  .footer-base { margin-top: 36px; }

  /* lightbox */
  .lb-controls button { min-width: 42px; height: 40px; }
}

@media (max-width: 380px) {
  .grid { gap: 20px 10px; }
  .card h3 { font-size: 16px; }
  .logo img { height: 38px; }
}
