/* ==========================================================================
   Pak Afghan Restaurant: foundation styles
   1. Tokens   2. Base   3. Shared components   4. Preloader
   5. Header and navigation   6. Action dock   7. Footer   8. Cursor   9. Reduced motion
   The hero and the section styles (story, signatures, menu, venue) live in their own files.
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  /* Ink */
  --ink-950: #0b0a08;
  --ink-900: #12100d;
  --ink-850: #181511;
  --ink-700: #2a251e;

  /* Text */
  --ivory: #f3ecdf;
  --ivory-muted: #bdb3a2;

  /* Gold */
  --gold-200: #f1e2b8;
  --gold-400: #d8b56d;
  --gold-600: #a8823e;
  --gold-gradient: linear-gradient(100deg, #a8823e 0%, #f1e2b8 30%, #c9a052 52%, #f6e7bf 70%, #a8823e 100%);

  /* Emerald */
  --emerald-400: #3aa874;
  --emerald-700: #14533a;
  --emerald-950: #0a1a13;

  /* Ember */
  --ember-500: #e8742a;
  --ember-700: #b4471a;
  --chilli: #d2452f;

  /* Section tints */
  --tint-emerald: #0b1310;
  --tint-ember: #140d09;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Iowan Old Style', 'Times New Roman', serif;
  --font-body: 'Jost', 'Avenir Next', system-ui, sans-serif;
  --font-script: 'Noto Nastaliq Urdu', serif;

  /* Motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --container: 1320px;
  --section-pad: clamp(64px, 10vw, 168px);
  --header-h: 76px;
  --radius: 4px;
  --hairline: 1px solid color-mix(in srgb, var(--gold-400) 28%, transparent);

  /* Hero entrance offset: longer while the first-visit preloader plays */
  --intro-delay: 0s;

  /* Height of the mobile action dock while it is showing (main.js keeps it current; 0 when hidden) */
  --dock-h: 0px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --shadow-deep: 0 40px 120px rgb(0 0 0 / .55);

  /* Visible header height: var(--header-h) while the header shows, 0px while it is tucked away
     (html.header-hidden). Sticky UI uses top: var(--header-offset, var(--header-h)). */
  --header-offset: var(--header-h);
  /* Timing of the header slide, for sticky elements that move with it */
  --header-dur: .5s;
  --header-ease: cubic-bezier(.22, .8, .24, 1);

  /* Jali (lattice) tile: gold eight-point stars joined on a 56px grid. Use at 3–6% opacity. */
  --jali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23d8b56d' stroke-width='1'%3E%3Cpath d='M19 19h18v18H19z'/%3E%3Cpath d='M28 15.3 40.7 28 28 40.7 15.3 28z'/%3E%3Cpath d='M28 0v15.3M28 40.7V56M0 28h15.3M40.7 28H56M0 0l19 19M56 0 37 19M0 56l19-19M56 56 37 37'/%3E%3C/g%3E%3C/svg%3E");
}

html.header-hidden { --header-offset: 0px; }

/* Large screens: a wider layout and slightly larger type, so nothing looks lost at 1920+ */
@media (min-width: 1680px) {
  :root { --container: 1480px; }
}
@media (min-width: 1920px) {
  html { font-size: 106.25%; }
}
@media (min-width: 2300px) {
  :root { --container: 1640px; }
  html { font-size: 118.75%; }
}

/* The hero entrance waits for the preloader to open (section 4). */
.intro { --intro-delay: 1s; }

@media (max-width: 639px) {
  :root { --header-h: 64px; }
}

/* 2. Base ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  background: var(--ink-950);
}

/* A thin gold scrollbar where there is a mouse */
@media (hover: hover) and (pointer: fine) {
  html {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--gold-600) 80%, transparent) #080706;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--ink-950);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: .065;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  text-wrap: balance;
}

