/* =========================================================
   COMFORT FOOD
   Palette + type mirror the reference build:
   DM Serif Display (headline) + Manrope (sans / label-xs),
   square corners, captions under images, ivory + charcoal.
   ========================================================= */

/* ---------- TOKENS ---------- */
:root {
    --background: #F6F2E9;
    --secondary: #EDE7DA;
    --foreground: #16130F;
    --charcoal: #16130F;
    --chilli: #C8452F;
    --saffron: #EFC01F;
    --cocoa: #6B4426;
    --pista: #DDE5C4;
    --muted-foreground: #7C7365;
    --border: #DCD4C4;
    --primary-foreground: #F6F2E9;

    --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --sans: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;

    --px: clamp(20px, 4vw, 40px);
    --wrap: 1280px;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

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

figure {
    position: relative;
}

::selection {
    background: var(--chilli);
    color: var(--background);
}

.wrap {
    max-width: var(--wrap);
    margin-inline: auto;
    width: 100%;
}

/* ---------- TYPE PRIMITIVES ---------- */
.headline {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.005em;
    line-height: 1.02;
}

.label {
    display: inline-block;
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    line-height: 1.4;
}

.label--muted {
    color: var(--muted-foreground);
    font-weight: 700;
}

/* ---- logo lockup: one component, used in the header and the footer ---- */
.logo {
    display: inline-block;
    font-family: var(--serif);
    font-weight: 400;
    line-height: .9;
    letter-spacing: -.01em;
}

.logo__main,
.logo__alt {
    display: block;
}

.logo__alt {
    font-style: italic;
    color: var(--logo-accent, var(--chilli));
    /* nudge the italic line so its stems sit under the M above */
    padding-left: .06em;
}

.text-chilli {
    color: var(--chilli);
}

.text-cocoa {
    color: var(--cocoa);
}

.text-saffron {
    color: var(--saffron);
}

/* image hover zoom (wrapper must clip) */
.zoom,
.zoom > figure {
    overflow: hidden;
}

.zoom img {
    transition: transform .7s var(--ease);
}

.zoom:hover img {
    transform: scale(1.06);
}

/* subtle paper grain */
.grain {
    position: relative;
}

.grain::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    background-image: radial-gradient(rgba(22, 19, 15, .05) 1px, transparent 1px);
    background-size: 3px 3px;
}

/* broken-image fallback (injected by JS) */
.img-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background: radial-gradient(120% 120% at 20% 10%, #E3B65A 0%, #C07A33 48%, #6E4423 100%);
    color: rgba(255, 255, 255, .95);
    font-family: var(--serif);
    font-size: clamp(13px, 1.5vw, 24px);
    text-align: center;
    padding: 10px;
}

/* ---------- REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .9s var(--ease), transform 1s var(--ease);
}

.reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ---------- BUTTON ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border: 1px solid var(--charcoal);
    background: var(--charcoal);
    color: var(--primary-foreground);
    transition: background .3s, color .3s;
}

.btn__arrow {
    transition: transform .3s var(--ease);
}

.btn:hover .btn__arrow {
    transform: translateX(6px);
}

.btn:hover {
    background: var(--chilli);
    border-color: var(--chilli);
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: var(--background);
}

.nav {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--px);
}

.nav__logo {
    font-size: clamp(19px, 1.7vw, 24px);
    transition: opacity .3s;
}

.nav__logo:hover {
    opacity: .7;
}

.nav__links {
    display: flex;
    gap: 32px;
}

.nav__links a {
    transition: color .3s;
}

.nav__links a:hover {
    color: var(--chilli);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

.hero__copy {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    padding: clamp(40px, 6vw, 96px) var(--px);
}

.hero__titlerow {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* "COMFORT" is 7 characters — sized to fit the column without wrapping */
.hero__title {
    font-size: clamp(46px, 8vw, 150px);
    line-height: .82;
}

.hero__kicker {
    display: block;
    font-family: var(--sans);
    font-size: clamp(10px, 1.15vw, 22px);
    font-weight: 800;
    letter-spacing: .36em;
    color: var(--chilli);
    margin-top: .35em;
}

