:root {
    --bg: #111a28;
    --text: #f5f1e8;
    --muted: rgba(245, 241, 232, 0.68);
    --quiet: rgba(245, 241, 232, 0.48);
    --line: rgba(245, 241, 232, 0.16);
    --line-strong: rgba(245, 241, 232, 0.32);
    --accent: #d8c195;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.1);
    --panel: rgba(8, 13, 20, 0.74);
    --body-bg:
        radial-gradient(circle at 50% -10%, rgba(216, 193, 149, 0.16), transparent 32rem),
        radial-gradient(circle at 12% 26rem, rgba(82, 112, 148, 0.3), transparent 31rem),
        radial-gradient(circle at 84% 40rem, rgba(34, 60, 94, 0.32), transparent 35rem),
        linear-gradient(180deg, #172235 0%, #111a28 48%, #0c1420 100%);
    --page-grid-line: rgba(255, 255, 255, 0.028);
    --page-grid-line-soft: rgba(255, 255, 255, 0.022);
    --hero-image: url("../assets/00-presence-front-full-black.webp");
    --hero-fallback-image: url("../assets/01-presence-front.webp");
    --hero-image-position: center;
    --hero-image-size: cover;
    --hero-bg:
        linear-gradient(180deg, rgba(7, 8, 10, 0.15), rgba(7, 8, 10, 0.86)),
        radial-gradient(circle at 72% 32%, rgba(216, 193, 149, 0.16), transparent 24rem),
        #07080a;
    --hero-overlay: linear-gradient(180deg, rgba(7, 8, 10, 0.68) 0%, rgba(7, 8, 10, 0.34) 18%, rgba(7, 8, 10, 0.08) 38%, transparent 58%);
    --hero-grid-line: rgba(255, 255, 255, 0.025);
    --hero-grid-line-soft: rgba(255, 255, 255, 0.018);
    --hero-spec-bg: rgba(7, 8, 10, 0.38);
    --nav-text: rgba(245, 241, 232, 0.82);
    --frame-overlay: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.48) 100%), linear-gradient(90deg, rgba(0, 0, 0, 0.28), transparent 42%);
    --card-bg:
        linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.025)),
        var(--panel);
    --point-text: rgba(245, 241, 232, 0.82);
    --point-bg:
        linear-gradient(90deg, rgba(216, 193, 149, 0.08), transparent 38%),
        rgba(255, 255, 255, 0.035);
    --contact-bg: rgba(255, 255, 255, 0.04);
    --contact-bg-hover: rgba(255, 255, 255, 0.07);
    --cta-text: #090a0d;
    --image-bg: #0d0f14;
    --toggle-bg: rgba(7, 8, 10, 0.36);
    --toggle-active-bg: rgba(216, 193, 149, 0.22);
    --toggle-active-text: var(--text);
    --max-width: 1440px;
    --radius-lg: 30px;
    --radius-md: 22px;
    --radius-sm: 14px;
    --shadow: 0 24px 90px rgba(0, 0, 0, 0.34);
    --glow: 0 0 70px rgba(216, 193, 149, 0.16);
    --frame-corner: rgba(245, 241, 232, 0.48);
    --frame-corner-muted: rgba(245, 241, 232, 0.22);
    --frame-size: 32px;
    --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: Inter, "Helvetica Neue", Arial, "Segoe UI", sans-serif;
    --font-serif: Georgia, "Times New Roman", serif;
}

