/* ── HOMEPAGE INTERACTIVE LAYER ─────────────────────────────────────────────
   Ported from mock/homepage-concept-b.html. Purely additive: loaded after styles.css, every rule is scoped
   to a homepage class (hero, hr-*, pm-xp, method-card, ladder-card--featured), and nothing here is needed
   for the page to work without JavaScript. Behaviour lives in js/home-interactive.js.
   Domain hues (tuned for the dark sections): Time #C9A85C, Wealth #3ECFA0, Identity #B27BCB, Systems #6FA8FF,
   Relationships #F0907A. */

.hx-time{--c:#C9A85C}.hx-wealth{--c:#3ECFA0}.hx-identity{--c:#B27BCB}.hx-systems{--c:#6FA8FF}.hx-rel{--c:#F0907A}

@property --hx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hx-spin-ang { to { --hx-ang: 360deg; } }
@keyframes hx-spin { to { transform: rotate(360deg); } }
@keyframes hx-blink { 50% { opacity: .25; } }
@keyframes hx-hint { 0% { r: 10; opacity: .6; } 100% { r: 30; opacity: 0; } }
@keyframes hx-shimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }
@keyframes hx-swap { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes hx-tm { to { width: 100%; } }

/* ── Scroll progress ─────────────────────────────────────────────────────── */
#pmProgress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--gold), var(--mint));
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 620px at 84% 8%, rgba(62,207,160,.10), transparent 60%),
    radial-gradient(820px 620px at 4% 98%, rgba(123,63,140,.16), transparent 60%),
    var(--dark);
}
.hero::after {   /* fine blueprint grid, faded to the edges */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 55% 40%, #000 20%, transparent 72%);
          mask-image: radial-gradient(ellipse at 55% 40%, #000 20%, transparent 72%);
}
.hero-aurora {
  position: absolute; width: 900px; height: 900px; left: 50%; top: 8%; margin-left: -250px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(62,207,160,0), rgba(62,207,160,.14), rgba(201,168,92,.12), rgba(123,63,140,.14), rgba(62,207,160,0));
  filter: blur(90px); pointer-events: none; opacity: .9;
}
@media (min-width: 981px) and (hover: hover) { .hero-aurora { animation: hx-spin 40s linear infinite; } }
@media (max-width: 980px) { .hero-aurora { display: none; } }

