/* ==========================================================
   Elisio — home.css  (index.html only)
   Hero orb + lit headline, ticker, both-sides, creed, steps,
   verticals bento, numbers band, private roster, testimonial.
   ========================================================== */

/* ========== HERO ========== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero__inner { position: relative; }
.hero__label { margin-bottom: clamp(16px, 2vw, 28px); }

.hero__title {
  font-size: min(var(--fs-display), 12.6vw);
  max-width: 11ch;
  color: var(--text);
}
.hero__line {
  display: block;
  width: fit-content;
  padding-bottom: 0.06em;    /* keeps descenders inside the clipped background */
}
/* The orb lights the type. orb.js feeds each line its own
   --lx/--ly (orb centre relative to the line box). The
   defaults keep a warm edge on the right without JS. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__line {
    background-image: radial-gradient(
      circle var(--lr, 620px) at var(--lx, 125%) var(--ly, 40%),
      #FFF1DA 0%, #FFC266 15%, #EBA9BE 31%, #C9B8FF 52%, #EAE5FF 74%, #F1EEFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5) var(--s-6);
  margin-top: clamp(32px, 4.5vw, 60px);
}
.hero__proof {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 20px 10px 10px;
  border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.hero__proof-fig {
  display: inline-grid;
  place-items: center;
  min-width: 84px;
  height: 44px;
  padding-inline: 14px;
  border-radius: var(--r-pill);
  background: var(--amber-wash);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.hero__proof-cap {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-2);
  max-width: 22ch;
}

/* The one orchestrated load moment */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__canvas { animation: orb-in 1.8s var(--ease-out) both 0.1s; }
  .js .hero__label,
  .js .hero__line,
  .js .hero__foot { animation: rise 0.9s var(--ease-out) both; }
  .js .hero__line:nth-child(1) { animation-delay: 0.10s; }
  .js .hero__line:nth-child(2) { animation-delay: 0.20s; }
  .js .hero__line:nth-child(3) { animation-delay: 0.30s; }
  .js .hero__foot { animation-delay: 0.45s; }
}
@keyframes orb-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 899px) {
  /* One full screen, like desktop: the ticker starts exactly at the fold and never
     peeks in. The orb zone above the copy flexes with the screen height (~470px is
     the copy block + header), so short phones still show the whole hero. */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: flex-end;
    padding-top: calc(var(--header-h) + clamp(160px, calc(100vh - 470px), 380px));
    padding-top: calc(var(--header-h) + clamp(160px, calc(100svh - 470px), 380px));
    padding-bottom: 44px;
  }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .hero__foot .btn { justify-content: space-between; width: min(100%, 440px); }
  .hero__proof { align-self: flex-start; }
}
@media (min-width: 900px) and (max-height: 640px) {
  .hero { min-height: 640px; }
}

/* ========== TICKER ========== */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(20, 16, 48, 0.6);
  padding-block: 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__set {
  display: flex;
  flex-shrink: 0;
  list-style: none;
  padding: 0;
}
.ticker__set li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  letter-spacing: -0.01em;
  color: var(--text-2);
}
.ticker__set li::after {
  content: '';
  width: 7px; height: 7px;
  margin-inline: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE3B8, #9A82F6 70%);
}
.ticker__set li.is-money { color: var(--amber); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; width: auto; padding-inline: var(--pad); }
  .ticker__set { flex-wrap: wrap; row-gap: 10px; flex-shrink: 1; min-width: 0; }
  .ticker__set li:last-child::after { display: none; }
  .ticker__set[aria-hidden="true"] { display: none; }
}

/* ========== BOTH SIDES ========== */
.sides__grid {
  display: grid;
  gap: var(--s-7) var(--s-8);
}
.sides__title { max-width: 17ch; }
.sides__list { display: grid; }
.sides__row {
  display: grid;
  gap: 6px;
  padding-block: var(--s-5);
  border-top: 1px solid var(--line-2);
}
.sides__row:last-child { border-bottom: 1px solid var(--line-2); }
.sides__row dt { font-weight: 700; font-size: var(--fs-small); color: var(--lilac); }
.sides__row dd {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}
.sides__close {
  font-size: var(--fs-lede);
  font-weight: 600;
  color: var(--text-2);
}
@media (min-width: 900px) {
  .sides__grid { grid-template-columns: 1fr 1.05fr; align-items: start; }
  .sides__close { grid-column: 2; }
}

