/* lunar.quest — Selenographic Bureau
   Palette
   -------
   #0a0d12  ink (deep night)
   #11161e  ink-soft
   #1b2230  ink-rule
   #c8c1ad  parchment
   #e8e3d6  parchment-bright
   #6b6757  ash (mid grey-warm)
   #2f3543  slate
   #b8a072  brass (single accent)
   #d9c089  brass-bright
   #8aa1b8  cold light (hairline accent)
*/

:root {
    --ink: #0a0d12;
    --ink-soft: #11161e;
    --ink-rule: #1b2230;
    --parchment: #c8c1ad;
    --parchment-bright: #e8e3d6;
    --ash: #6b6757;
    --slate: #2f3543;
    --brass: #b8a072;
    --brass-bright: #d9c089;
    --cold: #8aa1b8;
    --measure: 1180px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    background: var(--ink);
    color: var(--parchment);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(138,161,184,0.05), transparent 40%),
        radial-gradient(circle at 80% 90%, rgba(184,160,114,0.04), transparent 40%),
        var(--ink);
    min-height: 100vh;
}

/* ---- Film grain ---- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image:
        radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1px),
        radial-gradient(rgba(255,255,255,0.35) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
}

/* ---- Masthead ---- */
.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(8px);
    background: rgba(10, 13, 18, 0.78);
    border-bottom: 1px solid var(--ink-rule);
}

.masthead-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 40px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ash);
    border-bottom: 1px solid var(--ink-rule);
}

.bureau {
    color: var(--brass);
    font-weight: 500;
}

.coords {
    font-variant-numeric: tabular-nums;
    color: var(--cold);
}

.phase-tag::before {
    content: "●";
    color: var(--brass-bright);
    margin-right: 8px;
    font-size: 9px;
    vertical-align: middle;
}

.primary-nav {
    display: flex;
    gap: 32px;
    padding: 18px 40px;
    overflow-x: auto;
}

.primary-nav a {
    color: var(--parchment);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 400;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color 200ms ease, border-color 200ms ease;
    white-space: nowrap;
}

.primary-nav a:hover {
    color: var(--brass-bright);
    border-bottom-color: var(--brass);
}

/* ---- Hero ---- */
.hero {
    padding: 80px 40px 40px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.kicker {
    font-size: 11px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 28px;
    position: relative;
    padding-left: 36px;
}

.kicker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 1px;
    background: var(--brass);
}

.hero-title {
    font-weight: 200;
    font-size: clamp(48px, 7vw, 96px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    color: var(--parchment-bright);
    margin-bottom: 36px;
}

.title-line {
    display: block;
    transform: translateY(20px);
    opacity: 0;
    animation: titleRise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.title-line:nth-child(1) { animation-delay: 100ms; }
.title-line:nth-child(2) { animation-delay: 220ms; }
.title-line:nth-child(3) { animation-delay: 340ms; }
.title-line:nth-child(4) { animation-delay: 460ms; }

.title-line.italic {
    font-style: italic;
    font-weight: 300;
    color: var(--brass-bright);
    padding-left: 56px;
}

.title-line.cursive {
    font-style: italic;
    font-weight: 200;
    color: var(--cold);
    padding-left: 96px;
}

@keyframes titleRise {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lede {
    font-size: 17px;
    line-height: 1.7;
    color: var(--parchment);
    max-width: 460px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid var(--ink-rule);
    border-bottom: 1px solid var(--ink-rule);
    margin-bottom: 36px;
}

.meta-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.meta-label {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ash);
}

.meta-value {
    font-size: 15px;
    color: var(--parchment-bright);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--brass-bright);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 14px 0;
    border-bottom: 1px solid var(--brass);
    transition: gap 250ms ease, color 250ms ease;
    width: fit-content;
}

.cta-link:hover {
    gap: 20px;
    color: var(--parchment-bright);
}

/* ---- Moon stage ---- */
.hero-right {
    position: relative;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 620px;
    margin-left: auto;
}

.moon-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.moon-rings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: ringSpin 240s linear infinite;
}

.ring {
    fill: none;
    stroke: var(--brass);
    stroke-width: 0.5;
    opacity: 0.35;
}

.ring.r1 { opacity: 0.18; stroke-dasharray: 2 8; }
.ring.r2 { opacity: 0.28; stroke-dasharray: 1 4; }
.ring.r3 { opacity: 0.4; stroke-dasharray: 3 14; }

.ticks line {
    stroke: var(--brass);
    stroke-width: 0.6;
    opacity: 0.5;
}

@keyframes ringSpin {
    to { transform: rotate(360deg); }
}

.moon-disc {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #f0eadb 0%, #d6cdb7 30%, #8b8472 70%, #3a362d 100%);
    box-shadow:
        inset -20px -30px 80px rgba(0,0,0,0.6),
        0 0 80px rgba(232, 227, 214, 0.08),
        0 0 200px rgba(184, 160, 114, 0.05);
    overflow: hidden;
}

