/* ============================================================
   AMAYA LALA — The Keyhole Édition
   Mobile-native (95% of traffic) · ivory editorial · Moroccan bab
   Gold appears exactly twice per page. JS-optional throughout.
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --ivory:      #F5F0E8;
  --bone:       #E8DFD1;
  --cognac:     #8B6F47; /* decorative only */
  --cognac-ink: #755C39; /* text-grade: 5.4:1 ivory, 4.7:1 bone */
  --gold:       #A78254;
  --earth:      #2C2520;
  --shadow:     #1A1612;
  --warm-gold:  #D4A574;

  --hairline: 1px solid color-mix(in srgb, var(--cognac) 38%, transparent);
  --hairline-dark: 1px solid color-mix(in srgb, var(--warm-gold) 30%, transparent);

  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, "Helvetica Neue", sans-serif;

  --t-display: clamp(2.375rem, 8.2vw + .4rem, 4.75rem);
  --t-h2: clamp(1.75rem, 4.6vw + .4rem, 2.875rem);
  --t-h3: clamp(1.3rem, 1.1vw + 1rem, 1.625rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-micro: .6875rem;

  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section: clamp(5.5rem, 16vw, 10rem);
  --radius: 2px;
}

/* ---------- fonts (subset, self-hosted) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(../fonts/cormorant-italic-400.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ivory);
  color: var(--earth);
  font: 400 var(--t-body)/1.65 var(--font-body);
  letter-spacing: .002em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.06; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--cognac-ink); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--earth); }
::selection { background: var(--bone); color: var(--earth); }

/* film grain — one tile, 4% */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 2147483646; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .04;
}

/* ---------- a11y primitives ---------- */
.skip-link {
  position: absolute; left: -200vw; top: 0; z-index: 100;
  background: var(--earth); color: var(--ivory); padding: .8em 1.4em;
  font: 500 var(--t-small) var(--font-body); text-decoration: none;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--earth) 55%, transparent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

/* ---------- shared atoms ---------- */
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }
.measure { max-width: var(--measure); }

.micro {
  font: 500 var(--t-micro)/1.5 var(--font-body);
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--cognac-ink); font-variant-numeric: tabular-nums;
}
.dark .micro, .micro--dark { color: var(--warm-gold); }

.rule { border: 0; border-top: var(--hairline); }

.btn {
  display: inline-block; background: var(--cognac-ink); color: var(--ivory);
  font: 500 .8125rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  padding: 1.15em 2.3em; border: 0; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .25s ease;
  min-height: 44px;
}
.btn:hover { background: var(--earth); color: var(--ivory); }
.dark .btn:hover { background: var(--warm-gold); color: var(--shadow); }
.hero .btn { background: var(--earth); color: var(--ivory); }
.hero .btn:hover { background: var(--shadow); color: var(--ivory); }

.link-more {
  font: 500 var(--t-small) var(--font-body); letter-spacing: .02em;
  color: var(--cognac-ink); text-decoration: none; border-bottom: var(--hairline);
  padding-bottom: .15em;
}
.link-more:hover { color: var(--earth); border-bottom-color: var(--earth); }

/* ---------- header / chrome ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem var(--gutter);
  transition: background-color .35s ease, box-shadow .35s ease;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--ivory) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--cognac) 25%, transparent);
}
.brand { display: inline-flex; align-items: center; color: var(--earth); text-decoration: none; }
.brand svg { height: 26px; width: auto; }
.on-shadow .site-header:not(.is-solid) .brand { color: var(--ivory); }
.site-nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2rem); }
.site-nav a:not(.btn) {
  font: 500 .75rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--earth); text-decoration: none; padding: .65em 0; min-height: 44px; display: inline-flex; align-items: center;
}
.on-shadow .site-header:not(.is-solid) .site-nav a:not(.btn) { color: var(--ivory); }
.site-nav a:not(.btn):hover { color: var(--cognac-ink); }
.on-shadow .site-header:not(.is-solid) .site-nav a:not(.btn):hover { color: var(--warm-gold); }
.site-nav .btn { padding: .95em 1.5em; font-size: .6875rem; }
@media (max-width: 47em) {
  .site-nav a.nav-about { display: none; } /* 3 items + CTA max on phone */
}

