/* ============================================================================
   ADVANTAGE FOODS — PAGE SECTIONS
   ----------------------------------------------------------------------------
   Reusable section blocks shared across pages. Brand pages all use the same
   .brand-hero / .dish-grid / .gallery / .cta-band template, so a new brand
   page is just content swapped into this structure.
   ========================================================================== */

/* ================================================================ HERO === */
.hero { position: relative; min-height: clamp(620px, 92vh, 1000px); display: flex; align-items: center; padding-top: 9rem; padding-bottom: 5rem; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__glow .glow { width: 70vw; height: 70vw; top: -25vw; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, var(--glow-core), transparent 65%); opacity: 0.8; }
.hero__inner { position: relative; z-index: 1; max-width: 60rem; }
.hero h1 { margin: 1.4rem 0 0; }
/* the italic serif word ("just") has a long descender; give the clipped reveal
   line a little room so it isn't cut off at the bottom */
.hero h1 .line { padding-bottom: 0.12em; }
.hero .lead { margin-top: 1.6rem; max-width: 48ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.scroll-cue { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--faint); font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase; }
.scroll-cue .bar { width: 1px; height: 46px; background: linear-gradient(var(--blue-200), transparent); position: relative; overflow: hidden; }
.scroll-cue .bar::after { content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--blue-150); animation: cue 2s var(--ease-in-out) infinite; }
@keyframes cue { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* page hero (smaller, for inner pages) */
/* Inner-page hero: no tall centred box (which left the content floating), but a
   comfortable middle amount of breathing room above and below — sits below the
   header with air, then eases into the section. */
.hero--page { min-height: auto; padding-top: clamp(8rem, 6.5rem + 4.5vw, 10.5rem); padding-bottom: clamp(3.5rem, 2.5rem + 3.5vw, 6rem); }
.hero--page .lead { max-width: 56ch; }

/* home hero: ONE full viewport cinematic photo (edge to edge, full height).
   The section is full width (no .wrap) so nothing clips the image; the text is
   re-constrained to the site column via .hero__inner. Dark and rich, dissolving
   into the page at the base so it reads as one big neat image. */
.hero--home { min-height: 100vh; overflow: hidden; }
.hero--home .hero__inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.hero--home .lead { font-size: clamp(1rem, 0.94rem + 0.4vw, 1.2rem); max-width: 46ch; }
.hero--home .hero__glow { z-index: 1; }
.hero--home .scroll-cue { z-index: 2; }
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 58%;
  filter: grayscale(0.5) brightness(0.6) contrast(1.04); }
.hero__media::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(3,7,15,0.42) 0%, transparent 26%, rgba(3,7,15,0.30) 62%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(8,18,38,0.30) 36%, transparent 64%),
    radial-gradient(120% 95% at 50% -12%, transparent 50%, rgba(3,7,15,0.4) 100%); }
@media (max-width: 640px) { .hero__media img { object-position: center 55%; } }

/* ============================================================ MARQUEE ==== */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.6rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; gap: 0; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); font-weight: 340; color: var(--faint); letter-spacing: -0.01em; }
.marquee span em { color: var(--blue-200); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================== STATS ==== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--panel); padding: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.8rem, 1.9rem + 3.4vw, 4.4rem); font-weight: 520; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
/* only the label span — NOT the nested counter span inside <b> */
.stat > span { display: block; margin-top: 0.7rem; font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.02rem); line-height: 1.4; font-weight: 480; color: var(--ink-dim); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* =========================================================== PORTFOLIO === */
.vert-group { margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.vert-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--line); }
.vert-head h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-200); }
.vert-head .count { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); margin-left: auto; }

.brand-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
.brand-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) {
  .brand-grid, .brand-grid--3 { grid-template-columns: 1fr; }
  .brand-card { min-height: 0; }            /* stacked cards hug their content */
}
@media (max-width: 560px) { .scroll-cue { display: none; } } /* clears the wrapped hero buttons */

