/* ============================================================
   MMIDDL.com — Retro Editorial Magazine
   Aesthetic: 1970s Sunday supplement, halftone print, sharp angles
   Colors (honeyed neutral):
     #F5ECD7 paper / parchment
     #2E2117 deep walnut ink
     #B8622E burnt sienna
     #D4A24E honeycomb gold
     #8A9178 faded sage
     #D4C8A8 dusty tan rules
     #C4A67D sepia photo wash
     #8B4513 deep clay hover
   Fonts: Commissioner (body/display), Fraunces (accent serif)
   Fallbacks: Inter, system sans-serif.
   Animation strategy notes: scroll-triggered reveals via
   IntersectionObserver (no parallax — this design explicitly
   avoids the overused parallax pattern). Space Mono is NOT
   used here; Commissioner handles monospaced-style marginalia
   via small-caps + tracking instead.
   ============================================================ */

:root {
    --paper:       #F5ECD7;
    --ink:         #2E2117;
    --sienna:      #B8622E;
    --honey:       #D4A24E;
    --sage:        #8A9178;
    --rule:        #D4C8A8;
    --sepia:       #C4A67D;
    --clay:        #8B4513;

    --baseline:    28px;
    --gutter:      24px;
    --margin-x:    clamp(32px, 5vw, 72px);
    --cubic:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Commissioner', 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.555;   /* ~28px baseline on 18px */
    background: var(--paper);
    color: var(--ink);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ============ Paper grain (SVG noise) ============ */
.paper-grain {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    opacity: 0.14;
    z-index: 2000;
    mix-blend-mode: multiply;
}

/* ============ Fixed page crop marks ============ */
.page-crops {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1500;
}
.page-crop {
    position: absolute;
    width: 26px;
    height: 26px;
}
.page-crop::before,
.page-crop::after {
    content: '';
    position: absolute;
    background: var(--sienna);
}
.crop-tl { top: 18px;   left: 18px; }
.crop-tl::before { width: 18px; height: 1px; top: 0; left: 0; }
.crop-tl::after  { width: 1px; height: 18px; top: 0; left: 0; }

.crop-tr { top: 18px; right: 18px; }
.crop-tr::before { width: 18px; height: 1px; top: 0; right: 0; }
.crop-tr::after  { width: 1px; height: 18px; top: 0; right: 0; }

.crop-bl { bottom: 18px; left: 18px; }
.crop-bl::before { width: 18px; height: 1px; bottom: 0; left: 0; }
.crop-bl::after  { width: 1px; height: 18px; bottom: 0; left: 0; }

.crop-br { bottom: 18px; right: 18px; }
.crop-br::before { width: 18px; height: 1px; bottom: 0; right: 0; }
.crop-br::after  { width: 1px; height: 18px; bottom: 0; right: 0; }

/* ============ Masthead (thin horizontal nav) ============ */
.masthead {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1200;
    background: rgba(245, 236, 215, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--rule);
}
.masthead-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px var(--margin-x);
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.14em;
    color: var(--ink);
}
.masthead-domain {
    color: var(--ink);
}
.masthead-dot {
    color: var(--honey);
    font-size: 14px;
    line-height: 1;
}
.masthead-issue {
    color: var(--clay);
}
.masthead-progress {
    height: 2px;
    background: transparent;
}
.masthead-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sienna), var(--honey), var(--clay));
    transition: width 120ms linear;
}

/* ============ Folio (page number) ============ */
.folio {
    position: fixed;
    bottom: 28px;
    right: calc(var(--margin-x) + 28px);
    z-index: 1150;
    display: flex;
    align-items: baseline;
    gap: 8px;
    pointer-events: none;
    font-family: 'Commissioner', sans-serif;
}
.folio-label {
    font-size: 10px;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    color: var(--sage);
}
.folio-num {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1;
    color: var(--sienna);
    letter-spacing: -0.02em;
    transition: transform 320ms var(--cubic);
}
.folio-num.flip {
    transform: translateY(-4px);
}
.folio-total {
    font-size: 11px;
    font-weight: 500;
    font-variant: small-caps;
    letter-spacing: 0.15em;
    color: var(--sepia);
}

