/* ==========================================================================
   KNIGHT BITE — Design System
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #08080B;
  --ink-2:      #0D0D12;
  --ink-3:      #14141B;
  --ink-4:      #1C1C25;
  --cream:      #F7F5F2;
  --cream-dim:  #C9C6CF;
  --muted:      #8E8B99;

  /* Brand */
  --rose:       #FF3D62;
  --rose-soft:  #FF6B84;
  --violet:     #A855F7;
  --amber:      #FF9A47;
  --grad:       linear-gradient(100deg, #A855F7 0%, #FF3D62 52%, #FF8A45 100%);
  --grad-soft:  linear-gradient(100deg, rgba(168,85,247,.16), rgba(255,61,98,.16));

  /* Lines & glass */
  --line:       rgba(255,255,255,.09);
  --line-2:     rgba(255,255,255,.16);
  --glass:      rgba(12,12,16,.72);

  /* Type */
  --display: "Bricolage Grotesque", "Helvetica Neue", sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* Rhythm */
  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1320px;
  --section: clamp(80px, 11vw, 160px);
  --radius: 20px;
  --radius-lg: 32px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--rose); color: #fff; }

/* Ambient page glow — warmer and deeper than a flat black */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1100px 700px at 10% -10%, rgba(168,85,247,.17), transparent 62%),
    radial-gradient(900px 600px at 92% 2%, rgba(255,61,98,.13), transparent 64%),
    radial-gradient(1200px 800px at 50% 108%, rgba(255,122,69,.07), transparent 66%);
}

/* Film grain. Sits above everything, catches no clicks. This is most of what
   separates "flat dark page" from "shot on film". */
body::after {
  content: "";
  position: fixed;
  inset: -20%;          /* just enough overhang to hide the drift */
  z-index: 9998;
  pointer-events: none;
  opacity: .15;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 6s steps(6) infinite;
  will-change: transform;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  16%  { transform: translate(-3%, 2%); }
  33%  { transform: translate(2%, -3%); }
  50%  { transform: translate(-2%, -2%); }
  66%  { transform: translate(3%, 1%); }
  83%  { transform: translate(-1%, 3%); }
}

/* Scroll progress — a hairline of the brand gradient across the very top */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  background: var(--grad);
  z-index: 9999;
  pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #2A2A34; border-radius: 20px; border: 3px solid var(--ink); }
::-webkit-scrollbar-thumb:hover { background: #3A3A47; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.03em;
}
.display-xl { font-size: clamp(3rem, 8.2vw, 6.6rem); }
.display-l  { font-size: clamp(2.2rem, 4.6vw, 3.9rem); }
.display-m  { font-size: clamp(1.9rem, 3.7vw, 3.1rem); }
.display-s  { font-size: clamp(1.35rem, 2.1vw, 1.75rem); letter-spacing: -.02em; line-height: 1.14; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.outline-text {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(247,245,242,.34);
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose-soft);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad);
}
.eyebrow.centered { justify-content: center; }

.lede {
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  color: var(--cream-dim);
  line-height: 1.72;
  max-width: 58ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}
