/* Pak Afghan: story module.
   The dish-name marquee (#marquee-root), the story section (#story) and the special offer card (#offer). */

/* ---------- Module tokens (shared tokens with standalone fallbacks) ---------- */

#marquee-root,
#story,
#offer {
  --st-ink: var(--ink-950, #0b0a08);
  --st-ink-900: var(--ink-900, #12100d);
  --st-ember-ink: var(--tint-ember, #140d09);
  --st-ivory: var(--ivory, #f3ecdf);
  --st-muted: var(--ivory-muted, #bdb3a2);
  --st-gold-200: var(--gold-200, #f1e2b8);
  --st-gold: var(--gold-400, #d8b56d);
  --st-gold-600: var(--gold-600, #a8823e);
  --st-gold-grad: var(--gold-gradient, linear-gradient(100deg, #a8823e 0%, #f1e2b8 30%, #c9a052 52%, #f6e7bf 70%, #a8823e 100%));
  /* A narrow band of light that crosses gold type once after it is revealed (the foil sheen). */
  --st-sheen: linear-gradient(100deg, rgba(255, 251, 240, 0) 18%, rgba(255, 251, 240, .92) 50%, rgba(255, 251, 240, 0) 82%);
  --st-ember: var(--ember-500, #e8742a);
  --st-ember-700: var(--ember-700, #b4471a);
  --st-display: var(--font-display, 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif);
  --st-body: var(--font-body, 'Jost', 'Avenir Next', system-ui, sans-serif);
  --st-script: var(--font-script, 'Noto Nastaliq Urdu', serif);
  --st-ease: var(--ease-out, cubic-bezier(.16, 1, .3, 1));
  --st-gutter: var(--gutter, clamp(16px, 4vw, 56px));
  --st-container: var(--container, 1320px);
  --st-pad: var(--section-pad, clamp(64px, 10vw, 168px));
  --st-hairline: var(--hairline, 1px solid color-mix(in srgb, #d8b56d 28%, transparent));
  --st-line-color: color-mix(in srgb, var(--st-gold) 28%, transparent);
  --st-shadow: var(--shadow-deep, 0 40px 120px rgb(0 0 0 / .55));
  /* Tracking for uppercase labels; phones cap it at .2em. */
  --st-track: .24em;
  /* Ogee arch (as in the logo's dome), drawn 100 units wide. Sized "100% auto" it keeps its
     proportions at any frame height; the outline in story.js follows the same path. */
  --st-arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 300'%3E%3Cpath d='M0 300V62C0 34 22 20 36 13C44 9 48 5 50 0C52 5 56 9 64 13C78 20 100 34 100 62V300Z'/%3E%3C/svg%3E");
  /* Girih lattice of eight-point stars (the jali). The faint version is baked at 4% for paper. */
  --st-jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d8b56d' stroke-width='1'%3E%3Crect x='30' y='30' width='36' height='36'/%3E%3Crect x='30' y='30' width='36' height='36' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v22.5M48 73.5V96M0 48h22.5M73.5 48H96M30 30L4 4M66 30L92 4M30 66L4 92M66 66l26 26M-8 0l8-8 8 8-8 8zM88 0l8-8 8 8-8 8zM-8 96l8-8 8 8-8 8zM88 96l8-8 8 8-8 8z'/%3E%3C/g%3E%3C/svg%3E");
  --st-jali-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23d8b56d' stroke-opacity='.04' stroke-width='1'%3E%3Crect x='30' y='30' width='36' height='36'/%3E%3Crect x='30' y='30' width='36' height='36' transform='rotate(45 48 48)'/%3E%3Cpath d='M48 0v22.5M48 73.5V96M0 48h22.5M73.5 48H96M30 30L4 4M66 30L92 4M30 66L4 92M66 66l26 26M-8 0l8-8 8 8-8 8zM88 0l8-8 8 8-8 8zM-8 96l8-8 8 8-8 8zM88 96l8-8 8 8-8 8z'/%3E%3C/g%3E%3C/svg%3E");
}

@media (max-width: 639px) {
  #marquee-root,
  #story,
  #offer {
    --st-track: .2em;
  }
}

/* ---------- Shared pieces ---------- */

.st-container {
  width: min(calc(100% - 2 * var(--st-gutter)), var(--st-container));
  margin-inline: auto;
}

.st-star {
  flex: none;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.st-eyebrow {
  display: flex;
  align-items: center;
  gap: .9em;
  margin: 0;
  font: 500 .75rem/1.3 var(--st-body);
  letter-spacing: var(--st-track);
  text-transform: uppercase;
  color: var(--st-gold);
}

.st-eyebrow > span {
  flex: none;
}

.st-eyebrow .st-star {
  width: 12px;
  height: 12px;
}

/* Trailing gold rule, as on the other sections' eyebrows; it draws out from the label and is
   the part that gives way on the narrowest phones, so the label never wraps. */
.st-eyebrow::after {
  content: '';
  flex: 0 1 clamp(40px, 5vw, 80px);
  min-width: 20px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  transform-origin: 0 50%;
}

.st-armed .st-eyebrow.st-rise::after {
  transform: scaleX(0);
}

.st-armed .st-eyebrow.st-rise.st-in::after {
  transform: none;
  transition: transform 1s var(--st-ease) calc(var(--st-d, 0ms) + 140ms);
}

/* Gold foil for a few key words. The sheen band rests off to the right until .st-in sends it
   across once; padding stops italic overhangs being clipped by the text clip. */
.st-gold {
  padding-inline-end: .14em;
  margin-inline-end: -.14em;
  color: var(--st-gold-200);
  background-image: var(--st-sheen), var(--st-gold-grad);
  background-size: 45% 100%, 100% 100%;
  background-position: 190% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@keyframes st-sheen {
  from { background-position: 190% 0, 0 0; }
  to { background-position: -90% 0, 0 0; }
}

.st-nastaliq {
  font-family: var(--st-script);
  font-weight: 400;
  font-style: normal;
  line-height: 1.9;
  color: var(--st-gold-200);
}

/* Arch-masked figure: a frame (image), an optional dark matte behind it and a gold outline.
   The photo is 14% taller than its frame so story.js can move it inside the arch; it carries its
   own placeholder colour, so the masked frame has no background of its own.
   Chrome's GPU raster can leave a 1px unmasked strip along the edges of a masked box while what
   is inside it moves under fractional transforms, so every masked box keeps a 1px inset clip in
   all states (the reveal clips below include it). */
.st-fig__frame,
.st-fig__matte {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: var(--st-arch) center top / 100% auto no-repeat;
  mask: var(--st-arch) center top / 100% auto no-repeat;
  clip-path: inset(1px);
}

.st-fig__frame img {
  position: absolute;
  left: 0;
  top: -7%;
  display: block;
  width: 100%;
  max-width: none;
  height: 114%;
  object-fit: cover;
}

/* Outline paths are traced in pixels by story.js (viewBox = box size), so 1 unit = 1px.
   The outline is wider than its frame, so the global svg max-width must not cap it. */
.st-fig__line {
  position: absolute;
  max-width: none;
  overflow: visible;
  fill: none;
  stroke: var(--st-gold);
  stroke-opacity: .62;
  pointer-events: none;
}

.st-fig__line path {
  stroke-width: 1;
  stroke-dasharray: 1 1;
  stroke-dashoffset: 0;
}

/* ---------- Reveals (armed by story.js; content is visible without them) ----------
   Text rises 28px, display lines rise out of a mask, images wipe up while the photo settles from
   1.12 (tweened in story.js), arch outlines and gold rules draw, gold words catch one sheen.
   70ms stagger via --st-d. */

.st-line {
  display: block;
  overflow: hidden;
  /* Room for descenders and italic overhangs inside the mask. */
  padding: .04em .12em .1em 0;
  margin: -.04em -.12em -.1em 0;
}

.st-line > span {
  display: block;
}

.st-armed .st-rise {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

.st-armed .st-rise.st-in {
  opacity: 1;
  transform: none;
  transition:
    opacity .9s var(--st-ease) var(--st-d, 0ms),
    transform .9s var(--st-ease) var(--st-d, 0ms);
}

.st-armed .st-line > span {
  transform: translate3d(0, 105%, 0);
}

.st-armed .st-line.st-in > span {
  transform: none;
  transition: transform 1s var(--st-ease) var(--st-d, 0ms);
}

.st-armed .st-line.st-in .st-gold {
  animation: st-sheen 1.5s cubic-bezier(.45, 0, .25, 1) calc(var(--st-d, 0ms) + 520ms) both;
}

.st-armed .st-fig .st-fig__frame {
  clip-path: inset(100% 1px 1px 1px);
}

.st-armed .st-fig .st-fig__frame img {
  scale: 1.12;
}

.st-armed .st-fig .st-fig__matte {
  opacity: 0;
}

.st-armed .st-fig .st-fig__line path {
  stroke-dashoffset: 1;
}

.st-armed .st-fig.st-in .st-fig__frame {
  clip-path: inset(1px);
  transition: clip-path 1.1s var(--st-ease) var(--st-d, 0ms);
}

/* The photo settles to 1 as a 2D scale tweened by story.js: nothing inside an arch mask may run
   a CSS animation or transition (a composited layer there can leave a hairline at the mask edge). */
.st-armed .st-fig.st-in .st-fig__frame img {
  scale: 1;
}

.st-armed .st-fig.st-in .st-fig__matte {
  opacity: 1;
  transition: opacity .7s ease var(--st-d, 0ms);
}

.st-armed .st-fig.st-in .st-fig__line path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.2s var(--st-ease) calc(var(--st-d, 0ms) + 120ms);
}

/* The Nastaliq blooms in: it sharpens from a blur while a gold glow swells and settles. */
.st-armed .st-glow {
  opacity: 0;
  filter: blur(10px) drop-shadow(0 0 0 rgba(216, 181, 109, 0));
}

.st-armed .st-glow.st-in {
  animation: st-glow-in 2.2s var(--st-ease) var(--st-d, 0ms) both;
}

@keyframes st-glow-in {
  0% {
    opacity: 0;
    filter: blur(10px) drop-shadow(0 0 0 rgba(216, 181, 109, 0));
  }
  45% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 30px rgba(241, 226, 184, .7));
  }
  100% {
    opacity: 1;
    filter: blur(0) drop-shadow(0 0 18px rgba(216, 181, 109, .38));
  }
}

/* ---------- Marquee band ---------- */

#marquee-root {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: clamp(2px, .6vw, 10px);
  padding-block: clamp(28px, 4.4vw, 68px);
  background:
    radial-gradient(70% 140% at 50% 50%, rgba(216, 181, 109, .055), transparent 70%),
    var(--st-ink);
  border-block: 1px solid var(--st-line-color);
  -webkit-user-select: none;
  user-select: none;
}

/* Inner rules complete the thin double rule above and below the band. */
#marquee-root::before,
#marquee-root::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: color-mix(in srgb, var(--st-gold) 12%, transparent);
}

#marquee-root::before { top: 5px; }
#marquee-root::after { bottom: 5px; }

.marquee-row {
  position: relative;
  display: flex;
  overflow: hidden;
  font-family: var(--st-display);
  font-size: clamp(3.1rem, 9.4vw, 9.75rem);
  line-height: 1.12;
}

/* The rows fade out at both ends under ink overlays rather than a mask, so the moving track
   (a composited layer) never sits under a mask, which can leave a hairline at the mask's edge. */
.marquee-row::before,
.marquee-row::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 1;
  width: 7%;
  pointer-events: none;
}

.marquee-row::before {
  left: 0;
  background: linear-gradient(90deg, var(--st-ink), rgba(11, 10, 8, 0));
}

.marquee-row::after {
  right: 0;
  background: linear-gradient(270deg, var(--st-ink), rgba(11, 10, 8, 0));
}

.marquee-track {
  display: flex;
  flex: none;
  width: max-content;
  will-change: transform;
}

.marquee-set {
  display: flex;
  flex: none;
  align-items: center;
  white-space: nowrap;
}

.marquee-word {
  padding-inline: .04em;
  font-weight: 500;
  letter-spacing: -.012em;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--st-gold) 82%, transparent);
  transition: color .5s ease;
}

.marquee-row--b {
  font-size: clamp(2.45rem, 6.8vw, 7.1rem);
}

.marquee-row--b .marquee-word {
  font-style: italic;
  font-weight: 400;
  -webkit-text-stroke-color: color-mix(in srgb, var(--st-ivory) 44%, transparent);
}

.marquee-star {
  flex: none;
  width: .3em;
  height: .3em;
  margin-inline: .5em;
  fill: none;
  stroke: var(--st-gold);
  color: var(--st-gold);
}

.marquee-star rect {
  vector-effect: non-scaling-stroke;
  stroke-width: 1.25px;
}

.marquee-star circle {
  fill: currentColor;
  stroke: none;
}

.marquee-row--b .marquee-star {
  opacity: .7;
}

@media (hover: hover) and (pointer: fine) {
  .marquee-word:hover {
    color: color-mix(in srgb, var(--st-gold) 85%, transparent);
  }

  .marquee-row--b .marquee-word:hover {
    color: color-mix(in srgb, var(--st-ivory) 70%, transparent);
  }
}

@supports not (-webkit-text-stroke: 1px) {
  .marquee-word {
    color: color-mix(in srgb, var(--st-gold) 30%, transparent);
  }
}

/* ---------- Story ---------- */

#story {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  /* A little under the shared section pad: the marquee above already brings its own. */
  padding-top: clamp(56px, 8vw, 132px);
  color: var(--st-ivory);
  background:
    radial-gradient(60% 45% at 82% 18%, rgba(216, 181, 109, .06), transparent 70%),
    radial-gradient(50% 40% at 8% 60%, rgba(180, 71, 26, .05), transparent 70%),
    var(--st-ink);
}

/* Jali lattice, a whisper behind the collage. */
.story-pattern {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: min(80vw, 1180px);
  height: min(150vh, 1400px);
  opacity: .05;
  pointer-events: none;
  background-image: var(--st-jali);
  background-size: 96px 96px;
  -webkit-mask-image: radial-gradient(closest-side at 62% 42%, #000, transparent);
  mask-image: radial-gradient(closest-side at 62% 42%, #000, transparent);
}

/* Phones: one column. Tablets: the lead spans, then collage and copy side by side.
   Desktop: text on the left, the collage beside it. */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "lead" "collage" "copy";
  row-gap: clamp(32px, 7vw, 60px);
}

.story-head { grid-area: head; }
.story-lead { grid-area: lead; }
.story-collage { grid-area: collage; }
.story-copy { grid-area: copy; }

.story-title {
  margin: clamp(16px, 2vw, 28px) 0 0;
  font-family: var(--st-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.5rem + 4.7vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.018em;
  color: var(--st-ivory);
  text-wrap: balance;
}

.story-title em {
  font-style: italic;
  font-weight: 400;
}

/* The lead, read in light (see story.js). */
.story-lead {
  max-width: 25em;
  margin: 0;
  font-family: var(--st-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 1.05rem + 1.2vw, 2.2rem);
  line-height: 1.42;
  color: var(--st-ivory);
  text-wrap: pretty;
}

/* Words sit at 42% until the paragraph's scroll progress (--st-p, 0 to 1) reaches them; the
   light spreads across about six words at a time. Without .st-lit every word is at full strength. */
.story-lead.st-lit .st-w {
  opacity: calc(.42 + .58 * clamp(0, (var(--st-p, 1) * (var(--st-n, 1) + 6) - var(--st-i, 0)) / 6, 1));
  transition: opacity .32s linear;
}

/* Drop cap: a gold-foil initial sunk exactly three lines. */
.story-lead::first-letter {
  -webkit-initial-letter: 3;
  initial-letter: 3;
  margin-right: .2em;
  font-weight: 500;
  color: var(--st-gold);
  background: var(--st-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@supports not ((initial-letter: 3) or (-webkit-initial-letter: 3)) {
  .story-lead::first-letter {
    float: left;
    margin: .06em .14em 0 0;
    font-size: 4.15em;
    line-height: .8;
  }
}

.story-copy {
  max-width: 46ch;
}

.story-copy p {
  margin: 0;
  font-family: var(--st-body);
  font-weight: 400;
  font-size: clamp(1.0625rem, .95rem + .3vw, 1.1875rem);
  line-height: 1.75;
  color: var(--st-muted);
}

.story-copy i {
  font-family: var(--st-display);
  font-size: 1.18em;
  color: var(--st-gold-200);
}

/* Hairline with a star at its heart; the two halves draw outward from the star. */
.story-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 132px;
  margin-top: 30px;
  color: var(--st-gold);
}

.story-rule::before,
.story-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--st-line-color);
}

.story-rule::before { transform-origin: 100% 50%; }
.story-rule::after { transform-origin: 0 50%; }

.story-rule .st-star {
  width: 10px;
  height: 10px;
}

.st-armed .story-rule::before,
.st-armed .story-rule::after {
  transform: scaleX(0);
}

.st-armed .story-rule .st-star {
  opacity: 0;
  transform: scale(.4) rotate(-45deg);
}

.st-armed .story-rule.st-in::before,
.st-armed .story-rule.st-in::after {
  transform: none;
  transition: transform 1s var(--st-ease) calc(var(--st-d, 0ms) + 150ms);
}

.st-armed .story-rule.st-in .st-star {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease var(--st-d, 0ms), transform 1s var(--st-ease) var(--st-d, 0ms);
}

/* Collage: one hero arch with two smaller arches overlapping its lower corners. Positions are a
   share of the collage box so it scales as one. Each arch parallaxes at its own depth (outer box,
   story.js) and floats gently (inner box, CSS); the photo inside moves the other way. */
.story-collage {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 100 / 106;
  margin-inline: auto;
}

.story-arch {
  position: absolute;
  margin: 0;
}

.story-arch__inner {
  position: absolute;
  inset: 0;
  animation: st-float 9s ease-in-out -2s infinite alternate paused;
}

.st-live .story-arch__inner {
  animation-play-state: running;
}

@keyframes st-float {
  from { translate: 0 -6px; }
  to { translate: 0 6px; }
}

.story-arch--a {
  left: 17%;
  top: 0;
  width: 64%;
  aspect-ratio: 1 / 1.42;
}

.story-arch--b {
  left: 0;
  top: 52%;
  z-index: 2;
  width: 39%;
  aspect-ratio: 1 / 1.3;
}

.story-arch--b .story-arch__inner {
  animation-duration: 11s;
  animation-delay: -6s;
}

.story-arch--c {
  right: 0;
  top: 36%;
  z-index: 3;
  width: 33%;
  aspect-ratio: 1 / 1.26;
}

.story-arch--c .story-arch__inner {
  animation-duration: 7.5s;
  animation-delay: -1s;
}

.story-arch__matte {
  inset: clamp(-10px, -1.2vw, -6px);
  background: var(--st-ink);
}

.story-arch__line {
  inset: clamp(-10px, -1.2vw, -6px);
  width: calc(100% + 2 * clamp(6px, 1.2vw, 10px));
  height: calc(100% + 2 * clamp(6px, 1.2vw, 10px));
}

.story-arch--a .story-arch__line {
  inset: clamp(-16px, -1.6vw, -9px);
  width: calc(100% + 2 * clamp(9px, 1.6vw, 16px));
  height: calc(100% + 2 * clamp(9px, 1.6vw, 16px));
}

.story-arch__frame img {
  filter: saturate(.92) contrast(1.04);
}

/* Facts. Phones and small tablets: a 2 × 2 grid quartered by hairlines that fade toward the
   edges, with a diamond where they cross. From 768px: one row between two drawn gold rules. */
.story-facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(56px, 8vw, 128px);
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.story-fact {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: clamp(20px, 5vw, 28px) clamp(10px, 3.4vw, 22px);
}

.story-fact:nth-child(odd) {
  padding-left: 0;
}

.story-fact::before,
.story-fact::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

/* Row divider under the top two cells, brightest where it meets the column divider. */
.story-fact:nth-child(1)::after,
.story-fact:nth-child(2)::after {
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--st-gold) 40%, transparent));
}

.story-fact:nth-child(1)::after {
  left: 0;
  right: 0;
}

.story-fact:nth-child(2)::after {
  left: 0;
  right: 0;
  transform: scaleX(-1);
}

/* Column divider beside the right-hand cells. */
.story-fact:nth-child(2)::before,
.story-fact:nth-child(4)::before {
  left: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--st-gold) 40%, transparent));
}

.story-fact:nth-child(2)::before {
  top: 0;
  bottom: 0;
}

.story-fact:nth-child(4)::before {
  top: 0;
  bottom: 0;
  transform: scaleY(-1);
}

/* Diamond where the dividers cross. */
.story-fact:nth-child(3)::after {
  top: -3.5px;
  right: -3.5px;
  width: 7px;
  height: 7px;
  background: var(--st-gold);
  transform: rotate(45deg);
}

.story-fact__star {
  display: block;
  line-height: 0;
  color: var(--st-gold);
}

.story-fact .st-star {
  width: 12px;
  height: 12px;
}

/* Values are always their true text: revealed as a mask line (.st-line) in gold foil (.st-gold),
   which rises and then catches one sheen. Nothing counts or rolls through other figures. */
.story-fact__value {
  font-family: var(--st-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 7.2vw, 2.4rem);
  line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--st-gold-200);
  white-space: nowrap;
}

