/* Pak Afghan Restaurant: hero (#top). Loaded after styles.css.
   On desktops (at least 1024 × 680, motion allowed) the hero is 170vh tall and its stage pins
   while hero.js closes the photo into an onion-dome doorway and composes a poster around it:
   "Pak" to the left, "Afghan" to the right, echo arches receding behind. Everywhere else it is
   one screen tall, with a lighter scroll exit (the photo scales and darkens, the title lifts).

   Performance: every layer stays about one screen in size and is never scaled up by more than
   a quarter. The doorway is a clip-path on the photo's window (hero.js rewrites one path per
   frame); the ink surround is the stage's own background, painted once; the outline and echo
   arches are drawn at their resting size by CSS transitions. */

/* 6. Hero ------------------------------------------------------------------ */
.hero {
  /* Top of the doorway arch (hero.js sets the exact value): the star above it clears the header */
  --door-top: max(17vh, calc(var(--header-h) + 72px));
  position: relative;
  background: var(--ink-950);
}

.hero__stage {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: clip;
  background: #1f1a18;
}

/* The doorway pin: the stage holds the screen for the first 70vh of scroll, then hands over
   to the marquee with no gap. Keep this query in step with doorQuery in hero.js. */
@media (min-width: 1024px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .js .hero {
    height: 170vh;
    height: 170svh;
  }
  .js .hero__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 0;
  }
}

/* ---------- The window: photo, shade, smoke and veil ----------
   On desktops hero.js clips it to the arch; it is never transformed itself. */