.section { padding-block: var(--section); position: relative; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.section-head > div { max-width: 780px; }
.section-head h2 { margin-top: 18px; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.hairline { height: 1px; background: var(--line); border: 0; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  font-weight: 600;
  font-size: .94rem;
  letter-spacing: -.01em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, background .3s, color .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn-primary {
  border: 0;
  color: #fff;
  background: var(--grad);
  background-size: 180% 100%;
  box-shadow: 0 10px 34px -10px rgba(255,61,98,.62);
}
.btn-primary:hover {
  background-position: 100% 0;
  box-shadow: 0 16px 44px -10px rgba(255,61,98,.75);
}
.btn-ghost { color: var(--cream); }
.btn-ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.btn-solid { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-solid:hover { background: #fff; }
.btn-lg { padding: 18px 38px; font-size: 1rem; }
.btn-sm { padding: 11px 22px; font-size: .85rem; }

/* Store badges */
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-store {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px 10px 17px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(12px);
  transition: border-color .3s, background .3s, transform .35s var(--ease);
}
.badge-store:hover { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.07); transform: translateY(-2px); }
.badge-store svg { width: 22px; height: 22px; flex: none; }
.badge-store span { display: block; line-height: 1.25; }
.badge-store .bs-top { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.badge-store .bs-main { font-size: .95rem; font-weight: 600; letter-spacing: -.01em; }

/* ---------- 6. Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
  padding-block: 18px;
}
.site-header.stuck {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 13px; flex: none; }
.logo-mark { width: 42px; height: 42px; flex: none; transition: transform .5s var(--ease-out); }
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.logo-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: .005em;
  line-height: 1;
  text-transform: uppercase;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--cream-dim);
  transition: color .25s, background .25s;
}
.nav-links a:hover { color: var(--cream); background: rgba(255,255,255,.05); }
.nav-links a.active { color: var(--cream); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 1px;
  transform: translateX(-50%);
  width: 16px; height: 2px;
  border-radius: 2px;
  background: var(--grad);
}
.nav-actions { display: flex; align-items: center; gap: 14px; flex: none; }

/* Live status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2BD97C;
  position: relative;
  flex: none;
}
.dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid #2BD97C;
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: .9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.status-pill.closed .dot { background: var(--amber); }
.status-pill.closed .dot::after { border-color: var(--amber); }

/* Burger toggle */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}
.nav-toggle:active {
  transform: scale(0.95);
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  transform-origin: center;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--ink);
  padding: 120px var(--gutter) 48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateY(-100%);
  transition: transform .55s var(--ease-out);
  overflow-y: auto;
}
body.nav-open .mobile-nav { transform: translateY(0); }
.mobile-nav a.m-link {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 9vw, 2.9rem);
  letter-spacing: -.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav a.m-link span { font-family: var(--mono); font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.mobile-nav .m-foot { margin-top: auto; padding-top: 40px; display: grid; gap: 16px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  transform: scale(1.04);
  animation: heroDrift 26s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0,0,0); }
  to   { transform: scale(1.1) translate3d(-1.2%, -1%, 0); }
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(8,8,11,.97) 0%, rgba(8,8,11,.92) 34%, rgba(8,8,11,.6) 58%, rgba(8,8,11,.25) 78%, rgba(8,8,11,.62) 100%),
    linear-gradient(to top, var(--ink) 1%, rgba(8,8,11,.25) 34%, transparent 55%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-copy { max-width: 780px; }
.hero h1 { margin: 22px 0 26px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero .lede { max-width: 46ch; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}
.hero-divider {
  width: 1px; height: 34px;
  background: var(--line-2);
  margin-inline: 8px;
}

/* Hero stat strip */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: clamp(52px, 7vw, 92px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hero-stats > div {
  background: rgba(8,8,11,.86);
  backdrop-filter: blur(10px);
  padding: 22px 24px;
}
.hero-stats .hs-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero-stats .hs-lab {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  display: grid;
  justify-items: center;
  gap: 10px;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: .3; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); } }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  padding-top: clamp(150px, 20vw, 220px);
  padding-bottom: clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
/* --pos lets each page aim the crop at its subject (tall phone photos in a wide
   banner get cropped hard, so the focal point matters). */
.page-hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: .48;
}
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--ink) 4%, rgba(8,8,11,.72) 48%, rgba(8,8,11,.86) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { margin: 20px 0 24px; }

/* Breadcrumb */
.crumb { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.crumb a:hover { color: var(--cream); }
.crumb span { color: var(--rose-soft); }

/* ---------- 8. Marquee ---------- */
.marquee {
  position: relative;
  padding-block: 26px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--ink-2);
  z-index: 1;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: -.02em;
  text-transform: uppercase;
  padding-inline: 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
  color: var(--cream);
}
.marquee-track span::after {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rose);
  flex: none;
}
.marquee-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(247,245,242,.3); }