.story-fact__label {
  font: 500 .75rem/1.35 var(--st-body);
  letter-spacing: var(--st-track);
  text-transform: uppercase;
  color: var(--st-muted);
}

/* Mountains at night: a wide band carrying the pull-quote, in three depths. The photo and its
   twinkling sky drift slowest (story.js also eases their scale), the quote moves with the page
   and the Nastaliq caption a little faster. */
.story-band {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: clamp(560px, 96vh, 1240px);
  min-height: clamp(560px, 96svh, 1240px);
  margin-top: clamp(28px, 9vw, 140px);
  overflow: hidden;
}

/* The photo layer moves (composited), so the band is never masked: its top and bottom melt into
   the section through ink overlays (see ::after), and the placeholder colour sits on the layer. */
.story-band__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.story-band__layer {
  position: absolute;
  left: 0;
  right: 0;
  top: -13%;
  height: 126%;
  transform-origin: 50% 70%;
  will-change: transform;
}

.story-band__img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.story-band__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--st-ink) 0%, rgba(11, 10, 8, 0) var(--st-fade, 16%)),
    linear-gradient(0deg, var(--st-ink) 0%, rgba(11, 10, 8, 0) 16%),
    linear-gradient(180deg, rgba(11, 10, 8, .55) 0%, rgba(11, 10, 8, .2) 40%, rgba(11, 10, 8, .12) 60%, rgba(11, 10, 8, .6) 86%),
    radial-gradient(90% 70% at 50% 30%, transparent 40%, rgba(11, 10, 8, .45));
}