/* ============ Chevron pulse indicator ============ */
.chevron-indicator {
    position: fixed;
    bottom: 32px;
    left: var(--margin-x);
    z-index: 1150;
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
    transition: opacity 400ms ease;
}
.chevron-indicator.hidden { opacity: 0; }
.chevron {
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--sienna);
    transform: rotate(90deg);
    animation: chevron-pulse 2s infinite ease-in-out;
    line-height: 1;
}
.chevron:nth-child(2) { animation-delay: 0.25s; color: var(--honey); }
.chevron:nth-child(3) { animation-delay: 0.5s;  color: var(--sage); }
@keyframes chevron-pulse {
    0%, 100% { opacity: 0.4; transform: rotate(90deg) translateY(0); }
    50%      { opacity: 1;   transform: rotate(90deg) translateY(3px); }
}

/* ============ Halftone dot overlay ============ */
.halftone-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(46, 33, 23, 0.85) 0.8px, transparent 1.4px);
    background-size: 4px 4px;
    opacity: 0.22;
    mix-blend-mode: multiply;
    transition: opacity 800ms var(--cubic);
}
.halftone-heavy {
    opacity: 0.4;
    background-size: 5px 5px;
}
.reveal.is-visible .halftone-overlay { opacity: 0.16; }
.reveal.is-visible .halftone-heavy   { opacity: 0.22; }

/* ============ Spread (section) base ============ */
main { display: block; }

.spread {
    position: relative;
    min-height: 100vh;
    padding: 88px var(--margin-x) 120px;
    scroll-snap-align: start;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spread::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right,  transparent 0, transparent calc(12.5% - 0.5px), rgba(212, 200, 168, 0.18) calc(12.5% - 0.5px), rgba(212, 200, 168, 0.18) calc(12.5% + 0.5px), transparent calc(12.5% + 0.5px)),
        linear-gradient(to right,  transparent 0, transparent calc(37.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(37.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(37.5% + 0.5px), transparent calc(37.5% + 0.5px)),
        linear-gradient(to right,  transparent 0, transparent calc(62.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(62.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(62.5% + 0.5px), transparent calc(62.5% + 0.5px)),
        linear-gradient(to right,  transparent 0, transparent calc(87.5% - 0.5px), rgba(212, 200, 168, 0.18) calc(87.5% - 0.5px), rgba(212, 200, 168, 0.18) calc(87.5% + 0.5px), transparent calc(87.5% + 0.5px));
    mix-blend-mode: multiply;
    z-index: 0;
}

.spread > * { position: relative; z-index: 1; }

/* Registration crosses at spread corners */
.registration-cross {
    position: absolute;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: var(--rule);
    line-height: 1;
    z-index: 2;
}
.reg-tl { top: 36px; left: var(--margin-x); }
.reg-tr { top: 36px; right: var(--margin-x); }
.reg-bl { bottom: 36px; left: var(--margin-x); }
.reg-br { bottom: 36px; right: var(--margin-x); }

/* 8-column grid */
.spread-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    column-gap: var(--gutter);
    row-gap: calc(var(--baseline) * 1.5);
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

/* ============ Diagonal section dividers ============ */
.diagonal-divider {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 48px;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}
.diagonal-divider::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--paper);
}
.divider-lean-right::before {
    clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 62%);
}
.divider-lean-left::before {
    clip-path: polygon(0 100%, 100% 100%, 100% 62%, 0 0);
}
.divider-dark::before {
    background: var(--ink);
}
/* When the NEXT section has a different bg, the divider "wipes" in using that color */
.spread-editor  + * .diagonal-divider::before,
.spread-cover   .diagonal-divider::before { background: var(--ink); }
.spread-editor  .diagonal-divider::before { background: var(--paper); }
.spread-feature .diagonal-divider::before { background: var(--ink); }
.spread-centrefold .diagonal-divider::before { background: var(--paper); }
.spread-portfolio .diagonal-divider::before { background: var(--ink); }
.spread-index .diagonal-divider::before { background: var(--paper); }

.divider-label {
    position: absolute;
    right: calc(var(--margin-x) + 8px);
    bottom: 10px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 10px;
    font-variant: small-caps;
    letter-spacing: 0.25em;
    color: var(--paper);
    mix-blend-mode: difference;
    z-index: 4;
}