.hero__vertical {
    writing-mode: vertical-rl;
    margin-top: 12px;
}

.hero__lead {
    max-width: 36rem;
    font-size: clamp(34px, 3.6vw, 58px);
    line-height: 1.05;
}

.hero__lead .text-chilli {
    display: block;
}

.hero__sub {
    max-width: 28rem;
    color: var(--muted-foreground);
    line-height: 1.65;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
}

/* no overflow:hidden here — the floating cards deliberately hang past the
   left edge, and clipping them cuts off their captions */
.hero__media {
    position: relative;
    min-height: 100vh;
    background: var(--secondary);
}

/* absolutely sized to the column, so it needs no clipping of its own */
.hero__shot {
    position: absolute;
    inset: 0;
}

.hero__badge {
    position: absolute;
    top: 24px;
    left: 24px;
    padding: 6px 12px;
    background: rgba(246, 242, 233, .85);
    backdrop-filter: blur(6px);
}

.hero__float {
    position: absolute;
    z-index: 15;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
}

.hero__float img {
    height: 100%;
}

.hero__float figcaption {
    padding: 7px 13px;
    background: var(--charcoal);
    color: var(--primary-foreground);
    font-size: 11.5px;
}

.figcap--saffron {
    background: var(--saffron) !important;
    color: var(--charcoal) !important;
}

.hero__float--a {
    bottom: 40px;
    left: -64px;
    width: 224px;
    animation: floatSoft 7s ease-in-out infinite;
    animation-delay: -1.5s;
}

.hero__float--a img {
    height: 256px;
}

.hero__float--b {
    top: 96px;
    right: 24px;
    width: 176px;
    animation: floatSoft 7s ease-in-out infinite;
}

.hero__float--b img {
    height: 176px;
}

@keyframes floatSoft {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ==================== TICKER ==================== */
.ticker {
    overflow: hidden;
    border-block: 1px solid var(--border);
    background: var(--saffron);
    color: var(--charcoal);
    padding: 20px 0;
}

.ticker--dark {
    background: var(--charcoal);
    color: var(--primary-foreground);
    border-color: rgba(246, 242, 233, .12);
}

.ticker__track {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: slide var(--dur, 38s) linear infinite;
}

.ticker__track--rev {
    animation-direction: reverse;
}

.ticker__item {
    display: inline-flex;
    align-items: center;
}

.ticker__item .headline {
    padding: 0 24px;
    font-size: clamp(30px, 3.6vw, 60px);
    line-height: 1;
}

.ticker__alt {
    padding: 0 24px;
    font-family: var(--sans);
    font-size: clamp(15px, 1.5vw, 24px);
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.ticker__item i {
    font-style: normal;
    color: var(--chilli);
}

.ticker--dark .ticker__item i {
    color: var(--saffron);
}

@keyframes slide {
    to {
        transform: translateX(-50%);
    }
}

/* ==================== 01 / THE CITY ==================== */
.city {
    padding: clamp(70px, 9vw, 144px) var(--px);
}

.city__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 4vw, 64px);
}

.city__text {
    position: sticky;
    top: 96px;
    align-self: start;
}

.city__title {
    margin-top: 24px;
    font-size: clamp(44px, 6.4vw, 112px);
    line-height: .85;
}

.city__title .text-cocoa {
    display: block;
}

.city__body {
    margin-top: 32px;
    max-width: 28rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.city__stack {
    position: relative;
    height: clamp(520px, 60vw, 760px);
}

.city__fig {
    position: absolute;
}

.city__fig--a {
    top: 0;
    left: 0;
    width: 62%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .12);
}

.city__fig--a img {
    height: clamp(224px, 22vw, 320px);
}

.city__fig--b {
    top: clamp(144px, 16vw, 192px);
    right: 0;
    width: 52%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .3);
}

.city__fig--b img {
    height: clamp(288px, 30vw, 416px);
}

.city__fig--c {
    bottom: 0;
    left: 16px;
    width: 46%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .12);
}

.city__fig--c img {
    height: clamp(176px, 17vw, 224px);
}

/* stacking: locho sits on top, so its caption is never covered */
.city__fig--a {
    z-index: 1;
}

.city__fig--c {
    z-index: 2;
}