.brand-card { position: relative; display: flex; flex-direction: column; min-height: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2rem); overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-out), border-color var(--dur-slow), background var(--dur-slow); }
.brand-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(480px circle at var(--mx,80%) var(--my,0%), var(--glow-soft), transparent 60%); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.brand-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.brand-card:hover::before { opacity: 1; }
.brand-card__idx { font-family: var(--font-mono); font-size: 0.7rem; color: var(--faint); letter-spacing: 0.1em; position: relative; z-index: 1; }
.brand-card__name { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 360; letter-spacing: -0.02em; margin-top: auto; position: relative; z-index: 1; }
.brand-card__tag { color: var(--mut); font-size: 0.92rem; margin-top: 0.4rem; position: relative; z-index: 1; }
.brand-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; position: relative; z-index: 1; }
.brand-card__foot .label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-150); }
.brand-card__arrow { color: var(--blue-200); transition: transform var(--dur-base) var(--ease-out); }
.brand-card:hover .brand-card__arrow { transform: translateX(5px); }

/* large feature brand card (spans 2 cols, has image) */
.brand-card--feature { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 0; padding: 0; min-height: 320px; }
.brand-card--feature .bc-media { flex: 1.1; position: relative; overflow: hidden; }
.brand-card--feature .bc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-card--feature .bc-body { flex: 1; padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); display: flex; flex-direction: column; }
@media (max-width: 880px) { .brand-card--feature { grid-column: 1; flex-direction: column; } .brand-card--feature .bc-media { min-height: 220px; } }

/* Editorial brand list — used for Casual Dining + Cloud Kitchen so the portfolio
   is not wall-to-wall cards. Big serif names in hairline-ruled rows that light
   up and slide on hover. */
.brand-list { display: flex; flex-direction: column; }
.brand-row { position: relative; display: flex; align-items: baseline; gap: clamp(0.85rem, 0.6rem + 0.8vw, 1.35rem);
  padding: clamp(0.9rem, 0.72rem + 0.7vw, 1.3rem) clamp(0.5rem, 0.3rem + 0.7vw, 1.1rem); border-top: 1px solid var(--line); overflow: hidden;
  transition: background var(--dur-slow) var(--ease-out); }
.brand-list .brand-row:last-child { border-bottom: 1px solid var(--line); }
.brand-row::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--glow-soft) 0%, transparent 55%); transition: opacity var(--dur-slow) var(--ease-out); }
.brand-row > * { position: relative; z-index: 1; }
.brand-row__idx { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--faint); }
/* refined, not shouty: a mid-size serif name grouped with its cuisine label,
   the arrow pushed to the far edge */
.brand-row__name { font-family: var(--font-display); font-weight: 360; font-size: clamp(1.12rem, 0.95rem + 0.8vw, 1.55rem); letter-spacing: -0.01em; color: var(--ink); transition: transform var(--dur-base) var(--ease-out); }
.brand-row__tag { margin-right: auto; align-self: center; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-200); white-space: nowrap; }
.brand-row__arrow { align-self: center; color: var(--blue-200); font-size: 1rem; transition: transform var(--dur-base) var(--ease-out); }
.brand-row:hover { background: var(--glass); }
.brand-row:hover::before { opacity: 1; }
.brand-row:hover .brand-row__name { transform: translateX(0.5rem); }
.brand-row:hover .brand-row__arrow { transform: translateX(0.4rem); }
@media (max-width: 560px) { .brand-row__tag { display: none; } }

/* --- Brand tiles: compact cinematic image cards for the multi brand rows -- */
/* Casual Dining sits as two rows of three (5 brands + a "coming soon" tile);
   snaps to two, then one on smaller screens. */
.brand-tiles { display: grid; gap: 0.9rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .brand-tiles:not(.brand-tiles--pair) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .brand-tiles:not(.brand-tiles--pair) { grid-template-columns: 1fr; } }
/* Cloud Kitchen has two brands — two wide tiles that fill the row instead of
   sitting small and stranded. */
