/* ==========================================================================
   nainarnagendran.in — Core stylesheet
   Visual system: "Southern Archive" — warm paper, deep mineral green,
   muted copper. Editorial-institutional.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Surfaces */
    --paper:        #F7F4ED;
    --paper-raised: #FFFDF7;
    --stone:        #EBE5D8;
    --stone-deep:   #DED6C5;
    --line:         #D5CCB9;
    --line-soft:    #E4DDCE;

    /* Ink */
    --ink:          #191C18;
    --ink-soft:     #3B403A;
    --muted:        #6C7168;
    --muted-light:  #8A8E82;

    /* Deep field */
    --forest:       #16332C;
    --forest-deep:  #0D2019;
    --forest-mid:   #1F463C;

    /* Accent */
    --copper:       #A0521D;
    --copper-lift:  #C4703A;
    --brass:        #A98A44;

    /* Type */
    --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
    --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Rhythm */
    --gutter: clamp(1.25rem, 4vw, 3.5rem);
    --shell:  1280px;
    --shell-narrow: 940px;
    --section-y: clamp(4rem, 9vw, 8.5rem);
    --header-h: 74px;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    /* clip, NOT hidden: overflow-x:hidden forces overflow-y to auto, which turns
       the root into a scroll container and breaks the sticky header. */
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.72;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    max-width: 100%;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-weight: 600; line-height: 1.14; letter-spacing: -.012em; }
p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--forest); color: var(--paper); }

/* Focus visibility — never removed */
:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
    border-radius: 2px;
}
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: #E8B27E; }