p, figure, blockquote, dl, dd { margin: 0; }
p { text-wrap: pretty; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

address { font-style: normal; }

[hidden] { display: none !important; }

::selection { background: var(--gold-400); color: var(--ink-950); }

:focus-visible {
  outline: 2px solid var(--gold-400);
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

/* Anchored sections clear the fixed header */
main > section { scroll-margin-top: calc(var(--header-h) + 12px); }

/* 3. Shared components ----------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 600;
  padding: 14px 20px;
  border-radius: var(--radius);
  background: var(--gold-400);
  color: var(--ink-950);
  font: 600 .78rem/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .35s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* Gold micro-label with a diamond */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  margin: 0;
  font: 500 .75rem/1.35 var(--font-body);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: currentColor;
  transform: rotate(45deg);
}

/* Metallic gold, for a few key words only */
.gold-text {
  padding-right: .08em;
  margin-right: -.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Foil sheen: a band of light crosses gold text once. Add .sheen to a .gold-text element;
   it plays when the element, or an ancestor, gets .is-in. */
.gold-text.sheen {
  background-image:
    linear-gradient(100deg, transparent 40%, rgba(255, 251, 238, .92) 50%, transparent 60%),
    var(--gold-gradient);
  background-size: 260% 100%, 100% 100%;
  background-position: 130% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
}
.is-in .gold-text.sheen,
.gold-text.sheen.is-in { animation: pa-sheen 1.7s var(--ease-in-out) .7s both; }
@keyframes pa-sheen {
  from { background-position: 130% 0, 0 0; }
  to { background-position: -30% 0, 0 0; }
}

/* Nastaliq accents (the Noto Nastaliq Urdu subset holds only the four phrases in PAK_AFGHAN.script).
   The restaurant's name is set in the bold weight. */
.hero__script.nastaliq,
.site-footer__script.nastaliq { font-weight: 700; }
.nastaliq {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  line-height: 1.9;
  direction: rtl;
}

/* Buttons. Magnetic movement is eased by main.js, so translate is not transitioned here. */
.btn {
  --btn-h: 54px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75em;
  min-height: var(--btn-h);
  padding: 0 1.8em;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ivory);
  font: 500 .78rem/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color .4s var(--ease-out),
    background-color .4s var(--ease-out),
    border-color .4s var(--ease-out),
    box-shadow .4s var(--ease-out),
    scale .2s var(--ease-out);
}
.btn:active { scale: .97; }

.btn__icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--gold {
  background: var(--gold-400);
  color: #17110a;
  font-weight: 600;
}
.btn--gold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 22%, rgba(255, 250, 236, .75) 50%, transparent 78%);
  transform: translateX(-115%);
  transition: transform .9s var(--ease-out);
}
.btn--gold:active { background: #e0c07c; }

.btn--line {
  border-color: color-mix(in srgb, var(--gold-400) 55%, transparent);
  background: color-mix(in srgb, var(--ink-950) 35%, transparent);
}
.btn--line:active {
  border-color: var(--gold-400);
  background: color-mix(in srgb, var(--gold-400) 12%, transparent);
}

@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover {
    background: #e0c07c;
    box-shadow: 0 10px 34px -12px rgba(216, 181, 109, .55);
  }
  .btn--gold:hover::before { transform: translateX(115%); }
  .btn--line:hover {
    border-color: var(--gold-400);
    background: color-mix(in srgb, var(--gold-400) 12%, transparent);
    color: var(--gold-200);
  }
}

.btn--sm {
  --btn-h: 44px;
  padding: 0 1.2em;
  font-size: .72rem;
}
@media (max-width: 639px) {
  .btn--sm { font-size: .75rem; }
}

/* Live open status */
.status {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0;
  font: 500 .75rem/1.3 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ivory);
}
.status__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember-500);
}
.status.is-open .status__dot { background: var(--emerald-400); }
.status.is-open .status__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--emerald-400);
  animation: status-ping 2.4s var(--ease-out) infinite;
}
.status__text:empty { display: none; }
.status:not(.is-open):not(.is-closed) { visibility: hidden; }

@keyframes status-ping {
  from { transform: scale(1); opacity: .7; }
  to { transform: scale(3.4); opacity: 0; }
}

/* Logo lockup */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ivory);
  text-decoration: none;
}
.brand__mark {
  flex: none;
  width: 42px;
  height: 42px;
  color: var(--gold-400);
  overflow: visible;
  transition: filter .5s var(--ease-out);
}
.brand__type { display: grid; gap: 5px; }
.brand__name {
  font: 600 1.5rem/.9 var(--font-display);
  letter-spacing: .005em;
  white-space: nowrap;
}
.brand__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 .56rem/1 var(--font-body);
  letter-spacing: .44em;
  text-transform: uppercase;
  color: var(--emerald-400);
  white-space: nowrap;
}
.brand__sub::before,
.brand__sub::after {
  content: "";
  flex: 1 1 auto;
  min-width: 6px;
  height: 1px;
  background: color-mix(in srgb, var(--emerald-400) 70%, transparent);
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__mark { filter: drop-shadow(0 0 10px rgba(216, 181, 109, .45)); }
}

/* 4. Preloader ------------------------------------------------------------- */
/* Shown only when the head script adds .intro (first visit, motion allowed). 1.6s in all:
   0–0.95s the gold arch draws itself, the star blooms at its heart and the name rises;
   0.98–1.6s the arch opens as a doorway onto the hero: an arch-shaped hole grows from the star,
   cut through the ink veil and rimmed in gold by a second, slightly smaller hole in the layer below.
   A click, tap or Escape skips it (main.js). */
