/* =========================================================
   SEAGULL MARITIME × SHELL AUDIT PORTAL
   Design system v0.1 — Piece 1 foundation
   ========================================================= */

:root {
    /* Core palette */
    --black: #0A0A0A;
    --surface: #141414;
    --surface-raised: #1C1C1C;
    --surface-border: #2A2A2A;

    /* Shell brand */
    --shell-red: #DD1D21;
    --shell-red-bright: #FF2A2F;
    --shell-yellow: #FBCE07;
    --shell-yellow-bright: #FFE14A;

    /* Text */
    --text-primary: #F5F5F5;
    --text-secondary: #B8B8B8;
    --text-muted: #7A7A7A;

    /* Accents */
    --glow-red: 0 0 32px rgba(221, 29, 33, 0.35);
    --glow-yellow: 0 0 24px rgba(251, 206, 7, 0.25);

    /* Type */
    --font-display: 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

    /* Layout */
    --radius: 4px;
    --radius-lg: 8px;
    --max-width: 1280px;
    --section-pad: clamp(2rem, 6vw, 6rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Subtle texture on body — depth without noise */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at top left, rgba(221, 29, 33, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(251, 206, 7, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========== Typography ========== */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-transform: uppercase;
}

h3 {
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

p { color: var(--text-secondary); }

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--shell-yellow);
    display: inline-block;
    position: relative;
    padding-left: 2.5rem;
}
.eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--shell-red);
}

/* ========== Layout ========== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    position: relative;
    z-index: 1;
}

/* ========== Header ========== */
.site-header {
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 100;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    max-width: var(--max-width);
    margin: 0 auto;
}

.site-header__logo img {
    height: 42px;
    width: auto;
    display: block;
}

.site-header__prepared-for {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.site-header__prepared-for::before {
    content: 'Prepared for';
    color: var(--text-muted);
}

.shell-pecten-mini {
    height: 36px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    padding: clamp(2.25rem, 6vw, 5rem) 0 clamp(1rem, 2vw, 1.75rem);
    overflow: hidden;
}

.hero__bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, transparent 60%, rgba(221, 29, 33, 0.06) 100%);
    pointer-events: none;
}

/* Wavy red + yellow accent band — the signature visual flourish.
   Used in the hero (bottom half) and echoed in the section below.
   MASKED: the hero text column (left 55%) is cut out of the wave
   layer using a linear-gradient mask. Waves are therefore invisible
   where text sits, so we can crank opacity for drama elsewhere. */
.hero__bars {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6%;
    height: 60%;
    transform: rotate(-4deg) scale(1.1);
    background-image: url('../img/bg-waves-red.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.85;
    pointer-events: none;
    filter: blur(0.3px);
    /* Left 55% transparent (hides waves behind hero text), */
    /* then smooth ramp to fully opaque at 78% and beyond. */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 48%, black 78%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, transparent 48%, black 78%, black 100%);
}

/* Secondary wave — faster, tighter, top-right of hero for depth.
   Sits in empty area by design, so minimal masking needed —
   just a soft top fade so it doesn't clip into the sticky header. */