.city__fig--b {
    z-index: 3;
}

/* ==================== A DAY ON A PLATE ==================== */
.day {
    position: relative;
    height: 220vh;
    background: var(--charcoal);
}

.day__sticky {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
    background: var(--charcoal);
    color: var(--primary-foreground);
}

.day__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    padding: 0 var(--px) 40px;
}

.day__title {
    font-size: clamp(38px, 5vw, 72px);
}

.day__track {
    display: flex;
    gap: 32px;
    padding: 0 var(--px);
    will-change: transform;
}

.day__card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: 38vw;
}

.day__media {
    position: relative;
    overflow: hidden;
    background: rgba(221, 229, 196, .25);
}

.day__media img {
    height: 46vh;
    transition: transform .7s var(--ease);
}

.day__card:hover .day__media img {
    transform: scale(1.06);
}

.day__stamp {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: var(--background);
    color: var(--foreground);
}

.day__name {
    margin-top: 24px;
    font-size: clamp(28px, 3vw, 48px);
}

.day__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.day__tags .label {
    padding: 7px 13px;
    border: 1px solid rgba(239, 192, 31, .6);
    color: var(--saffron);
    font-size: 11.5px;
}

.day__note {
    margin-top: 16px;
    max-width: 24rem;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(246, 242, 233, .7);
}

/* mobile fallback: swipeable rail */
.day--mobile {
    display: none;
}

/* ==================== 02 / THE FOOD WALL ==================== */
.wall {
    padding: clamp(70px, 9vw, 144px) var(--px);
}

.wall__title {
    margin-top: 40px;
    font-size: clamp(44px, 7.4vw, 112px);
    line-height: .85;
}

.wall__hero {
    margin-top: 32px;
    overflow: hidden;
}

.wall__hero img {
    height: clamp(320px, 55vw, 78vh);
}

/* ---- dish captions: one readable treatment everywhere ---- */
.wall__hero figcaption,
.cell figcaption,
.cell > .label--muted,
.city__fig figcaption,
.quiz__panel figcaption {
    display: block;
    margin-top: 14px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--foreground);
    opacity: .82;
}

.wall__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px;
    margin-top: 80px;
}

.cell--3 {
    grid-column: span 3;
}

.cell--4 {
    grid-column: span 4;
}

.cell--5 {
    grid-column: span 5;
}

.cell--8 {
    grid-column: span 8;
}

.cell img {
    transition: transform .7s var(--ease);
}

.h-sm {
    height: clamp(176px, 18vw, 256px);
}

.h-md {
    height: clamp(208px, 28vw, 416px);
}

.h-lg {
    height: clamp(224px, 26vw, 384px);
}

.h-xl {
    height: clamp(256px, 32vw, 480px);
}

.cell--say {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cell--say p {
    font-size: clamp(26px, 3.2vw, 48px);
    line-height: 1.1;
}

.cell--sayimg {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cell--sayimg p.headline {
    font-size: clamp(26px, 3.2vw, 48px);
    line-height: 1.1;
}

.cell--sayimg figure {
    margin-top: 24px;
    overflow: hidden;
}

/* ==================== 03 / BUILD YOUR PLATE ==================== */
.builder {
    padding: clamp(70px, 9vw, 128px) var(--px);
    background: var(--secondary);
    border-block: 1px solid var(--border);
}

.builder__title {
    margin-top: 24px;
    font-size: clamp(40px, 6vw, 96px);
    line-height: .85;
}

.builder__intro {
    margin-top: 24px;
    max-width: 32rem;
    color: var(--muted-foreground);
}

.builder__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(40px, 4vw, 56px);
    margin-top: 64px;
    align-items: start;
}

.builder__picker {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.group__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.pick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background: var(--background);
    transition: border-color .3s, background .3s, color .3s;
}

.pick img,
.pick .img-fallback {
    width: 44px;
    height: 44px;
    flex: none;
    font-size: 14px;
    padding: 0;
    transition: transform .5s var(--ease);
}

.pick:hover {
    border-color: var(--charcoal);
}

.pick:hover img {
    transform: scale(1.1);
}

.pick.is-on {
    border-color: var(--chilli);
    background: var(--chilli);
    color: #fff;
}

.builder__result {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.plate {
    position: relative;
    width: 100%;
    max-width: 512px;
    margin-inline: auto;
    aspect-ratio: 1;
}

.plate__base {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--background);
    box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .45);
}

