/* SAHAR · global system. Tokens and rules: BRIEF.md sections 3 and 4.
   Section files: craft.css, collection.css, bespoke.css. */

html, body { background: #F6EFE4; }

/* ---------------------------------------------------------------- tokens */
:root {
  /* Ground and ink */
  --ivory: #F6EFE4;
  --sand: #ECDFCB;
  --dune: #D9C2A0;
  --ink: #2B1A11;
  --ink-2: #66503F;
  --ink-3: #8A7260;
  --chocolate: #2A150B;

  /* The one accent: saffron. Fill with ink text; as text use --saffron-ink. */
  --saffron: #D9822B;
  --saffron-hi: #E89A45;
  --saffron-ink: #94500F;

  /* Night, closing section only */
  --dusk: #33202A;
  --dusk-2: #46303B;
  --on-dusk: #F3E6D8;
  --on-dusk-2: #CDB9AE;

  /* Context colours (swapped on dark grounds) */
  --fg: var(--ink);
  --fg-2: var(--ink-2);
  --line: rgb(43 26 17 / 0.14);
  --line-2: rgb(43 26 17 / 0.3);

  /* Motion: everything moves like chocolate at temperature */
  --ease-flow: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-set: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-pour: cubic-bezier(0.5, 0, 0.15, 1);
  --ease-snap: cubic-bezier(0.3, 0, 0, 1);
  --t-snap: 200ms;
  --t-base: 500ms;
  --t-set: 1100ms;
  --t-melt: 1400ms;
  --t-pour: 1600ms;

  /* Type */
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-ui: "Jost", "Futura", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-ar: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;

  /* Space */
  --gutter: clamp(20px, 4.2vw, 72px);
  --max: 1440px;
  --section: clamp(96px, 15vh, 180px);
  --radius-stage: 28px;

  /* Live state, written by app.js */
  --ground: #F6EFE4;

  color-scheme: light;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }

body {
  min-height: 100vh;
  background: transparent;
  color: var(--fg);
  font-family: var(--f-ui);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Fine grain over everything: the page reads as paper, not as a screen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0 0.12 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--saffron); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--saffron-ink); outline-offset: 4px; border-radius: 4px; }

.ground {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ground);
}

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 400;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  transform: translateY(-160%);
  transition: transform var(--t-snap) var(--ease-snap);
}
.skip:focus { transform: none; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------------------------------------------------------------- type */
.label {
  display: inline-flex;
  align-items: center;
  gap: 0.9em;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.label .num {
  display: inline-flex; align-items: center; gap: 0.9em;
  color: var(--saffron-ink);
  font-variant-numeric: tabular-nums;
}
.label .num::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: 0.6; }
.label .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--saffron); }

h1, h2, h3, .h2 { font-family: var(--f-display); font-weight: 300; text-wrap: balance; }

