/* ============================================================
   ALDAR — A house of Yemeni coffee in Memphis
   Core design system · shared across all pages
   ============================================================ */

/* ----------------------------------------------------------
   Tokens
   ---------------------------------------------------------- */
:root {
  /* Color */
  --ink:        #0d0a06;
  --ink-1:      #14100a;
  --ink-2:      #1c1610;
  --ink-3:      #2a2018;
  --paper:      #efe6d3;
  --paper-2:    #e6dabe;
  --paper-3:    #d8c8a4;
  --brass:      #b8924b;
  --brass-light:#d4b27a;
  --brass-pale: #f0dcb0;
  --brass-deep: #8a6a30;
  --terra:      #7a3818;
  --terra-light:#a85528;
  --line-dark:  rgba(13, 10, 6, 0.16);
  --line-light: rgba(239, 230, 211, 0.18);

  /* Type */
  --display: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --serif:   "Fraunces", "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  --arabic:  "Amiri", "Reem Kufi", serif;

  /* Scales (fluid) */
  --fs-mega:   clamp(80px, 22vw, 380px);
  --fs-display:clamp(60px, 14vw, 240px);
  --fs-hero:   clamp(52px, 10.5vw, 168px);
  --fs-h1:     clamp(40px, 6.5vw, 110px);
  --fs-h2:     clamp(34px, 4.6vw, 76px);
  --fs-h3:     clamp(24px, 2.6vw, 38px);
  --fs-lede:   clamp(18px, 1.45vw, 24px);
  --fs-body:   clamp(15px, 1vw, 17px);
  --fs-small:  clamp(12px, 0.85vw, 13px);
  --fs-eyebrow:11px;

  /* Motion */
  --e-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --e-in:    cubic-bezier(0.6, 0, 0.84, 0);
  --e-inout: cubic-bezier(0.76, 0, 0.24, 1);
  --e-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --e-elastic:cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --pad-x: clamp(20px, 4.5vw, 72px);
  --max-w: 1640px;
}

/* ----------------------------------------------------------
   Reset
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--ink);
}
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1, "ss01" 1;
  overflow-x: hidden;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }
img, picture, video { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: transparent; padding: 0; color: inherit; cursor: none; }
a { color: inherit; text-decoration: none; cursor: none; }
@media (hover: none), (pointer: coarse) {
  button, a { cursor: pointer; }
}
::selection { background: var(--brass); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ----------------------------------------------------------
   Type primitives
   ---------------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 0.94;
  font-variation-settings: "SOFT" 50, "opsz" 144, "WONK" 0;
}
.display em, .display .it {
  font-style: italic;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.serif em { font-style: italic; }
.arabic { font-family: var(--arabic); direction: rtl; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--brass-deep);
}
.eyebrow .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass);
  margin-right: 2px;
}
.eyebrow .rule {
  display: inline-block;
  width: 40px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow.invert { color: var(--brass-light); }
.eyebrow.invert .num { color: var(--brass-light); }

/* ----------------------------------------------------------
   Layout primitives
   ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

section { position: relative; }

/* ----------------------------------------------------------
   Cursor (desktop)
   ---------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9000;
  mix-blend-mode: difference;
}
.cursor .dot {
  position: absolute;
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #fff;
  border-radius: 50%;
  transition: width 0.4s var(--e-out), height 0.4s var(--e-out), margin 0.4s var(--e-out), opacity 0.3s;
}
.cursor .ring {
  position: absolute;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  transition: width 0.5s var(--e-out), height 0.5s var(--e-out), margin 0.5s var(--e-out), border-color 0.4s, opacity 0.3s;
}
.cursor.hover .ring {
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border-color: var(--brass-light);
}
.cursor.hover .dot {
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
}
.cursor.text .ring {
  width: 4px; height: 32px;
  margin: -16px 0 0 -2px;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
  border: 0;
}
.cursor.text .dot { opacity: 0; }
.cursor.drag .ring {
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
}
.cursor.drag .dot {
  width: 0; height: 0;
}
.cursor.drag::after {
  content: "Drag";
  position: absolute;
  top: -7px; left: -14px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.05em;
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ----------------------------------------------------------
   Film grain (ambient)
   ---------------------------------------------------------- */
.film-grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 8000;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='320'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: grainShift 0.7s steps(6) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3px, 4px); }
  40%  { transform: translate(2px, -5px); }
  60%  { transform: translate(-4px, -2px); }
  80%  { transform: translate(3px, 3px); }
  100% { transform: translate(0, 0); }
}