/* ============ Typography primitives ============ */
.section-eyebrow {
    display: inline-block;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.22em;
    color: var(--clay);
    margin-bottom: var(--baseline);
}
.section-headline {
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 5vw + 0.5rem, 5.25rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-transform: uppercase;
    margin-bottom: var(--baseline);
}
.section-headline-compact {
    font-size: clamp(2rem, 4vw + 0.5rem, 4.25rem);
}

.rule-long {
    display: block;
    width: 120px;
    height: 3px;
    background: var(--sienna);
    margin-top: 8px;
}
.rule-short {
    display: inline-block;
    width: 32px;
    height: 2px;
    background: var(--sienna);
    vertical-align: middle;
    margin-right: 12px;
}
.rule-dot {
    display: block;
    width: 4px;
    height: 4px;
    background: var(--honey);
    border-radius: 50%;
    margin: 12px 0;
}

.dropcap {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 0.82;
    float: left;
    color: var(--sienna);
    padding: 6px 14px 0 0;
    margin-top: 4px;
}
.dropcap-gold { color: var(--honey); }

.folio-circle {
    display: inline-block;
    font-size: 15px;
    color: var(--honey);
    margin-right: 6px;
    vertical-align: middle;
}

/* ============ Reveal animation ============ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition:
        opacity 700ms var(--cubic),
        transform 700ms var(--cubic);
    transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============ Photo frame + crop corners (L-shape) ============ */
.photo-frame {
    position: relative;
    overflow: visible;
    isolation: isolate;
}
.photo-svg {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(30%) saturate(70%) contrast(110%);
    position: relative;
    z-index: 0;
}
.small-frame .photo-svg { aspect-ratio: 4 / 5; object-fit: cover; }

.crop-corner {
    position: absolute;
    width: 22px;
    height: 22px;
    z-index: 3;
    pointer-events: none;
}
.crop-corner::before,
.crop-corner::after {
    content: '';
    position: absolute;
    background: var(--ink);
    transition: transform 520ms var(--cubic);
}
.corner-tl { top: -12px; left: -12px; }
.corner-tl::before { width: 22px; height: 1px; top: 0; left: 0; transform-origin: left center; }
.corner-tl::after  { width: 1px; height: 22px; top: 0; left: 0; transform-origin: top center; }

.corner-tr { top: -12px; right: -12px; }
.corner-tr::before { width: 22px; height: 1px; top: 0; right: 0; transform-origin: right center; }
.corner-tr::after  { width: 1px; height: 22px; top: 0; right: 0; transform-origin: top center; }

.corner-bl { bottom: -12px; left: -12px; }
.corner-bl::before { width: 22px; height: 1px; bottom: 0; left: 0; transform-origin: left center; }
.corner-bl::after  { width: 1px; height: 22px; bottom: 0; left: 0; transform-origin: bottom center; }

.corner-br { bottom: -12px; right: -12px; }
.corner-br::before { width: 22px; height: 1px; bottom: 0; right: 0; transform-origin: right center; }
.corner-br::after  { width: 1px; height: 22px; bottom: 0; right: 0; transform-origin: bottom center; }

/* Crop mark draw-in effect */
.reveal .crop-corner::before { transform: scaleX(0); }
.reveal .crop-corner::after  { transform: scaleY(0); transition-delay: 220ms; }
.reveal.is-visible .crop-corner::before { transform: scaleX(1); }
.reveal.is-visible .crop-corner::after  { transform: scaleY(1); }

.photo-caption {
    display: block;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 12px;
    font-variant: small-caps;
    letter-spacing: 0.12em;
    color: var(--sage);
    margin-top: 14px;
    font-style: italic;
}
.caption-fig {
    color: var(--clay);
    font-style: normal;
    margin-right: 6px;
}