/* ========== CREED (how we see it) ========== */
.creed__label { display: block; margin-bottom: var(--s-6); }
.creed__pair {
  display: grid;
  gap: var(--s-5) var(--s-8);
}
.creed__them,
.creed__us {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.875rem, 3.6vw, 3.125rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.creed__them { color: var(--text-3); }
.creed__us {
  position: relative;
  color: var(--text);
}
.creed__us::before {             /* the principal stands in the light */
  content: '';
  position: absolute;
  z-index: -1;
  left: -12%; top: -60%;
  width: 70%; height: 220%;
  background: radial-gradient(closest-side, rgba(139, 115, 242, 0.28), transparent);
  pointer-events: none;
}
.creed__body {
  margin-top: var(--s-7);
  max-width: 58ch;
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--text-2);
}
@media (min-width: 900px) {
  .creed__pair { grid-template-columns: 1fr 1fr; }
  .creed__body { margin-left: calc(50% + var(--s-8) / 2); max-width: 46ch; }
}

/* ========== STEPS ========== */
.steps__list {
  position: relative;
  display: grid;
  gap: var(--s-7);
  list-style: none;
  padding: 0;
  counter-reset: none;
}
.steps__item { position: relative; }
.steps__item h3 { margin: var(--s-5) 0 var(--s-3); }
.steps__item p { color: var(--text-2); max-width: 40ch; }
.steps__node {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--lilac);
  box-shadow: 0 0 0 6px var(--night);
}
.steps__node--last {
  border-color: transparent;
  background: radial-gradient(circle at 36% 32%, #FFF0D6 0%, #FFB547 40%, #C98A5E 100%);
  color: var(--on-amber);
}
/* the path the steps travel along */
.steps__list::before {
  content: '';
  position: absolute;
  background: linear-gradient(180deg, var(--line-2), rgba(255, 181, 71, 0.6));
}
@media (min-width: 900px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); }
  .steps__list::before {
    top: 26px; left: 26px; right: calc(33.333% - 26px);
    height: 1px;
    background: linear-gradient(90deg, var(--line-2), rgba(255, 181, 71, 0.6));
  }
}
@media (max-width: 899px) {
  .steps__list { padding-left: 76px; }
  .steps__list::before { top: 26px; bottom: 30px; left: 26px; width: 1px; }
  .steps__node { position: absolute; left: -76px; top: 0; }
  .steps__item h3 { margin-top: 12px; }
}

/* ========== VERTICALS BENTO ========== */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
}
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: clamp(24px, 2.6vw, 34px);
  padding-right: clamp(72px, 7vw, 92px);
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.vcard:hover { border-color: var(--lilac); background: var(--glass-2); }
.vcard:focus-visible { border-radius: var(--r-card); }
.vcard__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 1.8vw, 1.75rem);
  letter-spacing: -0.025em;
}
.vcard__desc { color: var(--text-2); font-size: var(--fs-small); max-width: 52ch; }
.vcard__deal {
  margin-top: auto;
  padding-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
}
.vcard__deal .money {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.vcard__alt { font-size: var(--fs-small); color: var(--text-3); font-weight: 600; }
.vcard__go {
  position: absolute;
  top: clamp(20px, 2.4vw, 30px);
  right: clamp(20px, 2.4vw, 30px);
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--lilac);
  transition: transform var(--dur) var(--ease), background var(--dur-fast) var(--ease);
}
.vcard__go svg { width: 15px; height: 15px; }
.vcard:hover .vcard__go { transform: rotate(45deg); background: var(--lilac-wash); }
.vcard--feature {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 181, 71, 0.16), transparent 60%),
    var(--glass);
}
.vcard--feature:hover {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 181, 71, 0.22), transparent 60%),
    var(--glass-2);
}
@media (min-width: 640px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento__cell { grid-column: span 2; }
  .bento__cell--wide { grid-column: span 4; }
}

/* ========== NUMBERS ========== */
.numbers__label { display: block; margin-bottom: clamp(32px, 4vw, 52px); }
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-7) var(--s-5);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: var(--s-5);
  border-left: 1px solid var(--line-2);
}
.stat__name { font-size: var(--fs-small); font-weight: 700; color: var(--lilac); }
.stat__fig {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-figure);
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
}
.stat__fig small {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--lilac);
}
.stat--lead .stat__fig { color: var(--text); }
.stat__note { font-size: var(--fs-small); color: var(--text-3); max-width: 30ch; }
@media (min-width: 1000px) {
  .numbers__grid { grid-template-columns: 1.35fr repeat(3, 1fr); }
  .stat--lead .stat__fig { font-size: clamp(4rem, 7vw, 6.25rem); }
}
@media (max-width: 420px) {
  .stat { padding-left: var(--s-4); }
  .stat__fig { font-size: 2.5rem; }
}

