/* ==========================================================================
   Signatures (#signatures): a gallery walk past lit alcoves
   Wide, tall screens with a fine pointer and motion: the section pins and
   vertical scrolling walks a horizontal track of arch-framed dishes.
   Elsewhere: a native swipe row that snaps each dish to the centre.
   signatures.js sets .sig--pin or .sig--swipe on .sig, .sig--flow for the
   swipe row's lit focus, .sig--motion for reveals, .is-near while the
   section is close, and --lit on each card (1 = the dish holding the centre).
   ========================================================================== */

#signatures {
  position: relative;
  overflow: visible;
  overflow: clip; /* clips decoration without becoming a scroll container, so the pin can stick */
  background-color: var(--ink-950, #0b0a08);
  color: var(--ivory, #f3ecdf);
}

/* While pinned, a jump to #signatures lands exactly at the start of the walk. */
#signatures:has(.sig--pin) { scroll-margin-top: 0; }

.sig {
  --sig-ivory: var(--ivory, #f3ecdf);
  --sig-muted: var(--ivory-muted, #bdb3a2);
  --sig-ink: var(--ink-950, #0b0a08);
  --sig-gold: var(--gold-400, #d8b56d);
  --sig-gold-hi: var(--gold-200, #f1e2b8);
  --sig-gold-lo: var(--gold-600, #a8823e);
  --sig-gradient: 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 */
  --sig-sheen: linear-gradient(105deg, transparent 32%, rgba(255, 250, 236, .95) 50%, transparent 68%);
  --sig-ease: var(--ease-out, cubic-bezier(.16, 1, .3, 1));
  --sig-ease-io: var(--ease-in-out, cubic-bezier(.65, 0, .35, 1));
  --sig-display: var(--font-display, 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif);
  --sig-body: var(--font-body, 'Jost', 'Avenir Next', system-ui, sans-serif);
  --sig-inline: max(var(--gutter, clamp(16px, 4vw, 56px)), calc((100% - var(--container, 1320px)) / 2));
  --sig-vh: 1vh;
  --frame-gap: clamp(8px, 1vw, 14px);
  /* Onion-dome arch from the logo, stretched to each photo box. */
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0 140V44C0 26 16 19 30 14C40 10 47 7 50 0C53 7 60 10 70 14C84 19 100 26 100 44V140Z'/%3E%3C/svg%3E");
  position: relative;
  font-family: var(--sig-body);
}
@supports (height: 1svh) {
  .sig { --sig-vh: 1svh; }
}
.sig,
.sig *,
.sig *::before,
.sig *::after { box-sizing: border-box; }

.sig-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Atmosphere: emerald night sky, a low grill glow, a faint girih lattice ---------- */
.sig__frame {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(56% 50% at 50% 62%, rgba(232, 116, 42, .1), transparent 72%),
    radial-gradient(85% 55% at 50% -6%, rgba(20, 83, 58, .34), transparent 72%),
    linear-gradient(180deg, #0b1310 0%, var(--sig-ink) 50%, #110c09 100%);
}
/* A double gold hairline catches the light along the top edge. */
.sig__frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: min(84%, 1180px);
  height: 4px;
  translate: -50% 0;
  background:
    linear-gradient(90deg, transparent, rgba(216, 181, 109, .6), transparent) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, transparent 14%, rgba(216, 181, 109, .26), transparent 86%) 0 3px / 100% 1px no-repeat;
  pointer-events: none;
}
.sig__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cpath fill='none' stroke='%23d8b56d' stroke-width='1' d='M30 30h36v36H30zM48 22.5 73.5 48 48 73.5 22.5 48zM48 0v22.5M48 73.5V96M0 48h22.5M73.5 48H96M0 0l30 30M96 0 66 30M0 96l30-30M96 96 66 66'/%3E%3C/svg%3E") 0 0 / 96px 96px;
  opacity: .05;
  -webkit-mask-image: radial-gradient(62% 58% at 50% 46%, #000, transparent 80%);
  mask-image: radial-gradient(62% 58% at 50% 46%, #000, transparent 80%);
  pointer-events: none;
}

/* ---------- Intro ---------- */
.sig__intro { position: relative; z-index: 1; }
.sig__eyebrow,
.sig__outro-eyebrow {
  display: flex;
  align-items: center;
  gap: .9em;
  margin: 0 0 clamp(16px, 2.6vh, 30px);
  font: 500 .75rem/1.3 var(--sig-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sig-gold);
}
.sig__eyebrow::after {
  content: "";
  flex: 0 0 clamp(40px, 5vw, 80px);
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
  transform-origin: 0 50%;
}
.sig__star { flex: none; width: 14px; height: 14px; fill: currentColor; }
.sig__title {
  margin: 0;
  font: 400 clamp(3.2rem, 13vw, 6rem)/.92 var(--sig-display);
  letter-spacing: -.012em;
  color: var(--sig-ivory);
}
.sig__mask {
  display: block;
  overflow: hidden;
  padding: .1em .14em .2em;
  margin: -.1em -.14em -.2em;
}
.sig__mask + .sig__mask { padding-left: calc(.14em + .9em); }
.sig__title-line { display: inline-block; }
/* Gold foil; a band of light crosses it once after the reveal (see Reveals). */
.sig__title-em,
.sig__outro-em {
  font-style: italic;
  padding-right: .06em;
  background: var(--sig-sheen) -150% 0 / 50% 100% no-repeat, var(--sig-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.sig__lede {
  max-width: 34ch;
  margin: clamp(16px, 2.8vh, 32px) 0 0;
  font: 400 clamp(1rem, .95rem + .25vw, 1.125rem)/1.6 var(--sig-body);
  color: var(--sig-muted);
  text-wrap: pretty;
}
.sig__hint {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(20px, 4.4vh, 48px) 0 0;
  font: 500 .75rem/1.3 var(--sig-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--sig-gold-hi);
}
.sig__hint-rule {
  position: relative;
  flex: none;
  width: 56px;
  height: 1px;
  overflow: hidden;
  background: rgba(216, 181, 109, .3);
}
.sig__hint-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--sig-gold);
  transform: translateX(-100%);
  animation: sig-hint 2.6s var(--sig-ease) infinite;
}
.sig:not(.is-near) .sig__hint-rule::after { animation-play-state: paused; }
@keyframes sig-hint {
  0% { transform: translateX(-100%); }
  65%, 100% { transform: translateX(100%); }
}

/* ---------- Cards (shared by both modes) ---------- */
.sig__track { display: flex; margin: 0; padding: 0; list-style: none; }
.sig-card { --lit: 1; position: relative; isolation: isolate; flex: none; }

/* Big outlined numerals; the dish in focus fills its numeral with gold from the bottom up. */
.sig-card__num {
  position: absolute;
  z-index: -1;
  font: 300 8rem/.78 var(--sig-display);
  font-variant-numeric: lining-nums;
  letter-spacing: -.03em;
  pointer-events: none;
  user-select: none;
}
.sig-card__num-line {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(216, 181, 109, .42);
}
@supports not (-webkit-text-stroke: 1px black) {
  .sig-card__num-line { color: rgba(216, 181, 109, .14); }
}
.sig-card__num-fill {
  position: absolute;
  inset: 0;
  padding-right: .04em;
  background: var(--sig-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: .88;
  clip-path: inset(100% -4% -4% -4%);
  transition: clip-path 1s var(--sig-ease);
}
.sig-card.is-current .sig-card__num-fill { clip-path: inset(-4%); }

.sig-card__arch { position: relative; z-index: 1; aspect-ratio: .76; }
.sig-card__tilt { position: absolute; inset: 0; transform-origin: 50% 55%; }
/* The arch is a mask over a box whose photo is composited and moves every frame. Under fractional
   transforms, GPU raster can leave the outermost pixel of a masked box unmasked, so a 1px inset
   clip keeps that ring from ever painting, in every state (the gold outline covers the loss).
   The placeholder colour sits on the zoom layer inside, never on this masked box. */
.sig-card__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
  mask: var(--arch-mask) center / 100% 100% no-repeat;
  clip-path: inset(1px);
}
.sig-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 75% at 50% 28%, transparent 55%, rgba(11, 10, 8, .42)),
    linear-gradient(180deg, transparent 62%, rgba(11, 10, 8, .34));
  pointer-events: none;
}
/* Holds the placeholder colour. Nothing in here animates in CSS: the photo's settle, hover zoom and
   parallax are a 2D transform written by the script, so no layer inside the mask is composited. */
.sig-card__zoom { position: absolute; inset: 0; }
.sig-card__img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
}
/* Rests the photos of the dishes out of focus in shadow (opacity follows --lit, see below). */
.sig-card__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #060504;
  opacity: 0;
  pointer-events: none;
}
/* A soft light that follows the pointer across the photo (moved by the script). */
.sig-card__glare {
  position: absolute;
  inset: -50%;
  z-index: 3;
  background: radial-gradient(closest-side, rgba(255, 242, 218, .3), rgba(255, 242, 218, .08) 45%, transparent 75%);
  opacity: 0;
  pointer-events: none;
}

.sig-card__lines { position: absolute; inset: 0; pointer-events: none; }
.sig-card__line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: rgba(216, 181, 109, .5);
  stroke-width: 1;
  transition: stroke .5s ease;
}
.sig-card__line--outer,
.sig-card__line--glow {
  top: calc(var(--frame-gap) * -1);
  left: calc(var(--frame-gap) * -1);
  width: calc(100% + var(--frame-gap) * 2);
  height: calc(100% + var(--frame-gap) * 2);
}
.sig-card__line--outer { stroke: rgba(216, 181, 109, .62); }
/* The soft gold rim of the lit alcove */
.sig-card__line--glow {
  stroke: rgba(241, 226, 184, .8);
  stroke-width: 3;
  filter: blur(6px);
  opacity: 0;
}
/* Spire above the dome and a ledge beneath the niche. */
.sig-card__finial {
  position: absolute;
  bottom: calc(100% + var(--frame-gap));
  left: 50%;
  width: 1px;
  height: clamp(12px, 2.2vh, 20px);
  translate: -50% 0;
  background: linear-gradient(to top, rgba(216, 181, 109, .7), rgba(216, 181, 109, .2));
}
.sig-card__finial::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  translate: -50% 0;
  rotate: 45deg;
  border: 1px solid var(--sig-gold);
  background: var(--sig-ink);
}
.sig-card__arch::after {
  content: "";
  position: absolute;
  right: calc(var(--frame-gap) * -2.4);
  bottom: calc(var(--frame-gap) * -1);
  left: calc(var(--frame-gap) * -2.4);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 181, 109, .6) 20%, rgba(216, 181, 109, .6) 80%, transparent);
}

