/* ═══════════════════════════════════════════════════════════
   INNER FIRE ALCHEMY · Design System 2026
   Charcoal void · Alchemical gold · Contained terracotta fire
   ═══════════════════════════════════════════════════════════ */

:root {
  --charcoal: #121212;
  --sienna: #2A2624;
  --gold: #C5A059;
  --gold-hover: #D4B574;
  --terracotta: #B85A3C;
  --terracotta-hover: #C97152;
  --terracotta-press: #A64B2E;
  --bone: #F4F0EB;
  --hairline: #3A3330;
  --bone-60: rgba(244, 240, 235, .60);
  --bone-38: rgba(244, 240, 235, .38);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 140ms;
  --t-med: 240ms;
  --t-slow: 480ms;
  --radius: 8px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(184, 90, 60, .55); color: var(--bone); }

img, video { max-width: 100%; display: block; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Typography ────────────────────────────────────────── */

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; }

h2 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: .01em;
}

h2 em, h1 em {
  font-style: italic;
  color: var(--gold);
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.lede {
  color: var(--bone-60);
  max-width: 56ch;
  margin-top: 22px;
  font-size: 16px;
}

.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-head .lede { margin-left: auto; margin-right: auto; }

section { position: relative; padding: 72px 6vw; }

/* ── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  padding: 15px 30px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--t-med) var(--ease),
              color var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              transform var(--t-fast) var(--ease);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--bone);
  box-shadow: 0 18px 32px -14px rgba(184, 90, 60, .45);
}
.btn-primary:hover { background: var(--terracotta-hover); transform: translateY(-2px); }
.btn-primary:active { background: var(--terracotta-press); transform: translateY(0); }

.btn-ghostline {
  background: rgba(18, 18, 18, .25);
  border-color: rgba(197, 160, 89, .45);
  color: var(--gold);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghostline:hover {
  border-color: var(--gold-hover);
  color: var(--gold-hover);
  box-shadow: 0 0 32px -8px rgba(197, 160, 89, .35);
}

.btn-breathing { animation: breathe 4.8s var(--ease) infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184, 90, 60, .35), 0 18px 32px -14px rgba(184, 90, 60, .45); }
  50%      { box-shadow: 0 0 0 14px rgba(184, 90, 60, 0), 0 18px 40px -12px rgba(184, 90, 60, .6); }
}

/* ── Preloader ─────────────────────────────────────────── */

#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--charcoal);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 24px;
  transition: opacity 700ms var(--ease), visibility 700ms;
}
#preloader.is-done { opacity: 0; visibility: hidden; }

.preloader-mark { width: 88px; height: 88px; }
.pre-ring {
  stroke-dasharray: 327; stroke-dashoffset: 327;
  animation: ringDraw 1.6s var(--ease) forwards;
}
@keyframes ringDraw { to { stroke-dashoffset: 0; } }

.pre-flame, .pre-flame-core {
  opacity: 0; transform-origin: 60px 62px;
  animation: flameUp 900ms var(--ease) .9s forwards;
}
.pre-flame-core { animation-delay: 1.1s; }
@keyframes flameUp {
  from { opacity: 0; transform: scale(.6) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.preloader-word {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  letter-spacing: .35em;
  font-size: 13px;
  text-transform: lowercase;
  opacity: 0;
  animation: fadeIn 800ms var(--ease) 1.3s forwards;
}
@keyframes fadeIn { to { opacity: .8; } }

/* ── Ember canvas ──────────────────────────────────────── */

#embers {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .8;
}

/* ── Brand bar ─────────────────────────────────────────── */

.brandbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 4vw;
  transition: transform var(--t-slow) var(--ease), background var(--t-slow) var(--ease);
}
.brandbar.is-scrolled {
  background: linear-gradient(rgba(18,18,18,.85), rgba(18,18,18,0));
}
/* hidden while the hero canvas (which carries its own lockup) is on screen */
.brandbar.at-top {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

.brand-lockup {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--gold);
}
.brand-mark { width: 40px; height: 40px; }
.brand-words { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-size: 19px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone);
}
.brand-sub {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold);
}