.h2 {
  font-size: clamp(2.5rem, 5.4vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.032em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  color: var(--fg);
}
h1 em, h2 em, h3 em, .h2 em {
  font-style: italic;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  color: var(--saffron-ink);
}

.lede {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(1.15rem, 1.35vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.005em;
  color: var(--fg);
  max-width: 34ch;
  text-wrap: pretty;
}
.body { font-size: 1rem; line-height: 1.7; color: var(--fg-2); max-width: 46ch; text-wrap: pretty; }

.ar, [lang="ar"] { font-family: var(--f-ar); font-weight: 400; letter-spacing: 0; }

/* Temper-in: split words rise warm and set sharp (driven by app.js through --soft) */
h1, h2, .h2 { --wonk: 0; }
h1 em, h2 em, .h2 em { --wonk: 1; }
.tw {
  display: inline-block;
  font-variation-settings: "SOFT" var(--soft, 0), "WONK" var(--wonk, 0);
  will-change: transform, filter, opacity;
}

/* ---------------------------------------------------------------- buttons and links */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 6px 6px 6px 26px;
  border-radius: 999px;
  background: var(--saffron);
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  transition: color var(--t-snap) var(--ease-snap), transform var(--t-snap) var(--ease-snap);
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--saffron-hi);
  transform: translateY(101%);
  border-radius: inherit;
  transition: transform var(--t-base) var(--ease-set);
}
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:active { transform: scale(0.98); }
.btn__icon {
  flex: none;
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--ivory);
  transition: transform var(--t-base) var(--ease-set);
}
.btn__icon svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn__icon { transform: translateY(2px); }
.btn--small { min-height: 40px; padding: 0 20px; font-size: 0.7rem; }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink::before { background: #4A2E1F; }
.btn--ink .btn__icon { background: var(--saffron); color: var(--ink); }

.link {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 0;
  font-family: var(--f-ui); font-weight: 500;
  font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg);
}
.link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px;
  background: currentColor; transform-origin: right; transform: scaleX(0.35);
  transition: transform var(--t-base) var(--ease-set);
}
.link:hover::after { transform-origin: left; transform: scaleX(1); }
.link--light { color: var(--ivory); }

.round {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--fg);
  transition: background var(--t-snap) var(--ease-snap), color var(--t-snap) var(--ease-snap), border-color var(--t-snap) var(--ease-snap);
}
.round svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.chip {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--f-ui); font-size: 0.86rem; letter-spacing: 0.02em;
  color: var(--fg);
  transition: background var(--t-snap) var(--ease-snap), color var(--t-snap) var(--ease-snap), border-color var(--t-snap) var(--ease-snap);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.chip--ar { font-family: var(--f-ar); font-size: 1.05rem; }

/* ---------------------------------------------------------------- loader */
.loader {
  position: fixed; inset: 0; z-index: 250;
  display: none;
  background: var(--ivory);
  -webkit-mask: radial-gradient(circle at 50% var(--hole-y, 50%), transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
  mask: radial-gradient(circle at 50% var(--hole-y, 50%), transparent var(--hole, 0px), #000 calc(var(--hole, 0px) + 1px));
}
.js .loader { display: block; }
.reduced .loader { display: none; }
.loader__drip {
  position: absolute; left: calc(50% - 7px); top: 0;
  width: 14px; height: 44px;
  transform-origin: 50% 0;
  transform: scaleY(0);
}
.loader__mark {
  position: absolute; left: 0; right: 0; top: calc(50% - clamp(170px, 27vh, 260px));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.loader__ar { font-family: var(--f-ar); font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1; color: var(--saffron-ink); }
.loader__word {
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: clamp(3.2rem, 7vw, 6rem); line-height: 1; letter-spacing: -0.04em;
  font-variation-settings: "SOFT" var(--soft, 0), "WONK" 1;
  color: var(--ink);
}
.loader__drop {
  position: absolute; left: calc(50% - 20px); top: 0;
  transform: scale(0);
  transform-origin: 50% 0;
  filter: drop-shadow(0 10px 14px rgb(42 21 11 / 0.18));
}
.loader__ring {
  position: absolute; left: 50%; top: var(--hole-y, 50%);
  width: 0; height: 0; border-radius: 50%;
  border: 0 solid var(--chocolate);
  transform: translate(-50%, -50%);
  opacity: 0;
}
.loader__line {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 6vh, 56px);
  text-align: center;
  font-family: var(--f-ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px);
  padding: 18px var(--gutter);
  color: var(--fg);
  transition: transform var(--t-base) var(--ease-flow), color var(--t-base) var(--ease-flow), background-color var(--t-base) var(--ease-flow);
}
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ground);
  opacity: 0;
  border-bottom: 1px solid var(--line);
  transition: opacity var(--t-base) var(--ease-flow);
}
.nav.is-solid::before { opacity: 0.94; }
.nav.is-hidden { transform: translateY(-110%); }
.nav.is-hidden:focus-within { transform: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__mark { overflow: visible; }
.brand__sun { fill: var(--saffron); }
.brand__horizon { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.brand__word {
  font-family: var(--f-display); font-style: italic; font-weight: 400;
  font-size: 1.6rem; line-height: 1; letter-spacing: -0.03em;
  font-variation-settings: "SOFT" 30, "WONK" 1;
}
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__links a {
  position: relative; padding: 8px 0;
  font-family: var(--f-ui); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t-base) var(--ease-set);
}
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__burger { display: none; width: 44px; height: 44px; position: relative; }
.nav__burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform var(--t-base) var(--ease-set);
}
.nav__burger span:first-child { top: 18px; }
.nav__burger span:last-child { top: 25px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.is-dark-nav .nav, .is-dark-clock .clock { --fg: var(--on-dusk); --fg-2: var(--on-dusk-2); --line: rgb(243 230 216 / 0.14); --ground: var(--dusk); }

.menu {
  position: fixed; inset: 0; z-index: 110;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 100px var(--gutter) 40px;
  background: var(--ivory);
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-family: var(--f-display); font-weight: 300; font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.1; letter-spacing: -0.03em;
}
.menu__no { font-family: var(--f-ui); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--saffron-ink); }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
}

