/* ==========================================================================
   MAIYA — माँ
   Cinematic ember theme (inspired by the Kibori woodshop landing page)
   ========================================================================== */

:root {
  /* Palette — warm night, glowing embers */
  --bg: #0a0806;
  --bg-2: #110c08;
  --bg-3: #1a120c;
  --ink: #f2e7d9;
  --ink-soft: #d9cbbb;
  --muted: #a39282;
  --dim: #6c5c4f;
  --line: rgba(242, 231, 217, 0.12);
  --line-strong: rgba(242, 231, 217, 0.24);
  --ember: #e2703f;
  --ember-hot: #ffb06a;
  --ember-deep: #b5502a;
  --sage: #8fb397;

  /* Type */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-deva: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;
  --f-body: "DM Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* Layout */
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: var(--ember); color: var(--bg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3a2a1f; border-radius: 99px; }

/* ---------- Ambient layers ---------- */
#embers {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}
.grain {
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}
.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 50% 40%, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

main, header, footer { position: relative; z-index: 2; }

/* ---------- Shared type ---------- */
.mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.deva { font-family: var(--f-deva); font-style: normal; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember-hot);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: currentColor; opacity: 0.6;
}
.display {
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; color: var(--ember-hot); }
.lede { color: var(--muted); max-width: 52ch; font-size: 1.05rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(10, 8, 6, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 10px;
  font-family: var(--f-display);
  font-size: 22px; letter-spacing: 0.32em;
  font-weight: 500;
}
.brand .deva { font-size: 18px; letter-spacing: 0; color: var(--ember-hot); }
.nav { display: flex; gap: 32px; }
.nav a, .header-right a {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: var(--ember);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.header-right .vol { color: var(--dim); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.btn-ghost {
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--ember); background: rgba(226, 112, 63, 0.12); color: var(--ink); }

.menu-btn {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px;
  justify-self: end;
  flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-btn span { width: 22px; height: 1px; background: var(--ink); transition: transform 0.3s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  display: none;
  grid-column: 1 / -1;
  flex-direction: column; gap: 4px;
  padding-top: 18px;
}
.mobile-menu a {
  font-family: var(--f-display); font-size: 28px;
  padding: 6px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu.is-open { display: flex; }

/* ---------- Side rails ---------- */
.rail {
  position: fixed; top: 50%; z-index: 40;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--dim);
  writing-mode: vertical-rl;
  pointer-events: none;
}
.rail-left { left: 20px; transform: translateY(-50%) rotate(180deg); }
.rail-right { right: 20px; transform: translateY(-50%); display: flex; gap: 14px; align-items: center; pointer-events: auto; }
.rail-right .dots { display: flex; flex-direction: column; gap: 12px; writing-mode: horizontal-tb; }
.dot-nav {
  display: block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--dim);
  transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}
.dot-nav.is-active { background: var(--ember-hot); box-shadow: 0 0 12px var(--ember); transform: scale(1.4); }

/* ---------- Fire glow section transition ---------- */
.lit { position: relative; isolation: isolate; }
.lit::before {
  content: "";
  position: absolute; left: 50%; top: 0;
  width: min(1100px, 140vw); height: 520px;
  transform: translate(-50%, -45%) scale(0.6);
  background: radial-gradient(ellipse at center, rgba(255, 140, 70, 0.28) 0%, rgba(226, 112, 63, 0.10) 35%, transparent 70%);
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
  transition: opacity 1.6s var(--ease), transform 2s var(--ease);
}
.lit.is-lit::before { opacity: 1; transform: translate(-50%, -45%) scale(1); }
.lit::after {
  content: "";
  position: absolute; left: var(--gutter); right: var(--gutter); top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ember-hot), transparent);
  transform: scaleX(0);
  transition: transform 1.4s var(--ease);
}
.lit.is-lit::after { transform: scaleX(1); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  padding: 120px var(--gutter) 60px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 72px);
  align-items: center;
  max-width: var(--max); margin: 0 auto;
  position: relative;
}
.hero-mark {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.hero-mark span {
  font-family: var(--f-display);
  font-size: clamp(120px, 24vw, 380px);
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 231, 217, 0.06);
  line-height: 1;
}