.brand-tiles--pair { grid-template-columns: repeat(2, 1fr); }
.brand-tiles--pair .brand-tile { aspect-ratio: 3 / 2; }
@media (max-width: 520px) { .brand-tiles--pair { grid-template-columns: 1fr; } }

/* "More coming soon" tile — a designed reserved slot, not an empty placeholder */
.brand-tile.brand-tile--soon { display: grid; place-items: center; text-align: center; padding: 1.5rem; cursor: default;
  border-color: var(--line-strong);
  background:
    radial-gradient(120% 85% at 50% 0%, var(--glow-soft, rgba(50,119,189,0.16)), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.14)); }
.brand-tile.brand-tile--soon::after { display: none; }
.brand-tile.brand-tile--soon:hover { transform: none; border-color: var(--line-strong); }
.brand-tile__soon { display: flex; flex-direction: column; align-items: center; }
.brand-tile__plus { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: 0.9rem;
  border: 1px solid var(--line-strong); border-radius: 50%; color: var(--blue-200);
  font-family: var(--font-mono); font-size: 1.3rem; line-height: 1; }
.brand-tile__soon-eyebrow { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blue-200); margin-bottom: 0.5rem; }
.brand-tile__soon-title { font-family: var(--font-display); font-weight: 360; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); letter-spacing: -0.01em; line-height: 1.1; color: var(--ink); }

.brand-tile { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
.brand-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out); }
.brand-tile::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(8,12,22,0.95) 2%, rgba(8,12,22,0.6) 30%, rgba(8,12,22,0.1) 56%, transparent 78%); }
.brand-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.brand-tile:hover img { transform: scale(1.05); }
.brand-tile:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 3px; }

.brand-tile__body { position: absolute; z-index: 2; display: flex; flex-direction: column;
  left: clamp(0.8rem, 0.6rem + 0.6vw, 1.1rem); right: clamp(0.8rem, 0.6rem + 0.6vw, 1.1rem); bottom: clamp(0.8rem, 0.6rem + 0.6vw, 1.05rem); }
.brand-tile__idx { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); margin-bottom: 0.3rem; }
.brand-tile__name { font-family: var(--font-display); font-weight: 360; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.05; color: #fff; text-wrap: balance; }
.brand-tiles--pair .brand-tile__name { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.brand-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.brand-tile__cuisine { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue-200); }
.brand-tile__arrow { color: #fff; font-size: 0.95rem; opacity: 0.85; flex-shrink: 0; transition: transform var(--dur-base) var(--ease-out); }
.brand-tile:hover .brand-tile__arrow { transform: translateX(4px); }

/* Home portfolio: the FOUR FORMATS only (individual brands live on /brands via
   the CTA). A clean editorial grid, not cards, so the homepage stays light. */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.6rem, 1rem + 2vw, 2.6rem); margin-top: clamp(2rem, 1.5rem + 2vw, 3.4rem); border-bottom: 1px solid var(--line-strong); }
/* One hairline ABOVE each format is the divider; a single rule under the whole
   grid closes it. Top-only borders avoid the doubled line a per-cell bottom
   border creates once the grid wraps to 2 or 1 column. */
.format { display: flex; flex-direction: column; border-top: 1px solid var(--line-strong);
  padding-block: clamp(1.1rem, 0.9rem + 0.6vw, 1.5rem); }
.format__idx { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; color: var(--blue-200); }
.format__name { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.05rem); letter-spacing: -0.02em; margin-top: 0.7rem; }
.format__desc { color: var(--mut); font-size: 0.92rem; line-height: 1.55; margin-top: 0.7rem; }
@media (max-width: 900px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .formats { grid-template-columns: 1fr; } }
.formats-cta { margin-top: clamp(2.4rem, 1.6rem + 3vw, 4rem); display: flex; justify-content: flex-start; }