/* ---------------------------------------------------------------- sun clock */
.clock {
  position: fixed; left: calc(var(--gutter) - 14px); bottom: 18px; z-index: 100;
  display: flex; align-items: flex-end; gap: 12px;
  padding: 10px 18px 9px 14px;
  border-radius: 999px;
  background: var(--ground);
  box-shadow: 0 0 0 1px var(--line), 0 10px 30px -12px rgb(43 26 17 / 0.25);
  color: var(--fg);
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease-flow), transform var(--t-base) var(--ease-flow);
}
.clock.is-resting { transform: translateY(12px); transition-duration: 900ms; }
.clock__arc { overflow: visible; }
.clock__track { fill: none; stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 1.5 3; }
.clock__done { fill: none; stroke: var(--saffron); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; }
.clock__horizon { stroke: currentColor; stroke-width: 1; opacity: 0.55; }
.clock__sun { fill: var(--saffron); }
.clock__text { display: flex; flex-direction: column; line-height: 1.2; padding-bottom: 1px; }
.clock__time {
  font-family: var(--f-ui); font-weight: 500; font-size: 0.86rem; letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.clock__name { font-family: var(--f-ui); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); }
@media (max-width: 720px) { .clock { display: none; } }

/* ---------------------------------------------------------------- cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 260; pointer-events: none; display: none; opacity: 0; transition: opacity var(--t-base) var(--ease-flow); }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor canvas { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.cursor__drop {
  position: absolute; left: -6px; top: -6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--chocolate);
  transition: background-color var(--t-snap) var(--ease-snap), opacity var(--t-snap) var(--ease-snap);
}
.cursor__ring {
  position: absolute; left: -36px; top: -36px;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--chocolate);
  color: var(--ivory);
  transform: scale(0);
  transition: transform var(--t-base) var(--ease-set);
}
.cursor__label { font-family: var(--f-ui); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; }
.cursor.is-hover .cursor__drop { opacity: 0.0; }
.cursor.is-hover .cursor__ring { transform: scale(0.42); }
.cursor.is-label .cursor__drop { opacity: 0; }
.cursor.is-label .cursor__ring { transform: scale(1); }
.cursor.is-down .cursor__ring { transform: scale(0.86); }
/* While dragging something (the knife, a piece), the disc shrinks to a bead so it never hides the work. */
.cursor.is-label.is-down .cursor__ring { transform: scale(0.2); }
.cursor__label { transition: opacity var(--t-snap) var(--ease-snap); }
.cursor.is-label.is-down .cursor__label { opacity: 0; }
.is-dark-nav .cursor__drop { background: var(--saffron); }

