/* =========================================================
   layer2.report — Watercolor Field Journal
   Coastal-blend palette, organic-flow, bebas-bold headlines
   Fonts: Bebas Neue, Merriweather, Kalam (Google Fonts)
   ========================================================= */

:root {
    /* coastal-blend palette */
    --cream-ground: #f5ede0;
    --foam-white: #faf8f2;
    --coastal-teal: #4a9c9c;
    --deep-tide: #2a5a5a;
    --sandy-warm: #d4b896;
    --coral-accent: #c4786a;

    /* derived */
    --text-primary: #2a5a5a;
    --text-soft: rgba(42, 90, 90, 0.78);
    --text-faint: rgba(42, 90, 90, 0.55);
    --chart-stroke: rgba(42, 90, 90, 0.7);

    /* fonts */
    --font-display: "Bebas Neue", "Inter", sans-serif;
    --font-body: "Merriweather", Georgia, serif;
    --font-hand: "Kalam", "Bradley Hand", cursive;

    /* shape */
    --note-radius: 6px;
    --note-shadow: 0 2px 8px rgba(42, 90, 90, 0.08), 0 12px 24px rgba(42, 90, 90, 0.06);
    --note-shadow-hover: 0 4px 14px rgba(42, 90, 90, 0.16), 0 20px 36px rgba(42, 90, 90, 0.10);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--cream-ground);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: clamp(15px, 1.05vw, 17px);
    line-height: 1.7;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(ellipse 1200px 800px at 12% 8%, rgba(74, 156, 156, 0.06), transparent 60%),
        radial-gradient(ellipse 1000px 700px at 92% 30%, rgba(196, 120, 106, 0.05), transparent 60%),
        radial-gradient(ellipse 900px 600px at 40% 80%, rgba(212, 184, 150, 0.07), transparent 60%),
        var(--cream-ground);
    background-attachment: fixed;
}

/* paper grain — subtle noise via layered gradients */
.paper-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg,
            rgba(42, 90, 90, 0.012) 0px,
            rgba(42, 90, 90, 0.012) 1px,
            transparent 1px,
            transparent 3px),
        repeating-linear-gradient(90deg,
            rgba(196, 120, 106, 0.01) 0px,
            rgba(196, 120, 106, 0.01) 1px,
            transparent 1px,
            transparent 4px);
    opacity: 0.5;
    z-index: 1;
}

::selection {
    background: rgba(196, 120, 106, 0.35);
    color: var(--deep-tide);
}

.kalam { font-family: var(--font-hand); font-weight: 400; }
.underline { text-decoration: underline wavy rgba(196, 120, 106, 0.6); text-underline-offset: 4px; }

/* =========================================================
   Viewports
   ========================================================= */
.viewport {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: clamp(48px, 7vh, 96px) clamp(24px, 5vw, 80px);
    overflow: hidden;
}

/* =========================================================
   Watercolor splashes — organic blobs from layered radial-gradients
   ========================================================= */
.splash {
    position: absolute;
    border-radius: 50%;
    filter: blur(18px);
    pointer-events: none;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 800ms ease, transform 1100ms cubic-bezier(0.22, 0.9, 0.3, 1);
    will-change: opacity, transform;
    z-index: 0;
}
.splash.is-in { opacity: 1; transform: scale(1); }