.plate__rim {
    position: absolute;
    inset: 7%;
    border-radius: 50%;
    border: 1px dashed rgba(220, 212, 196, .8);
}

.plate__hint {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    text-align: center;
    transition: opacity .3s;
}

.plate__hint.is-hidden {
    opacity: 0;
}

/* width / left / top are set by JS — see layoutFor() */
.plate__item {
    position: absolute;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--background);
    box-shadow: 0 12px 22px -8px rgba(0, 0, 0, .35);
    animation: plateIn .45s var(--ease) both;
}

@keyframes plateIn {
    from {
        opacity: 0;
        transform: scale(.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.builder__summary {
    text-align: center;
}

.builder__list {
    margin: 10px 0 18px;
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1.25;
}

.builder__clear {
    border-bottom: 1px solid var(--border);
    padding-bottom: 3px;
    color: var(--muted-foreground);
    transition: color .3s, border-color .3s;
}

.builder__clear:hover {
    color: var(--chilli);
    border-color: var(--chilli);
}

/* ==================== LOCHO FEATURE ==================== */
.feature {
    position: relative;
    display: grid;
    align-items: end;
    height: clamp(360px, 62vh, 620px);
    overflow: hidden;
}

.feature__bg {
    position: absolute;
    inset: -12% 0;
}

.feature__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(22, 19, 15, .92) 4%, rgba(22, 19, 15, .28) 60%, rgba(22, 19, 15, .5) 100%);
}

.feature__inner {
    position: relative;
    padding: var(--px);
    color: var(--primary-foreground);
}

.feature__title {
    font-size: clamp(56px, 11vw, 180px);
    line-height: .9;
}

.feature__sub {
    margin-top: 12px;
    font-family: var(--serif);
    font-size: clamp(16px, 1.9vw, 28px);
    line-height: 1.2;
    color: rgba(246, 242, 233, .78);
}

/* ==================== 04 / QUIZ ==================== */
.quiz {
    padding: clamp(70px, 9vw, 128px) var(--px);
    background: var(--pista);
}

.quiz__title {
    margin-top: 24px;
    font-size: clamp(38px, 5.6vw, 88px);
    line-height: .9;
    max-width: 16ch;
}

.quiz__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(16px, 2.4vw, 36px);
    margin: 40px 0;
}

.quiz__tab {
    font-size: clamp(28px, 4.2vw, 60px);
    line-height: 1;
    color: rgba(22, 19, 15, .26);
    transition: color .4s;
}

.quiz__tab:hover {
    color: rgba(22, 19, 15, .55);
}

.quiz__tab.is-active {
    color: var(--foreground);
}

.quiz__panel {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.quiz__panel.is-active {
    display: grid;
    animation: fadeUp .6s var(--ease) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.quiz__panel figure img {
    height: clamp(200px, 24vw, 340px);
}


.quiz__verdict {
    grid-column: 1 / -1;
    margin-top: 16px;
    font-size: clamp(20px, 2.4vw, 34px);
    font-style: italic;
}

/* ==================== SWEETNESS ==================== */
.sweet {
    padding: clamp(70px, 9vw, 128px) var(--px);
}

.sweet__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 0;
}

.sweet__card {
    position: relative;
    z-index: 2;
    padding: clamp(28px, 3.4vw, 52px);
    background: var(--background);
    border: 1px solid var(--border);
    margin-right: clamp(-90px, -4.5vw, -24px);
}

.sweet__title {
    margin: 18px 0 16px;
    font-size: clamp(30px, 3.8vw, 56px);
    line-height: 1.02;
}

.sweet__title .text-cocoa {
    display: block;
}

.sweet__copy {
    margin-bottom: 26px;
    max-width: 34ch;
    color: var(--muted-foreground);
    line-height: 1.7;
}

.sweet__img img {
    height: clamp(280px, 36vw, 500px);
}

/* ==================== 05 / KHAWSA (after dark) ==================== */
.night {
    padding: clamp(70px, 9vw, 128px) var(--px);
    background: var(--charcoal);
    color: var(--primary-foreground);
}

.night__grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: clamp(36px, 4vw, 64px);
}