/* ---------- 9. Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  overflow: hidden;
  transition: transform .5s var(--ease-out), border-color .4s, background .4s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity .45s;
  pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }

.card-index {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  color: var(--muted);
}
.card h3 { font-size: 1.16rem; letter-spacing: -.02em; line-height: 1.22; margin: 18px 0 10px; }
.card p { font-size: .92rem; color: var(--muted); line-height: 1.68; }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--rose);
  transition: transform .5s var(--ease-out), color .3s;
}
.icon-badge svg { width: 24px; height: 24px; }
.card:hover .icon-badge { transform: translateY(-3px) rotate(-5deg); color: var(--rose-soft); }

/* Feature row (home) */
.feature-card { display: flex; flex-direction: column; min-height: 260px; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feature-card .card-body { margin-top: auto; padding-top: 38px; }
.feature-card h3 { margin: 0 0 10px; }

/* ---------- 10. Split / editorial ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
}
.split.reverse > *:first-child { order: 2; }
.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.media-frame:hover img { transform: scale(1.05); }
.media-frame.wide { aspect-ratio: 16 / 11; }
.media-frame.tall { aspect-ratio: 3 / 4; }

.media-tag {
  position: absolute;
  left: 18px; bottom: 18px;
  padding: 9px 16px;
  border-radius: 100px;
  background: rgba(8,8,11,.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Stat list used in editorial blocks */
.stat-row { display: flex; gap: clamp(24px, 4vw, 52px); flex-wrap: wrap; margin-top: 38px; }
.stat-row .st-num {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  letter-spacing: -.035em; line-height: 1;
}
.stat-row .st-lab { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

/* ---------- 11. Dish cards ---------- */
.dish {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  transition: transform .5s var(--ease-out), border-color .4s;
  display: flex;
  flex-direction: column;
}
.dish:hover { transform: translateY(-6px); border-color: var(--line-2); }
.dish-img { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--ink-3); }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.dish:hover .dish-img img { transform: scale(1.07); }
.dish-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,13,18,.9), transparent 52%);
}
.dish-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dish h3 { font-size: 1.04rem; margin: 0; line-height: 1.28; letter-spacing: -.02em; }
.dish .price { font-family: var(--mono); font-weight: 500; font-size: .95rem; color: var(--cream); flex: none; }
.dish p { font-size: .84rem; color: var(--muted); line-height: 1.6; }
.dish-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Veg / non-veg indicator (FSSAI style) */
.veg-mark {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  width: 22px; height: 22px;
  border: 1.6px solid #2BD97C;
  border-radius: 5px;
  display: grid; place-items: center;
  background: rgba(8,8,11,.72);
  backdrop-filter: blur(6px);
}
.veg-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2BD97C; }
.veg-mark.non { border-color: #FF5A3D; }
.veg-mark.non::after { background: #FF5A3D; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(255,255,255,.03);
}
.tag.hot { color: #FFB4A0; border-color: rgba(255,90,61,.35); background: rgba(255,90,61,.1); }
.tag.new { color: #D7B4FF; border-color: rgba(168,85,247,.35); background: rgba(168,85,247,.1); }
.tag.best { color: #FFD9A0; border-color: rgba(255,154,71,.35); background: rgba(255,154,71,.1); }

.add-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04);
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
  transition: background .3s, transform .35s var(--ease), border-color .3s;
}
.add-btn svg { width: 15px; height: 15px; }
.add-btn:hover { background: var(--grad); border-color: transparent; transform: rotate(90deg); }

/* Menu filter bar */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--ink-2);
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.filter-bar button {
  padding: 10px 20px;
  border-radius: 100px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.filter-bar button:hover { color: var(--cream); }
.filter-bar button.on { color: #fff; background: var(--grad); }

/* ---------- 12. Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); position: relative; }
.step { position: relative; padding-top: 42px; }
.step::before {
  content: "";
  position: absolute;
  top: 15px; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.step::after {
  content: "";
  position: absolute;
  top: 11px; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(255,61,98,.14);
}
.step-num { font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; color: var(--rose-soft); }
.step h3 { font-size: 1.35rem; margin: 14px 0 12px; letter-spacing: -.025em; }
.step p { color: var(--muted); font-size: .93rem; }

/* ---------- 13. Testimonials ---------- */
.quote-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.8vw, 36px);
  background: var(--ink-2);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform .5s var(--ease-out), border-color .4s;
}
.quote-card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 15px; height: 15px; }
.quote-card blockquote {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.42;
  letter-spacing: -.02em;
}
.quote-who { margin-top: auto; display: flex; align-items: center; gap: 13px; padding-top: 4px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad);
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  color: #fff;
  flex: none;
}
.quote-who b { display: block; font-size: .92rem; font-weight: 600; }
.quote-who small { color: var(--muted); font-size: .78rem; font-family: var(--mono); letter-spacing: .06em; }