.hero__window {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* One composited layer: the photo with its shade (and the watermark inside the shade) painted
   together. CSS gives it the entrance settle and the slow push (scale, translate); hero.js adds
   only the pointer parallax and, on phones, the scroll scale (transform). */
.hero__media {
  position: absolute;
  inset: -12px;
  background: #484040;
  transform-origin: 62% 58%;
  will-change: transform;
  animation: hero-push 28s linear both;
  animation-delay: var(--intro-delay);
}
@keyframes hero-push {
  0% { scale: 1.12; translate: 0 0; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  9% { scale: 1; translate: 0 0; animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  100% { scale: 1.1; translate: -1.1% -.7%; }
}
.hero__img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 58% 50%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(11, 10, 8, .78) 0%, rgba(11, 10, 8, 0) 24%),
    linear-gradient(0deg, var(--ink-950) 0%, rgba(11, 10, 8, .8) 24%, rgba(11, 10, 8, .2) 56%, rgba(11, 10, 8, 0) 70%),
    linear-gradient(90deg, rgba(11, 10, 8, .82) 0%, rgba(11, 10, 8, .45) 40%, rgba(11, 10, 8, 0) 72%),
    radial-gradient(130% 100% at 66% 38%, transparent 40%, rgba(11, 10, 8, .6) 100%);
  pointer-events: none;
}

.hero__watermark {
  position: absolute;
  top: 44%;
  right: -3vw;
  font-size: clamp(9rem, 30vw, 30rem);
  line-height: 1.5;
  white-space: nowrap;
  color: var(--gold-400);
  opacity: .08;
  pointer-events: none;
  user-select: none;
  translate: 0 -50%;
}

/* Smoke rising off the grill: soft gradient wisps, paused off screen (hero.js adds .hero--still) */
.hero__smoke {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  animation: fade-in 3s var(--ease-out) backwards;
  animation-delay: calc(var(--intro-delay) + .6s);
}
.hero__smoke i {
  position: absolute;
  bottom: 16%;
  left: var(--x, 40%);
  width: var(--w, 26vw);
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(48% 40% at 50% 64%, rgba(214, 222, 236, .12), transparent 70%),
    radial-gradient(34% 28% at 40% 36%, rgba(214, 222, 236, .08), transparent 72%),
    radial-gradient(28% 24% at 62% 20%, rgba(196, 208, 228, .06), transparent 74%);
  opacity: 0;
  transform-origin: 50% 100%;
  animation: hero-smoke var(--t, 18s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
}
.hero__smoke i:nth-child(1) { --x: 26%; --w: max(25vw, 210px); --t: 17s; --delay: -3s; }
.hero__smoke i:nth-child(2) { --x: 42%; --w: max(29vw, 240px); --t: 22s; --delay: -10s; }
.hero__smoke i:nth-child(3) { --x: 57%; --w: max(25vw, 210px); --t: 19s; --delay: -15s; }
@keyframes hero-smoke {
  0% { opacity: 0; transform: translate3d(0, 12%, 0) scale(.62) rotate(0deg); }
  20% { opacity: 1; }
  68% { opacity: .75; }
  100% { opacity: 0; transform: translate3d(-9%, -64%, 0) scale(1.2) rotate(-7deg); }
}
.hero--still .hero__smoke i,
.hero--still .hero__cue-line::after { animation-play-state: paused; }

/* Ink veil: lifts off the photo in the entrance; darkens it as the hero scrolls away on phones */
.hero__veil {
  position: absolute;
  inset: 0;
  background: var(--ink-950);
  opacity: 0;
  pointer-events: none;
  animation: hero-unveil 2.4s var(--ease-out) backwards; /* no fill afterwards, so its layer is released */
  animation-delay: var(--intro-delay);
}
@keyframes hero-unveil {
  from { opacity: .85; }
}
.hero:not(.hero--door) .hero__veil { will-change: opacity; }

/* ---------- The doorway (desktop) ----------
   The surround is the stage's own background: ink, a faint jali and warm light spilling out of
   the doorway across the floor. It shows wherever the window's arch clip leaves the stage bare. */
.hero--door .hero__stage {
  background:
    radial-gradient(48% 24% at 50% 100%, rgba(232, 116, 42, .24), transparent 74%),
    radial-gradient(92% 36% at 50% 100%, rgba(216, 181, 109, .08), transparent 72%),
    radial-gradient(30% 60% at 50% 100%, rgba(232, 116, 42, .1), transparent 72%),
    var(--ink-950);
}
.hero--door .hero__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--jali, none) 50% 100% / 56px 56px;
  opacity: .055;
  -webkit-mask-image: radial-gradient(70% 96% at 50% 100%, #000 34%, transparent 100%);
  mask-image: radial-gradient(70% 96% at 50% 100%, #000 34%, transparent 100%);
  pointer-events: none;
}
/* Half closed, the shade eases back so the photo in the arch reads clearly (a CSS transition) */
.hero--door .hero__shade { transition: opacity .9s var(--ease-out); }
.hero--closing .hero__shade { opacity: .4; }

/* Gold double outline, star and echo arches: resting size, never scaled; drawn by transitions */
.hero__arch { display: none; }
.hero--door .hero__arch {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 4;
  display: block;
  width: auto;
  max-width: none;
  height: calc(100% - var(--door-top));
  aspect-ratio: 100 / 172;
  overflow: visible;
  opacity: 0;
  translate: -50% 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-out);
}
.hero--drawn .hero__arch { opacity: 1; }
.hero__arch-line,
.hero__echo path {
  stroke-width: calc(1.3 * var(--hero-u, .28));
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .45s var(--ease-in-out);
}
.hero__arch-line--outer { opacity: .45; }
/* Echoes keep a hairline whatever their scale */
.hero__echo path { stroke-width: calc(1.1 * var(--hero-u, .28) / var(--k, 1)); }
.hero__echo:nth-child(1) { opacity: .45; }
.hero__echo:nth-child(2) { opacity: .25; }
.hero__echo:nth-child(3) { opacity: .12; }
.hero--drawn .hero__arch-line {
  stroke-dashoffset: 0;
  transition-duration: 1.1s;
}
.hero--drawn .hero__echo path {
  stroke-dashoffset: 0;
  transition-duration: 1.2s;
}
.hero--drawn .hero__echo:nth-child(1) path { transition-delay: .35s; }
.hero--drawn .hero__echo:nth-child(2) path { transition-delay: .6s; }
.hero--drawn .hero__echo:nth-child(3) path { transition-delay: .85s; }
.hero__arch-star {
  fill: var(--gold-200);
  opacity: 0;
  transform: rotate(-90deg) scale(0);
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transition: opacity .3s var(--ease-out), transform .4s var(--ease-out);
}
.hero--drawn .hero__arch-star {
  opacity: 1;
  transform: none;
  transition-duration: .6s, .9s;
  transition-delay: .75s;
}

.hero__embers {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
  animation: fade-in 2.4s var(--ease-out) backwards;
  animation-delay: calc(var(--intro-delay) + .55s);
}

/* ---------- Framed first view (desktop) ----------
   A thin gold frame between the header and the strip, khatam stars at its corners. In the
   doorway its four edges and corners drift outward and fade as the echo arches take over. */
.hero__frame { display: none; }
@media (min-width: 1024px) {
  .hero__frame {
    --frame-inset: clamp(14px, 1.6vw, 28px);
    position: absolute;
    top: var(--header-h);
    right: var(--frame-inset);
    bottom: var(--strip-h, 72px);
    left: var(--frame-inset);
    z-index: 6;
    display: block;
    pointer-events: none;
    animation: fade-in 1.6s var(--ease-out) backwards;
    animation-delay: calc(var(--intro-delay) + 1.1s);
  }
  .hero__edge {
    position: absolute;
    background: rgba(216, 181, 109, .3);
  }
  .hero__edge--top { top: 0; right: 0; left: 0; height: 1px; }
  .hero__edge--bottom { right: 0; bottom: 0; left: 0; height: 1px; }
  .hero__edge--left { top: 0; bottom: 0; left: 0; width: 1px; }
  .hero__edge--right { top: 0; right: 0; bottom: 0; width: 1px; }
  .hero__corner {
    position: absolute;
    width: 11px;
    height: 11px;
  }
  .hero__corner::before,
  .hero__corner::after {
    content: "";
    position: absolute;
    inset: 1.6px;
    background: var(--gold-400);
  }
  .hero__corner::after { transform: rotate(45deg); }
  .hero__corner--tl { top: -5px; left: -5px; }
  .hero__corner--tr { top: -5px; right: -5px; }
  .hero__corner--br { right: -5px; bottom: -5px; }
  .hero__corner--bl { bottom: -5px; left: -5px; }
  .hero--door .hero__edge,
  .hero--door .hero__corner { will-change: transform, opacity; }
}

/* ---------- Copy ---------- */
.hero__inner {
  position: relative;
  z-index: 7;
  align-self: end;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding:
    calc(var(--header-h) + clamp(28px, 6vh, 72px))
    max(var(--gutter), env(safe-area-inset-right))
    0
    max(var(--gutter), env(safe-area-inset-left));
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55em 1em;
}
/* Each separator travels with the word after it, so a wrap never strands one */
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 1em;
  white-space: nowrap;
}
.hero__sep {
  width: 4px;
  height: 4px;
  background: var(--gold-600);
  transform: rotate(45deg);
}