.brand-cta {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone-60); text-decoration: none;
  padding: 10px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.brand-cta:hover { color: var(--terracotta-hover); border-color: var(--terracotta); }

/* ── Hero · The Spark ──────────────────────────────────── */

.hero {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(20px, 4vw, 48px);
  overflow: hidden;
  background:
    linear-gradient(rgba(18, 18, 18, .42), rgba(18, 18, 18, .58)),
    url('../assets/gold-waves.jpg') center / cover no-repeat;
}

/* ── The Floating Canvas ── */
.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 1280px;
  min-height: min(85vh, 780px);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 2.5rem;
  background: var(--sienna);
  border: 1px solid rgba(197, 160, 89, .22);
  box-shadow:
    0 0 50px rgba(0, 0, 0, .5),
    0 60px 120px -50px rgba(0, 0, 0, .8);
}

/* inner atmosphere: blurred glows so the phoenix light reflects inside the canvas */
.canvas-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}
.glow-gold {
  width: 460px; height: 460px;
  left: -6%; top: 8%;
  background: rgba(197, 160, 89, .12);
}
.glow-terra {
  width: 520px; height: 520px;
  left: 14%; bottom: -18%;
  background: rgba(184, 90, 60, .12);
}

/* the phoenix video, fused organically into the right side */
.canvas-video {
  position: absolute;
  top: 0; right: clamp(16px, 3vw, 44px);
  height: 100%;
  width: 55%;
  object-fit: cover;
  object-position: center 22%;
  z-index: 0;
  filter: saturate(1.02) brightness(.98);
  /* fade both vertical edges so the full wingspan reads without a hard frame */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 40%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 40%, #000 88%, transparent 100%);
}
.canvas-video-veil {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: 60%;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--sienna) 0%, rgba(42, 38, 36, .55) 22%, transparent 55%),
    linear-gradient(to bottom, var(--sienna) 0%, transparent 16%),
    linear-gradient(to top, var(--sienna) 0%, transparent 22%);
}

/* canvas top row: lockup + hero nav */
.canvas-top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: clamp(22px, 3.4vw, 40px) clamp(24px, 4.5vw, 60px) 0;
}
.canvas-lockup {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.canvas-lockup .brand-mark { width: 36px; height: 36px; }
.canvas-lockup > span:last-child { color: var(--bone); }
.canvas-lockup em { color: var(--gold); font-style: normal; }

.canvas-nav { display: flex; gap: clamp(16px, 2.6vw, 38px); }
.canvas-nav a {
  font-size: 11.5px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-60);
  text-decoration: none;
  transition: color var(--t-med) var(--ease);
}
.canvas-nav a:hover { color: var(--gold-hover); }

/* canvas left content */
.canvas-content {
  position: relative; z-index: 3;
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 620px;
  padding: clamp(36px, 5vw, 60px) clamp(24px, 4.5vw, 60px) clamp(48px, 6vw, 80px);
}

.hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 8px 0 26px;
}
.hero-title .line { display: block; }
.hero-title .line-gold { font-style: italic; }
.hero-title .line-gold .w {
  background: linear-gradient(178deg, #EBDCB2 4%, var(--gold) 55%, #9A7B3F 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .w {
  display: inline-block;
  opacity: 0; transform: translateY(28px) rotate(.5deg);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.hero.is-lit .hero-title .w { opacity: 1; transform: none; }

.hero-sub {
  color: var(--bone-60);
  max-width: 48ch;
  font-size: 17px;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-decoration: none;
}
.cue-line {
  width: 1px; height: 56px;
  background: linear-gradient(var(--gold), transparent);
  animation: cueDrop 2.6s var(--ease) infinite;
  transform-origin: top;
}
@keyframes cueDrop {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}
.cue-text {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bone-38);
}

/* ── Reveal on scroll ──────────────────────────────────── */

.reveal, .reveal-stagger > * {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease);
}
.reveal.in-view, .reveal-stagger > .in-view {
  opacity: 1; transform: none;
}

/* ── The Shift · comparison alembic ────────────────────── */

.shift {
  background:
    radial-gradient(1200px 500px at 50% 0%, rgba(184, 90, 60, .06), transparent 70%),
    var(--charcoal);
}