.night__title {
    margin: 20px 0 22px;
    font-size: clamp(48px, 7.4vw, 120px);
    line-height: .95;
    letter-spacing: .01em;
}

.night__body {
    max-width: 30rem;
    color: rgba(246, 242, 233, .62);
    line-height: 1.7;
}

.night__imgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.night__imgs img {
    height: clamp(200px, 25vw, 340px);
}

.night__imgs figure:nth-child(2) {
    margin-top: clamp(24px, 4vw, 56px);
}

/* ==================== 05 / FOOD MEMORIES ==================== */
.memories {
    padding: clamp(70px, 9vw, 128px) var(--px);
}

/* one content column — eyebrow, heading, rows and button share an edge */
.memories .wrap {
    max-width: 920px;
}

.memories__title {
    margin-top: 24px;
    font-size: clamp(38px, 5.6vw, 76px);
    line-height: 1;
}

.memories__sub {
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted-foreground);
}

.memories__list {
    margin-top: clamp(30px, 4vw, 56px);
}

.memory {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 40px);
    padding: clamp(20px, 2.6vw, 36px) 0;
    border-bottom: 1px solid var(--border);
}

/* right-aligned row: quote first, portrait at the far edge */
.memory--end {
    justify-content: flex-end;
    text-align: right;
}

.memory__ava {
    flex: none;
    width: clamp(72px, 9vw, 116px);
    height: clamp(72px, 9vw, 116px);
    border-radius: 50%;
    overflow: hidden;
    background: var(--secondary);
}

.memory__ava img {
    transition: transform .6s var(--ease);
}

.memory:hover .memory__ava img {
    transform: scale(1.1);
}

.memory p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(21px, 3.4vw, 46px);
    line-height: 1.1;
}

.memories__add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: clamp(28px, 3.4vw, 44px);
}

.btn--ghost {
    background: transparent;
    border-color: var(--charcoal);
    color: var(--foreground);
}

.btn--ghost:hover {
    background: var(--charcoal);
    border-color: var(--charcoal);
    color: var(--primary-foreground);
}

.btn__plus {
    font-size: 14px;
    line-height: 1;
    transition: transform .3s var(--ease);
}

.btn--ghost:hover .btn__plus {
    transform: rotate(90deg);
}

.memories__input {
    flex: 1 1 320px;
    max-width: 460px;
    padding: 14px 4px;
    border: 0;
    border-bottom: 1px solid var(--border);
    background: transparent;
    color: var(--foreground);
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(16px, 1.6vw, 22px);
    outline: none;
    transition: border-color .3s;
}

.memories__input::placeholder {
    color: var(--muted-foreground);
    opacity: .6;
}

.memories__input:focus {
    border-color: var(--chilli);
}

/* ==================== 07 / MAP ==================== */
.map {
    padding: clamp(70px, 9vw, 128px) var(--px);
    background: var(--secondary);
    border-block: 1px solid var(--border);
}

.map__grid {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: clamp(36px, 4vw, 64px);
}

.map__title {
    margin: 24px 0 20px;
    font-size: clamp(36px, 4.8vw, 76px);
    line-height: .95;
}

.map__body {
    color: var(--muted-foreground);
    max-width: 32ch;
}

.map__readout {
    margin-top: 24px;
    font-size: clamp(18px, 2.1vw, 30px);
    font-style: italic;
    color: var(--chilli);
    min-height: 1.6em;
}

.map__canvas {
    position: relative;
    aspect-ratio: 500/320;
    background: var(--background);
    border: 1px solid var(--border);
    overflow: hidden;
}

.map__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map__river {
    fill: none;
    stroke: #BCC9D6;
    stroke-width: 10;
    stroke-linecap: round;
    opacity: .6;
}

.map__road {
    fill: none;
    stroke: var(--border);
    stroke-width: 2;
    stroke-dasharray: 6 8;
}

