/* Melted Zoon — site styles (round 3).
   The page is built as the kit's own menu board: a cream top band with the logo, the kit melt
   hanging from it, a teal field below, and cream menu cards on the field.
   Every colour, radius and border is a token from the brand kit (brand-src/project/tokens.json).
   No gradients, no shadows, no new colours. Fredoka for a few large headings only; Nunito for the rest. */

/* ---------- Fonts (self-hosted, SIL OFL: see /licences/) ---------- */
@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/fredoka-latin-700-normal.ee61b48a.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-800-normal.2363d3ed.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/nunito-latin-700-normal.fa89300b.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2122, U+2212;
}
/* The rupee sign only (U+20B9), cut from Nunito's latin-ext file so ₹ matches the text face.
   Fredoka has no ₹, so display-size prices fall back to this Nunito glyph. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/nunito-rupee-800-normal.73598691.woff2) format("woff2");
  unicode-range: U+20B9;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/nunito-rupee-700-normal.aa113eb0.woff2) format("woff2");
  unicode-range: U+20B9;
}

/* ---------- Tokens ---------- */
:root {
  --teal-500: #7bcccd;   /* brand ground */
  --teal-700: #2c6e70;   /* secondary ink on cream/white */
  --teal-900: #1f4f51;   /* deep ink */
  --cream-200: #fff4e6;  /* surface */
  --coral-600: #d4625c;  /* display only, 24px+ bold */
  --coral-500: #eb8783;  /* logo + bullet dots only, never text */
  --coral-700: #b23e39;  /* coral text under 24px */
  --caramel-500: #c79a5b;/* card and pill frames */
  --cocoa-900: #3b2a26;  /* body ink on cream */

  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  /* Type: one modular scale (ratio ≈ 1.25, body 18px), fluid between phone and desktop.
     Fredoka only for H1, H2 and the Highlight; everything else is Nunito. */
  --step-small: 1rem;                                        /* 16  labels, nav, footer */
  --step-body: 1.125rem;                                     /* 18  body */
  --step-lead: clamp(1.25rem, 0.35vw + 1.15rem, 1.375rem);   /* 20–22  lead lines, card values */
  --step-h2: clamp(1.625rem, 1vw + 1.3rem, 2.25rem);         /* 26–36  section and card headings */
  --step-h1: clamp(2.25rem, 2.5vw + 1.6rem, 3.5rem);         /* 36–56  page titles */
  --step-figure: clamp(2.5rem, 2vw + 2rem, 3.5rem);          /* 40–56  the ₹30 figure (Nunito) */
  /* "Opening soon" on Home: always narrower than the logo (measured: see the round-4 report) */
  --step-highlight: clamp(1.75rem, 1.6vw + 1.25rem, 2.75rem);/* 28–44 */
  --step-highlight-small: clamp(1.25rem, 0.5vw + 1.1rem, 1.5rem); /* 20–24  "Coming soon" under an H1 */

  /* Spacing: one scale for every gap */
  --space-1: 0.5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: 4rem; --space-6: 6rem;

  /* Barfi: one size and one offset on every page */
  --barfi-w: 7rem;
  --barfi-h: calc(var(--barfi-w) * 544 / 768);

  --radius-card: 40px;
  --radius-note: 20px;
  --radius-pill: 9999px;
  --border-card: 6px;

  --margin: clamp(1.25rem, 4vw, 4rem);
  --gap: clamp(1.75rem, 4vw, 4.5rem);

  /* Melt edge: one copy of the kit melt is 1920×265; the tile is that copy + a mirrored copy. */
  --melt-h: 6.25rem;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* ---------- Colour roles, light theme (default). Every value is a kit token. ----------
     The cream top band (logo, navigation, theme button) and the melt stay the same in both themes.
     Contrast for every pair: CONTRAST.md. */
  color-scheme: light;
  --c-ground: var(--teal-500);          /* the field below the melt */
  --c-ink: var(--teal-900);             /* text on the field (4.95:1) */
  --c-heading: var(--teal-900);         /* Fredoka headings on the field */
  --c-surface: var(--cream-200);        /* menu cards */
  --c-surface-ink: var(--cocoa-900);    /* text on cards (12.51:1) */
  --c-surface-ink-2: var(--teal-700);   /* labels, prices on cards (5.41:1) */
  --c-surface-heading: var(--coral-600);/* card headings, ₹ figure: 24px+ bold only (3.39:1) */
  --c-surface-accent: var(--coral-700); /* Barfi's line on the menu card (5.31:1) */
  --c-highlight-bg: var(--coral-600);   /* Highlight block */
  --c-highlight-ink: var(--cream-200);  /* display size only (3.39:1) */
  --c-button-bg: var(--teal-900);
  --c-button-ink: var(--cream-200);
  --c-focus: var(--teal-900);
  --c-pin: var(--coral-700);            /* map-pin icon on the field (3.12:1) */
  --c-footer-bg: var(--teal-900);
  --c-footer-ink: var(--cream-200);
  --c-footer-ink-2: var(--teal-500);
  /* Top band: cream with the kit lockup, the melt hanging below it */
  --c-board-bg: var(--cream-200);
  --c-board-ink: var(--teal-900);       /* nav, theme button (8.42:1) */
  --c-board-current: var(--coral-700);  /* current page (5.31:1) */
  --logo-oneline: url(/assets/img/mz-wordmark-oneline.6dc96dbc.svg);
  --melt-top: calc(100% - 1px);         /* melt hangs from the bottom of the band */
  --board-melt-clear: 0px;
  --field-melt-clear: calc(var(--melt-h) * 0.8);
  --drop-visibility: visible;
}

