/* Home page — one concise scroll on top of site.css.
   Statement hero, a numbered index of what Anjo is, two drawn systems
   (the dream cycle and the mind map), and the research frontier. */
:root {
  --text-statement: clamp(44px, 8.4vw, 112px);
  --text-h2: clamp(30px, 4.6vw, 56px);
  --text-row: clamp(24px, 3vw, 36px);
  --space-section: clamp(88px, 9vw, 152px);
  --duration-slow: 2.8s;
  --status-research: #8fb8c9;
  --status-horizon: #a99cc9;
}

/* hero */
.home-hero { min-height: min(92vh, 900px); display: grid; align-items: center; padding: var(--s12) 0 var(--s10); }
.home-hero .hero-inner { gap: 0; }
.home-hero h1 {
  margin: 0; max-width: 13ch; font-weight: 650; font-size: var(--text-statement);
  line-height: .94; letter-spacing: -0.055em; text-wrap: balance;
}
.home-hero h1 em { font-style: normal; color: var(--accent-2); }
.home-hero .lede { margin-top: var(--s6); max-width: 34ch; text-wrap: pretty; }
.readout {
  margin: var(--s10) auto 0; display: flex; gap: var(--s5); flex-wrap: wrap; justify-content: center;
  font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2);
}
.readout span::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: 1px; opacity: .8; }

/* section heads */
.sect { padding: var(--space-section) 0 0; }
.sect-head { max-width: 920px; margin-bottom: var(--s10); }
.sect-head h2 { margin: var(--s4) 0 0; font-weight: 620; font-size: var(--text-h2); line-height: 1; letter-spacing: -0.045em; text-wrap: balance; }
.sect-head h2 em { font-style: normal; color: var(--muted); }

/* what Anjo is — numbered index */
.index { list-style: none; margin: 0; padding: 0; counter-reset: row; }
.index > li {
  counter-increment: row; display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.1fr);
  gap: var(--s6); padding: var(--s8) 0; border-top: 1px solid var(--line); align-items: start;
}
.index > li::before { content: '0' counter(row); font: 500 12px/2.4 var(--mono); color: var(--accent); letter-spacing: .12em; }
.index h3 { margin: 0; font-weight: 620; font-size: var(--text-row); line-height: 1.04; letter-spacing: -0.035em; }
.index .body p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 48ch; text-wrap: pretty; }
.index .body p + p { margin-top: var(--s3); }
.index .proof-link { display: inline-block; margin-top: var(--s4); font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--accent-2); }
.index .proof-link:hover, .index .proof-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.index > li.wide { grid-template-columns: 72px minmax(0, 1fr); }
.index > li.wide .art { grid-column: 2; margin-top: var(--s4); }

/* dream cycle */
.dream { display: grid; gap: var(--s6); }
.dream .cycle { margin-top: var(--s2); }
.cycle { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.cycle > div { padding: var(--s5); position: relative; }
.cycle > div + div { border-left: 1px solid var(--line); }
.cycle .tier-name { font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.cycle .tier-when { margin-top: 6px; font: 500 11px/1.4 var(--mono); color: var(--muted-2); }
.cycle ol { margin: var(--s4) 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--muted); line-height: 1.5; }
.cycle ol li::before { content: '→ '; color: var(--muted-2); }
.cycle .depth { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); transform-origin: left; }
.cycle > div:nth-child(1) .depth { transform: scaleX(.34); }
.cycle > div:nth-child(2) .depth { transform: scaleX(.67); opacity: .7; }
.cycle > div:nth-child(3) .depth { transform: scaleX(1); opacity: .45; }