@property --iris {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

.preloader { display: none; }

.intro .preloader {
  --oy: 44%;                              /* height of the star, the centre of the opening */
  --pl-size: clamp(92px, 10.5vw, 150px);  /* emblem width */
  position: fixed;
  inset: 0;
  z-index: 400;
  display: block;
  cursor: pointer;
  animation: pl-open .62s cubic-bezier(.7, 0, .2, 1) .98s both;
}
.preloader.is-skipping {
  opacity: 0;
  transition: opacity .35s var(--ease-out);
}

/* The veil and its gold rim share one arch polygon (the site's onion dome, half-width var(--r)),
   cut out of a full-screen rectangle. */
.preloader__rim,
.preloader__veil {
  position: absolute;
  inset: 0;
  clip-path: polygon(evenodd,
    50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0,
    50% calc(var(--oy) - 1.38 * var(--r) + 2.539 * var(--w)),
    calc(50% + .037 * var(--r) - .803 * var(--w)) calc(var(--oy) - 1.316 * var(--r) + .596 * var(--w)),
    calc(50% + .086 * var(--r) - .661 * var(--w)) calc(var(--oy) - 1.263 * var(--r) + .751 * var(--w)),
    calc(50% + .148 * var(--r) - .533 * var(--w)) calc(var(--oy) - 1.217 * var(--r) + .846 * var(--w)),
    calc(50% + .221 * var(--r) - .442 * var(--w)) calc(var(--oy) - 1.177 * var(--r) + .897 * var(--w)),
    calc(50% + .305 * var(--r) - .39 * var(--w)) calc(var(--oy) - 1.139 * var(--r) + .921 * var(--w)),
    calc(50% + .4 * var(--r) - .371 * var(--w)) calc(var(--oy) - 1.1 * var(--r) + .928 * var(--w)),
    calc(50% + .542 * var(--r) - .385 * var(--w)) calc(var(--oy) - 1.046 * var(--r) + .923 * var(--w)),
    calc(50% + .68 * var(--r) - .482 * var(--w)) calc(var(--oy) - .98 * var(--r) + .876 * var(--w)),
    calc(50% + .805 * var(--r) - .627 * var(--w)) calc(var(--oy) - .897 * var(--r) + .779 * var(--w)),
    calc(50% + .907 * var(--r) - .803 * var(--w)) calc(var(--oy) - .793 * var(--r) + .596 * var(--w)),
    calc(50% + .975 * var(--r) - .949 * var(--w)) calc(var(--oy) - .662 * var(--r) + .315 * var(--w)),
    calc(50% + var(--r) - var(--w)) calc(var(--oy) - .5 * var(--r)),
    calc(50% + var(--r) - var(--w)) calc(var(--oy) + 1.45 * var(--r) - var(--w)),
    calc(50% - var(--r) + var(--w)) calc(var(--oy) + 1.45 * var(--r) - var(--w)),
    calc(50% - var(--r) + var(--w)) calc(var(--oy) - .5 * var(--r)),
    calc(50% - .975 * var(--r) + .949 * var(--w)) calc(var(--oy) - .662 * var(--r) + .315 * var(--w)),
    calc(50% - .907 * var(--r) + .803 * var(--w)) calc(var(--oy) - .793 * var(--r) + .596 * var(--w)),
    calc(50% - .805 * var(--r) + .627 * var(--w)) calc(var(--oy) - .897 * var(--r) + .779 * var(--w)),
    calc(50% - .68 * var(--r) + .482 * var(--w)) calc(var(--oy) - .98 * var(--r) + .876 * var(--w)),
    calc(50% - .542 * var(--r) + .385 * var(--w)) calc(var(--oy) - 1.046 * var(--r) + .923 * var(--w)),
    calc(50% - .4 * var(--r) + .336 * var(--w)) calc(var(--oy) - 1.1 * var(--r) + .942 * var(--w)),
    calc(50% - .305 * var(--r) + .39 * var(--w)) calc(var(--oy) - 1.139 * var(--r) + .921 * var(--w)),
    calc(50% - .221 * var(--r) + .442 * var(--w)) calc(var(--oy) - 1.177 * var(--r) + .897 * var(--w)),
    calc(50% - .147 * var(--r) + .533 * var(--w)) calc(var(--oy) - 1.217 * var(--r) + .846 * var(--w)),
    calc(50% - .086 * var(--r) + .661 * var(--w)) calc(var(--oy) - 1.263 * var(--r) + .751 * var(--w)),
    calc(50% - .037 * var(--r) + .803 * var(--w)) calc(var(--oy) - 1.316 * var(--r) + .596 * var(--w)),
    50% calc(var(--oy) - 1.38 * var(--r) + 2.539 * var(--w)));
}
.preloader__veil {
  --r: var(--iris);
  --w: 0px;
  background:
    radial-gradient(52% 40% at 50% var(--oy), rgba(232, 116, 42, .15), transparent 72%),
    radial-gradient(80% 60% at 50% 100%, rgba(58, 168, 116, .05), transparent 70%),
    var(--ink-950);
}
.preloader__veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--jali) 50% 50% / 56px 56px;
  opacity: .035;
  -webkit-mask-image: radial-gradient(48% 46% at 50% var(--oy), #000 30%, transparent 100%);
  mask-image: radial-gradient(48% 46% at 50% var(--oy), #000 30%, transparent 100%);
}
/* The rim layer's hole is inset by a constant hairline (along each vertex's miter normal),
   so a thin line of gold light travels out with the opening */
.preloader__rim {
  --r: var(--iris);
  --w: min(clamp(2px, .16vw, 3px), var(--iris) * .04);
  background: var(--gold-gradient);
}

/* Emblem and name, positioned so the star sits exactly on the opening's centre */
.preloader__inner {
  position: absolute;
  top: var(--oy);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: max-content;
  translate: -50% calc(var(--pl-size) * -.65);
  transform-origin: 50% calc(var(--pl-size) * .65);
}
.preloader__mark {
  width: var(--pl-size);
  height: auto;
  aspect-ratio: 120 / 140;
  overflow: visible;
}
.pl-line {
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.pl-snow,
.pl-glow { opacity: 0; }
.pl-diamond { fill: var(--gold-400); }
.pl-star,
.pl-diamond,
.pl-glow {
  transform-box: fill-box;
  transform-origin: center;
}
.preloader__word {
  display: flex;
  gap: .24em;
  font: 600 clamp(2rem, 3.6vw, 2.6rem)/1 var(--font-display);
  letter-spacing: .01em;
  color: var(--ivory);
}
.pl-w {
  display: inline-flex;
  overflow: hidden;
  padding: .14em .04em .28em;
  margin: -.14em -.04em -.28em;
}
.pl-w > span {
  display: inline-block;
  transform: translate3d(0, 140%, 0);
}
.preloader__sub {
  margin-right: -.55em;
  font: 500 .75rem/1 var(--font-body);
  letter-spacing: .55em;
  text-transform: uppercase;
  color: var(--emerald-400);
  opacity: 0;
}

/* Choreography */
.intro .pl-arch { animation: pl-draw .72s var(--ease-in-out) .04s forwards; }
.intro .pl-base { animation: pl-draw .55s var(--ease-out) .24s forwards; }
.intro .pl-peaks { animation: pl-draw .6s var(--ease-out) .3s forwards; }
.intro .pl-snow { animation: pl-fade .5s var(--ease-out) .52s forwards; }
.intro .pl-finial { animation: pl-draw .2s var(--ease-out) .68s forwards; }
.intro .pl-diamond { animation: pl-pop .4s var(--ease-out) .76s both; }
.intro .pl-glow { animation: pl-glow 1s var(--ease-out) .36s forwards; }
.intro .pl-star { animation: pl-bloom .62s var(--ease-out) .34s both, pl-flare .3s var(--ease-in-out) .86s forwards; }
.intro .pl-w > span {
  animation: pl-rise .62s var(--ease-out) forwards;
  animation-delay: calc(.2s + var(--i, 0) * 32ms);
}
.intro .preloader__sub { animation: pl-up .6s var(--ease-out) .46s forwards; }
/* The emblem dissolves just as the opening reaches its outline (about 1.13s) */
.intro .preloader__inner { animation: pl-inner-out .3s var(--ease-in-out) .86s forwards; }

@keyframes pl-draw { to { stroke-dashoffset: 0; } }
@keyframes pl-fade { to { opacity: 1; } }
@keyframes pl-rise { to { transform: none; } }
@keyframes pl-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pl-pop {
  from { opacity: 0; transform: scale(.2) rotate(-45deg); }
}
@keyframes pl-bloom {
  from { opacity: 0; transform: scale(.15) rotate(-90deg); }
}
@keyframes pl-flare {
  to { opacity: 0; transform: scale(2.4) rotate(22.5deg); }
}
@keyframes pl-glow {
  0% { opacity: 0; transform: scale(.4); }
  60% { opacity: 1; }
  100% { opacity: .9; transform: scale(1.12); }
}
@keyframes pl-inner-out {
  to { opacity: 0; scale: 1.1; }
}
@keyframes pl-open {
  from { --iris: 0px; }
  to { --iris: max(54vw, 51vh); visibility: hidden; }
}

.intro-done .preloader { display: none; }

/* 5. Header and navigation ------------------------------------------------- */
/* Reading progress along the top edge; it stays when the header tucks away */
.site-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 101;
  height: 2px;
  pointer-events: none;
}
.site-progress span {
  display: block;
  height: 100%;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  max-width: 100vw;
  height: 76px;
  transition: transform var(--header-dur) var(--header-ease);
}
/* Past the hero the header hides on the way down and returns on the way up (main.js) */
html.header-hidden .site-header { transform: translate3d(0, calc(-100% - 2px), 0); }

/* Ink glass and a gold hairline once the page scrolls */
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  opacity: 0;
  transition: opacity .5s var(--ease-out);
  pointer-events: none;
}
.site-header::before {
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 88%, transparent), color-mix(in srgb, var(--ink-950) 74%, transparent));
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 18px 40px -24px rgb(0 0 0 / .8);
}
.site-header::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-600) 18%, var(--gold-200) 50%, var(--gold-600) 82%, transparent);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled::after { opacity: .7; }

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 40px);
  height: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-header .brand { margin-right: auto; }