/* ========================================================= FEATURE BAND == */
.feature-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: clamp(2.5rem, 1.5rem + 5vw, 5rem); border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--ink-blue-600), var(--ink-blue-700)); }
.feature-band .glow { width: 50%; height: 140%; top: -20%; right: -10%; opacity: 0.6; }
.feature-band__inner { position: relative; z-index: 1; max-width: 60rem; }
.feature-band h2 { margin: 1rem 0; }
.feature-band p { color: var(--ink-dim); max-width: 52ch; }

/* =============================================================== SPLIT ==== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.split--story { grid-template-columns: 0.9fr 1.1fr; }
.split__media { position: relative; }
.split__media .frame { aspect-ratio: 4 / 5; }
/* brand description image is a dedicated square (1:1) photo */
.split--brand .split__media .frame { aspect-ratio: 1 / 1; }
.split--story h2 { margin-top: 0.6rem; }
.split--story h2 + .muted { margin-top: 1.1rem; max-width: 54ch; }
@media (max-width: 860px) { .split, .split--story { grid-template-columns: 1fr; } }

.statement { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 2.4vw, 3rem); font-weight: 320; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.statement em { font-style: italic; color: var(--blue-150); }

/* =========================================================== VMV / VALUES = */
/* Vision & Mission — one luminous band (the page's colour break), statements
   set in the display serif instead of card text. */
.vm-band { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--ink-blue-500) 0%, var(--ink-blue-600) 45%, var(--ink-blue-700) 100%);
  padding: clamp(2.2rem, 1.5rem + 3.5vw, 4.5rem); }
.vm-band .glow { width: 48%; height: 150%; top: -25%; right: -10%; opacity: 0.55; }
.vm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.vm-item + .vm-item { border-left: 1px solid var(--line-strong); padding-left: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.vm-label { display: inline-flex; align-items: center; gap: 0.6em; font-family: var(--font-mono); font-size: var(--t-eyebrow); font-weight: 500; letter-spacing: var(--tracking-eyebrow); text-transform: uppercase; color: var(--blue-150); }
.vm-item p { margin-top: 1.1rem; font-family: var(--font-display); font-weight: 340; font-size: clamp(1.25rem, 1.05rem + 1vw, 1.7rem); line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.vm-item em { font-style: italic; color: var(--blue-150); }
@media (max-width: 760px) {
  .vm-grid { grid-template-columns: 1fr; }
  .vm-item + .vm-item { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: clamp(1.6rem, 1rem + 2vw, 2.5rem); }
}

/* Values — no boxes: an editorial, hairline ruled list of numbered principles.
   A single rule above each item + one under the whole grid; top-only borders
   avoid doubled lines when the grid wraps to 2 or 1 column. */
.values-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.8rem, 1.2rem + 2vw, 3rem) clamp(1.6rem, 1rem + 2vw, 2.5rem); border-bottom: 1px solid var(--line-strong); }
@media (max-width: 860px) { .values-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values-list { grid-template-columns: 1fr; } }
.value-item { border-top: 1px solid var(--line-strong); padding: 1.2rem 0; }
.value-item .v-num { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--blue-200); }
.value-item h3 { margin-top: 0.9rem; font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; color: var(--ink); }
.value-item p { margin-top: 0.5rem; font-size: 0.9rem; color: var(--mut); }

/* ====================================================== ART PLACEHOLDER == */
/* Intentional blue artwork used wherever a real photo isn't wired in yet.
   Drop a real <img> into the .frame to replace it — see HANDOVER.md. */
.art { position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 120% at 25% 0%, var(--blue-450) 0%, transparent 55%),
              radial-gradient(100% 120% at 100% 100%, rgba(34,53,107,0.7) 0%, transparent 60%),
              linear-gradient(160deg, var(--ink-blue-600), var(--ink-blue-850)); }