/* ---------------------------------------------------------------- 01 hero */
.hero { position: relative; height: 250vh; }
.hero__stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  color: var(--ink);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__fallback {
  position: absolute; inset: 0; display: none;
  background:
    radial-gradient(60% 38% at 70% 50%, rgb(255 214 160 / 0.9), transparent 70%),
    linear-gradient(180deg, #CBBBD2 0%, #E7B8A8 32%, #F3C890 50%, #4A2A18 54%, #2A150B 72%, #1E0F08 100%);
}
.no-webgl .hero__fallback, .desert-timeout:not(.desert-ready) .hero__fallback { display: block; }
.no-webgl .hero__hint, .desert-timeout:not(.desert-ready) .hero__hint { display: none; }
.hero__veil { position: absolute; inset: 0; background: var(--ivory); opacity: 0; pointer-events: none; }

.hero__copy--a {
  position: absolute; left: var(--gutter); right: var(--gutter);
  top: clamp(104px, 16vh, 180px);
}
.hero__eyebrow { margin-bottom: clamp(18px, 3vh, 30px); color: var(--ink); }
.hero__title {
  font-size: clamp(3.6rem, 10.4vw, 11.5rem);
  line-height: 0.86;
  letter-spacing: -0.048em;
  font-weight: 300;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  color: var(--ink);
  max-width: 9ch;
}
.hero__title em { display: inline-block; padding-right: 0.08em; }

.hero__bottom {
  position: absolute; left: var(--gutter); right: var(--gutter);
  bottom: clamp(28px, 6vh, 64px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  color: var(--ivory);
}
.hero__lede {
  font-family: var(--f-display); font-weight: 350;
  font-size: clamp(1.08rem, 1.3vw, 1.32rem); line-height: 1.45;
  max-width: 30ch;
  color: var(--ivory);
  text-shadow: 0 2px 18px rgb(30 15 8 / 0.45);
}
.hero__actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.hero__copy--b {
  position: absolute; left: var(--gutter); right: var(--gutter);
  top: 50%; transform: translateY(-62%);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  opacity: 0; visibility: hidden;
}
.hero__word { font-family: var(--f-ar); font-size: clamp(5rem, 13vw, 12rem); line-height: 1.1; color: var(--ink); }
.hero__def { margin-top: 4px; font-family: var(--f-display); font-size: clamp(1.1rem, 1.6vw, 1.5rem); color: var(--ink); }
.hero__def em { font-style: italic; font-variation-settings: "WONK" 1; }
.hero__defline {
  margin-top: 14px; max-width: 40ch;
  font-family: var(--f-display); font-weight: 350; font-size: clamp(1rem, 1.2vw, 1.2rem); line-height: 1.5; color: var(--ink-2);
}

.hero__hint {
  position: absolute; left: 50%; bottom: clamp(26px, 5.5vh, 60px); transform: translateX(-50%);
  color: rgb(246 239 228 / 0.72);
}
.hero__hint-touch { display: none; }
@media (hover: none) { .hero__hint-mouse { display: none; } .hero__hint-touch { display: inline; } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 0; width: 1px; height: clamp(18px, 4vh, 44px);
  background: rgb(246 239 228 / 0.2); overflow: hidden;
}
.hero__scroll-line { position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: var(--ivory); transform: translateY(-100%); animation: scrollLine 2.6s var(--ease-flow) infinite 3s; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 900px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 22px; }
  .hero__hint { display: none; }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(3.2rem, 17vw, 5rem); }
  .hero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .hero__actions .btn { justify-content: space-between; }
  .hero__actions .link { align-self: flex-start; }
}

