/* "The Ascent" — alternative AHBB landing page. Loads after site.css and reuses its tokens, buttons and form fields. */

/* ---------- header: no menu, two actions only ---------- */
.a-header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); display: flex; align-items: center; transition: background .4s var(--ease); }
.a-header.scrolled { background: rgba(18, 8, 5, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.a-header .wrap { display: flex; align-items: center; justify-content: space-between; max-width: 1400px; }
.a-header .actions { display: flex; gap: 10px; align-items: center; }
.a-header .btn { min-height: 44px; padding: 0 20px; font-size: 11.5px; }
.icon-btn { width: 44px; height: 44px; border: 1px solid var(--line); display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: rgba(37, 211, 102, .14); }
.icon-btn svg { width: 20px; height: 20px; fill: var(--wa); }
@media (max-width: 520px) { .a-header .btn { padding: 0 14px; letter-spacing: .12em; } }

/* ---------- hero ---------- */
.a-hero { position: relative; height: 100svh; min-height: 620px; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.a-hero__bg { position: absolute; inset: 0; z-index: -2; }
.a-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: kenburns 30s var(--ease) infinite alternate; }
.a-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(18,8,5,1) 2%, rgba(18,8,5,.6) 38%, rgba(18,8,5,.1) 70%), linear-gradient(180deg, rgba(18,8,5,.5), transparent 22%); }
.a-hero .wrap { padding-bottom: clamp(70px, 12vh, 130px); max-width: 1400px; }
.a-hero h1 { font-size: clamp(50px, 9vw, 140px); line-height: .92; letter-spacing: -.005em; }
.a-hero h1 .line { display: block; overflow: hidden; padding-bottom: .07em; }
.a-hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise 1.3s var(--ease) forwards; }
.a-hero h1 .line:nth-child(2) > span { animation-delay: .14s; }
.a-hero h1 .line:nth-child(3) > span { animation-delay: .28s; }
.a-hero .eyebrow { opacity: 0; animation: fadeUp 1s var(--ease) .2s forwards; }
.a-hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-top: 34px; flex-wrap: wrap; opacity: 0; animation: fadeUp 1s var(--ease) .9s forwards; }
.a-hero__row p { max-width: 460px; margin: 0; font-size: 18px; }
.lift-cue { display: flex; align-items: center; gap: 14px; font-size: 11.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.lift-cue i { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-style: normal; animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

/* ---------- marquee of facts ---------- */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); padding: 20px 0; white-space: nowrap; display: flex; align-items: center; }
.marquee span::after { content: ""; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); margin: 0 34px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- the ascent (sticky scrollytelling) ---------- */
.ascent { position: relative; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 0; }
.stage figure { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.stage figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 8s var(--ease); }
.stage figure.on { opacity: 1; }
.stage figure.on img { transform: scale(1.0); }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,8,5,.85) 0%, rgba(18,8,5,.35) 45%, rgba(18,8,5,.05) 75%), linear-gradient(0deg, rgba(18,8,5,.55), transparent 35%); pointer-events: none; }
.steps { position: relative; z-index: 1; margin-top: -100svh; }
.step { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 30px) 0 60px; }
.step .wrap { max-width: 1400px; }
.card {
  max-width: 470px; position: relative;
  background: rgba(18, 8, 5, .58); border: 1px solid var(--line); padding: clamp(28px, 3.5vw, 44px);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: .25; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.step.active .card { opacity: 1; transform: none; }
.card .lvl { font-family: var(--serif); font-size: clamp(88px, 10vw, 140px); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 18px; letter-spacing: -.02em; }
.card .eyebrow { margin-bottom: 14px; }
.card h2 { font-size: clamp(34px, 3.6vw, 50px); }
.card p { color: var(--muted); margin: 16px 0 0; }
.card ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid var(--line); }
.card li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.card li b { font-weight: 400; color: var(--gold-hi); white-space: nowrap; }
.card .btn-row { margin-top: 26px; }
.view-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.view-chips button { border: 1px solid rgba(197,155,105,.4); background: none; padding: 10px 14px; font-size: 13.5px; cursor: pointer; transition: background .25s, color .25s; color: var(--text); }
.view-chips button[aria-pressed="true"] { background: var(--gold); color: #1b0f09; border-color: var(--gold); }
.photo-tag { font-size: 12px; color: var(--muted); margin-top: 14px; display: block; }

/* level meter */
.meter { position: fixed; right: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); z-index: 30; display: flex; align-items: center; gap: 16px; opacity: 0; pointer-events: none; transition: opacity .5s var(--ease); }
.meter.show { opacity: 1; }
.meter__label { text-align: right; }
.meter__label b { display: block; font-family: var(--serif); font-weight: 500; font-size: 44px; line-height: 1; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.meter__label small { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--text); opacity: .8; }
.meter__track { position: relative; width: 1px; height: 46vh; background: rgba(241,232,220,.22); }
.meter__fill { position: absolute; left: 0; bottom: 0; width: 1px; background: var(--gold); height: 0; transition: height 1s var(--ease); }
.meter__dot { position: absolute; left: -5px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(197,155,105,.2); bottom: 0; transform: translateY(50%); transition: bottom 1s var(--ease); }
.meter__ticks span { position: absolute; left: 8px; font-size: 9.5px; letter-spacing: .1em; color: var(--muted); transform: translateY(50%); }
@media (max-width: 820px) {
  .meter { top: auto; bottom: 86px; right: 14px; transform: none; }
  .meter__track { height: 28vh; }
  .meter__label b { font-size: 30px; }
  .meter__ticks { display: none; }
  .stage::after { background: linear-gradient(0deg, rgba(18,8,5,.92) 0%, rgba(18,8,5,.5) 45%, rgba(18,8,5,.1) 75%); }
  .step { align-items: flex-end; padding-bottom: 110px; }
  .card { max-width: calc(100% - 70px); padding: 24px 22px; }
  .card .lvl { font-size: 72px; margin-bottom: 10px; }
}

