* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --cream:  #FBF3E6;   
    --red:    #C8102E;   
    --green:  #4A7C2C;   
    --yellow: #F2B705;   
    --ink:    #241A12;   
    --white:  #FFFFFF;

    --font-display: "Archivo", "Arial", sans-serif;
    --font-body:    "Archivo", "Arial", sans-serif;
    --font-poster:  "Archivo", "Arial", sans-serif;
}

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@property --heat {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

@property --fire {
    syntax: "<number>";
    inherits: true;
    initial-value: 0;
}

.opening {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 18px;
    padding: 24px;
    background: var(--red);
    color: var(--cream);
    text-align: center;
    animation: opening-dismiss 1.9s ease forwards;
}

.opening strong {
    font: 900 clamp(78px, 11vw, 152px) / 0.80 var(--font-poster);
    letter-spacing: -0.075em;
}

.opening-bean {
    position: relative;
    width: clamp(58px, 8vw, 82px);
    aspect-ratio: 1;
    --heat: 0;
    --fire: 1;
}

.opening-track {
    width: 112px;
    height: 4px;
    margin-top: 15px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(251 243 230 / 0.35);
}

.opening-track::before {
    content: "";
    display: block;
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow);
    animation: opening-progress 850ms ease-in-out infinite;
}

.opening-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

@keyframes opening-progress {
    from { transform: translateX(-100%); }
    to { transform: translateX(200%); }
}

@keyframes opening-dismiss {
    0%, 60% {
        opacity: 1;
        visibility: visible;
    }

    98% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

img {
    display: block;
    width: 100%;
    height: auto;
}

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

ul,
ol {
    list-style: none;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.03em;
}

main > section > header > p:first-child,
#chili > section > article h4,
.dish-category,
#ending header p {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

main > section {
    padding: 8vw 6vw;
}

main > section > header {
    margin-bottom: 5vw;
}

main > section > header > p:first-child {
    margin-bottom: 24px;
    color: var(--red);
}

main > section > header h2 {
    font-size: clamp(48px, 7vw, 120px);
}

main > section > header > p:last-child {
    margin-top: 26px;
    font-size: 17px;
    max-width: 520px;
}

header#home > section > a,
#ending > a {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    transition: transform 0.15s ease, background 0.15s ease;
}

header#home > section > a:hover,
#ending > a:hover {
    transform: translateY(-3px);
    background: var(--red);
}

header#home {
    position: relative;
    min-height: 100vh;
    padding: 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 6vw;
    border-bottom: 2px solid var(--ink);
}

nav > a {
    font-family: var(--font-poster);
    font-weight: 800;
    font-size: 26px;
    color: var(--red);
    letter-spacing: -0.01em;
    line-height: 1;
}

nav ul {
    display: flex;
    gap: 32px;
}

nav li {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

nav li a {
    transition: opacity 0.2s ease;
}

nav li a:hover {
    opacity: 0.55;
}

header#home > section {
    min-height: calc(100vh - 78px);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px 40px;
    padding: 4vw 6vw 5vw;
    position: relative;
}

header#home > section > p:first-child {
    grid-column: 1 / -1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--red);
}

header#home h1 {
    align-self: center;
    font-size: clamp(52px, 8.5vw, 140px);
    color: var(--red);
}

header#home > section > p:nth-of-type(2) {
    align-self: end;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(19px, 2.3vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--ink);
}

header#home figure {
    grid-column: 2;
    grid-row: 2 / 4;
    align-self: stretch;
}

header#home figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

header#home figcaption {
    display: none;
}

header#home > section > a {
    grid-column: 1;
    align-self: end;
    width: fit-content;
}

.marquee {
    overflow: hidden;
    padding: 14px 0;
    background: var(--ink);
    color: var(--yellow);
    border-top: 3px solid var(--yellow);
    border-bottom: 3px solid var(--yellow);
}

.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee 24s linear infinite;
}

.marquee__track span {
    font-family: var(--font-poster);
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.sticker {
    position: absolute;
    display: grid;
    place-items: center;
    text-align: center;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--ink);
    border: 4px solid var(--ink);
    font-family: var(--font-poster);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.1;
    transform: rotate(14deg);
    box-shadow: 8px 8px 0 var(--red);
    z-index: 2;
}

