/* ============================================================
   automagically — v2 — studio associato
   ============================================================ */

:root {
  --bg: oklch(0.08 0.005 60);
  --bg-soft: oklch(0.11 0.008 60);
  --bg-card: oklch(0.13 0.01 60);
  --bg-card-2: oklch(0.16 0.012 60);
  --fg: oklch(0.96 0.01 80);
  --fg-mute: oklch(0.72 0.015 70);
  --fg-dim: oklch(0.48 0.015 70);
  --line: oklch(0.22 0.01 70);
  --line-bright: oklch(0.32 0.012 70);
  --accent: oklch(0.72 0.17 295);
  --accent-soft: oklch(0.55 0.13 295);
  --accent-glow: oklch(0.72 0.17 295 / 0.35);
  --warm: oklch(0.78 0.13 60);
  --warm-glow: oklch(0.78 0.13 60 / 0.3);
  --green: oklch(0.7 0.15 145);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--accent); color: var(--bg); }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot { width: 6px; height: 6px; background: var(--fg); transition: width .2s, height .2s; }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--fg);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, border-radius .3s;
}
.cursor-hover .cursor-ring { width: 72px; height: 72px; background: var(--accent-glow); border-color: transparent; }
.cursor-hover .cursor-dot { width: 0; height: 0; }
.cursor-trail {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9997;
}
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring, .cursor-trail { display: none; }
}

/* ============================================================
   AMBIENT FLOATING SHAPES
   ============================================================ */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.22;
  animation: drift 36s ease-in-out infinite;
  will-change: transform;
}
.shape.s1 { width: 380px; height: 380px; background: oklch(0.55 0.16 295); top: 12vh; left: -10vw; }
.shape.s2 { width: 320px; height: 320px; background: oklch(0.6 0.13 60); top: 140vh; right: -8vw; animation-delay: -8s; animation-duration: 42s; }
.shape.s3 { width: 360px; height: 360px; background: oklch(0.5 0.15 295); top: 280vh; left: 25vw; animation-delay: -16s; animation-duration: 46s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, -40px) scale(1.1); }
  66% { transform: translate(-40px, 50px) scale(0.95); }
}

/* ============================================================
   RIBBON (decorative, vertical animated path)
   ============================================================ */
.ribbon {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 5400px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}
#ribbonPath {
  stroke-dasharray: 8 14;
  animation: ribbonFlow 22s linear infinite;
}
@keyframes ribbonFlow {
  to { stroke-dashoffset: -440; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease), border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 40px;
  background: oklch(0.08 0.005 60 / 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--fg);
}
.logo-mark {
  position: relative;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.logo-mark .core {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.logo-mark .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--accent-soft);
}
.logo-mark .r1 { animation: spin 12s linear infinite; opacity: .6; }
.logo-mark .r2 {
  inset: 4px; border-style: dashed; border-color: oklch(0.78 0.13 60 / 0.6);
  animation: spin 8s linear infinite reverse;
}
.logo-mark .r3 {
  inset: -4px;
  border: 1px solid oklch(0.72 0.17 295 / 0.25);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}
.logo-word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.logo-word em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent) 0%, var(--warm) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
}
.nav-links a {
  color: var(--fg);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity .2s;
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute;
  bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center;
  transition: transform .2s var(--ease-bounce);
}
.nav-cta:hover { transform: scale(1.04); }
.nav-cta .arrow { transition: transform .3s var(--ease); }
.nav-cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta span:first-child { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 40px 80px;
}
/* Mechanical gears — lateral, off to the sides */
.hero-sigil {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  aspect-ratio: 1;
}
.hero-sigil-right {
  top: 50%;
  right: -180px;
  transform: translateY(-50%);
  width: 540px;
  opacity: 0.5;
}
.hero-sigil-left {
  bottom: -80px;
  left: -120px;
  width: 320px;
  opacity: 0.42;
}
.gear { transform-box: fill-box; transform-origin: center; }
.hero-sigil .g1 { animation: spin 64s linear infinite; }
.hero-sigil .g2 { animation: spin 48s linear infinite reverse; }