/* ============ SPREAD 01 — COVER ============ */
.spread-cover {
    background: var(--paper);
    padding-top: 110px;
}
.cover-grid {
    align-items: start;
}
.cover-kicker {
    grid-column: 1 / 9;
    display: flex;
    align-items: center;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.25em;
    color: var(--clay);
}
.cover-masthead {
    grid-column: 1 / 9;
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 16vw, 16rem);
    line-height: 0.82;
    letter-spacing: -0.04em;
    color: var(--ink);
    text-transform: uppercase;
    margin-top: 12px;
}
.masthead-serif {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    color: var(--sienna);
    font-style: italic;
    margin-right: -0.04em;
}
.masthead-sans {
    letter-spacing: -0.05em;
}

.cover-subtitle {
    grid-column: 1 / 5;
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    line-height: 1.35;
    color: var(--ink);
    margin-top: 12px;
}
.sub-line { display: block; }
.sub-emph {
    color: var(--clay);
    font-weight: 400;
}

.cover-photo {
    grid-column: 5 / 9;
    grid-row: 4 / span 2;
    margin-top: -40px;
    position: relative;
}

.cover-marginalia {
    grid-column: 1 / 3;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
    line-height: 1.55;
    color: var(--sage);
    padding-top: 16px;
    border-top: 1px solid var(--rule);
}

.cover-footer {
    grid-column: 1 / 9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: var(--baseline);
    border-top: 1px solid var(--rule);
    margin-top: 32px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.2em;
    color: var(--clay);
}
.price-tag {
    padding: 6px 12px;
    border: 1px solid var(--clay);
    color: var(--clay);
}
.barcode {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 28px;
}
.barcode span {
    display: block;
    width: 2px;
    height: 100%;
    background: var(--ink);
}
.barcode span:nth-child(odd)  { width: 1px; height: 80%; }
.barcode span:nth-child(3n)   { width: 3px; }
.barcode span:nth-child(5n)   { height: 60%; }

/* ============ SPREAD 02 — EDITOR LETTER ============ */
.spread-editor {
    background: var(--paper);
}
.editor-grid {
    align-items: start;
}
.editor-head {
    grid-column: 1 / 6;
}
.editor-body {
    grid-column: 1 / 6;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ink);
}
.editor-body p {
    margin-bottom: var(--baseline);
}
.editor-lead {
    font-size: 19px;
}
.editor-body strong {
    font-weight: 700;
    color: var(--clay);
    font-variant: small-caps;
    letter-spacing: 0.06em;
}
.editor-body em {
    font-style: italic;
    color: var(--sienna);
}

.editor-margin {
    grid-column: 7 / 9;
    padding: 24px 20px;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--honey);
    background: rgba(212, 162, 78, 0.05);
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
    line-height: 1.55;
    color: var(--sage);
    align-self: start;
    margin-top: 80px;
}
.editor-margin em { color: var(--sienna); font-style: italic; }
.editor-margin .margin-small {
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.12em;
    font-style: normal;
    color: var(--clay);
}

.editor-signature {
    grid-column: 1 / 6;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
}
.sig-line {
    flex: 0 0 80px;
    height: 2px;
    background: var(--ink);
}
.sig-name {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: var(--clay);
}