.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 3rem; align-items: center;
  text-align: left; margin-bottom: 3.5rem;
}
.hero-copy .section-eye { justify-content: flex-start; }
.hero-copy .hero-h1 { font-size: clamp(44px, 5.2vw, 78px); }
.hero-copy .hero-sub { margin-left: 0; margin-right: 0; }
.hero-copy .hero-btns { justify-content: flex-start; margin-bottom: 0; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-h1 em {
    background: linear-gradient(100deg, #C9A85C 20%, #fff3cf 46%, #E8C87A 54%, #C9A85C 80%);
    background-size: 230% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: hx-shimmer 8s ease-in-out infinite;
  }
}
.hero .btn-dark { transition: background var(--transition), transform .25s ease-out, box-shadow .3s; box-shadow: 0 10px 40px -14px rgba(62,207,160,.55); }
.hero .btn-dark:hover { box-shadow: 0 0 0 6px rgba(62,207,160,.14), 0 18px 50px -14px rgba(62,207,160,.7); }

/* Radar card */
.hr-card {
  position: relative; border-radius: 28px; padding: 1.3rem 1.3rem 1.1rem; color: #FAF8F4; text-align: left;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.09);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.08);
}
.hr-card::before {   /* travelling gold/mint light on the border */
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hx-ang), transparent 0 72%, rgba(62,207,160,.75), rgba(232,200,122,.8), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hx-spin-ang 9s linear infinite;
}
.hr-head { display: flex; justify-content: space-between; align-items: center; padding: 0 .3rem; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,248,244,.5); }
.hr-live { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.hr-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: hx-blink 1.8s infinite; }
.hr-svg { display: block; width: 100%; height: auto; max-width: 540px; margin: 0 auto; aspect-ratio: 510 / 400; overflow: visible; touch-action: none; }
.hr-svg .ring { fill: none; stroke: rgba(255,255,255,.08); }
.hr-svg .axis { stroke: rgba(255,255,255,.1); }
.hr-svg .tick { stroke: rgba(255,255,255,.18); }
.hr-svg .tick.m { stroke: rgba(232,200,122,.5); }
.hr-svg .orbit { fill: none; stroke: url(#hrOg); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 90 1104; transform-origin: 200px 200px; animation: hx-spin 16s linear infinite; }
.hr-svg .mk { fill: var(--c); opacity: .55; transition: opacity .25s, r .25s; }
.hr-svg .mk.hot { opacity: 1; r: 5; }
.hr-svg .area { fill: url(#hrRg); stroke: #E8C87A; stroke-width: 1.6; filter: drop-shadow(0 0 14px rgba(232,200,122,.3)); }
.hr-svg .lab { font: 500 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; fill: rgba(250,248,244,.66); transition: fill .2s; }
.hr-svg .lab.hot { fill: #fff; }
.hr-svg .h { cursor: grab; outline: none; }
.hr-svg .h:active { cursor: grabbing; }
.hr-svg .h .core { fill: var(--c); stroke: #0D1117; stroke-width: 3; }
.hr-svg .h .halo { fill: var(--c); opacity: .22; transition: r .25s, opacity .25s; }
.hr-svg .h:hover .halo, .hr-svg .h:focus-visible .halo { r: 19; opacity: .4; }
.hr-svg .h.hint .halo { animation: hx-hint 1.9s ease-out infinite; }
.hr-svg text.v { font: 500 10px var(--sans); fill: var(--c); text-anchor: middle; }
.hr-presets { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: .1rem 0 .7rem; }
.hr-presets button {
  font: 400 12px var(--sans); letter-spacing: .06em; padding: 7px 15px; border-radius: 99px; cursor: pointer;
  background: none; border: 1px solid rgba(255,255,255,.12); color: rgba(250,248,244,.72); transition: all .25s;
}
.hr-presets button:hover { border-color: var(--gold); color: #fff; }
.hr-presets button.on { background: rgba(201,168,92,.16); border-color: var(--gold); color: #E8C87A; }
.hr-read { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: center; padding: .85rem 1rem; border-radius: 16px; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.08); }
.hr-big { font-family: var(--serif); font-size: 52px; line-height: 1; color: #E8C87A; min-width: 2.1ch; text-align: center; }
.hr-big small { display: block; font: 500 9px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(250,248,244,.5); margin-top: 6px; }
.hr-read p { font-size: 13px; line-height: 1.55; color: rgba(250,248,244,.7); margin: 0; }
.hr-read p b { color: #fff; font-weight: 500; }
.hr-disc { font-size: 11px; color: rgba(250,248,244,.5); text-align: center; margin: .7rem 0 0; }

/* The existing five-domain strip lights up with the radar axis it belongs to */
.hero-domain-item { transition: background .2s, border-top-color .2s; }
.hero-domain-item.hot { background: rgba(255,255,255,.05); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
  .hero-copy .hero-btns { margin-bottom: 0; }
  .hr-card::before { animation: none; }
}
@media (max-width: 560px) {
  .hr-card { padding: 1rem .9rem .9rem; border-radius: 22px; }
  .hr-big { font-size: 42px; }
  /* the SVG scales down to ~2/3 on a phone, so enlarge its text to stay readable */
  .hr-svg .lab { font-size: 13px; letter-spacing: .06em; }
  .hr-svg text.v { font-size: 12px; }
}

/* ── "WHAT YOU WILL KNOW": domain explorer (cards below stay in the DOM, shown if JS is off) ── */
.wyk-grid.is-enhanced { grid-template-columns: 1fr; }
.wyk-grid.is-enhanced .wyk-card:not(.wyk-card--quote) { display: none; }
.pm-xp { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: stretch; margin: 0 0 3rem; }
.pm-tabs { display: flex; flex-direction: column; gap: 10px; }
.pm-tab {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 1.05rem 1.3rem; border-radius: 16px; color: #f0ebe0; font-family: var(--sans);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); transition: all .3s;
}
.pm-tab .n { font-family: var(--serif); font-size: 15px; color: rgba(250,248,244,.45); width: 2ch; }
.pm-tab .t { display: block; font-family: var(--serif); font-size: 25px; line-height: 1.1; }
.pm-tab .s { display: block; font-size: 12px; line-height: 1.4; margin-top: 2px; color: rgba(250,248,244,.5); }
.pm-tab:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateX(5px); }
.pm-tab[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, rgba(255,255,255,.03)); transform: translateX(10px); }
.pm-tab[aria-selected="true"] .n { color: var(--c); }
.pm-tab .tm { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--c); }
.pm-tab[aria-selected="true"] .tm.run { animation: hx-tm 7s linear forwards; }
.pm-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; min-height: 380px;
  padding: 2.6rem; border-radius: 28px; border: 1px solid rgba(255,255,255,.09); color: #FAF8F4; transition: background .5s;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, #12161f), #0e121a 70%);
}
.pm-panel::before { content: ''; position: absolute; right: -90px; top: -90px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 36%, transparent), transparent 65%); filter: blur(10px); }
.pm-rings { position: absolute; right: -30px; top: -30px; width: 300px; height: 300px; pointer-events: none; }
.pm-rings circle { fill: none; stroke: var(--c); stroke-opacity: .3; }
.pm-rings .sweep { transform-origin: 150px 150px; animation: hx-spin 9s linear infinite; stroke-opacity: .9; stroke-dasharray: 60 400; stroke-linecap: round; stroke-width: 2; }
.pm-ghost { position: absolute; left: 1.6rem; bottom: -1.6rem; font-family: var(--serif); font-size: 200px; line-height: 1; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--c) 28%, transparent); pointer-events: none; }
.pm-panel .tag { position: relative; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--c); margin: 0 0 1rem; }
.pm-panel h3 { position: relative; font-family: var(--serif); font-weight: 400; line-height: 1.08; font-size: clamp(30px, 3.4vw, 46px); max-width: 15em; margin: 0 0 1.1rem; }
.pm-panel p.b { position: relative; font-size: 16px; line-height: 1.75; color: rgba(250,248,244,.7); max-width: 34em; margin: 0; }
.pm-panel .swap { animation: hx-swap .6s cubic-bezier(.2,.7,.2,1); }
@media (max-width: 900px) {
  .pm-xp { grid-template-columns: 1fr; }
  .pm-tab:hover, .pm-tab[aria-selected="true"] { transform: none; }
  .pm-panel { padding: 1.8rem; min-height: 320px; }
  .pm-ghost { font-size: 150px; }
}

/* ── METHOD CARDS: tilt toward the cursor, light follows it ─────────────── */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .method-card {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .25s ease-out, border-color .3s, box-shadow .3s;
  }
  .method-card:hover { border-color: rgba(201,168,92,.55); box-shadow: 0 24px 50px -30px rgba(26,24,20,.35); }
  .method-card::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(232,200,122,.2), transparent 55%);
  }
  .method-card:hover::after { opacity: 1; }
}

/* ── LADDER: the featured step gets the travelling light ────────────────── */
.ladder-card { transition: transform .35s, border-color .35s; }
.ladder-card:hover { transform: translateY(-4px); }
.ladder-card--featured::after {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--hx-ang), transparent 0 72%, rgba(62,207,160,.75), rgba(232,200,122,.8), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hx-spin-ang 9s linear infinite;
}

/* ── Reveal on scroll (only applied by JS, and only to blocks below the fold) ── */
.pm-rv { opacity: 0; translate: 0 22px; transition: opacity .9s cubic-bezier(.2,.7,.2,1), translate .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--pm-d, 0s); }
.pm-rv.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  .pm-rv { opacity: 1; translate: none; }
  .hero-h1 em { animation: none; }
}