.hero__bars-2 {
    position: absolute;
    top: -15%;
    right: -10%;
    width: 70%;
    height: 55%;
    transform: rotate(2deg);
    background-image: url('../img/bg-waves-compact.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

/* Single-column layout (mobile) — hero text stacks above the visual,
   so a left-right mask doesn't work. Flip to a top-bottom mask that
   hides the waves behind the upper text block and reveals them lower. */
@media (max-width: 959px) {
    .hero__bars {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, black 75%, black 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, transparent 45%, black 75%, black 100%);
    }
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 960px) {
    .hero__inner {
        grid-template-columns: 1.3fr 1fr;
    }
}

.hero__title {
    margin: 1.25rem 0 1.5rem;
    background: linear-gradient(90deg, #FFFFFF 0%, #F5F5F5 50%, #E0E0E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Pecten is injected after "Shell" as an inline-block image */
}

.hero__title-pecten {
    /* Sized to sit on the cap line of the word "Shell". */
    /* 0.9em scales with the responsive h1 font-size, so it stays balanced */
    /* at every breakpoint without a second media query. */
    height: 0.9em;
    width: auto;
    display: inline-block;
    /* Positive vertical-align lifts the logo up onto the cap line of "Shell" */
    vertical-align: 0.12em;
    margin-left: 0.3em;
    margin-right: 0.05em;
    /* Small drop-shadow so the pecten reads cleanly against the red glow */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

.hero__tagline {
    font-size: 1.15rem;
    max-width: 42ch;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero__meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--surface-border);
    font-family: var(--font-display);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero__meta dt {
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.hero__meta dd {
    color: var(--shell-yellow);
    font-weight: 600;
}

.hero__visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.hero__logo-stage {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 0;
    background: transparent;
}

.hero__logo-stage img {
    width: 100%;
    height: auto;
    display: block;
    /* Drop-shadow hugs the actual artwork (bird + text) so the glow */
    /* follows the letterforms instead of drawing a box behind them. */
    filter: drop-shadow(0 0 18px rgba(221, 29, 33, 0.35)) drop-shadow(0 0 32px rgba(251, 206, 7, 0.15));
}

/* ========== Section ========== */
.section {
    padding: clamp(1.5rem, 3vw, 3rem) 0 var(--section-pad);
    position: relative;
    overflow: hidden;
}

/* Wave accent — sits behind the section header area, tails off before cards.
   MASKED: a radial gradient carves a transparent hole around the heading
   (top-left) so the text reads clean, while waves flow strongly in the
   top-right and lower areas. */
.section::before {
    content: '';
    position: absolute;
    top: -5%;
    left: -8%;
    right: -8%;
    height: 55%;
    background-image: url('../img/bg-waves-compact.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    transform: rotate(-2deg);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
    /* Radial mask: transparent hole centred on the top-left heading area, */
    /* fading to opaque outside a ~48% radius. */
    -webkit-mask-image: radial-gradient(ellipse 55% 70% at 22% 35%, transparent 0%, transparent 40%, black 85%);
    mask-image: radial-gradient(ellipse 55% 70% at 22% 35%, transparent 0%, transparent 40%, black 85%);
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section__head {
    margin-bottom: 2.25rem;
    max-width: 720px;
    position: relative;
}

.section__head h2 {
    margin-top: 0.75rem;
}

.section__head p {
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ========== Cards Grid ========== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem 1.75rem;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 220px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--shell-red) 0%, var(--shell-yellow) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--shell-red);
    box-shadow: var(--glow-red);
}

.card:hover::before {
    transform: scaleX(1);
}

.card__index {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--shell-yellow);
    margin-bottom: 1rem;
}

.card__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.card__body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex: 1;
}

.card__cta {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--shell-yellow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card__cta::after {
    content: '→';
    transition: transform 0.3s ease;
}

.card:hover .card__cta::after {
    transform: translateX(4px);
}

.card--coming-soon {
    opacity: 0.55;
    pointer-events: none;
}
.card--coming-soon .card__cta {
    color: var(--text-muted);
}
.card--coming-soon .card__cta::after {
    content: '· coming soon';
}

/* ========== Footer ========== */
.site-footer {
    border-top: 1px solid var(--surface-border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    background: var(--surface);
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: center;
}

@media (min-width: 720px) {
    .site-footer__inner {
        grid-template-columns: 1fr auto 1fr;
    }
}

.site-footer__mark img {
    height: 32px;
    width: auto;
    opacity: 0.85;
}

.site-footer__tag {
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: center;
}
.site-footer__tag strong {
    color: var(--shell-yellow);
    display: block;
}

.site-footer__meta {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: right;
}

/* ========== Gate page ========== */
.gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.gate__card {
    width: 100%;
    max-width: 440px;
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.gate__card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--shell-red) 0%, var(--shell-yellow) 100%);
}

.gate__logo {
    height: 40px;
    width: auto;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.gate__title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.gate__note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.gate__input {
    width: 100%;
    background: var(--black);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 0.9rem 1rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: border-color 0.2s ease;
}
.gate__input:focus {
    outline: none;
    border-color: var(--shell-yellow);
}

.gate__button {
    width: 100%;
    margin-top: 1rem;
    background: var(--shell-red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.95rem 1rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.gate__button:hover {
    background: var(--shell-red-bright);
    transform: translateY(-1px);
}

.gate__error {
    display: none;
    margin-top: 1rem;
    color: var(--shell-red-bright);
    font-size: 0.85rem;
}
.gate__error.is-visible {
    display: block;
}

.gate__footer-mark {
    margin-top: 2.5rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ========== Utilities ========== */
.text-red { color: var(--shell-red); }
.text-yellow { color: var(--shell-yellow); }
.accent-bar {
    display: inline-block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--shell-red), var(--shell-yellow));
    margin-bottom: 1rem;
}

/* =========================================================
   SUB-PAGE COMPONENTS
   Used by /audit/ sub-pages and any other multi-page section.
   All assume the site-header above them remains sticky.
   ========================================================= */

/* ---------- Sticky sub-nav ----------
   Thin, always-on functional wayfinder. Sits directly below the
   main site-header and stays pinned to top on scroll. Three zones:
   back-link left, dot nav centre, next link right. */
.sub-nav {
    position: sticky;
    top: 74px;  /* directly below site-header (header is ~74px tall) */
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-border);
    z-index: 90;
}

.sub-nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}

.sub-nav__back,
.sub-nav__next {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
}
.sub-nav__back:hover,
.sub-nav__next:hover {
    color: var(--shell-yellow);
}

.sub-nav__back::before { content: '←'; }
.sub-nav__next { justify-self: end; }
.sub-nav__next::after { content: '→'; }

/* Dot nav — compressed journey ribbon for the sticky sub-nav */
.sub-nav__dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    justify-self: center;
}

.sub-nav__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: transparent;
    border: 1.5px solid var(--text-muted);
    display: block;
    transition: all 0.2s ease;
    position: relative;
}
.sub-nav__dot:hover {
    border-color: var(--shell-yellow);
    transform: scale(1.2);
}
.sub-nav__dot--current {
    background: var(--shell-red);
    border-color: var(--shell-red);
    box-shadow: 0 0 12px rgba(221, 29, 33, 0.6);
}
.sub-nav__dot--done {
    background: var(--shell-yellow);
    border-color: var(--shell-yellow);
}