/* ---------- 14. App showcase ---------- */
.app-band {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(700px 420px at 82% 30%, rgba(168,85,247,.2), transparent 62%),
    radial-gradient(600px 400px at 12% 90%, rgba(255,61,98,.16), transparent 60%),
    var(--ink-2);
  padding: clamp(38px, 5vw, 78px);
  overflow: hidden;
}
.app-band .split { align-items: center; }
/* Device mockup holding real app screenshots */
.phone-stage { position: relative; width: min(320px, 82%); margin-inline: auto; }
.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 738 / 1385;   /* matches the cropped screenshot exactly */
  border-radius: 40px;
  background: #0A0A0D;
  border: 8px solid #1D1D26;
  box-shadow: 0 42px 90px -28px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.07);
  overflow: hidden;
  transform: rotate(-3deg);
  transition: transform .8s var(--ease-out);
}
.app-band:hover .phone { transform: rotate(-1deg) translateY(-6px); }
.phone-screen { position: absolute; inset: 0; background: #fff; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Order-tracking screen, floating over the corner of the device */
.phone-float {
  position: absolute;
  left: -16%;
  bottom: 8%;
  width: 62%;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 26px 60px -18px rgba(0,0,0,.85);
  transform: rotate(2.5deg);
  transition: transform .8s var(--ease-out);
  background: #fff;
}
.app-band:hover .phone-float { transform: rotate(1deg) translateY(-4px); }
.phone-float img { width: 100%; height: auto; display: block; }

.check-list { display: grid; gap: 14px; margin: 30px 0 34px; }
.check-list li { display: flex; gap: 13px; align-items: flex-start; font-size: .96rem; color: var(--cream-dim); }
.check-list svg { width: 19px; height: 19px; flex: none; margin-top: 3px; color: var(--rose); }

/* ---------- 15. Locations ---------- */
.loc-row {
  display: grid;
  grid-template-columns: 40px 1.4fr 1fr 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 4px;
  border-top: 1px solid var(--line);
  transition: background .35s, padding-inline .35s var(--ease);
  position: relative;
}
.loc-row:last-child { border-bottom: 1px solid var(--line); }
.loc-row:hover { background: rgba(255,255,255,.025); padding-inline: 18px; }
.loc-row .loc-i { font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.loc-row h3 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); letter-spacing: -.03em; }
.loc-row .loc-meta { font-family: var(--mono); font-size: .74rem; color: var(--cream-dim); letter-spacing: .04em; }
.loc-row .loc-status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.arrow-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  transition: background .3s, transform .4s var(--ease), border-color .3s;
}
.arrow-btn svg { width: 15px; height: 15px; }
.loc-row:hover .arrow-btn { background: var(--grad); border-color: transparent; transform: translateX(3px); }

/* ---------- 16. CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  padding: clamp(46px, 6.5vw, 96px) clamp(28px, 5vw, 72px);
  text-align: center;
  background: var(--ink-2);
}
/* Must out-specify `.cta-band > *` below, which would otherwise pull the
   background image back into normal flow. */
.cta-band > .cta-band-media { position: absolute; inset: 0; z-index: 0; }
.cta-band-media img { width: 100%; height: 100%; object-fit: cover; }
/* Spotlight scrim: dark enough behind the copy to stay legible, clearing to
   nothing at the edges so the food keeps its colour. */
