/* The home opening, v3 (Oct 30, for review): one picture that keeps changing, four beats.
   1 how fast: the models' circle grows step by step; what most people picture stays small; the space between is the gap
   2 tool to partner: the grown circle meets yours, and the overlap is the partnership
   3 how I help: understand it, prepare for it, create with it
   4 ways in: the three ways under the picture light up
   The circles and the labels that ride on them are placed by hero-v3.js every frame; the rest switches on by time.
   Sizes are in em of the box's container-relative font size (hero.css), so the picture scales as one. */

.hn-box { --hn-on-sym: #0E140C; }
.hn-all { position: absolute; inset: 0; opacity: 1; transition: opacity .35s ease; }
.hn-box.out .hn-all { opacity: 0; }

.hn-title {
  position: absolute; left: 5.5%; right: 5.5%; top: 5.5%; margin: 0;
  font-family: var(--serif); font-weight: 500; font-size: 1.5em; line-height: 1.18; letter-spacing: -.01em;
  color: var(--ink); text-wrap: balance; transform: translateY(.3em);
}
.hn-title.on { transform: none; }
.hn-title em { font-style: italic; color: var(--human-ink); }
.hn-t1 em { display: inline-block; opacity: 0; transform: translateY(.25em); transition: opacity .4s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.hn-t1 em.on { opacity: 1; transform: none; }

.hn-svg { position: absolute; left: 0; top: 17%; width: 100%; height: auto; overflow: visible; }
.hn-a { fill: color-mix(in srgb, var(--human) 18%, transparent); stroke: var(--human); stroke-width: 2.5; }
.hn-m { fill: color-mix(in srgb, var(--ai) 18%, transparent); stroke: var(--ai); stroke-width: 2.5; }
.hn-lens { fill: var(--sym); }
.hn-box.glow .hn-lens { animation: hn-glow 1.4s ease; }
@keyframes hn-glow { 40% { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--sym) 80%, transparent)); } }
.hn-ghost { fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-dasharray: 5 5; }
.hn-gap { fill: url(#hn-hatch); }
#hn-hatch line { stroke: color-mix(in srgb, var(--ai) 55%, transparent); stroke-width: 1.4; }

/* labels: placed at a point by script (left/top), centred on it */
.hn-l { position: absolute; margin: 0; white-space: nowrap; transform: translate(-50%, 0); }
.hz-box .hn-l[data-on] { transition: opacity .4s ease; }
.hn-you { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.15em; color: var(--human-ink); }
.hn-mod { display: grid; justify-items: center; gap: .2em; }
.hn-mod b { font-family: var(--mono); font-weight: 500; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--ai-ink); }
.hn-abs { position: relative; display: block; width: 18em; height: 1.3em; overflow: hidden; }
.hn-ab {
  position: absolute; inset: 0; text-align: center; font-family: var(--mono); font-size: .86em; color: var(--ink);
  opacity: 0; transform: translateY(70%); transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.hn-ab.on { opacity: 1; transform: none; }
.hn-ab.past { opacity: 0; transform: translateY(-70%); }
.hn-ghost-l, .hn-gap-l { padding: .2em .55em; border-radius: .4em; background: var(--paper-2); font-family: var(--mono); }
.hn-ghost-l { font-size: .72em; color: var(--ink); }
.hn-gap-l { transform: translate(-50%, -50%); font-size: .7em; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ai-ink); }
.hn-you2, .hn-mod2 { transform: translate(-100%, -50%); }
.hn-mod2 { transform: translate(0, -50%); font-family: var(--mono); font-weight: 500; font-size: .72em; letter-spacing: .1em; text-transform: uppercase; color: var(--ai-ink); }
.hn-partner { transform: translate(-50%, -50%); font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.05em; color: var(--hn-on-sym); }

/* how I help: three plain cards, one per thing I give you */
.hn-cards { position: absolute; left: 5.5%; right: 5.5%; top: 62%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7em; margin: 0; padding: 0; list-style: none; }
.hn-c {
  display: grid; align-content: start; gap: .4em; padding: .85em .95em 1em; border-radius: .7em;
  background: var(--card); border: 1px solid var(--rule); border-top: .26em solid var(--c); box-shadow: var(--shadow);
  transform: translateY(.7em);
}
.hn-c.on { transform: none; }
.hn-c b { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.18em; line-height: 1.1; color: var(--ci); }
.hn-c span { font-size: .84em; line-height: 1.35; color: var(--ink-2); }
.hn-c1 { --c: var(--ai); --ci: var(--ai-ink); }
.hn-c2 { --c: var(--human); --ci: var(--human-ink); }
.hn-c3 { --c: var(--sym); --ci: var(--sym-ink); }
.hn-down { position: absolute; left: 50%; bottom: 2.5%; margin: 0; font-size: 1.3em; line-height: 1; color: var(--ink-2); transform: translateX(-50%); }
.hn-down.on { animation: hn-bob 1.2s ease-in-out infinite; }
@keyframes hn-bob { 50% { transform: translate(-50%, .25em); } }

/* on a phone: a taller box; the picture sits lower, under a two-line title, and the cards stack */
@container (max-width: 520px) {
  .hn-title { top: 4.5%; font-size: 1.42em; }
  .hn-svg { top: 31%; }
  .hn-cards { top: 55.5%; grid-template-columns: 1fr; gap: .5em; }
  .hn-c { grid-template-columns: 8.2em 1fr; align-items: baseline; gap: .6em; padding: .65em .85em; border-top: 1px solid var(--rule); border-left: .26em solid var(--c); }
  .hn-c span { font-size: .86em; }
  .hn-abs { width: 15em; }
}

@media (prefers-reduced-motion: reduce) {
  .hn-down.on { animation: none; }
}