/* running editorial line */
.running-line {
  border-bottom: var(--hairline);
  padding: .55rem var(--gutter);
  display: flex; justify-content: center;
}

/* ---------- THE PLATE FRAME ---------- */
/* hero/case media: rectangular native 9:16 inside an offset gold hairline mat
   (gold moment 1 — the passe-partout) */
.arch {
  position: relative;
  overflow: hidden;
  background: var(--shadow);
}
.arch > video, .arch > img, .arch > picture img { width: 100%; height: 100%; object-fit: cover; }
.arch { outline: 1px solid var(--gold); outline-offset: 10px; }

/* ---------- HERO (light) ---------- */
.hero {
  position: relative; background: var(--ivory); color: var(--earth);
  height: 178svh;
}
.hero-stage {
  position: sticky; top: 0; height: 100svh; overflow: clip;
  display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center;
  padding: calc(3.2rem + env(safe-area-inset-top)) var(--gutter) max(1.4rem, env(safe-area-inset-bottom));
  row-gap: 1rem;
}
.hero-aperture {
  position: relative; grid-row: 1; align-self: center;
  height: clamp(16rem, min(100svh - 25.5rem, 74vw * 16 / 9), 34rem);
  aspect-ratio: 9 / 16;
}
.hero-aperture .arch { position: absolute; inset: 0; }
.hero-kicker { position: relative; text-align: center; }
.hero-copy { grid-row: 2; text-align: center; max-width: 34rem; }
.hero-copy h1 { font-size: clamp(1.55rem, 5vw + .35rem, 3.4rem); color: var(--shadow); }
.hero-copy .hero-sub { margin: .8rem auto 1.1rem; max-width: 30rem; font-size: .875rem; color: var(--cognac-ink); }
.hero-copy .micro { display: block; margin-bottom: .7rem; }

@media (min-width: 64em) {
  .hero { height: 200svh; }
  .hero-stage { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; padding-top: 4.5rem; }
  .hero-aperture { grid-column: 1; height: min(76svh, 44rem); max-width: none; justify-self: end; margin-right: 4vw; }
  .hero-copy { grid-column: 2; grid-row: 1; text-align: left; justify-self: start; margin-left: 4vw; max-width: 30rem; align-self: center; }
}