.skip-link {
    position: absolute; left: 0; top: 0;
    transform: translateY(-140%);
    background: var(--forest); color: var(--paper);
    padding: .8rem 1.4rem; z-index: 999;
    font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
    transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* --------------------------------------------------------------------------
   3. Access gate (protected pages stay hidden until auth.js clears them)
   -------------------------------------------------------------------------- */
html[data-auth="protected"] body { visibility: hidden; }
html[data-auth="protected"].is-unlocked body { visibility: visible; }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.shell--narrow { max-width: var(--shell-narrow); }
.section { padding: var(--section-y) 0; position: relative; }
.section--tight { padding: clamp(3rem, 6vw, 5.5rem) 0; }

.on-dark { background: var(--forest); color: #EDE8DC; }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #FBF7EE; }
.on-dark .eyebrow { color: #D9A97C; }
.on-dark .lede { color: #D7D2C4; }
.on-dark .rule { background: rgba(237,232,220,.28); }

.on-stone { background: var(--stone); }

/* --------------------------------------------------------------------------
   5. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
    font-family: var(--sans);
    font-size: .715rem;
    font-weight: 600;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--copper);
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    line-height: 1.4;
}
.eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: currentColor;
    flex: none;
    opacity: .65;
}

.display {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.4rem, 6.4vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.03em;
}
.h-xl { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.022em; }
.h-lg { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.16; letter-spacing: -.018em; }
.h-md { font-family: var(--serif); font-size: clamp(1.28rem, 2.1vw, 1.65rem); line-height: 1.24; letter-spacing: -.012em; }
.h-sm { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: -.005em; line-height: 1.4; }

.lede {
    font-size: clamp(1.06rem, 1.5vw, 1.26rem);
    line-height: 1.68;
    color: var(--ink-soft);
    font-weight: 400;
}
.prose { max-width: 68ch; }
.prose p + h3, .prose p + h2 { margin-top: 2.2rem; }
.text-muted { color: var(--muted); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.dropcap::first-letter {
    font-family: var(--serif);
    float: left;
    font-size: 3.55em;
    line-height: .82;
    font-weight: 600;
    padding: .06em .12em 0 0;
    color: var(--forest);
}

.pullquote {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2.5vw, 1.95rem);
    line-height: 1.34;
    letter-spacing: -.015em;
    color: var(--forest);
    margin: 2.6rem 0;
    padding-left: clamp(1.1rem, 2.5vw, 2rem);
    border-left: 3px solid var(--copper);
}
.on-dark .pullquote { color: #F6F1E6; border-left-color: var(--copper-lift); }
.pullquote cite {
    display: block;
    font-family: var(--sans);
    font-style: normal;
    font-size: .76rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 1.1rem;
    font-weight: 600;
}
.on-dark .pullquote cite { color: #B9B3A3; }

.note {
    font-size: .855rem;
    line-height: 1.62;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 1rem;
}

/* --------------------------------------------------------------------------
   6. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 50px;
    padding: .85rem 1.7rem;
    font-family: var(--sans);
    font-size: .79rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    border: 1px solid var(--forest);
    background: var(--forest);
    color: #F7F3E9;
    cursor: pointer;
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
    text-align: center;
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: #F7F3E9; }
.on-dark .btn { background: var(--copper); border-color: var(--copper); color: #FFF8EF; }
.on-dark .btn:hover { background: var(--copper-lift); border-color: var(--copper-lift); }
.on-dark .btn--ghost { background: transparent; border-color: rgba(237,232,220,.45); color: #EDE8DC; }
.on-dark .btn--ghost:hover { background: rgba(237,232,220,.12); border-color: #EDE8DC; }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .79rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--copper);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
    transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.arrow-link:hover { border-bottom-color: currentColor; gap: .85rem; }
.arrow-link .chev { transition: transform .2s var(--ease); }
.on-dark .arrow-link { color: #DFA871; }

/* --------------------------------------------------------------------------
   7. Image framing — faces are never cropped
   -------------------------------------------------------------------------- */
.frame {
    background: var(--stone-deep);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(.5rem, 1.1vw, 1rem);
    overflow: hidden;
}
.frame img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}
.frame--fixed { aspect-ratio: 4 / 3; }
.frame--fixed img { height: 100%; }
.frame--square { aspect-ratio: 1 / 1; }
.frame--square img { height: 100%; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--tall img { height: 100%; }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--wide img { height: 100%; }
.frame--dark { background: var(--forest-deep); border-color: rgba(237,232,220,.16); }
.frame--plain { background: transparent; border: 0; padding: 0; }

figure { margin: 0; }
.figcaption {
    font-size: .8rem;
    line-height: 1.55;
    color: var(--muted);
    margin-top: .85rem;
    padding-left: .9rem;
    border-left: 2px solid var(--copper);
}
.on-dark .figcaption { color: #B4AE9E; }

/* --------------------------------------------------------------------------
   8. Header / navigation (sticky)
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(247, 244, 237, .92);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line-soft);
    transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.site-header.is-stuck {
    box-shadow: 0 1px 24px rgba(22, 51, 44, .10);
    background: rgba(247, 244, 237, .97);
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
.brand-mark {
    width: 38px; height: 38px; flex: none;
    border: 1px solid var(--forest);
    display: grid; place-items: center;
    font-family: var(--serif);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: var(--forest);
    background: transparent;
    transition: background .22s var(--ease), color .22s var(--ease);
}
.brand:hover .brand-mark { background: var(--forest); color: var(--paper); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--ink);
}
.brand-sub {
    font-size: .605rem;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-top: .18em;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(.8rem, 1.5vw, 1.55rem);
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list a {
    display: block;
    font-size: .715rem;
    font-weight: 600;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: var(--ink-soft);
    padding: .55rem 0;
    position: relative;
    white-space: nowrap;
    transition: color .2s var(--ease);
}
.nav-list a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--copper);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .26s var(--ease);
}
.nav-list a:hover { color: var(--ink); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current="page"] { color: var(--forest); }
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    flex: none;
    padding: 0;
}
.nav-toggle span {
    display: block;
    position: relative;
    width: 20px; height: 1.5px;
    background: var(--ink);
    transition: background .2s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
    content: "";
    position: absolute; left: 0;
    width: 20px; height: 1.5px;
    background: var(--ink);
    transition: transform .26s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   9. Page masthead (inner pages)
   -------------------------------------------------------------------------- */
.masthead {
    background: var(--forest);
    color: #EDE8DC;
    padding: clamp(3.2rem, 7vw, 6rem) 0 clamp(2.6rem, 5vw, 4.2rem);
    position: relative;
    overflow: hidden;
}
.masthead::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, var(--copper) 0%, rgba(160,82,29,0) 60%);
}
.masthead-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(1.6rem, 4vw, 4rem);
    align-items: end;
}
.masthead h1 {
    font-family: var(--serif);
    font-size: clamp(2.3rem, 5.4vw, 4.1rem);
    line-height: 1.04;
    letter-spacing: -.028em;
    margin-bottom: 0;
    color: #FBF7EE;
}
.masthead-note {
    font-size: .95rem;
    line-height: 1.68;
    color: #CFC9BA;
    border-left: 2px solid rgba(196,112,58,.75);
    padding-left: 1.1rem;
}
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #A7A294;
    font-weight: 600;
}
.crumbs a { color: #D9A97C; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }

/* --------------------------------------------------------------------------
   10. Grids & cards
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(1.8rem, 4vw, 4.5rem); align-items: center; }
.split--wide-left { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); }
.split--wide-right { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); }
.split--top { align-items: start; }

.card {
    background: var(--paper-raised);
    border: 1px solid var(--line-soft);
    padding: clamp(1.5rem, 2.6vw, 2.2rem);
    display: flex;
    flex-direction: column;
    gap: .85rem;
    transition: border-color .25s var(--ease), transform .3s var(--ease);
}
.card h3 { margin: 0; }
.card p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.on-dark .card {
    background: rgba(255,253,247,.045);
    border-color: rgba(237,232,220,.16);
}
.on-dark .card p { color: #C9C3B4; }

.card-index {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--copper);
    letter-spacing: .04em;
}

/* Explore links */
.explore-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(237,232,220,.2); }
.explore-list li { margin: 0; }
.explore-item {
    display: grid;
    grid-template-columns: 62px minmax(0,1fr) auto;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(1.2rem, 2.4vw, 1.85rem) 0;
    border-bottom: 1px solid rgba(237,232,220,.2);
    transition: padding-left .3s var(--ease);
}
.explore-item:hover { padding-left: .7rem; }
.explore-item .num { font-family: var(--serif); font-size: .95rem; color: #D9A97C; letter-spacing: .05em; }
.explore-item .ttl { font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.85rem); color: #FBF7EE; line-height: 1.2; }
.explore-item .dsc { display: block; font-family: var(--sans); font-size: .875rem; color: #B4AE9E; margin-top: .35rem; line-height: 1.6; letter-spacing: 0; }
.explore-item .go {
    width: 40px; height: 40px; flex: none;
    border: 1px solid rgba(237,232,220,.32);
    display: grid; place-items: center;
    color: #EDE8DC;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.explore-item:hover .go { background: var(--copper); border-color: var(--copper); color: #FFF8EF; }

/* --------------------------------------------------------------------------
   11. Fact / statistic systems
   -------------------------------------------------------------------------- */
.factband {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    border: 1px solid var(--line);
    background: var(--paper-raised);
}
.factband > div {
    padding: clamp(1.4rem, 2.6vw, 2.1rem);
    border-right: 1px solid var(--line-soft);
}
.factband > div:last-child { border-right: 0; }
.fact-num {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 600;
    line-height: 1;
    color: var(--forest);
    letter-spacing: -.03em;
    display: block;
}
.fact-label {
    font-size: .74rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-top: .8rem;
    display: block;
    line-height: 1.5;
}

/* Definition ledger */
.ledger { border-top: 1px solid var(--line); margin: 0; }
.ledger-row {
    display: grid;
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    gap: clamp(.6rem, 2vw, 2rem);
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: baseline;
}
.ledger-key {
    font-size: .73rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}
.ledger-val { font-size: .98rem; color: var(--ink); margin: 0; line-height: 1.6; }
.on-dark .ledger { border-top-color: rgba(237,232,220,.22); }
.on-dark .ledger-row { border-bottom-color: rgba(237,232,220,.14); }
.on-dark .ledger-key { color: #A7A294; }
.on-dark .ledger-val { color: #EDE8DC; }

/* --------------------------------------------------------------------------
   12. Timelines
   -------------------------------------------------------------------------- */
/* 12a. Horizontal rail (home) */
.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(230px, 1fr);
    gap: 0;
    border-top: 2px solid var(--line);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .5rem;
}
.rail-item {
    position: relative;
    padding: 2.3rem clamp(1rem, 2vw, 1.7rem) 0 0;
    scroll-snap-align: start;
    min-width: 0;
}
.rail-item::before {
    content: "";
    position: absolute;
    top: -6px; left: 0;
    width: 10px; height: 10px;
    background: var(--copper);
    border-radius: 50%;
}
.rail-year {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 600;
    color: var(--forest);
    line-height: 1;
    letter-spacing: -.02em;
    display: block;
    margin-bottom: .7rem;
}
.rail-text { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* 12b. Spine timeline (political journey) */
.spine { position: relative; margin: 0; padding: 0; list-style: none; }
.spine::before {
    content: "";
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 1px;
    background: var(--line);
    transform: translateX(-50%);
}
.spine > li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) 90px minmax(0,1fr);
    align-items: start;
    margin: 0 0 clamp(2rem, 4vw, 3.4rem);
}
.spine-node {
    grid-column: 2;
    display: grid;
    place-items: center;
    position: relative;
    padding-top: .35rem;
}
.spine-node span {
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--copper);
    display: block;
    position: relative;
    z-index: 1;
}
.spine-card {
    background: var(--paper-raised);
    border: 1px solid var(--line-soft);
    border-top: 2px solid var(--forest);
    padding: clamp(1.3rem, 2.4vw, 2rem);
}
.spine > li:nth-child(odd) .spine-card { grid-column: 1; text-align: right; }
.spine > li:nth-child(odd) .spine-card .spine-tag { justify-content: flex-end; }
.spine > li:nth-child(even) .spine-card { grid-column: 3; }
.spine-tag {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--copper);
    letter-spacing: -.01em;
    margin-bottom: .5rem;
    line-height: 1.1;
}
.spine-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .55rem; }
.spine-card p { font-size: .92rem; color: var(--ink-soft); margin-bottom: .8rem; }
.spine-meta {
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    border-top: 1px solid var(--line-soft);
    padding-top: .75rem;
    margin: 0;
    line-height: 1.55;
}

/* 12c. Chapter list (biography sidebar) */
.chapters { position: sticky; top: calc(var(--header-h) + 2rem); }
.chapter-nav { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.chapter-nav a {
    display: block;
    padding: .58rem 0 .58rem 1.1rem;
    margin-left: -1px;
    border-left: 2px solid transparent;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.45;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.chapter-nav a:hover, .chapter-nav a.is-active { color: var(--forest); border-left-color: var(--copper); }
.chapter-nav .cn-num {
    font-family: var(--serif);
    font-size: .72rem;
    color: var(--copper);
    display: block;
    letter-spacing: .1em;
    margin-bottom: .1em;
}

.chapter { padding-top: clamp(2.4rem, 5vw, 4rem); }
.chapter:first-of-type { padding-top: 0; }
.chapter-head {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}
.chapter-num {
    font-family: var(--serif);
    font-size: clamp(2.1rem, 4vw, 3.1rem);
    font-weight: 600;
    line-height: .9;
    color: var(--stone-deep);
    flex: none;
    letter-spacing: -.03em;
}
.sidenote {
    background: var(--stone);
    border-left: 3px solid var(--brass);
    padding: 1.2rem 1.4rem;
    font-size: .875rem;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 1.8rem 0;
}
.sidenote strong {
    display: block;
    font-size: .7rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--forest);
    margin-bottom: .5rem;
}

/* --------------------------------------------------------------------------
   13. Dossier rows (leadership)
   -------------------------------------------------------------------------- */
.dossier { border-top: 1px solid var(--line); }
.dossier-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 320px) minmax(0, 1fr);
    gap: clamp(1rem, 3vw, 3rem);
    padding: clamp(1.8rem, 3.4vw, 3rem) 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
}
.dossier-num {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 600;
    color: var(--copper);
    line-height: 1;
    letter-spacing: -.02em;
}
.dossier-row h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.7rem); margin-bottom: .5rem; }
.dossier-row .dossier-sub {
    font-size: .73rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin: 0;
}
.dossier-body p { font-size: .97rem; color: var(--ink-soft); }
.dossier-body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   14. Data table (election record)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--paper-raised); }
table.record { width: 100%; border-collapse: collapse; min-width: 660px; font-size: .93rem; }
table.record caption {
    text-align: left;
    padding: 1.1rem clamp(1rem,2vw,1.5rem);
    font-size: .73rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}
