/* Editorial shell: two interface accents; the seven tool colours retain their data meaning. */
:root { --accent: var(--t-reed); --accent-2: var(--t-carved); }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--paper); }
a { color: inherit; text-underline-offset: 4px; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px; background: var(--sheet); }
.skip-link:focus { top: 12px; }
.masthead { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; padding: 12px max(24px, calc((100vw - 1280px) / 2)); border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--paper) 96%, transparent); backdrop-filter: blur(16px); }
.wordmark { display: flex; align-items: center; gap: 6px; white-space: nowrap; font: 500 26px/1 var(--f-display); text-decoration: none; }
.brand-mark { display: grid; place-items: center; background: var(--accent); color: var(--paper); width: 34px; height: 34px; border-radius: 50%; font-style: italic; margin-right: 6px; }
.primary-nav { display: flex; gap: 28px; }
.primary-nav a { padding: 10px 0; text-decoration: none; color: var(--ink-2); font-size: .9rem; }
.primary-nav a[aria-current] { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 10px; }
.mast-search { background: transparent; border: 1px solid var(--rule); border-radius: 99px; padding: 9px 16px; cursor: pointer; font-size: .82rem; }
.mast-search span { margin-left: 20px; }
.lang-switch { position: relative; flex: none; }
.lang-switch summary { list-style: none; cursor: pointer; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2); padding: 9px 14px; font: 500 .78rem/1.3 var(--f-body); border-radius: 99px; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover { color: var(--ink); border-color: var(--ink); }
.lang-switch[open] summary { color: var(--ink); border-color: var(--ink); }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 50; display: grid; min-width: 150px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px #00000012; }
.lang-menu a { padding: 9px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.lang-menu a:hover { background: var(--band); }
.lang-menu a.is-current { font-weight: 600; }
.lang-menu a.is-current::after { content: '· current'; margin-left: 6px; font-weight: 400; font-size: .76rem; color: var(--ink-2); }
.lang-menu-rule { height: 1px; margin: 5px 4px; background: var(--rule); }
.page { padding-top: 46px; max-width: 1360px; }
.page > [data-page] { scroll-margin-top: 100px; }
.btn { border-radius: 99px; background: var(--accent); border-color: var(--accent); color: var(--sheet); min-height: 44px; padding: 11px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; text-decoration: none; }
.btn:hover { background: color-mix(in srgb, var(--accent) 85%, var(--ink)); }
.btn.ghost { color: var(--ink); background: transparent; }
.go { color: inherit; text-decoration-color: var(--accent); }
.hero { max-width: none; position: relative; padding-top: clamp(20px, 3vw, 36px); }
.hero::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  inset: -8% -4% auto -4%; height: 85%;
  background: radial-gradient(ellipse 55% 60% at 80% 10%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%);
}
/* Flex, not grid: each side is sized to what its content actually needs, so the
   gap between them is the real gap — not leftover space in an oversized track. */