/* Slow-twinkling stars: four tiled layers of tiny points, each breathing at its own pace. The
   layer is sized to the sky above the peaks rather than masked, so the twinkling (composited)
   never runs under a mask; the band's top fade covers its upper edge. Paused off screen (.st-live). */
.story-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 9%;
  height: 33%;
  pointer-events: none;
}

.story-sky span {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: .6;
  animation: st-twinkle 6s ease-in-out infinite alternate paused;
}

.st-live .story-sky span {
  animation-play-state: running;
}

.story-sky span:nth-child(1) {
  background-image:
    radial-gradient(1px 1px at 18px 24px, rgba(255, 250, 240, .95), transparent),
    radial-gradient(1px 1px at 71px 112px, rgba(255, 250, 240, .8), transparent),
    radial-gradient(1px 1px at 133px 51px, rgba(255, 250, 240, .9), transparent),
    radial-gradient(1px 1px at 172px 139px, rgba(255, 250, 240, .7), transparent),
    radial-gradient(1px 1px at 104px 9px, rgba(255, 250, 240, .75), transparent);
  background-size: 197px 163px;
  animation-duration: 4.6s;
}

.story-sky span:nth-child(2) {
  background-image:
    radial-gradient(1.4px 1.4px at 41px 187px, rgba(255, 250, 240, .95), transparent),
    radial-gradient(1.4px 1.4px at 229px 64px, rgba(241, 226, 184, .95), transparent),
    radial-gradient(1.2px 1.2px at 152px 141px, rgba(255, 250, 240, .85), transparent),
    radial-gradient(1.2px 1.2px at 280px 220px, rgba(255, 250, 240, .8), transparent);
  background-size: 311px 257px;
  animation-duration: 6.8s;
  animation-delay: -2.4s;
}