/* ----------------------------------------------------------
   Reveal primitives (scroll-driven)
   ---------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--e-out), transform 1.1s var(--e-out);
}
.fade-up.in { opacity: 1; transform: translateY(0); }

.fade {
  opacity: 0;
  transition: opacity 1.4s var(--e-out);
}
.fade.in { opacity: 1; }

.stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--e-out), transform 1s var(--e-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.stagger.in > * { opacity: 1; transform: translateY(0); }

/* Letter mask reveal */
.lm {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  line-height: 1;
}
.lm > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.2s var(--e-elastic);
}
.lm.in > span { transform: translateY(0); }

/* Image mask reveal */
.img-mask {
  overflow: hidden;
  position: relative;
}
.img-mask::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink);
  transform-origin: bottom;
  transform: scaleY(1);
  transition: transform 1.4s var(--e-inout);
}
.img-mask.in::after { transform: scaleY(0); }
.img-mask img {
  transform: scale(1.16);
  transition: transform 1.8s var(--e-out);
}
.img-mask.in img { transform: scale(1); }

/* ----------------------------------------------------------
   NAV
   ---------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--paper);
  transition: background 0.55s var(--e-out),
              padding 0.5s var(--e-out),
              border-color 0.55s,
              color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(13, 10, 6, 0.88);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  padding: 12px var(--pad-x);
  border-bottom-color: var(--line-light);
}
.nav-logo {
  display: flex; align-items: center; gap: 14px;
  justify-self: start;
  position: relative;
  line-height: 0;
}
.nav-logo img {
  display: block;
  height: 64px;
  width: auto;
  transition: height 0.5s var(--e-out);
}
.nav.solid .nav-logo img {
  height: 48px;
}
@media (max-width: 980px) {
  .nav-logo img { height: 52px; }
  .nav.solid .nav-logo img { height: 42px; }
}
.nav-links {
  display: flex;
  gap: clamp(22px, 3.4vw, 52px);
  list-style: none;
  margin: 0; padding: 0;
  justify-self: center;
}
.nav-links a {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 6px 0;
  font-weight: 500;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.nav-links a .ni {
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brass-light);
  opacity: 0.7;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--e-out);
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brass-light); }
.nav-right {
  display: flex; align-items: center; gap: 28px;
  justify-self: end;
}
.nav-tel {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  color: var(--brass-light);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 26px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.45s var(--e-out), color 0.45s var(--e-out), border-color 0.45s;
  overflow: hidden;
  position: relative;
}
.nav-cta::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass-light);
  transform: translateY(100%);
  transition: transform 0.5s var(--e-out);
  z-index: -1;
}
.nav-cta:hover { color: var(--ink); border-color: var(--brass-light); }
.nav-cta:hover::before { transform: translateY(0); }

.nav-burger {
  display: none;
  width: 32px; height: 22px;
  flex-direction: column;
  justify-content: space-between;
  justify-self: end;
  align-items: flex-end;
}
.nav-burger span {
  display: block;
  height: 1px;
  background: currentColor;
  width: 100%;
  transition: transform 0.4s var(--e-out), opacity 0.3s, width 0.4s;
}
.nav-burger span:nth-child(2) { width: 60%; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); width: 100%; }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); width: 100%; }

/* Mobile sheet */
.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 99;
  padding: 120px var(--pad-x) 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.6s var(--e-out), visibility 0s linear 0.6s;
  display: flex; flex-direction: column;
}
.mobile-sheet.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.6s var(--e-out), visibility 0s;
}
.mobile-sheet a {
  font-family: var(--display);
  font-size: clamp(40px, 11vw, 72px);
  font-weight: 300;
  line-height: 1.1;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-light);
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px;
  transform: translateY(28px);
  opacity: 0;
  transition: transform 0.7s var(--e-out), opacity 0.7s;
  transition-delay: calc(var(--mi, 0) * 70ms);
}
.mobile-sheet a em { font-style: italic; color: var(--brass-light); }
.mobile-sheet a .ni {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--brass);
  opacity: 0.7;
}
.mobile-sheet.open a { transform: translateY(0); opacity: 1; }
.mobile-sheet-foot {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--brass-light); opacity: 0.7;
}

@media (max-width: 980px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links, .nav-right { display: none; }
  .nav-burger { display: flex; }
}

