/* AERTHEIX · What it answers · dark-green hero "Light rises" and the six-benefit index. Namespace ah-.
   Tokens come from the page (--field, --forest-deep, --gold-light, --on-dark-*, --fs-*). No new font sizes.
   Everything is readable with scripts off; hero-light.js only draws the light and reveals the text. */

/* The page header is fixed (100px tall, 77px on phones; --header-h understates it); the dark field starts beneath it
   so the translucent header sits on the page, not on the green. */
body[data-page="what-it-answers"] #promise.ah-hero{padding:100px 0 0}

.ah-dark{position:relative;isolation:isolate;overflow:hidden;color:var(--on-dark-body);
  background:radial-gradient(70% 46% at 50% 26%,#1B4A3A 0%,#12342A 48%,#0A1F18 100%)}
.ah-dark::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(104deg,transparent 18%,rgba(212,188,132,.05) 24%,transparent 31%),linear-gradient(112deg,transparent 52%,rgba(212,188,132,.045) 58%,transparent 66%),linear-gradient(98deg,transparent 70%,rgba(255,255,255,.03) 75%,transparent 82%)}

/* ---- stage ---- */
.ah-stage{position:relative;z-index:1}
.ah-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:radial-gradient(120% 90% at 50% 45%,transparent 55%,rgba(3,12,9,.5) 100%)}
.ah-canvas{position:absolute;inset:0;z-index:2;display:block;width:100%;height:100%;pointer-events:none}
.ah-content{position:relative;z-index:3;padding-top:clamp(28px,5vh,76px);padding-bottom:clamp(26px,3.6vh,46px)}

/* scripts off or canvas unavailable: a still cone of light stands in */
.ah-stage::before{content:"";position:absolute;left:50%;top:22px;z-index:0;width:min(74%,820px);height:68%;transform:translateX(-50%);pointer-events:none;
  clip-path:polygon(50% 0,0 100%,100% 100%);background:linear-gradient(180deg,rgba(255,232,170,.2),rgba(230,186,96,.08) 55%,rgba(212,160,60,0))}
.ah-stage.is-live::before{display:none}

body[data-page="what-it-answers"] #promise .ah-stage .ans-eyebrow{display:inline-block;color:var(--gold-light);margin-bottom:22px}
body[data-page="what-it-answers"] #promise .ah-stage h1{margin:0 auto;font:500 var(--ans-display)/1.05 var(--sans);letter-spacing:-.05em;color:#F7F4EE;text-shadow:0 2px 30px rgba(5,18,14,.55)}
body[data-page="what-it-answers"] #promise .ah-stage h1 em{display:block;font:italic 400 1em/1.08 var(--display);letter-spacing:-.03em;color:var(--gold-light)}
body[data-page="what-it-answers"] #promise .ah-stage .ans-hero-intro{max-width:52ch;margin:24px auto 0;color:var(--on-dark-body);font-size:var(--fs-lead)}
.ah-zone{height:clamp(180px,28vh,360px)}

/* the three readings, lit by the A's feet and apex */
body[data-page="what-it-answers"] #promise .ah-stage .ans-return{width:min(780px,100%);margin:0 auto}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div{--g:.3;position:relative;padding:6px 22px 14px;border-right:0;border-left:1px solid rgba(212,188,132,.2)}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div:first-child{border-left:0}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div::after{content:"";position:absolute;left:22px;right:22px;bottom:0;height:2px;border-radius:2px;
  background:linear-gradient(90deg,var(--gold-light),transparent);opacity:calc(.12 + var(--g)*.88);transform-origin:0 50%;transform:scaleX(calc(.25 + var(--g)*.75))}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return .ans-icon{color:var(--gold-light);opacity:calc(.6 + var(--g)*.4);filter:drop-shadow(0 0 calc(var(--g)*9px) rgba(230,184,79,calc(var(--g)*.9)))}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return strong{color:#fff;text-shadow:0 0 calc(var(--g)*16px) rgba(230,184,79,calc(var(--g)*.7))}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return p{color:var(--on-dark-fine)}
body[data-page="what-it-answers"] #promise .ah-stage .ans-loop-note{margin-top:22px!important;color:var(--on-dark-fine)}
body[data-page="what-it-answers"] #promise .ah-stage .ans-loop-note .ans-icon{color:var(--gold-light)}

/* each reading links to the chapter that shows it; the whole cell is the target */
.ah-read-link{display:inline-block;margin-top:10px;color:var(--gold-light);font:600 var(--fs-fine)/1.3 var(--sans);letter-spacing:.06em;text-decoration:none}
.ah-read-link::after{content:"";position:absolute;inset:0}
.ah-read-link span[aria-hidden]{display:inline-block;transition:transform .25s ease}
.ah-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ah-read-link:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px;border-radius:2px}
body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div:has(.ah-read-link:focus-visible){--g:1!important}
@media(hover:hover){
  body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div:hover{--g:1!important}
  .ans-return>div:hover .ah-read-link span[aria-hidden]{transform:translateX(4px)}
}

/* ---- entrance: the text exists; the stage only reveals it ---- */
html.ah-js .ah-stage .ans-eyebrow,html.ah-js .ah-stage h1,html.ah-js .ah-stage .ans-hero-intro,html.ah-js .ah-stage .ans-return,html.ah-js .ah-stage .ans-loop-note{
  opacity:0;transform:translateY(14px);filter:blur(7px);
  transition:opacity .9s ease,transform .9s cubic-bezier(.2,.7,.2,1),filter .9s ease}