/* ========== PRIVATE ROSTER ========== */
.roster-teaser__stage {
  position: relative;
  display: grid;
}
.register {
  grid-area: 1 / 1;
  display: grid;
  gap: 2px;
  padding-block: var(--s-5);
  filter: blur(2.5px);
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(90% 85% at 40% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(90% 85% at 40% 50%, #000 45%, transparent 100%);
  user-select: none;
  pointer-events: none;
}
.register__row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 0.6fr;
  align-items: center;
  gap: var(--s-5);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.25rem);
  color: var(--text-2);
}
.register__row .money { text-align: right; }
.redact {
  display: inline-block;
  width: var(--w, 6ch);
  max-width: 100%;
  height: 0.85em;
  border-radius: 4px;
  background: var(--text-3);
}
.roster-teaser__card {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  max-width: 520px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-panel);
}
.roster-teaser__card .label { margin-bottom: var(--s-4); }
.roster-teaser__body { margin: var(--s-4) 0 var(--s-6); color: var(--text-2); }
@media (max-width: 760px) {
  .roster-teaser__stage { grid-template-rows: auto auto; }
  .register { grid-area: 1 / 1; }
  .register__row { grid-template-columns: 1.2fr 1fr 0.7fr; }
  .register__row span:nth-child(3) { display: none; }
  .roster-teaser__card { grid-area: 2 / 1; margin-top: -120px; justify-self: stretch; max-width: none; }
}

/* ========== SWITCH (what changes when you move) ==========
   A before/after comparison. Desktop: three columns with the Elisio
   column lit as one continuous band. Phones: one block per topic. */
.switch {
  --switch-cols: minmax(130px, 0.62fr) minmax(0, 1fr) minmax(0, 1.18fr);
  --band: rgba(185, 166, 255, 0.075);
}
.switch__cols,
.switch__row {
  display: grid;
  grid-template-columns: var(--switch-cols);
}
.switch__cols span {
  padding: 18px 28px 14px;
  font-size: var(--fs-small);
  font-weight: 700;
}
.switch__col-them { color: var(--text-3); }
.switch__col-ours {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--lilac);
  background: var(--band);
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.switch__col-ours::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFE3B8, #FFB547 40%, #9A82F6 80%);
}
.switch__list { margin: 0; }
.switch__row dt,
.switch__row dd {
  margin: 0;
  padding: 24px 28px;
  border-top: 1px solid var(--line);
}
.switch__row dt {
  padding-left: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--text);
}
.switch__row dd { text-wrap: pretty; }
.switch__them { color: var(--text-3); }
.switch__ours {
  background: var(--band);
  border-top-color: rgba(185, 166, 255, 0.14);
  color: var(--text);
  font-weight: 600;
}
.switch__row:last-child .switch__ours { border-radius: 0 0 var(--r-card) var(--r-card); }
.switch__row:last-child dt,
.switch__row:last-child .switch__them { border-bottom: 1px solid var(--line); }
/* The column headings say it on wide screens; the tags keep it for screen readers. */
.switch__tag {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .switch__cols { display: none; }
  .switch__row {
    display: block;
    padding-block: var(--s-5);
    border-top: 1px solid var(--line);
  }
  .switch__row:last-child { border-bottom: 1px solid var(--line); }
  .switch__row dt,
  .switch__row dd,
  .switch__row:last-child dt,
  .switch__row:last-child .switch__them { border: 0; }
  .switch__row dt { padding: 0 0 var(--s-3); }
  .switch__row dd { padding: 0; }
  .switch__tag {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    display: block;
    margin-bottom: 4px;
    font-size: var(--fs-xs);
    font-weight: 700;
    white-space: normal;
  }
  .switch__them .switch__tag { color: var(--text-3); }
  .switch__row .switch__ours {        /* beats the .switch__row dd reset above */
    margin-top: var(--s-4);
    padding: 16px 18px;
    border-radius: var(--r-ctl);
  }
  .switch__row:last-child .switch__ours { border-radius: var(--r-ctl); }
  .switch__ours .switch__tag { color: var(--lilac); }
}