.story-sky span:nth-child(3) {
  background-image:
    radial-gradient(2.4px 2.4px at 97px 71px, #fff, transparent),
    radial-gradient(10px 10px at 97px 71px, rgba(255, 250, 240, .22), transparent),
    radial-gradient(2.2px 2.2px at 331px 263px, rgba(241, 226, 184, 1), transparent),
    radial-gradient(9px 9px at 331px 263px, rgba(241, 226, 184, .2), transparent),
    radial-gradient(2.2px 2.2px at 409px 140px, #fff, transparent);
  background-size: 467px 383px;
  animation-duration: 8.6s;
  animation-delay: -5.1s;
}

.story-sky span:nth-child(4) {
  background-image:
    radial-gradient(2.6px 2.6px at 212px 96px, #fff, transparent),
    radial-gradient(12px 12px at 212px 96px, rgba(241, 226, 184, .24), transparent),
    radial-gradient(1.8px 1.8px at 538px 301px, rgba(255, 250, 240, .95), transparent),
    radial-gradient(8px 8px at 538px 301px, rgba(255, 250, 240, .16), transparent);
  background-size: 613px 521px;
  animation-duration: 3.4s;
  animation-delay: -1.2s;
}

@keyframes st-twinkle {
  from { opacity: .12; }
  to { opacity: 1; }
}

/* Quote in the night sky; the Nastaliq caption rests on the dark foothills below the peaks. */
.story-quote {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-block: 0;
  padding-block: clamp(64px, 12vh, 150px) clamp(56px, 9vh, 110px);
  text-align: center;
}

.story-quote__mark {
  display: block;
  height: .42em;
  font-family: var(--st-display);
  font-style: italic;
  font-size: clamp(5rem, 9vw, 8.5rem);
  line-height: .82;
  color: var(--st-gold);
}

.story-quote__text {
  max-width: 15em;
  margin: 0 auto;
  font-family: var(--st-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4.9rem);
  line-height: 1.06;
  letter-spacing: -.01em;
  color: var(--st-ivory);
  text-shadow: 0 2px 28px rgba(0, 0, 0, .55);
  text-wrap: balance;
}

.story-quote__text p {
  margin: 0;
}

.story-quote__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: auto;
  padding-top: 48px;
}

/* Gold-foil Nastaliq with a soft glow (drop-shadow follows the letterforms). */
/* Noto Nastaliq reaches far above and below its line (the tail of ی and the dots sit about
   0.9em under the baseline), so the paint box is extended on every side with equal negative
   margins: the foil background, which only paints inside the box, then covers every stroke.
   The bottom margin gives back about .4em so the descending tail clears the gloss below. */
.story-quote__script {
  padding: .7em .45em 1em;
  margin: -.7em -.45em -.62em;
  font-size: clamp(2.3rem, 4.4vw, 4rem);
  background: var(--st-gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(216, 181, 109, .38));
}

.story-gloss {
  font: 500 .75rem/1.4 var(--st-body);
  letter-spacing: var(--st-track);
  text-transform: uppercase;
  color: var(--st-muted);
}

.story-gloss i {
  font-style: normal;
  color: var(--st-gold);
}

@media (max-width: 639px) {
  .story-band {
    --st-fade: 11%;
  }
}

@media (min-width: 640px) {
  .story-title {
    font-size: clamp(3.4rem, 1.2rem + 6.6vw, 5.4rem);
  }

  .story-grid {
    grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    grid-template-areas: "head head" "lead lead" "collage copy";
    column-gap: clamp(28px, 5vw, 56px);
    align-items: center;
  }

  .story-copy {
    padding-top: 12%;
  }

  .story-fact {
    padding-inline: clamp(14px, 3vw, 28px);
  }
}

@media (min-width: 768px) {
  .story-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* Gold rules above and below the row, drawn from the centre. */
  .story-facts::before,
  .story-facts::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--st-gold) 26%, transparent) 14%, color-mix(in srgb, var(--st-gold) 52%, transparent) 50%, color-mix(in srgb, var(--st-gold) 26%, transparent) 86%, transparent);
  }

  .story-facts::before { top: 0; }
  .story-facts::after { bottom: 0; }

  .st-armed .story-facts::before,
  .st-armed .story-facts::after {
    transform: scaleX(0);
  }

  .st-armed .story-facts.st-in::before,
  .st-armed .story-facts.st-in::after {
    transform: none;
    transition: transform 1.2s var(--st-ease);
  }

  .story-fact,
  .story-fact:nth-child(odd) {
    padding: clamp(26px, 3.2vw, 44px) clamp(14px, 2.2vw, 36px);
  }

  .story-fact:first-child {
    padding-left: 0;
  }

  .story-fact:nth-child(n)::after {
    content: none;
  }

  .story-fact:nth-child(n)::before {
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background: var(--st-line-color);
    transform: none;
  }

  .story-fact:first-child::before {
    content: none;
  }

  .story-fact__value {
    font-size: clamp(1.75rem, 3.7vw, 3.6rem);
  }
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "head collage" "lead collage" "copy collage";
    column-gap: clamp(56px, 6.5vw, 128px);
    row-gap: clamp(28px, 2.8vw, 48px);
    align-items: start;
  }

  /* Sized so "A table set between" holds one line in the text column. */
  .story-title {
    font-size: clamp(3.4rem, 6vw, 5.6rem);
  }

  .story-copy {
    padding-top: 0;
  }

  .story-collage {
    width: 100%;
    aspect-ratio: 100 / 124;
    margin-top: clamp(8px, 2vw, 32px);
  }

  .story-arch--a {
    left: 22%;
    width: 58%;
  }

  .story-arch--b {
    left: 1%;
    top: 50%;
    width: 40%;
    aspect-ratio: 1 / 1.34;
  }

  .story-arch--c {
    right: 1%;
    top: 64%;
    width: 32%;
    aspect-ratio: 1 / 1.3;
  }
}