.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.stage-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ember-hot);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 0 0 rgba(255, 176, 106, 0.7);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 176, 106, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(255, 176, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 176, 106, 0); }
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 8.4vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero-title .deva {
  display: block;
  font-size: 0.42em;
  color: var(--ember-hot);
  margin-top: 10px;
  letter-spacing: 0;
}
.hero-lead {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--ink-soft);
}
.fade-swap { transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.fade-swap.is-out { opacity: 0; transform: translateY(8px); }
.hero-desc { color: var(--muted); max-width: 46ch; }

/* spec rows (Kibori style) */
.specs { border-top: 1px solid var(--line); }
.spec {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec span { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.spec strong { font-weight: 500; color: var(--ink); text-align: right; }
.spec strong small { color: var(--sage); font-weight: 400; margin-left: 8px; font-size: 12px; }

.timeline-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.play-btn {
  background: none; border: 0; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember-hot);
  display: inline-flex; gap: 8px; align-items: center;
}
.play-btn:hover { color: var(--ink); }
.stage-picker {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}
.stage-btn {
  background: none; border: 0; cursor: pointer;
  padding: 10px 4px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: background 0.4s var(--ease), color 0.3s, box-shadow 0.4s;
  white-space: nowrap;
}
.stage-btn:hover { color: var(--ink); }
.stage-btn.is-active {
  background: linear-gradient(135deg, var(--ember), var(--ember-deep));
  color: #fff;
  box-shadow: 0 6px 24px -8px rgba(226, 112, 63, 0.8);
}

/* hero visual — the womb orb */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.orb {
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
}
.orb-glow {
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 130, 70, 0.32) 0%, rgba(226, 112, 63, 0.10) 40%, transparent 68%);
  filter: blur(20px);
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
.orb-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(255, 176, 106, 0.18);
}
.orb-ring.r1 { inset: -4%; animation: heartbeat 1.4s ease-in-out infinite; }
.orb-ring.r2 { inset: -9%; border-style: dashed; border-color: rgba(242, 231, 217, 0.08); animation: spin 60s linear infinite; }
@keyframes heartbeat {
  0%, 100% { transform: scale(0.98); opacity: 0.5; }
  15% { transform: scale(1.03); opacity: 1; }
  30% { transform: scale(1); opacity: 0.6; }
  45% { transform: scale(1.02); opacity: 0.9; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.orb-canvas-wrap {
  position: absolute; inset: 0;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 176, 106, 0.25), 0 40px 120px -30px rgba(226, 112, 63, 0.55), inset 0 0 80px rgba(0, 0, 0, 0.6);
  background: radial-gradient(circle at 50% 45%, #4a1d13, #1f0904 70%);
}
#fetusCanvas { width: 100%; height: 100%; cursor: pointer; }
.orb-hud {
  position: absolute; top: 9%; left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: 8px; align-items: center;
  padding: 6px 12px; border-radius: 99px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.orb-scale {
  position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%);
  display: inline-flex; gap: 10px; align-items: center;
  padding: 8px 14px; border-radius: 14px;
  background: rgba(10, 8, 6, 0.7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
  pointer-events: none;
  white-space: nowrap;
}
.orb-scale .icon { font-size: 18px; }
.orb-scale small { display: block; font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); line-height: 1; }
.orb-scale b { font-family: var(--f-display); font-size: 18px; font-weight: 500; color: var(--ember-hot); }

.scrubber { width: min(520px, 100%); }
.scrub-labels { display: flex; justify-content: space-between; margin-bottom: 10px; }
.scrub-labels span { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ember) var(--fill, 0%), var(--line-strong) var(--fill, 0%));
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ember-hot);
  box-shadow: 0 0 0 4px rgba(226, 112, 63, 0.25), 0 0 18px var(--ember);
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; border: 0;
  background: var(--ember-hot);
  box-shadow: 0 0 0 4px rgba(226, 112, 63, 0.25), 0 0 18px var(--ember);
}