html[data-theme="light"] {
    --bg: #ece2d2;
    --text: #16120d;
    --muted: rgba(22, 18, 13, 0.7);
    --quiet: rgba(22, 18, 13, 0.5);
    --line: rgba(62, 48, 32, 0.16);
    --line-strong: rgba(62, 48, 32, 0.32);
    --accent: #8b6b3f;
    --surface: rgba(255, 255, 255, 0.48);
    --surface-strong: rgba(62, 48, 32, 0.14);
    --panel: rgba(246, 238, 226, 0.74);
    --body-bg:
        radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.58), transparent 31rem),
        radial-gradient(circle at 12% 27rem, rgba(139, 107, 63, 0.16), transparent 28rem),
        linear-gradient(180deg, #f4eadc 0%, #dfd0bd 100%);
    --page-grid-line: rgba(62, 48, 32, 0.055);
    --page-grid-line-soft: rgba(62, 48, 32, 0.04);
    --hero-image: url("../assets/00-presence-front-full-sand.webp");
    --hero-bg:
        linear-gradient(180deg, rgba(246, 238, 226, 0.16), rgba(236, 226, 210, 0.82)),
        radial-gradient(circle at 70% 32%, rgba(255, 255, 255, 0.34), transparent 24rem),
        #ece2d2;
    --hero-overlay: linear-gradient(180deg, rgba(244, 234, 220, 0.34) 0%, rgba(244, 234, 220, 0.18) 20%, transparent 50%, rgba(236, 226, 210, 0.18) 100%);
    --hero-grid-line: rgba(62, 48, 32, 0.045);
    --hero-grid-line-soft: rgba(62, 48, 32, 0.032);
    --hero-spec-bg: rgba(246, 238, 226, 0.44);
    --nav-text: rgba(22, 18, 13, 0.78);
    --frame-corner: rgba(62, 48, 32, 0.42);
    --frame-corner-muted: rgba(62, 48, 32, 0.2);
    --frame-overlay: linear-gradient(180deg, transparent 48%, rgba(22, 18, 13, 0.3) 100%), linear-gradient(90deg, rgba(22, 18, 13, 0.16), transparent 42%);
    --card-bg:
        linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.2)),
        var(--panel);
    --point-text: rgba(22, 18, 13, 0.78);
    --point-bg:
        linear-gradient(90deg, rgba(139, 107, 63, 0.1), transparent 38%),
        rgba(255, 255, 255, 0.34);
    --contact-bg: rgba(255, 255, 255, 0.34);
    --contact-bg-hover: rgba(255, 255, 255, 0.54);
    --cta-text: #f8efe3;
    --image-bg: #d9c9b4;
    --shadow: 0 24px 90px rgba(91, 70, 45, 0.2);
    --glow: 0 0 70px rgba(139, 107, 63, 0.12);
    --toggle-bg: rgba(246, 238, 226, 0.46);
    --toggle-active-bg: rgba(22, 18, 13, 0.12);
    --toggle-active-text: var(--text);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
    overflow-x: hidden;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.01em;
    background: var(--body-bg);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(var(--page-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--page-grid-line-soft) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 75%);
    z-index: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    background: none;
    cursor: pointer;
}

h1,
h2,
p {
    margin: 0;
}

.site-shell {
    position: relative;
    z-index: 1;
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 1rem;
    overflow: hidden;
}

.story-hero {
    position: relative;
    isolation: isolate;
    min-height: min(760px, 100svh);
    display: grid;
    align-content: space-between;
    gap: clamp(1rem, 4vw, 2.25rem);
    margin: -1rem -1rem 0;
    padding: clamp(1.2rem, 4vw, 3rem) 1rem clamp(1.1rem, 5vw, 2.2rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--hero-bg);
}

.story-hero::before,
.story-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

.story-hero::before {
    inset: 0;
    background:
        var(--hero-overlay),
        var(--hero-image) var(--hero-image-position) / var(--hero-image-size) no-repeat,
        var(--hero-fallback-image) var(--hero-image-position) / var(--hero-image-size) no-repeat;
    opacity: 1;
}

.story-hero::after {
    inset: 0;
    background:
        linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--hero-grid-line-soft) 1px, transparent 1px);
    background-size: clamp(42px, 12vw, 96px) clamp(42px, 12vw, 96px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 78%);
}

.topline {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 1rem 1.25rem;
}

.logo-mark {
    width: clamp(86px, 22vw, 118px);
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.logo-image {
    width: 100%;
    height: auto;
}

.logo-image-light {
    display: none;
}

html[data-theme="light"] .logo-image-dark {
    display: none;
}

html[data-theme="light"] .logo-image-light {
    display: block;
}

.theme-toggle {
    position: relative;
    z-index: 2;
    grid-column: 2;
    justify-self: end;
    min-height: 34px;
    display: inline-grid;
    grid-template-columns: repeat(2, auto);
    align-items: center;
    gap: 0.25rem;
    padding: 0.24rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--quiet);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--toggle-bg);
    backdrop-filter: blur(12px);
}

.theme-toggle span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 0.58rem;
    border-radius: 999px;
}

.theme-toggle span:first-child {
    color: var(--toggle-active-text);
    background: var(--toggle-active-bg);
}

html[data-theme="dark"] .theme-toggle span:first-child {
    color: inherit;
    background: transparent;
}

html[data-theme="dark"] .theme-toggle span:last-child {
    color: var(--toggle-active-text);
    background: var(--toggle-active-bg);
}