/* Tooltip on hover so the dots are discoverable without labels */
.sub-nav__dot[data-label] {
    position: relative;
}
.sub-nav__dot[data-label]::after {
    content: attr(data-label);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    padding: 0.35rem 0.65rem;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
    white-space: nowrap;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.sub-nav__dot[data-label]:hover::after { opacity: 1; }

/* ---------- Breadcrumb ----------
   Sits just under the sub-nav at the top of page content. */
.breadcrumb {
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem) 0;
    max-width: var(--max-width);
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}
.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}
.breadcrumb a:hover { color: var(--shell-yellow); }
.breadcrumb__sep {
    color: var(--surface-border);
    margin: 0 0.5rem;
}
.breadcrumb__current { color: var(--shell-yellow); }

/* ---------- Sub-hero ----------
   Narrower and shorter than the main hero, same DNA. Used to open
   any audit sub-page with a chapter title and one-line orientation. */
.sub-hero {
    position: relative;
    padding: clamp(2rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
    overflow: hidden;
}

.sub-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.sub-hero__chapter {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    display: inline-flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.sub-hero__chapter-num {
    font-size: 2rem;
    color: var(--shell-red);
    letter-spacing: 0;
    font-weight: 800;
}

.sub-hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.1;
    background: linear-gradient(90deg, #FFFFFF 0%, #E0E0E0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.sub-hero__tagline {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 60ch;
}

/* Reuse hero wave layers at reduced scale for sub-hero depth */
.sub-hero__waves {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 65%;
    height: 110%;
    transform: rotate(-3deg);
    background-image: url('../img/bg-waves-compact.svg');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    opacity: 0.55;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to left, black 0%, black 35%, transparent 85%);
    mask-image: linear-gradient(to left, black 0%, black 35%, transparent 85%);
}

/* ---------- Journey ribbon (feature version) ----------
   The BIG visual timeline that lives on /audit/index.html only.
   Seven numbered stops along a horizontal line, each clickable.
   This is the marketing element — dramatic, illustrative. */
.journey {
    padding: clamp(2rem, 4vw, 3.5rem) 0 clamp(1rem, 2vw, 2rem);
    position: relative;
}

.journey__label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    margin-bottom: 1.25rem;
    padding-left: 2.5rem;
    position: relative;
}
.journey__label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--shell-red);
}

