/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg-light: #ffffff;
    --color-bg-dark: #0a0a0a;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #666666;
    --color-text-tertiary: #999999;
    --color-accent: #e0e0e0;
    --color-border-tertiary: #e4e4e4;
    --color-background-secondary: #f5f5f5;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica', sans-serif;
    --max-text-width: 680px;
    --spacing-unit: 24px;
    --border-radius-md: 4px;
}

body {
    font-family: var(--font-serif);
    font-size: 19px;
    line-height: 1.7;
    color: var(--color-text-primary);
    background: var(--color-bg-light);
    overflow-x: hidden;
}

/* Story Content */
.story-content {
    width: 100%;
}

.story-section {
    position: relative;
    min-height: 100vh;
}

/* Full Bleed Media */
.full-bleed-media {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* placeholder colour while image loads */
    background: linear-gradient(160deg, #0d1b2a 0%, #1a2e42 100%);
}

.full-bleed-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Section Four — full opacity image */
.section-four .full-bleed-image {
    opacity: 1;
    filter: none;
}

/* Overlay: gradient + text container */
.fbm-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(24px, 6vw, 80px) clamp(40px, 7vh, 72px);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.32) 38%,
        rgba(0, 0, 0, 0.10) 62%,
        transparent 100%
    );
    pointer-events: none;
}

.fbm-title {
    font-family: var(--font-sans);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 clamp(16px, 3vh, 32px);
    opacity: 1;
    will-change: opacity;
}

.fbm-caption {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 540px;
    margin: 0;
    opacity: 0;
    will-change: opacity;
}


/* ============================================================
   Section One — horizontal image reveal on scroll
   ============================================================ */
.s1-reveal-wrap {
    position: relative;
    height: 300vh;   /* scroll distance that drives the animation */
    width: 100%;
}

.s1-reveal-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.s1-img {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0d1b2a 0%, #1a2e42 100%);
}

.s1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Second image starts off-screen right, slides in */
.s1-img-b {
    transform: translateX(100%);
    will-change: transform;
}

/* Overlay keeps title centered, caption at bottom */
.s1-reveal-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(24px, 6vw, 80px) clamp(40px, 7vh, 72px);
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72) 0%,
        rgba(0, 0, 0, 0.28) 36%,
        rgba(0, 0, 0, 0.10) 60%,
        transparent 100%
    );
    pointer-events: none;
}

.s1-reveal-title {
    font-family: var(--font-sans);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 clamp(16px, 3vh, 32px);
}

.s1-reveal-caption {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    max-width: 540px;
    margin: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.s1-reveal-caption.is-visible { opacity: 1; }

/* ------------------------------------------------------------ */

/* Legacy .image-caption — keep for any inline images */
.image-caption {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

/* Narrative Text */
.narrative-text {
    max-width: var(--max-text-width);
    margin: 0 auto;
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
}

.section-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.opening-paragraph {
    font-size: 28px;
    line-height: 1.5;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.narrative-text p {
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

/* Pull quote — used in section five */
.pull-quote {
    font-family: var(--font-serif);
    font-size: clamp(17px, 2vw, 21px);
    font-style: italic;
    line-height: 1.65;
    color: var(--color-text-primary);
    border-left: 3px solid rgba(0,0,0,0.18);
    margin: calc(var(--spacing-unit) * 2.5) 0;
    padding: 4px 0 4px calc(var(--spacing-unit) * 1.5);
}

.pull-quote p {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.pull-quote cite {
    display: block;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-style: normal;
    color: var(--color-text-secondary);
    letter-spacing: 0.05em;
    margin-top: 12px;
}

/* Inline Images */
.inline-image {
    margin: calc(var(--spacing-unit) * 3) 0;
}

.inline-video {
    margin: calc(var(--spacing-unit) * 3) 0;
}

.iv-wrap {
    position: relative;
    cursor: pointer;
    background: #000;
    overflow: hidden;
    line-height: 0;
}

.iv-wrap video {
    width: 100%;
    height: auto;
    display: block;
}

/* Portrait video — zoom thumbnail to crop bottom burn-in; revert on play */
.iv-wrap--portrait video {
    transform: scale(1.22) translateY(-5%);
    transform-origin: top center;
    transition: transform 0.35s ease;
}

.iv-wrap--portrait.is-playing video {
    transform: none;
}

/* Quote overlay — anchored to bottom-left corner */
.iv-overlay {
    position: absolute;
    bottom: 0;
    left: 1px;
    right: 0;
    padding: 0 0 10px 10px;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.iv-wrap.is-playing .iv-overlay {
    opacity: 0;
}

.iv-overlay .iv-quote {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-style: italic;
    color: #fff;
    line-height: 1.45;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
    margin: 0;
    max-width: 480px;
}

/* Circular play button */
.iv-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    padding-left: 4px; /* optical centre for play triangle */
}

.iv-play-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.70);
    transform: translate(-50%, -50%) scale(1.1);
}

.iv-wrap.is-playing .iv-play-btn {
    opacity: 0;
    pointer-events: none;
}

/* Custom control bar — appears over the video when playing */
.iv-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 20px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
    z-index: 4;
}

.iv-wrap.is-playing .iv-bar {
    opacity: 0;
    pointer-events: none;
}

.iv-wrap.is-playing:hover .iv-bar,
.iv-wrap.is-playing.is-scrubbing .iv-bar {
    opacity: 1;
    pointer-events: auto;
}

.iv-bar-play {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.80);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    line-height: 1;
    pointer-events: auto;
}

.iv-bar-play:hover {
    color: #fff;
}

.iv-bar-track {
    flex: 1;
    position: relative;
    height: 20px;
    display: flex;
    align-items: center;
    cursor: pointer;
    min-width: 0;
    pointer-events: auto;
}

.iv-bar-track::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.28);
    border-radius: 2px;
}