/* ---------- Colour roles, dark theme ----------
   Used when the visitor's system asks for dark (and they haven't picked light with the button),
   or when they pick dark with the button. build.mjs copies this block into the
   prefers-color-scheme media query, so it is written only once. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --c-ground: var(--teal-900);
  --c-ink: var(--cream-200);            /* 8.42:1 */
  --c-heading: var(--cream-200);
  --c-surface: var(--cocoa-900);        /* chocolate cards */
  --c-surface-ink: var(--cream-100);    /* 13.19:1 */
  --c-surface-ink-2: var(--teal-500);   /* 7.35:1 */
  --c-surface-heading: var(--cream-100);/* 13.19:1 — dark-mode text is cream or teal only */
  --c-surface-accent: var(--teal-500);  /* Barfi's line (7.35:1) */
  --c-highlight-bg: var(--coral-600);
  --c-highlight-ink: var(--cream-200);
  --c-button-bg: var(--cream-200);
  --c-button-ink: var(--teal-900);
  --c-focus: var(--cream-200);
  --c-pin: var(--coral-500);            /* icon only, never text (3.63:1) */
  --c-footer-bg: var(--cocoa-900);
  --c-footer-ink: var(--cream-200);
  --c-footer-ink-2: var(--teal-500);
  /* Top band (Roshan, 25 Oct 2026): teal-900 ground, the cream melt along the very top, and the
     dark-ground copy of the lockup below it (coral face unchanged; shadow and subtext cream). */
  --c-board-bg: var(--teal-900);
  --c-board-ink: var(--cream-200);      /* 8.42:1 */
  --c-board-current: var(--teal-500);   /* 4.95:1 */
  --logo-oneline: url(/assets/img/mz-wordmark-oneline-dark.0524d242.svg);
  --melt-top: 0px;
  --board-melt-clear: calc(var(--melt-h) * 0.8 + 0.75rem); /* clear teal gap above the logo */
  --field-melt-clear: 1.25rem;
  --drop-visibility: hidden;            /* the drop's path would cross the navigation here */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  color-scheme: dark;
  --c-ground: var(--teal-900);
  --c-ink: var(--cream-200);            /* 8.42:1 */
  --c-heading: var(--cream-200);
  --c-surface: var(--cocoa-900);        /* chocolate cards */
  --c-surface-ink: var(--cream-100);    /* 13.19:1 */
  --c-surface-ink-2: var(--teal-500);   /* 7.35:1 */
  --c-surface-heading: var(--cream-100);/* 13.19:1 — dark-mode text is cream or teal only */
  --c-surface-accent: var(--teal-500);  /* Barfi's line (7.35:1) */
  --c-highlight-bg: var(--coral-600);
  --c-highlight-ink: var(--cream-200);
  --c-button-bg: var(--cream-200);
  --c-button-ink: var(--teal-900);
  --c-focus: var(--cream-200);
  --c-pin: var(--coral-500);            /* icon only, never text (3.63:1) */
  --c-footer-bg: var(--cocoa-900);
  --c-footer-ink: var(--cream-200);
  --c-footer-ink-2: var(--teal-500);
  /* Top band (Roshan, 25 Oct 2026): teal-900 ground, the cream melt along the very top, and the
     dark-ground copy of the lockup below it (coral face unchanged; shadow and subtext cream). */
  --c-board-bg: var(--teal-900);
  --c-board-ink: var(--cream-200);      /* 8.42:1 */
  --c-board-current: var(--teal-500);   /* 4.95:1 */
  --logo-oneline: url(/assets/img/mz-wordmark-oneline-dark.0524d242.svg);
  --melt-top: 0px;
  --board-melt-clear: calc(var(--melt-h) * 0.8 + 0.75rem); /* clear teal gap above the logo */
  --field-melt-clear: 1.25rem;
  --drop-visibility: hidden;            /* the drop's path would cross the navigation here */
}
}