/* ---------------------------------------------------------------- marquee */
.marquee {
  position: relative;
  padding-block: clamp(26px, 5vh, 52px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track { display: inline-flex; align-items: center; gap: 0.5em; will-change: transform; }
.marquee__item {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(2.6rem, 7.4vw, 7.6rem); line-height: 1; letter-spacing: -0.035em;
  color: var(--fg);
}
.marquee__item em { font-style: italic; font-variation-settings: "WONK" 1; color: var(--saffron-ink); }
.marquee .star { width: clamp(1.4rem, 3.4vw, 3.2rem); height: auto; fill: var(--saffron); flex: none; margin-inline: 0.3em; }

/* ---------------------------------------------------------------- 05 bespoke · occasions */
.occasions { margin-top: var(--section); padding-bottom: var(--section); }
.occasion {
  position: relative;
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.15fr) 64px;
  align-items: center; gap: 24px;
  padding: clamp(22px, 3.4vh, 34px) 0;
  border-top: 1px solid var(--line-2);
}
.occasion:last-child { border-bottom: 1px solid var(--line-2); }
.occasion::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(255 250 242 / 0.55);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-base) var(--ease-set);
}
.occasion:hover::before { transform: scaleY(1); }
.occasion__no { font-family: var(--f-display); font-style: italic; font-size: 1.1rem; color: var(--saffron-ink); padding-left: 6px; }
.occasion__name {
  font-size: clamp(1.9rem, 3.4vw, 3.3rem); line-height: 1; letter-spacing: -0.03em;
  transition: transform var(--t-base) var(--ease-set);
}
.occasion:hover .occasion__name { transform: translateX(12px); }
.occasion__line { font-size: 1rem; line-height: 1.6; color: var(--fg-2); max-width: 40ch; }
.occasion__icon { width: 48px; height: 48px; justify-self: end; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.occasion__icon [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 0s; }
.occasion:hover .occasion__icon [pathLength] { animation: drawIcon 1.1s var(--ease-pour) both; }
@keyframes drawIcon { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (max-width: 760px) {
  .occasion { grid-template-columns: 40px 1fr 48px; grid-template-areas: "no name icon" ". line line"; row-gap: 10px; }
  .occasion__no { grid-area: no; }
  .occasion__name { grid-area: name; }
  .occasion__line { grid-area: line; }
  .occasion__icon { grid-area: icon; width: 40px; height: 40px; }
}

/* ---------------------------------------------------------------- 06 finale and footer */
.finale {
  position: relative;
  --fg: var(--on-dusk); --fg-2: var(--on-dusk-2);
  --line: rgb(243 230 216 / 0.14); --line-2: rgb(243 230 216 / 0.3);
  color: var(--fg);
  /* The day ends on screen: gold, apricot, rose, plum, then night. */
  --band: clamp(260px, 42vh, 440px);
  padding-top: calc(var(--band) + clamp(24px, 4vh, 48px));
  background: linear-gradient(180deg,
    rgb(237 203 159 / 0) 0,
    #E8B58E calc(var(--band) * 0.2),
    #CF8E7C calc(var(--band) * 0.42),
    #9A5E66 calc(var(--band) * 0.62),
    #5B3846 calc(var(--band) * 0.82),
    var(--dusk) var(--band),
    var(--dusk) 100%);
  overflow: hidden;
}
.finale ::selection { background: var(--saffron); color: var(--ink); }
.finale :focus-visible { outline-color: var(--saffron); }
.finale__sky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.finale__inner { position: relative; }
.finale__title {
  margin-top: clamp(24px, 4vh, 40px);
  font-size: clamp(3rem, 8.4vw, 9rem); line-height: 0.9; letter-spacing: -0.045em;
  color: var(--fg);
  max-width: 11ch;
}
.finale__title em { color: var(--saffron-hi); }
.finale__grid {
  margin-top: clamp(48px, 9vh, 100px);
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px;
}
.finale__grid .lede { grid-column: 1 / span 4; color: var(--fg); }
.reserve { grid-column: 6 / span 7; display: grid; gap: 30px; }
.reserve__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.reserve__field { display: grid; gap: 8px; }
.reserve__field input {
  width: 100%; padding: 10px 0 12px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
  font-family: var(--f-display); font-size: 1.3rem; color: var(--fg);
  transition: border-color var(--t-snap) var(--ease-snap);
}
.reserve__field input:focus { outline: none; border-bottom-color: var(--saffron); }
.reserve__field input::placeholder { color: var(--fg-2); opacity: 0.55; font-style: italic; }
.reserve__opt { margin-left: 0.8em; text-transform: none; letter-spacing: 0.04em; opacity: 0.7; }
.reserve__field input[aria-invalid="true"] { border-bottom-color: #E59A84; }
.reserve__occasion { display: flex; flex-wrap: wrap; gap: 10px; }
.reserve__occasion legend { margin-bottom: 12px; }
.reserve__occasion label { position: relative; }
.reserve__occasion input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.reserve__occasion span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.9rem;
  transition: background var(--t-snap) var(--ease-snap), color var(--t-snap) var(--ease-snap), border-color var(--t-snap) var(--ease-snap);
}
.reserve__occasion input:checked + span { background: var(--on-dusk); color: var(--dusk); border-color: var(--on-dusk); }
.reserve__occasion input:focus-visible + span { outline: 1.5px solid var(--saffron); outline-offset: 3px; }
.reserve .btn { justify-self: start; }
/* A box chosen in section 05, attached to the request */
.reserve__box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: rgb(243 230 216 / 0.06);
}
.reserve__box[hidden] { display: none; }
.reserve__box-icon svg { fill: none; stroke: var(--saffron-hi); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.reserve__box-text { margin-top: 6px; font-family: var(--f-display); font-size: 1.04rem; line-height: 1.5; color: var(--fg); }
.reserve__box-remove {
  font-family: var(--f-ui); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px;
}
.reserve__box-remove:hover { color: var(--fg); }
.reserve__status { min-height: 1.6em; font-family: var(--f-display); font-size: 1.1rem; color: var(--fg); }
@media (max-width: 900px) {
  .finale__grid { grid-template-columns: 1fr; }
  .finale__grid .lede, .reserve { grid-column: auto; }
  .reserve__row { grid-template-columns: 1fr; }
}

.footer { position: relative; margin-top: var(--section); padding-bottom: 28px; }
.footer__word {
  display: flex; justify-content: center;
  font-family: var(--f-display); font-style: italic; font-weight: 300;
  font-size: 27vw; line-height: 0.8; letter-spacing: -0.06em;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  color: var(--on-dusk);
  user-select: none;
  padding-bottom: 0.08em;
}
.footer__word span { display: inline-block; --soft: 0; font-variation-settings: "SOFT" var(--soft), "WONK" 1; }
.footer__row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.footer__ar { font-family: var(--f-ar); font-size: 2rem; line-height: 1; color: var(--saffron-hi); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a, .footer__top {
  font-family: var(--f-ui); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2);
  transition: color var(--t-snap) var(--ease-snap);
}
.footer__nav a:hover, .footer__top:hover { color: var(--fg); }
.footer__top { display: inline-flex; align-items: center; gap: 8px; }
.footer__top svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer__meta { font-size: 0.86rem; line-height: 1.5; color: var(--fg-2); }
.footer__clock { color: var(--fg); font-variant-numeric: tabular-nums; }
.footer__legal { margin-top: 26px; font-size: 0.76rem; color: var(--fg-2); }
@media (max-width: 900px) {
  .footer__row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer__row { grid-template-columns: 1fr; gap: 22px; }
  .footer__nav { gap: 12px 22px; }
  .footer__word { font-size: 31vw; }
}

/* ---------------------------------------------------------------- motion states
   Hidden only once app.js has started (html.motion), so a failed script never blanks the page. */
.motion [data-reveal] { opacity: 0; transform: translateY(28px); }
.motion [data-temper] { visibility: hidden; }
.motion [data-temper].is-split { visibility: visible; }

.reduced *, .reduced *::before, .reduced *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}