.topline-meta {
    grid-column: 2;
    justify-self: end;
    max-width: 8rem;
    padding-top: 0.2rem;
    color: var(--quiet);
    font-family: var(--font-serif);
    font-size: 0.62rem;
    font-weight: 400;
    line-height: 1.45;
    text-align: right;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    gap: 1rem;
    max-width: 34rem;
    justify-self: start;
    padding-top: clamp(4rem, 18svh, 10rem);
}

.eyebrow,
.chapter-kicker,
.frame-label,
.stat-label {
    color: var(--accent);
    font-family: var(--font-serif);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.chapter-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
}

.chapter-kicker::before {
    content: "";
    width: 0.78em;
    height: 0.78em;
    flex: 0 0 auto;
    background: #cb0203;
}

.hero-copy h1 {
    font-family: var(--font-display);
    font-weight: 500;
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 8.4vw, 5.2rem);
    line-height: 1;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    text-shadow: 0 0 32px rgba(216, 193, 149, 0.18);
}

.hero-copy p:not(.eyebrow) {
    max-width: 29rem;
    color: var(--muted);
    font-size: clamp(0.92rem, 3.5vw, 1.08rem);
    line-height: 1.64;
    letter-spacing: 0.012em;
}

.hero-specs {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin: 0;
    border: 1px solid var(--line);
    background: var(--hero-spec-bg);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.hero-specs div {
    display: grid;
    gap: 0.35rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
}

.hero-specs div:last-child {
    border-bottom: 0;
}

.hero-specs dt {
    color: var(--quiet);
    font-family: var(--font-serif);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-specs dd {
    margin: 0;
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.015em;
}

.chapter-nav {
    position: relative;
    z-index: 2;
    min-width: 0;
    max-width: 100%;
    display: flex;
    grid-column: 1 / -1;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.chapter-nav::-webkit-scrollbar,
.image-strip::-webkit-scrollbar {
    display: none;
}

.chapter-nav a {
    flex: 0 0 auto;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.72rem;
    border: 0;
    border-radius: 999px;
    color: var(--nav-text);
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: transparent;
    backdrop-filter: none;
}

.chapter-nav a:focus-visible,
.gallery-dot:focus-visible,
.story-cta:focus-visible,
.logo-mark:focus-visible,
.theme-toggle:focus-visible,
.contact-option:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.story {
    display: grid;
    gap: clamp(1.4rem, 7vw, 4.5rem);
    padding-bottom: 5rem;
}

.story-card {
    min-height: 100svh;
    display: grid;
    align-content: center;
    gap: 1.1rem;
    padding: clamp(1.4rem, 7vw, 3rem) 0;
    scroll-margin-top: 1rem;
}

.visual-panel {
    min-width: 0;
    display: grid;
    gap: 0.85rem;
}

.image-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 0.85rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 0;
    cursor: pointer;
}

.dummy-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: end start;
    min-width: 0;
    margin: 0;
    padding: 1rem;
    overflow: hidden;
    scroll-snap-align: center;
    border: 1px solid var(--line);
    border-radius: 0;
    background:
        radial-gradient(circle at 24% 18%, rgba(255, 255, 255, 0.22), transparent 20%),
        linear-gradient(135deg, rgba(216, 193, 149, 0.22), transparent 44%),
        linear-gradient(160deg, #252932, #0d0f14 64%);
    box-shadow: var(--shadow), var(--glow);
}

.dummy-frame::before,
.dummy-frame::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.dummy-frame::before {
    inset: 0;
    border: 0;
    background: var(--frame-overlay);
    transform: none;
    z-index: 1;
}

.dummy-frame::after {
    inset: 0.6rem;
    z-index: 2;
    background:
        linear-gradient(var(--frame-corner), var(--frame-corner)) top left / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner), var(--frame-corner)) top left / 1px var(--frame-size) no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) top right / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) top right / 1px var(--frame-size) no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) bottom left / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) bottom left / 1px var(--frame-size) no-repeat,
        linear-gradient(var(--frame-corner), var(--frame-corner)) bottom right / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner), var(--frame-corner)) bottom right / 1px var(--frame-size) no-repeat;
}