.art::before { content: ""; position: absolute; inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.art::after { content: attr(data-mono); position: absolute; right: -0.1em; bottom: -0.28em; font-family: var(--font-display); font-weight: 340; font-size: clamp(7rem, 30vmin, 22rem); line-height: 0.8; color: rgba(255,255,255,0.05); letter-spacing: -0.04em; }
.art--rev::after { left: -0.1em; right: auto; }

/* ===================================================== BRAND PAGE TPL ===== */
.brand-hero { position: relative; min-height: clamp(560px, 84vh, 860px); display: flex; align-items: flex-end; padding-bottom: clamp(2.5rem, 1.5rem + 4vw, 5rem); padding-top: 8rem; overflow: hidden; }
/* The media is extended well beyond the hero on top and bottom so the parallax
   translate (which shifts it a few px at rest) can NEVER expose a gap at the very
   top of the page. overflow:hidden on .brand-hero clips the excess cleanly. */
.brand-hero__media { position: absolute; inset: -12% 0; z-index: 0; }
.brand-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  /* premium, cinematic: keep the food's colour (only lightly desaturated) and
   sink it dark into the brand field, so the dish glows rather than greys out */
  filter: grayscale(0.15) brightness(0.6) contrast(1.1) saturate(1.2); }
/* The Marina's hero is a bright, high-key shot, so it needs extra darkening. */
body[data-brand="the-marina"] .brand-hero__media img { filter: grayscale(0.15) brightness(0.5) contrast(1.14) saturate(1.25); }
/* scrim on the hero box (aligns exactly). Base (used by the solid colour, no
   photo heroes): just a brand glow and a soft fade into the field — no heavy
   darkening, so the immersive colour stays clean to the top. */
.brand-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(125% 95% at 58% -8%, var(--glow-core) 0%, transparent 66%),
    linear-gradient(180deg, transparent 0%, transparent 62%, var(--bg) 100%); }
/* no-photo heroes: clean immersive brand field — drop the dark placeholder fill
   so the top stays brand coloured (not a dark band); keep the faint monogram. */
.brand-hero:not(.brand-hero--photo) .brand-hero__media .art { background: none; }
/* Photo heroes: darken the top for the white header, carry the brand glow, and
   dissolve the cinematic photo into the brand colour field where the text sits. */
.brand-hero--photo::after {
  background:
    radial-gradient(120% 85% at 82% 108%, var(--glow-core) 0%, transparent 55%),
    linear-gradient(180deg, rgba(3,7,15,0.62) 0%, rgba(3,7,15,0.08) 30%, rgba(3,7,15,0.45) 66%, var(--bg) 99%),
    radial-gradient(135% 92% at 50% 4%, transparent 44%, rgba(3,7,15,0.5) 100%); }
.brand-hero__inner { position: relative; z-index: 1; }
/* credential seal (e.g. Thai SELECT), pinned top-right of the hero */
.brand-hero__badge { position: absolute; z-index: 2; top: clamp(5.5rem, 9vh, 8rem); right: clamp(1.4rem, 3vw, 3.4rem);
  width: clamp(78px, 8vw, 116px); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,0.45)); }
@media (max-width: 640px) { .brand-hero__badge { width: 64px; top: 5rem; right: 1.1rem; } }
/* Logos are standardised: most sit at a common WIDTH (like Hot Breads); Va Pho
   and Malabar Point are square/round marks, so they are sized by HEIGHT instead
   (overridden per brand below) to keep them visually the same weight. */
.brand-hero__logo { width: clamp(150px, 15vw + 40px, 208px); height: auto; max-height: 84px; object-fit: contain; object-position: left center; margin-bottom: 1.4rem; }
body[data-brand="va-pho"] .brand-hero__logo,
body[data-brand="malabar-point"] .brand-hero__logo { width: auto; max-height: none; height: clamp(72px, 6vw + 40px, 104px); }
.brand-hero__meta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.2rem; }
.brand-hero h1 { font-size: clamp(2.8rem, 1.8rem + 6vw, 6rem); }
.brand-hero .lead { margin-top: 1.2rem; max-width: 44ch; }
.brand-hero .hero-actions { margin-top: 1.8rem; }