/* ============ SPREAD 03 — FEATURE ============ */
.spread-feature {
    background: var(--ink);
    color: var(--paper);
    padding-top: 120px;
}
.spread-feature .section-eyebrow { color: var(--honey); }
.spread-feature::before {
    background-image:
        linear-gradient(to right,  transparent 0, transparent calc(12.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(12.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(12.5% + 0.5px), transparent calc(12.5% + 0.5px)),
        linear-gradient(to right,  transparent 0, transparent calc(37.5% - 0.5px), rgba(212, 200, 168, 0.08) calc(37.5% - 0.5px), rgba(212, 200, 168, 0.08) calc(37.5% + 0.5px), transparent calc(37.5% + 0.5px)),
        linear-gradient(to right,  transparent 0, transparent calc(62.5% - 0.5px), rgba(212, 200, 168, 0.08) calc(62.5% - 0.5px), rgba(212, 200, 168, 0.08) calc(62.5% + 0.5px), transparent calc(62.5% + 0.5px)),
        linear-gradient(to right,  transparent 0, transparent calc(87.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(87.5% - 0.5px), rgba(212, 200, 168, 0.12) calc(87.5% + 0.5px), transparent calc(87.5% + 0.5px));
    mix-blend-mode: screen;
}

.feature-grid { position: relative; }
.feature-eyebrow { grid-column: 1 / 9; }
.feature-headline {
    grid-column: 1 / 9;
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--paper);
}
.fh-line { display: block; }
.fh-lean-a { color: var(--honey); transform: translateX(-8px); }
.fh-lean-b { color: var(--paper); transform: translateX(48px); }
.fh-lean-c {
    color: var(--sienna);
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-style: italic;
    transform: translateX(120px);
}

.feature-deck {
    grid-column: 1 / 6;
    font-family: 'Commissioner', sans-serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: var(--rule);
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 200, 168, 0.3);
}

.feature-col {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: var(--rule);
}
.feature-col p { margin-bottom: 16px; }
.feature-col em { color: var(--honey); font-style: italic; }
.feature-col-a { grid-column: 1 / 4; }
.feature-col-b { grid-column: 6 / 9; }

.feature-pullquote {
    grid-column: 4 / 6;
    position: relative;
    padding: 28px 24px;
    transform: skewX(-4deg);
    border-top: 2px solid var(--honey);
    border-bottom: 2px solid var(--honey);
    background: rgba(212, 162, 78, 0.06);
}
.feature-pullquote > * { transform: skewX(4deg); }
.feature-pullquote p {
    font-family: 'Fraunces', serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.2rem, 1.6vw, 1.5rem);
    line-height: 1.3;
    color: var(--paper);
    letter-spacing: 0.01em;
}
.quote-source {
    display: block;
    margin-top: 14px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 10px;
    font-variant: small-caps;
    letter-spacing: 0.25em;
    color: var(--honey);
}
/* Highlighter sweep */
.quote-bar {
    position: absolute;
    inset: 28px 24px;
    background: var(--honey);
    opacity: 0.35;
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 1100ms var(--cubic);
    z-index: 0;
    pointer-events: none;
}
.reveal.is-visible .quote-bar { transform: scaleX(1); }

.corner-fold {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 0;
    height: 0;
    border-top: 80px solid rgba(184, 98, 46, 0.25);
    border-left: 80px solid transparent;
    pointer-events: none;
    z-index: 0;
}

/* ============ SPREAD 04 — CENTREFOLD ============ */
.spread-centrefold {
    background: var(--ink);
    padding: 0;
    min-height: 100vh;
    justify-content: center;
    align-items: stretch;
}
.spread-centrefold::before { display: none; }

.centrefold-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.centrefold-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: opacity 1200ms var(--cubic), transform 1800ms var(--cubic);
    transform: scale(1.04);
}
.centrefold-photo.is-visible { transform: scale(1); }
.centrefold-photo .photo-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(40%) saturate(75%) contrast(115%) brightness(0.95);
}

.centrefold-crop {
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 4;
    pointer-events: none;
}
.centrefold-crop::before,
.centrefold-crop::after { content: ''; position: absolute; background: var(--paper); }
.centrefold-crop.corner-tl { top: 32px; left: 32px; }
.centrefold-crop.corner-tl::before { width: 30px; height: 1.5px; top: 0; left: 0; }
.centrefold-crop.corner-tl::after  { width: 1.5px; height: 30px; top: 0; left: 0; }
.centrefold-crop.corner-tr { top: 32px; right: 32px; }
.centrefold-crop.corner-tr::before { width: 30px; height: 1.5px; top: 0; right: 0; }
.centrefold-crop.corner-tr::after  { width: 1.5px; height: 30px; top: 0; right: 0; }
.centrefold-crop.corner-bl { bottom: 32px; left: 32px; }
.centrefold-crop.corner-bl::before { width: 30px; height: 1.5px; bottom: 0; left: 0; }
.centrefold-crop.corner-bl::after  { width: 1.5px; height: 30px; bottom: 0; left: 0; }
.centrefold-crop.corner-br { bottom: 32px; right: 32px; }
.centrefold-crop.corner-br::before { width: 30px; height: 1.5px; bottom: 0; right: 0; }
.centrefold-crop.corner-br::after  { width: 1.5px; height: 30px; bottom: 0; right: 0; }