.counter {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.counter b { font-family: var(--f-display); font-size: 26px; font-weight: 400; color: var(--ink); letter-spacing: 0; font-variant-numeric: tabular-nums; }

.scroll-cue {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--dim);
}
.scroll-cue i {
  width: 1px; height: 42px;
  background: linear-gradient(var(--ember-hot), transparent);
  animation: drip 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes drip {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 18px 0;
  background: linear-gradient(90deg, var(--bg), var(--bg-2), var(--bg));
}
.ticker-track { display: flex; width: max-content; animation: slide 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 28px;
  padding-right: 28px;
  font-family: var(--f-display); font-style: italic;
  font-size: clamp(20px, 2.4vw, 30px);
  color: var(--ink-soft);
  white-space: nowrap;
}
.ticker-track span::after { content: "✦"; font-style: normal; font-size: 0.6em; color: var(--ember); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Generic section ---------- */
.section { padding: clamp(90px, 12vw, 170px) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 84px);
}
.section-head h2 { font-size: clamp(40px, 5.6vw, 84px); }
.section-head h2 .deva { font-size: 0.5em; color: var(--ember-hot); margin-left: 10px; }
.section-head .lede { justify-self: end; }

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.why-statement {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1.15;
  font-weight: 400;
}
.why-statement em { color: var(--ember-hot); }
.why-body { color: var(--muted); margin-top: 28px; max-width: 56ch; }
.promises { list-style: none; border-top: 1px solid var(--line); }
.promises li {
  display: grid; grid-template-columns: 44px 1fr; gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.promises .n { font-family: var(--f-mono); font-size: 11px; color: var(--ember-hot); padding-top: 4px; }
.promises strong { display: block; font-family: var(--f-display); font-size: 22px; font-weight: 500; margin-bottom: 4px; }
.promises p { color: var(--muted); font-size: 14px; }

.stats {
  margin-top: clamp(60px, 8vw, 110px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 34px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1;
  background: linear-gradient(180deg, var(--ink) 30%, var(--ember-hot));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.stat p { color: var(--muted); font-size: 14px; max-width: 22ch; }

/* ---------- Crafts / Features ---------- */
.crafts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.craft {
  position: relative;
  padding: 28px 24px 24px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 420px;
  display: flex; flex-direction: column;
  cursor: pointer;
  background: transparent;
  text-align: left;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.6s var(--ease);
}
.craft::before {
  content: "";
  position: absolute; left: 50%; bottom: -40%;
  width: 160%; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center bottom, rgba(255, 120, 60, 0.35), transparent 65%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.7s var(--ease), bottom 0.9s var(--ease);
}
.craft:hover::before, .craft:focus-visible::before { opacity: 1; bottom: -20%; }
.craft:focus-visible { outline: 1px solid var(--ember); outline-offset: -1px; }
.craft-no { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.craft-glyph {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-deva);
  font-size: 84px;
  color: rgba(242, 231, 217, 0.14);
  transition: color 0.6s var(--ease), transform 0.8s var(--ease), text-shadow 0.6s;
}
.craft:hover .craft-glyph { color: var(--ember-hot); transform: scale(1.08) translateY(-6px); text-shadow: 0 0 40px rgba(255, 140, 70, 0.6); }
.craft h3 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 30px; line-height: 1.05;
  margin-bottom: 8px;
}
.craft h3 em { font-family: var(--f-deva); font-style: normal; font-size: 0.6em; color: var(--ember-hot); margin-left: 6px; }
.craft p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.craft .specs .spec { padding: 8px 0; font-size: 13px; }
.craft-accent { background: linear-gradient(160deg, rgba(226, 112, 63, 0.18), rgba(181, 80, 42, 0.04)); }
.craft-accent .craft-glyph { color: rgba(255, 176, 106, 0.5); }

/* Detail overlay */
.detail {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: rgba(6, 4, 3, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.detail.is-open { opacity: 1; visibility: visible; }
.detail-card {
  width: min(980px, 100%);
  max-height: calc(100svh - 2 * var(--gutter));
  overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.7s var(--ease);
}
.detail.is-open .detail-card { transform: none; }
.detail-art {
  position: relative;
  min-height: 380px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(255, 120, 60, 0.35), transparent 60%), var(--bg);
  border-right: 1px solid var(--line);
  overflow: hidden;
}
.detail-art span {
  font-family: var(--f-deva);
  font-size: clamp(120px, 16vw, 200px);
  color: var(--ember-hot);
  text-shadow: 0 0 60px rgba(255, 140, 70, 0.7);
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px) rotate(-2deg); } }
.detail-body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; }
.detail-body h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; }
.detail-body p { color: var(--muted); }
.detail-close {
  align-self: flex-start;
  margin-top: auto;
  background: none; border: 1px solid var(--line-strong); border-radius: 99px;
  padding: 10px 18px; cursor: pointer;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s;
}
.detail-close:hover { border-color: var(--ember); background: rgba(226, 112, 63, 0.12); }