/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* The page background below the footer is the footer colour, so a short page never shows a
   stretched teal band: the footer simply continues to the bottom of the window. */
html { background: var(--c-footer-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-ground);
  color: var(--c-ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-body);
  line-height: 1.55;
  overflow-x: hidden;
  /* Short pages: the teal field grows and its content sits centred, so the footer keeps
     its natural height instead of filling the bottom of tall screens. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
.board :focus-visible { outline-color: var(--c-board-ink); }
.footer :focus-visible { outline-color: var(--c-footer-ink); }
::selection { background: var(--teal-900); color: var(--cream-200); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--margin); top: 0.75rem; z-index: 10;
  padding: 0.6rem 1.1rem; border-radius: var(--radius-pill);
  background: var(--teal-900); color: var(--cream-200); font-weight: 800; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--margin); }

/* ---------- Header: identical on every page at each width ----------
   Phone: logo and the theme button on the first row, the four links evenly spaced on the second.
   Tablet and desktop: logo, links and button on one row. The melt hangs below (light) or sits along
   the top (dark). */
.board { position: relative; z-index: 2; background: var(--c-board-bg); }
.board__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo toggle" "nav nav";
  align-items: center;
  column-gap: var(--space-2); row-gap: 0.25rem;
  padding-block: calc(var(--board-melt-clear) + var(--space-2)) 0;
  position: relative; z-index: 1;
}
.board__logo { grid-area: logo; display: block; width: min(100%, 21rem); border-radius: var(--radius-note); }
.board__logo-art {
  display: block; width: 100%; aspect-ratio: 1803 / 494;
  background: var(--logo-oneline) center / contain no-repeat;
  forced-color-adjust: none; /* keep the artwork visible in Windows high-contrast mode */
}
.nav { grid-area: nav; }
.nav__list { display: flex; justify-content: space-between; max-width: 24rem; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.15rem;
  font-weight: 800; font-size: var(--step-small); letter-spacing: 0.01em;
  color: var(--c-board-ink); text-decoration: none;
  text-underline-offset: 0.4em; text-decoration-thickness: 3px;
}
.nav__link:hover { text-decoration: underline; text-decoration-color: var(--caramel-500); }
.nav__link[aria-current="page"] { color: var(--c-board-current); text-decoration: underline; text-decoration-color: var(--c-board-current); }