html.ah-js .ah-stage.s1 .ans-eyebrow,html.ah-js .ah-stage.s1 h1{opacity:1;transform:none;filter:none}
html.ah-js .ah-stage.s1 h1{transition-delay:.12s}
html.ah-js .ah-stage.s2 .ans-hero-intro,html.ah-js .ah-stage.s2 .ans-return,html.ah-js .ah-stage.s2 .ans-loop-note{opacity:1;transform:none;filter:none}
html.ah-js .ah-stage.s2 .ans-return{transition-delay:.1s}
html.ah-js .ah-stage.s2 .ans-loop-note{transition-delay:.2s}
html.ah-js .ah-stage.ah-instant *{transition:none!important}

/* if the script never runs, show the text anyway after 5s */
@keyframes ah-rescue{to{opacity:1;transform:none;filter:none}}
html.ah-js .ah-stage:not(.s1) .ans-eyebrow,html.ah-js .ah-stage:not(.s1) h1{animation:ah-rescue .6s ease 5s forwards}
html.ah-js .ah-stage:not(.s2) .ans-hero-intro,html.ah-js .ah-stage:not(.s2) .ans-return,html.ah-js .ah-stage:not(.s2) .ans-loop-note{animation:ah-rescue .6s ease 5.2s forwards}

/* ---- the six benefits: the page's index, one card per chapter ---- */
.ah-index{position:relative;z-index:1;padding:clamp(12px,2vw,26px) 0 clamp(48px,6vw,84px)}
.ah-index-title{margin:0 0 clamp(16px,2vw,26px);text-align:center;color:var(--on-dark-fine);font:600 var(--fs-fine)/1.4 var(--sans);letter-spacing:.14em;text-transform:uppercase}
.ah-cards{list-style:none;margin:0 auto;padding:0;width:min(100% - 2*var(--gutter),var(--max));display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(10px,1.2vw,18px)}
.ah-cards>li{min-width:0}
.ah-card{position:relative;display:block;aspect-ratio:4/5;border-radius:6px;overflow:hidden;isolation:isolate;color:#fff;text-decoration:none;background:var(--field-2);
  box-shadow:inset 0 0 0 1px rgba(212,188,132,.18),0 26px 40px -28px rgba(0,0,0,.75);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s ease}
.ah-card img{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover;object-position:var(--crop,50% 40%);opacity:.74;filter:saturate(.85);transition:transform .7s cubic-bezier(.2,.7,.2,1),opacity .35s ease}
.ah-card::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(8,25,19,.16) 0%,rgba(8,25,19,0) 28%,rgba(8,25,19,.9) 100%)}
.ah-card-label{position:absolute;left:16px;right:14px;bottom:16px}
.ah-card-label small{display:block;margin-bottom:6px;color:var(--gold-light);font:600 var(--fs-fine)/1.3 var(--sans);letter-spacing:.12em}
.ah-card-label strong{display:block;font:500 var(--fs-body)/1.25 var(--sans);letter-spacing:-.015em}
.ah-card-arrow{position:absolute;top:12px;right:14px;color:var(--gold-light);font:400 var(--fs-body)/1 var(--sans);opacity:0;transform:translate(-4px,4px);transition:opacity .3s,transform .3s}
.ah-card:focus-visible{outline:2px solid var(--gold-light);outline-offset:4px}
.ah-card:focus-visible .ah-card-arrow{opacity:1;transform:none}
@media(hover:hover){
  .ah-card:hover{transform:translateY(-6px);box-shadow:inset 0 0 0 1px rgba(212,188,132,.5),0 34px 46px -26px rgba(0,0,0,.8)}
  .ah-card:hover img{transform:scale(1.045);opacity:.95}
  .ah-card:hover .ah-card-arrow{opacity:1;transform:none}
}

@media(max-width:1099px){
  .ah-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
  .ah-card{aspect-ratio:5/4}
}
@media(max-width:760px){
  body[data-page="what-it-answers"] #promise.ah-hero{padding-top:77px}
  body[data-page="what-it-answers"] #promise .ah-stage .ans-return{width:min(340px,100%)}
  body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div{display:flex;text-align:left;border-left:0;padding:10px 4px 14px}
  body[data-page="what-it-answers"] #promise .ah-stage .ans-return>div::after{left:4px;right:4px}
  .ah-zone{height:210px}
  .ah-content{padding-bottom:26px}
  /* a row you swipe, snapping to a card */
  .ah-cards{display:flex;width:100%;overflow-x:auto;gap:12px;padding:6px var(--gutter) 14px;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:var(--gold) transparent;-webkit-overflow-scrolling:touch}
  .ah-cards>li{flex:0 0 min(62vw,230px);scroll-snap-align:center}
  .ah-card{aspect-ratio:4/5}
}
@media(prefers-reduced-motion:reduce){
  html.ah-js .ah-stage .ans-eyebrow,html.ah-js .ah-stage h1,html.ah-js .ah-stage .ans-hero-intro,html.ah-js .ah-stage .ans-return,html.ah-js .ah-stage .ans-loop-note{opacity:1!important;transform:none!important;filter:none!important;transition:none!important;animation:none!important}
  .ah-card,.ah-card img,.ah-card-arrow{transition:none}
}
@media print{.ah-canvas{display:none}}