.pin {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--chilli);
    animation: ping 2.4s ease-out infinite;
    transition: background .3s, transform .3s var(--ease);
}

.pin:nth-of-type(2) {
    animation-delay: .4s;
}

.pin:nth-of-type(3) {
    animation-delay: .8s;
}

.pin:nth-of-type(4) {
    animation-delay: 1.2s;
}

.pin:nth-of-type(5) {
    animation-delay: 1.6s;
}

.pin:hover,
.pin.is-on {
    background: var(--charcoal);
    transform: scale(1.3);
}

@keyframes ping {

    0%,
    70%,
    100% {
        box-shadow: 0 0 0 0 rgba(200, 69, 47, .45);
    }

    35% {
        box-shadow: 0 0 0 15px rgba(200, 69, 47, 0);
    }
}

.map__img {
    position: absolute;
    right: 6%;
    bottom: 8%;
    width: 34%;
    height: 46%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .3);
}

/* ==================== FINALE ==================== */
.finale {
    display: grid;
    justify-items: center;
    gap: 32px;
    padding: clamp(80px, 11vw, 160px) var(--px);
    text-align: center;
}

.finale__title {
    max-width: 16ch;
    font-size: clamp(38px, 6vw, 96px);
    line-height: .95;
}

.finale__badge {
    width: clamp(80px, 9vw, 120px);
    height: clamp(80px, 9vw, 120px);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .3);
    animation: floatSoft 6s ease-in-out infinite;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: clamp(56px, 7vw, 96px) var(--px) 26px;
    background: var(--charcoal);
    color: var(--primary-foreground);
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(32px, 4vw, 64px);
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(246, 242, 233, .12);
}

.footer__logo {
    font-size: clamp(36px, 5.4vw, 80px);
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-content: start;
}

.footer__cols h4 {
    margin-bottom: 14px;
}

.footer__cols a {
    display: block;
    font-size: 14px;
    color: rgba(246, 242, 233, .58);
    padding: 5px 0;
    transition: color .3s, padding-left .3s;
}

.footer__cols a:hover {
    color: var(--primary-foreground);
    padding-left: 6px;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding-top: 22px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .nav__links {
        display: none;
    }

    .hero__grid,
    .city__grid,
    .builder__grid,
    .sweet__grid,
    .night__grid,
    .map__grid,
    .footer__top {
        grid-template-columns: 1fr;
    }

    .hero__copy {
        padding-top: 24px;
        padding-bottom: 64px;
    }

    .hero__media {
        min-height: 78vh;
    }

    .hero__float--a {
        left: 16px;
        width: 168px;
    }

    .hero__float--a img {
        height: 200px;
    }

    .hero__float--b {
        width: 136px;
    }

    .hero__float--b img {
        height: 136px;
    }

    .hero__vertical {
        display: none;
    }

    .city__text {
        position: static;
    }

    .sweet__card {
        margin-right: 0;
    }

    /* horizontal scroll → swipe rail */
    .day {
        height: auto;
    }

    .day__sticky {
        position: static;
        height: auto;
        padding: 64px 0;
    }

    .day__head {
        padding-bottom: 32px;
    }

    .day__track {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        transform: none !important;
        padding-bottom: 16px;
        gap: 20px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .day__track::-webkit-scrollbar {
        display: none;
    }

    .day__card {
        width: 84vw;
        scroll-snap-align: center;
    }

    .day__media img {
        height: 42vh;
    }

    .cell--3,
    .cell--4,
    .cell--5,
    .cell--8 {
        grid-column: span 6;
    }

    .wall__grid {
        gap: 20px;
        margin-top: 48px;
    }

    .quiz__panel {
        gap: 20px;
    }
}

@media (max-width: 700px) {
    .hero__titlerow {
        gap: 12px;
    }

    .city__stack {
        height: 520px;
    }

    .cell--3,
    .cell--4,
    .cell--5,
    .cell--8 {
        grid-column: span 12;
    }

    .quiz__panel {
        grid-template-columns: 1fr;
    }

    .night__imgs {
        gap: 14px;
    }

    .footer__cols {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .memory,
    .memory--end {
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
        gap: 16px;
    }

    .memory--end {
        flex-direction: row-reverse;
    }
}
