.story-page {
    --story-cream: #f3f0e8;
    --story-paper: #fffdf7;
    --story-ink: #111111;
    background: var(--story-cream);
}

.story-main {
    overflow: hidden;
}

.story-page .site-header {
    box-shadow: 0 8px 28px rgba(20, 70, 252, 0.14);
}

.story-page #stories {
    scroll-margin-top: 120px;
}

.story-hero {
    position: relative;
    padding: clamp(56px, 7vw, 104px) 0 clamp(68px, 9vw, 128px);
    background:
        radial-gradient(circle at 12% 10%, rgba(20, 70, 252, 0.1), transparent 28rem),
        var(--story-cream);
}

.story-hero::before {
    content: "";
    position: absolute;
    top: 8%;
    right: -8%;
    width: 34vw;
    aspect-ratio: 1;
    border: 1px solid rgba(20, 70, 252, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(20, 70, 252, 0.035), 0 0 0 92px rgba(20, 70, 252, 0.025);
    pointer-events: none;
}

.story-hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
    gap: clamp(42px, 7vw, 96px);
    align-items: center;
}

.story-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.story-eyebrow > span {
    width: 34px;
    height: 3px;
    border-radius: 999px;
    background: var(--orange);
}

.story-hero h1 {
    max-width: 790px;
    margin: 0 0 30px;
    color: var(--blue);
    font-family: var(--font-display);
    font-size: clamp(58px, 8.4vw, 126px);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.065em;
    text-transform: uppercase;
}

.story-hero-copy {
    min-width: 0;
}

.story-hero h1 em {
    color: var(--orange);
    font-style: normal;
}

.story-hero-lead {
    max-width: 630px;
    margin: 0 0 32px;
    color: #555b65;
    font-size: clamp(17px, 1.6vw, 21px);
    font-weight: 620;
    line-height: 1.55;
}

.story-scroll-link,
.story-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 56px;
    padding: 0 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 5px 0 var(--orange);
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-scroll-link:hover,
.story-menu-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 var(--orange);
}

.story-hero-poster {
    position: relative;
    min-height: clamp(470px, 55vw, 650px);
    border-radius: 38px;
    overflow: hidden;
    color: #fff;
    background: var(--blue);
    box-shadow: 22px 24px 0 var(--orange), 0 36px 76px rgba(20, 70, 252, 0.22);
    transform: rotate(2.5deg);
}

.story-poster-image {
    position: absolute;
    inset: 0;
}

.story-poster-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.08) 15%, rgba(10, 18, 48, 0.84) 100%);
}

.story-poster-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.story-poster-tag,
.story-poster-year,
.story-hero-poster strong {
    position: absolute;
    z-index: 1;
}

.story-poster-tag {
    top: 24px;
    left: 24px;
    padding: 9px 13px;
    border-radius: 999px;
    color: var(--blue);
    background: #fff;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.08em;
}

.story-hero-poster strong {
    left: 26px;
    bottom: 55px;
    font-family: var(--font-display);
    font-size: clamp(48px, 5.2vw, 76px);
    font-weight: 400;
    line-height: 0.77;
    letter-spacing: -0.06em;
}

.story-poster-year {
    right: 22px;
    bottom: 22px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.story-ticker {
    position: relative;
    z-index: 2;
    overflow: hidden;
    color: #fff;
    background: var(--orange);
    transform: rotate(-1deg) scale(1.015);
}

.story-ticker-track {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.4vw, 34px);
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: clamp(18px, 2.4vw, 34px);
    letter-spacing: -0.035em;
}

.story-ticker-track i {
    color: var(--blue);
    font-size: 0.65em;
}

.stories-section {
    position: relative;
    padding: clamp(110px, 12vw, 170px) 0 clamp(90px, 11vw, 150px);
    background: var(--story-paper);
}

.stories-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
    gap: 50px;
    align-items: end;
    margin-bottom: clamp(54px, 8vw, 92px);
}

.stories-heading h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(46px, 6.5vw, 86px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.stories-heading > p {
    margin: 0 0 4px;
    color: #626771;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.65;
}

.stories-list {
    display: grid;
    gap: clamp(58px, 9vw, 118px);
}

.story-card {
    --card-accent: var(--blue);
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.78fr);
    gap: clamp(34px, 7vw, 88px);
    align-items: center;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-card.is-visible {
    opacity: 1;
    transform: none;
}

.story-card:nth-child(even) {
    --card-accent: var(--orange);
    grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.02fr);
}

.story-card:nth-child(even) .story-card-visual {
    grid-column: 2;
}

.story-card:nth-child(even) .story-card-copy {
    grid-column: 1;
    grid-row: 1;
}

.story-card-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1.18 / 1;
    min-height: 360px;
    padding: 0;
    border: 0;
    border-radius: 34px;
    overflow: hidden;
    background: #ececf0;
    box-shadow: 16px 18px 0 var(--card-accent);
    font: inherit;
    text-align: inherit;
}