@media (max-width: 900px) {
  .hero-sigil-right { right: -260px; width: 460px; opacity: 0.38; }
  .hero-sigil-left { left: -180px; width: 260px; opacity: 0.32; }
}
@media (max-width: 600px) {
  .hero-sigil-right { right: -300px; opacity: 0.28; }
  .hero-sigil-left { display: none; }
}

.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0.85; }
.hero-grid {
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, oklch(0.72 0.17 295 / 0.5), transparent 50%),
    radial-gradient(1px 1px at 70% 15%, oklch(0.78 0.13 60 / 0.4), transparent 50%),
    radial-gradient(1px 1px at 40% 70%, oklch(0.72 0.17 295 / 0.35), transparent 50%),
    radial-gradient(1px 1px at 85% 65%, oklch(0.85 0.13 295 / 0.4), transparent 50%),
    radial-gradient(1px 1px at 15% 85%, oklch(0.78 0.13 60 / 0.3), transparent 50%),
    radial-gradient(1.5px 1.5px at 55% 40%, oklch(0.85 0.13 295 / 0.5), transparent 50%),
    radial-gradient(1px 1px at 90% 90%, oklch(0.72 0.17 295 / 0.3), transparent 50%);
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  z-index: 0;
  opacity: 0.7;
}
.hero-glow {
  position: absolute;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  filter: blur(60px);
  z-index: 0;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  animation: heroBreath 8s ease-in-out infinite;
}
@keyframes heroBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.9; }
}

/* Hero corner labels */
.hero-corner {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase;
}
.hero-corner.tl { top: 100px; left: 40px; }
.hero-corner.tr { top: 100px; right: 40px; }
.hero-corner.bl { bottom: 32px; left: 40px; }
.hero-corner.br { bottom: 32px; right: 40px; }
.hero-corner .dot {
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@media (max-width: 800px) {
  .hero-corner { display: none; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 32px;
  max-width: 1280px;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-mute);
  background: oklch(0.13 0.01 60 / 0.6);
  backdrop-filter: blur(10px);
  margin-bottom: 40px;
  opacity: 0;
  animation: rise 1s var(--ease) 0.1s forwards;
}
.hero-eyebrow .live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px oklch(0.7 0.15 145 / 0.6);
  animation: pulse 2s ease-in-out infinite;
}

.hero-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8.5vw, 124px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
  max-width: 22ch;
  margin: 0 auto;
}
.hero-h1 .line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: rise 1.1s var(--ease) forwards;
  padding-bottom: 0.04em;
}
.hero-h1 .line:nth-child(1) { animation-delay: .15s; }
.hero-h1 .line:nth-child(2) { animation-delay: .4s; }
.hero-h1 .line.italic {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent) 0%, var(--warm) 70%, var(--fg) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  position: relative;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { to { opacity: 1; transform: scale(1); } }

.hero-sub {
  margin-top: 36px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 400;
  line-height: 1.3;
  color: var(--fg-mute);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  opacity: 0;
  animation: rise 1s var(--ease) 1s forwards;
}
.hero-sub em {
  font-style: italic;
  color: var(--fg);
}

