/* Revery inner pages (homes, how it's built). Loaded after styles.css and v2.css. Warm palette only. */
.sub-hero { min-height: 82vh; display: flex; align-items: flex-end; overflow: hidden; background: #000; padding: 0 0 clamp(56px, 9vh, 110px); }
.sub-hero .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 8, 10, .55) 0%, rgba(4, 8, 10, .05) 35%, rgba(4, 8, 10, .9) 100%); }
.sub-hero .wrap { position: relative; }
.sub-hero h1 { font-size: clamp(38px, 6.4vw, 96px); font-weight: 200; max-width: 1000px; letter-spacing: -.01em; }
.sub-hero p.lead { font-family: var(--head); font-size: clamp(18px, 2vw, 26px); max-width: 680px; margin: 22px 0 0; color: rgba(255, 255, 255, .88); }
body.v2 .nav a.here { color: var(--gold); }

.band { padding: clamp(80px, 11vw, 160px) 0; }
.band h2 { font-size: clamp(30px, 4.4vw, 62px); font-weight: 300; max-width: 900px; }
.band .sub { font-size: clamp(17px, 1.5vw, 20px); max-width: 680px; margin-top: 20px; }

/* alternating picture / idea rows */
.idea { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(60px, 8vw, 120px); }
.idea.flip .idea-pic { order: 2; }
.idea-pic { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--paper-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.idea-pic img, .idea-pic video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.idea-pic:hover img, .idea-pic:hover video { transform: scale(1.04); }
.idea .n { font-family: var(--head); font-weight: 200; font-size: clamp(54px, 7vw, 104px); line-height: 1; color: var(--gold); opacity: .9; }
.idea h3 { font-size: clamp(26px, 3vw, 42px); margin: 10px 0 14px; }
.idea p { color: var(--muted); max-width: 520px; margin: 0 0 12px; }
.idea .vs { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 10px; font-size: 15px; }
.idea .vs div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; }
.idea .vs span { font-family: var(--head); letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--muted); padding-top: 3px; }
.idea .vs .here span { color: var(--gold); } .idea .vs .here b { color: #fff; font-weight: 400; } .idea .vs b { font-weight: 300; color: var(--muted); }

/* blueprint drawings: cream ink on charcoal */
.bp { width: 100%; height: 100%; display: block; background: radial-gradient(circle at 30% 20%, #17212a, #0b1116); }
.bp .grid { stroke: rgba(240, 225, 200, .06); stroke-width: 1; }
.bp .ink { fill: none; stroke: #efe3cc; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bp .thin { fill: none; stroke: rgba(239, 227, 204, .5); stroke-width: 1; }
.bp .dash { fill: none; stroke: rgba(239, 227, 204, .5); stroke-width: 1; stroke-dasharray: 5 6; }
.bp .gold { fill: none; stroke: #d6b27a; stroke-width: 2; stroke-linecap: round; }
.bp .fillgold { fill: rgba(214, 178, 122, .16); stroke: #d6b27a; stroke-width: 1.4; }
.bp .fillink { fill: rgba(239, 227, 204, .07); stroke: #efe3cc; stroke-width: 1.4; }
.bp text { font-family: 'Outfit', sans-serif; font-size: 12px; letter-spacing: .14em; fill: rgba(239, 227, 204, .8); text-transform: uppercase; }
.bp text.g { fill: #d6b27a; }
.bp .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.6s ease; }
.reveal.in .bp .draw, .in > .bp .draw { stroke-dashoffset: 0; }
.bp .flow { stroke-dasharray: 6 10; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.bp .slide { animation: slide 6s ease-in-out infinite; }
@keyframes slide { 0%, 20% { transform: translateX(0); } 50%, 70% { transform: translateX(70px); } 100% { transform: translateX(0); } }
.bp .swing { transform-origin: 300px 60px; animation: swing 6s ease-in-out infinite; }
@keyframes swing { 0%, 15% { transform: skewY(0) scaleX(1); } 45%, 75% { transform: skewY(-9deg) scaleX(.55); } 100% { transform: skewY(0) scaleX(1); } }

.rule3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 5vw, 70px); padding-top: 34px; border-top: 1px solid var(--line); }
.rule3 b { display: block; font-family: var(--head); font-weight: 300; font-size: clamp(21px, 2vw, 28px); color: #fff; margin-bottom: 8px; } .rule3 span { color: var(--muted); }
.idea .open { font-size: 15px; border-left: 2px solid var(--gold); padding-left: 14px; margin-top: 20px; } .idea .open b { color: #fff; font-weight: 400; }
.idea[id] { scroll-margin-top: 130px; }
@media (max-width: 980px) { .rule3 { grid-template-columns: 1fr; } }

/* cutaway */
.cutaway { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-top: clamp(70px, 9vw, 130px); padding: clamp(24px, 4vw, 54px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #10181e, #0a0f13); }
.cutaway h3 { font-size: clamp(24px, 2.8vw, 38px); margin-bottom: 18px; }
.cutaway ol { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; gap: 14px; }
.cutaway li { counter-increment: c; padding-left: 44px; position: relative; color: var(--muted); } .cutaway li b { color: #fff; font-weight: 400; }
.cutaway li::before { content: counter(c); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-family: var(--head); font-size: 14px; }
.cut-pic { border-radius: 14px; overflow: hidden; aspect-ratio: 72 / 46; }
.bp .slide { transform-box: fill-box; }
@media (max-width: 980px) { .cutaway { grid-template-columns: 1fr; } }

/* plan viewer */
.pv { margin-top: clamp(40px, 5vw, 70px); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 40px); background: linear-gradient(160deg, #10181e, #0a0f13); }
.pv-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 60px); align-items: center; margin-bottom: 26px; }
.pv-slide { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; font-family: var(--head); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pv-slide input { -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #9fb48a, #d6b27a); outline: none; }
.pv-slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; cursor: grab; box-shadow: 0 0 0 6px rgba(255, 255, 255, .14), 0 6px 18px rgba(0, 0, 0, .5); }
.pv-slide input::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 0; cursor: grab; box-shadow: 0 0 0 6px rgba(255, 255, 255, .14); }
.pv-slide input:focus-visible { box-shadow: 0 0 0 3px rgba(214, 178, 122, .6); }
.split-bar { height: 10px; border-radius: 10px; background: rgba(159, 180, 138, .45); overflow: hidden; } .split-bar i { display: block; height: 100%; background: #efe3cc; transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.split-nums { display: flex; justify-content: space-between; margin-top: 8px; } .split-nums p { margin: 0; font-size: 14px; color: var(--muted); } .split-nums b { font-family: var(--head); font-weight: 300; font-size: clamp(20px, 2vw, 28px); color: #fff; margin-right: 4px; }
.pv-main { display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(20px, 3vw, 44px); align-items: center; }
.pv-stage { position: relative; aspect-ratio: 86 / 61; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #18222b, #0b1116); border: 1px solid var(--line); }
.fp { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.fp.enter { opacity: 0; transform: scale(.97); } .fp.leave { opacity: 0; transform: scale(1.02); }
.fp .lot { fill: rgba(159, 180, 138, .12); stroke: #d6b27a; stroke-width: .25; stroke-dasharray: 1.2 1; }
.fp .dot { fill: rgba(239, 227, 204, .16); } .fp .dot.big { fill: rgba(214, 178, 122, .5); }
.fp .rm { fill: #121a20; stroke: #121a20; stroke-width: .1; }
.fp .wl { stroke: #efe3cc; stroke-width: .38; stroke-linecap: square; } .fp .wl.ext { stroke-width: .7; } .wd-stage .fp .rm { stroke: #efe3cc; stroke-width: .5; }
.fp .win { stroke: #0b1116; stroke-width: .3; } .fp .gap { stroke: #121a20; stroke-width: .8; } .fp .leaf { stroke: #efe3cc; stroke-width: .2; fill: none; } .fp .swing { fill: none; stroke: rgba(239, 227, 204, .45); stroke-width: .13; stroke-dasharray: .5 .35; }
.fp .fd { fill: #d6b27a; } .fp .path { fill: rgba(239, 227, 204, .13); stroke: rgba(239, 227, 204, .3); stroke-width: .15; } .fp .rm.t-hall, .fp .rm.t-entry { fill: #161f26; }
.fp .rm.t-work { fill: #1d1a14; } .fp .rm.t-glass { fill: rgba(159, 180, 138, .2); stroke-dasharray: 1.6 .8; } .fp .rm.t-bath, .fp .rm.t-store { fill: #0f161b; }
.fp .fur { fill: none; stroke: rgba(239, 227, 204, .34); stroke-width: .22; } .fp .hair { stroke: rgba(239, 227, 204, .22); stroke-width: .18; }
.fp .deck { fill: rgba(239, 227, 204, .09); stroke: rgba(239, 227, 204, .4); stroke-width: .2; } .fp .plank { stroke: rgba(239, 227, 204, .09); stroke-width: .15; }
.fp .pool { fill: rgba(200, 214, 205, .2); stroke: #efe3cc; stroke-width: .3; } .fp .wave { fill: none; stroke: rgba(239, 227, 204, .35); stroke-width: .18; }
.fp .court { fill: rgba(159, 180, 138, .26); stroke: rgba(159, 180, 138, .8); stroke-width: .25; } .fp .bedrow { fill: rgba(159, 180, 138, .34); }
.fp .tree { fill: rgba(159, 180, 138, .3); stroke: rgba(159, 180, 138, .75); stroke-width: .2; } .fp .tree2 { fill: rgba(159, 180, 138, .6); }
.fp text { font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: .12em; }
.fp .rlab { font-size: 1.45px; fill: #efe3cc; } .fp .rlab.s { font-size: 1.05px; letter-spacing: .06em; } .fp .rlab.big { font-size: 3px; fill: #d6b27a; } .fp .rdim { font-size: 1.05px; fill: rgba(239, 227, 204, .5); letter-spacing: .06em; text-transform: none; }
.fp .olab { font-size: 1.2px; fill: #b9c9a6; } .fp .edge { font-size: 1.15px; fill: rgba(239, 227, 204, .6); } .fp .arrow, .fp .scale { fill: none; stroke: rgba(239, 227, 204, .6); stroke-width: .2; }
.pv-info .tag { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; }
.pv-info h3 { font-size: clamp(28px, 3vw, 44px); margin-bottom: 12px; } .pv-info p { color: var(--muted); margin: 0 0 16px; }
.pv-info ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 8px; } .pv-info li { padding-left: 22px; position: relative; color: #fff; } .pv-info li::before { content: ''; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--gold); }
.pv-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; margin-top: 26px; }
.pv-chips button { all: unset; cursor: pointer; box-sizing: border-box; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .2s; }
.pv-chips button:hover { border-color: rgba(214, 178, 122, .7); transform: translateY(-2px); } .pv-chips button.on { background: #fff; border-color: #fff; }
.pv-chips b { display: block; font-family: var(--head); font-weight: 400; font-size: 15.5px; color: #fff; } .pv-chips small { font-size: 12.5px; color: var(--muted); } .pv-chips button.on b { color: #000; } .pv-chips button.on small { color: #444; }
.pv-chips button.lock { border-style: dashed; border-color: rgba(214, 178, 122, .6); } .pv-chips button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.pv-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
@media (max-width: 980px) { .pv-top, .pv-main { grid-template-columns: 1fr; } .pv-chips { grid-template-columns: 1fr 1fr; } .fp .rlab { font-size: 1.7px; } .fp .rdim { display: none; } }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(40px, 5vw, 70px); }
.card { border-radius: 18px; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); transition: transform .5s cubic-bezier(.2, .7, .2, 1), border-color .5s; }
.card:hover { transform: translateY(-8px); border-color: rgba(214, 178, 122, .6); }
.card .pic { aspect-ratio: 16 / 10; overflow: hidden; } .card .pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s; } .card:hover .pic img { transform: scale(1.06); }
.card .body { padding: 22px 24px 26px; } .card h3 { font-size: 24px; margin-bottom: 8px; } .card p { color: var(--muted); margin: 0; font-size: 16px; }
.card .tag { font-family: var(--head); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 8px; }

/* fact strip and sources */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin-top: 26px; }
.facts div { padding: 18px 18px 4px 0; } .facts b { display: block; font-family: var(--head); font-weight: 200; font-size: clamp(26px, 2.6vw, 38px); color: #fff; line-height: 1.1; } .facts span { font-size: 14px; color: var(--muted); }
.status { display: inline-block; font-family: var(--head); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-bottom: 12px; }
.status.proven { border-color: rgba(214, 178, 122, .6); color: var(--gold); }
.src { font-size: 13px; color: var(--muted); margin-top: 14px; } .src a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; } .src a:hover { color: #fff; }
.cta-band { text-align: center; padding: clamp(90px, 12vw, 170px) 0; overflow: hidden; background: #000; } .cta-band .shade { position: absolute; inset: 0; background: rgba(4, 8, 10, .68); } .cta-band .wrap { position: relative; } .cta-band h2 { margin: 0 auto 30px; max-width: 800px; }
.chapters { position: sticky; top: 64px; z-index: 20; background: rgba(8, 12, 15, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.chapters .wrap { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; } .chapters .wrap::-webkit-scrollbar { display: none; }
.chapters a { white-space: nowrap; font-family: var(--head); font-size: 14px; color: var(--muted); text-decoration: none; padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s; } .chapters a:hover, .chapters a.on { color: #000; background: #fff; }

@media (max-width: 980px) {
  .idea, .cfg { grid-template-columns: 1fr; } .idea.flip .idea-pic { order: 0; } .cfg-stage { position: static; order: -1; } .cards, .facts { grid-template-columns: 1fr; }
  .sub-hero { min-height: 70vh; }
}
@media (prefers-reduced-motion: reduce) { .bp .slide, .bp .swing, .bp .flow { animation: none; } .bp .draw { stroke-dashoffset: 0; transition: none; } .room { transition: none; } }

.cards.four { grid-template-columns: repeat(4, 1fr); } .cards.four h3 { font-size: 21px; }
@media (max-width: 1100px) { .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards.four { grid-template-columns: 1fr; } }

.idea-pic .inset { position: absolute; inset: auto 16px 16px auto; width: 34%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .5); box-shadow: 0 14px 40px rgba(0, 0, 0, .6); }
.walldemo { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(24px, 4vw, 60px); align-items: center; margin-top: clamp(50px, 7vw, 100px); padding: clamp(22px, 3.4vw, 46px); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #10181e, #0a0f13); }
.walldemo h3 { font-size: clamp(26px, 3vw, 42px); margin-bottom: 12px; } .walldemo p { color: var(--muted); }
.wd-read { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: baseline; margin-top: 22px; } .wd-read b { color: #fff; font-family: var(--head); font-weight: 400; } .wd-read span { font-family: var(--head); font-weight: 200; font-size: clamp(22px, 2.4vw, 32px); color: var(--gold); }
.wd-stage { position: relative; aspect-ratio: 36 / 20; border-radius: 14px; overflow: hidden; background: radial-gradient(circle at 30% 20%, #18222b, #0b1116); border: 1px solid var(--line); touch-action: none; user-select: none; }
.wd-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wd-stage .wall { cursor: ew-resize; } .wd-stage .wall rect.hit { fill: transparent; } .wd-stage .wall rect.bar { fill: #d6b27a; } .wd-stage .wall circle { fill: #fff; stroke: #d6b27a; stroke-width: .25; }
.wd-stage .wall.drag rect.bar { filter: drop-shadow(0 0 1px #d6b27a); }
.wd-stage .rm { transition: none; } .wd-stage .anchor { fill: rgba(214, 178, 122, .55); }
@media (max-width: 980px) { .walldemo { grid-template-columns: 1fr; } }

.pv-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; margin-bottom: 18px; border: 1px solid var(--line); }
@media (max-width: 980px) { .pv-photo { display: none; } }

.cards.proof .card .body { padding: 26px 24px; } .cards.proof h3 { font-size: 22px; } .cards.proof p { font-size: 15.5px; }
.proof-note { margin-top: 30px; max-width: 820px; border-left: 2px solid var(--gold); padding-left: 16px; color: var(--muted); } .proof-note b { color: #fff; font-weight: 400; }
.also { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.also span { font-family: var(--head); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.also ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; } .also li { font-size: 15px; color: var(--text); padding-left: 16px; position: relative; } .also li::before { content: ''; position: absolute; left: 0; top: .7em; width: 7px; height: 1px; background: var(--gold); }
.also a { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; } .also a:hover { color: #fff; }

/* engineering chapters: wide picture with the numbers on it, then two columns of text */
.chap { margin-top: clamp(70px, 9vw, 130px); scroll-margin-top: 130px; }
.chap-head { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 30px); margin-bottom: clamp(18px, 2.4vw, 30px); }
.chap-n { font-family: var(--head); font-weight: 200; font-size: clamp(56px, 7.5vw, 112px); line-height: .82; color: var(--gold); }
.chap-head .status { margin-bottom: 10px; } .chap-head h3 { font-size: clamp(26px, 3.4vw, 48px); max-width: 880px; }
.chap-media { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--paper-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.chap-media > img, .chap-media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chap-facts { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); padding: clamp(40px, 6vw, 90px) clamp(18px, 3vw, 40px) clamp(16px, 2vw, 28px); background: linear-gradient(180deg, transparent, rgba(4, 8, 10, .93) 62%); gap: clamp(14px, 3vw, 44px); }
.chap-facts b { display: block; font-family: var(--head); font-weight: 200; font-size: clamp(26px, 3.4vw, 50px); line-height: 1.05; color: #fff; } .chap-facts span { font-size: clamp(13px, 1.1vw, 15.5px); color: rgba(255, 255, 255, .82); display: block; margin-top: 4px; max-width: 300px; }
.chap-body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(26px, 4.5vw, 72px); margin-top: clamp(24px, 3vw, 40px); align-items: start; }
.chap-text p { color: var(--muted); margin: 0 0 14px; font-size: clamp(16px, 1.25vw, 18px); } .chap-text p:first-child { color: var(--text); }
.chap-text .open { font-size: 15.5px; border-left: 2px solid var(--gold); padding-left: 14px; margin-top: 22px; } .chap-text .open b { color: #fff; font-weight: 400; }
.chap-side .also { margin-top: 0; } .chap-side .src { margin-top: 16px; }
@media (max-width: 900px) {
  .chap-media { aspect-ratio: auto; overflow: visible; box-shadow: none; background: none; } .chap-media > img, .chap-media > video { position: static; aspect-ratio: 16 / 10; border-radius: 16px; height: auto; display: block; }
  .chap-facts { position: static; background: none; padding: 16px 0 0; grid-template-columns: 1fr 1fr 1fr; } .chap-facts b { font-size: 24px; }
  .chap-body { grid-template-columns: 1fr; } .chap-head { align-items: flex-start; }
}
@media (max-width: 560px) { .chap-facts { grid-template-columns: 1fr; gap: 12px; } .chap-facts div { display: grid; grid-template-columns: 110px 1fr; align-items: baseline; gap: 12px; } .chap-facts span { margin: 0; } }

/* runner's map */
.run { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 60px); align-items: start; }
.run-map { position: relative; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #18232a, #0a1014); border: 1px solid var(--line); }
.rmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.rmap .prop { fill: rgba(159, 180, 138, .07); stroke: rgba(214, 178, 122, .5); stroke-width: 1; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.rmap .lake { fill: rgba(205, 216, 208, .28); stroke: rgba(239, 227, 204, .4); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap .belt { fill: rgba(120, 150, 105, .22); } .rmap .wall { fill: #121b20; stroke: #efe3cc; stroke-width: 2; vector-effect: non-scaling-stroke; }
.rmap .corr { stroke: rgba(159, 180, 138, .3); stroke-width: 1; vector-effect: non-scaling-stroke; } .rmap .canal { fill: none; stroke: rgba(205, 216, 208, .35); stroke-width: 5; vector-effect: non-scaling-stroke; }
.rmap .plaza { fill: rgba(239, 227, 204, .12); stroke: rgba(239, 227, 204, .5); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rmap .basin { fill: rgba(205, 216, 208, .3); } .rmap .tower { fill: #efe3cc; } .rmap .ringdeck { fill: none; stroke: rgba(239, 227, 204, .55); stroke-width: 1; vector-effect: non-scaling-stroke; } .rmap .ringdeck.in { stroke-dasharray: 3 3; }
.rmap .route { fill: none; stroke-width: 2; opacity: .28; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: opacity .5s, stroke-width .3s; }
.rmap .route.on { opacity: 1; stroke-width: 4.5; filter: drop-shadow(0 0 5px currentColor); } .rmap .route.r-ultra { stroke-dasharray: 2 5; } .rmap .route.r-ultra.on { stroke-dasharray: 3 6; }
.rmap .runner { stroke: #0a1014; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.rmap text { font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: .14em; fill: rgba(239, 227, 204, .75); }
.rmap .zl { font-size: 10px; } .rmap .tl { font-size: 3.6px; } .rmap .cl { font-size: .62px; letter-spacing: .08em; } .rmap .pvl { font-size: 6.5px; fill: #d6b27a; letter-spacing: .06em; } .rmap .north { display: none; }
.rmap .pv { fill: #0a1014; stroke: #d6b27a; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rmap .lv { opacity: 0; transition: opacity .6s; } .rmap[data-level="land"] .lv.land, .rmap[data-level="town"] .lv.town, .rmap[data-level="ring"] .lv.ring { opacity: 1; }
.rmap[data-level="town"] .lv.land:not(.pav) { opacity: .5; } .rmap[data-level="town"] .zl { opacity: 0; }
.run-legend { display: grid; gap: 6px; }
.run-legend button { all: unset; cursor: pointer; box-sizing: border-box; display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-radius: 12px; border: 1px solid transparent; transition: background .25s, border-color .25s; }
.run-legend button:hover { border-color: var(--line); } .run-legend button.on { background: rgba(255, 255, 255, .07); border-color: rgba(214, 178, 122, .55); }
.run-legend i { width: 18px; height: 4px; border-radius: 4px; } .run-legend b { font-family: var(--head); font-weight: 400; font-size: 16.5px; color: #fff; } .run-legend span { font-family: var(--head); font-size: 15px; color: var(--muted); }
.run-legend button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.run-info { margin-top: 20px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(160deg, #121b21, #0c1216); }
.run-info .tag { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 6px; } .run-info h3 { font-size: clamp(24px, 2.4vw, 34px); }
.run-dist { margin: 8px 0 12px; display: flex; align-items: baseline; gap: 14px; } .run-dist b { font-family: var(--head); font-weight: 200; font-size: clamp(38px, 4.4vw, 62px); color: #fff; line-height: 1; } .run-dist span { color: var(--muted); font-family: var(--head); font-size: 18px; }
.run-info p { color: var(--muted); margin: 0 0 14px; } .run-info dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; } .run-info dt { font-family: var(--head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-top: 3px; } .run-info dd { margin: 0; color: #fff; }
.chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .chips li { font-family: var(--head); font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(214, 178, 122, .5); color: #fff; }
@media (max-width: 980px) { .run { grid-template-columns: 1fr; } }

.sub-hero img.bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* town plan */
.tmap { position: absolute; inset: 0; width: 100%; height: 100%; }
.tmap .moat { fill: none; stroke: rgba(214, 228, 220, .45); stroke-width: 5.7; } .tmap .twall { fill: none; stroke: #efe3cc; stroke-width: 2; vector-effect: non-scaling-stroke; pointer-events: none; }
.tmap .dist { stroke: #0b1116; stroke-width: 1.4; vector-effect: non-scaling-stroke; fill-opacity: .3; cursor: pointer; transition: fill-opacity .3s; outline: none; }
.tmap .dist:hover, .tmap .dist.on, .tmap .dist:focus-visible { fill-opacity: .62; } .tmap .dist.k-green { fill-opacity: .34; } .tmap .dist.k-green.on, .tmap .dist.k-green:hover { fill-opacity: .7; }
.tmap text { font-family: 'Outfit', sans-serif; text-transform: uppercase; letter-spacing: .1em; pointer-events: none; }
.tmap .dl { font-size: 3px; fill: #f4ead6; } .tmap .tl { font-size: 3.6px; fill: rgba(239, 227, 204, .8); } .tmap .tl.s { font-size: 2.7px; letter-spacing: .06em; } .tmap .wl { font-size: 3px; fill: #f2cf6b; }
.tmap .ly { opacity: 0; transition: opacity .5s; pointer-events: none; } .tmap.show-water .ly.water, .tmap.show-transit .ly.transit, .tmap.show-walk .ly.walk { opacity: 1; }
.tmap .tcanal { fill: none; stroke: rgba(214, 228, 220, .75); stroke-width: 3; vector-effect: non-scaling-stroke; } .tmap .tcanal.thin { stroke-width: 2; } .tmap .tcanal.ring { stroke-width: 3; vector-effect: none; } .tmap .tbridge { fill: #efe3cc; } .tmap .tbasin { fill: rgba(214, 228, 220, .7); }
.tmap .mono { fill: none; stroke: #fff; stroke-width: 1.6; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; } .tmap .stn { fill: #fff; stroke: #0b1116; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tmap .gond { stroke: #e59a78; stroke-width: 1.2; stroke-dasharray: 1.5 3; vector-effect: non-scaling-stroke; } .tmap .tram { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; } .tmap .gatebox.island { fill: rgba(143, 174, 124, .85); } .tmap .gatebox.fair { fill: rgba(214, 178, 122, .32); } .tmap .gatebox.senior { fill: rgba(224, 165, 138, .4); } .tmap .gatebox { cursor: pointer; fill: rgba(224, 165, 138, .3); stroke: #efe3cc; stroke-width: 1; vector-effect: non-scaling-stroke; }
.tmap .wring { fill: none; stroke: #f2cf6b; stroke-width: 1; stroke-dasharray: 2 4; vector-effect: non-scaling-stroke; } .tmap .scalebar { stroke: rgba(239, 227, 204, .8); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#tLayers { margin-bottom: 18px; } #townMap { aspect-ratio: 256 / 236; }
.ledger2 { margin-top: 20px; display: grid; gap: 12px; } .ledger2 div { display: grid; grid-template-columns: 14px 1fr auto; gap: 12px; align-items: center; position: relative; padding-bottom: 9px; }
.ledger2 i { width: 14px; height: 14px; border-radius: 4px; opacity: .8; } .ledger2 span { font-size: 15.5px; color: var(--text); } .ledger2 b { font-family: var(--head); font-weight: 300; font-size: 19px; color: #fff; } .ledger2 b::after { content: ' acres'; font-size: 12px; color: var(--muted); }
.ledger2 em { position: absolute; left: 0; bottom: 0; height: 2px; border-radius: 2px; opacity: .8; } .ledger2 .tot { border-top: 1px solid var(--line); padding-top: 12px; } .ledger2 .tot b { color: var(--gold); }

/* illustrated map with pins */
.illmap { position: relative; margin-top: clamp(30px, 4vw, 54px); border-radius: 24px; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); max-width: 980px; margin-left: auto; margin-right: auto; }
.illmap img { display: block; width: 100%; height: auto; border-radius: 24px; }
.pin.l span { left: -8px; transform: translate(0, 8px); } .pin.r span { left: auto; right: -8px; transform: translate(0, 8px); } .pin.dn span { bottom: auto; top: 42px; }
.pin { all: unset; position: absolute; transform: translate(-50%, -50%); cursor: pointer; z-index: 2; }
.pin b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #0b1116; color: #fff; border: 2px solid #d6b27a; font-family: var(--head); font-weight: 400; font-size: 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .55); transition: transform .25s, background .25s, color .25s; }
.pin:hover b, .pin:focus-visible b { transform: scale(1.2); background: #d6b27a; color: #000; }
.pin span { position: absolute; left: 50%; bottom: 42px; transform: translate(-50%, 8px); width: 220px; padding: 12px 14px; border-radius: 12px; background: rgba(8, 12, 15, .95); border: 1px solid rgba(214, 178, 122, .6); color: var(--muted); font-size: 14px; line-height: 1.45; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: left; }
.pin span strong { display: block; color: #fff; font-family: var(--head); font-weight: 400; font-size: 16px; margin-bottom: 2px; }
.pin:hover span, .pin:focus-visible span, .pin:focus span { opacity: 1; transform: translate(-50%, 0); } .pin.l:hover span, .pin.l:focus span, .pin.r:hover span, .pin.r:focus span { transform: translate(0, 0); } .pin:hover, .pin:focus { z-index: 5; }
.illkey { list-style: none; padding: 0; margin: 28px auto 0; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 34px; }
.illkey li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: 15.5px; } .illkey li > b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #d6b27a; color: #d6b27a; font-family: var(--head); font-weight: 400; font-size: 13px; } .illkey strong { color: #fff; font-weight: 400; }
@media (max-width: 700px) { .illkey { grid-template-columns: 1fr; } .pin b { width: 24px; height: 24px; font-size: 12px; } .pin span { display: none; } }

/* 3D town model */
.map3d { position: relative; margin-top: clamp(30px, 4vw, 54px); aspect-ratio: 16 / 10; min-height: 420px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); background: linear-gradient(#7f9aa0 0%, #cdbf9f 38%, #e2c79b 52%, #e2c79b 100%); }
.map3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; opacity: 0; transition: opacity 1s; } .map3d.ready canvas { opacity: 1; } .map3d canvas:active { cursor: grabbing; }
.m3-tools { position: absolute; z-index: 3; top: 14px; right: 14px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.m3-tools button { font: 500 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #f4ead6; background: rgba(11, 17, 22, .72); border: 1px solid rgba(239, 227, 204, .28); border-radius: 999px; padding: 10px 14px; cursor: pointer; backdrop-filter: blur(8px); min-width: 38px; }
.m3-tools button:hover, .m3-tools button.on { background: rgba(201, 163, 106, .92); color: #0b1116; border-color: transparent; }
.m3-card { position: absolute; z-index: 3; left: 14px; bottom: 14px; width: min(340px, calc(100% - 28px)); padding: 18px 20px; border-radius: 18px; background: rgba(11, 17, 22, .8); border: 1px solid rgba(239, 227, 204, .18); backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s; pointer-events: none; } .map3d.picked .m3-card { opacity: 1; }
.m3-card .tag { font-family: var(--head); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 4px; } .m3-card h3 { font-size: 22px; margin: 0 0 2px; color: #f4ead6; } .m3-card p { margin: 0; color: rgba(244, 234, 214, .78); font-size: 14.5px; line-height: 1.5; } .m3-card .m3-acres { color: #f4ead6; font-family: var(--head); margin-bottom: 8px; }
.m3-label { position: absolute; z-index: 2; left: 0; top: 0; font: 500 11px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: #fff; background: rgba(11, 17, 22, .62); padding: 5px 9px; border-radius: 999px; white-space: nowrap; pointer-events: none; transition: opacity .3s; will-change: transform; }
.m3-hint { position: absolute; z-index: 3; right: 16px; bottom: 12px; margin: 0; font: 400 12px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: rgba(11, 17, 22, .7); transition: opacity .5s; } .map3d.used .m3-hint { opacity: 0; }
.m3-fail { display: none; position: absolute; inset: 0; margin: 0; place-items: center; text-align: center; padding: 30px; color: #0b1116; } .map3d.failed .m3-fail { display: grid; } .map3d.failed .m3-tools, .map3d.failed .m3-card, .map3d.failed .m3-hint { display: none; }
@media (max-width: 700px) { .map3d { aspect-ratio: 3 / 4; } .m3-hint { display: none; } .m3-label { font-size: 10px; } }

.tmap .tdetail { pointer-events: none; } .tmap .tdetail * { stroke: rgba(11, 17, 22, .55); stroke-width: .6; vector-effect: non-scaling-stroke; } .tmap .tdetail .bld { fill: #efe3cc; } .tmap .tdetail .turf { fill: #8fbf78; } .tmap .tdetail .track { fill: #c9794a; } .tmap .tdetail .clay { fill: #d39468; } .tmap .tdetail .sand { fill: #e9d7ab; } .tmap .tdetail .pool { fill: rgba(214, 228, 220, .85); }

/* how the money works */
.mcols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); margin-top: clamp(36px, 5vw, 60px); }
.mcol { padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(160deg, #121b21, #0c1216); } .mcol.gold { border-color: rgba(201, 163, 106, .55); }
.mcol .tag { font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.mlist { list-style: none; margin: 0; padding: 0; } .mlist li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--muted); } .mlist li:first-child { border-top: 0; } .mlist b { color: #fff; font-family: var(--head); font-weight: 400; white-space: nowrap; }
.mlist li.tot { border-top: 1px solid rgba(239, 227, 204, .5); margin-top: 4px; } .mlist li.tot span { color: #fff; } .mlist li.tot b { font-size: 24px; } .mcol.gold .mlist li.tot b { color: var(--gold); }
.mstack { display: flex; height: 26px; border-radius: 999px; overflow: hidden; margin-top: clamp(36px, 5vw, 60px); gap: 3px; } .mstack i { display: block; background: rgba(239, 227, 204, .3); } .mstack i.gold { background: var(--gold); } .mstack i.s1 { background: rgba(239, 227, 204, .55); } .mstack i.s2 { background: rgba(239, 227, 204, .38); } .mstack i.s3 { background: rgba(239, 227, 204, .22); }
.mrows { margin-top: 22px; } .mcol .mrows { margin-top: 0; }
.mrow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); } .mrow:first-child { border-top: 0; }
.mrow span { color: #fff; } .mrow em { display: block; font-style: normal; font-size: 13.5px; color: var(--muted); }
.mrow i { display: block; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); } .mrow u { display: block; height: 100%; border-radius: 999px; background: rgba(239, 227, 204, .6); text-decoration: none; } .mrow.gold u { background: var(--gold); }
.mrow b { font-family: var(--head); font-weight: 400; font-size: 19px; color: #fff; white-space: nowrap; min-width: 92px; text-align: right; } .mrow.gold b { color: var(--gold); }
@media (max-width: 900px) { .mcols { grid-template-columns: 1fr; } .mrow { grid-template-columns: 1fr auto; } .mrow i { display: none; } }
