/* CodeFlow · home.css — homepage-only styles (hero). Shared components live in style.css. */

/* ------------------------------------------------------------------ hero */
.hero { position: relative; padding: calc(var(--header-h) + clamp(20px, 4vh, 56px)) 0 clamp(28px, 4vw, 52px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(16px, 3vw, 48px);
}
.hero-title {
  --h1: clamp(2.7rem, 6.2vw, 6rem);
  margin: 22px 0 26px;
  font: 800 var(--h1)/.93 var(--font-display); letter-spacing: -.038em;
}
.ln { display: block; overflow: hidden; padding: .06em .08em .1em; margin: -.06em -.08em -.1em; }
.ln-in { display: inline-block; transform-origin: 0 100%; }
.ln--indent .ln-in { margin-left: 1.15em; }
.ln--indent2 .ln-in { margin-left: .55em; }
.tokens { display: inline-flex; align-items: flex-end; gap: .07em; margin-left: .2em; vertical-align: baseline; }
.tk { display: block; width: .6em; height: .6em; cursor: pointer; }
.tk-c { border-radius: 50%; background: var(--coral); }
.tk-s { background: var(--cobalt); }
.tk-h { width: .3em; border-radius: 999px 0 0 999px; background: var(--sun); transform-origin: 100% 50%; }
.hero-lead { max-width: 34rem; font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.6; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-visual { position: relative; }
.hero-art { display: block; width: 100%; height: auto; overflow: visible; }
.h-hit { cursor: pointer; }
.h-orbit-path { visibility: hidden; }
.h-caret { animation: blink 1s steps(1) infinite; }
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: clamp(20px, 3vw, 40px); }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; font-size: .92rem; text-decoration: none; }
.scroll-capsule { position: relative; width: 24px; height: 38px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink); }
.scroll-capsule i {
  position: absolute; left: 7px; top: 6px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--coral); animation: cue 1.8s cubic-bezier(.5, 0, .5, 1) infinite;
}
@keyframes cue { 0% { transform: translateY(0); } 45% { transform: translateY(16px) scale(1.05, .85); } 55% { transform: translateY(16px); } 100% { transform: translateY(0); } }
.hero-note { max-width: 30rem; font-size: .95rem; color: var(--ink-2); text-align: right; }
.hero-hint { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--paper-2); font-size: .88rem; font-weight: 600; }
.hero-hint svg { width: 12px; height: auto; flex: none; animation: hint-tap 2.4s var(--ease-spring) infinite; transform-origin: 0 0; }
@keyframes hint-tap { 0%, 60%, 100% { transform: translate(0, 0) scale(1); } 70% { transform: translate(2px, 2px) scale(.82); } 80% { transform: translate(0, 0) scale(1); } }
.hero-visual { cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* hide-before-reveal (home.js reveals these; failsafe in <head> removes .js) */
.js .hero-title, .js .hero-art, .js [data-hero-pop], .js [data-hero-fade] { visibility: hidden; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; width: 100%; margin: 8px auto 0; }
  .hero-title { --h1: clamp(2.7rem, 10.2vw, 5.8rem); }
}

@media (max-width: 720px) {
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-note { text-align: left; }
}

@media (max-width: 600px) {
  .hero-title { --h1: 12.3vw; margin-top: 18px; }
  .ln--indent .ln-in { margin-left: .9em; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: space-between; }
  .hero-ctas .btn--line { justify-content: center; }
  .hero-hint { order: 3; }
}