.hero-rotator {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line);
  background: oklch(0.13 0.01 60 / 0.5);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  opacity: 0;
  animation: rise 1s var(--ease) 1.2s forwards;
  max-width: calc(100vw - 80px);
}
.rot-label {
  padding: 4px 10px;
  background: oklch(0.22 0.01 70);
  border-radius: 999px;
  font-size: 11px;
  color: var(--fg-mute);
  white-space: nowrap;
}
.rot-track {
  position: relative;
  display: inline-grid;
  overflow: hidden;
  height: 1.4em;
  min-width: 0;
}
.rot-word {
  grid-area: 1 / 1;
  white-space: nowrap;
  color: var(--fg);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.rot-word.active {
  opacity: 1;
  transform: translateY(0);
}
.rot-word.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero-actions {
  margin-top: 40px;
  display: flex; gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 1s var(--ease) 1.4s forwards;
}
.btn {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 999px;
  border: none;
  cursor: none;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .3s var(--ease-bounce), box-shadow .3s var(--ease), background .3s;
}
.btn-primary { background: var(--fg); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 48px oklch(0.96 0.01 80 / 0.15); }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: oklch(0.13 0.01 60 / 0.6); border-color: var(--fg-mute); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-family: var(--mono);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
  animation: rise 1s var(--ease) 1.6s forwards;
}
.hero-scroll .scroll-glyph {
  width: 22px; height: 22px;
  color: var(--accent);
  animation: scrollBob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
@keyframes scrollBob {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(4px); opacity: 1; }
}
@media (max-width: 700px) {
  .hero-scroll { display: none; }
}

/* ============================================================
   GENERIC SECTION
   ============================================================ */
section { position: relative; padding: 160px 40px; }
.container { max-width: 1280px; margin: 0 auto; position: relative; z-index: 2; }
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before {
  content: ""; width: 24px; height: 1px; background: var(--fg-dim);
}
.section-label.center { justify-content: center; }
.section-label.center::after {
  content: ""; width: 24px; height: 1px; background: var(--fg-dim);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  text-wrap: balance;
}
.section-title .italic { font-style: italic; color: var(--accent); }

.reveal { opacity: 0; transform: translateY(60px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   STUDIO
   ============================================================ */
.studio { padding-top: 200px; }
.studio-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}
.studio-text .section-title { max-width: 14ch; }
.lede {
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 50ch;
}
.lede:nth-of-type(2) { margin-top: 16px; }

.studio-tags {
  margin-top: 40px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.tag {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 14px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-mute);
  display: inline-flex; align-items: center; gap: 8px;
  background: oklch(0.13 0.01 60 / 0.4);
  transition: all .3s var(--ease);
}
.tag:hover {
  border-color: var(--accent-soft);
  color: var(--fg);
  transform: translateY(-2px);
}
.tag i {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.studio-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}
.studio-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
  background: var(--bg-card-2);
}
.studio-card-head .dot.live {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px oklch(0.7 0.15 145 / 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
.studio-card-body {
  padding: 8px 20px;
}
.studio-card-body .row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.studio-card-body .row:last-child { border-bottom: none; }
.studio-card-body .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.studio-card-body .v {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  color: var(--fg);
}
.studio-card-body .v.accent {
  color: var(--accent);
  font-style: normal;
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
}
.studio-card-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--bg-card-2);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--fg-mute);
}
.signal { display: inline-flex; align-items: end; gap: 2px; height: 14px; }
.signal .bar {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: signal 1.6s ease-in-out infinite;
}
.signal .bar:nth-child(1) { height: 4px;  animation-delay: 0s; }
.signal .bar:nth-child(2) { height: 8px;  animation-delay: .2s; }
.signal .bar:nth-child(3) { height: 12px; animation-delay: .4s; }
.signal .bar:nth-child(4) { height: 6px;  animation-delay: .6s; }
@keyframes signal {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.5); }
}

@media (max-width: 900px) {
  .studio-grid { grid-template-columns: 1fr; gap: 48px; }
  .studio-card { position: relative; top: 0; }
}

/* ============================================================
   WAYS
   ============================================================ */
.ways { padding: 200px 40px; }
.ways-head { text-align: center; margin-bottom: 96px; }
.ways-head .section-label { justify-content: center; }
.ways-head .section-label::after { content: ""; width: 24px; height: 1px; background: var(--fg-dim); }
.ways-head .section-title { max-width: 18ch; margin: 0 auto; }