.dish-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .dish-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dish-grid { grid-template-columns: 1fr; } }
.dish { padding: 0; overflow: hidden; }
.dish .frame { aspect-ratio: 4 / 3; border-radius: 0; }
.dish__body { padding: 1.2rem 1.3rem 1.4rem; }
.dish__body h4 { font-family: var(--font-sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.dish__body p { font-size: 0.88rem; color: var(--mut); margin-top: 0.3rem; }

/* Signatures — image free menu list, names only, laid out as an editorial
   ruled grid. Numbers pick up the brand highlight (--accent). */
.sig-list { list-style: none; margin: clamp(1.6rem, 1rem + 2vw, 2.6rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(2rem, 1rem + 3vw, 4rem); }
@media (max-width: 860px) { .sig-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .sig-list { grid-template-columns: 1fr; } }
.sig { display: flex; align-items: baseline; gap: 1rem; padding: clamp(0.85rem, 0.6rem + 0.6vw, 1.15rem) 0; border-top: 1px solid var(--line); }
.sig__idx { flex: none; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; color: var(--mut); }
.sig__name { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.12rem, 1rem + 0.7vw, 1.5rem); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
/* (anchor jumps already clear the fixed header via the global [id] scroll-margin) */

/* Brand page rhythm: The Brand and Signatures are one continuous reading flow,
   so collapse the doubled section padding between them (it left an awkward gap). */
#the-brand { padding-bottom: clamp(1.6rem, 1rem + 2vw, 3rem); }
#signatures { padding-top: clamp(1.6rem, 1rem + 2vw, 3rem); }

/* New & Seasonal — a uniform 4:5 image grid (per-brand `news`) so any set of
   product shots reads as one neat gallery regardless of their source ratios. */
#news { padding-bottom: clamp(1.6rem, 1rem + 2vw, 3rem); }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: clamp(0.7rem, 0.4rem + 1vw, 1.2rem); margin-top: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.news-item { position: relative; aspect-ratio: 4 / 5; margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--panel); }
.news-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.news-item:hover img { transform: scale(1.04); }
@media (max-width: 520px) { .news-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================== SIDE DOT NAV (scroll spy) === */
/* Centred rail. Labels appear on hover only — the coloured active dot is the
   quiet "you are here" so it never fights the content. */
.dotnav { position: fixed; right: clamp(0.9rem, 0.4rem + 1.2vw, 1.9rem); top: 50%; transform: translateY(-50%);
  z-index: var(--z-overlay); display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; }
.dotnav__item { display: flex; flex-direction: row-reverse; align-items: center; gap: 0.7rem; padding: 0.45rem 0.15rem; }
.dotnav__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: transparent; border: 1.5px solid var(--faint);
  transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base), background var(--dur-base), box-shadow var(--dur-base); }
.dotnav__label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); white-space: nowrap;
  opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), color var(--dur-base); }
.dotnav__item:hover .dotnav__dot, .dotnav__item:focus-visible .dotnav__dot { border-color: var(--accent); }
.dotnav__item:hover .dotnav__label, .dotnav__item:focus-visible .dotnav__label { opacity: 1; transform: none; }
.dotnav__item.is-active .dotnav__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.35); box-shadow: 0 0 12px var(--accent); }
/* active label is coloured, but still only shown on hover (rule above) */
.dotnav__item.is-active .dotnav__label { color: var(--accent); }
@media (max-width: 900px) { .dotnav { display: none; } }