.iv-bar-fill {
    position: absolute;
    left: 0;
    height: 3px;
    width: 0%;
    background: rgba(255,255,255,0.88);
    border-radius: 2px;
    pointer-events: none;
}

.iv-bar-time {
    flex-shrink: 0;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.45);
    white-space: nowrap;
}

.inline-video figcaption {
    margin-top: 12px;
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.inline-image img {
    width: 100%;
    height: auto;
    display: block;
    background: linear-gradient(160deg, #0d1b2a 0%, #1a2e42 100%);
    min-height: 200px;
}

.inline-image .image-caption,
.inline-image figcaption {
    position: static;
    transform: none;
    margin-top: 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    text-shadow: none;
}

/* Pullquotes */
.pullquote {
    margin: calc(var(--spacing-unit) * 3) 0;
    padding: calc(var(--spacing-unit) * 2);
    border-left: 3px solid var(--color-text-primary);
    font-style: italic;
    font-size: 22px;
    line-height: 1.6;
}

.pullquote cite {
    display: block;
    margin-top: var(--spacing-unit);
    font-family: var(--font-sans);
    font-size: 14px;
    font-style: normal;
    color: var(--color-text-secondary);
}

/* Section Transitions — only used for sections without an opening image (e.g. The Buildout) */
.section-transition {
    width: 100%;
    padding: clamp(48px, 8vh, 96px) var(--spacing-unit);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-dark);
}

.transition-title {
    font-family: var(--font-sans);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 300;
    color: var(--color-bg-light);
    letter-spacing: -0.02em;
    text-align: center;
}

/* Interactive Map */
.interactive-map-container {
    width: 100%;
    min-height: 100vh;
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    background: #f5f5f5;
}

.interactive-map {
    width: 100%;
    height: 80vh;
    background: var(--color-bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.map-caption {
    max-width: var(--max-text-width);
    margin: var(--spacing-unit) auto 0;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* Final Image Animation */
.final-image {
    position: relative;
    overflow: hidden;
}

.final-image .full-bleed-image {
    transform: translateY(100px);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1),
                opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.final-image.is-visible .full-bleed-image {
    transform: translateY(0);
    opacity: 1;
}

/* Story Footer */
.story-footer {
    max-width: var(--max-text-width);
    margin: calc(var(--spacing-unit) * 4) auto;
    padding: calc(var(--spacing-unit) * 3) var(--spacing-unit);
    border-top: 1px solid var(--color-accent);
}

.byline {
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.byline p {
    margin-bottom: 8px;
}

.byline p:first-child {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Growth chart (After section) */
.growth-chart-container {
    margin: calc(var(--spacing-unit) * 3) 0;
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 1.5);
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid var(--color-accent);
}

.growth-chart-title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.growth-chart-wrap {
    width: 100%;
    height: 260px;
    position: relative;
}

#growth-chart {
    display: block;
    width: 100%;
    height: 100%;
}

.growth-chart-note {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: var(--spacing-unit);
    line-height: 1.55;
}

/* Depth cross-section (Buildout section) */
.depth-section {
    margin: calc(var(--spacing-unit) * 3) 0;
    background: #f4f6f8;
    border-radius: 4px;
    padding: calc(var(--spacing-unit) * 1.5) var(--spacing-unit);
    overflow-x: auto;
}

.depth-section-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-unit);
}

.depth-svg {
    width: 100%;
    min-width: 560px;
    height: auto;
    display: block;
}

.ds-label {
    font-family: system-ui, sans-serif;
    fill: rgba(40, 50, 70, 0.55);
    letter-spacing: 0.04em;
}

.ds-note {
    font-family: system-ui, sans-serif;
    fill: rgba(40, 50, 70, 0.4);
    letter-spacing: 0.02em;
}

.depth-caption {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-top: var(--spacing-unit);
}

/* Opening section map */
/* ---- Map fullscreen wrapper ---- */
.map-fullscreen {
    height: 100vh;
    background: #f8f7f4;
    position: relative;
}

.map-fullscreen .opening-map-section {
    padding: 0;
    height: 100%;
}

.map-fullscreen .opening-map-container {
    max-width: none;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    position: relative;
}

.map-fullscreen .opening-map-svg-wrap {
    flex: 1;
    height: 100%;
    border-right: none;
    background: transparent;
    position: relative;
}

.map-fullscreen #opening-map-svg {
    min-height: 0;
}

/* Panel as a slide-in drawer */
.map-fullscreen .wind-farm-panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: clamp(320px, 46%, 580px);
    background: rgba(248, 247, 244, 0.97);
    border-left: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
    padding: clamp(28px, 4vw, 56px);
    transform: translateX(101%);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
}