.journey__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    padding: 2.5rem 0 1rem;
}

/* The connecting line behind the stops */
.journey__track::before {
    content: '';
    position: absolute;
    top: 3.25rem;
    left: 7.14%;   /* centre of first stop (1/14 of width) */
    right: 7.14%;  /* centre of last stop */
    height: 3px;
    background: linear-gradient(90deg, var(--shell-red), var(--shell-yellow));
    z-index: 0;
    border-radius: 2px;
    opacity: 0.6;
}

.journey__stop {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.journey__stop-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--surface-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: all 0.3s ease;
    margin-bottom: 0.85rem;
    position: relative;
}
.journey__stop-num::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.journey__stop:hover .journey__stop-num {
    border-color: var(--shell-red);
    background: var(--surface-raised);
    color: var(--shell-yellow);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(221, 29, 33, 0.35);
}
.journey__stop:hover .journey__stop-num::before {
    border-color: rgba(251, 206, 7, 0.3);
}

.journey__stop-label {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    max-width: 100%;
    line-height: 1.3;
}

.journey__stop:hover .journey__stop-label {
    color: var(--shell-yellow);
}

/* Mobile — ribbon becomes a vertical timeline */
@media (max-width: 760px) {
    .journey__track {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1rem 0;
    }
    .journey__track::before {
        top: 0;
        bottom: 0;
        left: 25px;
        right: auto;
        width: 3px;
        height: auto;
        background: linear-gradient(180deg, var(--shell-red), var(--shell-yellow));
    }
    .journey__stop {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 1rem;
    }
    .journey__stop-num {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .journey__stop-label {
        font-size: 0.85rem;
    }
}

/* ---------- Sub-page card grid (extends .card) ----------
   Used on /audit/index.html below the journey ribbon. */
.sub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.sub-card__stat {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--surface-border);
}

/* ---------- Timeline spine (chapter 01)
   Vertical story spine. Events flow down the left, phase dividers break
   the journey into acts. Milestone events get red/yellow accent.  */

.timeline {
    position: relative;
    padding: 1rem 0 3rem;
    max-width: 880px;
    margin: 0 auto;
}

/* The spine itself — a thin gradient line down the left */
.timeline::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--shell-red) 8%,
        var(--shell-yellow) 50%,
        var(--shell-red) 92%,
        transparent 100%);
    opacity: 0.6;
    z-index: 0;
}

/* Phase divider — a full-width banner that interrupts the spine */
.timeline__phase {
    position: relative;
    margin: 2.5rem 0 1.5rem;
    padding-left: 72px;
    z-index: 2;
}

.timeline__phase:first-child { margin-top: 0.5rem; }

.timeline__phase::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--black);
    border: 3px solid var(--shell-red);
    box-shadow: 0 0 0 4px rgba(221, 29, 33, 0.15);
    z-index: 3;
}

.timeline__phase-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(251, 206, 7, 0.35);
    border-radius: 999px;
    margin-bottom: 0.5rem;
}