.cta-band-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 58% 70% at 50% 50%,
      rgba(8,8,11,.76) 0%, rgba(8,8,11,.5) 44%, rgba(8,8,11,.1) 78%, rgba(8,8,11,0) 100%),
    linear-gradient(to bottom, rgba(8,8,11,.22), rgba(8,8,11,.32));
}
.cta-band > * { position: relative; z-index: 1; }
/* Rose-on-pink photography is too low-contrast for small text here. */
.cta-band .eyebrow { color: var(--cream); }
.cta-band .lede { margin-inline: auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- 16b. Video ---------- */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink-2);
  aspect-ratio: 16 / 9;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9);
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.video-missing {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px;
  background:
    radial-gradient(700px 400px at 50% 40%, rgba(168,85,247,.14), transparent 65%),
    var(--ink-2);
}
.video-missing h3 { font-size: 1.15rem; letter-spacing: -.02em; }
.video-missing p { font-size: .9rem; color: var(--muted); max-width: 46ch; line-height: 1.7; }
.video-missing code {
  font-family: var(--mono);
  font-size: .82em;
  color: var(--rose-soft);
  background: rgba(255,61,98,.1);
  border: 1px solid rgba(255,61,98,.2);
  border-radius: 6px;
  padding: 2px 6px;
  white-space: nowrap;
}
/* The placeholder is opaque and covers the player, so the <video> stays in the
   layout and keeps loading — hiding it with display:none can suspend the fetch. */
.video-missing { z-index: 1; }
/* `display: grid` above would otherwise beat the UA rule for [hidden]. */
.video-missing[hidden] { display: none; }

/* ---------- 16c. Long-form / legal prose ---------- */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  letter-spacing: -.025em;
  margin-top: clamp(48px, 5vw, 68px);
  padding-top: clamp(26px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: 1.06rem;
  letter-spacing: -.02em;
  margin-top: 34px;
  color: var(--cream);
}
.prose p { color: var(--cream-dim); line-height: 1.78; font-size: .98rem; }
.prose ul { display: grid; gap: 12px; margin-top: 16px; }
.prose li {
  position: relative;
  padding-left: 26px;
  color: var(--cream-dim);
  line-height: 1.72;
  font-size: .96rem;
}
.prose li::before {
  content: "";
  position: absolute;
  left: 4px; top: .68em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad);
}
.prose strong { color: var(--cream); font-weight: 600; }

/* Sticky in-page nav for the policy pages */
.policy-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: clamp(32px, 5vw, 76px);
  align-items: start;
}
.policy-nav { position: sticky; top: 112px; display: grid; gap: 4px; }
.policy-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: .9rem;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .25s, background .25s, border-color .25s;
}
.policy-nav a:hover { color: var(--cream); background: rgba(255,255,255,.04); }
.policy-nav a.on { color: var(--cream); border-left-color: var(--rose); background: rgba(255,255,255,.04); }
.policy-nav .pn-head {
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px 12px;
}
.policy-updated {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-nav { position: static; grid-auto-flow: column; justify-content: start; overflow-x: auto; padding-bottom: 6px; }
  .policy-nav .pn-head { display: none; }
  .policy-nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .policy-nav a.on { border-left: 0; border-bottom-color: var(--rose); }
}

/* ---------- 17. Forms ---------- */
.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  padding: clamp(26px, 3.4vw, 44px);
}
.field { display: grid; gap: 9px; margin-bottom: 18px; }
.field label {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 15px 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: .95rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
  color: var(--cream);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5C5A66; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: rgba(255,61,98,.55);
  background: rgba(255,255,255,.05);
  box-shadow: 0 0 0 4px rgba(255,61,98,.1);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--cream-dim); margin: 6px 0 24px; cursor: pointer; }
.checkbox input { width: 19px; height: 19px; accent-color: var(--rose); flex: none; margin-top: 2px; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: 16px; text-align: center; }

/* Newsletter inline */
.subscribe { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.subscribe .btn { flex: 1 1 auto; }
.subscribe input {
  flex: 1 1 100%;
  padding: 15px 20px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  font-size: .92rem;
  transition: border-color .3s;
}
.subscribe input:focus { outline: none; border-color: rgba(255,61,98,.5); }

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 32px;
  transform: translate(-50%, 140%);
  z-index: 200;
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--ink-4);
  border: 1px solid var(--line-2);
  box-shadow: 0 22px 60px -18px rgba(0,0,0,.9);
  font-size: .9rem;
  display: flex; align-items: center; gap: 10px;
  transition: transform .5s var(--ease-out);
  max-width: calc(100vw - 40px);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 17px; height: 17px; color: #2BD97C; flex: none; }