.map-fullscreen .wind-farm-panel.is-open {
    transform: translateX(0);
}

/* Floating hint text on the map */
.map-hint-float {
    position: absolute;
    top: 28px;
    left: 28px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.13);
    padding: 9px 22px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.82);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.35s ease;
    margin: 0;
}

.map-hint-float.is-hidden {
    opacity: 0;
}

.map-fullscreen .map-caption {
    display: none;
}

/* Light county and farm overrides for fullscreen */
.map-fullscreen .tw-county { fill: #b8ccb4 !important; stroke: #98b094 !important; stroke-width: 1.5 !important; }
.map-fullscreen .tw-clickable { fill: #e4bba0 !important; stroke: #c49a7c !important; stroke-width: 1.5 !important; cursor: pointer; transition: fill 0.2s ease; }
.map-fullscreen .tw-clickable:hover { fill: #d4a07c !important; }
.map-fullscreen .tw-clickable.county-active { fill: #c4906a !important; }
.map-fullscreen .open-county-label { fill: rgba(0, 0, 0, 0.45); }
.map-fullscreen .wind-farm-panel { color: rgba(0, 0, 0, 0.70); }
.map-fullscreen .panel-orient,
.map-fullscreen .panel-hint { color: rgba(0, 0, 0, 0.50); font-size: 14px; }
.map-fullscreen .panel-county-name { color: rgba(0, 0, 0, 0.85); }
.map-fullscreen .panel-summary-stat { color: rgba(0, 0, 0, 0.45); }
.map-fullscreen .wind-farm-item { border-bottom-color: rgba(0, 0, 0, 0.10); }
.map-fullscreen .farm-name { color: rgba(0, 0, 0, 0.80); }
.map-fullscreen .farm-sub { color: rgba(0, 0, 0, 0.45); }
.map-fullscreen .farm-distance,
.map-fullscreen .farm-status { color: rgba(0, 0, 0, 0.35); }
.map-fullscreen .farm-note { color: rgba(0, 0, 0, 0.50); border-top-color: rgba(0, 0, 0, 0.10); }
.map-fullscreen .panel-back {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.45);
    padding: 8px 14px;
    border-radius: 2px;
}
.map-fullscreen .panel-back:hover { color: rgba(0, 0, 0, 0.75); }

/* ---- Base map styles (non-fullscreen fallback) ---- */
.opening-map-section {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
}

.opening-map-container {
    display: flex;
    gap: 0;
    max-width: 960px;
    margin: 0 auto;
    align-items: stretch;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.opening-map-svg-wrap {
    flex: 0 0 360px;
    border-right: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

#opening-map-svg {
    width: 100%;
    height: 100%;
    display: block;
    flex: 1;
    min-height: 300px;
}

/* Geographic county paths */
.tw-county {
    fill: #b8ccb4;
    stroke: #98b094;
    stroke-width: 1.5;
    stroke-linejoin: round;
    paint-order: stroke fill;
}

.tw-clickable {
    fill: #e4bba0;
    fill-opacity: 1;
    stroke: #c49a7c;
    stroke-width: 1.5;
    cursor: pointer;
    outline: none;
    transition: fill 0.25s ease;
}

.tw-clickable:hover {
    fill: #d4a07c;
}

.tw-clickable.county-active {
    fill: #c4906a;
}

/* County labels on opening map */
.open-county-label {
    font-family: var(--font-sans);
    font-size: 8px;
    fill: rgba(30, 40, 100, 0.7);
    font-weight: 600;
    letter-spacing: 0.06em;
    pointer-events: none;
}

.tw-strait-label {
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.10em;
    fill: rgba(80, 110, 160, 0.55);
}

/* Wind farm panel */
.wind-farm-panel {
    flex: 1;
    min-height: 200px;
    padding: calc(var(--spacing-unit) * 1.5);
}

.panel-hint {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.6;
}

.panel-county-name {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.panel-note {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-unit);
}

.wind-farm-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-unit);
}

.wind-farm-item {
    display: flex;
    flex-direction: column;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.wind-farm-item.farm-item-visible {
    opacity: 1;
    transform: translateX(0);
}

.wind-farm-item.highlighted {
    background: rgba(251, 191, 36, 0.06);
    border-left: 2px solid rgba(251, 191, 36, 0.7);
    padding-left: 10px;
    margin-left: -12px;
    border-radius: 0 2px 2px 0;
}

.farm-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.farm-detail {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #4346dc;
    margin-top: 2px;
}

.panel-back {
    font-family: var(--font-sans);
    font-size: 13px;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.panel-back:hover {
    color: var(--color-text-primary);
}

/* Panel header and summary stat */
.panel-orient {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text-primary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.panel-header {
    margin-bottom: var(--spacing-unit);
}

.panel-summary-stat {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
    margin-top: 4px;
}

/* Enriched farm item fields */
.farm-sub {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #4346dc;
    margin-top: 2px;
}

.farm-distance {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 3px;
}

.farm-status {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-text-secondary);
    font-style: italic;
    margin-top: 2px;
}

.farm-note {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-text-primary);
    line-height: 1.5;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid var(--color-accent);
}

/* Process graphic */
.process-graphic-container {
    padding: calc(var(--spacing-unit) * 4) var(--spacing-unit);
    background: #0a0a0a;
    overflow-x: auto;
}

.process-graphic {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-track {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--spacing-unit) * 1.5);
}

.process-track-label {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    flex: 0 0 100px;
    padding-top: 10px;
}

.process-track--developer .process-track-label {
    color: rgba(255,255,255,0.5);
}

.process-track--fishermen .process-track-label {
    color: rgba(220,100,80,0.8);
}

.process-steps {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
}

.process-step {
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.process-track--developer .process-step {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.12);
}

.process-track--fishermen .process-step {
    background: rgba(220,100,80,0.12);
    color: rgba(220,130,110,0.9);
    border: 1px solid rgba(220,100,80,0.2);
}

.process-connector {
    width: 24px;
    height: 1px;
    flex-shrink: 0;
}

.process-track--developer .process-connector {
    background: rgba(255,255,255,0.2);
}

.process-track--fishermen .process-connector {
    background: rgba(220,100,80,0.25);
}

.process-track--fishermen .process-steps {
    margin-left: 72px; /* visual misalignment — the timelines don't match */
}

.process-caption {
    font-family: var(--font-sans);
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    max-width: var(--max-text-width);
    margin: calc(var(--spacing-unit) * 1.5) auto 0;
    font-style: italic;
    line-height: 1.6;
}

/* Tension headings — subsection markers in Section Three */
.tension-heading {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin: calc(var(--spacing-unit) * 3) 0 calc(var(--spacing-unit) * 1.5);
    padding-top: calc(var(--spacing-unit) * 1.5);
    border-top: 1px solid var(--color-accent);
}

/* Flush image (no top margin) */
.flush-image {
    margin-top: 0;
    margin-bottom: 0;
}

.flush-image .image-caption {
    position: static;
    transform: none;
    color: var(--color-text-secondary);
    text-shadow: none;
    padding: 12px var(--spacing-unit) 0;
    max-width: none;
    left: auto;
}

/* Story coda */
.section-six .narrative-text {
    padding-bottom: var(--spacing-unit);
}

.story-coda {
    max-width: var(--max-text-width);
    margin: 0 auto calc(var(--spacing-unit) * 5);
    padding: 0 var(--spacing-unit);
    text-align: center;
}

.coda-quote {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.7;
    color: var(--color-text-primary);
    margin: 0 0 calc(var(--spacing-unit) * 1.5);
    padding: 0;
    border: none;
}

.coda-quote p {
    margin-bottom: calc(var(--spacing-unit) * 0.75);
}

.coda-quote cite {
    display: block;
    font-family: var(--font-sans);
    font-size: 13px;
    font-style: normal;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
}

.coda-place {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-text-secondary);
    letter-spacing: 0.06em;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

.coda-closer {
    font-family: var(--font-serif);
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        font-size: 17px;
    }

    .opening-paragraph {
        font-size: 24px;
    }

    .pullquote {
        font-size: 20px;
        padding: var(--spacing-unit);
    }

    .transition-title {
        font-size: 36px;
    }

    .narrative-text {
        padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    }

    .opening-map-container {
        flex-direction: column;
    }

    .opening-map-svg-wrap {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e8edf2;
    }

    .wind-farm-panel {
        width: 100%;
    }

    .process-track {
        flex-direction: column;
        gap: var(--spacing-unit);
    }

    .process-steps {
        flex-wrap: wrap;
        gap: 8px;
    }

    .process-track--fishermen .process-steps {
        margin-left: 0;
    }

    .process-connector {
        display: none;
    }

    .story-footer {
        padding: calc(var(--spacing-unit) * 2) var(--spacing-unit);
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .opening-paragraph {
        font-size: 22px;
    }

    .transition-title {
        font-size: 28px;
    }

    .byline {
        font-size: 13px;
    }
}

/* ─── Fishing impact diagram ─────────────────────────────────────── */

.fishing-diagram-wrap {
    width: min(960px, calc(100vw - 48px));
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-top: calc(var(--spacing-unit) * 2.5);
    margin-bottom: calc(var(--spacing-unit) * 2.5);
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit));
    background: #f0f4f8;
    border-radius: 4px;
    box-sizing: border-box;
}