.centrefold-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-2deg);
    z-index: 5;
    text-align: center;
    color: var(--paper);
    padding: 24px 48px;
}
.ctr-kicker {
    display: block;
    font-family: 'Commissioner', sans-serif;
    font-weight: 600;
    font-size: 12px;
    font-variant: small-caps;
    letter-spacing: 0.4em;
    color: var(--honey);
    margin-bottom: 20px;
    text-shadow: 0 2px 12px rgba(46, 33, 23, 0.55);
}
.ctr-quote {
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 7.5rem);
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: var(--paper);
    text-shadow: 0 3px 24px rgba(46, 33, 23, 0.55);
}
.ctr-attrib {
    display: block;
    margin-top: 24px;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 11px;
    font-variant: small-caps;
    letter-spacing: 0.32em;
    color: var(--rule);
    text-shadow: 0 2px 8px rgba(46, 33, 23, 0.6);
}

/* ============ SPREAD 05 — PORTFOLIO ============ */
.spread-portfolio {
    background: var(--paper);
}
.portfolio-grid {
    align-items: start;
    row-gap: calc(var(--baseline) * 2);
}
.portfolio-head { grid-column: 1 / 9; margin-bottom: 16px; }

.portfolio-item {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.pf-item-a { grid-column: 1 / 3; padding-top: 0; }
.pf-item-b { grid-column: 3 / 6; padding-top: 48px; }
.pf-item-c { grid-column: 6 / 9; padding-top: 16px; }
.pf-item-d { grid-column: 3 / 6; padding-top: 12px; }

.pf-title {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
    line-height: 1.1;
    color: var(--ink);
    letter-spacing: -0.01em;
}
.pf-body {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    color: var(--clay);
}
.pf-fig {
    display: inline-block;
    align-self: flex-start;
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 10px;
    font-variant: small-caps;
    letter-spacing: 0.25em;
    color: var(--sage);
    padding: 2px 8px;
    border: 1px solid var(--rule);
}

.portfolio-margin {
    grid-column: 6 / 9;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
    line-height: 1.5;
    color: var(--sage);
    padding: 20px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

/* ============ SPREAD 06 — INDEX / NUMBERS ============ */
.spread-index {
    background: var(--ink);
    color: var(--paper);
}
.spread-index .section-eyebrow { color: var(--honey); }
.spread-index .section-headline { color: var(--paper); }
.spread-index::before {
    background-image:
        linear-gradient(to right, transparent 0, transparent calc(12.5% - 0.5px), rgba(212, 200, 168, 0.1) calc(12.5% - 0.5px), rgba(212, 200, 168, 0.1) calc(12.5% + 0.5px), transparent calc(12.5% + 0.5px)),
        linear-gradient(to right, transparent 0, transparent calc(37.5% - 0.5px), rgba(212, 200, 168, 0.06) calc(37.5% - 0.5px), rgba(212, 200, 168, 0.06) calc(37.5% + 0.5px), transparent calc(37.5% + 0.5px)),
        linear-gradient(to right, transparent 0, transparent calc(62.5% - 0.5px), rgba(212, 200, 168, 0.06) calc(62.5% - 0.5px), rgba(212, 200, 168, 0.06) calc(62.5% + 0.5px), transparent calc(62.5% + 0.5px)),
        linear-gradient(to right, transparent 0, transparent calc(87.5% - 0.5px), rgba(212, 200, 168, 0.1) calc(87.5% - 0.5px), rgba(212, 200, 168, 0.1) calc(87.5% + 0.5px), transparent calc(87.5% + 0.5px));
    mix-blend-mode: screen;
}
.index-grid {
    align-items: start;
    row-gap: calc(var(--baseline) * 1.5);
}
.index-head { grid-column: 1 / 9; margin-bottom: 8px; }

.index-item {
    padding: 22px 20px;
    border-top: 1px solid rgba(212, 200, 168, 0.25);
    border-left: 1px solid rgba(212, 200, 168, 0.1);
    position: relative;
}
.idx-a { grid-column: 1 / 4; }
.idx-b { grid-column: 4 / 7; }
.idx-c { grid-column: 7 / 9; }
.idx-d { grid-column: 1 / 3; }
.idx-e { grid-column: 3 / 6; }
.idx-f { grid-column: 6 / 9; }

.idx-number {
    display: inline-block;
    font-family: 'Commissioner', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1;
    color: var(--honey);
    letter-spacing: -0.03em;
}
.idx-bar {
    display: block;
    height: 4px;
    background: rgba(212, 200, 168, 0.15);
    margin: 14px 0 16px;
    overflow: hidden;
    position: relative;
}
.idx-bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--sienna), var(--honey));
    transition: width 1400ms var(--cubic);
}
.reveal.is-visible .idx-bar-fill {
    /* width is set via data-width inline style by JS */
}