.dummy-frame.is-front {
    background:
        radial-gradient(circle at 50% 20%, rgba(245, 241, 232, 0.19), transparent 18%),
        linear-gradient(145deg, rgba(216, 193, 149, 0.24), transparent 48%),
        linear-gradient(160deg, #2b2f38, #0d0f14 66%);
}

.dummy-frame.is-side {
    background:
        radial-gradient(circle at 75% 28%, rgba(216, 193, 149, 0.22), transparent 18%),
        linear-gradient(120deg, rgba(255, 255, 255, 0.13), transparent 34%),
        linear-gradient(160deg, #232833, #090a0d 68%);
}

.dummy-frame.is-interior {
    background:
        radial-gradient(circle at 34% 28%, rgba(216, 193, 149, 0.34), transparent 17%),
        linear-gradient(135deg, rgba(80, 54, 34, 0.54), transparent 45%),
        linear-gradient(160deg, #251b17, #08090c 68%);
}

.dummy-frame.is-tech {
    background:
        radial-gradient(circle at 68% 34%, rgba(156, 220, 255, 0.2), transparent 16%),
        linear-gradient(135deg, rgba(216, 193, 149, 0.17), transparent 40%),
        linear-gradient(160deg, #1a2228, #08090c 70%);
}

.dummy-frame.has-image {
    background: var(--image-bg);
}

.dummy-frame.has-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dummy-frame.has-image::before {
    border-radius: 0;
}

.frame-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.35rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

html[data-theme="light"] .frame-content {
    color: #f8efe3;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.86), 0 0 32px rgba(0, 0, 0, 0.42);
}

html[data-theme="light"] .dummy-frame .frame-label {
    color: rgba(248, 239, 227, 0.82);
}

.frame-title {
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 7.8vw, 2.35rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
}

.gallery-dot {
    width: 2.15rem;
    height: 0.45rem;
    border-radius: 999px;
    background: var(--surface-strong);
    transition: background 0.2s ease, width 0.2s ease;
}

.gallery-dot.is-active {
    width: 3rem;
    background: var(--accent);
}

.chapter-copy {
    position: relative;
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24);
}

.chapter-copy::before {
    content: "";
    position: absolute;
    inset: 0.7rem;
    pointer-events: none;
    border: 0;
    background:
        linear-gradient(var(--frame-corner), var(--frame-corner)) top left / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner), var(--frame-corner)) top left / 1px var(--frame-size) no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) top right / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) top right / 1px var(--frame-size) no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) bottom left / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner-muted), var(--frame-corner-muted)) bottom left / 1px var(--frame-size) no-repeat,
        linear-gradient(var(--frame-corner), var(--frame-corner)) bottom right / var(--frame-size) 1px no-repeat,
        linear-gradient(var(--frame-corner), var(--frame-corner)) bottom right / 1px var(--frame-size) no-repeat;
}

.chapter-copy::after {
    content: "";
    position: absolute;
    right: 1.15rem;
    bottom: 1.15rem;
    width: 0.28rem;
    height: 0.28rem;
    pointer-events: none;
    background: #cb0203;
}

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