.moon-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 0%, transparent 45%, rgba(10,13,18,0.85) 60%, var(--ink) 100%);
    transition: transform 600ms ease;
}

.moon-craters .crater {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(60,55,45,0.7), rgba(20,18,14,0.4));
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.4);
}

.crater.c1 { width: 8%; height: 8%; top: 22%; left: 28%; }
.crater.c2 { width: 5%; height: 5%; top: 38%; left: 52%; }
.crater.c3 { width: 11%; height: 11%; top: 60%; left: 30%; }
.crater.c4 { width: 4%; height: 4%; top: 18%; left: 60%; }
.crater.c5 { width: 7%; height: 7%; top: 70%; left: 58%; }
.crater.c6 { width: 3%; height: 3%; top: 50%; left: 22%; }
.crater.c7 { width: 6%; height: 6%; top: 32%; left: 70%; }
.crater.c8 { width: 4%; height: 4%; top: 80%; left: 42%; }

.moon-glare {
    position: absolute;
    top: 12%;
    left: 18%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,250,235,0.18), transparent 70%);
}

.annotation {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cold);
    opacity: 0.85;
}

.annotation .anno-line {
    width: 64px;
    height: 1px;
    background: var(--cold);
    opacity: 0.6;
}

.annotation.a1 { top: 18%; right: 4%; flex-direction: row-reverse; }
.annotation.a1 .anno-line { background: linear-gradient(to left, var(--cold), transparent); }

.annotation.a2 { bottom: 28%; left: 0%; }
.annotation.a2 .anno-line { background: linear-gradient(to right, var(--cold), transparent); }

.annotation.a3 { bottom: 4%; right: 12%; flex-direction: row-reverse; }
.annotation.a3 .anno-line { background: linear-gradient(to left, var(--cold), transparent); }

/* ---- Ticker ---- */
.ticker {
    margin-top: 80px;
    padding: 14px 0;
    border-top: 1px solid var(--ink-rule);
    border-bottom: 1px solid var(--ink-rule);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.ticker-track {
    display: inline-flex;
    gap: 40px;
    animation: tickerScroll 60s linear infinite;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ash);
}

.ticker-track span {
    flex-shrink: 0;
}

@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- Section heads ---- */
.section-head {
    max-width: var(--measure);
    margin: 0 auto 56px;
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
    column-gap: 32px;
    row-gap: 20px;
    align-items: end;
}

.section-no {
    grid-row: 1 / 3;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--brass);
    border-top: 1px solid var(--brass);
    padding-top: 16px;
    align-self: start;
}

.section-title {
    font-weight: 200;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--parchment-bright);
    max-width: 740px;
}

.section-sub {
    font-size: 15px;
    color: var(--ash);
    max-width: 560px;
    line-height: 1.7;
}

/* ---- Almanac ---- */
.almanac {
    padding: 120px 40px 80px;
    background: linear-gradient(180deg, transparent, rgba(17, 22, 30, 0.6) 30%, transparent);
}

.almanac-grid {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--ink-rule);
    border: 1px solid var(--ink-rule);
}

.almanac-card {
    background: var(--ink);
    padding: 36px 32px;
    transition: background 400ms ease;
    cursor: default;
    position: relative;
}

.almanac-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brass);
    transition: width 500ms ease;
}

.almanac-card:hover {
    background: var(--ink-soft);
}

.almanac-card:hover::before {
    width: 100%;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.week {
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ash);
}

.phase-glyph {
    font-size: 18px;
    color: var(--brass-bright);
    line-height: 1;
}

.card-title {
    font-weight: 300;
    font-size: 22px;
    line-height: 1.2;
    color: var(--parchment-bright);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.card-body {
    font-size: 14px;
    color: var(--parchment);
    line-height: 1.65;
    margin-bottom: 24px;
    opacity: 0.85;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--ink-rule);
}

.card-stats > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-stats dt {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ash);
}

.card-stats dd {
    font-size: 13px;
    color: var(--parchment-bright);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

/* ---- Expeditions ---- */
.expeditions {
    padding: 100px 40px;
}

.expedition-list {
    max-width: var(--measure);
    margin: 0 auto;
    list-style: none;
    border-top: 1px solid var(--ink-rule);
}

.exp-row {
    display: grid;
    grid-template-columns: 90px 2fr 1.5fr 1fr 100px;
    align-items: center;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--ink-rule);
    cursor: pointer;
    transition: padding 350ms ease, background 350ms ease;
    position: relative;
}

.exp-row:hover {
    padding-left: 16px;
    padding-right: 16px;
    background: var(--ink-soft);
}

.exp-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--brass-bright);
    transition: width 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.exp-row:hover::before {
    width: 8px;
}

