/* ==========================================================================
   TAPAS, home
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.hero-fire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero-fallback { position: absolute; inset: 0; z-index: -3; background: radial-gradient(70% 60% at 70% 100%, rgba(200, 55, 45, .45), transparent 60%), radial-gradient(40% 40% at 72% 90%, rgba(255, 140, 60, .35), transparent 70%), var(--bg); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.hero-deva {
  position: absolute; z-index: -1; right: -2vw; top: 50%; transform: translateY(-58%);
  font-family: var(--f-deva); font-size: clamp(180px, 34vw, 560px); line-height: 1;
  pointer-events: none; user-select: none;
}
.hero-deva span {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 196, 140, .28);
  background: linear-gradient(0deg, rgba(255, 106, 44, .22), rgba(255, 216, 138, 0) 70%);
  -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255, 106, 44, .18));
}
.hero-inner { padding-bottom: clamp(70px, 9vh, 110px); padding-top: calc(var(--header-h) + 40px); }
.hero-inner .eyebrow { margin-bottom: clamp(20px, 3vh, 34px); }
.hero h1 { max-width: 11ch; }
.hero h1 em { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero h1 .split-inner { padding-right: .04em; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 28px 48px; align-items: end; margin-top: clamp(26px, 4vh, 48px); }
.hero-foot .lede { color: var(--ink-2); }
.hero-meta {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-4);
}
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i { position: relative; width: 1px; height: 34px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ember); animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { to { top: 100%; } }

/* meaning */
.meaning-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(30px, 6vw, 110px); align-items: start; }
.meaning-side { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 22px; }
.deva-break { font-family: var(--f-deva); font-size: clamp(56px, 6vw, 92px); line-height: 1; color: var(--ink); }
.deva-break b { font-weight: 400; color: var(--saffron); }
.pron { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; color: var(--ink-3); line-height: 1.7; }
.meaning-text { font-family: var(--f-display); font-size: clamp(30px, 3.6vw, 56px); line-height: 1.14; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
.meaning-text em { color: var(--saffron); }
.meaning-cite { margin-top: 36px; font-size: 13px; color: var(--ink-3); max-width: 60ch; }

/* marquee band */
.band { padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .marquee-track span { font-family: var(--f-display); font-style: italic; font-size: clamp(30px, 4vw, 60px); color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.band .marquee-track span::after { content: "✦"; font-style: normal; font-size: .4em; color: var(--ember); }

/* pillars (stacking cards) */
.stack-cards { position: relative; }
.pillar {
  position: sticky; top: calc(var(--header-h) + 28px + var(--i) * 22px);
  min-height: min(68vh, 640px);
  margin-bottom: 6vh;
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 50px); align-items: stretch;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #1b1410 0%, #120d0a 60%, #0f0b08 100%);
  border: 1px solid var(--line);
  box-shadow: 0 -20px 60px -30px rgba(0, 0, 0, .9);
  transform-origin: 50% 0;
  overflow: hidden;
}
.pillar:last-child { margin-bottom: 0; }
.pillar-num { font-family: var(--f-display); font-style: italic; font-size: clamp(70px, 8vw, 130px); line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(255, 150, 90, .45); }
.pillar-body { display: flex; flex-direction: column; gap: 18px; align-self: end; }
.pillar-body p { color: var(--ink-2); font-size: 16px; max-width: 44ch; margin: 0; }
.pillar-body ul { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 8px; }
.pillar-body li { font-size: 14px; color: var(--ink-3); display: flex; gap: 10px; }
.pillar-body li::before { content: "✦"; font-size: .7em; color: var(--ember); }
.pillar-art { border-radius: var(--r); border: 1px solid var(--line); background: radial-gradient(70% 70% at 50% 60%, rgba(200, 55, 45, .18), transparent 70%), #0d0a08; display: grid; place-items: center; overflow: hidden; position: relative; min-height: 280px; }
.pillar-art svg { width: 86%; height: 86%; }
.pillar-art .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* atlas feature */
.atlas-feature { position: relative; padding: clamp(80px, 10vw, 150px) 0; overflow: hidden; }
.af-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.af-copy .lede { margin-top: 26px; }
.af-stats { list-style: none; padding: 0; margin: 38px 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.af-stats li { border-top: 1px solid var(--line-2); padding-top: 16px; }
.af-stats b { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 4.4vw, 68px); line-height: .9; }
.af-stats span { font-size: 13px; color: var(--ink-3); display: block; margin-top: 10px; line-height: 1.45; }
.af-stage { position: relative; height: min(82vh, 820px); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: #080605; }
.af-stage .atlas-canvas { position: absolute; inset: 0; }
.af-stage .atlas-labels { display: none; }
.af-caption { position: absolute; z-index: 3; left: 22px; bottom: 22px; right: 22px; display: grid; gap: 6px; pointer-events: none; }
.af-caption b { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 36px); font-weight: 400; line-height: 1; }
.af-caption span:last-child { font-size: 13px; color: var(--ink-3); max-width: 46ch; }
.af-poster { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-4); font-family: var(--f-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

/* horizontal instruments */
.instruments-h { position: relative; padding: clamp(80px, 10vw, 140px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.ih-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.ih-track { display: flex; gap: 22px; padding: 0 var(--gutter); will-change: transform; }
.ih-card { flex: none; width: clamp(280px, 26vw, 380px); min-height: 440px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.ih-card:hover { transform: translateY(-6px); }
.ih-n { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; color: var(--ink-4); }
.ih-art { height: 190px; margin: 6px -6px 10px; display: grid; place-items: center; }
.ih-art svg { width: 100%; height: 100%; }
.ih-card h3 { font-size: 30px; }
.ih-card p { font-size: 14px; color: var(--ink-3); margin: 0; line-height: 1.55; }
.ih-card .link-arrow { margin-top: auto; font-size: 13.5px; }
.ih-progress { margin: 40px var(--gutter) 0; height: 1px; background: var(--line); position: relative; }
.ih-progress i { position: absolute; inset: 0; background: var(--fire); transform-origin: 0 50%; transform: scaleX(0); }

/* journal list */
.jlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.jrow a {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) 160px 120px 40px; gap: 24px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line); position: relative;
  transition: padding .6s var(--ease-out), color .4s;
}
.jrow a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: -1px; background: linear-gradient(90deg, rgba(255, 106, 44, .07), transparent 70%); opacity: 0; transition: opacity .5s; pointer-events: none; }
.jrow a:hover { padding-left: 18px; }
.jrow a:hover::before { opacity: 1; }
.jrow .ji { font-family: var(--f-mono); font-size: 11px; color: var(--ink-4); letter-spacing: .1em; }
.jrow .jt { font-family: var(--f-display); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; }
.jrow .jf { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.jrow .jd { font-size: 13px; color: var(--ink-4); text-align: right; }
.jrow .ja { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .5s var(--ease-out); }
.jrow .ja svg { width: 14px; height: 14px; }
.jrow a:hover .ja { background: var(--ember); border-color: var(--ember); color: #1a0b04; transform: rotate(-45deg); }
.jpreview {
  position: fixed; left: 0; top: 0; z-index: 60; width: 300px; height: 360px; pointer-events: none;
  border-radius: var(--r); overflow: hidden; opacity: 0; transform: scale(.85);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9);
  border: 1px solid var(--line-2);
}
.jpreview .jp-art { position: absolute; inset: 0; }
.jpreview .jp-art svg { width: 100%; height: 100%; }
.jpreview .jp-dek { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px; font-size: 13px; color: var(--ink-2); background: linear-gradient(transparent, rgba(8, 6, 5, .92) 40%); line-height: 1.5; }

/* practice */
.practice { text-align: center; position: relative; }
.practice blockquote { margin: 30px auto 0; max-width: 18ch; font-size: clamp(38px, 5vw, 78px); line-height: 1.04; }
.practice blockquote em { color: var(--saffron); }
.practice .lede { margin: 34px auto 0; }
.practice .row { justify-content: center; margin-top: 36px; }
.practice-glow { position: absolute; left: 50%; top: 50%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(200, 55, 45, .16), transparent); z-index: -1; pointer-events: none; }

@media (max-width: 1080px) {
  .pillar { grid-template-columns: minmax(0, 1fr); min-height: 0; position: relative; top: auto; }
  .pillar-num { font-size: 64px; }
  .pillar-art { min-height: 220px; }
  .af-grid { grid-template-columns: minmax(0, 1fr); }
  .af-stage { height: 70vh; }
  .jrow a { grid-template-columns: 50px minmax(0, 1fr) 40px; }
  .jrow .jf, .jrow .jd { display: none; }
  .jpreview { display: none; }
}
@media (max-width: 900px) {
  .meaning-grid { grid-template-columns: minmax(0, 1fr); }
  .meaning-side { position: static; }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-deva { opacity: .6; right: -14vw; }
  .ih-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: none; }
  .ih-track::-webkit-scrollbar { display: none; }
  .ih-card { scroll-snap-align: start; width: 78vw; min-height: 380px; }
  .ih-progress { display: none; }
}
@media (max-width: 560px) {
  .hero-meta span:first-child, .hero-meta span:last-child { display: none; }
  .hero-meta { justify-content: center; }
  .af-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .af-stats b { font-size: 38px; }
  .jrow a { grid-template-columns: minmax(0, 1fr) 40px; padding: 22px 0; }
  .jrow .ji { display: none; }
}
