/* ==========================================================================
   TAPAS, design system
   तपस् · the inner fire kindled by discipline
   --------------------------------------------------------------------------
   1. Tokens          5. Buttons & links     9. Chrome (header/footer/menu)
   2. Base            6. Cards & surfaces   10. Motion utilities
   3. Typography      7. Forms              11. Page furniture (curtain, toast…)
   4. Layout          8. Chips & tags       12. Responsive / reduced motion
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  color-scheme: dark;

  --bg: #0a0806;
  --bg-1: #100c09;
  --bg-2: #17110d;
  --bg-3: #211913;
  --bg-4: #2c221a;

  --ink: #f3ebdf;
  --ink-2: #d2c6b5;
  --ink-3: #9d907f;
  --ink-4: #6d6357;

  --line: rgba(243, 226, 200, 0.09);
  --line-2: rgba(243, 226, 200, 0.16);
  --line-3: rgba(243, 226, 200, 0.28);

  --saffron: #f2a93b;
  --ember: #ff6a2c;
  --kumkum: #c8372d;
  --gold: #dcbb7e;
  --gold-dim: #a68b57;
  --ash: #8a8178;
  --sage: #8fb89a;
  --sky: #86a8d6;

  --fire: linear-gradient(115deg, #ffd88a 0%, #ffa24a 30%, #ff6a2c 58%, #c8372d 85%, #7d1a16 100%);
  --fire-soft: linear-gradient(115deg, rgba(255, 196, 110, .16), rgba(255, 106, 44, .10) 55%, rgba(200, 55, 45, .06));
  --glow-ember: 0 0 0 1px rgba(255, 120, 60, .25), 0 10px 40px -10px rgba(255, 106, 44, .45);

  --f-display: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-deva: "Tiro Devanagari Sanskrit", "Noto Serif Devanagari", serif;
  --f-read: "Source Serif 4", "Georgia", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --ease-soft: cubic-bezier(.33, 1, .68, 1);

  --r-xs: 6px;
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --header-h: 76px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ember); color: #160b05; }
:focus-visible { outline: 1.5px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; height: 1px; background: var(--line); margin: 0; }

html { scrollbar-width: thin; scrollbar-color: var(--bg-4) var(--bg); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 10px; border: 2px solid var(--bg); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 3. TYPOGRAPHY ------------------------------------------------------------ */
.display-xxl, .display-xl, .display-l, .display-m, h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.display-xxl { font-size: clamp(64px, 13vw, 220px); line-height: .86; letter-spacing: -0.03em; }
.display-xl  { font-size: clamp(50px, 8.4vw, 136px); line-height: .92; letter-spacing: -0.025em; }
.display-l   { font-size: clamp(40px, 5.6vw, 88px); line-height: .98; }
.display-m   { font-size: clamp(32px, 3.8vw, 58px); line-height: 1.04; }
h3, .h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.12; }
.h4 { font-family: var(--f-sans); font-size: 17px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.35; margin: 0; }
em, .italic { font-style: italic; }
.display-xxl em, .display-xl em, .display-l em, .display-m em, h1 em, h2 em, h3 em {
  font-style: italic; font-weight: 300;
}
.fire-text {
  background: var(--fire);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.gold-text { color: var(--gold); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 12px 2px rgba(255, 106, 44, .7);
  animation: ember-breathe 3.2s ease-in-out infinite;
}
.eyebrow.no-dot::before { display: none; }
@keyframes ember-breathe { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }

.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin: 0; }
.small { font-size: 13.5px; color: var(--ink-3); }
.mono { font-family: var(--f-mono); font-size: .86em; letter-spacing: .02em; }
.deva { font-family: var(--f-deva); font-weight: 400; letter-spacing: 0; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
p { margin: 0 0 1em; }

/* 4. LAYOUT ---------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }
.wrap--read { max-width: 720px; }
.section { position: relative; padding: clamp(88px, 12vw, 180px) 0; }
.section--tight { padding: clamp(56px, 7vw, 100px) 0; }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.stack > * + * { margin-top: var(--stack, 1rem); }
.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent); }
.page-top { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }

/* 5. BUTTONS & LINKS ------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 28px;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-sans);
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease-out), transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fire);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .6s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover { color: #1a0b04; box-shadow: var(--glow-ember); }
.btn .btn-arrow { display: inline-grid; place-items: center; width: 22px; height: 22px; overflow: hidden; }
.btn .btn-arrow svg { width: 14px; height: 14px; transition: transform .5s var(--ease-out); }
.btn:hover .btn-arrow svg { transform: translateX(3px) rotate(-45deg); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px transparent, var(--glow-ember); }
.btn--fire { --btn-bg: var(--ember); --btn-fg: #1a0b04; background: var(--fire); }
.btn--fire::before { background: var(--ink); }
.btn--fire:hover { color: var(--bg); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 13.5px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

.link-u {
  position: relative; display: inline-block;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .55s var(--ease-out), color .3s;
}
.link-u:hover { background-size: 100% 1px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 14.5px; color: var(--ink);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .5s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-arrow .lbl { background: linear-gradient(var(--ember), var(--ember)) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 2px; }
.link-arrow:hover .lbl { background-size: 100% 1px; }

/* 6. CARDS & SURFACES ------------------------------------------------------ */
.surface {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .008));
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.card {
  --mx: 50%; --my: 50%;
  position: relative;
  background: linear-gradient(180deg, rgba(36, 27, 20, .55), rgba(20, 15, 11, .55));
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  isolation: isolate;
  transition: border-color .5s var(--ease-out), transform .7s var(--ease-out);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 130, 60, .13), transparent 60%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }

.hairline-frame { position: relative; }
.hairline-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 190, 120, .45), rgba(255, 255, 255, .05) 35%, rgba(255, 255, 255, .02) 65%, rgba(255, 120, 60, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.callout {
  border-left: 2px solid var(--ember);
  padding: 18px 22px;
  background: linear-gradient(90deg, rgba(255, 106, 44, .08), transparent 80%);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2);
}

/* 7. FORMS ----------------------------------------------------------------- */
.field { display: grid; gap: 8px; min-width: 0; }
.field > label, .label {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.input, .select, .textarea {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 15.5px;
  transition: border-color .3s, background .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: rgba(255, 140, 70, .7);
  background: rgba(255, 120, 60, .05);
  box-shadow: 0 0 0 4px rgba(255, 106, 44, .12);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.select {
  padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23d2c6b5' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.select option { background: var(--bg-2); color: var(--ink); }
input[type=number].input { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.input-unit { position: relative; }
.input-unit .input { padding-right: 52px; }
.input-unit .unit {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-3); pointer-events: none;
}

.seg {
  position: relative;
  display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; gap: 0;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  isolation: isolate;
}
.seg button {
  position: relative; z-index: 1;
  height: 38px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  transition: color .4s var(--ease-out);
  white-space: nowrap;
}
.seg button[aria-pressed=true], .seg button.is-active { color: #1a0b04; }
.seg .seg-thumb {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px;
  border-radius: var(--r-pill);
  background: var(--fire);
  box-shadow: 0 4px 18px -6px rgba(255, 106, 44, .7);
  transition: transform .55s var(--ease-out), width .55s var(--ease-out);
}
.seg--block { display: grid; width: 100%; }

/* Range */
.range { display: grid; gap: 12px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-head output { font-family: var(--f-mono); font-size: 13px; color: var(--ink); font-variant-numeric: tabular-nums; }
input[type=range] {
  --p: 50%;
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; background: transparent; cursor: pointer; margin: 0;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--ember) 0 var(--p), var(--line-2) var(--p) 100%);
}
input[type=range]::-moz-range-track { height: 3px; border-radius: 3px; background: var(--line-2); }
input[type=range]::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ember); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%;
  background: var(--ink); border: 0;
  box-shadow: 0 0 0 5px rgba(255, 106, 44, .18), 0 2px 10px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
input[type=range]:hover::-webkit-slider-thumb, input[type=range]:focus-visible::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(255, 106, 44, .22), 0 2px 10px rgba(0, 0, 0, .5); }
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 0;
  box-shadow: 0 0 0 5px rgba(255, 106, 44, .18);
}
input[type=range]:focus-visible { outline: none; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1px solid var(--line-3); display: grid; place-items: center;
  transition: background .3s, border-color .3s;
}
.check .box svg { width: 12px; height: 12px; opacity: 0; transform: scale(.4); transition: all .35s var(--ease-out); }
.check input:checked + .box { background: var(--ember); border-color: var(--ember); }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { outline: 1.5px solid var(--saffron); outline-offset: 3px; }