.sticker--green {
    background: var(--green);
    color: var(--cream);
    box-shadow: 8px 8px 0 var(--yellow);
}

header#home .sticker {
    top: 16%;
    right: 5vw;
}

#chili {
    background: var(--white);
    border-top: 3px solid var(--ink);
}

#chili > header > p:first-child {
    color: var(--red);
}

#chili > header h2 {
    color: var(--ink);
}

#chili > article {
    max-width: 800px;
    margin-bottom: 7vw;
}

#chili > article p {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#chili > article p + p {
    margin-top: 0.6em;
}

#chili > .chili-banner {
    overflow: visible;
    border-radius: 0;
    margin: 0 0 7vw;
}

#chili > .chili-banner img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 22px;
}


#chili > section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 3vw;
}

#chili > section > header {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

#chili > section > header h3 {
    font-size: clamp(40px, 5vw, 72px);
    color: var(--ink);
}

#chili > section > header p {
    max-width: 300px;
    font-size: 15px;
}

#chili > section > article {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 5px solid var(--ink);
    padding-top: 22px;
}

#chili > section > article h4 {
    order: 0;
    color: var(--red);
}

#chili > section > article figure {
    order: 1;
}

#chili > section > article h3 {
    order: 2;
    font-size: clamp(24px, 2.4vw, 34px);
    color: var(--ink);
    line-height: 1.05;
}

#chili > section > article p {
    order: 3;
    font-size: 15px;
    color: rgba(36, 26, 18, 0.8);
}

#chili > section > article figure img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 18px;
}

#chili > section > article figcaption {
    font-size: 10px;
}

#process {
    background: var(--green);
    color: var(--cream);
}

#process > header > p:first-child {
    color: var(--yellow);
}

#process > header h2 {
    color: var(--cream);
}

#process > header > p:last-child {
    color: rgba(251, 243, 230, 0.8);
}

.process-flow {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: start;
    gap: clamp(24px, 5vw, 84px);
    margin-top: 3vw;
}

.process-stage {
    position: sticky;
    top: 10vh;
}

.process-stage__frame {
    position: relative;
    height: min(66vh, 640px);
    overflow: hidden;
    border-radius: 22px;
    background: var(--ink);
}

.process-frame {
    position: absolute;
    inset: 0;
    margin: 0;
    border-radius: 0;
    opacity: 0;
}

.process-frame--1 {
    opacity: 1;
}

.process-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.process-frame:hover img {
    transform: none;
}

.process-frame figcaption {
    position: absolute;
    inset: auto 0 0;
    margin: 0;
    padding: 14px 18px;
    color: var(--cream);
    background: linear-gradient(180deg, rgb(36 26 18 / 0), rgb(36 26 18 / 0.72));
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.process-steps {
    display: flex;
    flex-direction: column;
    counter-reset: step;
}

.process-step {
    display: flex;
    min-height: 46vh;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
    border-top: 2px solid rgb(251 243 230 / 0.22);
    counter-increment: step;
}

.process-step:first-child {
    min-height: 26vh;
}

.process-step:last-child {
    border-bottom: 2px solid rgb(251 243 230 / 0.22);
}

.process-step::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 12px;
    color: var(--yellow);
    font-family: var(--font-display);
    font-size: 32px;
    line-height: 1;
}

.process-step h3 {
    color: var(--cream);
    font-size: clamp(26px, 2.8vw, 42px);
}

.process-step p {
    max-width: 34ch;
    margin-top: 12px;
    color: rgb(251 243 230 / 0.82);
    font-size: 16px;
    line-height: 1.5;
}