/* ---------- homes (layouts) ---------- */
.homes { background: var(--stone); color: var(--ink); padding: clamp(80px, 10vw, 130px) 0; }
.homes .eyebrow { color: var(--gold-lo); }
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line-dark); margin-top: clamp(36px, 5vw, 56px); }
.group { background: none; border: 0; border-right: 1px solid var(--line-dark); padding: 28px 28px 26px; text-align: left; cursor: pointer; color: var(--ink); transition: background .35s; position: relative; }
.group:last-child { border-right: 0; }
.group small { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-lo); font-weight: 500; }
.group h3 { font-size: clamp(28px, 3vw, 40px); margin: 6px 0 4px; }
.group span { color: var(--ink-muted); font-size: 15px; }
.group::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.group[aria-selected="true"] { background: #fff; }
.group[aria-selected="true"]::after { transform: scaleX(1); }
@media (max-width: 700px) { .groups { grid-template-columns: 1fr; } .group { border-right: 0; border-bottom: 1px solid var(--line-dark); padding: 20px 22px; } .group:last-child { border-bottom: 0; } }
.rail { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 28px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: thin; }
.rail .plan { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; }
.rail .plan__img { aspect-ratio: 1 / 1; }
.rail-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }
.rail-foot p { margin: 0; font-size: 13px; color: var(--ink-muted); }

/* ---------- earn ---------- */
.earn { padding: clamp(80px, 10vw, 130px) 0; }
.earn__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.earn ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.earn li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.earn li b { font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1; color: var(--gold-hi); }
.earn li span { color: var(--muted); }
@media (max-width: 860px) { .earn__grid { grid-template-columns: 1fr; } .earn li { grid-template-columns: 110px 1fr; } .earn li b { font-size: 40px; } }