/* Landscape phones: keep the collage within the screen height. */
@media (max-height: 560px) and (min-width: 640px) and (max-width: 1023px) {
  .story-collage {
    width: min(100%, 70vh);
    width: min(100%, 70svh);
  }
}

/* ---------- Special offer: an invitation card ----------
   A ticket in two halves: a stub holding the arch-framed soup (steam rising past its edge) and
   the invitation itself, joined by a perforation with a notch at each end. The stub sits above
   the invitation on phones and beside it from 640px. */

#offer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;
  padding-block: clamp(40px, 7vw, 112px) clamp(40px, 5vw, 88px);
  color: var(--st-ivory);
  background: var(--st-ember-ink);
}

/* Glowing charcoal beneath the card, fading up into the dark. */
.offer-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.offer-bg__img {
  position: absolute;
  left: 0;
  top: -10%;
  width: 100%;
  max-width: none;
  height: 120%;
  object-fit: cover;
  object-position: 50% 45%;
  opacity: .42;
  will-change: transform;
}

/* Fade in from the page above and out to the page below; a firelit glow behind the stub. The
   embers glow only at the bottom: an overlay in the band's own colour fades them out upward
   (an overlay, not a mask, because the photo moves). */
.offer-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--st-ink) 0%, rgba(20, 13, 9, 0) 16%, rgba(20, 13, 9, 0) 78%, var(--st-ink) 100%),
    radial-gradient(38% 48% at 30% 52%, rgba(232, 116, 42, .16), transparent 72%),
    linear-gradient(0deg, rgba(20, 13, 9, .2) 0%, rgba(20, 13, 9, .4) 9%, rgba(20, 13, 9, .85) 38%, var(--st-ember-ink) 62%);
}