/* ---------- Specialists index ---------- */
.index { border-top: 1px solid var(--line-strong); }
.index-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.2fr) minmax(0, 1.6fr) 140px;
  gap: 24px; align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding 0.5s var(--ease);
}
.index-row::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(226, 112, 63, 0.14), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.index-row:hover { padding-left: 14px; }
.index-row:hover::before { opacity: 1; }
.index-row .no { font-family: var(--f-mono); font-size: 11px; color: var(--ember-hot); }
.index-row h3 { font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.1; }
.index-row h3 .deva { white-space: nowrap; font-size: 0.55em; color: var(--dim); margin-left: 8px; }
.index-row p { color: var(--muted); font-size: 14px; }
.index-row .tag {
  justify-self: end;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage);
  border: 1px solid rgba(143, 179, 151, 0.35);
  padding: 5px 10px; border-radius: 99px;
  white-space: nowrap;
}

/* ---------- Journey ---------- */
.journey {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.journey::before {
  content: ""; position: absolute; top: 25px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, var(--ember-hot), var(--line) 40%, var(--line));
}
.step { padding: 0 28px 0 0; position: relative; }
.step .node {
  width: 51px; height: 51px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-family: var(--f-mono); font-size: 12px; color: var(--muted);
  margin-bottom: 28px;
  position: relative; z-index: 1;
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s;
}
.step.is-current .node, .step:hover .node {
  border-color: var(--ember-hot); color: var(--ember-hot);
  box-shadow: 0 0 0 6px rgba(226, 112, 63, 0.1), 0 0 30px rgba(226, 112, 63, 0.5);
}
.step h3 { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1.05; margin-bottom: 10px; }
.step h3 .deva { display: block; font-size: 0.55em; color: var(--ember-hot); margin-top: 4px; }
.step p { color: var(--muted); font-size: 14px; max-width: 30ch; }

/* ---------- App ---------- */
.phones {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  max-width: 1040px; margin: 0 auto;
  align-items: center;
}
.phone {
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  padding: 26px 22px 20px;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
  min-height: 430px;
  display: flex; flex-direction: column;
  transition: transform 0.8s var(--ease), box-shadow 0.8s var(--ease);
}
.phone:hover { transform: translateY(-8px); }
.phone.featured {
  border-color: rgba(255, 176, 106, 0.5);
  transform: translateY(-20px);
  box-shadow: 0 40px 100px -30px rgba(226, 112, 63, 0.45);
}
.phone.featured:hover { transform: translateY(-28px); }
.phone .notch { width: 64px; height: 5px; border-radius: 99px; background: var(--line-strong); margin: 0 auto 22px; }
.phone .hi { font-size: 12px; color: var(--muted); }
.phone h3 { font-family: var(--f-display); font-weight: 400; font-size: 34px; margin-bottom: 18px; }
.phone .rows { display: flex; flex-direction: column; gap: 8px; }
.phone .row {
  padding: 12px 14px; border-radius: 14px;
  background: rgba(242, 231, 217, 0.04);
  border: 1px solid var(--line);
  font-size: 13px; display: flex; gap: 10px; align-items: center;
}
.phone .ring {
  width: 92px; height: 92px; border-radius: 50%;
  margin: 0 auto 22px;
  display: grid; place-items: center; text-align: center;
  border: 2px solid var(--ember);
  box-shadow: 0 0 30px rgba(226, 112, 63, 0.4), inset 0 0 20px rgba(226, 112, 63, 0.2);
  font-family: var(--f-display); font-size: 18px; line-height: 1.1;
}
.bubble { padding: 12px 14px; border-radius: 16px; font-size: 13px; }
.bubble.q { background: rgba(242, 231, 217, 0.06); border-top-right-radius: 4px; margin-left: 18px; }
.bubble.a { background: rgba(226, 112, 63, 0.16); color: var(--ink); border-top-left-radius: 4px; margin-right: 18px; margin-top: 10px; }
.phone ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.phone ul li::before { content: "✓"; color: var(--sage); margin-right: 10px; }
.phone small {
  margin-top: auto; padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ember-hot);
}

