/* 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-family: 'Geist', sans-serif; font-weight: 600; 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; }
}

/* Homepage information architecture; inherit the existing Anjo visual system. */
.home-nav {
  max-width: none; width: 100%; padding: 0; display: block;
  background: rgba(0, 0, 0, .96); border-bottom: 1px solid var(--line);
  isolation: isolate;
}
.home-nav-inner {
  max-width: var(--w); margin: 0 auto; padding: 18px var(--s5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s5); flex-wrap: wrap;
}
main section[id] { scroll-margin-top: 96px; }
.home-nav-groups { display: flex; gap: var(--s5); margin-left: auto; }
.nav-group { position: relative; }
.nav-group summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.nav-group summary:hover, .nav-group[open] summary { color: var(--text); }
.nav-menu { position: absolute; top: calc(100% + 16px); left: -16px; width: 240px; padding: var(--s4); background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: 0 12px 32px #0006; }
.nav-menu a { display: block; padding: 8px; font-size: 14px; color: var(--muted); }
.nav-menu a:hover { color: var(--text); background: var(--surface-2); }
.home-membership { padding-top: var(--s8); }
.home-membership .inception-badge { margin: 0; }
.home-index { position: static; display: grid; grid-template-columns: repeat(4, 1fr); padding-top: var(--s8); padding-bottom: 0; gap: var(--s5); backdrop-filter: none; z-index: auto; }
.home-index a { display: flex; gap: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s4); font: 500 11px/1.6 var(--mono); color: var(--muted-2); }
.home-index span { color: var(--muted); }
.home-index a:hover span { color: var(--accent-2); }
.home-footer-index { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: var(--s6); text-align: left; padding-bottom: var(--s8); }
.home-footer-index h2 { font: 500 11px/1.5 var(--mono); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 var(--s4); color: var(--muted-2); }
.home-footer-index a:not(.brand) { display: block; color: var(--muted); font-size: 13px; padding: 5px 0; }
.home-footer-index a:hover { color: var(--text); }
.home-footer-index p { color: var(--muted); font-size: 14px; max-width: 22ch; }
@media (max-width: 700px) {
 .home-nav-inner { gap: var(--s4); }
 main section[id] { scroll-margin-top: 144px; }
 .home-nav-groups { order: 3; width: 100%; justify-content: space-between; }
 .home-nav-inner > .btn { margin-left: auto; }
 .nav-menu { width: min(240px, 85vw); }
 .nav-group:nth-child(2) .nav-menu { left: 50%; transform: translateX(-50%); }
 .nav-group:last-child .nav-menu { left: auto; right: 0; }
 .home-index { grid-template-columns: repeat(2, 1fr); }
 .home-footer-index { grid-template-columns: repeat(2, 1fr); }
 .home-footer-index > div:first-child { grid-column: 1 / -1; }
}

/* Membership logos share the page background. */
.home-membership { text-align: center; }
.home-membership .inception-label { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.membership-logos { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s8); margin-top: var(--s5); }
.membership-logos img { display: block; max-width: 100%; }
.google-startups-logo { display: block; width: min(310px, 75vw); height: auto; }

/* Black slat field, retaining motion and neutral highlights. */
.home-hero { background: #000; }
.home-hero #hero-pigment { background: #000; filter: grayscale(1); }

.home-hero .hero-actions .btn-ghost { background: #000; }

/* Gradient ASCII trial: color character field over black. */
.home-hero #hero-pigment canvas.ascii-field { position: absolute; inset: 0; width: 100%; height: 100%; }
.home-hero #hero-pigment.ready { opacity: .85; }

.home-hero #hero-pigment { filter: none; }

/* Give the homepage a more expansive scroll and breathing room. */
:root { --space-section: clamp(112px, 12vw, 192px); }
.home-hero { min-height: 0; padding-top: clamp(112px, 12vh, 176px); padding-bottom: var(--s6); }
.home-membership { padding-top: var(--s5); padding-bottom: var(--s6); }
.home-closer { padding-top: var(--space-section); padding-bottom: var(--space-section); }
@media (max-width: 700px) {
  .home-hero { min-height: 0; padding-top: 96px; padding-bottom: var(--s6); }
}

.home-hero h1 { color: #fff; }

.home-hero .hero-actions { margin-top: var(--s8); }
.section-intro { margin: var(--s5) 0 0; max-width: 58ch; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }

.home-hero .lede { font-family: "SF Mono", SFMono-Regular, Menlo, monospace; font-size: clamp(15px, 1.5vw, 18px); max-width: 100%; margin-top: var(--s8); letter-spacing: 0; }

.home-hero .hero-actions .btn {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  color: #f5f5f5;
  box-shadow: 0 10px 24px -14px rgba(0,0,0,.45);
  transition: transform .25s ease, background .25s ease;
}
.home-hero .hero-actions .btn::before {
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(90px circle at var(--shine-x, 15%) var(--shine-y, 0%), rgba(255,255,255,.9), transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .5;
  transition: opacity .25s ease;
}
.home-hero .hero-actions .btn:hover { background: rgba(255,255,255,.08); }
.home-hero .hero-actions .btn:hover::before { opacity: 1; }
.home-hero .hero-actions .btn:active { transform: scale(.97); }
.home-hero .hero-actions .btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-actions .btn, .home-hero .hero-actions .btn::before { transition: none; }
}