.alembic {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  background: var(--sienna);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .5);
}

.alembic-pane {
  padding: clamp(40px, 7vw, 84px) clamp(28px, 7vw, 90px);
  min-height: 380px;
  display: flex; flex-direction: column; justify-content: center;
}

.alembic-before {
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(0,0,0,.55), transparent),
    #1A1817;
}
.alembic-after {
  position: absolute; inset: 0;
  background:
    radial-gradient(700px 400px at 78% 30%, rgba(197, 160, 89, .16), transparent 65%),
    radial-gradient(500px 500px at 85% 90%, rgba(184, 90, 60, .12), transparent 60%),
    #211D19;
  align-items: flex-end;
  text-align: right;
}

.pane-label {
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--bone-38);
  margin-bottom: 14px;
}
.alembic-after .pane-label { color: rgba(197, 160, 89, .75); }

.pane-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: .06em;
  margin-bottom: 26px;
}

.pane-title-chaos {
  color: #7A7370;
  position: relative;
  text-shadow: 2px 0 0 rgba(184, 90, 60, .25), -2px 2px 0 rgba(0,0,0,.6);
  animation: chaosJitter 3.4s steps(2) infinite;
}
@keyframes chaosJitter {
  0%, 92%, 100% { transform: translate(0, 0) rotate(0); }
  93% { transform: translate(-2px, 1px) rotate(-.4deg); }
  95% { transform: translate(2px, -1px) rotate(.3deg); }
  97% { transform: translate(-1px, 2px) rotate(0); }
}

.pane-title-gold {
  background: linear-gradient(100deg, #8C6D33, var(--gold) 38%, #EAD9AC 52%, var(--gold) 66%, #8C6D33);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: goldSheen 5s var(--ease) infinite;
}
@keyframes goldSheen {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

.pane-list { list-style: none; }
.pane-list li {
  font-size: 14.5px;
  color: var(--bone-60);
  padding: 7px 0;
}
.alembic-before .pane-list li::before { content: "✕  "; color: #5E534E; }
.alembic-after .pane-list li::after { content: "  ◆"; color: var(--gold); font-size: 10px; vertical-align: 2px; }

.alembic-handle {
  position: absolute; top: 0; bottom: 0;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  z-index: 3;
}
.handle-stem { flex: 1; width: 1px; background: linear-gradient(rgba(197,160,89,.0), rgba(197,160,89,.9), rgba(197,160,89,.0)); }
.handle-orb {
  width: 46px; height: 46px;
  border-radius: 999px;
  display: grid; place-items: center;
  color: var(--gold);
  background: rgba(18, 18, 18, .55);
  border: 1px solid rgba(197, 160, 89, .6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 30px -6px rgba(197, 160, 89, .5);
}

.shift-footnote {
  text-align: center;
  margin-top: 34px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  color: var(--bone-38);
}

/* ── The Crucible · bento ──────────────────────────────── */

.crucible {
  background:
    radial-gradient(1000px 600px at 85% 10%, rgba(197, 160, 89, .05), transparent 60%),
    var(--charcoal);
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.bento-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: rgba(42, 38, 36, .55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 34px 30px;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.bento-card:hover {
  border-color: rgba(197, 160, 89, .4);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

/* cursor-follow radial glow (set via JS: --mx, --my) */
[data-glow]::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 120%),
              rgba(184, 90, 60, .16), rgba(197, 160, 89, .07) 45%, transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none;
}
[data-glow]:hover::before { opacity: 1; }

.pillar-sigil {
  width: 44px; height: 44px;
  color: var(--gold);
  margin-bottom: 22px;
  opacity: .9;
}
.pillar-sigil svg { width: 100%; height: 100%; }

.pillar-element {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.bento-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--bone);
}

.bento-card p:not(.pillar-element):not(.bento-quote-text):not(.bento-quote-source):not(.ember-caption) {
  font-size: 14px;
  color: var(--bone-60);
  line-height: 1.65;
}

.bento-wide { grid-column: span 3; display: flex; flex-direction: column; justify-content: center; }

.bento-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--gold);
  max-width: 30ch;
}
.bento-quote-source {
  margin-top: 16px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-38);
}

.bento-ember {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  text-align: center;
}
.ember-orb {
  width: 74px; height: 74px;
  border-radius: 999px;
  background: radial-gradient(circle at 40% 35%, #E8B98A, var(--terracotta) 45%, #6E3016 80%);
  box-shadow: 0 0 50px 4px rgba(184, 90, 60, .5), inset 0 -8px 22px rgba(0,0,0,.45);
  animation: emberPulse 4.8s var(--ease) infinite;
}
@keyframes emberPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 42px 2px rgba(184, 90, 60, .42), inset 0 -8px 22px rgba(0,0,0,.45); }
  50% { transform: scale(1.07); box-shadow: 0 0 66px 10px rgba(184, 90, 60, .58), inset 0 -8px 22px rgba(0,0,0,.4); }
}
.ember-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--gold);
}
.ember-caption span {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bone-38);
}