.timeline__phase-title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.3rem;
    line-height: 1.2;
}

.timeline__phase-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    max-width: 60ch;
}

/* Individual event */
.timeline__event {
    position: relative;
    padding: 0.6rem 0 0.6rem 72px;
    margin: 0.25rem 0;
    z-index: 2;
}

.timeline__event::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 1.15rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid rgba(255, 255, 255, 0.55);
    z-index: 3;
    transition: all 0.2s ease;
}

.timeline__event:hover::before {
    background: var(--shell-yellow);
    border-color: var(--shell-yellow);
    box-shadow: 0 0 0 4px rgba(251, 206, 7, 0.18);
}

.timeline__event-date {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    margin-bottom: 0.25rem;
}

.timeline__event-headline {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

.timeline__event-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 65ch;
}

.timeline__event-body em {
    color: #fff;
    font-style: normal;
    font-weight: 600;
}

/* Milestone event — bigger visual weight for the moments that matter */
.timeline__event--milestone {
    background: linear-gradient(135deg,
        rgba(221, 29, 33, 0.08) 0%,
        rgba(251, 206, 7, 0.04) 100%);
    border-left: 3px solid var(--shell-red);
    border-radius: 0 8px 8px 0;
    margin: 0.75rem 0 0.75rem 14px;
    padding: 1rem 1rem 1rem 58px;
}

.timeline__event--milestone::before {
    width: 18px;
    height: 18px;
    left: 8px;
    top: 1.3rem;
    background: var(--shell-red);
    border-color: var(--shell-yellow);
    box-shadow: 0 0 0 4px rgba(221, 29, 33, 0.25);
}

.timeline__event--milestone .timeline__event-date {
    color: var(--shell-red);
}

.timeline__event--milestone .timeline__event-headline {
    font-size: 1.2rem;
}

/* Close-out event (future, scheduled) — outlined rather than filled */
.timeline__event--future::before {
    background: transparent;
    border: 2px dashed var(--shell-yellow);
}

.timeline__event--future .timeline__event-date::after {
    content: ' · scheduled';
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: none;
}

/* Closing narration card at the end of the timeline */
.timeline__closing {
    margin: 3rem 0 0 72px;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(251, 206, 7, 0.22);
    border-radius: 10px;
    background: linear-gradient(135deg,
        rgba(251, 206, 7, 0.04) 0%,
        rgba(221, 29, 33, 0.04) 100%);
}

.timeline__closing-label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    margin-bottom: 0.5rem;
}

.timeline__closing p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.timeline__closing p:last-child { margin-bottom: 0; }

.timeline__closing p strong { color: #fff; font-weight: 600; }

/* Chapter navigation footer (prev / next across all sub-pages) */
.chapter-nav {
    max-width: 880px;
    margin: 3rem auto 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid var(--surface-border);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chapter-nav__link {
    text-decoration: none;
    color: inherit;
    padding: 1rem 1.25rem;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    background: var(--surface);
    transition: all 0.2s ease;
    display: block;
}

.chapter-nav__link:hover {
    border-color: var(--shell-red);
    transform: translateY(-2px);
}

.chapter-nav__link--next { text-align: right; }

.chapter-nav__dir {
    font-family: var(--font-display);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--shell-yellow);
    margin-bottom: 0.3rem;
}

.chapter-nav__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* Mobile — tighter spine */
@media (max-width: 640px) {
    .timeline::before { left: 18px; }
    .timeline__phase { padding-left: 52px; }
    .timeline__phase::before { left: 7px; }
    .timeline__event { padding-left: 52px; }
    .timeline__event::before { left: 12px; }
    .timeline__event--milestone {
        margin-left: 4px;
        padding-left: 42px;
    }
    .timeline__event--milestone::before { left: -2px; }
    .timeline__closing { margin-left: 52px; padding: 1.25rem; }
    .chapter-nav { grid-template-columns: 1fr; }
    .chapter-nav__link--next { text-align: left; }
}