.chapter-copy h2,
.story-footer h2 {
    position: relative;
    font-family: var(--font-display);
    font-weight: 900;
    max-width: 10em;
    overflow-wrap: anywhere;
    font-size: clamp(2rem, 8vw, 3.65rem);
    line-height: 0.9;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.chapter-copy p,
.story-footer p {
    position: relative;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.58;
    letter-spacing: 0.01em;
}

.chapter-points {
    position: relative;
    display: grid;
    gap: 0.62rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chapter-points li {
    padding: 0.8rem 0.9rem 0.8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--point-text);
    font-size: 0.9rem;
    line-height: 1.42;
    letter-spacing: 0.005em;
    background: var(--point-bg);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.stat {
    min-height: 86px;
    display: grid;
    align-content: space-between;
    gap: 0.65rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.story-footer {
    display: grid;
    gap: 1.15rem;
    padding: 2rem 0 3rem;
}

.story-cta {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.1rem;
    padding: 0.85rem 1.15rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--cta-text);
    background: var(--accent);
}


.text-only-card {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-block: clamp(3rem, 10vw, 7rem);
}

.text-only-card .chapter-copy {
    max-width: 62rem;
    min-height: auto;
}

.mission-copy {
    gap: 1.25rem;
}

.mission-copy p {
    max-width: 48rem;
}

.contact-options {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.25rem;
}

.contact-option {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--contact-bg);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.contact-option:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: var(--contact-bg-hover);
}

.contact-option strong {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.contact-option span {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
}

@media (max-width: 759px) {
    :root {
        --hero-fallback-image: none;
        --hero-image-position: center top;
        --hero-image-size: 100% auto;
    }

    .story-hero {
        min-height: auto;
        align-content: start;
        gap: clamp(1rem, 4vw, 1.35rem);
        padding-bottom: clamp(1.25rem, 5vw, 2rem);
    }

    .topline {
        grid-template-columns: auto auto;
        align-items: start;
        justify-content: space-between;
    }

    .theme-toggle {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        justify-self: end;
    }

    .chapter-nav {
        grid-column: 1 / -1;
        margin-top: clamp(10rem, 52vw, 13rem);
    }

    .hero-copy {
        display: none;
    }
}

@media (orientation: landscape) and (max-width: 920px) {
    .story-hero {
        min-height: auto;
        padding-top: 0.5rem;
    }

    .hero-copy {
        padding-top: clamp(1rem, 10vw, 3rem);
    }

    .hero-specs {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-specs div {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .hero-specs div:last-child {
        border-right: 0;
    }

    .story-card {
        min-height: auto;
        grid-template-columns: minmax(18rem, 0.92fr) minmax(18rem, 1fr);
        align-items: center;
        gap: 1rem;
        padding-block: 2rem;
    }

    .chapter-copy {
        align-self: stretch;
        align-content: center;
    }

    .chapter-copy h2 {
        font-size: clamp(2rem, 5.2vw, 3.1rem);
    }

    .story-stats {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 760px) {
    .site-shell {
        padding: 1.4rem;
    }

    .story-hero {
        min-height: min(820px, 100svh);
        margin: -1.4rem -1.4rem 0;
        padding: clamp(1.4rem, 3.2vw, 2.6rem);
    }

    .topline {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: clamp(1.4rem, 4vw, 3.6rem);
    }

    .logo-mark {
        width: clamp(82px, 9vw, 112px);
    }

    .topline-meta {
        grid-column: 3;
        grid-row: 1;
    }

    .theme-toggle {
        grid-column: 3;
        grid-row: 1;
    }

    .hero-copy {
        width: min(100%, 32rem);
        max-width: 32rem;
        justify-items: end;
        justify-self: end;
        padding-top: clamp(5rem, 22svh, 13rem);
        text-align: right;
    }

    .hero-copy p:not(.eyebrow) {
        max-width: 26rem;
    }

    .hero-specs {
        grid-template-columns: repeat(3, 1fr);
        justify-self: end;
        max-width: 62rem;
    }

    .hero-specs div {
        min-height: 7rem;
        align-content: end;
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .hero-specs div:last-child {
        border-right: 0;
    }

    .chapter-nav {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        margin: 0;
        padding-inline: 0;
        flex-wrap: wrap;
        overflow: visible;
    }

    .chapter-nav a {
        min-height: 34px;
        padding: 0.45rem 0.65rem;
    }

    .story-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: clamp(1.2rem, 4vw, 3rem);
        min-height: auto;
        padding-block: clamp(1.75rem, 4vw, 3rem);
    }

    .chapter-copy {
        min-height: 0;
        align-content: center;
        padding: clamp(1.35rem, 3vw, 2.25rem);
        overflow: visible;
    }

    .story-footer {
        grid-template-columns: 1fr minmax(18rem, 0.8fr);
        align-items: end;
        padding-top: 4rem;
    }
}

@media (min-width: 1120px) {
    .site-shell {
        padding-inline: 2rem;
    }

    .story-hero {
        min-height: min(860px, 100svh);
        margin-inline: -2rem;
        padding-inline: clamp(2rem, 4vw, 4rem);
    }

    .hero-copy {
        width: min(100%, 34rem);
        max-width: 34rem;
        transform: translateX(3ch);
        padding-top: clamp(10rem, 30svh, 18rem);
    }

    .hero-copy h1 {
        font-size: clamp(2rem, 4.8vw, 4.2rem);
    }

    .hero-specs {
        transform: translateX(3ch);
    }

    .chapter-nav {
        flex-wrap: nowrap;
        gap: clamp(0.55rem, 1.4vw, 1.25rem);
        overflow: visible;
    }

    .chapter-nav a {
        min-height: 32px;
        padding-inline: 0.2rem;
        font-size: clamp(0.52rem, 0.62vw, 0.62rem);
    }

    .story-card {
        min-height: auto;
        padding-block: clamp(2rem, 4vh, 3.25rem);
    }

    .text-only-card {
        padding-block: clamp(2.5rem, 5vh, 4rem);
    }

    .chapter-copy p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}