button.story-card-visual {
    cursor: pointer;
}

button.story-card-visual:focus-visible,
.story-expand-button:focus-visible,
.story-dish-button:focus-visible {
    outline: 4px solid var(--orange);
    outline-offset: 5px;
}

.story-card-visual img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-card:hover .story-card-visual img {
    transform: scale(1.035);
}

.story-card-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.92);
    background:
        radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.16), transparent 12rem),
        var(--card-accent);
    text-align: center;
}

.story-card-image-placeholder i {
    font-size: clamp(52px, 7vw, 88px);
}

.story-card-image-placeholder span {
    max-width: 230px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.5;
    text-transform: uppercase;
}

.story-card-index {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    min-width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--blue);
    background: #fff;
    font-family: var(--font-display);
    font-size: 19px;
    box-shadow: 0 10px 26px rgba(10, 16, 35, 0.16);
}

.story-card-kicker {
    margin: 0 0 16px;
    color: var(--card-accent);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.story-card-copy h3 {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: -0.05em;
    overflow-wrap: anywhere;
}

.story-card-preview,
.story-card-text {
    position: relative;
    max-width: 620px;
    margin: 0;
    padding-left: 20px;
    border-left: 3px solid var(--card-accent);
    color: #565b65;
    font-size: clamp(16px, 1.45vw, 19px);
    font-weight: 560;
    line-height: 1.72;
    white-space: pre-line;
}

.story-card-preview {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.story-expand-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 0;
    border: 0;
    color: var(--card-accent);
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.story-card.is-readable { cursor: pointer; }

body.story-dialog-open { overflow: hidden; }

.story-dialog {
    --card-accent: var(--blue);
    position: fixed;
    inset: 0;
    width: min(820px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 36px;
    overflow: hidden;
    color: var(--story-ink);
    background: var(--story-paper);
    box-shadow: 10px 10px 0 var(--orange);
}

.story-dialog::backdrop {
    background: rgba(17, 17, 17, 0.65);
}

/* Match the menu card entrance; animate only transform and opacity. */
.story-dialog[open] {
    animation: story-dialog-enter 0.32s cubic-bezier(0.2, 1, 0.2, 1);
}

.story-dialog[open]::backdrop {
    animation: story-backdrop-enter 0.25s ease;
}

@keyframes story-dialog-enter {
    from { opacity: 0; transform: translateY(22px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes story-backdrop-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .story-dialog[open],
    .story-dialog[open]::backdrop {
        animation: none;
    }
}

.story-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: white;
    background: var(--blue);
    font: 36px/1 sans-serif;
    cursor: pointer;
}

.story-dialog-close:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 3px;
}

.story-dialog-scroll {
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--blue) var(--story-paper);
}

.story-dialog-visual {
    height: clamp(230px, 36vh, 360px);
    padding: 30px 60px 12px;
    background: #fff;
}

.story-dialog-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-dialog-visual .story-card-image-placeholder {
    border-radius: 20px;
}

.story-dialog-copy { padding: 32px 38px 36px; }
.story-dialog-copy .story-eyebrow { margin-bottom: 18px; }
.story-dialog-copy h2 {
    margin: 0 0 26px;
    color: var(--blue);
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.story-dialog-copy .story-card-text {
    max-width: none;
    border-color: var(--orange);
    overflow-wrap: anywhere;
}

.story-dialog-footer {
    position: sticky;
    bottom: 0;
    padding: 18px 28px 24px;
    border-top: 1px solid rgba(17, 17, 17, 0.1);
    background: var(--story-paper);
}

.story-dialog-footer .story-dish-button {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 16px 24px;
    box-sizing: border-box;
    box-shadow: 0 5px 0 var(--orange);
}

.story-dialog-footer[hidden],
.story-dialog-footer .story-dish-button[hidden] { display: none; }

@media (max-width: 600px) {
    .story-dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 28px);
        border-radius: 26px;
        box-shadow: 5px 5px 0 var(--orange);
    }
    .story-dialog-scroll { max-height: calc(100dvh - 28px); }
    .story-dialog-visual { height: 240px; padding: 42px 24px 12px; }
    .story-dialog-copy { padding: 26px 22px 30px; }
    .story-dialog-close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .story-dialog-footer { padding: 14px 18px 22px; }
}

.story-dish-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 100%;
    min-height: 58px;
    margin-top: 28px;
    padding: 0 24px;
    border-radius: 999px;
    color: #fff;
    background: var(--card-accent);
    box-shadow: 0 5px 0 #111;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-dish-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 0 #111;
}

.stories-loading {
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #69707d;
}

.stories-loading span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--blue);
    animation: story-bounce 0.9s infinite alternate ease-in-out;
}

.stories-loading span:nth-child(2) {
    animation-delay: 0.15s;
}

.stories-loading span:nth-child(3) {
    animation-delay: 0.3s;
}

.stories-loading p {
    margin: 0 0 0 8px;
    font-size: 13px;
    font-weight: 800;
}