.hero__lockup {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(14px, 2.4vh, 26px);
}

.hero__title {
  position: relative;
  margin: 0 0 0 -.045em;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, min(14vw, 24vh), 17.5rem);
  font-weight: 500;
  line-height: .8;
  letter-spacing: -.028em;
  white-space: nowrap;
  color: var(--ivory);
  text-shadow: 0 .04em .5em rgba(11, 10, 8, .35);
}
.hero__word { display: block; }
.hero__w { display: inline-block; }
.hero__ch {
  display: inline-block;
  overflow: hidden;
  padding: .1em .03em .2em;
  margin: -.1em -.03em -.2em;
  vertical-align: top;
}
.hero__ch > span {
  display: inline-block;
  transform-origin: 0 100%;
  animation: hero-letter 1.15s var(--ease-out) both;
  animation-delay: calc(var(--intro-delay) + .12s + var(--i, 0) * 70ms);
}
@keyframes hero-letter {
  from { transform: translate3d(0, 112%, 0) rotate(7deg); }
  to { transform: none; }
}
/* Once risen, the letters drop their animations so the gold foil can clip to them */
.hero--settled .hero__ch > span { animation: none; }

/* Gold-foil sheen: hero.js lays a copy of the letters over the title and sweeps light across it once */
.hero__foil {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  background: linear-gradient(100deg, transparent 0 35%, rgba(168, 130, 62, .9) 41%, #e6c98a 46%, #fffaf0 50%, #d8b56d 54%, rgba(168, 130, 62, .9) 59%, transparent 65% 100%) 100% 0 / 280% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  animation: hero-foil 1.5s var(--ease-in-out) both;
  animation-delay: calc(var(--intro-delay) + 1.45s);
}
.hero__foil .hero__ch > span { animation: none; }
@keyframes hero-foil {
  to { background-position: 0 0; }
}

/* Gold Nastaliq seal above the end of the wordmark, inked in from the right (it reads right to left) */
.hero__script {
  position: absolute;
  right: .1em;
  bottom: calc(100% + .22em); /* clear of the title: the tail and dots of پ hang deep */
  /* Noto Nastaliq reaches far above and below its line (the tail and dots of پ); the gold clipped
     to the text needs room there. Equal negative margins keep the glyphs where they were. */
  padding: .55em .2em 1.05em;
  margin: -.55em -.2em -1.05em;
  font-size: clamp(2.3rem, 4.6vw, 5.6rem);
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  animation: hero-ink 1.5s var(--ease-out) backwards;
  animation-delay: calc(var(--intro-delay) + .78s);
}
@keyframes hero-ink {
  from { clip-path: inset(-20% -6% -20% 100%); }
  to { clip-path: inset(-20% -6% -20% -6%); }
}

.hero__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 48px;
  margin-top: clamp(18px, 3.2vh, 36px);
}
.hero__tagline {
  font: italic 400 clamp(1.75rem, 3vw, 3rem)/1.08 var(--font-display);
  color: var(--ivory);
  text-wrap: balance;
}
.hero__lead {
  max-width: 36rem;
  margin-top: 12px;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.65;
  color: var(--ivory-muted);
  text-wrap: pretty;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Strip: live status, perks and the scroll cue ---------- */
.hero__strip {
  position: relative;
  z-index: 7;
  margin-top: clamp(28px, 5vh, 56px);
}
/* Its shading and hairline fade on their own in the doorway (hero.js sets the opacity) */
.hero__strip-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 10, 8, .2), rgba(11, 10, 8, .6));
  pointer-events: none;
}
/* Gold hairline, drawn out from the centre */
.hero__strip-bg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 181, 109, .4) 22%, rgba(241, 226, 184, .55) 50%, rgba(216, 181, 109, .4) 78%, transparent);
  animation: hero-rule 1.6s var(--ease-out) backwards;
  animation-delay: calc(var(--intro-delay) + 1.05s);
}
@keyframes hero-rule {
  from { transform: scaleX(0); }
}
.hero__strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(20px, 3vw, 44px);
  max-width: calc(var(--container) + 2 * var(--gutter));
  min-height: 72px;
  margin-inline: auto;
  padding: 14px max(var(--gutter), env(safe-area-inset-right)) 14px max(var(--gutter), env(safe-area-inset-left));
}
.hero__perks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 .75rem/1.3 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory-muted);
}
.hero__perks li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero__perks li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  background: var(--gold-600);
  transform: rotate(45deg);
}
/* Shown only in the doorway poster */
.hero__address {
  display: none;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ivory-muted);
}