/* The lamp above each alcove and the warm light it pools on the ledge (opacity follows --lit). */
.sig-card__light { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sig-card__beam,
.sig-card__pool { position: absolute; opacity: 0; }
/* A soft cone from a lamp out of view; it fades in from the top and dissolves into the dome. */
.sig-card__beam {
  display: none;
  right: -30%;
  bottom: 36%;
  left: -30%;
  height: 124%;
  background: conic-gradient(from 161deg at 50% 0%, transparent, rgba(246, 222, 172, .12) 19deg, transparent 38deg);
  -webkit-mask-image: linear-gradient(to bottom, transparent 4%, #000 42%, #000 64%, transparent);
  mask-image: linear-gradient(to bottom, transparent 4%, #000 42%, #000 64%, transparent);
  clip-path: inset(1px); /* masked and scaled with its card: same edge guard as the photo */
}
.sig-card__pool {
  right: -36%;
  bottom: calc(var(--frame-gap) * -1 - 36px);
  left: -36%;
  height: 72px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(232, 160, 80, .2), rgba(216, 181, 109, .06) 55%, transparent 76%);
}

.sig-card__name {
  margin: 0;
  font: 500 clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem)/1.02 var(--sig-display);
  letter-spacing: -.005em;
  color: var(--sig-ivory);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.sig-card__desc {
  margin: .85rem 0 0;
  font: 400 .97rem/1.6 var(--sig-body);
  color: var(--sig-muted);
  text-wrap: pretty;
}
.sig-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: 1.2rem;
}
/* Hairline across the foot; it draws from the centre on reveal. */
.sig-card__foot::before {
  content: "";
  flex: 0 0 100%;
  height: 1px;
  margin-bottom: .55rem;
  background: linear-gradient(90deg, rgba(216, 181, 109, .1), rgba(216, 181, 109, .42) 50%, rgba(216, 181, 109, .1));
}
.sig-card__price {
  display: flex;
  align-items: baseline;
  gap: .6em;
  margin: 0;
}
.sig-card__from {
  font: 500 .75rem/1 var(--sig-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sig-muted);
}
/* The site-wide price: Cormorant, gold, a raised £ and lining, tabular figures. */
.sig-price {
  font: 500 1.9rem/1 var(--sig-display);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: .01em;
  white-space: nowrap;
  color: var(--sig-gold-hi);
}
.sig-price__cur {
  display: inline-block;
  margin-right: .05em;
  font-size: .55em;
  vertical-align: .5em;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .sig-price__vis {
    background: var(--sig-sheen) -150% 0 / 60% 100% no-repeat, linear-gradient(180deg, #f6e7bf 15%, #d8b56d 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
.sig-card__link {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: .75em;
  min-height: 44px;
  font: 500 .75rem/1.2 var(--sig-body);
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--sig-gold-hi);
  text-decoration: none;
}
/* The whole card follows the link. */
.sig-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.sig-card__link-text {
  padding-block: 4px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .6s var(--sig-ease);
}
.sig__icon-arrow {
  flex: none;
  width: 24px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform .6s var(--sig-ease);
}

/* ---------- Closing panel ---------- */
.sig__outro {
  position: relative;
  z-index: 1;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.sig__outro-eyebrow { margin-bottom: clamp(12px, 2vh, 20px); }
.sig__outro-title {
  margin: 0;
  font: 400 clamp(2rem, 1.4rem + 1.8vw, 3.3rem)/1.04 var(--sig-display);
  color: var(--sig-ivory);
  text-wrap: balance;
}
.sig__outro-text {
  max-width: 30ch;
  margin: 1rem 0 0;
  font-size: .97rem;
  line-height: 1.6;
  color: var(--sig-muted);
}
.sig__outro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 1.8rem;
}
.sig__cta { gap: .9em; }
.sig__call {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  font-size: .95rem;
  white-space: nowrap;
  color: var(--sig-muted);
  text-decoration: none;
  transition: color .3s ease;
}
.sig__call-num {
  color: var(--sig-ivory);
  font-variant-numeric: lining-nums;
  text-decoration: underline;
  text-decoration-color: rgba(216, 181, 109, .5);
  text-underline-offset: .3em;
  transition: color .3s ease;
}

/* ---------- Counter, progress rail with diamonds, arrows ---------- */
.sig__hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.sig__count {
  display: flex;
  flex: none;
  align-items: baseline;
  gap: .45em;
  margin: 0;
  font-family: var(--sig-display);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--sig-muted);
}
.sig__count-cur { min-width: 1.2em; font-size: 1.75rem; font-style: italic; color: var(--sig-gold-hi); }
.sig__count-total { font-size: 1rem; }
.sig__count-total::before { content: "/"; margin-right: .4em; opacity: .6; }
.sig__bar {
  position: relative;
  flex: 1;
  min-width: 60px;
  height: 44px;
}
.sig__bar-line {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(216, 181, 109, .2);
}
.sig__bar-fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sig-gold-lo), var(--sig-gold-hi));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
/* Each diamond is a 44px target; on the pinned track it jumps to its dish. */
.sig__tick {
  position: absolute;
  top: 50%;
  left: 0;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.sig__tick::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  rotate: 45deg;
  border: 1px solid rgba(216, 181, 109, .6);
  background: var(--sig-ink);
  transition: background-color .4s ease, border-color .4s ease, scale .45s var(--sig-ease), box-shadow .45s ease;
}
.sig__tick.is-passed::before { border-color: var(--sig-gold); background: var(--sig-gold); }
.sig__tick.is-current::before {
  scale: 1.5;
  border-color: var(--sig-gold-hi);
  background: var(--sig-gold-hi);
  box-shadow: 0 0 12px rgba(241, 226, 184, .55);
}
.sig__tip {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  padding: .5em .9em .55em;
  border: 1px solid rgba(216, 181, 109, .36);
  border-radius: 2px;
  background: rgba(11, 10, 8, .92);
  font: italic 500 1.05rem/1 var(--sig-display);
  white-space: nowrap;
  color: var(--sig-gold-hi);
  opacity: 0;
  translate: -50% 6px;
  pointer-events: none;
  transition: opacity .3s ease, translate .45s var(--sig-ease);
}
.sig__tick:focus-visible .sig__tip { opacity: 1; translate: -50% 0; }
.sig__nav { display: flex; flex: none; gap: 10px; }
.sig__arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(216, 181, 109, .42);
  border-radius: 50%;
  background: transparent;
  color: var(--sig-gold-hi);
  cursor: pointer;
  transition: background-color .3s ease, border-color .3s ease, opacity .3s ease, scale .2s var(--sig-ease);
}
.sig__arrow .sig__icon-arrow { width: 20px; height: 10px; }
.sig__arrow[data-dir="-1"] .sig__icon-arrow { rotate: 180deg; }
.sig__arrow[aria-disabled="true"] { opacity: .32; cursor: default; }