.splash--teal {
    width: 46vw; height: 46vw;
    top: -12vw; left: -10vw;
    background:
        radial-gradient(circle at 35% 40%, rgba(74, 156, 156, 0.42) 0%, rgba(74, 156, 156, 0.16) 40%, transparent 70%),
        radial-gradient(circle at 65% 60%, rgba(74, 156, 156, 0.30) 0%, transparent 60%);
}
.splash--sand {
    width: 38vw; height: 38vw;
    bottom: -8vw; right: -6vw;
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 184, 150, 0.55) 0%, rgba(212, 184, 150, 0.18) 50%, transparent 75%);
}
.splash--coral {
    width: 32vw; height: 32vw;
    top: 18vh; right: -4vw;
    background:
        radial-gradient(circle at 40% 60%, rgba(196, 120, 106, 0.42) 0%, rgba(196, 120, 106, 0.14) 50%, transparent 75%);
}
.splash--teal-soft {
    width: 28vw; height: 28vw;
    bottom: 8vh; left: 22vw;
    background:
        radial-gradient(circle at 50% 50%, rgba(74, 156, 156, 0.30) 0%, transparent 70%);
}
.splash--bg-1 { width: 40vw; height: 40vw; top: -10vw; right: -8vw; }
.splash--bg-2 { width: 34vw; height: 34vw; bottom: -8vw; left: -6vw; }
.splash--bg-3 { width: 50vw; height: 50vw; top: 5vh; left: -12vw; opacity: 0; }
.splash--bg-3.is-in { opacity: 0.85; transform: scale(1); }
.splash--bg-4 { width: 42vw; height: 42vw; bottom: -6vw; right: -10vw; }
.splash--bg-5 { width: 60vw; height: 40vw; top: 30%; left: 20%; opacity: 0; }
.splash--bg-5.is-in { opacity: 0.6; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: auto 1fr auto;
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
    min-height: 100vh;
}

.hero-header {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    z-index: 3;
    padding-top: clamp(8px, 4vh, 32px);
}

.masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--deep-tide);
    border-bottom: 1px solid rgba(42, 90, 90, 0.4);
    padding: 8px 0;
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    font-size: 13px;
    color: var(--deep-tide);
    margin-bottom: clamp(20px, 4vh, 40px);
    max-width: 560px;
}
.masthead-meta { font-family: var(--font-hand); letter-spacing: 0.04em; font-size: 14px; }
.masthead-stamp {
    background: var(--deep-tide);
    color: var(--cream-ground);
    padding: 4px 12px;
    border-radius: 2px;
    transform: rotate(-1.2deg);
    box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(72px, 12vw, 168px);
    line-height: 0.86;
    letter-spacing: 0.04em;
    color: var(--deep-tide);
    margin: 0 0 clamp(20px, 3vh, 40px);
    text-transform: uppercase;
}
.hero-title__line {
    display: block;
    position: relative;
}
.hero-title__line--offset {
    margin-left: clamp(40px, 8vw, 120px);
    color: var(--coastal-teal);
}
.hero-title__line--offset::after {
    content: "";
    position: absolute;
    left: -6%;
    bottom: 8%;
    width: 110%;
    height: 18%;
    background: radial-gradient(ellipse at center, rgba(196, 120, 106, 0.35) 0%, transparent 70%);
    z-index: -1;
    filter: blur(6px);
}

.hero-subtitle {
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.6;
    color: var(--text-soft);
    max-width: 480px;
    margin: 0 0 clamp(18px, 3vh, 32px);
}
.hero-subtitle em { color: var(--coral-accent); font-style: italic; }

.hero-byline {
    font-family: var(--font-hand);
    font-size: 16px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 2px;
    border-left: 3px solid var(--coral-accent);
    padding-left: 14px;
    transform: rotate(-0.6deg);
}
.byline-name { font-weight: 700; font-size: 17px; }

/* hero chart */
.hero-chart {
    grid-column: 2;
    grid-row: 1 / 3;
    position: relative;
    margin: 0;
    padding: clamp(24px, 4vw, 56px) clamp(12px, 2vw, 32px);
    z-index: 2;
    transform: rotate(0.8deg);
}

.chart-svg {
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 320;
    display: block;
}

