/* THE BUILD: the whole home page is one construction scene */
body.build { background: #0e3a66; }
.track { height: 1150vh; position: relative; }
.site-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0e3a66; }
.scene-full { position: absolute; inset: 0; }
.scene-full svg { width: 100%; height: 100%; display: block; }

/* floating nav */
.bnav { position: fixed; z-index: 40; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px clamp(12px, 3vw, 32px); pointer-events: none; }
.bnav > * { pointer-events: auto; }
.bnav-r { display: flex; gap: 8px; align-items: center; }
.bpill { background: rgba(255, 253, 248, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 999px; padding: 6px 16px 6px 7px; box-shadow: var(--shadow); border: 0; }
.bnav .logo { font-size: 1.12rem; }
.bnav .logo svg { width: 32px; height: 32px; }
.bnav .logo small { font-size: .56rem; }
.bpill-btn { min-height: 42px; padding: 0 16px; font-weight: 700; font-size: .9rem; color: var(--forest); cursor: pointer; transition: transform .2s; }
.bpill-btn:hover { transform: translateY(-2px); }
.bpill-btn .sub { font-weight: 500; color: var(--ink-3); }
@media (max-width: 560px) {
  .bpill-btn .sub, .bnav .btn .price, .bnav .logo small { display: none; }
  .bpill-btn { padding: 0 13px; }
  .bnav .btn { padding: 0 15px; }
}
@media (max-width: 400px) { .bnav .logo span { display: none; } .bnav .logo { padding: 5px; } }

/* chapters: notes pinned to the site */
.ch { position: absolute; z-index: 5; left: clamp(20px, 5vw, 84px); top: 50%; width: min(440px, 36vw); opacity: 0; transform: translateY(calc(-50% + 26px)); transition: opacity .5s, transform .7s cubic-bezier(.2, .8, .2, 1), visibility 0s .5s; visibility: hidden; pointer-events: none; }
.ch.on { opacity: 1; transform: translateY(-50%); visibility: visible; pointer-events: auto; transition-delay: .12s, .12s, 0s; }
.ch.card { background: rgba(255, 253, 248, .93); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 30px; padding: clamp(22px, 2.6vw, 36px); box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .7); }
.ch.card::before { content: ""; position: absolute; left: 34px; top: -7px; width: 62px; height: 16px; background: rgba(233, 180, 76, .88); transform: rotate(-3deg); border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.ch-no { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ch-no b { font-family: var(--serif); font-weight: 500; font-size: clamp(3rem, 5vw, 4.6rem); line-height: .85; color: var(--terracotta); letter-spacing: -.04em; }
.ch-no span { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch.card h2 { font-size: clamp(1.45rem, 2.3vw, 2.1rem); color: var(--forest-ink); margin-bottom: 10px; }
.ch.card h2 em { color: var(--terracotta); font-weight: 400; }
.ch.card p { color: var(--ink-2); }

.ch-intro { width: min(560px, 39vw); color: #fff; }
.bp-tag { display: inline-block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #9fc6ee; border: 1px dashed rgba(159, 198, 238, .6); padding: 6px 12px; border-radius: 6px; }
.ch-intro h1 { font-size: clamp(2.2rem, 4.3vw, 4rem); color: #fff; margin: 20px 0 18px; }
.ch-intro h1 em { color: var(--gold-2); font-weight: 400; }
.ch-intro .lede { color: rgba(255, 255, 255, .82); font-size: clamp(1rem, 1.4vw, 1.16rem); max-width: 34em; }
.ch-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-line { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.scroll-hint { display: flex; align-items: center; gap: 12px; margin-top: 34px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: #9fc6ee; }
.scroll-hint span { width: 22px; height: 34px; border: 1.5px solid #9fc6ee; border-radius: 12px; position: relative; }
.scroll-hint span::after { content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: #9fc6ee; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

.final-price { display: flex; align-items: center; gap: 16px; margin: 18px 0 20px; padding: 14px 18px; border-radius: 18px; background: #f6efe0; border: 1px dashed var(--line); }
.final-price b { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; line-height: 1; color: var(--forest-ink); }
.final-price span { font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.ch-final .btn { width: 100%; }
.ch.card .final-alt { margin-top: 12px; text-align: center; font-size: .88rem; color: var(--ink-3); }
.linkish { background: none; border: 0; padding: 0; color: var(--forest); font-weight: 700; text-decoration: underline; cursor: pointer; }

/* progress board */
.hud { position: absolute; z-index: 6; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(560px, calc(100% - 28px)); display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; border-radius: 22px; background: rgba(255, 253, 248, .93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); }
.hud-play { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--forest); color: #fff; font-size: .82rem; cursor: pointer; transition: transform .2s; }
.hud-play:hover { transform: scale(1.08); }
.hud-mid { flex: 1; min-width: 0; }
.hud-label { display: flex; justify-content: space-between; gap: 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; }
.hud-label span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-label b { color: var(--terracotta); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hud-segs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.hud-segs button { height: 18px; border: 0; background: none; cursor: pointer; position: relative; padding: 0; }
.hud-segs button::before, .hud-segs button::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 6px; border-radius: 6px; background: var(--sand); }
.hud-segs button::after { background: linear-gradient(90deg, var(--terracotta), var(--gold)); transform: scaleX(var(--f, 0)); transform-origin: left; }
.hud-segs button:hover::before { background: #e3d5b8; }

/* phones and portrait screens: note on top, building below */
@media (max-width: 899px), (max-aspect-ratio: 21/20) {
  .ch { left: 14px; right: 14px; width: auto; top: 66px; transform: translateY(18px); }
  .ch.on { transform: none; }
  .ch.card { padding: 18px 18px 16px; border-radius: 22px; }
  .ch.card::before { left: 24px; }
  .ch-no { margin-bottom: 6px; }
  .ch-no b { font-size: 2.5rem; }
  .ch.card h2 { font-size: 1.28rem; margin-bottom: 6px; }
  .ch.card p { font-size: .93rem; line-height: 1.5; }
  .ch .chips { margin-top: 10px; gap: 6px; }
  .ch .chips li { font-size: .74rem; padding: 4px 9px; }
  .ch-intro { top: 78px; }
  .ch-intro h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); margin: 14px 0 10px; }
  .ch-intro .lede { font-size: .95rem; line-height: 1.5; }
  .ch-cta { margin-top: 16px; gap: 8px; }
  .ch-cta .btn { min-height: 46px; padding: 0 18px; font-size: .92rem; }
  .scroll-hint { display: none; }
  .final-price { margin: 12px 0 14px; padding: 10px 14px; }
  .final-price b { font-size: 2rem; }
  .hud { bottom: 10px; padding: 8px 14px 8px 8px; border-radius: 18px; }
  .hud-play { width: 36px; height: 36px; }
}
@media (max-height: 700px) and (max-width: 899px) { .ch .chips, .ch-intro .lede { display: none; } }

/* scene extras */
.vt-scene .vt-knock { display: none; cursor: pointer; outline: none; }
.vt-scene.is-done .vt-knock { display: block; }
.done-scene .vt-scene .vt-knock { display: none; }
.vt-scene .vt-ring { transform-box: fill-box; transform-origin: center; animation: ring 2s ease-out infinite; }
.vt-scene .vt-ring2 { animation-delay: 1s; }
@keyframes ring { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
.vt-bp .vt-bp-art path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bpdraw 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
.vt-bp .vt-bp-art path:nth-of-type(1) { animation-delay: .2s; }
.vt-bp .vt-bp-art path:nth-of-type(2) { animation-delay: .45s; }
.vt-bp .vt-bp-art path:nth-of-type(3) { animation-delay: .7s; }
.vt-bp .vt-bp-art path:nth-of-type(4) { animation-delay: 1s; }
.vt-bp .vt-bp-art path:nth-of-type(5) { animation-delay: 1.3s; }
.vt-bp .vt-bp-art path:nth-of-type(6) { animation-delay: 1.5s; }
.vt-bp .vt-bp-art path:nth-of-type(7) { animation-delay: 1.7s; }
.vt-bp .vt-bp-art path:nth-of-type(8) { animation-delay: 1.9s; }
.vt-bp .vt-bp-art path:nth-of-type(9) { animation-delay: 2s; }
.vt-bp .vt-bp-art path:nth-of-type(n+10) { animation-delay: 2.2s; }
.vt-bp .vt-bp-art text { fill-opacity: 0; animation: bptext .8s 2.8s forwards; }
@keyframes bpdraw { to { stroke-dashoffset: 0; } }
@keyframes bptext { to { fill-opacity: .85; } }

/* footer on the build page: the earth under the house */
body.build .footer { background: linear-gradient(#4a3524, #2e2118); border-top: 6px solid #6a9b50; color: #e9dcc8; }
body.build .footer a, body.build .footer .blurb, body.build .footer li { color: #e9dcc8; }
body.build .footer a:hover { color: var(--gold-2); }
body.build .footer h4 { color: #b9a58a; }
body.build .footer .logo { color: #fffaf0; }
body.build .footer .logo small { color: #b9a58a; }
body.build .footer-base { border-color: rgba(255, 255, 255, .14); color: #b9a58a; }

/* site office: a blueprint sheet */
.office { position: fixed; inset: 0; z-index: 80; overflow-y: auto; overscroll-behavior: contain; color: #fff; opacity: 0; transform: translateY(28px); transition: opacity .35s, transform .45s cubic-bezier(.2, .8, .2, 1); background-color: #0e3a66; background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 28px 28px; }
.office[hidden] { display: none; }
.office.open { opacity: 1; transform: none; }
.office-in { max-width: 860px; margin: 0 auto; padding: clamp(8px, 3vw, 36px) clamp(16px, 4vw, 40px) 80px; }
.office-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; position: sticky; top: 0; padding: 14px 0 18px; background: linear-gradient(#0e3a66 75%, rgba(14, 58, 102, 0)); z-index: 2; }
.office-head h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); color: #fff; margin-top: 12px; outline: none; }
.sheet { border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 6px; padding: clamp(20px, 3vw, 32px); margin-bottom: 18px; position: relative; background: rgba(14, 58, 102, .7); }
.sheet::before, .sheet::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1.5px solid #9fc6ee; }
.sheet::before { left: -8px; top: -8px; border-right: 0; border-bottom: 0; }
.sheet::after { right: -8px; bottom: -8px; border-left: 0; border-top: 0; }
.sheet h3 { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #9fc6ee; margin-bottom: 16px; }
.sheet p { color: rgba(255, 255, 255, .86); }
.sheet p + p { margin-top: 8px; }
.sheet a:not(.btn) { color: var(--gold-2); }
.fee-row { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; margin-bottom: 22px; }
.fee-big { font-family: var(--serif); font-size: clamp(3.4rem, 8vw, 5rem); line-height: 1; color: var(--gold-2); }
.fee-big small { display: block; font-family: var(--sans); font-size: .9rem; color: rgba(255, 255, 255, .75); margin-top: 8px; max-width: 16em; line-height: 1.4; }
.bp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-list li { padding-left: 26px; position: relative; }
.bp-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-2); font-weight: 700; }
.bp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.bp-steps li { counter-increment: s; border-top: 1.5px dashed rgba(255, 255, 255, .45); padding-top: 12px; }
.bp-steps li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 2rem; color: var(--gold-2); line-height: 1; margin-bottom: 8px; }
.bp-steps b { display: block; margin-bottom: 4px; }
.bp-steps span { font-size: .92rem; color: rgba(255, 255, 255, .78); }
.bp-note { margin-top: 18px; font-size: .94rem; }
.sheet details { border-top: 1px dashed rgba(255, 255, 255, .35); }
.sheet details:last-child { border-bottom: 1px dashed rgba(255, 255, 255, .35); }
.sheet summary { list-style: none; cursor: pointer; padding: 15px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; }
.sheet summary::-webkit-details-marker { display: none; }
.sheet summary::after { content: "+"; color: var(--gold-2); font-size: 1.3rem; line-height: 1; }
.sheet details[open] summary::after { content: "–"; }
.sheet details p { padding-bottom: 16px; }
@media (max-width: 560px) { .fee-row { grid-template-columns: 1fr; } }