.melt {
  position: absolute; left: 0; right: 0; top: var(--melt-top);
  height: var(--melt-h);
  background: url(/assets/img/mz-melt-edge-tile.4464db9e.svg) 0 0 / auto 100% repeat-x;
  pointer-events: none;
}

/* Theme button: a compact 44×44 icon button; only shown when JavaScript runs (without it the
   page follows the system setting). */
.theme-toggle { display: none; }
.js .theme-toggle {
  grid-area: toggle;
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--c-board-ink); border-radius: 50%;
  background: transparent; color: var(--c-board-ink);
  cursor: pointer;
}
.js .theme-toggle[aria-pressed="true"] { background: var(--c-board-ink); color: var(--c-board-bg); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

/* ---------- The teal field ---------- */
.board-field {
  /* clear the melt (its deepest drip is ~77% of its height) before any content */
  padding-block: calc(var(--field-melt-clear) + var(--space-4)) var(--space-5);
}

/* Shared type */
.highlight {
  display: inline-block;
  background: var(--c-highlight-bg);
  color: var(--c-highlight-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-highlight);
  line-height: 1.05;
  letter-spacing: -0.01em;
  padding: 0.1em 0.4em 0.16em;
  border-radius: var(--radius-note);
}
.page-title, .section-heading {
  font-family: var(--font-display); font-weight: 700; color: var(--c-heading);
  line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance;
}
.page-title { font-size: var(--step-h1); }
.section-heading { font-size: var(--step-h2); }
.lead { font-weight: 800; font-size: var(--step-lead); line-height: 1.35; color: var(--c-ink); max-width: 30ch; text-wrap: balance; }
.text-link {
  color: var(--c-ink); font-weight: 800;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.22em;
  text-decoration-color: currentColor;
}
.text-link:hover { text-decoration-thickness: 4px; }

/* One button shape: the pill. Solid, or outlined on the field. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.5rem;
  border: 3px solid var(--c-button-bg); border-radius: var(--radius-pill);
  background: var(--c-button-bg); color: var(--c-button-ink);
  font-weight: 800; font-size: var(--step-small); letter-spacing: 0.01em; text-decoration: none;
  transition: transform .3s var(--ease-out), background-color .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button--quiet { background: transparent; color: var(--c-button-bg); }
.button--quiet:hover { background: var(--c-button-bg); color: var(--c-button-ink); }

/* Menu card on the field (kit MenuCard: caramel frame, coral heading) */
.card {
  position: relative;
  background: var(--c-surface);
  color: var(--c-surface-ink);
  border: var(--border-card) solid var(--caramel-500);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 2.6vw, 2.5rem);
}
.card__heading {
  font-family: var(--font-display); font-weight: 700; color: var(--c-surface-heading);
  font-size: var(--step-h2); line-height: 1.1; letter-spacing: -0.01em;
  text-wrap: balance; max-width: 14ch;
}
.card__heading--quiet {
  font-family: var(--font-body); font-weight: 800; font-size: var(--step-lead);
  color: var(--c-surface-ink-2); letter-spacing: 0;
}

/* Barfi: one size, one offset, sitting on the top edge of a card, clear of its rounded corner */
.barfi { width: var(--barfi-w); }
.barfi img { width: 100%; }
.card > .barfi { position: absolute; right: calc(var(--radius-card) + 0.25rem); bottom: calc(100% - 3px); }
/* every card that carries Barfi leaves room above it for him */
.card:has(> .barfi) { margin-top: calc(var(--barfi-h) - 3px); }