/* ================================================== RETURN TO TOP ======== */
.to-top { position: fixed; right: clamp(1rem, 0.5rem + 1.5vw, 2rem); bottom: clamp(1rem, 0.5rem + 1.5vw, 2rem);
  z-index: var(--z-overlay); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--ink);
  background: var(--glass-strong); border: 1px solid var(--line-strong); backdrop-filter: blur(8px); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), color var(--dur-base), border-color var(--dur-base); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 900px) { .to-top { width: 42px; height: 42px; right: 1rem; bottom: 1rem; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.gallery .frame { aspect-ratio: 1; }
.gallery .frame:nth-child(1) { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery .frame:nth-child(1) { grid-row: auto; } }

/* Careers CTA — an open editorial block (NOT a filled card), so the lower page
   isn't card after card. A hairline rule, a big headline, and the action. */
.join { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: end;
  padding-top: clamp(2.2rem, 1.5rem + 3vw, 4rem); border-top: 1px solid var(--line-strong); }
.join__head h2 { margin-top: 0.7rem; font-size: clamp(2rem, 1.4rem + 3vw, 3.6rem); }
.join__aside p { color: var(--mut); max-width: 42ch; }
.join__aside .btn { margin-top: 1.6rem; }
@media (max-width: 760px) { .join { grid-template-columns: 1fr; align-items: start; } }

/* CTA band */
.cta-band { position: relative; text-align: center; border-radius: var(--r-xl); overflow: hidden; padding: clamp(3rem, 2rem + 5vw, 6rem); border: 1px solid var(--line); background: linear-gradient(135deg, var(--ink-blue-600), var(--ink-blue-800)); }
.cta-band .glow { width: 60%; height: 160%; top: -30%; left: 50%; transform: translateX(-50%); opacity: 0.5; }
.cta-band__inner { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 1rem; }
.cta-band p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 2rem; }

/* prev / next brand */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.prevnext a { background: var(--bg); padding: clamp(1.6rem, 1rem + 2vw, 2.6rem) var(--gutter); transition: background var(--dur-base) var(--ease-out); }
.prevnext a:hover { background: var(--panel); }
.prevnext .dir { display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.prevnext .nm { display: block; font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem); font-weight: 340; margin-top: 0.5rem; }
.prevnext .next { text-align: right; }
@media (max-width: 560px) { .prevnext { grid-template-columns: 1fr; } .prevnext .next { text-align: left; } }

/* ============================================================= CAREERS ==== */
.careers-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }
@media (max-width: 880px) { .careers-grid { grid-template-columns: 1fr; } }
.why-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.why-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-item .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); margin-top: 0.6rem; flex: none; box-shadow: 0 0 12px var(--blue-300); }
.why-item b { color: var(--ink); }
.why-item span { color: var(--mut); }

/* ============================================================= CONTACT ==== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: stretch; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-block { margin-bottom: 1.8rem; }
.contact-block h2 { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.6rem; }
.contact-block a, .contact-block p { color: var(--ink-dim); }
.contact-block a:hover { color: var(--blue-200); }
.contact-block .addr { color: var(--mut); line-height: 1.8; }
/* Left column and form card share one height: the map fills the left, the
   message fills the right, so both sides end level (no map overhang). */
.contact-col { display: flex; flex-direction: column; }
.contact-col .map-card { flex: 1 1 auto; min-height: 260px; }
.contact-col .map-card iframe { height: 100%; }
.contact-grid > .card { display: flex; flex-direction: column; }
.contact-grid form { flex: 1; display: flex; flex-direction: column; }
.field--grow { flex: 1; display: flex; flex-direction: column; }
.field--grow textarea { flex: 1; min-height: 170px; }
@media (max-width: 880px) { .contact-grid { align-items: start; } }

/* CSR pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }
.pillar { padding: 1.8rem; }
.pillar .num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue-200); letter-spacing: 0.16em; }
.pillar h3 { font-size: var(--t-h4); margin: 0.8rem 0 0.6rem; }
.pillar p { color: var(--mut); font-size: 0.92rem; }