.ways-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.way {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
  padding: 48px;
  transition: border-color .6s var(--ease), transform .6s var(--ease);
  transform-style: preserve-3d;
}
.way:hover { border-color: var(--accent-soft); }
.way-reading:hover { border-color: oklch(0.65 0.13 60); }

.way-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
.way-bg svg { width: 100%; height: 100%; }
.way-spell .orbit { transform-origin: 200px 200px; animation: spin 20s linear infinite; }
.way-spell .orbit.o2 { animation-duration: 14s; animation-direction: reverse; }
.way-spell .orbit.o3 { animation-duration: 28s; }
.way-reading .cards g {
  transform-origin: center;
  animation: tarotFloat 6s ease-in-out infinite;
}
.way-reading .cards g:nth-child(2) { animation-delay: -2s; }
.way-reading .cards g:nth-child(3) { animation-delay: -4s; }
@keyframes tarotFloat {
  0%, 100% { transform: translate(120px, 180px) rotate(-12deg); }
  50%      { transform: translate(125px, 172px) rotate(-10deg); }
}
.way-reading .cards g:nth-child(2) {
  animation-name: tarotFloat2;
}
@keyframes tarotFloat2 {
  0%, 100% { transform: translate(200px, 170px) rotate(4deg); }
  50%      { transform: translate(204px, 164px) rotate(6deg); }
}
.way-reading .cards g:nth-child(3) {
  animation-name: tarotFloat3;
}
@keyframes tarotFloat3 {
  0%, 100% { transform: translate(180px, 220px) rotate(18deg); }
  50%      { transform: translate(184px, 214px) rotate(20deg); }
}

.way-content {
  position: relative;
  z-index: 1;
}
.way-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 32px;
}
.way-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: oklch(0.18 0.01 60);
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.way-reading .way-icon { color: var(--warm); }
.way-icon svg { width: 22px; height: 22px; }
.way-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: var(--fg);
}
.way-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  margin-left: auto;
}
.way-tag.warm {
  border-color: oklch(0.65 0.13 60);
  color: var(--warm);
}

.way-title {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 400;
  max-width: 16ch;
}
.way-title .italic { font-style: italic; color: var(--accent); }
.way-reading .way-title .italic { color: var(--warm); }
.way-body {
  margin-top: 20px;
  font-size: 16px;
  color: var(--fg-mute);
  line-height: 1.6;
  max-width: 44ch;
}

.way-examples {
  margin-top: 32px;
  list-style: none;
  display: flex; flex-direction: column;
}
.way-examples li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-mute);
}
.way-examples li:last-child { border-bottom: 1px solid var(--line); }
.bullet {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  flex-shrink: 0;
}
.bullet.warm { background: var(--warm); box-shadow: 0 0 8px var(--warm-glow); }

.way-meta {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.meta-cell {
  padding: 16px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.meta-cell:last-child { border-right: none; }
.meta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.meta-value {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--fg);
}

.way-cta {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--accent);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--accent-soft);
}
.way-cta.warm { color: var(--warm); border-bottom-color: oklch(0.65 0.13 60); }
.way-cta .arrow { transition: transform .3s var(--ease); }
.way-cta:hover .arrow { transform: translateX(4px); }