/* SVG primitives */
.chart-axis {
    fill: none;
    stroke: var(--deep-tide);
    stroke-width: 1.4;
    stroke-linecap: round;
    opacity: 0.55;
}
.chart-axis--y { stroke-width: 1.4; }
.chart-grid {
    fill: none;
    stroke: var(--deep-tide);
    stroke-width: 0.6;
    stroke-dasharray: 2 6;
    opacity: 0.22;
}
.chart-line {
    fill: none;
    stroke: var(--deep-tide);
    stroke-opacity: 0.78;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.chart-line--coral { stroke: var(--coral-accent); stroke-opacity: 0.85; }
.chart-area { fill: url(#heroAreaGrad); opacity: 0.85; }
.chart-area.mini { fill: rgba(74, 156, 156, 0.28); }
.chart-line.mini { stroke-width: 2.2; }
.chart-grid.mini { opacity: 0.18; }

.dot {
    transition: r 220ms ease, transform 220ms ease;
    cursor: pointer;
}
.dot--teal { fill: var(--coastal-teal); }
.dot--sand { fill: var(--sandy-warm); }
.dot--coral { fill: var(--coral-accent); }

.dot.pulse {
    animation: dotPulse 2.4s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}
@keyframes dotPulse {
    0%, 100% { transform: scale(0.85); filter: drop-shadow(0 0 0 rgba(196, 120, 106, 0)); }
    50% { transform: scale(1.25); filter: drop-shadow(0 0 8px rgba(196, 120, 106, 0.55)); }
}

.dot:hover { filter: drop-shadow(0 0 6px rgba(196, 120, 106, 0.7)); }

.chart-caption {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    color: var(--text-soft);
    font-size: 14px;
}
.chart-caption__title { font-weight: 700; color: var(--deep-tide); }
.chart-caption__period { font-style: italic; }
.chart-caption__note { color: var(--coral-accent); font-style: italic; }

.annotation {
    position: absolute;
    color: var(--text-primary);
    font-size: 13px;
    background: rgba(245, 237, 224, 0.92);
    border: 1px dashed rgba(42, 90, 90, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    transform: rotate(var(--note-angle));
    line-height: 1.3;
    box-shadow: 0 2px 4px rgba(42, 90, 90, 0.08);
    z-index: 4;
}
.annotation--top {
    top: 10%;
    left: 8%;
    color: var(--coral-accent);
}
.annotation--mid {
    top: 50%;
    right: 4%;
    background: rgba(196, 120, 106, 0.14);
    border-color: rgba(196, 120, 106, 0.5);
}

.scroll-cue {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: center;
    align-self: end;
    color: var(--text-soft);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    transition: transform 200ms ease, color 200ms ease;
    margin-top: 12px;
    z-index: 3;
}
.scroll-cue:hover { color: var(--coral-accent); transform: translateY(2px); }
.scroll-cue__arrow {
    display: inline-block;
    animation: nudge 1.8s ease-in-out infinite;
    font-size: 20px;
}
@keyframes nudge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* =========================================================
   FIELD NOTES — organic-flow
   ========================================================= */
.field-notes {
    padding-top: clamp(60px, 10vh, 120px);
}

.section-header {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 0 clamp(40px, 6vh, 80px);
}
.section-header--center {
    margin: 0 auto clamp(40px, 6vh, 80px);
    text-align: center;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(56px, 10vw, 144px);
    line-height: 0.84;
    letter-spacing: 0.06em;
    color: var(--deep-tide);
    margin: 0 0 18px;
    text-transform: uppercase;
}
.section-header--center .section-title { color: var(--coastal-teal); }

.section-lede {
    font-size: clamp(16px, 1.3vw, 19px);
    color: var(--text-soft);
    max-width: 560px;
    line-height: 1.6;
    margin: 0;
}
.section-header--center .section-lede {
    margin-left: auto;
    margin-right: auto;
}

/* organic-flow grid */
.notes-flow {
    position: relative;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 2.5vw, 40px) clamp(16px, 2vw, 28px);
    z-index: 2;
}

.note {
    position: relative;
    background: var(--foam-white);
    border-radius: var(--note-radius);
    padding: clamp(18px, 2.2vw, 28px);
    box-shadow: var(--note-shadow);
    transform: rotate(var(--note-angle, 0deg)) translateY(20px);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.22, 0.9, 0.3, 1) var(--note-delay, 0ms),
                opacity 600ms ease var(--note-delay, 0ms),
                box-shadow 220ms ease;
    border: 1px solid rgba(42, 90, 90, 0.08);
    will-change: transform, opacity;
}
.note.is-in {
    opacity: 1;
    transform: rotate(var(--note-angle, 0deg)) translateY(0);
}
.note:hover {
    box-shadow: var(--note-shadow-hover);
    transform: rotate(var(--note-angle, 0deg)) translateY(-3px);
    z-index: 3;
}
.note--large { grid-column: span 7; }
.note--medium { grid-column: span 5; }
.note--small { grid-column: span 4; padding: clamp(16px, 2vw, 22px); background: var(--cream-ground); }
.note--coral {
    background: linear-gradient(180deg, rgba(196, 120, 106, 0.12), var(--foam-white));
    border-color: rgba(196, 120, 106, 0.25);
}
.note--rotated { margin-top: clamp(-20px, -2vh, 0px); }

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(42, 90, 90, 0.22);
    padding-bottom: 8px;
}
.note-stamp {
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    font-size: 13px;
    color: var(--coastal-teal);
    background: rgba(74, 156, 156, 0.12);
    padding: 3px 10px;
    border-radius: 2px;
}
.note-stamp--coral {
    color: var(--coral-accent);
    background: rgba(196, 120, 106, 0.15);
}
.note-date { color: var(--text-faint); font-size: 14px; }

.note-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.32;
    color: var(--deep-tide);
    margin: 0 0 12px;
}
.note-body {
    margin: 0 0 12px;
    color: var(--text-primary);
}
.note-body em { color: var(--coral-accent); font-style: italic; }
.note-body strong { color: var(--deep-tide); }