table.record th, table.record td {
    padding: .95rem clamp(1rem,2vw,1.5rem);
    text-align: left;
    border-bottom: 1px solid var(--line-soft);
    vertical-align: top;
}
table.record thead th {
    font-size: .69rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--forest);
    font-weight: 600;
    background: var(--stone);
    white-space: nowrap;
}
table.record tbody tr:last-child td { border-bottom: 0; }
table.record td:first-child { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; color: var(--forest); }
.pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    padding: .28rem .6rem;
    border: 1px solid currentColor;
    white-space: nowrap;
}
.pill--won { color: #1F5F44; }
.pill--lost { color: #8A5A2B; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* --------------------------------------------------------------------------
   15. Mosaic & gallery
   -------------------------------------------------------------------------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.m-4 { grid-column: span 4; }
.m-5 { grid-column: span 5; }
.m-6 { grid-column: span 6; }
.m-7 { grid-column: span 7; }
.m-8 { grid-column: span 8; }
.m-12 { grid-column: span 12; }

.plates { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2.2vw, 1.8rem); }
.plate {
    background: var(--paper-raised);
    border: 1px solid var(--line-soft);
    padding: clamp(.7rem, 1.3vw, 1.1rem);
    display: flex;
    flex-direction: column;
    gap: .9rem;
    cursor: zoom-in;
    text-align: left;
    font: inherit;
    color: inherit;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
    width: 100%;
}
.plate:hover { border-color: var(--copper); box-shadow: 0 10px 34px rgba(22,51,44,.09); }
.plate .frame { background: var(--stone-deep); border: 0; padding: 0; aspect-ratio: 4/3; }
.plate .frame img { height: 100%; }
.plate-meta { display: flex; flex-direction: column; gap: .3rem; padding: 0 .4rem .4rem; }
.plate-title { font-family: var(--serif); font-size: 1.02rem; line-height: 1.3; color: var(--ink); }
.plate-sub { font-size: .74rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(13, 32, 25, .95);
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
}
.lightbox.is-open { display: flex; }
.lightbox-inner { max-width: 1100px; width: 100%; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.lightbox img { max-width: 100%; max-height: 76vh; width: auto; height: auto; object-fit: contain; }
.lightbox-caption { color: #D7D2C4; font-size: .9rem; text-align: center; max-width: 60ch; line-height: 1.6; }
.lightbox-close {
    position: absolute;
    top: clamp(.8rem, 2vw, 1.6rem);
    right: clamp(.8rem, 2vw, 1.6rem);
    width: 48px; height: 48px;
    background: transparent;
    border: 1px solid rgba(237,232,220,.4);
    color: #EDE8DC;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: grid; place-items: center;
}
.lightbox-close:hover { background: rgba(237,232,220,.14); }

/* --------------------------------------------------------------------------
   16. Home hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    background: var(--paper);
    padding: clamp(2.6rem, 5vw, 4.6rem) 0 clamp(2.6rem, 5vw, 4.4rem);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: 42%;
    background: var(--forest);
    z-index: 0;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(1.8rem, 4vw, 4rem);
    align-items: center;
}
.hero-copy { padding-right: clamp(0rem, 1.5vw, 1.5rem); }
.hero-name {
    font-family: var(--serif);
    font-size: clamp(2.7rem, 6.8vw, 5.4rem);
    font-weight: 600;
    line-height: .97;
    letter-spacing: -.035em;
    margin: 0 0 1.4rem;
    color: var(--ink);
}
.hero-name .ln2 { display: block; color: var(--forest); }
.hero-role {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 34ch;
    margin: 0 0 1.9rem;
}
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.4rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
    margin-top: 2.2rem;
}
.hero-meta div { min-width: 0; }
.hero-meta dt {
    font-size: .67rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: .35rem;
}
.hero-meta dd {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.05rem;
    color: var(--forest);
    font-weight: 600;
    line-height: 1.3;
}
.hero-figure { margin: 0;
    position: relative;
    background: var(--forest-deep);
    padding: clamp(.8rem, 1.6vw, 1.4rem);
    border: 1px solid rgba(237,232,220,.16);
}
.hero-figure img { width: 100%; height: auto; object-fit: contain; display: block; }
.hero-tag {
    margin-top: 1rem;
    font-size: .73rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: #B4AE9E;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.hero-tag::before { content: ""; width: 22px; height: 1px; background: var(--copper-lift); flex: none; }

.scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-top: clamp(2rem, 4vw, 3rem);
    font-size: .68rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.scroll-hint .bar {
    width: 46px; height: 1px; background: var(--line); position: relative; overflow: hidden;
}
.scroll-hint .bar::after {
    content: ""; position: absolute; inset: 0; background: var(--copper);
    transform: translateX(-100%);
    animation: hint 2.6s var(--ease) infinite;
}
@keyframes hint { 0% { transform: translateX(-100%); } 55% { transform: translateX(0); } 100% { transform: translateX(100%); } }

/* --------------------------------------------------------------------------
   17. Access gate page (index.html)
   -------------------------------------------------------------------------- */
.gate {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 5vw, 3rem);
    background: var(--forest-deep);
    position: relative;
    overflow: hidden;
}
.gate::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1100px 620px at 50% -10%, rgba(31,70,60,.85), transparent 70%),
        radial-gradient(700px 500px at 85% 110%, rgba(160,82,29,.20), transparent 70%);
    pointer-events: none;
}
.gate-panel {
    position: relative;
    width: 100%;
    max-width: 430px;
    text-align: center;
}
.gate-mark {
    width: 60px; height: 60px;
    margin: 0 auto 2rem;
    border: 1px solid rgba(237,232,220,.35);
    display: grid; place-items: center;
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: #EDE8DC;
    letter-spacing: .02em;
}
.gate-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 600;
    color: #F6F1E6;
    letter-spacing: -.02em;
    margin: 0 0 .6rem;
    line-height: 1.15;
}
.gate-sub {
    font-size: .78rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #9A9486;
    font-weight: 600;
    margin: 0 0 2.4rem;
}
.gate-field { text-align: left; margin-bottom: 1rem; }
.gate-field label {
    display: block;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #A7A294;
    font-weight: 600;
    margin-bottom: .6rem;
}
.gate-input-row { position: relative; display: flex; }
.gate-field input {
    width: 100%;
    min-height: 56px;
    padding: 1rem 3.4rem 1rem 1.1rem;
    background: rgba(255,253,247,.06);
    border: 1px solid rgba(237,232,220,.3);
    color: #F6F1E6;
    font-family: var(--sans);
    font-size: 1rem;
    letter-spacing: .16em;
    transition: border-color .2s var(--ease), background .2s var(--ease);
}
.gate-field input::placeholder { color: rgba(237,232,220,.35); letter-spacing: .2em; }
.gate-field input:focus { outline: none; border-color: var(--copper-lift); background: rgba(255,253,247,.09); }
.gate-field input:focus-visible { outline: 2px solid var(--copper-lift); outline-offset: 2px; }
.gate-reveal {
    position: absolute;
    right: 6px; top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: transparent;
    border: 0;
    color: #A7A294;
    cursor: pointer;
    display: grid; place-items: center;
}
.gate-reveal:hover { color: #EDE8DC; }
.gate-btn {
    width: 100%;
    min-height: 56px;
    background: var(--copper);
    border: 1px solid var(--copper);
    color: #FFF8EF;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .22s var(--ease), border-color .22s var(--ease);
    margin-top: .4rem;
}
.gate-btn:hover { background: var(--copper-lift); border-color: var(--copper-lift); }
.gate-error {
    min-height: 1.4rem;
    margin: 1rem 0 0;
    font-size: .82rem;
    color: #E6A277;
    opacity: 0;
    transition: opacity .2s var(--ease);
    line-height: 1.5;
}
.gate-error.is-shown { opacity: 1; }
.gate-panel.is-wrong { animation: nudge .32s var(--ease); }
@keyframes nudge {
    0%,100% { transform: translateX(0); }
    22% { transform: translateX(-7px); }
    58% { transform: translateX(6px); }
    82% { transform: translateX(-3px); }
}

/* --------------------------------------------------------------------------
   18. Contact
   -------------------------------------------------------------------------- */
.contact-card {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-top: 3px solid var(--copper);
    padding: clamp(1.8rem, 3.4vw, 3rem);
}
.contact-name { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .3rem; }
.contact-role { font-size: .73rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 2rem; }
.contact-lines { list-style: none; margin: 0 0 2rem; padding: 0; }
.contact-lines li { margin: 0; border-top: 1px solid var(--line-soft); }
.contact-lines li:last-child { border-bottom: 1px solid var(--line-soft); }
.contact-lines a, .contact-lines .static {
    display: grid;
    grid-template-columns: 110px minmax(0,1fr);
    gap: 1rem;
    align-items: center;
    padding: 1.1rem 0;
    min-height: 60px;
}
.contact-lines .ck { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-lines .cv { font-family: var(--serif); font-size: clamp(1.05rem, 1.9vw, 1.3rem); color: var(--forest); word-break: break-word; transition: color .2s var(--ease); }
.contact-lines a:hover .cv { color: var(--copper); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.contact-actions .btn { flex: 1 1 200px; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--forest-deep);
    color: #C9C3B4;
    padding: clamp(3rem, 6vw, 4.8rem) 0 0;
    font-size: .92rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    padding-bottom: clamp(2.4rem, 4vw, 3.4rem);
}
.footer-brand .brand-name { color: #F6F1E6; font-size: 1.3rem; }
.footer-brand .brand-sub { color: #8F897C; }
.footer-blurb { margin-top: 1.1rem; color: #A7A294; font-size: .9rem; line-height: 1.7; max-width: 42ch; }
.footer-h {
    font-size: .68rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #D9A97C;
    font-weight: 600;
    margin: 0 0 1.2rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: #C9C3B4; transition: color .2s var(--ease); }
.footer-links a:hover { color: #F6F1E6; text-decoration: underline; text-underline-offset: 3px; }

.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { margin-bottom: .95rem; line-height: 1.5; }
.footer-contact .fc-k { display: block; font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: #8F897C; font-weight: 600; margin-bottom: .2rem; }
.footer-contact a { color: #F0EBDF; }
.footer-contact a:hover { color: var(--copper-lift); text-decoration: underline; text-underline-offset: 3px; }

.social {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.6rem;
    padding: 0;
    list-style: none;
}
.social li { margin: 0; }
.social a, .social span {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid rgba(237,232,220,.24);
    color: #C9C3B4;
    transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.social a:hover { background: var(--copper); border-color: var(--copper); color: #FFF8EF; }
.social span { opacity: .45; cursor: not-allowed; }
.social svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.social-note { font-size: .78rem; color: #8F897C; margin-top: .9rem; line-height: 1.55; }

.footer-base {
    border-top: 1px solid rgba(237,232,220,.16);
    padding: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .9rem 1.6rem;
    font-size: .8rem;
    color: #8F897C;
}
.footer-base a { color: #A7A294; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-base a:hover { color: #E8C79E; border-bottom-color: currentColor; }
.credit { letter-spacing: .02em; }

/* --------------------------------------------------------------------------
   20. Reveal animation
   -------------------------------------------------------------------------- */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    html.js .reveal, html.js .reveal.is-in { opacity: 1; transform: none; transition: none; }
    .scroll-hint .bar::after { animation: none; transform: translateX(0); }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.stack-sm > * + * { margin-top: 1rem; }
.stack-md > * + * { margin-top: 1.8rem; }
.stack-lg > * + * { margin-top: clamp(2.2rem, 4vw, 3.4rem); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   22. Dark variants & late additions
   -------------------------------------------------------------------------- */
.on-dark .factband { background: rgba(255,253,247,.05); border-color: rgba(237,232,220,.18); }
.on-dark .factband > div { border-right-color: rgba(237,232,220,.14); }
.on-dark .fact-num { color: #F6F1E6; }
.on-dark .fact-label { color: #A7A294; }
.on-dark .note { color: #A7A294; border-top-color: rgba(237,232,220,.18); }
.on-dark .rail { border-top-color: rgba(237,232,220,.24); }
.on-dark .rail-year { color: #F6F1E6; }
.on-dark .rail-text { color: #B4AE9E; }

/* Light variant of the explore list */
.explore-list--light { border-top-color: var(--line); }
.explore-list--light .explore-item { border-bottom-color: var(--line-soft); }
.explore-list--light .explore-item .num { color: var(--copper); }
.explore-list--light .explore-item .ttl { color: var(--ink); }
.explore-list--light .explore-item .dsc { color: var(--muted); }
.explore-list--light .explore-item .go { border-color: var(--line); color: var(--forest); }
.explore-list--light .explore-item:hover .go { background: var(--forest); border-color: var(--forest); color: var(--paper); }

/* Section heading block */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.2rem, 3vw, 3.5rem);
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.4rem);
}
.section-head p.lede { margin-bottom: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: minmax(0,1fr); align-items: start; } }

/* Scroll hint for wide tables */
.table-scroll-hint {
    display: none;
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
    margin-top: .8rem;
}

/* Quiet fact strip */
.strip {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.strip li {
    margin: 0;
    font-size: .72rem;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--forest);
    border: 1px solid var(--line);
    background: var(--paper-raised);
    padding: .48rem .8rem;
}
.on-dark .strip li { color: #E4DFD2; border-color: rgba(237,232,220,.24); background: rgba(255,253,247,.05); }

/* Mosaic caption tile */
.tile {
    background: var(--forest);
    color: #EDE8DC;
    padding: clamp(1.4rem, 2.6vw, 2.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .8rem;
}
.tile h3 { color: #FBF7EE; margin: 0; }
.tile p { color: #C3BDAE; font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   23. Page-specific components
   -------------------------------------------------------------------------- */
/* About — sticky portrait column */
.portrait-sticky { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 1024px) { .portrait-sticky { position: static; } }

/* About — era blocks */
.era-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1.4rem, 3vw, 2.8rem); }
.era { border-top: 2px solid var(--forest); padding-top: 1.1rem; }
.era-year {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.03em;
    color: var(--forest);
    display: block;
    margin-bottom: .8rem;
}
.era h3 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin-bottom: .7rem; }
.era p { font-size: .94rem; color: var(--ink-soft); margin: 0; }
.on-dark .era { border-top-color: var(--copper-lift); }
.on-dark .era-year { color: #F6F1E6; }
.on-dark .era p { color: #C3BDAE; }
@media (max-width: 860px) { .era-grid { grid-template-columns: minmax(0,1fr); gap: 1.8rem; } }

/* Statement block — large typographic line, not a quotation */
.statement {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -.025em;
    font-weight: 600;
    max-width: 22ch;
}

/* Public life — offset text columns */
.offset { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(1.2rem, 2.6vw, 2.4rem); align-items: start; }
.off-a { grid-column: 1 / span 5; }
.off-b { grid-column: 7 / span 6; }
.off-c { grid-column: 2 / span 6; }
.off-d { grid-column: 8 / span 5; }
@media (max-width: 860px) {
    .off-a, .off-b, .off-c, .off-d { grid-column: 1 / -1; }
}

/* Milestone archive — ledger rows with year rail */
.archive { border-top: 1px solid var(--line); }
.archive-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) minmax(0, 300px);
    gap: clamp(1rem, 3vw, 2.6rem);
    padding: clamp(1.5rem, 3vw, 2.4rem) 0;
    border-bottom: 1px solid var(--line-soft);
    align-items: start;
    transition: background .25s var(--ease);
}
.archive-date {
    font-family: var(--serif);
    font-size: 1.22rem;
    font-weight: 600;
    color: var(--copper);
    line-height: 1.25;
    letter-spacing: -.01em;
}
.archive-row h3 { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: .5rem; }
.archive-row p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.archive-aside {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.6;
    border-left: 2px solid var(--line);
    padding-left: 1rem;
}
@media (max-width: 1024px) {
    .archive-row { grid-template-columns: 130px minmax(0,1fr); }
    .archive-aside { grid-column: 2; }
}
@media (max-width: 640px) {
    .archive-row { grid-template-columns: minmax(0,1fr); gap: .8rem; }
    .archive-aside { grid-column: 1; }
}

/* Contact — split screen */
.contact-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 60vh; }
.contact-aside {
    background: var(--forest);
    color: #EDE8DC;
    padding: clamp(2.2rem, 5vw, 4.5rem) var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.contact-main { padding: clamp(2.2rem, 5vw, 4.5rem) var(--gutter); }
@media (max-width: 860px) { .contact-split { grid-template-columns: minmax(0,1fr); } }

/* Hero right-hand panel — figure plus a short factual note on the green field */
.hero-panel { display: flex; flex-direction: column; gap: clamp(1.4rem, 2.6vw, 2.2rem); }
.hero-panel-note {
    margin: 0;
    /* Carries its own dark ground: the panel deliberately overlaps the left
       edge of the hero colour field, and light text must never land on paper. */
    background: var(--forest);
    border-top: 1px solid rgba(237,232,220,.22);
    padding: clamp(1.1rem, 2vw, 1.5rem) clamp(1rem, 1.8vw, 1.4rem) clamp(1.2rem, 2.2vw, 1.7rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .2rem;
}
.hero-panel-note dt {
    font-size: .65rem;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: #9A9486;
    font-weight: 600;
}
.hero-panel-note dd {
    margin: 0 0 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
    color: #E4DFD2;
}
.hero-panel-note dd:last-child { margin-bottom: 0; }
@media (max-width: 1024px) {
    .hero-panel { max-width: 620px; margin-inline: auto; width: 100%; }
    .hero-panel-note { border-top-color: rgba(237,232,220,.28); }
}
@media (max-width: 640px) {
    .hero-panel-note dd { color: #EDE8DC; }
}

/* --------------------------------------------------------------------------
   24. Corrections found during layout QA
   -------------------------------------------------------------------------- */
/* Footer wordmark must stack, as it does in the header */
.footer-brand .brand-name,
.footer-brand .brand-sub { display: block; }

/* Contact split: centre both columns and cap the height on tall viewports,
   so the panel never opens into a large empty field. */
.contact-split { min-height: clamp(420px, 58vh, 680px); }
.contact-main { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 860px) { .contact-split { min-height: 0; } }

/* Timeline meta is a full sentence, so it must not be set in capitals */
.spine-meta {
    text-transform: none;
    letter-spacing: 0;
    font-size: .855rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--muted);
}
.spine-meta strong {
    font-size: .69rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--copper);
    display: block;
    margin-bottom: .3rem;
}
/* Placeholder social marks: inactive, but still legible */
.social span { opacity: .62; }

/* Photographs are never enlarged beyond their native size: a small source
   image sits centred on its mat rather than being stretched and softened. */
.frame img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    margin: 0 auto;
}
.frame--fixed img,
.frame--square img,
.frame--tall img,
.frame--wide img,
.plate .frame img { height: 100%; width: auto; }

/* Named column ratios — set in the stylesheet, never inline, so that the
   responsive rules can still collapse them on small screens. */
.split--index   { grid-template-columns: minmax(0, .34fr) minmax(0, 1fr); }
.split--portrait{ grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); }