.exp-id {
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--brass);
    font-variant-numeric: tabular-nums;
}

.exp-title {
    font-size: 22px;
    font-weight: 300;
    color: var(--parchment-bright);
    letter-spacing: -0.01em;
    transition: color 250ms ease;
}

.exp-row:hover .exp-title {
    color: var(--brass-bright);
}

.exp-region {
    font-size: 13px;
    color: var(--ash);
    font-style: italic;
}

.exp-date {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--parchment);
    font-variant-numeric: tabular-nums;
}

.exp-status {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cold);
    text-align: right;
}

.exp-note {
    grid-column: 2 / 5;
    grid-row: 2;
    font-size: 14px;
    color: var(--parchment);
    line-height: 1.65;
    padding-top: 12px;
    max-width: 720px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 500ms ease, opacity 500ms ease, padding 500ms ease;
}

.exp-row.is-open {
    padding-bottom: 0;
}

.exp-row.is-open .exp-note {
    max-height: 200px;
    opacity: 1;
    padding-bottom: 32px;
}

/* ---- Cartograph ---- */
.cartograph {
    padding: 100px 40px;
    background: var(--ink-soft);
}

.cartograph-stage {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 60px;
    align-items: start;
}

.map-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--ink);
    border: 1px solid var(--ink-rule);
    padding: 24px;
}

.map-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.maria .mare {
    fill: rgba(46, 50, 60, 0.7);
    opacity: 0.85;
}

.crater-mark {
    fill: rgba(232, 227, 214, 0.4);
    stroke: rgba(232, 227, 214, 0.7);
    stroke-width: 1;
}

.terminator {
    fill: rgba(10, 13, 18, 0.78);
    transition: transform 100ms linear;
}

.map-labels text {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    fill: var(--parchment);
    text-anchor: middle;
    opacity: 0.7;
    font-style: italic;
    font-weight: 300;
}

.reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: top 120ms ease, left 120ms ease;
}

.ret-x, .ret-y {
    position: absolute;
    background: var(--brass-bright);
    opacity: 0.7;
}

.ret-x {
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
}

.ret-y {
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
}

.reticle::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid var(--brass);
    border-radius: 50%;
    opacity: 0.55;
}

.ret-tag {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brass-bright);
    background: var(--ink);
    padding: 4px 10px;
    border: 1px solid var(--brass);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.map-controls {
    padding-top: 24px;
}

.slider-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.slider-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
}

.slider-row input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 1px;
    background: var(--ink-rule);
    outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brass-bright);
    cursor: pointer;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 1px var(--brass);
}

.slider-row input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--brass-bright);
    cursor: pointer;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 1px var(--brass);
}

.slider-value {
    font-size: 13px;
    color: var(--parchment-bright);
    font-variant-numeric: tabular-nums;
    align-self: flex-end;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
    border-top: 1px solid var(--ink-rule);
    font-size: 12px;
    color: var(--parchment);
}

.legend > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sw {
    width: 14px;
    height: 14px;
    border: 1px solid var(--ash);
    flex-shrink: 0;
}

.maria-sw { background: rgba(46,50,60,0.85); }
.highland-sw { background: linear-gradient(135deg, #d6cdb7, #8b8472); }
.crater-sw { background: var(--parchment-bright); border-radius: 50%; }

/* ---- Index ---- */
.index-section {
    padding: 100px 40px;
}

.index-toolbar {
    max-width: var(--measure);
    margin: 0 auto 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--ink-rule);
}

.index-tabs {
    display: flex;
    gap: 4px;
}

.tab {
    background: transparent;
    border: 1px solid var(--ink-rule);
    color: var(--parchment);
    font-family: inherit;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 10px 18px;
    cursor: pointer;
    transition: all 220ms ease;
}

.tab:hover {
    border-color: var(--brass);
    color: var(--brass-bright);
}

.tab.active {
    background: var(--brass);
    border-color: var(--brass);
    color: var(--ink);
    font-weight: 500;
}

.index-filter {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink-rule);
    color: var(--parchment-bright);
    font-family: inherit;
    font-size: 14px;
    padding: 10px 0;
    width: 280px;
    outline: none;
    transition: border-color 220ms ease;
}

.index-filter::placeholder {
    color: var(--ash);
    font-style: italic;
}

.index-filter:focus {
    border-bottom-color: var(--brass);
}

.index-list {
    max-width: var(--measure);
    margin: 0 auto;
    list-style: none;
    columns: 2;
    column-gap: 60px;
    column-rule: 1px solid var(--ink-rule);
}

.index-item {
    break-inside: avoid;
    padding: 14px 0;
    border-bottom: 1px solid var(--ink-rule);
    cursor: pointer;
    transition: padding 250ms ease;
}

.index-item:hover {
    padding-left: 12px;
}