/* ---------- Two-column pages: Home, Menu, Gallery, 404 ---------- */
.home, .soon { display: grid; row-gap: var(--space-5); }
.home__hero, .soon__intro { display: grid; justify-items: start; align-content: start; gap: var(--space-3); }
.home__title { font-weight: inherit; }
.location { display: flex; align-items: center; gap: 0.55rem; font-size: var(--step-body); }
.location__pin { flex: none; fill: var(--c-pin); width: 0.95rem; height: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--space-1); }

.offer { display: grid; gap: var(--space-3); }
.offer__text { display: grid; gap: 0.2rem; }
.offer__lead, .offer__rest { font-weight: 800; font-size: var(--step-lead); line-height: 1.3; color: var(--c-surface-ink); }
.offer__figure {
  font-family: var(--font-body); font-weight: 800; color: var(--c-surface-heading);
  font-size: var(--step-figure); line-height: 1.05; letter-spacing: -0.01em;
}
.offer__after { margin-top: var(--space-1); font-weight: 800; font-size: var(--step-body); color: var(--c-surface-ink-2); }

.soon__title {
  display: grid; justify-items: start; gap: var(--space-2);
  font-family: var(--font-display); font-weight: 700; color: var(--c-heading);
  font-size: var(--step-h1); line-height: 1.05; letter-spacing: -0.01em;
}
.soon__title .highlight { font-size: var(--step-highlight-small); }
.soon__note { font-size: var(--step-body); max-width: 40ch; }

.sheet { display: grid; gap: var(--space-3); }
.tiers { display: grid; gap: 0.75rem; }
.tier { display: grid; grid-template-columns: auto 1fr; column-gap: 0.85rem; align-items: baseline; }
.tier::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--coral-500); align-self: center; /* decorative bullet (kit MenuItem) */
}
.tier__name { font-weight: 800; font-size: var(--step-lead); line-height: 1.3; color: var(--c-surface-ink); }
.tier__note { grid-column: 2; font-weight: 800; font-size: var(--step-small); color: var(--c-surface-ink-2); text-wrap: balance; }
.sheet__barfi { font-weight: 800; font-size: max(1.5rem, var(--step-lead)); line-height: 1.3; text-wrap: balance; color: var(--c-surface-accent); }

.follow { display: grid; gap: var(--space-2); justify-items: start; }
.follow__text { font-size: var(--step-body); color: var(--c-surface-ink); }
.pages-card { display: grid; gap: var(--space-2); }
.pages-card__label { font-weight: 800; font-size: var(--step-body); color: var(--c-surface-ink); }
.page-links { display: grid; gap: 0.1rem; }
.page-links a {
  display: inline-flex; min-height: 44px; align-items: center;
  font-weight: 800; font-size: var(--step-lead); line-height: 1.2;
  color: var(--c-surface-ink); text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 0.2em; text-decoration-color: var(--caramel-500);
}
.page-links a:hover { text-decoration-color: currentColor; }

/* ---------- Contact ---------- */
.contact { display: grid; row-gap: var(--space-5); }
.contact__links { display: grid; gap: var(--space-3); align-content: start; }
.rows { display: grid; gap: var(--space-3); }
.row { display: grid; gap: 0.1rem; }
.row__label { font-weight: 800; font-size: var(--step-small); color: var(--c-surface-ink-2); }
.row__value { font-weight: 800; font-size: var(--step-lead); line-height: 1.3; overflow-wrap: anywhere; }
.row__value a {
  color: var(--c-surface-ink); text-decoration: underline; text-decoration-thickness: 3px;
  text-underline-offset: 0.2em; text-decoration-color: var(--caramel-500);
}
.row__value a:hover { text-decoration-color: currentColor; }
.visit { display: grid; gap: var(--space-3); align-content: start; }
.visit__body { display: grid; gap: var(--space-1); justify-items: start; }
.visit__area { font-weight: 800; font-size: var(--step-lead); line-height: 1.3; }
.visit__note { font-size: var(--step-body); }
.visit .button { margin-top: var(--space-2); }