/* ---------- 18. Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
  padding-top: clamp(60px, 7vw, 96px);
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: clamp(28px, 3.5vw, 56px);
  padding-bottom: 64px;
}
.footer-col h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col ul a { font-size: .93rem; color: var(--cream-dim); transition: color .25s, transform .3s var(--ease); display: inline-block; }
.footer-col ul a:hover { color: var(--cream); transform: translateX(3px); }
.footer-col .logo { margin-bottom: 4px; }
.footer-brand p { font-size: .93rem; color: var(--muted); margin-top: 20px; max-width: 34ch; }

.socials { display: flex; gap: 10px; margin-top: 26px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--cream-dim);
  transition: color .3s, border-color .3s, transform .4s var(--ease), background .3s;
}
.socials a:hover { color: #fff; border-color: transparent; background: var(--grad); transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.contact-line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-line svg { width: 17px; height: 17px; color: var(--rose); flex: none; }
.contact-line b { font-weight: 500; font-size: .95rem; }
.contact-line small { display: block; color: var(--muted); font-size: .76rem; font-family: var(--mono); letter-spacing: .04em; }

/* Giant footer wordmark */
.footer-wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: min(17.5vw, 300px);
  line-height: .8;
  letter-spacing: -.03em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(247,245,242,.05);
  padding-block: clamp(20px, 3vw, 40px);
  user-select: none;
  white-space: nowrap;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: .82rem;
  color: var(--muted);
}
.footer-bottom .fb-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- 19. Scroll reveal ----------
   Scoped to .js so the page stays fully visible if JavaScript never runs. */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
  .g-5 { grid-template-columns: repeat(3, 1fr); }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .loc-row { grid-template-columns: 30px 1fr auto; row-gap: 8px; }
  .loc-row .loc-meta:nth-of-type(2) { grid-column: 2 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .status-pill { display: none; }
  .nav-toggle { display: flex; }
  .split, .g-3, .g-2, .steps { grid-template-columns: 1fr; }
  .split.reverse > *:first-child { order: 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  /* The copy stack is far taller relative to the band here, so the spotlight
     has to spread wider and darker to keep it readable. */
  .cta-band-media::after {
    background:
      radial-gradient(ellipse 110% 64% at 50% 50%,
        rgba(8,8,11,.62) 0%, rgba(8,8,11,.44) 52%, rgba(8,8,11,.14) 100%),
      linear-gradient(to bottom, rgba(8,8,11,.12), rgba(8,8,11,.2));
  }
  .app-band .split { gap: 44px; }
  .phone-stage { width: min(290px, 72%); }
  .phone { transform: rotate(0); }
  .phone-float { left: -10%; width: 58%; transform: rotate(0); }
}
/* Header has three fixed items (logo, Order now, menu) — tighten them so they
   never collide on small phones. */
@media (max-width: 480px) {
  .nav { gap: 12px; }
  .logo { gap: 10px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-word { font-size: 1.05rem; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-sm { padding: 10px 16px; font-size: .82rem; }
  .nav-toggle { width: 40px; height: 40px; }
}
@media (max-width: 379px) {
  /* Below this the wordmark can't fit beside the buttons — the mark carries it. */
  .logo-word { display: none; }
}

@media (max-width: 620px) {
  .g-5, .g-4, .g-3, .g-2 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero-media img { object-position: 68% 50%; }
  .hero-media::after {
    background:
      linear-gradient(to right, rgba(8,8,11,.94), rgba(8,8,11,.72) 78%, rgba(8,8,11,.6)),
      linear-gradient(to top, var(--ink) 3%, transparent 46%);
  }
  .btn { padding: 14px 24px; }
  .section-head { align-items: flex-start; }
  .scroll-cue { display: none; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* Full-width, tidy CTA stack instead of ragged inline buttons */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn, .store-badges, .badge-store { width: 100%; }
  .hero-divider { display: none; }
  .store-badges { flex-direction: column; }

  /* Cards shouldn't reserve bottom-aligned space when stacked */
  .feature-card { min-height: 0; }
  .feature-card .card-body { margin-top: 0; padding-top: 26px; }
}

/* ---------- 21. Utility ---------- */
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 56px; }
.flow > * + * { margin-top: 20px; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* ---------- 22. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   23. CINEMATIC LAYER
   Scroll-linked craft: parallax, masked reveals, sticky storytelling.
   Everything here degrades to a plain static page without JS, and is
   switched off entirely under prefers-reduced-motion (section 22).
   ========================================================================== */

/* ---- Masked image reveals ------------------------------------------------
   Images wipe up into frame rather than fading. clip-path only, so the
   transform channel stays free for parallax. */
.media-frame img,
.video-frame video,
.dish-img img {
  clip-path: inset(0 0 0 0);
}
.js .media-frame.reveal img { clip-path: inset(0 0 101% 0); }
.js .media-frame.reveal.in img {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.25s var(--ease-out);
}

/* Parallax: the image is oversized inside its frame so it can move without
   ever exposing an edge. JS writes --py. */
[data-parallax] { will-change: transform; }
.media-frame [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.18); }
.media-frame:hover [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.23); }
.hero-media [data-parallax],
.page-hero-media [data-parallax],
.cta-band-media [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.16); }

/* Hero drift is replaced by scroll parallax once JS is running */
.js .hero-media img { animation: none; }

/* ---- Line-by-line headline entrance ------------------------------------- */
.lines > span {
  display: block;
  overflow: hidden;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
.lines > span > i {
  display: block;
  font-style: inherit;
}
.js .lines.reveal > span > i {
  transform: translateY(115%);
  transition: transform 1.05s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 110ms);
}
.js .lines.reveal.in > span > i { transform: translateY(0); }

/* ---- Full-bleed cinematic break ----------------------------------------- */
.breaker {
  position: relative;
  min-height: min(78vh, 720px);
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.breaker-media { position: absolute; inset: 0; z-index: -1; }
.breaker-media img { width: 100%; height: 100%; object-fit: cover; }
.breaker-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 78% 74% at 50% 50%, rgba(8,8,11,.74) 0%, rgba(8,8,11,.56) 55%, rgba(8,8,11,.78) 100%),
    linear-gradient(to bottom, var(--ink) 0%, transparent 22%, transparent 78%, var(--ink) 100%);
}
/* A soft dark halo lifts the type off the photograph without dimming the
   whole frame — cheaper on the image than more scrim. */