/* offerings — The Visual Forge */
.offerings {
  max-width: 1180px;
  margin: 0 auto;
  /* elegant breathing room above and below (py-20 → md:py-32) */
  padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 5vw, 64px);
}
.offerings .section-head { margin-bottom: clamp(40px, 6vw, 64px); }

.offering-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 3.5vw, 48px);
}
@media (min-width: 761px) {
  .offering-grid { grid-template-columns: repeat(3, 1fr); }
}

.offer-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: rgba(42, 38, 36, .4);
  padding: 38px 32px;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.offer-card:hover { transform: translateY(-6px); border-color: rgba(197, 160, 89, .45); }

.offer-featured {
  border-color: rgba(184, 90, 60, .55);
  background:
    radial-gradient(400px 260px at 50% 0%, rgba(184, 90, 60, .14), transparent 70%),
    rgba(42, 38, 36, .55);
}

.offer-kind {
  font-size: 11px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 14px;
}
.offer-card h3 { font-size: 28px; margin-bottom: 12px; }
.offer-card > p:not(.offer-kind) { font-size: 14px; color: var(--bone-60); margin-bottom: 26px; }

.offer-link {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  transition: color var(--t-fast) var(--ease), letter-spacing var(--t-med) var(--ease);
}
.offer-link:hover { color: var(--gold-hover); letter-spacing: .2em; }

/* video preview cards — The Visual Forge */
.vcard {
  display: flex; flex-direction: column;
  padding: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  border-color: rgba(255, 255, 255, .05);
  background: rgba(42, 38, 36, .55);
  overflow: hidden;
}
.vcard-media {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}
.vcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 700ms ease-in-out;
}
/* ignition on contact: a charcoal veil dims the thumbnail until the cursor arrives */
.vcard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, .6);
  transition: opacity 700ms ease-in-out;
  pointer-events: none;
}
.vcard:hover .vcard-media::after { opacity: 0; }
.vcard:hover .vcard-media img { transform: scale(1.05); }
.vcard-body {
  padding: 26px 28px 30px;
  display: flex; flex-direction: column; flex: 1;
}
.vcard-body h3 { font-size: 25px; line-height: 1.2; margin-bottom: 12px; }
.vcard-body > p:not(.offer-kind) {
  font-size: 14px;
  color: var(--bone-60);
  margin-bottom: 24px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vcard-body .offer-link { margin-top: auto; }
.vcard:hover .offer-link { color: var(--gold-hover); letter-spacing: .2em; }

/* ── The Alchemist ─────────────────────────────────────── */

.alchemist {
  background:
    radial-gradient(900px 700px at 12% 40%, rgba(184, 90, 60, .07), transparent 60%),
    var(--charcoal);
}

.alchemist-grid {
  display: grid;
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(40px, 7vw, 110px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.alchemist-figure {
  position: relative;
  width: 100%;
  /* no frame — the portrait dissolves into the section so it reads as one piece */
  overflow: hidden;
  border-radius: 230px 230px var(--radius) var(--radius);
}
.alchemist-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5.4;
  filter: saturate(.92) contrast(1.04) brightness(.92);
  /* the edge facing the text melts into the charcoal background */
  -webkit-mask-image:
    linear-gradient(to right, #000 52%, transparent 99%),
    linear-gradient(to bottom, #000 70%, rgba(0,0,0,.25) 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 52%, transparent 99%),
    linear-gradient(to bottom, #000 70%, rgba(0,0,0,.25) 100%);
  mask-composite: intersect;
}
.alchemist-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(197,160,89,.10), transparent 40%);
  border-radius: inherit;
}
.alchemist-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: rgba(244, 240, 235, .85);
  z-index: 2;
}

.alchemist-story p:not(.eyebrow):not(.alchemist-sign) {
  color: var(--bone-60);
  max-width: 54ch;
  margin-top: 22px;
}
.alchemist-story h2 { margin-top: 4px; }

.alchemist-sign {
  margin-top: 34px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--gold);
}

/* ── The Grimoire ──────────────────────────────────────── */

.grimoire {
  background:
    radial-gradient(1100px 500px at 50% 100%, rgba(197, 160, 89, .05), transparent 65%),
    var(--charcoal);
}

.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center;
  margin-bottom: 46px;
}
.filter {
  font-family: var(--font-body);
  font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-60);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  transition: color var(--t-med) var(--ease), border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.filter:hover { color: var(--bone); border-color: rgba(197, 160, 89, .5); }