/* ---------- Footer: label and value in two tidy columns ---------- */
.footer { background: var(--c-footer-bg); color: var(--c-footer-ink); }
.footer__inner { display: grid; gap: var(--space-3); padding-block: var(--space-4); }
.footer__links { display: grid; gap: 0; }
.footer__links a {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: baseline;
  min-height: 44px; padding-block: 0.55rem;
  color: var(--c-footer-ink); font-weight: 800; text-decoration: none; overflow-wrap: anywhere;
}
.footer__links a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
.footer__label { color: var(--c-footer-ink-2); font-size: var(--step-small); }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 2rem; font-size: var(--step-small); }

/* ---------- Two columns from 720px: no empty halves on tablets ---------- */
@media (min-width: 45em) {
  .home, .soon {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: var(--gap);
    align-items: center;
  }
  /* the two headings share a baseline; each heads its own content */
  .contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); column-gap: var(--gap); align-items: baseline; }
  .footer__links { display: flex; flex-wrap: wrap; column-gap: var(--space-4); }
  .footer__links a { display: inline-flex; gap: 0.5rem; }
}

/* ---------- Tablet: header on one row ---------- */
@media (min-width: 48em) {
  :root { --melt-h: 7.25rem; }
  .board__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo nav toggle";
    column-gap: var(--space-3);
  }
  .board__logo { width: 18.5rem; }
  .nav__list { justify-content: flex-end; max-width: none; column-gap: 1.25rem; }
}