/* status chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; border-radius: var(--r-full);
  font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid currentColor; align-self: flex-start;
}
.chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.chip.live { color: var(--accent); }
.chip.research { color: var(--status-research); }
.chip.horizon { color: var(--status-horizon); }
.chip.live::before { animation: beat var(--duration-slow) var(--ease) infinite; }
@keyframes beat { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* mind map */
.mind { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: center; }
.mind-stage {
  position: relative; border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5);
  background: radial-gradient(70% 60% at 50% 45%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%), var(--surface);
}
.mind-stage .stage-head { display: flex; justify-content: space-between; font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted-2); }
.mind-map { display: block; width: 100%; height: auto; margin-top: var(--s3); }
.iw-map-card .mind-map { max-width: 520px; margin: var(--s5) auto 0; }
.mm-edges line { stroke: rgba(232, 205, 146, .16); stroke-width: 1; }
.mm-nodes circle { fill: rgba(242, 239, 233, .5); }
.mm-nodes circle.p0, .mm-nodes circle.p1, .mm-nodes circle.p2 { fill: var(--accent-2); animation: beat var(--duration-slow) var(--ease) infinite; }
.mm-nodes circle.p1 { animation-delay: -.9s; }
.mm-nodes circle.p2 { animation-delay: -1.8s; }
.mm-hub { fill: var(--accent-2); }
.mm-halo { fill: color-mix(in srgb, var(--accent) 22%, transparent); transform-box: fill-box; transform-origin: center; animation: halo 4.2s var(--ease) infinite; }
.mm-r text { font: 500 12px/1 var(--mono); fill: var(--text); letter-spacing: .02em; paint-order: stroke; stroke: var(--canvas); stroke-width: 4px; }
.mm-r.r1 .mm-halo { animation-delay: -.6s; } .mm-r.r2 .mm-halo { animation-delay: -1.2s; }
.mm-r.r3 .mm-halo { animation-delay: -1.8s; } .mm-r.r4 .mm-halo { animation-delay: -2.4s; }
.mm-r.r5 .mm-halo { animation-delay: -3s; } .mm-r.r6 .mm-halo { animation-delay: -3.6s; }
@keyframes halo { 0%, 100% { transform: scale(.6); opacity: .9; } 50% { transform: scale(1.25); opacity: .25; } }

/* frontier */
.frontier { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.frontier li { background: var(--canvas); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s4); transition: background var(--duration-normal, .3s) var(--ease); }
.frontier li:hover { background: #0f0f10; }
.frontier li.span { grid-column: 1 / -1; }
.frontier h3 { margin: 0; font-weight: 620; font-size: clamp(21px, 2.4vw, 28px); line-height: 1.08; letter-spacing: -0.03em; }
.frontier p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 52ch; }
.frontier a.more { margin-top: auto; font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--accent-2); }
.frontier a.more:hover, .frontier a.more:focus-visible { text-decoration: underline; text-underline-offset: 4px; }

/* lab statement */
.lab { max-width: 860px; }
.lab .stmt { margin: var(--s5) 0 0; font-weight: 600; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.14; letter-spacing: -0.035em; text-wrap: pretty; }
.lab .stmt em { font-style: normal; color: var(--accent-2); }
.lab .links { margin-top: var(--s6); display: flex; gap: var(--s6); flex-wrap: wrap; font: 500 12px/1 var(--mono); letter-spacing: .06em; }
.lab .links a { color: var(--accent-2); }
.lab .links a:hover, .lab .links a:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.lab .byline { margin-top: var(--s5); font: 500 12px/1.5 var(--mono); letter-spacing: .03em; color: var(--muted-2); }

/* faq — collapsed by default to keep the scroll short */
.faq { max-width: 760px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--s5) 0; display: flex; justify-content: space-between; gap: var(--s4); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 20px/1 var(--mono); color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.faq details p { margin: 0 0 var(--s5); color: var(--muted); font-size: 15.5px; line-height: 1.62; max-width: 64ch; }
.faq details a { color: var(--accent-2); }

/* closer */
.home-closer { padding: var(--space-section) 0; text-align: center; }
.home-closer h2 { margin: var(--s4) auto 0; max-width: 18ch; font-weight: 640; font-size: var(--text-h2); line-height: 1; letter-spacing: -0.045em; }
.home-closer .btn { margin-top: var(--s6); }
.home-closer .fine { margin: var(--s5) auto 0; max-width: 60ch; font: 500 12px/1.6 var(--mono); letter-spacing: .03em; color: var(--muted-2); }

@media (max-width: 860px) {
  .index > li, .index > li.wide { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s6) 0; }
  .index > li.wide .art { grid-column: 1; }
  .cycle { grid-template-columns: 1fr; }
  .cycle > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .mind, .dream { grid-template-columns: 1fr; gap: var(--s6); }
  .frontier { grid-template-columns: 1fr; }
  .frontier li { padding: var(--s5); }
  .readout { gap: var(--s3) var(--s5); }
}
@media (prefers-reduced-motion: reduce) {
  .chip.live::before, .mm-nodes circle, .mm-halo { animation: none; }
}