.breaker h2,
.breaker .eyebrow,
.breaker .lede {
  text-shadow: 0 2px 48px rgba(8,8,11,.95), 0 1px 8px rgba(8,8,11,.7);
}
/* Gradient text is transparent-filled, so a text-shadow shows through it and
   muddies the colour. Use a drop-shadow on the painted result instead. */
.breaker h2 .grad-text {
  text-shadow: none;
  filter: drop-shadow(0 2px 26px rgba(8,8,11,.95)) drop-shadow(0 1px 5px rgba(8,8,11,.75));
}
.breaker-inner { text-align: center; padding-inline: var(--gutter); position: relative; }
.breaker h2 {
  font-size: clamp(2.4rem, 8.4vw, 8rem);
  line-height: .92;
  letter-spacing: -.045em;
  text-transform: uppercase;
}
.breaker h2 em { font-style: normal; display: block; }
.breaker .eyebrow { color: var(--cream); margin-bottom: 26px; }
.breaker .lede { margin: 26px auto 0; max-width: 46ch; color: var(--cream); }

/* ---- Sticky scroll storytelling ----------------------------------------- */
.sticky-story {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.sticky-aside { position: sticky; top: 22vh; }
.sticky-steps { display: grid; gap: clamp(56px, 9vw, 128px); }
.sticky-step { position: relative; padding-left: 84px; }
.sticky-step-num {
  position: absolute;
  left: 0; top: -6px;
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--muted);
  background: var(--ink-2);
  transition: color .5s, border-color .5s, background .5s, transform .6s var(--ease-out);
}
.sticky-step.in .sticky-step-num {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
  transform: scale(1.06);
}
.sticky-step h3 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); letter-spacing: -.03em; margin-bottom: 16px; }
.sticky-step p { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 46ch; }
.sticky-step .step-meta {
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-soft);
  display: block;
  margin-bottom: 14px;
}
/* connecting rail behind the numbers */
.sticky-steps { position: relative; }
.sticky-steps::before {
  content: "";
  position: absolute;
  left: 29px; top: 24px; bottom: 24px;
  width: 1px;
  background: linear-gradient(to bottom, var(--line), var(--line) 60%, transparent);
}