/* The header arrives once the preloader has opened */
.intro .site-header__inner,
.intro .site-progress { animation: pa-header-in .9s var(--ease-out) calc(var(--intro-delay) + .45s) both; }
@keyframes pa-header-in {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
}

.site-nav ul {
  display: flex;
  gap: clamp(20px, 2.2vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 500 .76rem/1 var(--font-body);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: color-mix(in srgb, var(--ivory) 88%, transparent);
  transition: color .3s var(--ease-out);
}
/* Gold underline drawn from the centre; the current section also wears a small diamond */
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: .2em;
  bottom: 10px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-200) 50%, var(--gold-600));
  transform: scaleX(0);
  transition: transform .55s var(--ease-out);
}
.site-nav a::before {
  content: "";
  position: absolute;
  left: calc(50% - .1em - 2.5px);
  bottom: 8px;
  width: 5px;
  height: 5px;
  background: var(--gold-200);
  transform: rotate(45deg) scale(0);
  transition: transform .45s var(--ease-out) .1s;
}
.site-nav a[aria-current] { color: var(--gold-200); }
.site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current]::before { transform: rotate(45deg) scale(1); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--gold-200); }
  .site-nav a:hover::after { transform: scaleX(1); }
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .btn--sm {
  font-size: .76rem;
  letter-spacing: .18em;
}
.header-call__label { font-variant-numeric: lining-nums tabular-nums; }