.offer-card {
  --notch: 12px;
  --ring: calc(var(--notch) + 1.5px);
  --edge: color-mix(in srgb, var(--st-gold) 36%, transparent);
  --dots: color-mix(in srgb, var(--st-gold) 60%, transparent);
  /* The perforation between the halves: a row of fine gold dots. */
  --perf: radial-gradient(circle, var(--dots) 0 .9px, transparent 1.3px) 0 0 / 9px 3px repeat-x;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 76rem);
  margin-inline: auto;
}

/* The paper is masked (for the notches) so it cannot cast a shadow; this layer does instead. */
.offer-card::before {
  content: '';
  position: absolute;
  inset: 3% 2% 1%;
  z-index: -1;
  box-shadow: var(--st-shadow);
  pointer-events: none;
}

.offer-stub,
.offer-body {
  position: relative;
  isolation: isolate;
}

.offer-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--edge);
  pointer-events: none;
}

/* Hairline arcs around each notch (quarter circles once the paper's mask is applied). */
.offer-paper::before,
.offer-paper::after {
  content: '';
  position: absolute;
  width: calc(2 * var(--ring));
  height: calc(2 * var(--ring));
  border: 1px solid var(--edge);
  border-radius: 50%;
}

.offer-stub > .offer-paper {
  border-bottom: 0;
  background:
    radial-gradient(60% 55% at 50% 50%, rgba(232, 116, 42, .14), transparent 72%),
    var(--st-jali-faint) 50% 0 / 96px 96px,
    linear-gradient(170deg, #1d150f, #120d09);
  -webkit-mask:
    radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
}

.offer-stub > .offer-paper::before {
  left: calc(-1px - var(--ring));
  bottom: calc(-1 * var(--ring));
}

.offer-stub > .offer-paper::after {
  right: calc(-1px - var(--ring));
  bottom: calc(-1 * var(--ring));
}

/* The invitation half overlaps the stub by a pixel so no seam shows between them. */
.offer-body > .offer-paper {
  inset: -1px 0 0;
  border-top: 0;
  background:
    var(--perf),
    radial-gradient(70% 60% at 25% 18%, rgba(216, 181, 109, .06), transparent 70%),
    var(--st-jali-faint) 0 0 / 96px 96px,
    linear-gradient(170deg, #1a130e, #110c09);
  -webkit-mask:
    radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
  mask:
    radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) right / 51% 100% no-repeat;
}

.offer-body > .offer-paper::before {
  left: calc(-1px - var(--ring));
  top: calc(-1 * var(--ring));
}

.offer-body > .offer-paper::after {
  right: calc(-1px - var(--ring));
  top: calc(-1 * var(--ring));
}

/* Stub: the soup in its arch, centred, with room above for the steam to rise. */
.offer-stub {
  display: grid;
  justify-items: center;
  align-content: center;
  padding: 44px 24px 34px;
}

.offer-frame {
  position: relative;
  width: min(66%, 280px);
  aspect-ratio: 4 / 5;
}

/* Plinth: closes the outer arch line beneath the frame. */
.offer-frame::after {
  content: '';
  position: absolute;
  left: -14px;
  right: -14px;
  bottom: -14px;
  height: 1px;
  background: color-mix(in srgb, var(--st-gold) 55%, transparent);
}

.st-armed .offer-frame::after {
  transform: scaleX(0);
}

.st-armed .offer-frame.st-in::after {
  transform: none;
  transition: transform 1.1s var(--st-ease) calc(var(--st-d, 0ms) + 200ms);
}

/* Close in on the bowl (the photo is landscape, the arch portrait) and calm its brightness. The
   photo box is the usual one enlarged 1.32 times about the bowl (54% 46%), so no transform is
   needed for the crop and the reveal zoom can use the photo's own scale. */
.st-fig__frame .offer-frame__img {
  left: -17.28%;
  top: -23.78%;
  width: 132%;
  height: 150.48%;
  filter: brightness(.8) saturate(1.08) contrast(1.06);
}

/* Warm vignette so the bright bowl sits in the dark card. */
.offer-frame__arch::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(100% 75% at 50% 55%, transparent 38%, rgba(20, 13, 9, .72) 100%);
}

