/* BLD 3D journey homepage (theme 2.1). Tokens come from style.css. */

.bld-journey .site-main { background: var(--bld-ink); }
.jn { position: relative; color: var(--bld-on-dark); background: var(--bld-ink); --jn-head: 72px; }
.jn a:not(.btn) { color: var(--bld-gold-2); }
.jn :focus-visible { outline: 2px solid var(--bld-gold-2); outline-offset: 3px; }

/* ---------- the 3D sky behind everything ---------- */
.jn-sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.jn-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.jn.is-3d .jn-canvas { opacity: 1; }
.jn-sky__fallback {
	position: absolute; inset: 0;
	background:
		radial-gradient(60% 45% at 70% 70%, rgba(201, 162, 76, .22), transparent 70%),
		radial-gradient(80% 60% at 20% 10%, rgba(80, 96, 140, .18), transparent 70%),
		linear-gradient(180deg, #0b0b0d 0%, #14121a 55%, #1d170e 100%);
	transition: opacity 1.2s ease;
}
.jn-sky__fallback::after { /* a quiet skyline when there is no 3D */
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 34vh; opacity: .55;
	background:
		linear-gradient(90deg, transparent 0 4%, #1a1820 4% 7%, transparent 7% 9%, #17151c 9% 13%, transparent 13% 16%, #1c1a22 16% 18%, transparent 18% 22%, #15131a 22% 27%, transparent 27% 30%, #1d1b23 30% 33%, transparent 33% 38%, #17151c 38% 43%, transparent 43% 46%, #c9a24c 46% 48.5%, transparent 48.5% 52%, #1b1921 52% 57%, transparent 57% 60%, #16141b 60% 64%, transparent 64% 69%, #1c1a22 69% 72%, transparent 72% 76%, #15131a 76% 82%, transparent 82% 86%, #1a1820 86% 90%, transparent 90%) bottom / 100% 100% no-repeat;
}
.jn.is-3d .jn-sky__fallback { opacity: 0; }

/* ---------- ticker ---------- */
.jn-ticker { position: sticky; top: calc(var(--bld-top) + var(--jn-head)); z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 8px 0 var(--bld-gutter); background: rgba(11, 11, 13, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bld-line-dark); font-size: 13.5px; }
.jn-ticker__label { flex: none; margin: 0; display: flex; align-items: center; gap: 8px; font: 600 11px/1 var(--bld-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bld-gold-2); }
.jn-live { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .6); animation: jn-pulse 2s infinite; }
@keyframes jn-pulse { 70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.jn-ticker__win { flex: 1; min-width: 0; overflow: hidden; display: flex; -webkit-mask: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.jn-ticker__list { flex: none; display: flex; gap: 34px; margin: 0; padding: 0 34px 0 0; list-style: none; white-space: nowrap; animation: jn-marquee 70s linear infinite; }
.jn-ticker__list li { color: var(--bld-on-dark-muted); }
.jn-ticker__list strong { color: #fff; font-weight: 600; }
.jn-tk__t { color: var(--bld-on-dark); font-weight: 600; }
.jn-tk__m { color: #8f897c; font-size: 12px; }
.jn-ticker__list .is-million .jn-tk__t { color: var(--bld-ink); background: var(--bld-gold); border-radius: 999px; padding: 2px 8px; font-size: 11.5px; }
.jn-ticker__list .is-million strong { color: var(--bld-gold-2); }
.jn-ticker:hover .jn-ticker__list, .jn-ticker:focus-within .jn-ticker__list, .jn-ticker.is-paused .jn-ticker__list { animation-play-state: paused; }
@keyframes jn-marquee { to { transform: translateX(-100%); } }
.jn-ticker__pause { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--bld-line-dark); background: transparent; color: var(--bld-on-dark); cursor: pointer; display: grid; place-items: center; }
.jn-ticker.is-paused .jn-ticker__pause { background: var(--bld-gold); color: var(--bld-ink); }

/* ---------- side rail ---------- */
.jn-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20; display: none; }
.jn-rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.jn-rail li { display: flex; justify-content: flex-end; margin: 0; padding: 0; }
.jn-rail a { width: 100%; display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-decoration: none; min-height: 24px; color: var(--bld-on-dark-muted) !important; font-size: 12.5px; }
.jn-rail__l { order: -1; pointer-events: none; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; background: rgba(11, 11, 13, .85); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.jn-rail a:hover .jn-rail__l, .jn-rail a:focus-visible .jn-rail__l { opacity: 1; transform: none; }
.jn-rail a.is-on { color: var(--bld-gold-2) !important; }
.jn-rail__dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid rgba(232, 205, 138, .6); transition: all .25s; }
.jn-rail a.is-on .jn-rail__dot { background: var(--bld-gold); border-color: var(--bld-gold); transform: scale(1.35); box-shadow: 0 0 12px rgba(232, 205, 138, .7); }
.jn-rail__bar { position: absolute; right: 4px; top: 0; bottom: 0; width: 1px; background: rgba(232, 205, 138, .18); z-index: -1; }
.jn-rail__bar i { position: absolute; inset: 0; background: var(--bld-gold); transform-origin: top; transform: scaleY(0); }
@media (min-width: 1100px) { .jn-rail { display: block; } }

/* ---------- chapters ---------- */
.jn-step { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; padding: 14vh calc(var(--bld-gutter) + 0px); box-sizing: border-box; }
.jn-step.is-left { justify-content: flex-start; }
.jn-step.is-right { justify-content: flex-end; }
.jn-step.is-center { justify-content: center; text-align: center; }
@media (min-width: 1100px) { .jn-step { padding-left: max(var(--bld-gutter), calc((100vw - 1240px) / 2)); padding-right: max(96px, calc((100vw - 1240px) / 2)); } }
.jn-card { position: relative; width: 100%; max-width: 540px; padding: clamp(24px, 3.2vw, 38px); border-radius: 22px; background: rgba(11, 11, 13, .8); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); border: 1px solid rgba(232, 205, 138, .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.jn-wide .jn-card { max-width: 680px; }
.is-center .jn-card { max-width: 720px; }
.js .jn-step:not(.jn-intro) .jn-card { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .jn-step.is-in .jn-card { opacity: 1; transform: none; }
.jn-kicker { margin: 0; font: 600 11.5px/1.3 var(--bld-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bld-gold-2); }
.bld-site .jn-title { margin: 12px 0 14px; font: 500 clamp(30px, 3.6vw, 46px)/1.08 var(--bld-display); letter-spacing: -.015em; color: #fff; }
.jn-lede { margin: 0 0 14px; font-size: 18px; color: var(--bld-on-dark); }
.jn-body { color: #d9d3c6; font-size: 16.5px; }
.jn-body p { margin: 0 0 1em; }
.jn-note, .jn-muted { font-size: 13px; color: var(--bld-on-dark-muted); }
.jn-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.is-center .jn-ctas { justify-content: center; }
.btn--big { min-height: 58px; padding: 0 30px; font-size: 17px; }
.jn-quote { margin: 18px 0 0; padding: 14px 0 0 18px; border-left: 2px solid var(--bld-gold); font: italic 400 20px/1.4 var(--bld-display); color: var(--bld-gold-2); }
.jn-quote p { margin: 0; }
.jn-stats { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 0; }
.jn-stat { flex: 1 1 120px; min-width: min-content; max-width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(232, 205, 138, .07); border: 1px solid rgba(232, 205, 138, .14); }
.jn-stat__v { display: block; white-space: nowrap; font: 500 clamp(24px, 2.6vw, 34px)/1.1 var(--bld-display); color: var(--bld-gold-2); }
.jn-stat__l { display: block; margin-top: 4px; font-size: 13px; color: var(--bld-on-dark-muted); }
.jn-stats.is-big .jn-stat__v { font-size: clamp(36px, 4.4vw, 60px); }
.jn-stats.is-chips .jn-stat { padding: 10px 14px; }
.jn-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.jn-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.jn-steps span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--bld-gold); color: var(--bld-ink); font-size: 13px; }
.jn-items { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.jn-items li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(232, 205, 138, .12); }
.jn-items h3 { margin: 0 0 2px; font: 600 16px/1.3 var(--bld-sans); color: #fff; }
.jn-items p { margin: 0; font-size: 14.5px; color: var(--bld-on-dark-muted); }
.jn-items__n { font: 500 22px/1 var(--bld-display); color: var(--bld-gold); }

/* ---------- hero ---------- */
.jn-intro { padding-top: 8vh; padding-bottom: 10vh; }
.jn-hero { width: 100%; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.bld-site .jn-hero__title { margin: 14px 0 0; font: 500 clamp(52px, 8.6vw, 116px)/.95 var(--bld-display); letter-spacing: -.035em; color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); }
.jn-hero__lede { margin: 22px 0 0; font-size: clamp(17px, 1.7vw, 21px); color: var(--bld-on-dark); max-width: 42ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.jn-hero__facts { display: flex; flex-wrap: wrap; gap: 12px 30px; margin: 30px 0 0; padding: 16px 0 0; border-top: 1px solid var(--bld-line-dark); }
.jn-hero__facts dt { font: 600 10.5px/1.3 var(--bld-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--bld-gold-2); }
.jn-hero__facts dd { margin: 4px 0 0; font-size: 14px; }
@media (max-width: 899px) { .jn-hero { grid-template-columns: 1fr; } }

/* ---------- What's my flat worth? ---------- */
.jn-worth, .jn-lead { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: clamp(20px, 2.6vw, 30px); border-radius: 22px; background: rgba(11, 11, 13, .84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(232, 205, 138, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.jn-lead { grid-template-columns: 1fr; margin-top: 14px; padding: 18px; background: rgba(255, 255, 255, .04); box-shadow: none; }
.bld-site .jn-worth__t, .bld-site .jn-lead h3 { grid-column: 1 / -1; margin: 0; font: 500 26px/1.15 var(--bld-display); color: #fff; }
.bld-site .jn-lead h3 { font-size: 20px; }
.jn-worth__sub { grid-column: 1 / -1; margin: -4px 0 4px; font-size: 14px; color: var(--bld-on-dark-muted); }
.jn-worth__row { display: grid; gap: 6px; min-width: 0; }
.jn-worth__row--wide, .jn-worth__go, .jn-worth__out { grid-column: 1 / -1; }
.jn-worth label, .jn-lead label { font-size: 13px; font-weight: 600; color: var(--bld-on-dark); }
.jn select, .jn input[type="text"], .jn input[type="tel"] { width: 100%; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(232, 205, 138, .3); background: #15141a; color: #fff; font: inherit; font-size: 15.5px; box-sizing: border-box; }
.jn select:focus, .jn input:focus { border-color: var(--bld-gold-2); }
.jn-worth__hint { font-size: 12px; color: var(--bld-on-dark-muted); }
.jn-worth__go { justify-self: start; }
.jn-est { padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(201, 162, 76, .2), rgba(201, 162, 76, .05)); border: 1px solid rgba(232, 205, 138, .35); }
.jn-est.is-none { background: rgba(255, 255, 255, .05); }
.jn-est__k { margin: 0; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--bld-gold-2); }
.jn-est__v { margin: 6px 0; font: 500 clamp(32px, 4vw, 44px)/1.05 var(--bld-display); color: #fff; }
.jn-est__v span { color: var(--bld-gold); }
.jn-est__m { margin: 0 0 6px; }
.jn-err { color: #ffb4a8; font-size: 14px; margin: 0; }
.jn-ok { padding: 14px; border-radius: 12px; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .35); margin: 12px 0 0; }
.jn-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 12.5px !important; color: var(--bld-on-dark-muted) !important; }
.jn-consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--bld-gold); }
.jn-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .jn-worth { grid-template-columns: 1fr; } }

/* ---------- guess the price ---------- */
.jn-game { margin-top: 10px; }
.jn-game__bar { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--bld-on-dark-muted); }
.jn-game__bar span:nth-child(2) { color: var(--bld-gold-2); font-weight: 600; }
.jn-game__flat { margin: 14px 0; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(232, 205, 138, .16); min-height: 120px; }
.jn-game__k { margin: 0; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bld-gold-2); }
.jn-game__a { margin: 4px 0 10px; font: 500 24px/1.2 var(--bld-display); color: #fff; }
.jn-game__f { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.jn-game__f li { font-weight: 600; }
.jn-game__f span { display: block; font-size: 12px; font-weight: 400; color: var(--bld-on-dark-muted); }
.jn-game__guess { display: grid; gap: 10px; }
.jn-game__guess label { font-weight: 600; }
.jn-game__guess output { color: var(--bld-gold-2); font: 500 24px/1 var(--bld-display); margin-left: 8px; }
.jn-game__guess input[type="range"] { width: 100%; accent-color: var(--bld-gold); min-height: 32px; }
.jn-game__guess .btn { justify-self: start; }
.jn-game__r { margin: 6px 0 12px; }
.jn-pts { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--bld-gold); color: var(--bld-ink); font-weight: 700; font-size: 13px; }
.jn-game__end { margin-top: 8px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(201, 162, 76, .25), rgba(201, 162, 76, .05)); border: 1px solid rgba(232, 205, 138, .35); text-align: center; }
.jn-game__total { margin: 0; font: 500 64px/1 var(--bld-display); color: #fff; }
.jn-game__total span { font-size: 24px; color: var(--bld-gold-2); }
.jn-game__end .jn-ctas { justify-content: center; }

/* ---------- next-move quiz ---------- */
.jn-quiz { display: grid; gap: 14px; margin-top: 8px; }
.jn-quiz__q { margin: 0; padding: 0; border: 0; }
.jn-quiz__q legend { padding: 0; margin-bottom: 8px; font-weight: 600; color: #fff; }
.jn-quiz__n { color: var(--bld-gold-2); font-size: 12.5px; margin-right: 4px; }
.jn-quiz__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.jn-chip { position: relative; }
.jn-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.jn-chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(232, 205, 138, .3); color: var(--bld-on-dark); font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.jn-chip input:checked + span { background: var(--bld-gold); color: var(--bld-ink); border-color: var(--bld-gold); font-weight: 600; }
.jn-chip input:focus-visible + span { outline: 2px solid var(--bld-gold-2); outline-offset: 3px; }
.jn-chip:hover span { border-color: var(--bld-gold-2); }
.js .jn-quiz__q:not([hidden]) { animation: jn-in .45s ease both; }
@keyframes jn-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.jn-qres { padding: 20px; border-radius: 16px; background: linear-gradient(135deg, rgba(201, 162, 76, .25), rgba(201, 162, 76, .05)); border: 1px solid rgba(232, 205, 138, .35); animation: jn-in .5s ease both; }
.bld-site .jn-qres h3 { margin: 6px 0 8px; font: 500 30px/1.1 var(--bld-display); color: #fff; }
.jn-qres p { margin: 0 0 10px; }

/* ---------- scroll hint ---------- */
.jn-hint3d { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 15; margin: 0; padding: 8px 16px; border-radius: 999px; background: rgba(11, 11, 13, .7); border: 1px solid var(--bld-line-dark); font-size: 13px; color: var(--bld-on-dark); transition: opacity .5s, transform .5s; pointer-events: none; }
.jn-hint3d::after { content: '↓'; margin-left: 8px; display: inline-block; animation: jn-bob 1.6s ease-in-out infinite; color: var(--bld-gold-2); }
.jn-hint3d.is-gone { opacity: 0; transform: translate(-50%, 12px); }
@keyframes jn-bob { 50% { transform: translateY(4px); } }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
	.jn-step { min-height: 92vh; padding: 10vh var(--bld-gutter); justify-content: center !important; }
	.jn-card { max-width: none; background: rgba(11, 11, 13, .86); }
	.jn-intro { min-height: auto; padding-top: 32px; }
	.jn-ticker { font-size: 12.5px; padding-left: 12px; }
	.jn-ticker__label span + * { display: none; }
}

/* ---------- reduce motion: nothing moves by itself ---------- */
@media (prefers-reduced-motion: reduce) {
	.jn-ticker__list { animation: none; }
	.jn-ticker__win { overflow-x: auto; }
	.jn-ticker__list[aria-hidden="true"], .jn-ticker__pause { display: none; }
	.jn-live, .jn-hint3d::after { animation: none; }
	.js .jn-step:not(.jn-intro) .jn-card { opacity: 1; transform: none; transition: none; }
	.js .jn-quiz__q:not([hidden]), .jn-qres { animation: none; }
	.jn-canvas, .jn-sky__fallback { transition: none; }
}

/* Theme style.css styles every submit button; keep the journey's gold buttons readable. */
.bld-site .jn .btn--gold, .bld-site .jn button.btn--gold[type=submit] { background: var(--bld-gold); border-color: var(--bld-gold); color: var(--bld-ink) !important; }
.bld-site .jn .btn--gold:hover, .bld-site .jn button.btn--gold[type=submit]:hover { background: var(--bld-gold-2); border-color: var(--bld-gold-2); }
@media (max-width: 699px) { .jn-hint3d { display: none; } }