@media (max-width: 900px) {
  .ways-grid { grid-template-columns: 1fr; }
  .way { padding: 32px; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: 200px 40px; }
.manifesto-text {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 400;
  text-wrap: balance;
  max-width: 1100px;
}
.manifesto-text .ch {
  color: var(--fg-dim);
  transition: color .3s var(--ease);
}
.manifesto-text .ch.lit { color: var(--fg); }
.manifesto-text .accent {
  font-style: italic;
  color: var(--accent);
}

/* ============================================================
   METHOD — node graph
   ============================================================ */
.method { padding: 200px 40px; }
.method-head { text-align: center; margin-bottom: 80px; }
.method-head .section-label { justify-content: center; }
.method-head .section-label::after { content: ""; width: 24px; height: 1px; background: var(--fg-dim); }
.method-head .section-title { max-width: 22ch; margin: 0 auto; }

.graph {
  position: relative;
  padding: 40px 0;
  background: linear-gradient(180deg, transparent, oklch(0.13 0.01 60 / 0.5), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.graph-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
}

.graph-edges .edge {
  stroke-dasharray: 4 6;
  animation: edgeFlow 4s linear infinite;
  opacity: 0.6;
}
@keyframes edgeFlow {
  to { stroke-dashoffset: -50; }
}

.graph-nodes .node {
  transition: transform .4s var(--ease);
}
.graph-nodes .node.active .halo {
  animation: haloPulse 1.6s ease-out infinite;
}
@keyframes haloPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}
.graph-nodes .node.active circle:first-child {
  filter: drop-shadow(0 0 20px var(--accent-glow));
}
.graph-nodes .node.hub.active circle:first-child {
  filter: drop-shadow(0 0 20px var(--warm-glow));
}

.graph-pulses .pulse {
  filter: drop-shadow(0 0 6px oklch(0.85 0.13 295));
}

.graph-legend {
  display: flex; gap: 24px;
  justify-content: center;
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-mute);
}
.leg-item { display: inline-flex; align-items: center; gap: 8px; }
.leg-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers { padding: 160px 40px 200px; }
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 56px 32px;
  border-right: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  transition: background .4s;
}
.stat:hover { background: oklch(0.13 0.01 60 / 0.4); }
.stat:last-child { border-right: none; }