/* ---------- Desktop ---------- */
@media (min-width: 64em) {
  :root { --melt-h: 8rem; }
  .board__logo { width: 22.5rem; }
  .nav__list { column-gap: 2rem; }
  .board__inner { column-gap: var(--space-4); }
  .home, .soon { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* wide card: each label sits beside its value, on one baseline */
  .row { grid-template-columns: 7rem minmax(0, 1fr); column-gap: var(--space-3); align-items: baseline; }
}

/* ---------- Load sequence (CSS only; every animation runs once and is over by about 4 s) ----------
   0.0–2.2 s   the melt oozes down from the cream band and settles
   (logo)      the wordmark is static and visible from the first frame: it never animates
   0.35–1.35 s "Opening soon" / "Coming soon" pours in from the top and settles
   1.3–2.4 s   Barfi bounces in
   0.55–1.9 s  the words and the cream card settle in, in reading order
   2.3–3.9 s   home only: one kit drop forms on a drip at the right, falls a little and fades
   Reduced motion: none of this runs; everything is in its final state and the drop never shows.
   Only transform, opacity and clip-path change, so nothing shifts the layout. Fill mode is
   "backwards": before each start the first frame holds; after the end the element is simply its
   normal, static self, exactly as with reduced motion. */

.melt-drop { display: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Melt: pinned to the cream band while its drips lengthen downwards (a vertical stretch from the
     top edge), sag a touch past their resting length and settle. Same kit artwork; the stretch is
     uniform across the width so the joins stay invisible. */
  .melt { animation: melt-ooze 2.2s cubic-bezier(.33, 0, .2, 1) backwards; transform-origin: 50% 0; }
  @keyframes melt-ooze {
    0%   { transform: scaleY(.55); }
    72%  { transform: scaleY(1.04); }
    100% { transform: none; }
  }

  .highlight { animation: pour-in 1s var(--ease-out) .35s backwards; transform-origin: 50% 0; }
  @keyframes pour-in {
    0%   { clip-path: inset(0 0 100% 0 round var(--radius-note)); transform: scaleY(1.06); }
    60%  { clip-path: inset(0 0 0 0 round var(--radius-note)); transform: scaleY(.97); }
    82%  { transform: scaleY(1.015); }
    100% { clip-path: inset(0 0 0 0 round var(--radius-note)); transform: none; }
  }

  /* The drop: the kit's falling-drop shape on the tip of one drip at the right-hand side
     (x, y in the kit file's units, scaled by the melt's height). */
  .melt-drop {
    position: absolute; top: calc(100% - 1px); left: 0; z-index: 1;
    width: calc(var(--melt-h) * 31.51 / 265);
    height: calc(var(--melt-h) * 51.98 / 265);
    background: url(/assets/img/mz-melt-drop.ade604e6.svg) 0 0 / 100% 100% no-repeat;
    transform-origin: 50% 0;
    opacity: 0;
    visibility: var(--drop-visibility);
    pointer-events: none;
    animation: drop-fall 1.6s cubic-bezier(.55, 0, .75, .4) 2.3s; /* hidden (opacity 0) before and after */
  }
  @keyframes drop-fall {
    0%   { opacity: 1; transform: translate(var(--drop-x), var(--drop-y)) scale(.2, .1); }
    35%  { opacity: 1; transform: translate(var(--drop-x), var(--drop-y)) scale(1); }
    85%  { opacity: 1; transform: translate(var(--drop-x), calc(var(--drop-y) + var(--drop-fall))) scale(1); }
    100% { opacity: 0; transform: translate(var(--drop-x), calc(var(--drop-y) + var(--drop-fall) + 6px)) scale(1); }
  }
  /* Where the drop falls: only at widths where a drip at the right-hand side has a clear path
     (checked against Barfi and every piece of text by measurement in the browser). Elsewhere: no drop.
     Kit drip tips (x, y): 1122.5, 204.7 in the first copy; mirrored copy at 3840 − x. */
  .melt-drop { --drop-fall: 2.5rem; }
  @media (min-width: 20em) and (max-width: 26.25em) {
    .melt-drop { display: block; --drop-x: calc(var(--melt-h) * (669.6 - 15.75) / 265); --drop-y: calc(var(--melt-h) * 168 / 265); }
  }
  @media (min-width: 29em) and (max-width: 43.75em) {
    .melt-drop { display: block; --drop-x: calc(var(--melt-h) * (1122.5 - 15.75) / 265); --drop-y: calc(var(--melt-h) * 196 / 265); }
  }
  @media (min-width: 84em) and (max-width: 86.25em) {
    .melt-drop { display: block; --drop-x: calc(var(--melt-h) * (2717.5 - 15.75) / 265); --drop-y: calc(var(--melt-h) * 196 / 265); }
  }
  @media (min-width: 97.5em) and (max-width: 112.5em) {
    .melt-drop { display: block; --drop-x: calc(var(--melt-h) * (3170.4 - 15.75) / 265); --drop-y: calc(var(--melt-h) * 168 / 265); }
  }
  @media (min-width: 116.5em) and (max-width: 162.5em) {
    .melt-drop { display: block; --drop-x: calc(var(--melt-h) * (3787.02 - 15.75) / 265); --drop-y: calc(var(--melt-h) * 130 / 265); }
  }

  .barfi img { animation: barfi-in 1.1s var(--ease-out) 1.3s backwards; transform-origin: 50% 100%; }
  @keyframes barfi-in {
    0%   { opacity: 0; transform: translateY(24px) scale(.96, .94); }
    45%  { opacity: 1; transform: translateY(-6px) scale(.99, 1.02); }
    70%  { transform: translateY(2px) scale(1.01, .99); }
    100% { opacity: 1; transform: none; }
  }
}

/* Contact: small Google map card (5 Nov 2026) */
.map-card {
  margin: var(--space-2) 0 0;
  width: 100%;
  max-width: 26rem;
  aspect-ratio: 4 / 3;
  border: var(--border-card, 6px) solid var(--caramel-500);
  border-radius: var(--radius-card, 40px);
  overflow: hidden;
  background: var(--cream-200);
}
.map-card__frame { display: block; width: 100%; height: 100%; border: 0; }
@media (min-width: 64em) { .visit .map-card { max-width: 32rem; } }