.offer-frame__line {
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
}

.offer-frame__line path {
  stroke-opacity: .85;
}

/* Steam: soft blurred wisps and two thin curls rising from the bowl, out of the arch and past
   the card's edge. Animations run only while the card is on screen (.st-live). */
.offer-steam {
  position: absolute;
  left: 12%;
  right: 12%;
  top: -46%;
  height: 96%;
  z-index: 3;
  pointer-events: none;
  transition: opacity 1.4s ease .5s;
}

.st-armed .offer-frame:not(.st-in) .offer-steam {
  opacity: 0;
}

.offer-steam span {
  position: absolute;
  bottom: 0;
  left: calc(50% + var(--x, 0%));
  opacity: 0;
  transform: translate(-50%, 0) scale(.5, .6);
  animation: offer-steam var(--dur, 8s) cubic-bezier(.33, .1, .3, 1) var(--delay, 0s) infinite paused;
}

.st-live .offer-steam span {
  animation-play-state: running;
}

.offer-steam__wisp {
  --peak: .7;
  width: var(--w, 28%);
  height: var(--h, 44%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 249, 238, .62), rgba(255, 249, 238, .2) 55%, rgba(255, 249, 238, 0));
  filter: blur(11px);
}

.offer-steam__curl {
  --peak: .6;
  width: 14%;
  height: 30%;
  border-left: 1.5px solid rgba(255, 249, 238, .55);
  border-radius: 50%;
  filter: blur(1.2px);
}

@keyframes offer-steam {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(.5, .6) rotate(0deg);
  }
  18% {
    opacity: var(--peak, .7);
  }
  60% {
    opacity: calc(var(--peak, .7) * .5);
    transform: translate(calc(-50% + var(--sway, 10%)), -95%) scale(.9, 1.1) rotate(var(--tilt, 8deg));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% - var(--sway, 10%) * .6), -190%) scale(1.3, 1.5) rotate(calc(var(--tilt, 8deg) * -1));
  }
}

/* The invitation. */
.offer-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 34px clamp(20px, 6vw, 32px) 38px;
}

/* Gold-foil ribbon with swallowtail ends, stitched edges and one glint after it appears. */
.offer-ribbon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .8em;
  margin: 0;
  padding: 1em 2em;
  overflow: hidden;
  font: 600 .75rem/1 var(--st-body);
  letter-spacing: var(--st-track);
  text-transform: uppercase;
  color: #24180a;
  /* The glint is a background band parked off the left edge until .st-in sweeps it across once. */
  background:
    linear-gradient(100deg, rgba(255, 252, 240, 0), rgba(255, 252, 240, .8), rgba(255, 252, 240, 0)) -160% 0 / 60% 100% no-repeat,
    linear-gradient(100deg, #9c7636 0%, #e6cd92 24%, #c49a4f 46%, #f3e3b6 68%, #b38a45 100%);
  clip-path: polygon(0 0, 100% 0, calc(100% - 11px) 50%, 100% 100%, 0 100%, 11px 50%);
}

.offer-ribbon::before {
  content: '';
  position: absolute;
  inset: 4px 0;
  border-block: 1px dashed rgba(36, 24, 10, .3);
  pointer-events: none;
}

.st-armed .offer-ribbon.st-in {
  animation: st-glint 1.2s cubic-bezier(.45, 0, .25, 1) calc(var(--st-d, 0ms) + 650ms) both;
}

@keyframes st-glint {
  from { background-position: -160% 0, 0 0; }
  to { background-position: 260% 0, 0 0; }
}

.offer-ribbon span {
  margin-right: calc(-1 * var(--st-track));
}

.offer-ribbon .st-star {
  width: .85em;
  height: .85em;
  color: #4d3412;
}

.offer-title {
  margin: clamp(22px, 2.6vw, 36px) 0 0;
  font-family: var(--st-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.012em;
  color: var(--st-ivory);
  text-wrap: balance;
}

.offer-title em {
  font-style: italic;
  font-weight: 500;
  font-size: 2em;
  line-height: .92;
}

.offer-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(20px, 2.4vw, 30px) 0 0;
  font: 500 .8125rem/1.4 var(--st-body);
  letter-spacing: var(--st-track);
  text-transform: uppercase;
  color: var(--st-ember);
}

.offer-note__rule {
  flex: none;
  width: 40px;
  height: 1px;
  background: currentColor;
  transform-origin: 100% 50%;
}