.index-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.idx-name {
    font-size: 16px;
    color: var(--parchment-bright);
    font-weight: 300;
    letter-spacing: -0.005em;
}

.idx-meta {
    font-size: 11px;
    color: var(--ash);
    letter-spacing: 0.14em;
    font-variant-numeric: tabular-nums;
}

.idx-note {
    font-size: 13px;
    color: var(--parchment);
    line-height: 1.6;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 380ms ease, opacity 380ms ease, margin-top 380ms ease;
    padding-right: 20px;
}

.index-item.is-open .idx-note {
    max-height: 120px;
    opacity: 0.85;
    margin-top: 8px;
}

.index-item.is-hidden {
    display: none;
}

/* ---- Dispatch form ---- */
.dispatch {
    padding: 100px 40px 120px;
    background: var(--ink-soft);
}

.dispatch-form {
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-full {
    grid-column: 1 / 3;
}

.field-label {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--brass);
}

.field input,
.field select {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink-rule);
    color: var(--parchment-bright);
    font-family: inherit;
    font-size: 16px;
    font-weight: 300;
    padding: 12px 0;
    outline: none;
    transition: border-color 220ms ease;
}

.field input::placeholder {
    color: var(--ash);
    font-style: italic;
}

.field input:focus,
.field select:focus {
    border-bottom-color: var(--brass);
}

.field select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--brass) 50%), linear-gradient(135deg, var(--brass) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 8px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.field select option {
    background: var(--ink);
    color: var(--parchment-bright);
}

.dispatch-submit {
    grid-column: 1 / 3;
    background: transparent;
    border: 1px solid var(--brass);
    color: var(--brass-bright);
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 18px 28px;
    margin-top: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: background 280ms ease, color 280ms ease;
    width: 100%;
}

.dispatch-submit:hover {
    background: var(--brass);
    color: var(--ink);
}

.submit-arrow {
    font-size: 18px;
    transition: transform 280ms ease;
}

.dispatch-submit:hover .submit-arrow {
    transform: translateX(6px);
}

.dispatch-confirm {
    grid-column: 1 / 3;
    font-size: 14px;
    color: var(--cold);
    font-style: italic;
    text-align: center;
    padding-top: 16px;
}

.dispatch-confirm[hidden] {
    display: none;
}

/* ---- Colophon ---- */
.colophon {
    padding: 80px 40px 60px;
    border-top: 1px solid var(--ink-rule);
}

.colo-grid {
    max-width: var(--measure);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.colo-block {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.colo-label {
    font-size: 10px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--brass);
    border-top: 1px solid var(--brass);
    padding-top: 10px;
}

.colo-block p,
.colo-block li {
    font-size: 13px;
    color: var(--parchment);
    line-height: 1.65;
    list-style: none;
}

.colo-rule {
    max-width: var(--measure);
    margin: 60px auto 24px;
    height: 1px;
    background: var(--ink-rule);
}

.colo-bottom {
    max-width: var(--measure);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ash);
}

/* ---- Reveal on scroll ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 800ms ease, transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .hero { padding: 48px 24px 24px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-right { max-width: 480px; margin: 0 auto; }
    .hero-meta { grid-template-columns: 1fr; gap: 16px; }
    .almanac { padding: 80px 24px; }
    .almanac-grid { grid-template-columns: 1fr; }
    .expeditions { padding: 80px 24px; }
    .exp-row {
        grid-template-columns: 80px 1fr;
        grid-auto-rows: auto;
        row-gap: 6px;
    }
    .exp-region, .exp-date, .exp-status {
        grid-column: 2;
    }
    .exp-status { text-align: left; }
    .exp-note { grid-column: 1 / 3; }
    .cartograph { padding: 80px 24px; }
    .cartograph-stage { grid-template-columns: 1fr; gap: 32px; }
    .index-section { padding: 80px 24px; }
    .index-list { columns: 1; }
    .index-toolbar { flex-direction: column; align-items: stretch; }
    .index-filter { width: 100%; }
    .dispatch { padding: 80px 24px; }
    .dispatch-form { grid-template-columns: 1fr; }
    .field-full, .dispatch-submit, .dispatch-confirm { grid-column: 1; }
    .colophon { padding: 60px 24px 40px; }
    .colo-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .colo-bottom { flex-direction: column; gap: 8px; align-items: center; }
    .primary-nav { padding: 14px 24px; gap: 22px; }
    .masthead-row { padding: 10px 24px; flex-wrap: wrap; gap: 12px; }
    .section-head { grid-template-columns: 60px 1fr; gap: 20px; margin-bottom: 40px; }
}

@media (max-width: 560px) {
    .colo-grid { grid-template-columns: 1fr; }
    .title-line.italic { padding-left: 24px; }
    .title-line.cursive { padding-left: 48px; }
}