/* Burger (phones and tablets) */
.burger {
  position: relative;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold-400) 45%, transparent);
  border-radius: 2px;
  background: color-mix(in srgb, var(--ink-950) 35%, transparent);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out), scale .2s var(--ease-out);
}
.burger__line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ivory);
  transition: transform .4s var(--ease-out);
}
.burger__line:first-child { top: 17px; }
.burger__line:last-child { top: 25px; left: 18px; }
.burger:active { scale: .94; background: color-mix(in srgb, var(--gold-400) 14%, transparent); }
@media (hover: hover) and (pointer: fine) {
  .burger:hover { border-color: var(--gold-400); }
  .burger:hover .burger__line:last-child { transform: translateX(-6px); }
}

@media (max-width: 1199px) {
  .header-call__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .header-call { width: 44px; padding: 0; }
}

@media (max-width: 1023px) {
  .site-nav { display: none; }
  .burger { display: block; }
}

@media (max-width: 639px) {
  .site-header { height: 64px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__name { font-size: 1.32rem; }
  .brand__sub { font-size: .5rem; }
  .site-header .header-order { padding: 0 .9em; }
}

/* Mobile navigation overlay: drops like a curtain, links rise from their own masks */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 200;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  padding:
    var(--safe-top)
    max(var(--gutter), env(safe-area-inset-right, 0px))
    max(20px, calc(var(--safe-bottom) + 12px))
    max(var(--gutter), env(safe-area-inset-left, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(90% 55% at 85% 100%, rgba(232, 116, 42, .15), transparent 70%),
    radial-gradient(70% 45% at 0% 0%, rgba(58, 168, 116, .09), transparent 70%),
    var(--ink-950);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s var(--ease-in-out), visibility 0s linear .5s;
}
.mnav.is-open {
  clip-path: inset(0);
  visibility: visible;
  transition: clip-path .75s var(--ease-out), visibility 0s;
}
/* Faint jali, strongest behind the links, fading toward the edges */
.mnav::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--jali) 0 0 / 56px 56px;
  opacity: .05;
  -webkit-mask-image: radial-gradient(85% 70% at 30% 40%, #000 25%, transparent 100%);
  mask-image: radial-gradient(85% 70% at 30% 40%, #000 25%, transparent 100%);
}
.mnav__bar {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.mnav__close {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--gold-400) 45%, transparent);
  border-radius: 2px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s var(--ease-out), scale .2s var(--ease-out);
}
.mnav__close span {
  position: absolute;
  top: 50%;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--ivory);
  transform: rotate(45deg);
  transition: transform .5s var(--ease-out);
}
.mnav__close span + span { transform: rotate(-45deg); }
.mnav__close:active { scale: .94; }
@media (hover: hover) and (pointer: fine) {
  .mnav__close:hover { border-color: var(--gold-400); }
  .mnav__close:hover span { transform: rotate(135deg); }
  .mnav__close:hover span + span { transform: rotate(45deg); }
}

.mnav__body {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  gap: clamp(24px, 4vh, 40px);
  padding-top: clamp(8px, 3vh, 36px);
}
.mnav__nav ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mnav__nav a {
  position: relative;
  display: block;
  overflow: hidden;
  padding: clamp(8px, 1.5vh, 14px) 0;
  font: 500 clamp(2.2rem, 9vw, 3.6rem)/1.1 var(--font-display);
  text-decoration: none;
  color: var(--ivory);
  -webkit-tap-highlight-color: transparent;
}
.mnav__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gold-400) 45%, transparent), color-mix(in srgb, var(--gold-400) 8%, transparent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .9s var(--ease-out);
  transition-delay: calc(.2s + var(--i, 0) * 70ms);
}
.mnav__line {
  display: flex;
  align-items: baseline;
  gap: clamp(14px, 3vw, 22px);
  transform: translate3d(0, 150%, 0);
  transition: transform .95s var(--ease-out);
  transition-delay: calc(.12s + var(--i, 0) * 70ms);
}
.mnav.is-open .mnav__line,
.mnav.is-open .mnav__nav a::after { transform: none; }
.mnav__num {
  min-width: 2.4em;
  font: 500 .75rem/1 var(--font-body);
  letter-spacing: .2em;
  color: var(--gold-400);
  font-variant-numeric: lining-nums tabular-nums;
}
.mnav__label { transition: color .3s var(--ease-out); }
/* The current section: gold italic with a small diamond */
.mnav__nav a[aria-current] .mnav__label { color: var(--gold-200); font-style: italic; }
.mnav__nav a[aria-current] .mnav__line::after {
  content: "";
  flex: none;
  align-self: center;
  width: 7px;
  height: 7px;
  margin-left: 4px;
  background: var(--gold-400);
  transform: rotate(45deg);
}
.mnav__nav a:active .mnav__label { color: var(--gold-200); }
@media (hover: hover) and (pointer: fine) {
  .mnav__nav a:hover .mnav__label { color: var(--gold-200); }
}

.mnav__foot {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--gold-400) 16%, transparent);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .6s var(--ease-out), transform .8s var(--ease-out);
}
.mnav.is-open .mnav__foot {
  opacity: 1;
  transform: none;
  transition-delay: .45s;
}
.mnav__hours,
.mnav__address {
  color: var(--ivory-muted);
  font-size: .95rem;
  line-height: 1.5;
}
.mnav__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
  justify-self: stretch;
  margin-top: 8px;
}
.mnav__actions .btn { width: 100%; }
.mnav__call span { font-variant-numeric: lining-nums tabular-nums; }