.hero-row { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: clamp(28px, 3vw, 52px); }
.hero-copy { display: grid; gap: 26px; flex: 0 1 660px; min-width: 0; }
.hero-copy h1 { font-size: clamp(3.5rem, 6.7vw, 6.2rem); line-height: .98; letter-spacing: -.035em; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .dek { font-size: clamp(1.1rem, 1.3vw, 1.3rem); max-width: 54ch; line-height: 1.65; color: var(--ink); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.hero-definition { font-size: .9rem; color: var(--ink-2); max-width: 52ch; border-left: 2px solid var(--accent-2); padding-left: 12px; }
.hero-specimen { display: flex; flex-direction: column; flex: 0 1 480px; max-height: none; aspect-ratio: auto; background: var(--sheet); border: 1px solid var(--rule); padding: 20px; box-shadow: 0 3px 9px #00000004, 0 18px 45px #00000005; transition: transform .15s ease-out, box-shadow .3s ease; transform-style: preserve-3d; will-change: transform; }
.hero-specimen:hover { box-shadow: 0 8px 20px #00000006, 0 30px 60px #00000008; }
.object-index { font: 400 .63rem var(--f-data); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.hero-object { display: block; background: none; border: 0; width: 100%; padding: 12px 0; cursor: zoom-in; }
.hero-object img { width: 100%; aspect-ratio: 468 / 624; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero-specimen:hover .hero-object img { transform: scale(1.035); }
[data-theme="dark"] .hero-object img { mix-blend-mode: normal; }
.hero-object-caption { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--rule); padding-top: 16px; font: 400 1.3rem/1.15 var(--f-display); }
.hero-object-caption span:last-child { text-align: right; font: 400 .61rem/1.6 var(--f-data); color: var(--ink-2); align-self: end; }

/* Reveal choreography: a staggered, understated entrance for the hero only. */
@keyframes hero-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-draw { to { transform: scaleX(1); } }
.hero-copy > * { opacity: 0; animation: hero-rise .7s cubic-bezier(.22,.9,.3,1) both; }
.hero-copy > .eyebrow { animation-delay: .05s; }
.hero-copy > h1 { animation-delay: .15s; }
.hero-copy > .dek { animation-delay: .38s; }
.hero-copy > .hero-actions { animation-delay: .52s; }
.hero-copy > .hero-definition { animation-delay: .64s; }
.hero-specimen { opacity: 0; animation: hero-rise .8s .32s cubic-bezier(.22,.9,.3,1) both; }
.hero-emphasis { position: relative; display: inline-block; }
.hero-emphasis::after {
  content: ''; position: absolute; left: 1px; right: 3px; bottom: -2px; height: 2px;
  background: var(--accent); transform-origin: left; transform: scaleX(0);
  animation: hero-draw .6s .95s cubic-bezier(.65,0,.35,1) both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-specimen, .hero-emphasis::after { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* Mouse interactions: words stretch like a pressed nib; CTAs nudge their arrows. */
.hw { display: inline-block; transition: transform .35s cubic-bezier(.2,.8,.2,1), color .35s; transform-origin: bottom center; }
.hero-copy h1 .hw:not(.hero-emphasis):hover { transform: scale(1.06, 1.16) translateY(-2px); color: var(--accent); }
.hero-emphasis:hover { transform: scale(1.04, 1.1); }
.hero-actions .btn, .hero-actions .go { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.hero-actions .btn span, .hero-actions .go span { display: inline-block; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.hero-actions .btn:hover { transform: translateY(-2px); }
.hero-actions .btn:hover span { transform: translate(3px, -3px); }
.hero-actions .go:hover span { transform: translateX(4px); }
.reading-guide { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin: 36px 0 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 20px 0; }
.stat-row { font-size: .78rem; }
.editorial-note { font: italic 1.2rem var(--f-display); color: var(--ink-2); }
.walks { padding-top: 40px; }
.section-head h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.section-head p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; }
.walk-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.walk-card { display: flex; flex-direction: column; text-align: left; background: var(--sheet); border: 1px solid var(--rule); padding: 20px; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.walk-card:hover { transform: translateY(-4px); box-shadow: 0 2px 6px #00000006, 0 12px 24px #00000008; }
.walk-topline { display: flex; justify-content: space-between; gap: 8px; font: 400 .6rem/1.5 var(--f-data); color: var(--ink-2); }
.walk-glyph { display: block; font-size: 5rem; height: 132px; line-height: 132px; color: var(--accent); }
.walk-card:nth-child(2) .walk-glyph { color: var(--accent-2); }
.walk-card h3 { font-size: 1.8rem; line-height: 1.1; margin: 6px 0 10px; }
.walk-card p { font-size: .87rem; color: var(--ink-2); flex: 1; }
.walk-action { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; font-size: .82rem; }
.walk-reader { margin-top: 24px; background: var(--sheet); padding: 28px; border: 1px solid var(--accent); scroll-margin-top: 110px; }
.walk-reader-bar, .walk-pagination { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.walk-reader progress { width: 100%; height: 3px; accent-color: var(--accent); margin: 20px 0; }
.walk-reading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.walk-reader h3 { font-size: 2.2rem; line-height: 1.1; margin: 20px 0; }
.walk-reader h4 { font: 400 1.5rem var(--f-display); margin: 12px 0; }
.walk-reader p { margin-bottom: 16px; max-width: 65ch; }
.walk-pagination { margin-top: 24px; }
.walk-answer { margin: 20px 0; }
.walk-note { font-size: .8rem; color: var(--ink-2); }
.return-walk { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); border: 0; border-radius: 99px; padding: 12px 22px; z-index: 45; box-shadow: 0 4px 20px #0002; cursor: pointer; white-space: nowrap; }
.strip { gap: 34px 20px; padding: 12px 0 22px; margin: 30px 0 0; }
.strip figure { min-width: 0; }
.strip-open { background: none; border: none; text-align: left; width: 100%; cursor: pointer; padding: 0; }
.strip .glyph { height: 85px; font-size: 2.8rem; }
.library-index { position: static; margin: 24px 0 36px; white-space: normal; border: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0; background: none; }
.library-index a { display: flex; justify-content: space-between; border: 1px solid var(--rule); padding: 16px; background: var(--sheet); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 5px; font: 400 .9rem var(--f-body); text-transform: none; letter-spacing: 0; }
.library-index a::after { content: '↗'; color: var(--accent); }
.library-index a.is-active { border-color: var(--accent); color: var(--accent); }
.page > .gx, .page > .measure, .page > .practice, .page > .quiz-section, .page > .terms, .page > .now { margin-top: 28px; }
.studio-nav { display: flex; gap: 24px; border-bottom: 1px solid var(--rule); padding-bottom: 16px; }
.studio-nav a { font-size: .9rem; text-decoration-color: var(--rule); }
.studio-nav a.is-active { color: var(--accent); text-decoration-color: var(--accent); }
.atlas-view-tabs { display: flex; gap: 6px; padding: 5px; background: var(--band); border: 1px solid var(--rule); border-radius: 99px; width: fit-content; margin-bottom: 22px; }
.atlas-view-tabs button { border: 0; border-radius: 99px; background: transparent; padding: 9px 20px; cursor: pointer; font-size: .88rem; }
.atlas-view-tabs button[aria-selected="true"] { background: var(--sheet); color: var(--accent); box-shadow: 0 1px 4px #0001; text-decoration: underline; text-underline-offset: 4px; }
.atlas-search { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 14px; width: 100%; }
.atlas-search > label:first-child { width: 100%; font: 400 .7rem var(--f-data); }
.atlas-search input { flex: 1 1 250px; min-width: 0; width: auto; background: var(--sheet); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; font: inherit; }
.atlas-search output { order: 4; width: 100%; font: 400 .66rem var(--f-data); color: var(--ink-2); padding: 4px 0; }
.atlas-search label:has(select) { display: flex; align-items: center; gap: 10px; font-size: .8rem; }
select { max-width: 100%; min-height: 44px; padding: 8px 30px 8px 12px; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 8px; font: inherit; }
.advanced-filters { width: 100%; padding: 6px 0; }
.advanced-filters summary { cursor: pointer; font-size: .82rem; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.advanced-filters .filter-row { margin-top: 14px; }
.search-results { width: 100%; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; }
.search-results button { text-align: left; }
.era-toolbar { display: flex; justify-content: end; margin: 6px 0 12px; }
.era-camera { display: flex; flex-wrap: wrap; gap: 6px; }
.era-camera button { background: var(--sheet); border: 1px solid var(--rule); border-radius: 99px; padding: 8px 14px; min-height: 40px; cursor: pointer; font-size: .76rem; }
.era-camera button:hover { color: var(--accent); border-color: var(--accent); }
.era-workspace { display: grid; grid-template-columns: minmax(0,1fr) 280px; border: 1px solid var(--rule); background: var(--sheet); }
.era3d-stage { height: 460px; border: 0; background: radial-gradient(ellipse at 50% 90%, color-mix(in srgb,var(--accent) 7%,var(--sheet)),var(--sheet)); }
.era3d-stage canvas { height: 100%; touch-action: pan-y; }
.era-loading { position: absolute; inset: 40% 10% auto; color: var(--ink-2); text-align: center; font-size: .85rem; }
.era-selection { border-left: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.selection-date { font: italic 1.6rem var(--f-display); color: var(--accent-2); }
.era-selection h3 { font-size: 2rem; line-height: 1.08; }
.era-selection > p { font-size: .78rem; color: var(--ink-2); }
.era-selection .selection-note { font-size: .88rem; flex: 1; }
.era-selection .btn { font-size: .8rem; padding-inline: 12px; }
.selection-pager, .era-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.era-footer { padding: 8px 0; font: 400 .65rem/1.5 var(--f-data); color: var(--ink-2); }
.era-footer .go { font-size: .72rem; white-space: nowrap; }
.era3d-caption { font-size: .7rem; }
.era-tooltip { position: absolute; z-index: 10; max-width: 220px; pointer-events: none; padding: 8px 12px; font-size: .78rem; background: var(--ink); color: var(--paper); border-radius: 6px; box-shadow: 0 4px 20px #0002; }
.era-lane-label { position: absolute; pointer-events: none; color: var(--ink-2); font: 500 9px var(--f-data); padding: 2px 5px; background: color-mix(in srgb,var(--sheet) 88%,transparent); border-radius: 3px; white-space: nowrap; }
.entry-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.entry-card { display: flex; flex-direction: column; gap: 10px; text-align: left; border: 1px solid var(--rule); border-top: 2px solid var(--c); padding: 20px; background: var(--sheet); cursor: pointer; }
.entry-card strong { font: 400 1.6rem/1.2 var(--f-display); }
.entry-card > span:not(.kicker) { color: var(--ink-2); font-size: .8rem; }
.entry-evidence { margin-top: auto; display: flex; justify-content: space-between; }
.list-note { font-size: .82rem; margin: 12px 0; color: var(--ink-2); }
.empty-state { padding: 36px; background: var(--sheet); border: 1px dashed var(--rule); }
.detail { border-top: 1px solid var(--rule); margin-top: 30px; scroll-margin-top: 100px; grid-template-columns: minmax(0,.9fr) minmax(0,1.2fr); }
.spec { align-content: start; grid-template-rows: auto; gap: 18px; height: fit-content; }
.specimen-label { font-size: .6rem; }
.collection-object { margin: 0; }
.collection-object button { border: 0; background: none; padding: 0; width: 100%; cursor: zoom-in; text-align: left; }
.collection-object img { display: block; width: 100%; max-height: 350px; object-fit: contain; }
.collection-object figcaption { font: 400 .61rem/1.6 var(--f-data); color: var(--ink-2); margin-top: 10px; }
.image-enlarge { display: block; margin-top: 8px; font-size: .76rem; text-decoration: underline; text-underline-offset: 3px; }
.spec:has(.collection-object) .spec-glyph { font-size: 3rem !important; }
.source-note { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 0; }
.source-note summary { cursor: pointer; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; font: 500 1.05rem var(--f-body); }
.source-note summary span { display: block; margin: 6px 0 0 17px; font-size: .78rem; color: var(--ink-2); text-decoration: none; }
.source-note p, .source-note a { display: block; font-size: 1rem; line-height: 1.65; max-width: 66ch; margin: 14px 0 0; }
.source-caveat { color: var(--ink-2); border-left: 2px solid var(--accent-2); padding-left: 14px; }
.entry-followup { background: var(--band); padding: 22px 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.entry-followup p { font-size: .98rem; line-height: 1.6; width: 100%; max-width: 66ch; }
.entry-followup .kicker { width: 100%; }
.entry-followup .go { font-size: 1rem; font-weight: 500; }
.pager button { border-radius: 99px; }
.object-dialog { width: min(1000px,94vw); max-height: 90vh; border: 1px solid var(--rule); color: var(--ink); background: var(--sheet); padding: 24px; }
.object-dialog::backdrop { background: #090d16cc; backdrop-filter: blur(5px); }
.dialog-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.dialog-bar h2 { font-size: 1.7rem; }
.object-viewport { overflow: auto; max-height: 60vh; background: var(--band); }
.object-viewport img { width: 100%; max-width: none; display: block; }
.zoom-control { display: flex; gap: 15px; margin: 15px 0; font-size: .85rem; }
.object-dialog > p, .object-dialog > a { font-size: .76rem; }
.desk { border: 1px solid var(--rule); padding: 20px; background: var(--sheet); }
.desk-side { padding-right: 12px; }
.drill, .desk-tools button { min-height: 44px; }
footer { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 40px; margin-top: 48px; padding: 24px 0; }
.footer-brand { font: 400 1.6rem var(--f-display); text-decoration: none; }
footer > p:nth-of-type(2) { max-width: 70ch; }
.translate-note { font-size: .68rem; color: var(--ink-2); max-width: 60ch; }
.theme-toggle { border-radius: 99px; }
@media (max-width: 980px) {
  .masthead { padding-inline: 24px; gap: 14px; }.primary-nav { gap: 18px; }.mast-search { font-size: 0; padding: 10px; }.mast-search span { font-size: 16px; margin: 0; }.lang-switch summary { padding: 10px 11px; }.lang-menu { right: auto; left: 0; }
  .hero-row { gap: 28px; }.hero-copy h1 { font-size: 4rem; }.hero-object img { max-height: 380px; }
  .walk-topline { flex-direction: column; }.library-index { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .era-workspace { grid-template-columns: minmax(0,1fr) 240px; }.era-selection { padding: 18px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 124px; }.masthead { min-height: 98px; flex-wrap: wrap; gap: 6px; padding: 10px 18px; }.wordmark { font-size: 24px; }.mast-search { order: 1; }.primary-nav { order: 2; width: 100%; justify-content: space-between; }.primary-nav a { padding: 4px 0 10px; font-size: .83rem; }.primary-nav a[aria-current] { text-underline-offset: 6px; }
  .page { padding: 30px 18px; }.hero-row { flex-direction: column; }.hero-copy, .hero-specimen { flex: 1 1 auto; width: 100%; }.hero-copy h1 { font-size: clamp(3.5rem,12vw,5rem); }.hero .dek { font-size: 1rem; }.hero-copy { gap: 20px; }.hero-specimen { aspect-ratio: auto; padding: 18px; }.hero-object img { max-height: 340px; }.hero-definition { display: none; }
  .reading-guide { margin-top: 24px; }.stat-row { font-size: .6rem; line-height: 1.8; }.editorial-note { font-size: 1rem; }
  .walk-cards { grid-template-columns: 1fr; gap: 14px; }.walk-card { display: grid; grid-template-columns: 76px 1fr; gap: 8px 14px; padding: 18px; }.walk-topline { grid-column: 1/-1; flex-direction: row; }.walk-glyph { grid-row: 2/4; font-size: 3.8rem; height: 92px; line-height: 92px; }.walk-card h3 { font-size: 1.7rem; margin: 4px 0; }.walk-action { grid-column: 1/-1; margin: 6px 0 0; }.walk-reader { padding: 18px; }.walk-reading { grid-template-columns: 1fr; gap: 12px; }.walk-reader h3 { font-size: 1.9rem; }
  .library-index { grid-template-columns: repeat(2,minmax(0,1fr)); }.library-index a { padding: 14px 12px; }.studio-nav { gap: 16px; }.studio-nav a { font-size: .78rem; }
  .atlas-view-tabs { width: 100%; justify-content: space-between; }.atlas-view-tabs button { padding: 9px 12px; font-size: .8rem; }.atlas-search label:has(select) { width: 100%; }.atlas-search select { flex: 1; min-width: 0; }.search-results { grid-template-columns: 1fr; }
  .era-workspace { grid-template-columns: 1fr; }.era3d-stage { height: 350px; }.era-selection { border-left: 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.era-selection h3, .era-selection .selection-note { grid-column: 1/-1; }.era-selection h3 { font-size: 1.8rem; }.era-selection .selection-date { text-align: right; font-size: 1rem; }.era-selection .btn { grid-column: 1; }.era-selection .selection-pager { justify-content: end; }.era-selection .selection-pager button { font-size: .7rem; }.era-footer { align-items: start; }.era-camera button { padding: 8px 12px; }
  .entry-grid { grid-template-columns: 1fr; }.detail { grid-template-columns: 1fr; gap: 24px; }.facts { grid-template-columns: 1fr; gap: 4px; }.facts dd { margin-bottom: 8px; }.desk { padding: 12px; }.object-dialog { padding: 16px; }.dialog-bar h2 { font-size: 1.3rem; }footer { grid-template-columns: 1fr; gap: 12px; }.return-walk { bottom: 12px; font-size: .8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; }.js .reveal { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-object img { mix-blend-mode: normal; } }

.masthead .masthead-theme { position: static; border-radius: 99px; flex: none; }

/* An illuminated archive: cyan and lilac carry interaction; objects keep their own colours.
   This sub-palette follows the site's light/dark toggle, same pattern as :root in styles.css. */
#era3d {
  --ink: #15161A; --ink-2: #4B5160; --sheet: #FBFCFA; --paper: #EFF2EC;
  --rule: #D7DBD2; --band: #E6E9E1; --accent: #156B8A; --accent-2: #6A4FC0;
  background: var(--paper); color: var(--ink); padding: 24px; border: 1px solid var(--rule);
  border-radius: 24px; box-shadow: 0 3px 12px #15161A10, 0 28px 70px #15161A14;
  overflow: hidden; scroll-margin-top: 100px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #era3d {
    --ink: #edf3ff; --ink-2: #afbed4; --sheet: #112038; --paper: #091325;
    --rule: #31435d; --band: #192840; --accent: #83dfee; --accent-2: #bdadff;
    background: #091325; border-color: #334563;
    box-shadow: 0 3px 12px #06102112, 0 28px 70px #06102120;
  }
}
:root[data-theme="dark"] #era3d {
  --ink: #edf3ff; --ink-2: #afbed4; --sheet: #112038; --paper: #091325;
  --rule: #31435d; --band: #192840; --accent: #83dfee; --accent-2: #bdadff;
  background: #091325; border-color: #334563;
  box-shadow: 0 3px 12px #06102112, 0 28px 70px #06102120;
}
.era-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.era-intro h3 { font: 400 clamp(2rem,3.5vw,3.4rem)/1.05 var(--f-display); letter-spacing: -.02em; margin: 10px 0; }
.era-intro h3 em { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.era-intro p { color: var(--ink-2); font-size: .85rem; }
.era-intro .btn { flex: none; color: var(--sheet); }
.expedition-hub { display: flex; align-items: stretch; gap: 14px; padding: 20px 0 12px; }
.expedition-routes { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; flex: 1; }
.expedition-routes button { border: 1px solid var(--rule); border-radius: 14px; padding: 13px 15px; color: var(--ink); background: var(--band); cursor: pointer; text-align: left; font: 400 .9rem var(--f-body); transition: border-color .2s, background .2s; }
.expedition-routes button > span { color: var(--accent); margin-right: 5px; }
.expedition-routes button small { display: block; color: var(--ink-2); font-size: .67rem; margin: 5px 0 0 19px; }
.expedition-routes button[aria-pressed="true"], .expedition-routes button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--band)); text-decoration: underline; text-underline-offset: 4px; }
.passport-open { padding: 8px 20px; background: var(--band); border: 1px solid var(--rule); border-radius: 14px; color: var(--accent-2); font: 400 .72rem var(--f-body); cursor: pointer; }
.passport-count { display: block; font: 400 1.9rem var(--f-display); }.passport-count small { font-size: .9rem; }
#era3d .era-toolbar { margin: 2px 0 12px; }.era-camera button { min-width: 44px; }
#era3d .era-workspace { background: transparent; border-color: var(--rule); border-radius: 18px; overflow: hidden; grid-template-columns: minmax(0,1fr) 310px; }
#era3d .era3d-stage { height: 620px; background: radial-gradient(ellipse at 24% 24%, color-mix(in srgb, var(--accent) 22%, var(--sheet)) 0%, color-mix(in srgb, var(--accent) 10%, var(--band)) 35%, var(--paper) 80%); }
#era3d .era3d-stage::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 90px #07102088; pointer-events: none; }
#era3d .era3d-stage canvas { height: 100%; }
#era3d .era-aside { background: linear-gradient(145deg, var(--sheet), var(--band)); border-left: 1px solid var(--rule); overflow: auto; max-height: 620px; scrollbar-width: thin; }
#era3d .era-selection { border: 0; padding: 20px; gap: 9px; }
#era3d .era-selection h3 { font-size: 1.75rem; }
#era3d .era-selection .selection-note { font-size: .8rem; line-height: 1.6; }
#era3d .era-selection > .btn { min-height: 40px; padding: 9px 12px; color: var(--sheet); }
#era3d .selection-date { font-size: 1.15rem; }
.selection-object { width: 100%; padding: 0; background: transparent; border: 0; color: inherit; cursor: zoom-in; text-align: left; }
.selection-object img { width: 100%; height: 145px; object-fit: contain; padding: 8px; background: #e5e3dc; border-radius: 8px; }
.selection-object span { display: block; font-size: .68rem; color: var(--accent); margin: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
#era3d .selection-pager button { font-size: .7rem; min-height: 35px; }
#era3d .era-footer { font-size: .64rem; margin: 8px 0; }
#era3d .scale-note { color: var(--ink-2); font-size: .68rem; margin-top: 16px; }
#era3d .era-loading { color: var(--ink); z-index: 3; background: var(--sheet); padding: 16px; }
#era3d .era-tooltip { color: #091325; background: #e8f5ff; }
.expedition-card { border-top: 1px solid var(--rule); padding: 20px; background: var(--band); }
.expedition-card-top { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
.expedition-card-top .go { min-width: 32px; min-height: 32px; font-size: 1.3rem; }
.expedition-card h4 { font: 400 1.4rem/1.2 var(--f-display); margin: 10px 0 12px; }
.expedition-card progress { display: block; width: 100%; height: 3px; margin: 8px 0 16px; accent-color: var(--accent-2); }
.expedition-card .go { color: var(--accent-2); font-size: .76rem; }
.expedition-answers { display: grid; gap: 8px; margin: 15px 0 8px; }
.expedition-answers button { background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; color: var(--ink); padding: 11px; text-align: left; cursor: pointer; font-size: .8rem; line-height: 1.5; }
.expedition-answers button:hover { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent-2) 16%, var(--sheet)); }
.expedition-answers button:disabled { opacity: .8; cursor: default; }
.expedition-feedback { font-size: .77rem; line-height: 1.55; color: var(--ink-2); }.expedition-feedback:empty { display: none; }
.expedition-card .btn { margin-top: 10px; width: 100%; font-size: .77rem; color: var(--sheet); }.expedition-card > .go { margin-top: 14px; }
.expedition-seal { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid var(--accent-2); outline: 1px dashed var(--ink-2); outline-offset: -7px; border-radius: 50%; font-size: 3rem; color: var(--accent-2); margin: 18px auto; animation: seal-arrive .7s ease-out both; }
@keyframes seal-arrive { from { opacity: 0; transform: scale(.65) rotate(-30deg); } to { opacity: 1; transform: none; } }
.era-landmarks { margin-top: 20px; }.landmark-strip { display: flex; gap: 10px; overflow-x: auto; padding: 10px 2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.landmark-strip button { flex: 0 0 135px; padding: 8px; text-align: left; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); border-radius: 12px; cursor: pointer; scroll-snap-align: start; }
.landmark-strip img { display: block; width: 100%; height: 66px; object-fit: contain; background: #e5e3dc; border-radius: 5px; }.landmark-strip span { display: block; font-size: .68rem; line-height: 1.35; margin: 8px 0 3px; }
.landmark-strip [aria-pressed="true"] { border-color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }.landmark-strip button:hover { border-color: var(--accent-2); }
.passport-dialog { max-width: 900px; width: 94vw; max-height: 90vh; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink); padding: 28px; border-radius: 20px; }
.passport-dialog::backdrop { background: #080f22cc; backdrop-filter: blur(8px); }.passport-dialog > p { font-size: .88rem; color: var(--ink-2); }
.passport-pages { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin: 24px 0; }.passport-pages section { border: 1px solid var(--rule); border-radius: 14px; padding: 20px; }.passport-pages h3 { font: 400 1.5rem var(--f-display); margin: 12px 0; }.passport-pages ul { list-style: none; padding: 0; margin: 16px 0; }.passport-pages li { font-size: .78rem; margin: 8px 0; }.passport-seal { display: grid; place-items: center; width: 68px; height: 68px; border: 1px dashed var(--rule); border-radius: 50%; color: var(--ink-2); font-size: 2.4rem; }.passport-seal.earned { color: var(--accent); border-color: var(--accent); }.passport-note { border-top: 1px solid var(--rule); padding-top: 16px; }
.walk-photo { width: 100%; height: 190px; object-fit: contain; margin: 16px 0; background: var(--band); }
.walk-artifact { background: var(--band); border: 1px solid var(--rule); padding: 12px; margin: 12px 0; width: 100%; cursor: zoom-in; text-align: left; }.walk-artifact img { width: 100%; height: 230px; object-fit: contain; }.walk-artifact span { display: block; text-decoration: underline; font-size: .76rem; margin-top: 6px; }
.object-caveat { margin: 12px 0; border-left: 2px solid var(--accent-2); padding-left: 12px; }
@media (max-width: 1050px) { #era3d { padding: 18px; } #era3d .era-workspace { grid-template-columns: minmax(0,1fr) 270px; }.expedition-routes button { padding: 11px; }.expedition-routes button small { display: none; }.passport-open { padding-inline: 12px; } }
@media (max-width: 700px) {
  #era3d { margin-inline: -8px; padding: 14px; border-radius: 18px; }.era-intro { align-items: start; flex-direction: column; gap: 15px; }.era-intro h3 { font-size: 2.3rem; }.era-intro p { font-size: .78rem; }.era-intro .btn { width: 100%; }
  .expedition-hub { flex-direction: column; gap: 8px; padding-top: 14px; }.expedition-routes { gap: 5px; }.expedition-routes button { font-size: .72rem; padding: 10px 8px; }.expedition-routes button > span { display: none; }.passport-open { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; }.passport-count { font-size: 1.3rem; }
  #era3d .era-workspace { grid-template-columns: 1fr; }#era3d .era3d-stage { height: 410px; }#era3d .era-aside { border-left: 0; border-top: 1px solid var(--rule); max-height: none; overflow: visible; }
  #era3d .era-selection { padding: 16px; display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 8px 12px; }#era3d .era-selection > .kicker, #era3d .era-selection > .selection-date { grid-column: 1/-1; text-align: left; }.selection-object { grid-column: 1; grid-row: 3/6; }.selection-object img { height: 100px; padding: 4px; }#era3d .era-selection h3 { grid-column: 2; font-size: 1.5rem; }#era3d .era-selection > p:not(.selection-note), #era3d .era-selection .ev-tag { grid-column: 2; }#era3d .era-selection .selection-note { grid-column: 1/-1; }#era3d .era-selection > .btn { grid-column: 1/-1; }#era3d .era-selection .selection-pager { grid-column: 1/-1; justify-content: space-between; }
  .expedition-card { padding: 18px; }.expedition-card h4 { font-size: 1.55rem; }.expedition-answers { grid-template-columns: 1fr 1fr; }.era-camera { gap: 4px; }.era-camera button { padding: 8px 10px; min-width: 40px; font-size: .68rem; }
  .passport-pages { grid-template-columns: 1fr; }.passport-dialog { padding: 18px; }.passport-dialog .dialog-bar { align-items: start; }.passport-dialog .dialog-bar h2 { font-size: 1.7rem; }
  .walk-photo { grid-column: 1; grid-row: 2/4; height: 96px; margin: 0; }.walk-artifact img { height: 200px; }
}
@media (prefers-reduced-motion: reduce) { .expedition-seal { animation: none; } }
#era3d.is-expedition .era-selection .selection-note,
#era3d.is-expedition .era-selection > .btn,
#era3d.is-expedition .era-selection .selection-pager,
#era3d.is-expedition .era-selection > .ev-tag,
#era3d.is-expedition .era-selection > p:not(.selection-note) { display: none; }
#era3d.is-expedition .era-selection { padding: 16px 20px 8px; gap: 6px; }
#era3d.is-expedition .selection-object img { height: 100px; }
#era3d.is-expedition .era-selection > .kicker { display: none; }
#era3d.is-expedition .era-selection h3 { font-size: 1.35rem; }
#era3d.is-expedition .expedition-card { padding-top: 12px; }
@media(min-width:701px) { #era3d.is-expedition .era3d-stage, #era3d.is-expedition .era-aside { height: 740px; max-height: 740px; } }
#era3d .no-webgl { height: 180px !important; }
@media(max-width:700px) { #era3d .era-camera { display: grid; width: 100%; grid-template-columns: repeat(4,1fr); }#era3d .era-camera [data-camera="overview"], #era3d .era-camera [data-camera="focus"] { grid-column: span 2; }#era3d .era-camera button { min-height: 44px; } }
.era-workspace { scroll-margin-top: 110px; }
@media(max-width:700px) { #era3d.is-expedition .era-selection { display: flex; flex-direction: column; gap: 5px; padding: 12px 18px; }#era3d.is-expedition:not(:has(.no-webgl)) .era-selection .selection-object { display: none; }.era-workspace { scroll-margin-top: 120px; } }


#era3d .era3d-stage { background: radial-gradient(ellipse 80% 60% at 30% 18%, color-mix(in srgb, var(--accent) 32%, var(--sheet)) 0%, color-mix(in srgb, var(--accent) 16%, var(--band)) 38%, var(--paper) 72%, var(--paper) 100%); }
#era3d .era3d-stage::before { content: ''; position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent); pointer-events: none; z-index: 1; }
#era3d .era-camera { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; border-radius: 999px; background: #0a1530cc; border: 1px solid #64d9ee33; backdrop-filter: blur(12px); box-shadow: 0 10px 30px #00000066; width: max-content; max-width: calc(100% - 24px); }
#era3d .era-camera button { border: 0; border-radius: 999px; background: transparent; color: #e7f6fb; padding: 9px 16px; min-width: 44px; min-height: 40px; font: 500 .82rem var(--f-body); cursor: pointer; transition: background .2s; }
#era3d .era-camera button:hover, #era3d .era-camera button:focus-visible { background: #64d9ee2e; outline: none; }
#era3d .era-camera button[data-camera="overview"], #era3d .era-camera button[data-camera="focus"] { background: #64d9ee1f; }
#era3d .era-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#era3d .era-footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

#era3d .panel-toggle { border: 0; border-radius: 999px; background: transparent; color: #e7f6fb; padding: 9px 16px; min-height: 40px; font: 500 .82rem var(--f-body); cursor: pointer; }
#era3d .panel-toggle:hover, #era3d .panel-toggle:focus-visible { background: #64d9ee2e; outline: none; }
#era3d .era-workspace.panel-hidden { grid-template-columns: minmax(0,1fr); }
#era3d .era-workspace.panel-hidden .era-aside { display: none; }
#era3d .era-workspace .era3d-stage { min-height: 620px; }

.tour-bar { display: grid; gap: 12px; margin: 14px 0 6px; padding: 14px; border: 1px solid var(--rule); border-radius: 18px; background: var(--sheet); }
.tour-chips, .tour-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tour-chip, .tour-btn { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font: 500 .85rem var(--f-body); cursor: pointer; }
.tour-chip[aria-pressed="true"], .tour-play[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.tour-btn:hover, .tour-chip:hover { border-color: var(--ink); }
.tour-note { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }

@media (max-width: 760px) {
  #era3d .era-workspace .era3d-stage { min-height: 420px; height: 62vh; }
  #era3d .era-camera { bottom: 10px; gap: 4px; padding: 5px; }
  #era3d .era-camera button, #era3d .panel-toggle { min-height: 44px; padding: 8px 11px; font-size: .78rem; }
  #era3d .tour-bar { padding: 10px; }
  .primary-nav { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
}