/* ---- Micro-interactions ------------------------------------------------- */
/* Light sweep across primary buttons */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.42) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform .85s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn > * { position: relative; z-index: 1; }

/* Arrows lead the eye on hover */
.btn svg, .arrow-btn svg { transition: transform .45s var(--ease-out); }
.btn:hover svg:last-child, .card:hover .arrow-btn svg { transform: translateX(4px); }

/* Nav links draw an underline */
.nav-links a::before {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
  opacity: .5;
}
.nav-links a:hover::before { transform: scaleX(1); }
.nav-links a.active::before { display: none; }

/* Stat figures lift on hover of their row */
.hero-stats div { transition: background .45s; }
.hero-stats div:hover { background: rgba(255,255,255,.045); }

/* Section headings get a hairline that draws in */
.rule-in {
  position: relative;
  padding-top: 26px;
}
.rule-in::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  height: 1px;
  width: 100%;
  background: var(--line);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.3s var(--ease-out);
}
.rule-in.in::before { transform: scaleX(1); }

@media (max-width: 900px) {
  .sticky-story { grid-template-columns: 1fr; }
  .sticky-aside { position: static; }
  .sticky-steps { gap: 48px; }
  .sticky-step { padding-left: 66px; }
  .sticky-step-num { width: 48px; height: 48px; font-size: .95rem; }
  .sticky-steps::before { left: 24px; }
  .breaker { min-height: 62vh; }
}

/* Reduced motion: strip the cinematic layer back to a plain page */
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; opacity: .1; }
  .js .media-frame.reveal img,
  .js .media-frame.reveal.in img { clip-path: inset(0 0 0 0); }
  .js .lines.reveal > span > i,
  .js .lines.reveal.in > span > i { transform: none; }
  [data-parallax] { transform: none !important; }
  .media-frame [data-parallax],
  .hero-media [data-parallax],
  .page-hero-media [data-parallax],
  .cta-band-media [data-parallax] { transform: scale(1.02) !important; }
  .scroll-progress { display: none; }
}

/* ==========================================================================
   24. INSTAGRAM GALLERY
   Two modes, same shell: a curated grid of local images, or a third-party
   live widget once one is configured in main.js.
   ========================================================================== */
.ig-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.ig-handle {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: -.035em;
  display: flex;          /* block-level, or it flows inline beside the eyebrow */
  align-items: center;
  gap: 14px;
}
.ig-handle svg { width: .78em; height: .78em; color: var(--rose); flex: none; }

.ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, .9vw, 14px);
}
.ig-tile {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--ink-3);
  display: block;
}
.ig-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out), filter .5s;
}
.ig-tile::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,8,11,.62), transparent 55%);
  opacity: 0;
  transition: opacity .45s;
}
.ig-tile .ig-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  opacity: 0;
  transform: scale(.75);
  transition: opacity .4s, transform .55s var(--ease-out);
  color: #fff;
}
.ig-tile .ig-mark svg { width: 26px; height: 26px; }
.ig-tile:hover img { transform: scale(1.08); }
.ig-tile:hover::after,
.ig-tile:hover .ig-mark { opacity: 1; }
.ig-tile:hover .ig-mark { transform: scale(1); }

/* Live-widget mode: the provider's iframe drops straight in here */
.ig-embed { min-height: 260px; }
.ig-embed iframe { width: 100%; border: 0; overflow: hidden; display: block; }

@media (max-width: 760px) {
  .ig-grid { grid-template-columns: repeat(2, 1fr); }
  .ig-head { align-items: flex-start; }
}