.note-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    font-size: 15px;
    color: var(--text-soft);
    line-height: 1.85;
}

.note-margin {
    color: var(--coral-accent);
    font-size: 14px;
    margin: 12px 0 0;
    border-top: 1px dotted rgba(196, 120, 106, 0.4);
    padding-top: 8px;
}

.note-handwrite {
    font-size: 17px;
    line-height: 1.7;
    color: var(--deep-tide);
    margin: 0;
}
.note-source {
    display: block;
    margin-top: 10px;
    font-family: var(--font-body);
    font-style: italic;
    font-size: 13px;
    color: var(--text-faint);
}

.note-body-tight {
    font-size: 15px;
    margin: 8px 0 0;
    line-height: 1.55;
    color: var(--text-primary);
}

/* tape strips */
.note-tape {
    position: absolute;
    width: 70px;
    height: 22px;
    background:
        linear-gradient(90deg, rgba(212, 184, 150, 0.55), rgba(212, 184, 150, 0.75) 50%, rgba(212, 184, 150, 0.55));
    border-left: 1px dashed rgba(42, 90, 90, 0.25);
    border-right: 1px dashed rgba(42, 90, 90, 0.25);
    box-shadow: 0 1px 2px rgba(42, 90, 90, 0.1);
    z-index: 4;
    transform: rotate(-6deg);
}
.note-tape--top-left { top: -10px; left: 16px; }
.note-tape--top-right { top: -10px; right: 16px; transform: rotate(6deg); }

.mini-chart {
    width: 100%;
    height: auto;
    aspect-ratio: 240 / 80;
    margin: 8px 0;
}

.legend {
    display: flex;
    gap: 18px;
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 6px;
}
.swatch {
    display: inline-block;
    width: 14px;
    height: 8px;
    border-radius: 2px;
    margin-right: 6px;
    vertical-align: middle;
}
.swatch--teal { background: var(--coastal-teal); }
.swatch--coral { background: var(--coral-accent); }

/* =========================================================
   TIDE CHARTS
   ========================================================= */
.tide-charts {
    background:
        radial-gradient(ellipse 1400px 600px at 50% 0%, rgba(74, 156, 156, 0.07), transparent 60%),
        var(--cream-ground);
}

.tide-chart {
    position: relative;
    background: var(--foam-white);
    margin: 0 auto clamp(40px, 6vh, 72px);
    padding: clamp(28px, 4vw, 56px);
    max-width: 1180px;
    border-radius: 8px;
    border: 1px solid rgba(42, 90, 90, 0.08);
    box-shadow: 0 4px 14px rgba(42, 90, 90, 0.06), 0 24px 56px rgba(42, 90, 90, 0.05);
    transform: rotate(-0.3deg);
    z-index: 2;
}
.tide-chart--alt { transform: rotate(0.4deg); }
.tide-chart::before {
    content: "";
    position: absolute;
    inset: -8px -8px auto auto;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, rgba(196, 120, 106, 0.35), transparent 70%);
    border-radius: 50%;
    filter: blur(4px);
    z-index: -1;
}