.filter.is-active {
  color: var(--charcoal);
  background: var(--gold);
  border-color: var(--gold);
}

.grimoire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.gcard {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: rgba(42, 38, 36, .45);
  padding: 34px 30px 26px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease), transform var(--t-med) var(--ease),
              opacity var(--t-slow) var(--ease), box-shadow var(--t-med) var(--ease);
}
.gcard:hover {
  border-color: rgba(184, 90, 60, .5);
  transform: translateY(-5px);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8), 0 0 60px -20px rgba(184, 90, 60, .3);
}
.gcard.is-hidden { display: none; }

.gcard-cat {
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 14px;
}
.gcard h3 {
  font-size: 24px; line-height: 1.2;
  margin-bottom: 12px;
  transition: color var(--t-med) var(--ease);
}
.gcard:hover h3 { color: var(--gold-hover); }
.gcard > p:not(.gcard-cat) { font-size: 14px; color: var(--bone-60); margin-bottom: 24px; }

.gcard-meta {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-38);
}
.gcard-arrow { color: var(--gold); transition: transform var(--t-med) var(--ease); }
.gcard:hover .gcard-arrow { transform: translateX(6px); }

/* linked cards with hero imagery */
.gcard-linked {
  display: flex; flex-direction: column;
  padding: 0;
  text-decoration: none;
  color: inherit;
}
.gcard-media { aspect-ratio: 16 / 9; overflow: hidden; }
.gcard-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.94);
  transition: transform 600ms var(--ease);
}
.gcard-linked:hover .gcard-media img { transform: scale(1.045); }
.gcard-body {
  padding: 26px 28px 22px;
  display: flex; flex-direction: column; flex: 1;
}
.gcard-body h3 { font-size: 22px; line-height: 1.22; }
.gcard-body .gcard-meta { margin-top: auto; }
.gcard-body > p:not(.gcard-cat) { font-size: 13.5px; color: var(--bone-60); margin-bottom: 20px; }

.grimoire-more { text-align: center; margin-top: 46px; }

/* ── The Laboratory ────────────────────────────────────── */

.laboratory {
  background:
    radial-gradient(800px 600px at 82% 50%, rgba(184, 90, 60, .08), transparent 60%),
    linear-gradient(180deg, var(--charcoal), #171412 50%, var(--charcoal));
}

.lab-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(40px, 6vw, 90px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: center;
}

.lab-copy h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.lab-copy > p.reveal { color: var(--bone-60); max-width: 52ch; margin-top: 22px; }

.lab-cta {
  margin-top: 44px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(42, 38, 36, .5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 30px 30px 34px;
}
.lab-cta-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--bone);
  margin-bottom: 6px;
}
.lab-cta > p:not(.lab-cta-title) { font-size: 14px; color: var(--bone-60); }
.lab-cta em { color: var(--gold); }