@supports (animation-timeline: view()) {
    .process-flow {
        view-timeline: --process-flow block;
    }

    .process-frame--1 {
        animation: process-frame-1 linear both;
        animation-timeline: --process-flow;
        animation-range: cover 0% cover 100%;
    }

    .process-frame--2 {
        animation: process-frame-2 linear both;
        animation-timeline: --process-flow;
        animation-range: cover 0% cover 100%;
    }

    .process-frame--3 {
        animation: process-frame-3 linear both;
        animation-timeline: --process-flow;
        animation-range: cover 0% cover 100%;
    }

    .process-frame--4 {
        animation: process-frame-4 linear both;
        animation-timeline: --process-flow;
        animation-range: cover 0% cover 100%;
    }
}

@keyframes process-frame-1 {
    0%, 26% { opacity: 1; }
    34%, 100% { opacity: 0; }
}

@keyframes process-frame-2 {
    0%, 26% { opacity: 0; }
    34%, 46% { opacity: 1; }
    54%, 100% { opacity: 0; }
}

@keyframes process-frame-3 {
    0%, 46% { opacity: 0; }
    54%, 64% { opacity: 1; }
    72%, 100% { opacity: 0; }
}

@keyframes process-frame-4 {
    0%, 64% { opacity: 0; }
    72%, 100% { opacity: 1; }
}

#dishes {
    background: var(--yellow);
    color: var(--ink);
}

#dishes > header > p:first-child {
    color: var(--red);
}

#dishes > header > p:last-child {
    color: rgba(36, 26, 18, 0.75);
}

.dishes-carousel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    padding-top: 14px;
    border-top: 2px solid var(--ink);
}

.carousel-state,
.detail-state {
    position: fixed;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}

.dishes-viewport {
    overflow: hidden;
    min-width: 0;
    border-radius: 22px;
    background: var(--ink);
}

.dishes-track {
    display: flex;
    transition: transform 620ms cubic-bezier(0.65, 0, 0.35, 1);
}

.dish-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.dish-slide__open {
    position: relative;
    display: block;
    cursor: pointer;
}

.dish-slide__open img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 700ms ease;
}

.dish-slide__open:hover img {
    transform: scale(1.03);
}

.dish-slide__caption {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: clamp(18px, 3vw, 34px);
    color: var(--cream);
    background: linear-gradient(180deg, rgb(36 26 18 / 0), rgb(36 26 18 / 0.78) 62%);
}

.dish-slide__index {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
}

.dish-slide__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(22px, 3.4vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.dish-slide__cta {
    margin-top: 6px;
    color: var(--yellow);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

#slide-2:checked ~ .dishes-viewport .dishes-track { transform: translateX(-100%); }
#slide-3:checked ~ .dishes-viewport .dishes-track { transform: translateX(-200%); }
#slide-4:checked ~ .dishes-viewport .dishes-track { transform: translateX(-300%); }
#slide-5:checked ~ .dishes-viewport .dishes-track { transform: translateX(-400%); }
#slide-6:checked ~ .dishes-viewport .dishes-track { transform: translateX(-500%); }
#slide-7:checked ~ .dishes-viewport .dishes-track { transform: translateX(-600%); }

.carousel-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.carousel-arrows {
    display: flex;
}

.arrow-pair {
    display: none;
    gap: 8px;
}

#slide-1:checked ~ .carousel-controls .pair-1,
#slide-2:checked ~ .carousel-controls .pair-2,
#slide-3:checked ~ .carousel-controls .pair-3,
#slide-4:checked ~ .carousel-controls .pair-4,
#slide-5:checked ~ .carousel-controls .pair-5,
#slide-6:checked ~ .carousel-controls .pair-6,
#slide-7:checked ~ .carousel-controls .pair-7 {
    display: flex;
}

.carousel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 15px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    font: 700 0.875rem var(--font-body);
    color: var(--ink);
    cursor: pointer;
}

.carousel-btn:hover,
.carousel-btn--next {
    background: var(--ink);
    color: var(--cream);
}

.carousel-counter {
    margin: 0 4px 0 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    font-variant-numeric: tabular-nums;
}

.carousel-counter::before {
    content: "01 / 07";
}