/* ----------------------------------------------------------
   Page-transition curtain
   ---------------------------------------------------------- */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  display: flex;
}
.curtain .col {
  flex: 1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.65s var(--e-inout);
}
.curtain.enter .col {
  transform: scaleY(1);
  transition-delay: calc(var(--ci, 0) * 60ms);
}
.curtain.exit {
  pointer-events: none;
}
.curtain.exit .col {
  transform: scaleY(1);
  transform-origin: top;
  transition: transform 0.7s var(--e-inout) calc(var(--ci, 0) * 60ms);
}
.curtain.exit.gone .col {
  transform: scaleY(0);
}
.curtain-mark {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 9501;
  font-family: var(--arabic);
  font-size: clamp(80px, 14vw, 200px);
  color: var(--brass-light);
  opacity: 0;
  transition: opacity 0.5s, transform 0.7s var(--e-out);
  pointer-events: none;
  text-align: center;
  line-height: 1;
}
.curtain-mark.show { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }

/* ----------------------------------------------------------
   Magnetic / Marquee
   ---------------------------------------------------------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  padding: 28px 0;
  overflow: hidden;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
  position: relative;
  z-index: 1;
}
.marquee::before, .marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 100px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(to right, var(--ink), transparent); }
.marquee::after  { right: 0; background: linear-gradient(to left, var(--ink), transparent); }
.marquee-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 56s linear infinite;
  align-items: center;
  will-change: transform;
}
.marquee-track > span {
  display: inline-flex; align-items: center; gap: 64px;
  flex-shrink: 0;
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 300;
  color: var(--brass-light);
  letter-spacing: -0.005em;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.marquee-track .sep {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brass);
  flex-shrink: 0;
}
.marquee-track .ar {
  font-family: var(--arabic);
  font-style: normal;
  color: var(--paper);
  font-size: clamp(26px, 2.4vw, 36px);
}
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 17px 30px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: color 0.5s var(--e-out), border-color 0.5s, background 0.5s;
}
.btn::after {
  content: "→";
  font-size: 14px;
  transition: transform 0.5s var(--e-out);
}
.btn:hover::after { transform: translateX(5px); }
.btn .label { position: relative; z-index: 2; }

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.btn-solid::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--brass-deep);
  transform: translateY(100%);
  transition: transform 0.55s var(--e-out);
  z-index: 1;
}
.btn-solid:hover::before { transform: translateY(0); }

.btn-ghost {
  border: 1px solid currentColor;
  color: var(--ink);
}
.btn-ghost.on-dark { color: var(--paper); }
.btn-ghost::before {
  content: "";
  position: absolute; inset: 0;
  background: currentColor;
  transform: translateY(100%);
  transition: transform 0.55s var(--e-out);
  z-index: 0;
}
.btn-ghost:hover { color: var(--paper); }
.btn-ghost.on-dark:hover { color: var(--ink); }
.btn-ghost:hover::before { transform: translateY(0); }
.btn-ghost:hover .label { mix-blend-mode: difference; }

/* ----------------------------------------------------------
   FOOTER (shared)
   ---------------------------------------------------------- */
.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 0 0 28px;
  position: relative;
  overflow: hidden;
}
.foot-mega {
  text-align: center;
  padding: clamp(80px, 12vw, 160px) var(--pad-x) clamp(50px, 7vw, 90px);
  border-bottom: 1px solid var(--line-light);
  position: relative;
}
.foot-mega .mark {
  font-family: var(--display);
  font-size: var(--fs-mega);
  line-height: 0.86;
  font-weight: 200;
  color: var(--paper);
  letter-spacing: -0.05em;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.foot-mega .mark em {
  font-style: italic;
  color: var(--brass-light);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.foot-mega .ar {
  font-family: var(--arabic);
  font-size: clamp(34px, 4.2vw, 64px);
  color: var(--brass-light);
  margin-top: 26px;
  opacity: 0.85;
}
.foot-mega .tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--brass-light);
  opacity: 0.6;
  margin-top: 16px;
  letter-spacing: 0.05em;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}