/* "Welcome" in Nastaliq, written large in the quiet band between the links and the details */
.mnav__script {
  position: fixed;
  right: max(var(--gutter), env(safe-area-inset-right, 0px));
  top: 55%;
  z-index: -1;
  font-size: clamp(3.4rem, 18vw, 8rem);
  line-height: 1.6;
  color: var(--gold-400);
  opacity: .07;
  pointer-events: none;
}

/* Tablets: two buttons side by side, the links a little more generous */
@media (min-width: 640px) {
  .mnav__nav { max-width: 680px; }
  .mnav__script { top: 62%; }
}

/* Short portrait phones: tighter spacing so all six links and the details fit without scrolling */
@media (max-height: 680px) and (max-width: 639px) {
  .mnav__body { gap: 16px; padding-top: 2px; }
  .mnav__nav a { padding-block: 6px; }
  .mnav__foot { padding-top: 14px; }
}

/* Landscape phones: links on the left, the details on the right, so nothing needs scrolling */
@media (max-height: 560px) and (min-width: 560px) {
  .mnav__body {
    flex-direction: row;
    align-items: flex-end;
    gap: clamp(24px, 5vw, 56px);
    padding: 4px 0 0;
  }
  .mnav__nav { flex: 1 1 55%; }
  .mnav__nav a {
    padding: 7px 0;
    font-size: clamp(1.5rem, 7.2vh, 2.3rem);
  }
  .mnav__foot {
    flex: 1 1 45%;
    margin-top: 0;
  }
  .mnav__actions { grid-template-columns: 1fr; }
  .mnav__script { top: auto; bottom: 6vh; right: 50%; }
}

html.nav-open { overflow: hidden; }

/* 6. Action dock (phones and tablets) -------------------------------------- */
/* Built by main.js: Call · Menu · Directions (· Order). Hidden over the hero and the footer,
   while scrolling down, while the navigation is open and while a text field has focus. */
.dock { display: none; }

@media (max-width: 1023px) {
  .dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 95;
    display: block;
    padding:
      6px
      max(10px, env(safe-area-inset-right, 0px))
      calc(6px + var(--safe-bottom))
      max(10px, env(safe-area-inset-left, 0px));
    background: linear-gradient(180deg, color-mix(in srgb, var(--ink-950) 76%, transparent), color-mix(in srgb, var(--ink-950) 92%, transparent));
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 -20px 44px -20px rgb(0 0 0 / .7);
    transform: translate3d(0, calc(100% + 24px), 0);
    visibility: hidden;
    transition: transform .42s var(--ease-in-out), visibility 0s linear .42s;
  }
  /* Gold hairline that catches the light at its centre */
  .dock::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-600) 16%, var(--gold-200) 50%, var(--gold-600) 84%, transparent);
    opacity: .85;
  }
  html.dock-visible .dock {
    transform: none;
    visibility: visible;
    transition: transform .6s var(--ease-out), visibility 0s;
  }
}

/* Tablets: a floating bar, centred above the bottom edge */
@media (min-width: 640px) and (max-width: 1023px) {
  .dock {
    left: 50%;
    right: auto;
    bottom: calc(14px + var(--safe-bottom));
    width: min(540px, calc(100% - 2 * var(--gutter)));
    padding: 6px 8px;
    border: 1px solid color-mix(in srgb, var(--gold-400) 22%, transparent);
    border-radius: 3px;
    transform: translate3d(-50%, calc(100% + 40px), 0);
    box-shadow: var(--shadow-deep);
  }
  html.dock-visible .dock { transform: translate3d(-50%, 0, 0); }
}

.dock__list {
  display: grid;
  grid-template-columns: repeat(var(--dock-n, 3), minmax(0, 1fr));
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.dock__list li { position: relative; }
.dock__list li + li::before {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 1px;
  background: color-mix(in srgb, var(--gold-400) 18%, transparent);
}
.dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 54px;
  padding: 5px 4px;
  border-radius: 2px;
  color: var(--ivory);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.dock__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: var(--gold-400);
  transition: transform .3s var(--ease-out);
}
.dock__svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dock__label {
  font: 500 .75rem/1 var(--font-body);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Call is the primary action: a small gold disc */
.dock__item--primary .dock__icon {
  border-radius: 50%;
  background: var(--gold-400);
  color: var(--ink-950);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold-400) 16%, transparent), 0 0 18px rgba(216, 181, 109, .35);
}
.dock__item--primary .dock__svg { width: 16px; height: 16px; stroke-width: 1.7; }
.dock__item:active { background: color-mix(in srgb, var(--gold-400) 12%, transparent); }
.dock__item:active .dock__icon { transform: scale(.9); }
.dock__item:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) {
  .dock__item:hover { color: var(--gold-200); }
}
/* Four actions on a narrow phone: sentence-case labels so "Directions" still fits */
.dock--4 .dock__label {
  letter-spacing: .02em;
  text-transform: none;
  font-size: .8rem;
}