/* ---------- Focus and pressed states ---------- */
.sig a:focus-visible,
.sig button:focus-visible {
  outline: 2px solid var(--sig-gold);
  outline-offset: 3px;
}
.sig__tick:focus-visible { outline-offset: -6px; }
.sig-card:focus-within .sig-card__line--outer { stroke: var(--sig-gold-hi); }
.sig__arrow:not([aria-disabled="true"]):active { scale: .92; }
.sig__tick:active::before { scale: 1.2; }
.sig-card__link:active .sig__icon-arrow { transform: translateX(9px); }
.sig__call:active { opacity: .75; }

/* ==========================================================================
   Swipe mode: phones, tablets, touch, short screens and reduced motion
   ========================================================================== */
.sig--swipe {
  --card-w: min(74vw, 330px);
  --card-gap: clamp(14px, 3.6vw, 32px);
}
/* The bottom stays short so no void opens before the offer. */
.sig--swipe .sig__frame { padding-block: var(--section-pad, clamp(64px, 10vw, 168px)) clamp(36px, 6vw, 88px); }
.sig--swipe .sig__intro {
  max-width: calc(var(--sig-inline) * 2 + 40rem);
  padding-inline: var(--sig-inline);
  margin-bottom: clamp(0px, 1.6vw, 16px);
}
.sig--swipe .sig__viewport {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.sig--swipe .sig__viewport::-webkit-scrollbar { display: none; }
.sig--swipe .sig__strip {
  display: flex;
  align-items: stretch;
  gap: var(--card-gap);
  width: max-content;
  padding: calc(var(--card-w) * .2) var(--sig-inline) 10px;
}
.sig--swipe .sig__track { gap: var(--card-gap); }
.sig--swipe .sig-card {
  display: flex;
  flex-direction: column;
  width: var(--card-w);
  scroll-snap-align: center;
  transform-origin: 50% 45%;
}
.sig--swipe .sig-card__num {
  top: -.36em;
  left: -.04em;
  font-size: calc(var(--card-w) * .42);
}
.sig--swipe .sig-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-top: calc(var(--frame-gap) + 24px);
}
.sig--swipe .sig-card__desc { margin-bottom: 1.1rem; }
.sig--swipe .sig-card__foot { margin-top: auto; }
.sig--swipe .sig__outro {
  width: min(82vw, 340px);
  padding-left: 4px;
  scroll-snap-align: center;
}
.sig--swipe .sig__hud {
  margin-top: clamp(18px, 4vw, 40px);
  padding-inline: var(--sig-inline);
}
/* On the swipe row the diamonds only mark progress. */
.sig--swipe .sig__tick { pointer-events: none; }
.sig--swipe .sig__tip { display: none; }