.st-armed .offer-note .offer-note__rule {
  transform: scaleX(0);
}

.st-armed .offer-note.st-in .offer-note__rule {
  transform: none;
  transition: transform .9s var(--st-ease) calc(var(--st-d, 0ms) + 200ms);
}

.offer-hours {
  margin: 12px 0 0;
  font: 400 1rem/1.6 var(--st-body);
  color: var(--st-muted);
}

.offer-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  margin-top: clamp(16px, 2.2vw, 26px);
  font: 500 .8125rem/1 var(--st-body);
  letter-spacing: var(--st-track);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--st-gold-200);
  text-decoration: none;
  transition: color .4s var(--st-ease);
}

.offer-link span {
  padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--st-ease);
}

.offer-link svg {
  width: 28px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: transform .5s var(--st-ease);
}

@media (hover: hover) and (pointer: fine) {
  .offer-link:hover {
    color: var(--st-ivory);
  }

  .offer-link:hover span {
    background-size: 40% 1px;
  }

  .offer-link:hover svg {
    transform: translateX(6px);
  }
}

.offer-link:focus-visible {
  outline: 2px solid var(--st-gold);
  outline-offset: 4px;
}

.offer-link:focus-visible svg {
  transform: translateX(6px);
}

.offer-link:active svg {
  transform: translateX(10px);
  transition-duration: .15s;
}

.offer-link:active span {
  background-size: 20% 1px;
}

/* From 640px: stub beside the invitation; the perforation and notches turn vertical. */
@media (min-width: 640px) {
  .offer-card {
    --notch: 14px;
    --perf: radial-gradient(circle, var(--dots) 0 .9px, transparent 1.3px) 0 0 / 3px 9px repeat-y;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .offer-stub > .offer-paper {
    border-bottom: 1px solid var(--edge);
    border-right: 0;
    -webkit-mask:
      radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle at 100% 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at 100% 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  }

  .offer-stub > .offer-paper::before {
    left: auto;
    right: calc(-1 * var(--ring));
    top: calc(-1px - var(--ring));
    bottom: auto;
  }

  .offer-stub > .offer-paper::after {
    left: auto;
    right: calc(-1 * var(--ring));
    top: auto;
    bottom: calc(-1px - var(--ring));
  }

  .offer-body > .offer-paper {
    inset: 0 0 0 -1px;
    border-top: 1px solid var(--edge);
    border-left: 0;
    -webkit-mask:
      radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
    mask:
      radial-gradient(circle at 0 0, #0000 var(--notch), #000 calc(var(--notch) + .5px)) top / 100% 51% no-repeat,
      radial-gradient(circle at 0 100%, #0000 var(--notch), #000 calc(var(--notch) + .5px)) bottom / 100% 51% no-repeat;
  }

  .offer-body > .offer-paper::before {
    left: calc(-1 * var(--ring));
    right: auto;
    top: calc(-1px - var(--ring));
    bottom: auto;
  }

  .offer-body > .offer-paper::after {
    left: calc(-1 * var(--ring));
    right: auto;
    top: auto;
    bottom: calc(-1px - var(--ring));
  }

  .offer-stub {
    padding: clamp(48px, 5vw, 80px) clamp(26px, 3.5vw, 56px);
  }

  .offer-frame {
    width: min(100%, clamp(200px, 25vw, 28rem));
  }

  .offer-body {
    padding: clamp(40px, 5.5vw, 96px) clamp(26px, 5.5vw, 96px);
  }
}

/* Landscape phones: a slimmer ticket so it reads in one view. */
@media (max-height: 560px) and (min-width: 640px) {
  .offer-stub {
    padding-block: 40px 30px;
  }

  .offer-frame {
    width: min(100%, 150px);
  }

  .offer-body {
    padding-block: 24px;
  }

  .offer-title {
    margin-top: 14px;
    font-size: 1.7rem;
  }

  .offer-title em {
    font-size: 1.75em;
  }

  .offer-note {
    margin-top: 12px;
  }

  .offer-hours {
    margin-top: 6px;
  }

  .offer-link {
    margin-top: 4px;
  }
}

/* ---------- Reduced motion: static and complete ----------
   story.js does not arm reveals, parallax or word lighting; these rules also still any CSS loops
   and clear hidden states in case motion is reduced mid-visit. */

@media (prefers-reduced-motion: reduce) {
  .st-armed .st-rise,
  .st-armed .st-glow,
  .st-armed .st-line > span,
  .st-armed .st-fig .st-fig__frame,
  .st-armed .st-fig .st-fig__matte,
  .st-armed .st-fig .st-fig__frame img {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .st-armed .st-glow {
    filter: drop-shadow(0 0 18px rgba(216, 181, 109, .38));
  }

  /* The wipe's hidden clip gives way to the frame's resting 1px inset; the photo's zoom to none. */
  .st-armed .st-fig .st-fig__frame {
    clip-path: inset(1px);
  }

  .st-armed .st-fig .st-fig__frame img {
    scale: none;
  }

  .st-armed .st-fig .st-fig__line path {
    stroke-dashoffset: 0;
  }

  .st-armed .st-eyebrow::after,
  .st-armed .story-rule::before,
  .st-armed .story-rule::after,
  .st-armed .story-rule .st-star,
  .st-armed .story-facts::before,
  .st-armed .story-facts::after,
  .st-armed .offer-frame::after,
  .st-armed .offer-note .offer-note__rule {
    opacity: 1;
    transform: none;
  }

  .marquee-track,
  .story-band__layer,
  .offer-bg__img {
    will-change: auto;
  }

  .story-arch__inner,
  .story-sky span {
    animation: none;
  }

  /* A still, faint haze instead of moving steam. */
  .offer-steam span {
    animation: none;
    transform: translate(-50%, -60%) scale(.9);
  }

  .offer-steam .offer-steam__wisp {
    opacity: .3;
  }

  .offer-steam .offer-steam__curl {
    display: none;
  }
}