/* 7. Footer ---------------------------------------------------------------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(56px, 7vw, 112px) 0 calc(clamp(18px, 2.2vw, 36px) + var(--safe-bottom));
  border-top: var(--hairline);
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(216, 181, 109, .07), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(232, 116, 42, .09), transparent 72%),
    #080706;
}
.site-footer > .container {
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

.site-footer__accent {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  width: min(52vw, 760px);
  aspect-ratio: 3 / 2;
  opacity: .34;
  -webkit-mask-image: radial-gradient(closest-side at 62% 45%, #000 20%, transparent 100%);
  mask-image: radial-gradient(closest-side at 62% 45%, #000 20%, transparent 100%);
  pointer-events: none;
}
.site-footer__accent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #140f10;
}

/* Columns: Explore · Find us · Call or book · Follow (only with social links) · back to top */
.site-footer__cols {
  position: relative;
  display: flex;
  gap: 40px clamp(32px, 4vw, 72px);
  padding-bottom: clamp(36px, 4vw, 56px);
  border-bottom: var(--hairline);
}
.site-footer__col {
  flex: 1 1 0;
  min-width: 0;
}
.site-footer__col--explore { flex-grow: 1.3; }
.site-footer__h {
  margin-bottom: 14px;
  font: 500 .75rem/1.3 var(--font-body);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-400);
}
.site-footer__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer__list--nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}
.site-footer__list a,
.site-footer__link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--ivory);
  text-decoration: none;
  transition: color .3s var(--ease-out);
}
/* Nav links: a short gold rule slides in on hover */
.site-footer__list a::before {
  content: "";
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--gold-400);
  transition: width .45s var(--ease-out), margin-right .45s var(--ease-out);
}
.site-footer__link {
  display: inline-flex;
  gap: 10px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold-400) 50%, transparent);
  text-underline-offset: 5px;
}
.site-footer__arrow {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--gold-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .4s var(--ease-out);
}
.site-footer__list a:active,
.site-footer__link:active { color: var(--gold-200); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__list a:hover,
  .site-footer__link:hover { color: var(--gold-200); }
  .site-footer__list a:hover::before { width: 14px; margin-right: 10px; }
  .site-footer__link:hover .site-footer__arrow { transform: translateX(4px); }
}
.site-footer__address {
  color: var(--ivory);
  line-height: 1.6;
}
.site-footer__phone {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  font: 500 clamp(1.5rem, 2.3vw, 2.1rem)/1.2 var(--font-display);
  font-variant-numeric: lining-nums tabular-nums;
  white-space: nowrap;
  color: var(--gold-200);
  text-decoration: none;
  transition: color .3s var(--ease-out);
}
.site-footer__phone:active { color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .site-footer__phone:hover { color: var(--ivory); }
}
.site-footer__status {
  display: flex;
  width: fit-content;
  margin-top: 4px;
  font-size: .8125rem;
  letter-spacing: .06em;
  text-transform: none;
}
.site-footer__meta {
  margin-top: 6px;
  color: var(--ivory-muted);
  font-size: .95rem;
}
.site-footer__meta [data-pa-text="hours"] { white-space: nowrap; }

/* Back to top, with a ring that fills with reading progress (main.js sets the offset) */
.back-top {
  flex: none;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font: 500 .75rem/1 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ivory-muted);
  transition: color .3s var(--ease-out);
}
.back-top__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transition: transform .5s var(--ease-out);
}
.back-top__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}
.back-top__track,
.back-top__fill {
  fill: none;
  stroke-width: 1;
}
.back-top__track { stroke: color-mix(in srgb, var(--gold-400) 26%, transparent); }
.back-top__fill {
  stroke: var(--gold-400);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset .9s var(--ease-out);
}
.back-top__arrow {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold-200);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-top:active .back-top__ring { transform: translateY(-3px); }
@media (hover: hover) and (pointer: fine) {
  .back-top:hover { color: var(--gold-200); }
  .back-top:hover .back-top__ring { transform: translateY(-4px); }
}

/* Legal */
.site-footer__legal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px 48px;
  padding-top: 26px;
  font-size: .86rem;
  line-height: 1.6;
  color: var(--ivory-muted);
}
.site-footer__notice { max-width: 46rem; }
.site-footer__notice strong {
  display: block;
  margin-bottom: 4px;
  font: 500 .75rem/1.3 var(--font-body);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ember-500);
}
.site-footer__fine {
  display: grid;
  justify-items: end;
  text-align: right;
}
.site-footer__web {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: -10px;
  color: var(--ivory-muted);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold-400) 40%, transparent);
  text-underline-offset: 4px;
  transition: color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__web:hover { color: var(--gold-200); }
}

/* Credit line under the wordmark */
.site-footer__credit {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 .45em;
  margin-top: clamp(18px, 2.4vw, 32px);
  padding-top: 14px;
  border-top: var(--hairline);
  font-size: .8rem;
  letter-spacing: .08em;
  color: var(--ivory-muted);
  text-align: center;
}
.site-footer__credit a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-400);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--gold-400) 40%, transparent);
  text-underline-offset: 4px;
  transition: color .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .site-footer__credit a:hover { color: var(--gold-200); }
}

/* Finale: the wordmark spans the container at every width (container query units),
   with the Nastaliq seal above its end, echoing the hero */
.site-footer__brand {
  position: relative;
  container-type: inline-size;
  /* Room for the seal, whose tallest strokes rise about 4.6% of the width above the brand */
  margin-top: clamp(36px, 6.4vw, 120px);
}
/* "Pak Afghan" inks 4.19em wide in Cormorant 500 at this tracking, and the P's side bearing is .037em */
.site-footer__word {
  /* the bottom margin is the depth of the "g", so the credit rule below never meets it */
  margin: 0 0 .3em -.037em;
  font: 500 clamp(3.6rem, 19.2vw, 17.6rem)/.86 var(--font-display);
  font-size: calc(100cqi / 4.2);
  letter-spacing: -.035em;
  white-space: nowrap;
}
/* The "g" descends about .3em below the baseline, past the .86 line box, so the reveal mask
   and the gold paint box (background-clipped text) both reach .4em below with equal negative
   margins, leaving the layout untouched. */