.tide-chart__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    border-bottom: 2px solid var(--deep-tide);
    padding-bottom: 14px;
    margin-bottom: 22px;
}
.tide-chart__num {
    font-size: 14px;
    color: var(--coral-accent);
    display: block;
    margin-bottom: 4px;
}
.tide-chart__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1;
    letter-spacing: 0.04em;
    color: var(--deep-tide);
    margin: 0;
    text-transform: uppercase;
}
.tide-chart__subtitle {
    font-size: 14px;
    color: var(--text-faint);
    max-width: 360px;
    text-align: right;
    line-height: 1.4;
}

.tide-chart__body {
    position: relative;
    width: 100%;
}
.big-chart {
    width: 100%;
    height: auto;
    display: block;
}
.big-chart-line {
    fill: none;
    stroke: var(--deep-tide);
    stroke-opacity: 0.78;
    stroke-width: 3.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.big-chart-line--coral { stroke: var(--coral-accent); stroke-opacity: 0.85; }
.big-chart-line--sand { stroke: var(--sandy-warm); stroke-opacity: 0.85; }

[data-anim-line] {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 0.9, 0.3, 1);
}
[data-anim-line].is-drawn { stroke-dashoffset: 0; }

.big-chart__hover {
    position: absolute;
    pointer-events: none;
    background: rgba(42, 90, 90, 0.95);
    color: var(--cream-ground);
    padding: 8px 12px;
    border-radius: 4px;
    font-family: var(--font-hand);
    font-size: 14px;
    line-height: 1.35;
    transform: translate(-50%, calc(-100% - 14px));
    white-space: nowrap;
    z-index: 8;
    box-shadow: 0 6px 16px rgba(42, 90, 90, 0.25);
}
.big-chart__hover[hidden] { display: none; }
.big-chart__hover::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(42, 90, 90, 0.95);
}
.big-chart__hover .tip-title { display: block; font-weight: 700; color: var(--foam-white); }
.big-chart__hover .tip-note { display: block; color: var(--sandy-warm); font-style: italic; }

.tide-chart__foot {
    margin-top: 18px;
    color: var(--coral-accent);
    text-align: right;
    font-size: 16px;
    border-top: 1px dotted rgba(196, 120, 106, 0.4);
    padding-top: 10px;
}

/* =========================================================
   MARGINALIA
   ========================================================= */
.marginalia {
    background:
        radial-gradient(ellipse 1000px 500px at 80% 50%, rgba(196, 120, 106, 0.06), transparent 60%),
        var(--cream-ground);
}
.marginalia-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(20px, 3vw, 40px) clamp(20px, 2.5vw, 32px);
    max-width: 1180px;
    margin: 0 auto;
}

.marg {
    position: relative;
    background: var(--foam-white);
    padding: 22px 24px;
    border-radius: var(--note-radius);
    border: 1px solid rgba(42, 90, 90, 0.08);
    box-shadow: var(--note-shadow);
    transform: rotate(var(--note-angle, 0deg)) translateY(16px);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.22, 0.9, 0.3, 1),
                opacity 600ms ease,
                box-shadow 220ms ease;
}
.marg.is-in {
    opacity: 1;
    transform: rotate(var(--note-angle, 0deg)) translateY(0);
}
.marg:hover {
    box-shadow: var(--note-shadow-hover);
    transform: rotate(var(--note-angle, 0deg)) translateY(-4px);
}
.marg-num {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--coral-accent);
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.marg p {
    margin: 0;
    color: var(--deep-tide);
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   JOURNAL END
   ========================================================= */
.journal-end {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--cream-ground);
    padding: clamp(80px, 14vh, 160px) clamp(24px, 5vw, 80px) clamp(40px, 6vh, 80px);
}