#slide-2:checked ~ .carousel-controls .carousel-counter::before { content: "02 / 07"; }
#slide-3:checked ~ .carousel-controls .carousel-counter::before { content: "03 / 07"; }
#slide-4:checked ~ .carousel-controls .carousel-counter::before { content: "04 / 07"; }
#slide-5:checked ~ .carousel-controls .carousel-counter::before { content: "05 / 07"; }
#slide-6:checked ~ .carousel-controls .carousel-counter::before { content: "06 / 07"; }
#slide-7:checked ~ .carousel-controls .carousel-counter::before { content: "07 / 07"; }

.carousel-dots {
    display: flex;
    margin-left: auto;
}

.carousel-dots label {
    display: grid;
    place-items: center;
    width: clamp(25px, 3vw, 40px);
    height: 44px;
    cursor: pointer;
}

.carousel-dots label::before {
    content: "";
    width: 9px;
    height: 9px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

#slide-1:checked ~ .carousel-controls .carousel-dots label[for="slide-1"]::before,
#slide-2:checked ~ .carousel-controls .carousel-dots label[for="slide-2"]::before,
#slide-3:checked ~ .carousel-controls .carousel-dots label[for="slide-3"]::before,
#slide-4:checked ~ .carousel-controls .carousel-dots label[for="slide-4"]::before,
#slide-5:checked ~ .carousel-controls .carousel-dots label[for="slide-5"]::before,
#slide-6:checked ~ .carousel-controls .carousel-dots label[for="slide-6"]::before,
#slide-7:checked ~ .carousel-controls .carousel-dots label[for="slide-7"]::before {
    background: var(--ink);
}

.carousel-state:focus-visible ~ .carousel-controls {
    outline: 3px solid var(--ink);
    outline-offset: 6px;
    border-radius: 6px;
}

.dish-category {
    color: var(--red);
}

.dish-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: center;
    padding: clamp(16px, 3vw, 40px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s;
}

#detail-1:checked ~ .dishes-modals .dish-modal--1,
#detail-2:checked ~ .dishes-modals .dish-modal--2,
#detail-3:checked ~ .dishes-modals .dish-modal--3,
#detail-4:checked ~ .dishes-modals .dish-modal--4,
#detail-5:checked ~ .dishes-modals .dish-modal--5,
#detail-6:checked ~ .dishes-modals .dish-modal--6,
#detail-7:checked ~ .dishes-modals .dish-modal--7 {
    opacity: 1;
    visibility: visible;
}

.dish-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(36 26 18 / 0.82);
    cursor: pointer;
}

.dish-modal__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    width: min(1040px, 100%);
    max-height: min(86vh, 800px);
    overflow: auto;
    border-radius: 22px;
    background: var(--cream);
    color: var(--ink);
    box-shadow: 0 30px 80px rgb(36 26 18 / 0.45);
}

.dish-modal__panel > img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.dish-modal__copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: clamp(24px, 3.4vw, 46px);
}

.dish-modal__copy h3 {
    font-size: clamp(24px, 2.8vw, 40px);
    line-height: 1.04;
}

.dish-modal__copy p {
    max-width: 46ch;
    font-size: 0.95rem;
}

.dish-modal__copy h4 {
    margin-top: 4px;
    color: var(--red);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.dish-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    font: 700 0.75rem var(--font-body);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.dish-modal__close:hover {
    background: var(--ink);
    color: var(--cream);
}

#hunan {
    background: var(--red);
    color: var(--cream);
    position: relative;
    overflow: clip;
}

#hunan > header > p:first-child {
    color: var(--yellow);
}

#hunan > header h2 {
    color: var(--cream);
}

#hunan > article {
    max-width: 760px;
    margin-bottom: 6vw;
}

#hunan > article p {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(26px, 3vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

#hunan > article p + p {
    margin-top: 0.6em;
}

.hunan-origin {
    margin-top: 5vw;
    border: 2px solid var(--ink);
    border-radius: 22px;
    background: var(--ink);
}

.hunan-origin figcaption {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 24px;
    margin: 0;
    padding: 16px clamp(18px, 3vw, 34px);
    background: var(--ink);
    color: var(--cream);
    font-size: 0.875rem;
    letter-spacing: 0;
    text-transform: none;
}

.hunan-origin figcaption strong {
    display: block;
    font-size: 1rem;
    color: var(--yellow);
}