.stat-glyph {
  position: absolute;
  top: 24px; right: 24px;
  width: 32px; height: 32px;
  opacity: 0.5;
}
.s-g1 {
  display: flex; gap: 3px; align-items: end;
}
.s-g1 span {
  width: 6px;
  background: var(--accent);
  border-radius: 1px;
  animation: bars 2s ease-in-out infinite;
}
.s-g1 span:nth-child(1) { height: 16px; animation-delay: 0s; }
.s-g1 span:nth-child(2) { height: 24px; animation-delay: .3s; }
.s-g1 span:nth-child(3) { height: 32px; animation-delay: .6s; }
@keyframes bars {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.5); }
}
.s-g2 {
  border: 1px solid var(--accent);
  border-radius: 50%;
  position: relative;
}
.s-g2::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 1px; height: 12px;
  background: var(--accent);
  transform-origin: top;
  animation: spin 3s linear infinite;
}
.s-g3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 2px;
}
.s-g3::before, .s-g3::after {
  content: "";
  background: var(--accent);
  border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
.s-g3 {
  position: relative;
}
.s-g3::before { width: 6px; height: 6px; position: absolute; top: 4px; left: 4px; }
.s-g3::after { width: 6px; height: 6px; position: absolute; bottom: 4px; right: 4px; animation-delay: .8s; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.s-g4 {
  position: relative;
  border: 1px solid var(--accent);
  border-radius: 4px;
}
.s-g4::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.stat-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 32px;
}
.stat-value {
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-value .unit {
  font-size: 0.5em;
  color: var(--accent);
  font-style: italic;
}
.stat-label {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-mute);
  letter-spacing: 0.02em;
  max-width: 22ch;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .numbers-grid { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
}

/* ============================================================
   TOOLBELT — marquee
   ============================================================ */
.toolbelt {
  padding: 80px 0 100px;
  overflow: hidden;
}
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  width: max-content;
  animation: marquee 60s linear infinite;
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 400;
  color: var(--fg-mute);
  line-height: 1;
  align-items: center;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-track .sep { color: var(--accent); }
.marquee-track .big {
  color: var(--fg);
}
.marquee-track .italic { font-style: italic; }
@keyframes marquee {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding: 200px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 50%);
  filter: blur(80px);
  z-index: 0;
}
.cta-orbs {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.cta-orb.co1 {
  width: 200px; height: 200px;
  background: oklch(0.55 0.18 295);
  top: 20%; left: 15%;
  animation: orbDrift 12s ease-in-out infinite;
}
.cta-orb.co2 {
  width: 280px; height: 280px;
  background: oklch(0.6 0.15 60);
  bottom: 15%; right: 15%;
  animation: orbDrift 16s ease-in-out infinite reverse;
}
.cta-orb.co3 {
  width: 160px; height: 160px;
  background: oklch(0.6 0.16 145);
  top: 60%; left: 50%;
  animation: orbDrift 14s ease-in-out 2s infinite;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0,0) scale(1); opacity: 0.5; }
  50% { transform: translate(40px, -30px) scale(1.2); opacity: 0.7; }
}
.cta-content { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 400;
  text-wrap: balance;
  margin-top: 16px;
}
.cta h2 .italic {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent) 0%, var(--warm) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.cta p {
  margin-top: 32px;
  font-size: 19px;
  color: var(--fg-mute);
  max-width: 580px;
  margin-left: auto; margin-right: auto;
  line-height: 1.55;
}
.cta .big-btn {
  margin-top: 48px;
  font-size: 16px;
  padding: 20px 32px;
  font-family: var(--mono);
  font-weight: 500;
}
.cta-meta {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: inline-flex; gap: 12px; align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-meta .sep { opacity: 0.5; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 80px 40px 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  z-index: 2;
}
footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
}
.footer-brand h4 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.footer-brand h4 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--accent), var(--warm));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.footer-brand p {
  margin-top: 16px;
  color: var(--fg-mute);
  font-size: 14px;
  max-width: 36ch;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14px;
}
.footer-col a { color: var(--fg-mute); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  max-width: 1280px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}
.foot-mark { display: inline-flex; align-items: center; gap: 8px; }
.foot-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 720px) {
  footer .container { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ============================================================
   CASES — examples
   ============================================================ */
.cases { padding: 200px 40px; }
.cases-head { text-align: center; margin-bottom: 96px; }
.cases-head .section-label { justify-content: center; }
.cases-head .section-label::after { content: ""; width: 24px; height: 1px; background: var(--fg-dim); }
.cases-head .section-title { margin: 0 auto; max-width: 22ch; }
.cases-intro {
  margin: 32px auto 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-dim);
  font-family: var(--mono);
}
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.case {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .5s var(--ease);
}
.case:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
}
.case-head {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.case-num {
  color: var(--accent);
  padding: 4px 10px;
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
}
.case-industry { color: var(--fg-mute); }
.case-stack { margin-left: auto; color: var(--fg-dim); }

.case-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
}
.case-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 24px;
}
.case-narrative {
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-mute);
  max-width: 56ch;
}
.case-narrative em {
  font-style: italic;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 1.1em;
  letter-spacing: -0.005em;
}

.case-right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.case-block-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 16px;
}
.case-built {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case-built li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--fg-mute);
  display: flex;
  align-items: center;
  gap: 12px;
}
.case-built li::before {
  content: "→";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}
.case-built li:last-child { border-bottom: 1px solid var(--line); }

.case-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.case-result {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: oklch(0.16 0.012 60);
}
.case-result-value {
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--fg);
  display: block;
}
.case-result-value i {
  font-style: normal;
  color: var(--accent);
  font-size: 0.6em;
  margin-left: 2px;
}
.case-result-label {
  font-size: 12px;
  color: var(--fg-mute);
  margin-top: 8px;
  display: block;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .case { padding: 28px; }
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-stack { margin-left: 0; width: 100%; }
}

/* ============================================================
   JOIN — open call for associates
   ============================================================ */