.hero__cue {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin-left: auto;
  font: 500 .75rem/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-muted);
  transition: color .3s var(--ease-out);
}
.hero__cue:active { color: var(--gold-200); }
@media (hover: hover) and (pointer: fine) {
  .hero__cue:hover { color: var(--gold-200); }
}
.hero__cue-line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: color-mix(in srgb, var(--gold-400) 25%, transparent);
}
.hero__cue-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 14px;
  background: var(--gold-200);
  animation: cue-drop 2.2s var(--ease-in-out) infinite;
}
@keyframes cue-drop {
  from { transform: translateY(-14px); }
  to { transform: translateY(40px); }
}

/* Entrance choreography (ends visible, even without JS; no fill afterwards, so no layer is kept) */
[data-hero-in] {
  animation: hero-in 1.1s var(--ease-out) backwards;
  animation-delay: calc(var(--intro-delay) + var(--d, 0s));
}
@keyframes hero-in {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
}
@keyframes fade-in {
  from { opacity: 0; }
}

/* ---------- The doorway poster ----------
   .hero--split: the two words leave the flow and stand at their resting places in the side
   zones; hero.js moves them there from the title with FLIP transforms (set directly on each
   word, promoted only while they travel), and the h1 keeps its height so the first view does
   not change. .hero--rest: the reused status, perks, tagline and calls to action stand in the
   zones under the words (switched while they are faded out). .hero--gilded: the words have
   arrived and turn to gold foil with one sheen. */