.stories-noscript {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

@keyframes story-bounce {
    to { transform: translateY(-8px); background: var(--orange); }
}

.story-cta {
    padding: 0 0 clamp(70px, 9vw, 110px);
    background: var(--story-paper);
}

.story-cta-inner {
    min-height: 370px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: clamp(34px, 6vw, 74px);
    border-radius: 40px;
    color: #fff;
    background:
        radial-gradient(circle at 92% 14%, rgba(255, 143, 46, 0.95), transparent 16rem),
        var(--blue);
    box-shadow: 0 28px 70px rgba(20, 70, 252, 0.2);
}

.story-eyebrow.light {
    color: rgba(255, 255, 255, 0.8);
}

.story-cta h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 92px);
    font-weight: 400;
    line-height: 0.86;
    letter-spacing: -0.055em;
    text-transform: uppercase;
}

.story-menu-button {
    flex: 0 0 auto;
    min-height: 68px;
    padding: 0 30px;
    color: var(--blue);
    background: #fff;
    box-shadow: 0 6px 0 var(--orange);
}

.story-footer.site-footer {
    padding: 0;
    background: #101010;
}

.story-footer-inner {
    min-height: 170px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    color: #fff;
}

.story-footer-inner > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    font-weight: 700;
}

.story-footer .footer-mascot-wordmark {
    justify-self: start;
}

.story-footer-links {
    justify-self: end;
    display: flex;
    gap: 18px;
}

.story-footer-links a {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.story-footer-links a:hover {
    color: var(--orange);
}

@media (max-width: 900px) {
    .story-page #nav-links {
        height: 100dvh;
        overflow-y: auto;
    }

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

    .story-hero-copy {
        max-width: 720px;
    }

    .story-hero-poster {
        width: min(560px, calc(100% - 18px));
        min-height: 560px;
        justify-self: center;
    }

    .stories-heading {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .stories-heading > p {
        max-width: 620px;
    }

    .story-card,
    .story-card:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .story-card:nth-child(even) .story-card-visual,
    .story-card:nth-child(even) .story-card-copy {
        grid-column: 1;
        grid-row: auto;
    }

    .story-card-copy {
        max-width: 720px;
    }

    .story-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .story-footer-inner {
        grid-template-columns: 1fr;
        justify-items: start;
        padding: 42px 0;
    }

    .story-footer .footer-mascot-wordmark,
    .story-footer-links {
        justify-self: start;
    }
}

@media (max-width: 600px) {
    .story-page #stories {
        scroll-margin-top: 78px;
    }

    .story-hero {
        padding-top: 46px;
    }

    .story-hero h1 {
        font-size: clamp(46px, 15.5vw, 68px);
    }

    .story-hero-lead {
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .story-hero-poster {
        min-height: 450px;
        border-radius: 27px;
        box-shadow: 10px 12px 0 var(--orange), 0 24px 50px rgba(20, 70, 252, 0.18);
        transform: rotate(1.4deg);
    }

    .story-ticker-track {
        min-height: 60px;
        justify-content: flex-start;
        padding-left: 18px;
        font-size: 19px;
    }

    .story-ticker-track span:nth-of-type(4),
    .story-ticker-track i:nth-of-type(3) {
        display: none;
    }

    .stories-section {
        padding-top: 94px;
    }

    .stories-heading h2 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .story-card-visual {
        min-height: 290px;
        border-radius: 25px;
        box-shadow: 9px 11px 0 var(--card-accent);
    }

    .story-card-index {
        top: 13px;
        left: 13px;
        min-width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .story-card-copy h3 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .story-card-text {
        padding-left: 15px;
        font-size: 15px;
    }

    .story-dish-button {
        width: 100%;
        min-height: 56px;
        padding: 10px 20px;
    }

    .story-cta-inner {
        min-height: 340px;
        padding: 30px 22px;
        border-radius: 28px;
    }

    .story-cta h2 {
        font-size: clamp(44px, 13vw, 62px);
    }

    .story-menu-button,
    .story-scroll-link {
        width: 100%;
    }

    .story-footer-links {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .story-card,
    .story-card-visual img,
    .story-scroll-link,
    .story-menu-button,
    .story-dish-button,
    .story-expand-button i {
        transition: none;
    }

    .stories-loading span {
        animation: none;
    }
}

/* Flat Chews colors without neon halos. */
.story-page,
.story-hero,
.stories-section,
.story-cta {
    background: var(--story-cream);
}

.story-page .site-header,
.story-cta-inner {
    box-shadow: none;
}

.story-hero::before {
    content: none;
    display: none;
    border: 0;
    box-shadow: none;
}

.story-hero-poster {
    box-shadow: 22px 24px 0 var(--orange);
}

.story-card-image-placeholder,
.story-cta-inner {
    background-image: none;
}

@media (max-width: 600px) {
    .story-hero-poster {
        box-shadow: 10px 12px 0 var(--orange);
    }
}