.idx-label {
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    color: var(--rule);
}

.index-margin {
    grid-column: 1 / 9;
    margin-top: 24px;
    padding: 20px 24px;
    border-top: 1px solid rgba(212, 200, 168, 0.25);
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 13px;
    color: var(--sage);
    text-align: center;
}
.index-margin em { color: var(--honey); }

/* ============ SPREAD 07 — COLOPHON ============ */
.spread-colophon {
    background: var(--paper);
    padding-bottom: 140px;
}
.colophon-grid {
    align-items: start;
}
.colophon-head { grid-column: 1 / 6; }
.colophon-body {
    grid-column: 1 / 6;
    font-family: 'Commissioner', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
}
.colophon-body p { margin-bottom: var(--baseline); }
.colophon-body strong {
    font-weight: 700;
    color: var(--clay);
}
.colophon-body em { color: var(--sienna); font-style: italic; }
.colophon-signoff {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 18px;
    color: var(--clay);
}

.colophon-mark {
    grid-column: 6 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
}
.mark-seal {
    width: 220px;
    height: 220px;
}
.seal-svg {
    width: 100%;
    height: 100%;
}
.mark-year {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 12px;
    font-variant: small-caps;
    letter-spacing: 0.3em;
    color: var(--clay);
}
.mark-addr {
    font-family: 'Commissioner', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--sienna);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color 200ms ease, border-color 200ms ease;
}
.mark-addr:hover {
    color: var(--clay);
    border-bottom-color: var(--clay);
    cursor: pointer;
}

.colophon-end {
    grid-column: 1 / 9;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}
.end-rule {
    flex: 1;
    height: 1px;
    background: var(--rule);
}
.end-mark {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    color: var(--honey);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .spread-grid { grid-template-columns: repeat(4, 1fr); column-gap: 16px; }

    .cover-kicker,
    .cover-masthead,
    .cover-subtitle,
    .cover-marginalia,
    .cover-footer { grid-column: 1 / -1; }
    .cover-photo { grid-column: 1 / -1; grid-row: auto; margin-top: 16px; }

    .editor-head,
    .editor-body,
    .editor-signature,
    .editor-margin { grid-column: 1 / -1; }
    .editor-margin { margin-top: 16px; }

    .feature-eyebrow,
    .feature-headline,
    .feature-deck,
    .feature-col-a,
    .feature-col-b,
    .feature-pullquote { grid-column: 1 / -1; }

    .portfolio-head,
    .pf-item-a,
    .pf-item-b,
    .pf-item-c,
    .pf-item-d,
    .portfolio-margin { grid-column: 1 / -1; padding-top: 0; }

    .index-head,
    .idx-a, .idx-b, .idx-c, .idx-d, .idx-e, .idx-f,
    .index-margin { grid-column: 1 / -1; }

    .colophon-head,
    .colophon-body,
    .colophon-mark,
    .colophon-end { grid-column: 1 / -1; }

    .fh-lean-a, .fh-lean-b, .fh-lean-c { transform: none; }
    .feature-pullquote { transform: none; }
    .feature-pullquote > * { transform: none; }

    .folio { right: 24px; }
    .chevron-indicator { left: 24px; }
    .masthead-inner { padding: 12px 20px; font-size: 10px; }
    .masthead-issue { display: none; }

    .spread { padding: 96px 24px 96px; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .spread { padding: 92px 20px 92px; }
    .section-headline { font-size: clamp(2rem, 9vw, 3rem); }
    .cover-masthead { font-size: clamp(4rem, 18vw, 7rem); }
    .ctr-quote { font-size: clamp(2.4rem, 11vw, 4rem); }

    .mark-seal { width: 170px; height: 170px; }
    .page-crops { display: none; }
}