/* 8. CHIPS & TAGS ---------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: all .4s var(--ease-out);
  white-space: nowrap;
}
.chip:hover { border-color: var(--line-3); color: var(--ink); }
.chip.is-active, .chip[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count { font-family: var(--f-mono); font-size: 10.5px; opacity: .6; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.tag .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink-2);
}
.badge--fire { border-color: rgba(255, 120, 60, .4); color: #ffb27a; background: rgba(255, 106, 44, .08); }
.badge--sage { border-color: rgba(143, 184, 154, .4); color: #b5dcc0; background: rgba(143, 184, 154, .08); }
.badge--gold { border-color: rgba(220, 187, 126, .4); color: var(--gold); background: rgba(220, 187, 126, .08); }

/* 9. CHROME ---------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: transform .7s var(--ease-out), background .5s, backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 8, 6, .62);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-word {
  font-family: var(--f-display); font-size: 25px; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; line-height: 1;
  padding-left: .32em; /* optical balance for tracking */
  margin-left: -.32em;
}
.brand-deva { font-family: var(--f-deva); font-size: 15px; color: var(--ink-3); line-height: 1; transform: translateY(1px); }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); }
.nav a.nav-link {
  position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; transition: color .3s;
}
.nav a.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ember); transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.nav a.nav-link:hover { color: var(--ink); }
.nav a.nav-link:hover::after, .nav a.nav-link[aria-current=page]::after { transform: scaleX(1); transform-origin: left; }
.nav a.nav-link[aria-current=page] { color: var(--ink); }
.nav .nav-sub { display: block; font-family: var(--f-deva); font-size: 11px; color: var(--ink-4); line-height: 1; margin-top: 2px; text-align: center; transition: color .3s; }
.nav a.nav-link:hover .nav-sub { color: var(--saffron); }
/* account link: "Sign in", or an initial once signed in */
.nav-account { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: color .3s; }
.nav-account[hidden] { display: none; }
.nav-account:hover, .nav-account[aria-current=page] { color: var(--ink); }
.nav-avatar { display: none; width: 30px; height: 30px; border-radius: 50%; place-items: center; font-size: 12.5px; font-weight: 700; color: #1a0b04; background: var(--fire) center / cover no-repeat; box-shadow: 0 0 0 1px rgba(255, 140, 70, .35); }
.nav-account.is-in .nav-avatar { display: grid; }
.nav-account.is-in .nav-avatar[style*="url"] { color: transparent; }
.menu-overlay .menu-foot a[hidden] { display: none; }

.menu-toggle {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); position: relative;
}
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink);
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 26px; }
body.menu-open .menu-toggle span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 85;
  background: radial-gradient(120% 80% at 50% 110%, rgba(200, 55, 45, .28), transparent 60%), var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
}
.menu-overlay a.menu-link {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--f-display); font-size: clamp(40px, 11vw, 64px); line-height: 1.1;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.menu-overlay a.menu-link .deva { font-size: 18px; color: var(--ink-3); }
.menu-overlay .menu-foot { margin-top: 36px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-3); font-size: 13px; }

.site-footer {
  position: relative; overflow: hidden;
  padding: clamp(80px, 10vw, 140px) 0 36px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(60% 70% at 50% 120%, rgba(200, 55, 45, .22), transparent 70%),
    radial-gradient(40% 50% at 50% 115%, rgba(255, 140, 60, .18), transparent 70%),
    var(--bg);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-col h4 { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; margin: 0 0 18px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 14.5px; padding: 5px 0; transition: color .3s, transform .4s var(--ease-out); }
.footer-col a:hover { color: var(--ink); transform: translateX(4px); }
.footer-word {
  font-family: var(--f-deva);
  font-size: clamp(110px, 24vw, 380px);
  line-height: .9;
  text-align: center;
  margin: clamp(50px, 8vw, 110px) 0 10px;
  background: linear-gradient(180deg, rgba(243, 235, 223, .12), rgba(243, 235, 223, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
  position: relative;
}
.footer-word .ember-line {
  position: absolute; left: 50%; bottom: 14%; width: 40%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--ember), transparent);
  box-shadow: 0 0 24px 2px rgba(255, 106, 44, .6);
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--ink-4);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--ink); }
.footer-note { font-size: 12.5px; color: var(--ink-4); max-width: 46ch; margin-top: 18px; line-height: 1.6; }

