/* ── Hero layout ── */
.hero {
  position: relative; min-height: 100vh;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: 32px;
  padding: 120px 64px 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(700px 600px at 72% 38%, rgba(200,255,30,0.08), transparent 65%),
    radial-gradient(600px 500px at 18% 75%, rgba(255,77,46,0.05), transparent 65%);
  animation: breathe 11s ease-in-out infinite;
}
@keyframes breathe {
  0%,100% { transform: scale(1); opacity: .7; }
  50%      { transform: scale(1.06); opacity: 1; }
}

.hero-l { position: relative; z-index: 2; min-width: 0; }

/* Brand lockup */
.hero-brand {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 44px;
  opacity: 0; animation: fadeup 0.7s 0.05s ease forwards;
}
.hero-brand .hero-wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 124px;
  color: var(--ink);
  letter-spacing: -.04em;
  line-height: 1;
  text-transform: lowercase;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
  padding: 8px 14px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,0.5);
  margin-bottom: 36px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--c-n); box-shadow: 0 0 10px var(--c-n);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .3; } }

/* Heading */
.hero h1 {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 400;
  font-size: clamp(38px, 5.2vw, 92px);
  line-height: .92; letter-spacing: -.04em;
  margin-bottom: 28px;
}
.hero h1 .ch {
  display: inline-block; opacity: 0; transform: translateY(.4em);
  animation: chin .8s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero h1 .sp  { width: .26em; display: inline-block; }
.hero h1 .ch.acc {
  display: inline-block;
  background: linear-gradient(135deg, #FF4D2E 0%, #FF8050 55%, #FFBA80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
@keyframes chin { to { opacity: 1; transform: none; } }

/* Sub */
.hero-sub {
  font-family: 'Fraunces', serif; font-style: italic; font-weight: 300;
  font-size: clamp(15px, 1.7vw, 20px); line-height: 1.65; color: var(--ink-3);
  max-width: 100%; margin-bottom: 40px;
  opacity: 0; animation: fadeup 1s 1s ease forwards;
}
.hero-sub strong { font-weight: 600; color: var(--ink); }
@keyframes fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* CTA buttons */
.hero-cta {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  opacity: 0; animation: fadeup 1s 1.25s ease forwards;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff;
  font-family: 'Inter'; font-size: 15px; font-weight: 600;
  border: none; padding: 17px 30px; border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
  transition: transform .25s, box-shadow .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.24); }
.btn-primary .arr { transition: transform .3s; }
.btn-primary:hover .arr { transform: translateX(4px); }

.btn-ghost {
  font-size: 14px; color: var(--ink-2); background: none; border: none;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 4px; text-decoration-thickness: 1px;
}

/* ── Orbital ── */
.hero-r {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  height: 580px;
  opacity: 0; animation: fadeup 1.2s .3s ease forwards;
}
.orb-wrap {
  position: relative; width: 520px; height: 520px; flex-shrink: 0;
}
/* Static compass rays — kept as a faint background grid so the eye
   has something to hang onto when no pulse is active. Far below the
   active pulse lines in opacity. */
.orb-lines {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: 0.5;
}

.orb-ring {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.07);
  transform: translate(-50%,-50%);
}
.orb-ring.r1 { border-color: rgba(0,0,0,0.10); }
.orb-ring.r2 { border-color: rgba(0,0,0,0.07); }
.orb-ring.r3 { border-color: rgba(0,0,0,0.04); }
.orb-ring.r1 { width: 200px; height: 200px; animation: spin-r1 14s linear infinite; }
.orb-ring.r2 { width: 340px; height: 340px; animation: spin-r2 22s linear infinite; }
.orb-ring.r3 { width: 480px; height: 480px; animation: spin-r3 36s linear infinite; }

@keyframes spin-r1 { from { transform: translate(-50%,-50%) rotate(0); }     to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spin-r2 { from { transform: translate(-50%,-50%) rotate(0); }     to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes spin-r3 { from { transform: translate(-50%,-50%) rotate(0); }     to { transform: translate(-50%,-50%) rotate(360deg); } }

/* Counter-rotation on nodes so labels & icons stay upright */
.r1 .orb-node { animation: spin-rev-r1 14s linear infinite; }
.r2 .orb-node { animation: spin-rev-r2 22s linear infinite; }
.r3 .orb-node { animation: spin-rev-r3 36s linear infinite; }
@keyframes spin-rev-r1 { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes spin-rev-r2 { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spin-rev-r3 { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(-360deg); } }

.orb-node {
  position: absolute;
  transform: translate(-50%,-50%);
  display: flex; flex-direction: column;
  align-items: center; gap: 5px;
  cursor: default;
}
.orb-ball {
  border-radius: 50%;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  position: relative;
}
.orb-ball svg { position: relative; z-index: 2; }

/* ── Flat planets ──────────────────────────────────────────────────
   Pure flat black discs. Light drop shadow for separation from the
   paper background — no gradient, no highlight, no halo.
*/
.orb-ball.planet {
  background: var(--ink);
  border: none;
}

/* ── Flat moons (decorative satellites in r3) ──────────────────────
   Translucent black discs. Different alphas give size hierarchy
   without breaking the monochrome scheme.
*/
.orb-ball.moon {
  background: rgba(0,0,0,0.30);
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: none;
}
.orb-ball.moon--lg { background: rgba(0,0,0,0.36); border-color: rgba(0,0,0,0.18); }
.orb-ball.moon--md { background: rgba(0,0,0,0.26); border-color: rgba(0,0,0,0.13); }
.orb-ball.moon--sm { background: rgba(0,0,0,0.16); border-color: rgba(0,0,0,0.10); }
.orb-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
  background: rgba(243,240,232,0.92);
  padding: 3px 7px; border-radius: 99px;
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

/* ── Connection lines: TOUCH → HOLD → DISCONNECT ────────────────────
   Hairline strokes that draw themselves from center to each planet,
   hold for a beat (the "touch"), then erase from origin (disconnect).
   No glow, no chroma — just the rhythm of contact.

   stroke-dasharray equals the line's max length so the path can be
   fully drawn (offset 0) and fully erased (offset = -length).
*/
.orb-pulse {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 2;
}
.orb-pulse-line {
  fill: none;
  stroke: rgba(0,0,0,0.50);
  stroke-width: 1.2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  opacity: 0;
}
.orb-pulse-dot {
  fill: rgba(0,0,0,0.88);
  opacity: 0;
}

/* r1: single line, 78 units. Cycle 4.4s. */
.r1 .orb-pulse-line {
  stroke-dasharray: 80;
  stroke-dashoffset: 80;
  animation: orb-touch-r1 4.4s cubic-bezier(.4,0,.25,1) infinite;
}
.r1 .orb-pulse-dot {
  animation: orb-dot-touch 4.4s cubic-bezier(.4,0,.25,1) infinite;
}

/* r2: three lines, 148 units each, staggered. Cycle 5.2s. */
.r2 .orb-pulse-line {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: orb-touch-r2 5.2s cubic-bezier(.4,0,.25,1) infinite;
}
.r2 .orb-pulse-dot {
  animation: orb-dot-touch 5.2s cubic-bezier(.4,0,.25,1) infinite;
}
.r2 .orb-pulse-line:nth-of-type(1),
.r2 .orb-pulse-dot:nth-of-type(1)  { animation-delay: 0s;    }
.r2 .orb-pulse-line:nth-of-type(2),
.r2 .orb-pulse-dot:nth-of-type(2)  { animation-delay: -1.7s; }
.r2 .orb-pulse-line:nth-of-type(3),
.r2 .orb-pulse-dot:nth-of-type(3)  { animation-delay: -3.4s; }

@keyframes orb-touch-r1 {
  0%, 22%  { stroke-dashoffset: 80;  opacity: 0;   }
  28%      {                          opacity: 0.7; }
  46%      { stroke-dashoffset: 0;   opacity: 1;   }   /* connected */
  62%      { stroke-dashoffset: 0;   opacity: 1;   }   /* hold */
  82%      { stroke-dashoffset: -80; opacity: 0;   }   /* erased */
  100%     { stroke-dashoffset: -80; opacity: 0;   }
}
@keyframes orb-touch-r2 {
  0%, 22%  { stroke-dashoffset: 150;  opacity: 0;   }
  28%      {                           opacity: 0.7; }
  46%      { stroke-dashoffset: 0;    opacity: 1;   }
  62%      { stroke-dashoffset: 0;    opacity: 1;   }
  82%      { stroke-dashoffset: -150; opacity: 0;   }
  100%     { stroke-dashoffset: -150; opacity: 0;   }
}
@keyframes orb-dot-touch {
  0%, 42%  { opacity: 0; }
  50%      { opacity: 1; }
  62%      { opacity: 1; }
  74%      { opacity: 0; }
  100%     { opacity: 0; }
}

.r1 .orb-node                  { top: 0; left: 50%; }
.r2 .orb-node:nth-child(1)     { top: 0;   left: 50%; }
.r2 .orb-node:nth-child(2)     { top: 50%; left: 100%; }
.r2 .orb-node:nth-child(3)     { top: 100%; left: 50%; }
.r3 .orb-node:nth-child(1)     { top: 0;   left: 50%; }
.r3 .orb-node:nth-child(2)     { top: 50%; left: 100%; }
.r3 .orb-node:nth-child(3)     { top: 100%; left: 50%; }
.r3 .orb-node:nth-child(4)     { top: 50%; left: 0; }

.orb-center {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--ink);
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 0 0 14px rgba(0,0,0,.05),
    0 0 0 32px rgba(0,0,0,.025);
}
.orb-center svg { width: 46px; height: 46px; }

@media(max-width:1060px) {
  .hero { grid-template-columns: 1fr; padding: 110px 28px 64px; }
  .hero-r { height: 400px; }
  .orb-wrap { width: 360px; height: 360px; }
  .orb-ring.r1 { width: 140px; height: 140px; }
  .orb-ring.r2 { width: 240px; height: 240px; }
  .orb-ring.r3 { width: 340px; height: 340px; }
}

@media(max-width:640px) {
  .hero {
    padding: 96px 20px 56px;
    gap: 20px;
    min-height: auto;
  }
  .hero-brand { gap: 12px; margin-bottom: 28px; }
  .hero-brand svg { width: 88px; height: 88px; }
  .hero-brand .hero-wordmark { font-size: 76px; }
  .hero-badge { margin-bottom: 24px; font-size: 10px; padding: 7px 12px; }

  .hero h1 { line-height: .95; margin-bottom: 22px; }

  .hero-sub { margin-bottom: 28px; }

  .hero-cta { gap: 12px; }
  .btn-primary { padding: 14px 22px; font-size: 14px; }
  .btn-ghost { font-size: 13px; }

  .hero-r { height: 320px; }
  .orb-wrap { width: 280px; height: 280px; }
  .orb-ring.r1 { width: 110px; height: 110px; }
  .orb-ring.r2 { width: 190px; height: 190px; }
  .orb-ring.r3 { width: 264px; height: 264px; }
  .orb-center { width: 70px; height: 70px; }
  .orb-center svg { width: 36px; height: 36px; }
  .orb-ball { transform: scale(.85); }
}

@media(max-width:380px) {
  .hero { padding: 90px 16px 48px; }
  .hero-brand svg { width: 72px; height: 72px; }
  .hero-brand .hero-wordmark { font-size: 62px; }
  .hero-r { height: 280px; }
  .orb-wrap { width: 240px; height: 240px; }
  .orb-ring.r1 { width: 96px; height: 96px; }
  .orb-ring.r2 { width: 164px; height: 164px; }
  .orb-ring.r3 { width: 224px; height: 224px; }
  .hero-cta { width: 100%; }
  .btn-primary { width: 100%; justify-content: center; }
}