.hero--split .hero__inner {
  position: static;
  z-index: 7;
}
.hero--split .hero__lockup,
.hero--split .hero__title { position: static; }
.hero--split .hero__title { height: var(--title-h); }
/* The strip keeps its height when its contents move into the right zone */
.hero--split .hero__strip { height: var(--strip-h); }
.hero--split .hero__w {
  position: absolute;
  top: var(--word-y);
  /* Room around the letters, so the gold clipped to them reaches every ascender and descender
     (the box is only the .8 line box). The negative margins and the matching transform origin
     keep the letters, and the point they scale about, exactly where the layout places them. */
  padding: .12em .06em .32em;
  margin: -.12em -.06em -.32em;
  font-size: var(--word-size);
  transform-origin: .06em .12em;
}
.hero--split .hero__w:first-child { left: var(--pak-x); }
.hero--split .hero__w:last-child { left: var(--afg-x); }
.hero--split .hero__script {
  top: var(--script-y);
  right: auto;
  bottom: auto;
  left: var(--script-x);
  font-size: var(--script-size);
  transform-origin: .2em .55em; /* the glyphs' box, inside the paint room */
}
/* Nothing in the title shows until hero.js has placed it (no word ever stands at an unplaced origin) */
.hero--split:not(.hero--placed) .hero__w,
.hero--split:not(.hero--placed) .hero__script,
.hero--split:not(.hero--placed) .hero__foil { visibility: hidden; }
.hero--moving .hero__w,
.hero--moving .hero__script { will-change: transform, opacity; }
.hero--door .hero__eyebrow,
.hero--door .hero__row,
.hero--door .hero__strip-inner,
.hero--door .hero__strip-bg { will-change: opacity; }
/* In the doorway the entrance sheen runs on the words themselves once their letters have settled
   (a clipped copy would paint its positioned letters at its own origin) */