/* ---------- AI Granny ---------- */
.granny {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.granny-seal {
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  position: relative;
  display: grid; place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 70%, rgba(255, 120, 60, 0.3), transparent 60%), var(--bg-2);
}
.granny-seal .big { font-family: var(--f-deva); font-size: clamp(120px, 14vw, 200px); color: var(--ember-hot); text-shadow: 0 0 60px rgba(255, 140, 70, 0.6); line-height: 1; }
.granny-seal .stamp {
  position: absolute; top: 20px; right: 20px;
  width: 64px; height: 64px;
  border: 1px solid var(--ember);
  display: grid; place-items: center; text-align: center;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.1em; line-height: 1.3;
  color: var(--ember-hot);
  transform: rotate(6deg);
}
.granny-seal .note {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(10, 8, 6, 0.75);
  backdrop-filter: blur(6px);
}
.granny-seal .note strong { display: block; font-size: 13px; font-weight: 500; }
.granny-seal .note em { font-family: var(--f-display); font-size: 18px; color: var(--ember-hot); }
.granny blockquote {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  margin: 22px 0 26px;
}
.granny blockquote em { color: var(--ember-hot); }

/* ---------- Commission / Contact ---------- */
.commission { text-align: center; }
.commission h2 { font-size: clamp(48px, 7.4vw, 112px); }
.commission h2 .deva { display: block; font-size: 0.42em; color: var(--ember-hot); margin-top: 10px; }
.commission .lede { margin: 26px auto 0; text-align: center; }
.form {
  margin: clamp(48px, 6vw, 80px) auto 0;
  max-width: 880px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 34px 40px;
  text-align: left;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.field label b { color: var(--ember); font-weight: 400; }
.field input, .field textarea {
  background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 12px;
  font-family: var(--f-display);
  font-size: 24px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  resize: none;
  transition: border-color 0.4s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #4a3e35; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--ember-hot); }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: center; margin-top: 10px; }
.send {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 34px;
  border: 1px solid var(--ember);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  isolation: isolate;
  transition: color 0.4s, box-shadow 0.5s;
}
.send::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--ember-hot), var(--ember), var(--ember-deep));
  transform: translateY(101%);
  transition: transform 0.6s var(--ease);
}
.send:hover { box-shadow: 0 0 50px rgba(226, 112, 63, 0.55); color: #fff; }
.send:hover::before { transform: none; }
.send .arrow { font-size: 16px; transition: transform 0.4s var(--ease); }
.send:hover .arrow { transform: translate(3px, -3px); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 70px; }
.footer-grid div { font-size: 14px; color: var(--muted); line-height: 1.8; }
.footer-grid strong { display: block; font-family: var(--f-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.footer-grid a:hover { color: var(--ember-hot); }
.footer-word {
  font-family: var(--f-display);
  font-size: clamp(80px, 19vw, 300px);
  line-height: 0.85;
  letter-spacing: 0.06em;
  text-align: center;
  background: linear-gradient(180deg, var(--ink) 0%, rgba(226, 112, 63, 0.6) 60%, transparent 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  user-select: none;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; margin-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim);
}
.footer-bottom a:hover { color: var(--ember-hot); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .crafts { grid-template-columns: repeat(2, 1fr); }
  .craft { min-height: 360px; }
  .index-row { grid-template-columns: 50px 1fr 120px; }
  .index-row p { grid-column: 2 / 3; }
  .index-row .tag { grid-row: 1; grid-column: 3; }
}
@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav, .header-right { display: none; }
  .menu-btn { display: flex; }
  .rail { display: none; }

  .hero { grid-template-columns: 1fr; padding-top: 100px; padding-bottom: 90px; }
  .hero-visual { order: -1; }
  .orb { width: min(420px, 92%); }

  .section-head, .why-grid, .granny { grid-template-columns: 1fr; }
  .section-head .lede { justify-self: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }

  .journey { grid-template-columns: 1fr 1fr; gap: 48px 0; }
  .journey::before { display: none; }

  .phones { grid-template-columns: 1fr; max-width: 380px; }
  .phone.featured, .phone.featured:hover { transform: none; }

  .detail-card { grid-template-columns: 1fr; }
  .detail-art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .crafts { grid-template-columns: 1fr; }
  .craft { min-height: 0; }
  .craft-glyph { font-size: 64px; padding: 24px 0; }
  .stage-btn { font-size: 11px; padding: 9px 2px; }
  .scrub-labels span:nth-child(even) { display: none; }
  .journey { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; gap: 28px; }
  .field input, .field textarea { font-size: 20px; }
  .index-row { grid-template-columns: 36px 1fr; gap: 6px 14px; }
  .index-row p { grid-column: 2; }
  .index-row .tag { grid-row: auto; grid-column: 2; justify-self: start; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat { padding: 26px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