.spark-form {
  display: flex; gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.spark-form input {
  flex: 1; min-width: 200px;
  background: rgba(18, 18, 18, .6);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 14px 18px;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}

input:focus, textarea:focus {
  outline: none;
  border-color: rgba(197, 160, 89, .6);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, .12);
}
input::placeholder, textarea::placeholder { color: var(--bone-38); }

.form-done {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--gold);
}

.form-error {
  margin-top: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--terracotta-hover);
}

/* breathing chamber */
.breath-chamber {
  display: flex; flex-direction: column; align-items: center;
  gap: 30px;
  padding: 40px 20px;
}

.breath-rings {
  position: relative;
  width: 280px; height: 280px;
  display: grid; place-items: center;
}
.breath-ring {
  position: absolute; inset: 0;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, .22);
  transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.breath-ring.r2 { inset: 13%; border-color: rgba(197, 160, 89, .3); }
.breath-ring.r3 { inset: 26%; border-color: rgba(184, 90, 60, .35); }

.breath-orb {
  width: 108px; height: 108px;
  border-radius: 999px;
  background: radial-gradient(circle at 38% 32%, #E8B98A, var(--terracotta) 48%, #5E2A13 85%);
  box-shadow: 0 0 60px 6px rgba(184, 90, 60, .45), inset 0 -10px 26px rgba(0, 0, 0, .5);
  transform: scale(.72);
  transition: transform 3.8s var(--ease), box-shadow 3.8s var(--ease);
}

.breath-chamber.inhale .breath-orb { transform: scale(1.18); box-shadow: 0 0 100px 18px rgba(197,160,89,.5), inset 0 -10px 26px rgba(0,0,0,.4); }
.breath-chamber.hold .breath-orb { transform: scale(1.18); }
.breath-chamber.exhale .breath-orb { transform: scale(.72); }
.breath-chamber.inhale .breath-ring { transform: scale(1.06); }
.breath-chamber.exhale .breath-ring { transform: scale(1); }

.breath-phase {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold);
  min-height: 1.4em;
}

/* ── Wave dividers ─────────────────────────────────────── */

.wave-divider {
  /* generous vertical room so the golden wave breathes without being cropped */
  height: clamp(200px, 26vw, 340px);
  background: url('../assets/divider-static-waves.webp') center / cover no-repeat;
  /* dissolve fully into the charcoal above and below — no visible seams */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  opacity: .9;
  position: relative;
}
.wave-divider::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--charcoal), transparent 32%, transparent 68%, var(--charcoal)),
    linear-gradient(90deg, var(--charcoal), transparent 14%, transparent 86%, var(--charcoal));
}

/* ── Echoes ────────────────────────────────────────────── */

.echoes { padding-top: 64px; }
.echoes > .eyebrow { text-align: center; margin-bottom: 60px; }

.echoes-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(40px, 6vw, 90px);
  max-width: 1120px;
  margin: 0 auto;
  align-items: center;
}

.echoes-figure {
  position: relative;
  width: 100%;
  border-radius: 210px 210px var(--radius) var(--radius);
  overflow: hidden;
  border: 1px solid rgba(197, 160, 89, .3);
  box-shadow: 0 60px 90px -50px rgba(0, 0, 0, .85), 0 0 80px -30px rgba(197, 160, 89, .22);
  max-width: 360px;
  justify-self: center;
}
.echoes-figure img {
  width: 100%;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  filter: saturate(.96);
}
.echoes-figure::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(to right, rgba(18, 18, 18, .5), transparent 32%),
    linear-gradient(200deg, rgba(197,160,89,.08), transparent 30%, rgba(18,18,18,.5) 90%);
}
.echoes-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 16px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14.5px;
  color: rgba(244, 240, 235, .85);
  z-index: 2;
}

.echo-stream {
  display: flex; flex-direction: column;
  gap: 64px;
}

.echo { position: relative; max-width: 34em; }
.echo-right { align-self: flex-end; text-align: right; }

.echo p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  font-style: italic;
  line-height: 1.4;
  color: var(--bone);
}
.echo p::first-letter { color: var(--gold); }
.echo cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--bone-38);
}