/* scroll-open choreography — 0KB JS */
@supports (animation-timeline: view()) {
  .hero { view-timeline-name: --hero; }
  .hero-aperture {
    animation: arch-open ease-in both;
    animation-timeline: --hero;
    animation-range: contain 12% contain 96%;
  }
  .hero-copy, .hero-kicker {
    animation: hero-copy-out linear both;
    animation-timeline: --hero;
    animation-range: contain 8% contain 44%;
  }
  .hero-aperture .arch {
    animation: stroke-out linear both;
    animation-timeline: --hero;
    animation-range: contain 12% contain 50%;
  }
  @keyframes arch-open { to { transform: scale(3.2); } }
  @keyframes hero-copy-out { to { opacity: 0; translate: 0 -1.2rem; visibility: hidden; } }
  @keyframes stroke-out { to { outline-color: transparent; } }
  /* masked rise on first paint */
  .hero-copy h1 { animation: rise .9s cubic-bezier(.2,.7,.2,1) .15s both; }
  @keyframes rise { from { opacity: 0; translate: 0 .55em; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .hero-stage { position: static; height: auto; min-height: 100svh; }
  .hero-aperture, .hero-copy, .hero-kicker, .arch, .hero-copy h1 { animation: none !important; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: clamp(2rem, 7vw, 3.5rem); }
.section-head .rule { flex: 1; }
.section h2 { font-size: var(--t-h2); margin-bottom: .6em; }

/* ---------- plates (selected work) ---------- */
.plate { position: relative; }
.plate-media {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  background: var(--bone); border: var(--hairline);
}
.plate-media video, .plate-media img { width: 100%; height: 100%; object-fit: cover; }
.plate-num {
  position: absolute; top: .9rem; left: 1rem; z-index: 2; color: var(--ivory);
  background: rgba(26,22,18,.42); padding: .4em .65em; border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.plate-cap { display: flex; gap: .8rem; align-items: baseline; padding-top: .9rem; }
.plate-cap p { font-size: var(--t-small); color: var(--earth); }
.plate-cap .micro { white-space: nowrap; }

/* sound toggle / pause affordance */
.av-btn {
  position: absolute; right: .8rem; bottom: .8rem; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--ivory) 55%, transparent);
  background: color-mix(in srgb, var(--shadow) 55%, transparent);
  color: var(--ivory); cursor: pointer; display: grid; place-items: center;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.av-btn svg { width: 17px; height: 17px; fill: currentColor; }
.av-btn.av-left { right: auto; left: .8rem; }
.av-btn .i-on, .av-btn[aria-pressed="true"] .i-off { display: none; }
.av-btn[aria-pressed="true"] .i-on { display: block; }

/* mobile: full-bleed snap wall */
@media (max-width: 47.99em) {
  .snap-wall .plate { margin-inline: calc(-1 * var(--gutter)); scroll-snap-align: start; }
  .snap-wall .plate-media { aspect-ratio: auto; height: 100svh; border-inline: 0; }
  .snap-wall .plate-cap {
    position: absolute; inset: auto 0 0 0; z-index: 2;
    padding: 4.5rem var(--gutter) 1.4rem;
    background: linear-gradient(to top, rgba(26,22,18,.82), rgba(26,22,18,0));
  }
  .snap-wall .plate-cap p { color: var(--ivory); }
  .snap-wall .plate-cap .micro { color: var(--warm-gold); }
  .snap-wall .plate + .plate { margin-top: 2px; }
  html.snap-on { scroll-snap-type: y proximity; }
}
/* desktop: 3-up editorial row */
@media (min-width: 48em) {
  .plates-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); }
  .plates-row .plate:nth-child(2) { translate: 0 2.6rem; }
}

/* ---------- current clients strip ---------- */
.clients-strip { border-top: var(--hairline); padding: 1.4rem 0; }
.clients-strip__label { color: var(--cognac-ink); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .75rem; }
.clients-strip__list { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: 0; margin: 0; }
.clients-strip__name { font-family: var(--font-display); font-size: var(--t-h3); color: var(--shadow); text-decoration: none; border-bottom: 1px solid var(--warm-gold); line-height: 1.4; }
.clients-strip__name:hover { color: var(--cognac-ink); border-bottom-color: var(--cognac-ink); }

/* ---------- brand line band ---------- */
.brandline { border-block: var(--hairline); }
.brandline-item { display: grid; gap: .35rem; padding: 1.6rem 0; }
.brandline-item + .brandline-item { border-top: var(--hairline); }
.brandline-item p { font-family: var(--font-display); font-size: var(--t-h3); line-height: 1.3; }

/* ---------- bone cards (price teasers) — hairline top = gold moment 2 ---------- */
.cards { display: grid; gap: 1.1rem; }
@media (min-width: 48em) { .cards { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } }
.card {
  background: var(--bone); border-top: 1px solid var(--gold);
  padding: clamp(1.5rem, 4vw, 2.2rem);
  display: grid; gap: .55rem; align-content: start;
}
.card h3 { font-size: var(--t-h3); }
.card .price { font: 700 1.6rem/1.2 var(--font-body); font-variant-numeric: tabular-nums; color: var(--earth); }
.card .price small { font-weight: 400; font-size: .85rem; color: color-mix(in srgb, var(--earth) 75%, var(--bone)); }
.card p { font-size: var(--t-small); color: color-mix(in srgb, var(--earth) 88%, var(--bone)); }
.ledger-strip { margin-top: 1.6rem; text-align: center; }

/* ---------- ledger table (services) ---------- */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.ledger th, .ledger td { text-align: left; padding: .95rem .2rem; border-top: var(--hairline); vertical-align: top; }
.ledger tr:last-child td, .ledger tr:last-child th { border-bottom: var(--hairline); }
.ledger th { font: 500 var(--t-micro) var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cognac-ink); width: 38%; padding-right: 1rem; }
.ledger td { font-variant-numeric: tabular-nums; }

