/* ============================================================
   HOME ADDITIONS: handover story, readiness check, play teaser,
   about facts. Loaded on index.html only. Uses tokens from
   styles.css so dark and light themes both work.
   ============================================================ */

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-title { font-size: clamp(32px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.03em; max-width: 20ch; text-wrap: balance; }
.h-title em, .handover em, .res__t em { font-style: italic; color: var(--purple-light); }
[data-theme="light"] .h-title em, [data-theme="light"] .handover em, [data-theme="light"] .res__t em { color: var(--purple-deep); }

/* ── THE HANDOVER (pinned scroll story) ── */
.handover { padding: 0; }
.handover__pin { position: relative; background: var(--bg); height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2vh, 24px); padding: 96px 0 48px; overflow: hidden; }
.handover__head { width: 100%; }
.handover__head .eyebrow { margin-bottom: 20px; }
.captions { position: relative; min-height: calc(clamp(30px, 4vw, 54px) * 2.4); }
.cap { position: absolute; left: 0; top: 0; max-width: 24ch; opacity: 0; font-family: 'DM Serif Display', serif; font-size: clamp(30px, 4vw, 54px); line-height: 1.08; letter-spacing: -0.02em; }
.cap--1 { opacity: 1; }
.scene { width: 100%; max-width: 1320px; height: auto; max-height: 52vh; margin: 0 auto; display: block; overflow: visible; }
.scene .guide { fill: none; stroke: var(--t-quaternary); stroke-width: 2; stroke-dasharray: 4 8; opacity: .5; }
.seg { fill: none; stroke-width: 5; stroke-linecap: round; }
.seg--a { stroke: url(#lineGrad); filter: url(#glow); }
.seg--frag { stroke: var(--purple-light); }
.seg--grey { stroke: var(--t-tertiary); stroke-dasharray: 3 12; stroke-width: 3; }
.node circle { fill: var(--bg); stroke: var(--t-tertiary); stroke-width: 2; transition: fill .4s, stroke .4s; }
.node.is-on circle { fill: var(--purple); stroke: var(--t-primary); }
.node--exec.is-on circle { fill: var(--orange); }
.node text { text-anchor: middle; font-family: 'Inter', sans-serif; }
.node__k { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; fill: var(--t-tertiary); }
.node__t { font-family: 'DM Serif Display', serif !important; font-size: 28px; fill: var(--t-primary); }
.gapmark text { fill: var(--purple-light); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; font-family: 'Inter', sans-serif; }
.gapmark line { stroke: var(--purple-light); stroke-width: 1.5; stroke-dasharray: 2 4; }
[data-theme="light"] .gapmark text { fill: var(--purple-deep); }
[data-theme="light"] .gapmark line { stroke: var(--purple-deep); }
.hex polygon { fill: var(--bg); stroke: url(#hexGradH); stroke-width: 3; }
.hex text { fill: var(--t-primary); font-family: 'DM Serif Display', serif; font-size: 26px; }
.net polygon { fill: var(--elev-3); stroke: var(--purple-light); stroke-opacity: .7; stroke-width: 1.5; }
.net line { stroke: var(--purple); stroke-opacity: .5; stroke-width: 1.5; }
.net text { fill: var(--t-secondary); font-size: 13px; font-family: 'Inter', sans-serif; text-anchor: middle; }
[data-theme="light"] .net polygon { stroke: var(--purple-deep); }
.handover__legend { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; color: var(--t-tertiary); font-size: 13px; width: 100%; }
.handover__legend b { color: var(--t-primary); font-weight: 600; }
.handover__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--border-soft); }
.handover__progress span { display: block; height: 100%; background: var(--gradient); transform-origin: left; transform: scaleX(0); }

/* ── ABOUT FACTS ── */
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; }
.facts li { border-top: 1px solid var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.facts b { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { font-size: 13px; color: var(--t-secondary); line-height: 1.5; }
.about__play { display: inline-flex; margin-top: 20px; }

/* ── READINESS CHECK ── */
.check__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; margin-top: 28px; }
.check .lead { margin-top: 24px; }
.quiz { background: var(--elev-1); border: 1px solid var(--border); border-radius: 20px; padding: clamp(24px, 3vw, 40px); min-height: 380px; box-shadow: var(--shadow-card); }
.q__meta { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--t-tertiary); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.q__bar { height: 3px; border-radius: 3px; background: var(--border-soft); overflow: hidden; margin-bottom: 28px; }
.q__bar span { display: block; height: 100%; background: var(--gradient); transition: width .5s var(--ease-out-fine); }
.q__t { font-family: 'DM Serif Display', serif; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin-bottom: 24px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--elev-2); color: var(--t-primary); font-size: 15px; line-height: 1.45; transition: border-color .25s, background .25s, transform .25s var(--ease-spring); }
.opt:hover { border-color: var(--purple); background: var(--elev-3); transform: translateX(4px); }
.opt:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.res__k { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 14px; }
[data-theme="light"] .res__k { color: var(--purple-deep); }
.res__t { font-family: 'DM Serif Display', serif; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 16px; }
.res__p { color: var(--t-secondary); margin-bottom: 28px; }
.res__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── HERO: "Arielle asks" readiness strip ── */
.ask { margin-top: clamp(40px, 5vw, 64px); padding: clamp(18px, 2vw, 26px) clamp(20px, 2.4vw, 32px); border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(var(--elev-1), var(--elev-1)), var(--bg); box-shadow: var(--shadow-card); }
.ask .quiz__steps:not(:empty), .ask .quiz__result:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: clamp(20px, 3vw, 40px); align-items: center; }
.ask__who { display: flex; gap: 16px; align-items: center; }
.ask__av { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--purple); }
.ask__k { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 6px; }
[data-theme="light"] .ask__k { color: var(--purple-deep); }
.ask__dots { display: inline-flex; gap: 4px; }
.ask__dots i { width: 14px; height: 3px; border-radius: 3px; background: var(--border); }
.ask__dots i.is-done { background: var(--purple); }
.ask__dots i.is-now { background: var(--gradient); width: 22px; }
.ask__q { font-family: 'DM Serif Display', serif; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.2; color: var(--t-primary); }
.ask__q em { font-style: italic; color: var(--purple-light); }
[data-theme="light"] .ask__q em { color: var(--purple-deep); }
.ask .opts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ask .opt { height: 100%; padding: 14px 16px; font-size: 14px; line-height: 1.4; }
.ask .opt:hover { transform: translateY(-2px); }
.ask .res__p { font-size: 15px; margin-bottom: 16px; }
@media (max-width: 1100px) { .ask .quiz__steps:not(:empty), .ask .quiz__result:not([hidden]) { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .ask .opts { grid-template-columns: 1fr; } }

/* ── PLAY TEASER ── */
.play__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; margin-top: 28px; }
.play .lead { margin: 24px 0 32px; }
.play__card { position: relative; display: block; border-radius: 24px; border: 1px solid var(--border); background: linear-gradient(160deg, #120c1c, #0a090d); aspect-ratio: 4/3; overflow: hidden; transition: border-color .3s, transform .4s var(--ease-spring); }
.play__card:hover { border-color: rgba(151,71,239,.7); transform: translateY(-4px); }
.play__card svg { width: 100%; height: 100%; }
.pc__tiles polygon { stroke-width: 1.5; }
.play__badge { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; background: rgba(14,11,20,.85); border: 1px solid var(--border); font-size: 13px; color: #fff; }
.play__badge img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .check__grid, .play__grid { grid-template-columns: 1fr; }
  .handover__legend { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .scene { width: 240%; max-width: none; max-height: none; margin: 0; }
  .captions { min-height: calc(clamp(30px, 4vw, 54px) * 3.6); }
}
@media (prefers-reduced-motion: reduce) {
  .handover__pin { height: auto; padding: var(--section-pad) 0; }
  .captions { min-height: 0; }
  .cap { position: static; opacity: 1; margin-bottom: 1rem; }
  .cap--1, .cap--4 { display: none; }
  .scene { width: 100%; }
}
/* Static fallback when the animation library is unavailable */
.handover.is-static .handover__pin { height: auto; padding: var(--section-pad) 0; }
.handover.is-static .captions { min-height: 0; }
.handover.is-static .cap { position: static; opacity: 1; margin-bottom: 1rem; }
.handover.is-static .cap--1, .handover.is-static .cap--4 { display: none; }
.handover.is-static .scene { width: 100%; }

/* ── MEET (about) ── */
.meet__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.meet__photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/5; border: 1px solid var(--border); margin: 0; }
.meet__photo img { width: 100%; height: 115%; object-fit: cover; object-position: 55% 30%; will-change: transform; }
.meet__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,9,9,0) 55%, rgba(9,9,9,.75)), linear-gradient(135deg, rgba(151,71,239,.18), rgba(250,95,9,.1)); pointer-events: none; }
.meet__sig { position: absolute; left: 24px; bottom: 16px; z-index: 1; font-family: 'DM Serif Display', serif; font-style: italic; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meet .eyebrow { margin-bottom: 20px; }
.meet__title { max-width: 18ch; }
.meet__title em { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.meet__lead { margin-top: 24px; }
.meet__p { color: var(--t-secondary); margin-top: 16px; max-width: 58ch; }
.meet__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .meet__grid { grid-template-columns: 1fr; } .meet__photo { max-width: 520px; } }