/* ── Ignition ──────────────────────────────────────────── */

.ignition {
  padding-bottom: 72px;
  background:
    radial-gradient(1000px 640px at 50% 108%, rgba(184, 90, 60, .16), transparent 62%),
    radial-gradient(700px 400px at 50% 100%, rgba(197, 160, 89, .08), transparent 60%),
    var(--charcoal);
}

/* glass card floating over the golden lotus */
.ignition-scene {
  position: relative;
  display: grid;
  place-items: center;
  padding: 40px 0 20px;
}

.lotus-bg {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  width: min(720px, 96vw);
  opacity: .6;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  animation: lotusGlow 7s var(--ease) infinite;
}
@keyframes lotusGlow {
  0%, 100% { opacity: .5; }
  50% { opacity: .68; }
}

.ignition-inner {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  background: rgba(18, 18, 18, .5);
  border: 1px solid rgba(197, 160, 89, .28);
  border-radius: 24px;
  padding: clamp(40px, 6vw, 64px) clamp(26px, 5vw, 56px);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 40px 90px -40px rgba(0, 0, 0, .85),
    inset 0 1px 0 rgba(244, 240, 235, .06);
}

.ignition-form {
  margin-top: 48px;
  display: flex; flex-direction: column; gap: 14px;
}
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row input { flex: 1; min-width: 200px; }

.ignition-form input, .ignition-form textarea {
  background: rgba(42, 38, 36, .55);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 16px 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  resize: vertical;
  transition: border-color var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.ignition-form .btn { margin-top: 10px; align-self: center; }

/* footer */
.site-foot {
  max-width: 1180px;
  margin: 72px auto 0;
  padding-top: 48px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-direction: column; align-items: center;
  gap: 30px;
  text-align: center;
}
.site-foot .brand-mark { width: 52px; height: 52px; color: var(--gold); }
.foot-tag {
  margin-top: 14px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--bone-60);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.foot-nav a {
  font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-38); text-decoration: none;
  transition: color var(--t-med) var(--ease);
}
.foot-nav a:hover { color: var(--gold-hover); }
/* bottom padding keeps the last line clear of the floating dock without dead space */
.foot-legal { font-size: 11.5px; color: var(--bone-38); letter-spacing: .04em; padding-bottom: 98px; line-height: 2; }
.foot-legal a { color: var(--bone-38); text-decoration: none; transition: color var(--t-med) var(--ease); }
.foot-legal a:hover { color: var(--gold-hover); }

/* ── Floating Dock ─────────────────────────────────────── */

.dock {
  position: fixed;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 110;
  display: flex; align-items: flex-end; gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(18, 18, 18, .55);
  border: 1px solid rgba(58, 51, 48, .9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .8);
  transition: transform var(--t-slow) var(--ease), opacity var(--t-slow) var(--ease);
}
.dock.is-hidden { transform: translateX(-50%) translateY(120px); opacity: 0; }

.dock-item {
  position: relative;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 999px;
  color: var(--bone-60);
  text-decoration: none;
  transition: transform var(--t-fast) var(--ease), color var(--t-med) var(--ease), background var(--t-med) var(--ease);
  transform-origin: bottom center;
}
.dock-item:hover { color: var(--terracotta-hover); }
.dock-item.is-active {
  color: var(--terracotta-hover);
  background: rgba(184, 90, 60, .14);
}
.dock-icon { width: 21px; height: 21px; display: block; }
.dock-icon svg { width: 100%; height: 100%; }

.dock-label {
  position: absolute;
  bottom: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  white-space: nowrap;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--bone);
  background: rgba(18, 18, 18, .85);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 7px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.dock-item:hover .dock-label { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1020px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; }
  .grimoire-grid { grid-template-columns: repeat(2, 1fr); }
  .canvas-content { max-width: 56%; }
  .canvas-video { width: 58%; }
  .echoes-grid { grid-template-columns: 1fr; }
  .echoes-figure { max-width: 320px; }
}