.fishing-diagram-label {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
    margin-bottom: 14px;
}

.fd {
    padding: 0;
    font-family: var(--font-sans);
}

.fd-tabs,
.fd-tabs-row {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    border-bottom: 0.5px solid var(--color-border-tertiary);
    margin-bottom: 10px;
    padding-bottom: 4px;
}

.fd-tab {
    flex: 1;
    padding: 10px 6px;
    font-size: 10px;
    letter-spacing: 0.09em;
    color: var(--color-text-tertiary);
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.18s;
    text-align: center;
    font-family: var(--font-sans);
    white-space: nowrap;
}

.fd-tab.on {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-text-primary);
    font-weight: 500;
}

.fd-wrap,
.fd-canvas-wrap {
    position: relative;
    cursor: crosshair;
    width: 100%;
}

.fd-canvas-wrap canvas {
    display: block;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.fd-legend-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    margin-bottom: 2px;
}

.fd-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
}

.fd-legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.fd-info,
.fd-info-box {
    margin-top: 10px;
    min-height: 72px;
    padding: 12px 14px;
    border-radius: var(--border-radius-md);
    background: var(--color-background-secondary);
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
}

.fd-status {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 5px;
    font-weight: 500;
}

.fd-loc {
    display: block;
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-bottom: 5px;
    font-weight: 500;
}