.foot-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) var(--pad-x) 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 80px);
  border-bottom: 1px solid var(--line-light);
}
.foot-col h4 {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin: 0 0 24px;
  font-weight: 500;
}
.foot-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.foot-col a, .foot-col p {
  font-family: var(--display);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.5;
  margin: 0;
  color: rgba(239,230,211, 0.88);
  transition: color 0.35s;
  font-weight: 400;
}
.foot-col a:hover { color: var(--brass-light); }
.foot-col .blurb {
  font-style: italic;
  max-width: 32ch;
  color: rgba(239,230,211, 0.62);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.foot-row {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px var(--pad-x) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.55;
}
.foot-row a:hover { color: var(--brass-light); opacity: 1; }
@media (max-width: 820px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .foot-cols { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------
   Page intro (first paint sequence)
   ---------------------------------------------------------- */
.boot {
  position: fixed; inset: 0;
  z-index: 9700;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  gap: 18px;
  pointer-events: auto;
  background: var(--ink);
  color: var(--paper);
  transition: opacity 0.6s var(--e-out), visibility 0s linear 1.4s;
}
.boot.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-veil {
  position: absolute; inset: 0;
  background: var(--ink);
  z-index: 0;
  transform-origin: top;
  transform: scaleY(1);
  transition: transform 1s var(--e-inout);
}
.boot.lift .boot-veil { transform: scaleY(0); }
.boot-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  transition: opacity 0.5s, transform 0.6s var(--e-out);
}
.boot.lift .boot-inner { opacity: 0; transform: translateY(-12px); }
.boot-ar {
  font-family: var(--arabic);
  font-size: clamp(90px, 14vw, 200px);
  color: var(--brass-light);
  line-height: 1;
  opacity: 0;
  animation: bootFadeUp 1.1s var(--e-out) 0.1s forwards;
}
.boot-line {
  width: 0;
  height: 1px;
  background: var(--brass-light);
  margin: 20px auto 0;
  animation: bootLine 1.2s var(--e-out) 0.9s forwards;
}
.boot-name {
  margin-top: 20px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--paper);
  opacity: 0;
  animation: bootFadeUp 1s var(--e-out) 1.2s forwards;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.boot-progress {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--brass-light);
  opacity: 0;
  animation: bootFadeUp 0.8s var(--e-out) 1.6s forwards;
}
@keyframes bootFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bootLine {
  from { width: 0; }
  to   { width: 200px; }
}

/* ----------------------------------------------------------
   Steam SVG anim helpers
   ---------------------------------------------------------- */
.steam-path {
  fill: none;
  stroke: var(--brass-light);
  stroke-width: 1.2;
  opacity: 0.5;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  animation: steamRise 4.5s linear infinite;
}
.steam-path.s2 { animation-duration: 5.5s; animation-delay: -1.8s; opacity: 0.35; }
.steam-path.s3 { animation-duration: 6.5s; animation-delay: -3.2s; opacity: 0.25; }
@keyframes steamRise {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -120; }
}

/* ----------------------------------------------------------
   Page hero header (sub-pages)
   ---------------------------------------------------------- */
.page-head {
  position: relative;
  padding: clamp(180px, 22vh, 280px) 0 clamp(80px, 12vw, 140px);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}
.page-head .crumbs {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 40px;
  opacity: 0.85;
}
.page-head .crumbs .sep { opacity: 0.5; }
.page-head h1 {
  font-family: var(--display);
  font-size: var(--fs-hero);
  line-height: 0.94;
  margin: 0;
  font-weight: 200;
  letter-spacing: -0.025em;
  max-width: 18ch;
  font-variation-settings: "SOFT" 30, "opsz" 144;
}
.page-head h1 em {
  font-style: italic;
  color: var(--brass-light);
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.page-head .lede {
  font-family: var(--display);
  font-style: italic;
  font-size: var(--fs-lede);
  line-height: 1.5;
  color: rgba(239,230,211, 0.78);
  max-width: 48ch;
  margin: 40px 0 0;
  font-variation-settings: "SOFT" 100, "opsz" 144, "WONK" 1;
}
.page-head .ar-back {
  position: absolute;
  top: 100px;
  right: -3vw;
  font-family: var(--arabic);
  font-size: clamp(180px, 28vw, 480px);
  color: var(--brass);
  opacity: 0.05;
  line-height: 0.9;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.page-head .head-meta {
  position: absolute;
  bottom: clamp(30px, 5vw, 60px); right: var(--pad-x);
  display: flex; align-items: center; gap: 20px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass-light);
  opacity: 0.7;
}
.page-head .head-meta .l { width: 60px; height: 1px; background: currentColor; opacity: 0.5; }