.join {
  padding: 160px 40px 200px;
}
.join-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  padding: 64px;
}
.join-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.join-grid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  mask-image: radial-gradient(ellipse at 80% 30%, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 30%, black 0%, transparent 65%);
  opacity: 0.7;
}
.join-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.join-orb.o1 {
  width: 360px; height: 360px;
  background: oklch(0.6 0.18 295);
  top: -100px; right: -80px;
  animation: orbDrift 14s ease-in-out infinite;
}
.join-orb.o2 {
  width: 280px; height: 280px;
  background: oklch(0.65 0.15 60);
  bottom: -80px; left: -60px;
  animation: orbDrift 18s ease-in-out infinite reverse;
}

.join-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}

.join-left .section-title {
  max-width: 16ch;
  margin-bottom: 24px;
}
.join-lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-mute);
  max-width: 52ch;
}

.join-perks {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
}
.perk {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.perk-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
.perk-icon svg { width: 18px; height: 18px; }
.perk h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.perk p {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-mute);
  max-width: 32ch;
}

.join-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 48px;
  padding: 16px 26px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .3s var(--ease-bounce);
}
.join-cta:hover { transform: translateY(-2px); }
.join-cta .arrow { transition: transform .3s var(--ease); }
.join-cta:hover .arrow { transform: translateX(4px); }
.join-meta {
  margin-top: 16px;
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}

.join-right {
  position: sticky;
  top: 100px;
}
.join-profile {
  background: var(--bg-card-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.join-profile-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--fg-dim);
}
.join-profile-head .dot.live {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px oklch(0.7 0.15 145 / 0.6);
  animation: pulse 1.6s ease-in-out infinite;
}
.join-traits {
  list-style: none;
  padding: 4px 18px;
}
.join-traits li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.join-traits li:last-child { border-bottom: none; }
.trait-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.trait-v {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--fg);
}
.trait-v.italic { font-style: italic; color: var(--accent); }
.join-profile-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-mute);
}

@media (max-width: 960px) {
  .join-card { padding: 40px 28px; border-radius: 24px; }
  .join-content { grid-template-columns: 1fr; gap: 40px; }
  .join-perks { grid-template-columns: 1fr; gap: 20px; }
  .join-right { position: relative; top: 0; }
}

/* ============================================================
   SCROLLYTELLING — rail, ways stack, cases horizontal pin
   ============================================================ */

/* ---- Side progress rail ---- */
.scroll-rail {
  position: fixed;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  pointer-events: none;
}
.rail-stops {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  pointer-events: auto;
}
.rail-stop {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: none;
  transition: opacity .3s;
  opacity: 0.5;
}
.rail-stop::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--fg-mute);
  border-radius: 50%;
  transition: all .35s var(--ease);
  flex-shrink: 0;
}
.rail-stop.active {
  opacity: 1;
}
.rail-stop.active::before {
  width: 9px; height: 9px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.rail-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  width: 18px;
}
.rail-stop.active .rail-num { color: var(--accent); }
.rail-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-mute);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s var(--ease);
  white-space: nowrap;
}
.rail-stop:hover .rail-label,
.rail-stop.active .rail-label {
  opacity: 1;
  transform: translateX(0);
}
.rail-stop.active .rail-label { color: var(--fg); }

.rail-line {
  display: none; /* dots only */
}

@media (max-width: 900px) {
  .scroll-rail { display: none; }
}