/* ---------- shortlist quiz ---------- */
.shortlist { position: relative; padding: clamp(80px, 10vw, 130px) 0; overflow: hidden; isolation: isolate; background: var(--bg-2); }
.shortlist__bg { position: absolute; inset: 0; z-index: -1; opacity: .16; }
.shortlist__bg img { width: 100%; height: 100%; object-fit: cover; }
.quiz { max-width: 860px; margin: 0 auto; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin: 34px 0 26px; gap: 20px; }
.quiz__bar { flex: 1; height: 2px; background: var(--line); position: relative; }
.quiz__bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold); width: 25%; transition: width .6s var(--ease); }
.quiz__count { font-size: 12px; letter-spacing: .2em; color: var(--gold); white-space: nowrap; }
.quiz__back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 0; visibility: hidden; }
.quiz__back.show { visibility: visible; }
.q { display: none; animation: qIn .6s var(--ease); }
.q.on { display: block; }
@keyframes qIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.q h3 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 26px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tiles--4 { grid-template-columns: repeat(4, 1fr); }
.tile { border: 1px solid rgba(197,155,105,.35); background: rgba(18,8,5,.5); padding: 24px 22px; text-align: left; cursor: pointer; transition: border-color .3s, background .3s, transform .3s var(--ease); color: var(--text); }
.tile:hover { border-color: var(--gold); transform: translateY(-3px); }
.tile[aria-pressed="true"] { border-color: var(--gold); background: rgba(197,155,105,.14); }
.tile b { display: block; font-family: var(--serif); font-weight: 500; font-size: 25px; margin-bottom: 4px; }
.tile span { font-size: 14px; color: var(--muted); }
.tile--img { padding: 0; overflow: hidden; }
.tile--img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 1s var(--ease); }
.tile--img:hover img { transform: scale(1.05); }
.tile--img div { padding: 14px 16px 16px; }
.tile--img b { font-size: 20px; }
@media (max-width: 760px) { .tiles, .tiles--4 { grid-template-columns: 1fr 1fr; } .tiles > .tile:only-child { grid-column: 1 / -1; } }
.q .row2 { margin-top: 4px; }
.skip { margin-top: 16px; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 14px; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.summary span { font-size: 13px; border: 1px solid var(--line); padding: 6px 12px; color: var(--gold-hi); }

/* ---------- footer + mobile bar ---------- */
.a-footer { padding: 56px 0 120px; border-top: 1px solid var(--line); background: #0b0503; font-size: 13px; color: var(--muted); }
.a-footer .trust { display: flex; flex-wrap: wrap; gap: 10px 34px; margin-bottom: 26px; color: var(--text); font-family: var(--serif); font-size: 19px; }
.a-footer p { margin: 0 0 8px; max-width: 900px; }
.a-footer a { color: var(--gold); }

/* residences scene: card on the right so the landmarks on the left of the photos stay visible */
@media (min-width: 821px) {
  .step--right .wrap { display: flex; justify-content: flex-end; padding-right: clamp(110px, 10vw, 170px); }
  .stage.flip::after { background: linear-gradient(270deg, rgba(18,8,5,.85) 0%, rgba(18,8,5,.35) 45%, rgba(18,8,5,.05) 75%), linear-gradient(0deg, rgba(18,8,5,.55), transparent 35%); }
}
.meter__label { text-shadow: 0 1px 12px rgba(0,0,0,.7); }
.meter__label small { display: inline-block; background: rgba(18,8,5,.55); padding: 3px 8px; margin-top: 4px; }

/* mobile: the bottom bar already carries both actions; the meter becomes a small level badge under the header */
@media (max-width: 720px) {
  .a-header .btn { display: none; }
  .meter { top: calc(var(--header-h) + 10px); bottom: auto; right: 12px; transform: none; }
  .meter__track { display: none; }
  .meter__label { background: rgba(18,8,5,.7); border: 1px solid var(--line); padding: 6px 12px 7px; display: flex; align-items: baseline; gap: 8px; }
  .meter__label b { font-size: 22px; }
  .meter__label small { background: none; padding: 0; margin: 0; }
  .step { padding-bottom: 96px; }
  .card { max-width: 100%; }
  .card h2 { font-size: 30px; }
  .card li { font-size: 14px; }
  .card .eyebrow { font-size: 10.5px; letter-spacing: .2em; }
}