@media (max-width: 760px) {
  section { padding: 60px 6vw; }
  /* the dock is the primary navigation on phones; the brandbar keeps only the
     mark and the "Begin →" shortcut (it already hides itself over the hero) */
  .brand-words { display: none; }
  .brandbar { padding: 16px 5vw; }
  .hero { padding: 14px; }
  .hero-canvas { min-height: 0; border-radius: 1.6rem; }
  .canvas-nav { display: none; } /* no duplicated links over the video */
  /* stacked layout: the phoenix is a top band in normal flow, the text always sits below it */
  .canvas-top { position: absolute; top: 0; left: 0; right: 0; }
  .canvas-video {
    position: static;
    width: 100%; height: 330px;
    object-position: center 14%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  /* slightly stronger top shade so the lockup stays readable over the brightest frames */
  .canvas-video-veil {
    top: 0; left: 0; width: 100%; height: 340px;
    background:
      linear-gradient(to bottom, rgba(42, 38, 36, .92) 0%, rgba(42, 38, 36, .4) 18%, transparent 48%, var(--sienna) 98%);
  }
  .canvas-content {
    justify-content: flex-start;
    max-width: 100%;
    padding-top: 0;
    padding-bottom: 96px; /* keeps the CTA clear of the floating dock */
  }
  .alchemist-grid, .lab-grid { grid-template-columns: 1fr; }
  .alchemist-figure { max-width: 380px; margin: 0 auto; }
  /* stacked layout: the portrait now melts downward into the text below it */
  .alchemist-figure img {
    -webkit-mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 58%, transparent 100%);
  }
  .alchemist-figure figcaption { display: none; }
  .grimoire-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-wide { grid-column: span 1; }
  /* phones: the crucible / visual forge / grimoire cards zoom out in step
     with the scroll itself (transform driven from main.js) — the transition
     here keeps only the fade, so the transform can track the finger 1:1 */
  .bento > *, .offering-grid > *, .grimoire-grid > * {
    transition: opacity 900ms var(--ease);
  }
  /* echoes stack aligned the same way, full width — no alternating offset */
  .echo { max-width: none; }
  .echo-right { align-self: flex-start; text-align: left; }
  /* the alembic keeps its drag mechanics on phones — touch drags the seam,
     vertical swipes still scroll (touch-action: pan-y on the base rule);
     type floors keep both panes legible near the extremes */
  .alembic-pane { min-height: 340px; padding: 40px 24px; }
  .pane-title { font-size: clamp(1.7rem, 9vw, 2.6rem); }
  .pane-list li { font-size: 13.5px; }
  /* grimoire filters: one swipeable row instead of a cramped multi-line wrap */
  .filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    margin: 0 -6vw 46px;
    padding: 2px 6vw 8px;
    scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; scroll-snap-align: start; }
  /* breathing chamber scales with the viewport — same timing, smaller vessel */
  .breath-rings { width: min(280px, 74vw); height: min(280px, 74vw); }
  .breath-orb { width: 38.5%; height: 38.5%; }
  .dock { gap: 2px; padding: 8px 10px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .dock-item { width: 44px; height: 44px; }
  .scroll-cue { display: none; }
  /* nothing scrolls to rest behind the dock */
  main { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .foot-legal { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

/* small phones: comfortable touch targets, full-width CTAs */
@media (max-width: 560px) {
  .btn { display: block; width: 100%; text-align: center; }
  .hero-actions { width: 100%; }
  .spark-form { flex-direction: column; }
  .spark-form input { min-width: 0; }
  .field-row { flex-direction: column; }
  .field-row input { min-width: 0; }
  /* the portrait must not swallow the small screen — cap its height */
  .alchemist-figure img {
    aspect-ratio: auto;
    height: min(420px, 58vh);
    height: min(420px, 58svh);
  }
}

/* touch screens: hover cannot carry the card effects — the ember glow ignites
   as a card enters the viewport (class set by JS) and follows the finger on
   contact; the thumbnail veil lifts the same way */
@media (hover: none) and (pointer: coarse) {
  [data-glow].glow-on::before { opacity: 1; }
  .vcard.glow-on .vcard-media::after { opacity: 0; }
}

/* ── Reduced motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal, .reveal-stagger > *, .hero-title .w { opacity: 1; transform: none; }
  #embers { display: none; }
}