/* ---- Ways stacked pin scene ---- */
.ways-scrolly {
  position: relative;
  height: 280vh; /* room for 2 stack transitions */
}
.ways-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ways-sticky > .container {
  width: 100%;
  position: relative;
}
.ways-progress {
  position: absolute;
  top: -8vh;
  left: 40px;
  right: 40px;
  z-index: 5;
  display: flex;
  gap: 24px;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.ways-prog-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: oklch(0.11 0.008 60 / 0.7);
  backdrop-filter: blur(8px);
  transition: all .4s var(--ease);
}
.ways-prog-dot i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-dim);
  transition: all .4s var(--ease);
}
.ways-prog-dot.active {
  border-color: var(--accent-soft);
  color: var(--fg);
}
.ways-prog-dot.active i {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.ways-prog-dot[data-i="1"].active {
  border-color: oklch(0.65 0.13 60);
}
.ways-prog-dot[data-i="1"].active i {
  background: var(--warm);
  box-shadow: 0 0 10px var(--warm-glow);
}

.ways-stack {
  position: relative;
  width: 100%;
  height: min(720px, 80vh);
}
.ways-stack .way {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(1100px, 92vw);
  max-height: 86vh;
  overflow: hidden;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  margin: 0;
}
.ways-stack .way[data-stack-index="0"] { z-index: 1; }
.ways-stack .way[data-stack-index="1"] {
  z-index: 2;
  transform: translate(-50%, calc(-50% + 110vh));
}

@media (max-width: 900px) {
  .ways-scrolly { height: auto; }
  .ways-sticky { position: static; height: auto; padding: 32px 0 60px; }
  .ways-sticky > .container { padding: 0 20px; }
  .ways-progress { position: static; flex-wrap: wrap; margin-bottom: 32px; }
  .ways-stack { height: auto; display: flex; flex-direction: column; gap: 20px; }
  .ways-stack .way {
    position: relative;
    top: auto; left: auto;
    transform: none !important;
    width: 100%;
    max-height: none;
  }
  .ways-stack .way[data-stack-index="1"] { transform: none !important; }
}

/* ---- Cases horizontal pin scene ---- */
.cases-scrolly {
  position: relative;
  height: 360vh; /* 3 cases × ~scroll distance */
}
.cases-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.cases-track {
  display: flex;
  height: 100%;
  align-items: center;
  width: max-content;
  will-change: transform;
}
.cases-track .case {
  flex: 0 0 100vw;
  width: 100vw;
  max-width: none;
  border: none;
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.cases-track .case::after {
  /* recreate the framed look as inner box */
  content: none;
}
.cases-track .case > * {
  /* none used */
}
/* Wrap inner content in framed container via case-grid styling */
.cases-track .case {
  padding: 0 32px;
}
.cases-track .case::before {
  content: "";
  position: absolute;
  inset: 0;
  /* no background */
}
.cases-track .case .case-head,
.cases-track .case .case-grid {
  max-width: 1240px;
  width: 100%;
}
.cases-track .case .case-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.cases-track .case {
  position: relative;
  flex-direction: column;
}
.cases-track .case > .case-head { align-self: center; margin-top: 0; }
.cases-track .case > .case-grid { align-self: center; }

.cases-track .case:hover { transform: none; }

.cases-progress {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
}
.case-prog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: oklch(0.11 0.008 60 / 0.7);
  backdrop-filter: blur(8px);
  transition: all .4s var(--ease);
}
.case-prog i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fg-dim);
  transition: all .4s var(--ease);
}
.case-prog.active {
  color: var(--fg);
  border-color: var(--accent-soft);
}
.case-prog.active i {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

.cases-hint {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.hint-arrow {
  display: inline-block;
  color: var(--accent);
  animation: hintArrow 2s ease-in-out infinite;
}
.hint-arrow:last-child { animation-delay: -1s; }
@keyframes hintArrow {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(4px); opacity: 1; }
}

@media (max-width: 900px) {
  .cases-scrolly { height: auto; }
  .cases-pin { position: static; height: auto; padding: 0; }
  .cases-progress, .cases-hint { display: none; }
  .cases-track {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
  }
  .cases-track .case {
    flex: 0 0 auto;
    width: 100%;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 28px;
  }
}

/* Section padding adjustments to make scenes breathe */
.ways { padding: 200px 40px 0; }
.cases { padding: 200px 0 0; }
.cases > .container { padding: 0 40px; }
@media (max-width: 900px) {
  .ways { padding: 120px 20px; }
  .cases { padding: 120px 0; }
  .cases > .container { padding: 0 20px; }
}

/* Parallax */
[data-parallax] { will-change: transform; }

/* Sparkles */
.sparkle {
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