.end-wash {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(40px);
    z-index: 0;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 1400ms ease, transform 1800ms cubic-bezier(0.22, 0.9, 0.3, 1);
}
.journal-end.is-in .end-wash { opacity: 0.9; transform: scale(1); }
.end-wash--1 {
    width: 70vw; height: 70vw;
    top: -20vw; left: -10vw;
    background: radial-gradient(circle, rgba(74, 156, 156, 0.40) 0%, transparent 70%);
}
.end-wash--2 {
    width: 60vw; height: 60vw;
    bottom: -15vw; right: -10vw;
    background: radial-gradient(circle, rgba(196, 120, 106, 0.32) 0%, transparent 70%);
}
.end-wash--3 {
    width: 50vw; height: 50vw;
    top: 40%; left: 30%;
    background: radial-gradient(circle, rgba(212, 184, 150, 0.25) 0%, transparent 70%);
}
.end-wash--4 {
    width: 36vw; height: 36vw;
    top: 10%; right: 18%;
    background: radial-gradient(circle, rgba(74, 156, 156, 0.22) 0%, transparent 70%);
}

.end-content {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

.end-meta {
    display: inline-block;
    color: var(--coral-accent);
    font-size: 16px;
    margin-bottom: 24px;
    border: 1px dashed rgba(196, 120, 106, 0.55);
    padding: 4px 14px;
    transform: rotate(-1deg);
}

.end-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(64px, 10vw, 168px);
    line-height: 0.86;
    letter-spacing: 0.06em;
    color: var(--deep-tide);
    margin: 0 0 32px;
    text-transform: uppercase;
}
.end-title br { line-height: 0.86; }

.end-lede {
    font-size: clamp(17px, 1.5vw, 21px);
    color: var(--text-soft);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto 36px;
}

.end-signature {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    margin-bottom: 36px;
    transform: rotate(-1deg);
}
.end-signature__name {
    font-size: 24px;
    color: var(--coral-accent);
}
.end-signature__role {
    font-size: 14px;
    color: var(--text-faint);
    font-style: italic;
}
.end-signature__date {
    font-size: 14px;
    color: var(--text-faint);
}

.end-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--deep-tide);
    text-decoration: none;
    font-family: var(--font-display);
    letter-spacing: 0.16em;
    font-size: 14px;
    border: 2px solid var(--deep-tide);
    padding: 12px 22px;
    border-radius: 2px;
    transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.end-cta:hover {
    background: var(--deep-tide);
    color: var(--cream-ground);
    transform: translateY(-2px);
}
.end-cta__arrow { font-size: 18px; }

.colophon {
    position: relative;
    z-index: 2;
    margin-top: clamp(40px, 6vh, 80px);
    color: var(--text-faint);
    font-size: 14px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.colophon-dot { color: var(--coral-accent); }

/* =========================================================
   Floating tip
   ========================================================= */
.float-tip {
    position: fixed;
    pointer-events: none;
    background: rgba(42, 90, 90, 0.95);
    color: var(--cream-ground);
    padding: 10px 14px;
    border-radius: 5px;
    font-family: var(--font-hand);
    font-size: 14px;
    line-height: 1.4;
    z-index: 100;
    box-shadow: 0 6px 18px rgba(42, 90, 90, 0.3);
    transform: translate(-50%, calc(-100% - 14px));
    transition: opacity 180ms ease;
    max-width: 240px;
}
.float-tip[hidden] { display: none; }
.float-tip__title {
    display: block;
    color: var(--foam-white);
    font-weight: 700;
    margin-bottom: 2px;
}
.float-tip__note {
    display: block;
    color: var(--sandy-warm);
    font-style: italic;
}
.float-tip::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid rgba(42, 90, 90, 0.95);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    .hero-header, .hero-chart {
        grid-column: 1;
        grid-row: auto;
    }
    .hero-chart { transform: rotate(0); margin-top: 16px; }
    .note--large, .note--medium, .note--small { grid-column: span 12; }
    .tide-chart__head { flex-direction: column; align-items: flex-start; }
    .tide-chart__subtitle { text-align: left; max-width: none; }
}

@media (max-width: 600px) {
    .viewport { padding: 48px 18px; }
    .hero-title { font-size: clamp(54px, 16vw, 96px); }
    .hero-title__line--offset { margin-left: 24px; }
    .end-title { font-size: clamp(48px, 14vw, 96px); }
    .annotation--top, .annotation--mid { display: none; }
}