/* ---------- house band ---------- */
.house { background: var(--bone); }
.house-grid { display: grid; gap: 2rem; }
@media (min-width: 64em) { .house-grid { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4rem; } }
.house-video { border: var(--hairline); aspect-ratio: 16 / 9; overflow: hidden; position: relative; background: var(--shadow); }
.house-video video, .house-video img { width: 100%; height: 100%; object-fit: cover; }
.cap-row { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.4rem; }

/* ---------- shadow rooms ---------- */
.dark { background: var(--shadow); color: var(--ivory); }
.dark h1, .dark h2, .dark h3 { color: var(--ivory); }
.dark a:not(.btn) { color: var(--warm-gold); }
.dark a:not(.btn):hover { color: var(--ivory); }
.dark .rule { border-top: var(--hairline-dark); }
.signoff { text-align: center; position: relative; overflow: hidden; }
.signoff .watermark {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(72vw, 26rem); opacity: .07; color: var(--warm-gold); pointer-events: none;
}
.signoff h2 { font-size: var(--t-h2); position: relative; }
.signoff p, .signoff .btn { position: relative; }

/* ---------- page headers (inner pages) ---------- */
.page-head { padding: calc(6.5rem + env(safe-area-inset-top)) 0 0; }
.page-head h1 { font-size: var(--t-display); margin: .35em 0 .25em; }
.page-head .lede { max-width: var(--measure); font-size: 1.125rem; color: color-mix(in srgb, var(--earth) 90%, var(--ivory)); }

/* ---------- work grid + filters ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0 2.4rem; }
.filter-row button {
  font: 500 var(--t-micro)/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
  background: none; border: var(--hairline); border-radius: 99px;
  color: var(--cognac-ink); padding: .85em 1.4em; cursor: pointer; min-height: 44px;
}
.filter-row button[aria-pressed="true"] { background: var(--earth); color: var(--ivory); border-color: var(--earth); }
.work-grid { display: grid; gap: 2.2rem 1.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 48em) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; } .work-grid .plate:nth-child(3n+2) { translate: 0 2.2rem; } }
.work-grid .plate.is-hidden { display: none; }

/* ---------- case pages ---------- */
.case-hero { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 64em) { .case-hero { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.case-hero .arch-wrap { position: relative; width: min(70vw, 22rem); aspect-ratio: 9/16; justify-self: center; padding: 10px; }
.case-hero .arch-wrap .arch { position: absolute; inset: 0; }
.facts { display: grid; gap: 0; margin-block: 2.2rem; }
.facts div { padding: .9rem 0; border-top: var(--hairline); font-size: var(--t-small); }
.facts div:last-child { border-bottom: var(--hairline); }
.stills-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 48em) { .stills-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; } .stills-grid figure:nth-child(3n+2) { translate: 0 1.8rem; } }
.stills-grid figure img { width: 100%; height: auto; border: var(--hairline); }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li { list-style: none; counter-increment: step; display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: var(--hairline); }
.steps li:last-child { border-bottom: var(--hairline); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 var(--t-micro)/2.2 var(--font-body); letter-spacing: .14em; color: var(--cognac-ink); }