@media (min-width: 640px) {
  .sig--swipe { --card-w: min(42vw, 380px); }
}
/* Tablets, wider screens and landscape phones: an editorial header, the title on the left,
   the lede and cue beside it. */
@media (min-width: 640px), (min-width: 560px) and (max-height: 560px) {
  .sig--swipe .sig__intro {
    display: grid;
    grid-template-areas: "eyebrow eyebrow" "title lede" "title hint";
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(28px, 5vw, 72px);
    max-width: calc(var(--sig-inline) * 2 + 60rem);
  }
  .sig--swipe .sig__eyebrow { grid-area: eyebrow; }
  .sig--swipe .sig__title { grid-area: title; }
  .sig--swipe .sig__lede { grid-area: lede; margin: 0; }
  .sig--swipe .sig__hint { grid-area: hint; margin-top: 14px; }
}
@media (min-width: 900px) {
  .sig--swipe { --card-w: clamp(300px, 26vw, 400px); }
}
@media (max-width: 380px) {
  .sig--swipe .sig__cta { padding-inline: 1.25em; }
}

/* Short screens (landscape phones, short laptops): the intro runs in two columns and each arch
   sits beside its text, so the whole row and its controls fit under the header. */
@media (min-width: 560px) and (max-height: 560px), (min-width: 900px) and (max-height: 679px) {
  .sig--swipe {
    --arch-h: clamp(190px, calc(var(--sig-vh) * 100 - 170px), 420px);
    --arch-w: calc(var(--arch-h) * .74);
    --card-w: calc(var(--arch-w) + 22px + clamp(220px, 26vw, 300px));
  }
  .sig--swipe .sig__frame { padding-top: clamp(40px, 8vw, 88px); }
  .sig--swipe .sig__title { font-size: clamp(2.8rem, calc(var(--sig-vh) * 16), 4.6rem); }
  .sig--swipe .sig__strip { padding-top: calc(var(--frame-gap) + 30px); }
  .sig--swipe .sig-card {
    display: grid;
    grid-template-columns: var(--arch-w) minmax(0, 1fr);
    align-items: end;
    column-gap: 22px;
  }
  .sig--swipe .sig-card__arch { width: var(--arch-w); height: var(--arch-h); aspect-ratio: auto; }
  /* The numeral settles into the empty corner beside the dome, measured from the card's foot
     because the text column can stand taller than the arch. */
  .sig--swipe .sig-card__num { top: auto; bottom: calc(var(--arch-h) - .66em); left: -.08em; font-size: calc(var(--arch-h) * .3); }
  .sig--swipe .sig-card__body { display: block; padding-top: 0; }
  .sig--swipe .sig-card__name { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
  .sig--swipe .sig-card__desc { margin-bottom: 0; font-size: .92rem; line-height: 1.5; }
  .sig--swipe .sig-card__foot { margin-top: .9rem; }
  .sig--swipe .sig__outro { width: min(60vw, 340px); }
  .sig--swipe .sig__hud { margin-top: 14px; }
}

/* ==========================================================================
   Pin mode: the frame sticks for the height the script gives .sig__stage,
   and the rail is translated by scroll progress. Card size comes from the
   viewport height, between a band kept clear for the header and the HUD,
   so the stage reads the same with the header shown or hidden.
   ========================================================================== */
.sig--pin {
  --top-h: calc(var(--header-h, 76px) + clamp(8px, calc(var(--sig-vh) * 2), 28px));
  --hud-h: clamp(68px, calc(var(--sig-vh) * 10), 116px);
  --stagger: clamp(10px, calc(var(--sig-vh) * 2.2), 32px);
  --crown: calc(var(--frame-gap) + clamp(14px, calc(var(--sig-vh) * 2.4), 26px));
  --intro-w: clamp(280px, 27vw, 620px);
  --intro-gap: clamp(28px, 3.4vw, 110px);
  --col-gap: clamp(18px, 2.2vw, 44px);
  --body-w: clamp(200px, 17vw, 420px);
  /* Tallest arch the height allows, and the tallest that still lets the intro and the
     first dish share the screen at the start of the walk (20px spare for a scrollbar). */
  --arch-fit-h: calc(var(--sig-vh) * 100 - var(--top-h) - var(--hud-h) - var(--stagger) * 2 - var(--crown) - 20px);
  --arch-fit-w: calc((100vw - 20px - var(--gutter, clamp(16px, 4vw, 56px)) * 2 - var(--intro-w) - var(--intro-gap) - var(--col-gap) - var(--body-w)) / .72);
  --arch-h: clamp(300px, min(var(--arch-fit-h), var(--arch-fit-w)), calc(var(--sig-vh) * 68));
  --arch-w: calc(var(--arch-h) * .72);
  --card-gap: clamp(56px, 6vw, 150px);
}
.sig--pin .sig__stage { position: relative; overflow-anchor: none; }
.sig--pin .sig__frame {
  position: sticky;
  top: 0;
  height: 100vh;
  height: calc(var(--sig-vh) * 100);
  overflow: hidden;
  overflow: clip;
}
.sig--pin .sig__rail {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  width: max-content;
  padding: var(--top-h) var(--sig-inline) var(--hud-h);
  will-change: transform;
}
.sig--pin .sig__intro {
  will-change: opacity; /* faded by the script as the track moves */
  flex: none;
  width: var(--intro-w);
  margin-right: var(--intro-gap);
}
.sig--pin .sig__title { font-size: clamp(3.2rem, min(7vw, calc(var(--sig-vh) * 12)), 8.6rem); }
.sig--pin .sig__viewport,
.sig--pin .sig__strip { display: flex; align-items: center; }
.sig--pin .sig__viewport { position: relative; }
.sig--pin .sig__strip,
.sig--pin .sig__track { gap: var(--card-gap); }
.sig--pin .sig__track { align-items: center; }
.sig--pin .sig-card {
  display: grid;
  grid-template-columns: var(--arch-w) var(--body-w);
  align-items: end;
  column-gap: var(--col-gap);
  padding-top: var(--crown);
  transform-origin: 30% 55%;
}
/* Alternate cards rise and fall; whole pixels where supported, since fractional
   offsets can misalign the composited photo with its arch mask. */
.sig--pin .sig-card:nth-child(odd) { translate: 0 calc(var(--stagger) * -1); }
.sig--pin .sig-card:nth-child(even) { translate: 0 var(--stagger); }
@supports (width: round(1.5px, 1px)) {
  .sig--pin .sig-card:nth-child(odd) { translate: 0 calc(round(var(--stagger), 1px) * -1); }
  .sig--pin .sig-card:nth-child(even) { translate: 0 round(var(--stagger), 1px); }
}
.sig--pin .sig-card__arch { width: var(--arch-w); height: var(--arch-h); aspect-ratio: auto; }
/* The drifting photo overhangs its arch by 15% a side, more than its parallax range (signatures.js OVERHANG). */
.sig--pin .sig-card__img { left: -15%; width: 130%; }
.sig--pin .sig-card__num {
  top: calc(var(--crown) + var(--arch-h) * .02);
  left: calc(var(--arch-w) - .34em);
  font-size: calc(var(--arch-h) * .4);
  will-change: transform;
}
.sig--pin .sig-card__beam { display: block; }
.sig--pin .sig-card__name { font-size: clamp(1.9rem, calc(var(--arch-h) * .074), 3.8rem); }
.sig--pin .sig-card__desc { font-size: .95rem; }
.sig--pin .sig-price { font-size: clamp(1.9rem, calc(var(--arch-h) * .052), 2.7rem); }
.sig--pin .sig__outro { width: clamp(300px, 26vw, 520px); }
.sig--pin .sig__hud {
  position: absolute;
  right: var(--sig-inline);
  bottom: var(--safe-bottom, 0px);
  left: var(--sig-inline);
  height: var(--hud-h);
  /* Lifts clear of the mobile action dock when it shows (900–1023px wide). */
  translate: 0 calc(var(--dock-h, 0px) * -1);
  transition: translate .4s var(--sig-ease);
}

/* ==========================================================================
   The lit focus: the dish holding the centre is full size and bright, its
   neighbours wait smaller and in shadow. --lit is written by the script.
   ========================================================================== */
.sig--pin .sig-card { --dim-scale: .94; --dim-shade: .3; --dim-body: .7; }
.sig--flow .sig-card { --dim-scale: .92; --dim-shade: .4; --dim-body: .6; }
.sig--pin .sig-card,
.sig--flow .sig-card { transform: scale(calc(var(--dim-scale) + (1 - var(--dim-scale)) * var(--lit))); }
:is(.sig--pin, .sig--flow) .sig-card__shade { opacity: calc((1 - var(--lit)) * var(--dim-shade)); }
:is(.sig--pin, .sig--flow) .sig-card__body { opacity: calc(var(--dim-body) + (1 - var(--dim-body)) * var(--lit)); }
:is(.sig--pin, .sig--flow) :is(.sig-card__line--glow, .sig-card__beam, .sig-card__pool) { opacity: var(--lit); }

/* ==========================================================================
   Reveals. Hidden states exist only once the script can reveal them.
   Swipe row: the whole row reveals together, staggered 70ms per card.
   ========================================================================== */
.sig-card { --d: 0s; }
.sig--swipe .sig-card { --d: calc(min(var(--i), 3) * 70ms); }

.sig--motion .sig__title-line { transition: transform 1.05s var(--sig-ease); }
.sig--motion .sig__mask + .sig__mask .sig__title-line { transition-delay: .07s; }
.sig--motion :is(.sig__eyebrow, .sig__lede, .sig__hint, .sig-card__body > *, .sig__outro > *) {
  transition: opacity .9s var(--sig-ease), transform .9s var(--sig-ease);
}
.sig--motion .sig__eyebrow::after { transition: transform 1s var(--sig-ease) .14s; }
.sig--motion .sig__lede { transition-delay: .14s; }
.sig--motion .sig__hint { transition-delay: .21s; }
.sig--motion .sig-card__body > :nth-child(1) { transition-delay: calc(var(--d) + .21s); }
.sig--motion .sig-card__body > :nth-child(2) { transition-delay: calc(var(--d) + .28s); }
.sig--motion .sig-card__body > :nth-child(3) { transition-delay: calc(var(--d) + .35s); }
.sig--motion .sig-card__foot::before { transition: transform 1s var(--sig-ease) calc(var(--d) + .42s); }
.sig--motion .sig__outro > :nth-child(2) { transition-delay: .07s; }
.sig--motion .sig__outro > :nth-child(3) { transition-delay: .14s; }
.sig--motion .sig__outro > :nth-child(4) { transition-delay: .21s; }
/* The arch opens from its centre line (the masked box itself animates) while the script settles
   the photo inside from 1.12 to 1. */
.sig--motion .sig-card__media { clip-path: inset(1px); transition: clip-path 1.15s var(--sig-ease) var(--d); }
/* The outline grows up both sides to the dome. */
.sig--motion .sig-card__lines { clip-path: inset(-12%); transition: clip-path 1.1s var(--sig-ease) calc(var(--d) + .08s); }
.sig--motion .sig-card__finial { transition: opacity .8s var(--sig-ease) calc(var(--d) + .5s), transform .8s var(--sig-ease) calc(var(--d) + .5s); }
.sig--motion .sig-card__arch::after { transition: transform 1s var(--sig-ease) calc(var(--d) + .2s); }
.sig--motion .sig-card__light { transition: opacity 1.2s ease calc(var(--d) + .3s); }
.sig--motion .sig-card__num { clip-path: inset(-20% -10%); transition: clip-path 1.2s var(--sig-ease) calc(var(--d) + .12s); }

.sig--motion .sig__intro:not(.is-in) .sig__title-line { transform: translateY(105%); }
.sig--motion .sig__intro:not(.is-in) :is(.sig__eyebrow, .sig__lede, .sig__hint),
.sig--motion .sig-card:not(.is-in) .sig-card__body > *,
.sig--motion .sig__outro:not(.is-in) > * { opacity: 0; transform: translateY(28px); }
.sig--motion .sig__intro:not(.is-in) .sig__eyebrow::after { transform: scaleX(0); }
.sig--motion .sig-card:not(.is-in) .sig-card__media { clip-path: inset(1px 50%); }
.sig--motion .sig-card:not(.is-in) .sig-card__lines { clip-path: inset(112% -12% -12% -12%); }
.sig--motion .sig-card:not(.is-in) .sig-card__finial { opacity: 0; transform: translateY(10px); }
.sig--motion .sig-card:not(.is-in) .sig-card__arch::after,
.sig--motion .sig-card:not(.is-in) .sig-card__foot::before { transform: scaleX(0); }
.sig--motion .sig-card:not(.is-in) .sig-card__light { opacity: 0; }
.sig--motion .sig-card:not(.is-in) .sig-card__num { clip-path: inset(-20% 100% -20% -10%); }

/* One band of light crosses the gold words and prices as they arrive. */
.sig--motion .sig__intro.is-in .sig__title-em { animation: sig-sheen 1.5s var(--sig-ease-io) .75s 1 both; }
.sig--motion .sig__outro.is-in .sig__outro-em { animation: sig-sheen 1.5s var(--sig-ease-io) .55s 1 both; }
.sig--motion .sig-card.is-in .sig-price__vis { animation: sig-sheen 1.3s var(--sig-ease-io) calc(var(--d) + .6s) 1 both; }
@keyframes sig-sheen {
  from { background-position: -150% 0, 0 0; }
  to { background-position: 250% 0, 0 0; }
}

/* ---------- Pointer hover ---------- */
@media (hover: hover) and (pointer: fine) {
  .sig-card:hover .sig-card__line--outer { stroke: var(--sig-gold-hi); }
  .sig-card:hover .sig-card__link-text { background-size: 100% 1px; }
  .sig-card:hover .sig-card__link .sig__icon-arrow,
  .sig__cta:hover .sig__icon-arrow { transform: translateX(6px); }
  .sig__call:hover,
  .sig__call:hover .sig__call-num { color: var(--sig-gold-hi); }
  .sig__arrow:not([aria-disabled="true"]):hover {
    border-color: var(--sig-gold);
    background-color: rgba(216, 181, 109, .12);
  }
  .sig--pin .sig__tick:hover::before { scale: 1.6; border-color: var(--sig-gold-hi); }
  .sig--pin .sig__tick:hover .sig__tip { opacity: 1; translate: -50% 0; }
}

/* Reduced motion: static and complete. No reveals, no lit focus, no tilt, no sheen. */
@media (prefers-reduced-motion: reduce) {
  .sig__hint-rule::after { animation: none; transform: none; }
  .sig-card__num-fill,
  .sig__icon-arrow,
  .sig__tick::before,
  .sig__tip { transition: none; }
}