.fd-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ─── Tension cards ──────────────────────────────────────────────── */

.tension-cards-wrap {
    margin: calc(var(--spacing-unit) * 2.5) 0;
}

.tc {
    padding: 0;
    font-family: var(--font-sans);
}

.tc-nav {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    border-bottom: 0.5px solid var(--color-border-tertiary);
}

.tc-btn {
    flex: 1;
    padding: 13px 8px;
    font-size: 10px;
    letter-spacing: 0.10em;
    color: var(--color-text-tertiary);
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
    line-height: 1.3;
    font-family: var(--font-sans);
}

.tc-btn.on {
    color: var(--color-text-primary);
    border-bottom-color: var(--color-text-primary);
    font-weight: 500;
}

.tc-body {
    display: none;
    padding: 28px 0 0;
}

.tc-body.on {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 32px;
}

.tc-nums {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tc-stat {
    padding: 0;
}

.tc-n {
    font-size: 34px;
    font-weight: 200;
    color: var(--color-text-primary);
    line-height: 1;
    letter-spacing: -1px;
    font-family: var(--font-sans);
}

.tc-unit {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-left: 3px;
}

.tc-nl {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    line-height: 1.5;
    max-width: 180px;
    font-family: var(--font-sans);
}

.tc-div {
    width: 24px;
    height: 0.5px;
    background: var(--color-border-tertiary);
    margin: 12px 0;
}

.tc-prose {
    font-size: 13.5px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 18px;
    font-family: var(--font-sans);
}

.tc-inline-quote {
    border-left: 2px solid rgba(0,0,0,0.15);
    padding-left: 14px;
    margin: 14px 0 18px;
}

.tc-quote {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 15px;
    color: var(--color-text-primary);
    line-height: 1.72;
    margin-bottom: 6px;
}

.tc-attr {
    font-size: 10px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.08em;
    font-family: var(--font-sans);
}

.tc-tag {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 0.10em;
    padding: 3px 9px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

@media (max-width: 768px) {
    .tc-body.on {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fd-tab {
        font-size: 9px;
        padding: 9px 4px;
    }
}

/* ---- Opening gate: fullscreen Feichun quote + scroll lock ---- */
.ob-gate {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #06090f;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ob-quote-stage {
    max-width: 640px;
    width: 100%;
    padding: 0 clamp(28px, 8vw, 80px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.ob-quote-text {
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(18px, 2.8vw, 26px);
    font-style: italic;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.90);
    opacity: 0;
    transition: opacity 0.5s ease;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ob-quote-text.is-active { opacity: 1; }

/* Attribution — sits below quote text, fades in after playback starts */
.ob-attrib {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.22);
    margin: 0;
    opacity: 0;
    transition: opacity 1.2s ease 1s;
    pointer-events: none;
}
.ob-gate.is-playing .ob-attrib { opacity: 1; }

/* Sound row — button + tip inline at bottom-left */
.ob-sound-row {
    position: absolute;
    bottom: 32px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 10;
}

/* Sound button — identical to intro's .ambient-btn */
.ob-sound-btn {
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 10px 18px;
    cursor: pointer;
    transition: all 0.35s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.ob-sound-btn:hover {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.30);
}
.ob-sound-btn.is-muted {
    color: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.08);
}
.ob-sound-icon { font-size: 14px; line-height: 1; }

/* Sound tip — inline to the right of the button */
.ob-sound-tip {
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(14px, 1.8vw, 17px);
    font-style: italic;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    pointer-events: none;
    animation: ob-tip-pulse 2s ease-in-out infinite;
    transition: opacity 0.5s ease, max-width 0.5s ease 0.3s, overflow 0s ease 0.8s;
    max-width: 400px;
    overflow: hidden;
}
.ob-sound-tip.is-gone {
    opacity: 0;
    pointer-events: none;
    max-width: 0;
    overflow: hidden;
    margin: 0;
}

@keyframes ob-tip-pulse {
    0%, 100% { opacity: 0.40; }
    50%       { opacity: 0.85; }
}

/* Scroll cue — appears after quote ends, centered, above the sound button */
.ob-scroll-cue {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-family: var(--font-sans, system-ui, sans-serif);
    font-size: 13px;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}
.ob-scroll-cue.is-visible {
    opacity: 1;
    pointer-events: auto;
    animation: ob-cue-breathe 2.6s ease-in-out infinite;
}

.ob-scroll-arrow {
    width: 2px;
    height: 44px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.75));
    animation: ob-arrow-fall 1.6s ease-in-out infinite;
}

@keyframes ob-cue-breathe {
    0%, 100% { opacity: 0.60; }
    50%       { opacity: 1; }
}
@keyframes ob-arrow-fall {
    0%   { transform: translateY(-6px); opacity: 0; }
    35%  { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* ============================================================
   MEDIA PLACEHOLDERS
   ============================================================ */
.media-placeholder {
    margin: calc(var(--spacing-unit) * 2.5) 0;
}

.placeholder-box {
    width: 100%;
    background: #f4f4f2;
    border: 1px solid #e2e2df;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.placeholder-box.placeholder-img { height: 340px; }
.placeholder-box.placeholder-vid { height: 400px; }

.placeholder-icon {
    width: 36px;
    height: 36px;
    color: #bbbbbb;
}

.placeholder-label {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #bbbbbb;
}

.placeholder-desc {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #999999;
    text-align: center;
    max-width: 320px;
    line-height: 1.5;
}

.placeholder-caption {
    display: block;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.6;
    margin-top: 8px;
    font-style: italic;
}

/* Inside tension cards (section 3) the placeholder is narrower */
.tc-right .media-placeholder {
    margin: 14px 0;
}

.tc-right .placeholder-box.placeholder-img {
    height: 220px;
}

/* ─── Field Documentation Carousel ─────────────────────────────────────────── */

.doc-carousel {
    width: 100%;
    max-width: var(--max-text-width);
    margin: calc(var(--spacing-unit) * 2) auto;
    background: #0e1319;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.doc-carousel-track {
    position: relative;
}

.doc-slide {
    display: none;
}

.doc-slide.is-active {
    display: block;
}

/* Media container — video */
.doc-media {
    width: 100%;
    height: clamp(260px, 40vw, 420px);
    overflow: hidden;
    position: relative;
    background: #000;
}

.doc-media .iv-wrap {
    width: 100%;
    height: 100%;
}

.doc-media .iv-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Side-by-side photo pair */
.doc-media-pair {
    display: flex;
    width: 100%;
    height: clamp(260px, 40vw, 420px);
    gap: 2px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.doc-media-pair > img {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

.doc-media-trio {
    display: flex;
    width: 100%;
    height: clamp(220px, 35vw, 380px);
    gap: 2px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.doc-media-trio > img {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Each guitarfish half gets its own clip container */
.doc-guitarfish-wrap {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/* Guitarfish — fill each half of the frame */
.doc-guitarfish {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Horseshoe crab right image — slightly left of centre */
.doc-crab-shift {
    object-position: 80% center;
}

/* Right guitarfish image — slightly below centre */
.doc-guitarfish-wrap:last-of-type .doc-guitarfish {
    object-position: center 20%;
}

/* Single overlay: gradient + caption text + dots, all at the bottom of the carousel */
.doc-carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 4px 14px 4px;
    background: linear-gradient(to top,
        rgba(0,0,0,0.82) 0%,
        rgba(0,0,0,0.55) 60%,
        transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.doc-caption {
    display: block;
    font-family: var(--font-sans);
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.82);
    font-style: italic;
    margin: 0 !important;
    padding: 0;
}

/* Prev / Next arrows — overlay on the media area, vertically centered */
.doc-prev,
.doc-next {
    position: absolute;
    top: calc(clamp(260px, 40vw, 420px) / 2);
    transform: translateY(-50%);
    z-index: 10;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.30);
    background: rgba(0, 0, 0, 0.40);
    color: rgba(255, 255, 255, 0.90);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.doc-prev { left: 12px; }
.doc-next { right: 12px; }

.doc-prev:hover,
.doc-next:hover {
    background: rgba(0, 0, 0, 0.65);
}

.doc-prev:disabled,
.doc-next:disabled {
    opacity: 0.22;
    cursor: default;
}

/* Footer — dots with breathing room above and below */
.doc-carousel-footer {
    display: flex;
    justify-content: center;
    padding-top: 5px;
    padding-bottom: 5px;
    pointer-events: auto;
}

.doc-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.doc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.doc-dot.is-active {
    background: rgba(255, 255, 255, 0.85);
    transform: scale(1.3);
}