.hero--split .hero__foil { display: none; }
.hero--sheen .hero__w {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  background: linear-gradient(100deg, var(--ivory) 0 35%, rgba(168, 130, 62, .9) 41%, #e6c98a 46%, #fffaf0 50%, #d8b56d 54%, rgba(168, 130, 62, .9) 59%, var(--ivory) 65% 100%) 100% 0 / 280% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: hero-sheen 1.5s var(--ease-in-out) both;
}
.hero--sheen .hero__w:last-child { animation-delay: .22s; }
@keyframes hero-sheen {
  to { background-position: 0 0; }
}

.hero--rest .hero__eyebrow {
  position: absolute;
  top: var(--eyebrow-y);
  right: calc(100% - var(--zone-l));
  max-width: var(--zone-w);
  justify-content: flex-end;
}
/* "Halal" is in the perks opposite, so the label above "Pak" keeps the other two */
.hero--rest .hero__eyebrow > span:first-child,
.hero--rest .hero__eyebrow > span:first-child + .hero__tag > .hero__sep { display: none; }
.hero--rest .hero__row {
  position: absolute;
  top: var(--detail-y);
  right: calc(100% - var(--zone-l));
  width: var(--zone-w);
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
  gap: clamp(14px, 1.6vh, 22px);
}
.hero--rest .hero__copy { text-align: right; }
.hero--rest .hero__tagline { font-size: var(--tagline-size); }
.hero--rest .hero__lead,
.hero--rest .hero__cue { display: none; }
.hero--rest .hero__ctas {
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 10px;
}
.hero--rest .hero__ctas .btn {
  --btn-h: 48px;
  padding: 0 1.2em;
}
/* Narrow zones: the two calls to action stack at one width */
.hero--stack .hero__ctas {
  display: grid;
  justify-items: stretch;
}
.hero--rest .hero__strip-inner {
  position: absolute;
  top: calc(var(--detail-y) - var(--strip-y));
  left: var(--zone-r);
  display: grid;
  justify-items: start;
  gap: clamp(12px, 1.4vh, 18px);
  width: var(--zone-w);
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
}
.hero--rest .hero__perks {
  flex-direction: column;
  gap: 9px;
}
.hero--rest .hero__address { display: block; }
.hero--narrow .hero__address { display: none; }

.hero--gilded .hero__w {
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  background: linear-gradient(100deg, #a8823e 0%, #f1e2b8 13%, #c9a052 25%, #f6e7bf 35%, #b88f45 43%, #fffaf0 50%, var(--ivory) 57% 100%) 100% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  animation: hero-gild 1.5s var(--ease-in-out) forwards;
}
@keyframes hero-gild {
  to { background-position: 0 0; }
}

/* ---------- Phones and tablets (portrait): a cover layout ----------
   The photo is smoke above and kebabs below, so the wordmark sits high over the smoke,
   the call to action low over the shade, and the food shows between them. */
@media (max-width: 1023px) {
  .hero__inner {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    padding-top: calc(var(--header-h) + clamp(14px, 4vh, 48px));
  }
  .hero__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    margin-top: auto;
    padding-top: clamp(24px, 5vh, 56px);
  }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 10, 8, .86) 0%, rgba(11, 10, 8, .5) 26%, rgba(11, 10, 8, 0) 46%),
      linear-gradient(0deg, var(--ink-950) 0%, rgba(11, 10, 8, .88) 30%, rgba(11, 10, 8, .35) 52%, rgba(11, 10, 8, 0) 64%),
      radial-gradient(120% 70% at 50% 50%, transparent 50%, rgba(11, 10, 8, .5) 100%);
  }
  .hero__smoke i { bottom: 34%; }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero__inner { padding-bottom: clamp(8px, 2vh, 32px); }
  /* The wordmark spans the column, so the Nastaliq anchors to the right edge, clear of the eyebrow */
  .hero__lockup { width: 100%; margin-top: clamp(18px, 2.6vh, 32px); }
  .hero__title { font-size: min(18.5vw, 9rem); }
  .hero__script { font-size: min(7.4vw, 3.8rem); }
  .hero__tagline { font-size: clamp(2rem, 4.8vw, 2.7rem); }
  .hero__lead { max-width: 34rem; font-size: 1.0625rem; }
  .hero__img { object-position: 44% 50%; }
  .hero__watermark { top: 56%; right: -12vw; font-size: 46vw; }
  .hero__strip-inner { justify-content: space-between; gap: 10px 24px; }
  .hero__perks { gap: 8px 20px; letter-spacing: .12em; }
  .hero__cue { display: none; }
}