.site-footer__mask {
  display: inline-block;
  overflow: hidden;
  padding: .06em .04em .4em;
  margin: -.06em -.04em -.4em;
  vertical-align: top;
}
.site-footer__wordmark {
  display: inline-block;
  padding-bottom: .4em;
  margin-bottom: -.4em;
  transition: transform 1.3s var(--ease-out);
}
/* Sized and placed in container units so the lockup is identical at every width.
   Noto Nastaliq inks 1.49em above its baseline and .52em below (the tail and dots of پ), so:
   - padding with equal negative margins grows the paint box (gold is background-clipped text)
     past the 1.6 line box without moving the glyphs;
   - at .235 of the wordmark size (23.81cqi) the whole seal, پ included, ends just above the
     x-height of "an", clear of the tall letters to its left, and rises into the brand's top margin. */
.site-footer__script {
  position: absolute;
  top: -3.3vw;
  top: -4.01cqi;
  right: .1em;
  padding: .12em .18em .5em;
  margin: -.12em -.18em -.5em;
  font-size: clamp(1.3rem, 4.8vw, 5rem);
  font-size: 5.6cqi;
  line-height: 1.6;
  white-space: nowrap;
  pointer-events: none;
  clip-path: inset(-15% -6% -25% -6%);
  transition: clip-path 1.2s var(--ease-out) .35s, opacity .8s var(--ease-out) .35s;
}

/* Reveal: hidden only once main.js has armed it. The wordmark rises, the seal is written in
   from right to left (the clip is wider than the box so no stroke is ever cut),
   then a band of light crosses the gold once. */
.reveal-armed .site-footer__brand:not(.is-in) .site-footer__wordmark { transform: translate3d(0, 105%, 0); }
.reveal-armed .site-footer__brand:not(.is-in) .site-footer__script {
  clip-path: inset(-15% -6% -25% 106%);
  opacity: 0;
}

@media (max-width: 1023px) {
  .site-footer__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
  }
  .site-footer__col--explore,
  .site-footer__col[data-pa-social-block] { grid-column: 1 / -1; }
  .site-footer__list--nav { padding-right: 68px; }
  /* The ring sits beside the Explore heading; its label stays for screen readers */
  .back-top {
    position: absolute;
    top: -18px;
    right: 0;
  }
  .back-top__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .site-footer__list--nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  /* The call column gets a little more room so the live status stays on one line */
  .site-footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .site-footer__status { font-size: .78rem; letter-spacing: .03em; }
  .site-footer__legal { grid-template-columns: 1fr; gap: 10px; }
  .site-footer__fine { justify-items: start; text-align: left; }
  .site-footer__web { margin-bottom: 0; }
  .site-footer__accent { width: 120vw; right: -40vw; opacity: .3; }
  .site-footer__meta { font-size: .875rem; }
}

/* 8. Custom cursor (fine pointers only; main.js adds .has-cursor) ---------- */
.cursor,
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s var(--ease-out);
  will-change: transform;
}
.cursor-visible .cursor,
.cursor-visible .cursor-dot { opacity: 1; }
.cursor-visible.cursor-hidden .cursor,
.cursor-visible.cursor-hidden .cursor-dot { opacity: 0; }

.cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: var(--gold-400);
}
.cursor {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
}
.cursor__ring {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--gold-400) 65%, transparent);
  border-radius: 50%;
  transition: transform .5s var(--ease-out), background-color .35s var(--ease-out), border-color .35s var(--ease-out);
}
.cursor.is-link .cursor__ring {
  transform: scale(1.6);
  background: color-mix(in srgb, var(--gold-400) 10%, transparent);
}
.cursor.is-view .cursor__ring {
  transform: scale(2.3);
  border-color: var(--gold-400);
  background: var(--gold-400);
}
.cursor.is-down .cursor__ring { transform: scale(.82); }
.cursor.is-link.is-down .cursor__ring { transform: scale(1.35); }
.cursor__label {
  position: relative;
  font: 600 .75rem/1 var(--font-body);
  letter-spacing: .18em;
  margin-right: -.18em;
  text-transform: uppercase;
  color: var(--ink-950);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .25s var(--ease-out), transform .5s var(--ease-out);
}
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
/* The dot would sit on the View label, so it steps aside */
.cursor-visible .cursor-dot.is-hidden { opacity: 0; }

html.has-cursor:not(.cursor-hidden),
html.has-cursor:not(.cursor-hidden) * { cursor: none !important; }

/* 9. Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .preloader { display: none !important; }
  .status.is-open .status__dot::after { animation: none; }
  .btn--gold::before { display: none; }
  .site-header,
  .dock { transition: none !important; }
  .mnav,
  .mnav.is-open { transition: none; clip-path: none; }
  .mnav__line,
  .mnav__nav a::after,
  .mnav__foot { transform: none; transition: none; }
  .mnav__foot { opacity: 1; }
  .site-footer__wordmark,
  .site-footer__script,
  .back-top__fill { transition: none; }
  .gold-text.sheen { animation: none !important; background-position: 130% 0, 0 0; }
}