.hunan-origin figcaption a {
    margin-left: auto;
    text-decoration: underline;
    text-underline-offset: 3px;
}

#hunan .sticker {
    top: 5vw;
    right: 5vw;
}

#ending {
    background: var(--ink);
    color: var(--cream);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
}

#ending header p {
    color: var(--yellow);
}

#ending h2 {
    font-size: clamp(46px, 8.5vw, 140px);
    color: var(--cream);
}

#ending > a {
    background: var(--yellow);
    color: var(--ink);
}

#ending > a:hover {
    background: var(--cream);
}

footer {
    padding: 42px 6vw;
    background: var(--ink);
    color: var(--cream);
    border-top: 1px solid rgba(251, 243, 230, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

footer p {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(251, 243, 230, 0.6);
}

footer p:first-child {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--yellow);
}

footer p:nth-child(2) {
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cream);
}

figure {
    overflow: hidden;
    border-radius: 18px;
}

figure img {
    transition: transform 0.5s ease;
}

figure:hover img {
    transform: scale(1.04);
}

.hunan-origin:hover img {
    transform: none;
}

figcaption {
    margin-top: 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.spice-bean {
    position: fixed;
    z-index: 4;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    width: clamp(48px, 5.4vw, 76px);
    aspect-ratio: 1;
    pointer-events: none;
    --heat: 0.32;
    --fire: 0.3;
}

@supports (animation-timeline: scroll()) {
    .spice-bean {
        --heat: 0;
        --fire: 0;
        animation: spice-heat linear both;
        animation-timeline: scroll(root block);
    }
}

@keyframes spice-heat {
    0% {
        --heat: 0;
        --fire: 0;
    }

    88% {
        --heat: 0.9;
        --fire: 0;
    }

    100% {
        --heat: 1;
        --fire: 1;
    }
}

.spice-bean__face {
    position: relative;
    width: 100%;
    height: 100%;
    border: 3px solid var(--ink);
    border-radius: 56% 43% 48% 48% / 57% 51% 49% 42%;
    background:
        radial-gradient(ellipse at 29% 22%, rgba(255, 255, 239, 0.9) 0%, transparent 29%),
        hsl(calc(48 - var(--heat) * 44) 91% calc(63% - var(--heat) * 9%));
    box-shadow: inset -4px -5px 0 rgba(92, 26, 13, 0.16), 3px 4px 0 var(--ink);
    transform: rotate(10deg);
}

.spice-bean__eyes,
.spice-bean__cheeks {
    position: absolute;
    top: 36%;
    left: 20%;
    right: 19%;
    height: 19%;
    display: flex;
    justify-content: space-between;
}

.spice-bean__eyes::before,
.spice-bean__eyes::after {
    content: "";
    width: 15%;
    height: 100%;
    border-radius: 50%;
    background: var(--ink);
    transform: scaleY(calc(1 - var(--heat) * 0.48));
}

.spice-bean__cheeks {
    top: 57%;
    left: 12%;
    right: 11%;
    height: 15%;
    opacity: calc(0.24 + var(--heat) * 0.58);
}

.spice-bean__cheeks::before,
.spice-bean__cheeks::after {
    content: "";
    width: 22%;
    border-radius: 50%;
    background: #a51c25;
}

.spice-bean__mouth {
    position: absolute;
    top: 58%;
    left: 37%;
    width: calc(25% - var(--heat) * 3%);
    height: calc(19% + var(--heat) * 8%);
    border: 2px solid var(--ink);
    border-top: 0;
    border-radius: calc(40% + var(--heat) * 10%) calc(40% + var(--heat) * 10%) 50% 50%;
    background: rgba(50, 23, 15, calc(var(--heat) * 0.85));
    transform: scaleY(calc(0.55 + var(--heat) * 0.65));
}

.spice-bean__fire {
    position: absolute;
    z-index: 1;
    top: 41%;
    right: 48%;
    width: 140%;
    height: 44%;
    opacity: var(--fire);
    transform: rotate(7deg) scaleX(calc(0.25 + var(--fire) * 0.75));
    transform-origin: right center;
    filter: drop-shadow(0 1px 3px #ea3c17);
}

.spice-bean__fire::before,
.spice-bean__fire::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #c8102e, #f97120 63%, #ffd451);
    clip-path: polygon(0 38%, 23% 42%, 12% 19%, 46% 28%, 34% 0, 71% 26%, 100% 52%, 77% 79%, 38% 100%, 48% 74%, 15% 82%, 23% 60%);
    transform-origin: right center;
    animation: bean-flame 0.62s ease-in-out infinite alternate;
}

.spice-bean__fire::after {
    inset: 23% 0 20% 27%;
    background: linear-gradient(90deg, #ffab29, #fff6ae 83%);
    animation-delay: -0.25s;
}

@keyframes bean-flame {
    from { transform: scale(0.84, 0.9); }
    to { transform: scale(1.03, 1.13); }
}

/* ---------- scroll storytelling ---------- */

.chapter-rail {
    position: sticky;
    top: 30vh;
    z-index: 3;
    display: grid;
    justify-items: end;
    gap: 9px;
    height: 0;
    margin-right: calc(30px - 6vw);
    color: inherit;
    pointer-events: none;
}

.chapter-rail__num {
    font: 800 12px/1 var(--font-body);
    letter-spacing: 0.2em;
    opacity: 0.9;
}

.chapter-rail__track {
    position: relative;
    width: 2px;
    height: 56px;
    overflow: hidden;
    background: currentColor;
    opacity: 0.22;
}

.chapter-rail__track i {
    position: absolute;
    inset: 0;
    background: currentColor;
    transform: scaleY(0);
    transform-origin: top;
}

.chapter-rail__label {
    writing-mode: vertical-rl;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
}

@supports (animation-timeline: view()) {
    #chili {
        view-timeline: --chapter-chili block;
    }

    #process {
        view-timeline: --chapter-process block;
    }

    #dishes {
        view-timeline: --chapter-dishes block;
    }

    #hunan {
        view-timeline: --chapter-hunan block;
    }

    #chili .chapter-rail__track i {
        animation: rail-fill linear both;
        animation-timeline: --chapter-chili;
    }

    #process .chapter-rail__track i {
        animation: rail-fill linear both;
        animation-timeline: --chapter-process;
    }

    #dishes .chapter-rail__track i {
        animation: rail-fill linear both;
        animation-timeline: --chapter-dishes;
    }

    #hunan .chapter-rail__track i {
        animation: rail-fill linear both;
        animation-timeline: --chapter-hunan;
    }

    main > section > header,
    main > section > figure,
    main > section > article,
    #chili > section > header,
    #chili > section > article,
    #process ol > li,
    #ending > a {
        animation: reveal-up linear both;
        animation-timeline: view();
        animation-range: entry 5% entry 55%;
    }
}