/* newsletter */
.letter-form { display: flex; gap: 10px; margin-top: 22px; max-width: 460px; }
.letter-form .input { border-radius: var(--r-pill); padding: 0 22px; height: 54px; }
.form-msg { font-size: 13px; color: var(--ink-3); margin-top: 12px; min-height: 1.4em; }
.form-msg.ok { color: var(--sage); }
.form-msg.err { color: #ff9b7a; }

/* 10. MOTION UTILITIES ----------------------------------------------------- */
html.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
html.js [data-reveal="fade"] { transform: none; }
html.js [data-reveal="scale"] { transform: scale(.96); }
html.js [data-reveal="left"] { transform: translate3d(-28px, 0, 0); }
html.js.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; }
.split-line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.split-line > span { display: inline-block; will-change: transform; }
.split-word { display: inline-block; white-space: nowrap; }
.split-char { display: inline-block; }
html.js [data-split]:not(.is-split) { opacity: 0; }

.marquee { display: flex; overflow: hidden; white-space: nowrap; user-select: none; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; flex: none; gap: 48px; padding-right: 48px; animation: marquee var(--marquee-dur, 40s) linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* 11. PAGE FURNITURE ------------------------------------------------------- */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.curtain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  display: grid; place-items: center;
}
.curtain-panel {
  position: absolute; inset: 0;
  background: radial-gradient(90% 60% at 50% 100%, #6a1712 0%, #2a0c08 40%, var(--bg) 75%);
  transform: translateY(100%);
}
.curtain-mark { position: relative; font-family: var(--f-deva); font-size: clamp(48px, 7vw, 90px); color: var(--ink); opacity: 0; }
html.is-entering:not(.curtain-ready)::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; background: radial-gradient(90% 60% at 50% 100%, #6a1712 0%, #2a0c08 40%, #0a0806 75%); animation: curtain-failsafe .4s 3s forwards; }
/* if the scripts never arrive, don't leave the page hidden behind the cover */
@keyframes curtain-failsafe { to { opacity: 0; visibility: hidden; } }

.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: grid; place-items: center;
}
.preloader-inner { display: grid; justify-items: center; gap: 22px; }
.preloader-glyph {
  font-family: var(--f-deva); font-size: clamp(72px, 12vw, 140px); line-height: 1;
  color: transparent;
  background: linear-gradient(0deg, #ffd88a 0%, #ff6a2c 35%, rgba(243, 235, 223, .08) 35.5%);
  background-size: 100% 300%;
  background-position: 0 0%;
  -webkit-background-clip: text; background-clip: text;
}
.preloader-count { font-family: var(--f-mono); font-size: 12px; letter-spacing: .3em; color: var(--ink-3); }

.scroll-ember {
  position: fixed; left: 0; top: 0; height: 2px; width: 100%; z-index: 95;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--fire);
  box-shadow: 0 0 12px rgba(255, 106, 44, .8);
  pointer-events: none;
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 260;
  transform: translate(-50%, 140%);
  padding: 14px 22px; border-radius: var(--r-pill);
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink);
  font-size: 14px; box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  transition: transform .6s var(--ease-out);
}
.toast.is-on { transform: translate(-50%, 0); }

/* page hero (inner pages) */
.page-hero { position: relative; padding: calc(var(--header-h) + clamp(64px, 10vw, 150px)) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.page-hero { isolation: isolate; }
.page-hero .hero-glow {
  position: absolute; left: -10%; right: -10%; top: 20%; height: 100%; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 45% at 40% 45%, rgba(200, 55, 45, .2), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 78%);
}
.page-hero .deva-watermark {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 30px); z-index: -1;
  font-family: var(--f-deva); font-size: clamp(120px, 20vw, 320px); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(243, 235, 223, .07);
  pointer-events: none; user-select: none;
}
.crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }

/* disclosure / accordion */
.acc { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; text-align: left;
  font-family: var(--f-display); font-size: clamp(21px, 2vw, 27px); line-height: 1.25;
  transition: color .3s;
}
.acc-btn:hover { color: var(--saffron); }
.acc-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .6s var(--ease-out), background .4s, border-color .4s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); transition: transform .6s var(--ease-out); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.is-open .acc-icon { transform: rotate(180deg); background: var(--ember); border-color: var(--ember); color: #1a0b04; }
.acc-item.is-open .acc-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc-panel { height: 0; overflow: hidden; }
.acc-panel-inner { padding: 0 0 28px; color: var(--ink-2); max-width: 72ch; }
.acc-panel-inner p:last-child { margin-bottom: 0; }

/* 12. RESPONSIVE ----------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .nav { display: none; }
  .menu-toggle { display: block; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .section-head--split { grid-template-columns: minmax(0, 1fr); }
  .brand-deva { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .letter-form { flex-direction: column; }
  .btn { height: 50px; padding: 0 22px; }
}

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