@media (max-width: 639px) {
  .hero__eyebrow { gap: .5em .75em; font-size: .75rem; letter-spacing: .16em; }
  .hero__tag { gap: .75em; }
  .hero__lockup { width: 100%; margin-top: 14px; }
  .hero__title { font-size: min(25vw, 8.4rem); line-height: .84; }
  .hero__w { display: block; }
  /* Beside the short first word */
  .hero__script {
    top: .06em;
    bottom: auto;
    right: 0;
    font-size: min(11vw, 3.1rem);
  }
  .hero__watermark { top: 58%; right: -34vw; font-size: 64vw; }
  .hero__tagline { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .hero__lead { margin-top: 10px; font-size: 1rem; line-height: 1.6; }
  .hero__ctas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hero__ctas .btn { --btn-h: 52px; width: 100%; }
  .hero__strip { margin-top: 24px; }
  /* Status on its own line, then the perks as a three-column spec bar with hairline dividers */
  .hero__strip-inner {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-height: 0;
    padding-block: 16px 18px;
  }
  .hero__perks {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    width: 100%;
    gap: 0;
    font-size: .75rem;
    line-height: 1.35;
    letter-spacing: .12em;
  }
  .hero__perks li {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding-inline: 4px;
    text-align: center;
    text-wrap: balance;
  }
  .hero__perks li:nth-child(2) {
    padding-inline: 14px;
    border-inline: 1px solid color-mix(in srgb, var(--gold-400) 22%, transparent);
  }
  .hero__cue { display: none; }
  .hero__smoke i { --w: 64vw; }
}
@media (max-width: 359px) {
  .hero__perks { letter-spacing: .08em; }
  .hero__perks li { padding-inline: 2px; }
  .hero__perks li:nth-child(2) { padding-inline: 10px; }
}

/* Short screens without the doorway (landscape phones): one compact block, CTAs in a row */
@media (max-height: 700px) and (min-width: 640px) {
  .hero__lead { display: none; }
}
@media (max-height: 560px) and (max-width: 1023px) {
  .hero__inner {
    display: block;
    align-self: end;
    padding-top: calc(var(--header-h) + 8px);
    padding-bottom: 0;
  }
  .hero__eyebrow { font-size: .75rem; letter-spacing: .2em; }
  .hero__lockup { width: fit-content; margin-top: 10px; }
  .hero__title { font-size: max(3.2rem, 20vh); font-size: max(3.2rem, 20svh); line-height: .82; }
  .hero__w { display: inline-block; }
  /* Beside the wordmark rather than above it, where the eyebrow is */
  .hero__script {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 100%;
    font-size: max(1.6rem, 8.5vh);
    translate: .35em -.93em; /* the paint room makes the box taller, so offset in em */
  }
  .hero__lead { display: none; }
  .hero__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px 28px;
    margin-top: 14px;
    padding-top: 0;
  }
  .hero__tagline { font-size: 1.4rem; }
  .hero__ctas { display: flex; flex-wrap: nowrap; gap: 10px; }
  .hero__ctas .btn { --btn-h: 46px; width: auto; padding: 0 1.3em; }
  .hero__strip { margin-top: 14px; }
  .hero__strip-inner {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px 26px;
    min-height: 0;
    padding-block: 10px 12px;
  }
  .hero__perks {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    gap: 20px;
    letter-spacing: .12em;
  }
  .hero__perks li { display: inline-flex; gap: 10px; padding: 0; border: 0; white-space: nowrap; }
  .hero__perks li:nth-child(2) { padding: 0; border: 0; }
  .hero__cue { display: none; }
}
@media (max-height: 560px) and (max-width: 799px) {
  .hero__perks { display: none; }
}

/* Reduced motion: static and complete */
@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .hero__veil,
  .hero__smoke,
  .hero__embers,
  .hero__frame,
  .hero__ch > span,
  .hero__script,
  .hero__strip-bg::before,
  [data-hero-in] { animation: none; }
  .hero__media { will-change: auto; }
  .hero__smoke i {
    opacity: .55;
    animation: none;
    transform: translate3d(0, -18%, 0) scale(1.05);
    will-change: auto;
  }
  .hero__cue-line::after { animation: none; }
  .hero__foil { display: none; }
}