@supports (animation-timeline: view()) {
    header#home h1 {
        animation: hero-weight linear both;
        animation-timeline: view();
        animation-range: exit 0% exit 100%;
    }
}

@keyframes rail-fill {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-weight {
    from { font-weight: 800; }
    to { font-weight: 320; }
}

/* ---------- flavor profile ---------- */

.flavor-profile {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgb(36 26 18 / 0.14);
}

.flavor-profile__title {
    margin-bottom: 10px;
    color: var(--red);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.flavor-bars {
    display: grid;
    gap: 8px;
}

.flavor-bar {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.flavor-name {
    color: rgb(36 26 18 / 0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.flavor-track {
    position: relative;
    height: 8px;
    overflow: hidden;
    border-radius: 2px;
    background: rgb(36 26 18 / 0.12);
}

.flavor-track i {
    position: absolute;
    inset: 0 auto 0 0;
    width: calc(var(--level) * 20%);
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 720ms cubic-bezier(0.2, 0.7, 0.3, 1) 120ms;
}

.flavor-track::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 2px), var(--cream) calc(20% - 2px) 20%);
    pointer-events: none;
}

#detail-1:checked ~ .dishes-modals .dish-modal--1 .flavor-track i,
#detail-2:checked ~ .dishes-modals .dish-modal--2 .flavor-track i,
#detail-3:checked ~ .dishes-modals .dish-modal--3 .flavor-track i,
#detail-4:checked ~ .dishes-modals .dish-modal--4 .flavor-track i,
#detail-5:checked ~ .dishes-modals .dish-modal--5 .flavor-track i,
#detail-6:checked ~ .dishes-modals .dish-modal--6 .flavor-track i,
#detail-7:checked ~ .dishes-modals .dish-modal--7 .flavor-track i {
    transform: scaleX(1);
}

@media (max-width: 1100px) {
    .chapter-rail {
        display: none;
    }
}

@media (max-width: 900px) {

    nav {
        padding: 18px 5vw;
    }

    nav ul {
        gap: 18px;
    }

    main > section {
        padding: 11vw 5vw;
    }

    header#home > section {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    header#home h1 {
        font-size: clamp(46px, 10vw, 92px);
    }

    header#home figure {
        grid-column: 1;
        grid-row: auto;
        min-height: 460px;
    }

    header#home > section > p:nth-of-type(2) {
        order: 3;
    }

    header#home > section > a {
        grid-column: 1;
    }

    header#home .sticker {
        top: 30%;
        right: 4vw;
        width: 110px;
        height: 110px;
        font-size: 20px;
    }

    #chili > section {
        grid-template-columns: repeat(2, 1fr);
    }

    #chili > section > header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dish-slide__open img {
        aspect-ratio: 4 / 3;
    }

    .dish-modal__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .dish-modal__panel > img {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .process-flow {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .process-stage {
        top: 0;
        z-index: 2;
        padding: 10px 0;
        background: var(--green);
    }

    .process-stage__frame {
        height: 38vh;
        border-radius: 18px;
    }

    .process-step {
        min-height: 48vh;
    }

    .process-step:first-child {
        min-height: 24vh;
    }

    footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {

    nav {
        align-items: flex-start;
    }

    nav ul {
        display: none;
    }

    main > section {
        padding: 16vw 5vw;
    }

    header#home h1 {
        font-size: clamp(42px, 14vw, 72px);
    }

    header#home figure {
        min-height: 360px;
    }

    header#home .sticker {
        top: 42%;
        width: 96px;
        height: 96px;
        font-size: 18px;
    }

    main > section > header h2 {
        font-size: clamp(38px, 12vw, 60px);
    }

    #chili > section {
        grid-template-columns: 1fr;
    }

    #chili > article p,
    #hunan > article p {
        font-size: 23px;
    }

    .marquee__track span {
        font-size: 26px;
    }

    .process-stage__frame {
        height: 32vh;
    }

    .dish-slide__cta {
        display: none;
    }

    .carousel-dots {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }

    .hunan-origin figcaption a {
        margin-left: 0;
    }

    #hunan .sticker {
        top: 12px;
        right: 5vw;
        width: 60px;
        height: 60px;
        font-size: 13px;
    }

    #ending {
        min-height: 55vh;
    }

    #ending h2 {
        font-size: clamp(40px, 12vw, 62px);
    }

    footer {
        display: block;
    }

    footer p {
        margin-bottom: 14px;
    }

    footer p:last-child {
        margin-bottom: 0;
    }
}

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

    .opening {
        display: none;
    }

    .marquee__track,
    .spice-bean__fire::before,
    .spice-bean__fire::after {
        animation: none;
    }

    .spice-bean {
        animation: none;
    }

    .dishes-track,
    .dish-modal,
    .dish-slide__open img {
        transition: none;
    }

    .dish-slide__open:hover img {
        transform: none;
    }

    figure img {
        transition: none;
    }

    figure:hover img {
        transform: none;
    }

    header#home h1,
    main > section > header,
    main > section > figure,
    main > section > article,
    #chili > section > header,
    #chili > section > article,
    #process ol > li,
    #ending > a,
    .chapter-rail__track i {
        animation: none;
    }

    header#home h1 {
        font-weight: 800;
    }

    .process-frame {
        animation: none;
    }

    .flavor-track i {
        transition: none;
    }
}