/* ---------- forms (contact) ---------- */
.form-grid { display: grid; gap: 1.35rem; max-width: 38rem; }
.field { display: grid; gap: .45rem; }
.field label { font: 500 var(--t-micro)/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cognac); }
.field input, .field select, .field textarea {
  font: 400 1rem/1.45 var(--font-body); color: var(--earth);
  background: color-mix(in srgb, var(--ivory) 60%, var(--bone));
  border: var(--hairline); border-radius: var(--radius);
  padding: .9em 1em; min-height: 48px; width: 100%;
}
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field .hint { font-size: .8125rem; color: color-mix(in srgb, var(--earth) 70%, var(--ivory)); }
fieldset.field { border: 0; padding: 0; }
fieldset.field legend { font: 500 var(--t-micro)/1.4 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--cognac-ink); padding: 0; margin-bottom: .55rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices label {
  display: inline-flex; align-items: center; gap: .5em;
  border: var(--hairline); border-radius: 99px; padding: .7em 1.1em;
  font-size: .875rem; cursor: pointer; min-height: 44px;
}
.choices input { accent-color: var(--cognac); width: 1.05rem; height: 1.05rem; }
.choices label:has(input:checked) { background: var(--bone); border-color: var(--cognac); }
.hp-field { position: absolute !important; left: -200vw !important; width: 1px; height: 1px; overflow: hidden; }
/* dark-surface form variants (contact) — contrast-safe */
.dark .field label, .dark fieldset.field legend { color: var(--warm-gold); }
.dark .field .hint, .dark .form-note { color: color-mix(in srgb, var(--ivory) 72%, var(--warm-gold)); }
.dark .field input, .dark .field select, .dark .field textarea { border-color: color-mix(in srgb, var(--warm-gold) 35%, transparent); }
.dark .choices label { color: var(--ivory); border-color: color-mix(in srgb, var(--warm-gold) 35%, transparent); }
.dark .choices label:has(input:checked) { background: color-mix(in srgb, var(--warm-gold) 16%, transparent); border-color: var(--warm-gold); }
.dark .choices input { accent-color: var(--warm-gold); }
.form-note { font-size: .875rem; color: color-mix(in srgb, var(--earth) 75%, var(--ivory)); max-width: 38rem; }
.form-ok { border: var(--hairline); background: var(--bone); padding: 1.4rem 1.6rem; max-width: 38rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bone); border-top: var(--hairline); padding: 3rem 0 2.2rem; }
.footer-grid { display: grid; gap: 1.6rem; }
@media (min-width: 48em) { .footer-grid { grid-template-columns: auto 1fr auto; align-items: start; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.footer-nav a { font: 500 var(--t-micro)/2 var(--font-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.footer-rep { font-size: var(--t-small); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 2rem; font-size: .8125rem; color: color-mix(in srgb, var(--earth) 70%, var(--bone)); }
.footer-legal a { color: inherit; }
.site-footer .brand svg { height: 22px; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-content: center; text-align: center; gap: 1.2rem; padding: var(--gutter); }
.notfound svg { width: 9rem; margin-inline: auto; color: var(--earth); }

/* ---------- view transitions (MPA) ---------- */
@view-transition { navigation: auto; }
.site-header .brand { view-transition-name: brand; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@keyframes vt-in { from { opacity: 0; translate: 0 .6rem; } }
::view-transition-new(root) { animation: vt-in .35s cubic-bezier(.2,.7,.2,1); }
::view-transition-old(root) { animation: none; }

/* ---------- utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
[lang="ar"] { font-family: var(--font-body); }

/* ---------- gold rationing — inner pages (2 moments: kicker rule + footer keyline) ---------- */
.page-head > .micro::after { content: ""; display: block; width: 3.5rem; border-top: 1px solid var(--gold); margin-top: .9rem; }
body:not(.is-home) .site-footer { border-top: 1px solid var(--gold); }
