/* TRIMEX: split-screen scrollytelling. A sticky visual changes scene per chapter; text scrolls beside it. Paper + navy + signal orange. */
:root {
  --paper: #F3F1EA; --navy: #0F1B2D; --orange: #FF6B35; --sky: #E8EFF5; --mut: #566075;
  --accent: var(--orange); --line: rgba(15, 27, 45, .18); --hdr-bg: rgba(243, 241, 234, .92);
  --pad: clamp(1.25rem, 5vw, 4.5rem); --section: clamp(5rem, 11vw, 9rem); --sans: "Heebo", system-ui, sans-serif;
  --loader-bg: var(--navy); --loader-fg: var(--paper);
}
body { background: var(--paper); color: var(--navy); font: 300 1.0625rem/1.7 var(--sans); }
h1, h2, h3 { font-weight: 900; line-height: 1; letter-spacing: -.02em; }
em { font-style: normal; color: var(--orange); } i { font-style: normal; }
.tag { font-weight: 700; font-size: .8rem; letter-spacing: .2em; color: var(--orange); margin-bottom: 1.2rem; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--mut); max-width: 38ch; font-weight: 400; }
.loader-brand { font-weight: 900; letter-spacing: .04em; } .loader-bar { position: absolute; inset-inline: 0; bottom: 0; height: 6px; background: var(--orange); transform-origin: right; animation: ld 1.5s cubic-bezier(.65, 0, .35, 1) forwards; } @keyframes ld { from { transform: scaleX(0); } }
.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); background: rgba(243, 241, 234, .85); backdrop-filter: blur(8px); padding-block: .9rem; }
.nav-l ul { gap: clamp(1rem, 3vw, 2.2rem); } .site-header li a { font-size: .92rem; font-weight: 500; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 900; font-size: 1.6rem; letter-spacing: .06em; } .brand b { width: 1rem; height: 1.4rem; background: var(--orange); box-shadow: .55rem .35rem 0 var(--navy); margin-inline-end: .6rem; }
.nav-cta { justify-self: end; background: var(--navy); color: var(--paper); padding: .55rem 1.3rem; font-weight: 700; font-size: .92rem; transition: background .3s; } .nav-cta:hover { background: var(--orange); }
.btn { display: inline-block; border: 0; cursor: pointer; background: var(--navy); color: var(--paper); font: 700 1rem var(--sans); padding: 1.05rem 2.4rem; will-change: transform; transition: background .3s; } .btn:hover { background: var(--orange); }
.link { border-bottom: 2px solid var(--navy); padding-block: .2rem; font-weight: 500; } .link span { display: inline-block; transition: transform .4s; } .link:hover span { transform: translateX(-6px); }

/* story: sticky visual + scrolling chapters */
.story { display: grid; grid-template-columns: 1fr 1fr; position: relative; z-index: 1; }
.chapters { order: 1; padding-inline: var(--pad); } .vis { order: 2; }
.ch { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 1.2rem; position: relative; border-bottom: 1px solid var(--line); }
.num { position: absolute; top: 5.5rem; inset-inline-end: 0; font-weight: 900; font-size: clamp(5rem, 11vw, 10rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--line); direction: ltr; }
.ch h1 { font-size: clamp(3rem, 6.4vw, 6.4rem); } .ch h2 { font-size: clamp(2.4rem, 4.8vw, 4.6rem); }
.acts { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; margin-top: .6rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-top: .6rem; } .facts li { color: var(--mut); font-weight: 500; } .facts b { display: block; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 900; color: var(--navy); line-height: 1; direction: ltr; text-align: start; unicode-bidi: isolate; }
.vis { position: sticky; top: 0; height: 100svh; overflow: hidden; background: var(--sky); border-inline-start: 1px solid var(--line); }
.scene { position: absolute; inset: 0; opacity: 0; display: grid; place-items: center; } .scene.is-on { opacity: 1; }

/* A: skyline */
.sA .skyline { position: absolute; inset-inline: 0; bottom: 0; height: 52%; display: flex; align-items: flex-end; justify-content: space-between; padding-inline: 3%; --win: #B9C9D6; }
.bld { --bld: #223552; display: block; width: var(--w); height: var(--h); transform-origin: 50% 100%; background-color: var(--win); background-image: linear-gradient(90deg, var(--bld) 55%, transparent 0), linear-gradient(var(--bld) 55%, transparent 0); background-size: 16px 20px; } .bld.back { --bld: #5E7390; opacity: .85; }
.sun-orbit { position: absolute; left: 50%; top: 82%; width: 0; height: 0; } .sun { position: absolute; left: -9vw; top: -62vh; width: clamp(70px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; background: var(--orange); box-shadow: 0 0 80px 20px rgba(255, 107, 53, .35); }
.cloud { position: absolute; width: 130px; height: 36px; border-radius: 36px; background: rgba(255, 255, 255, .85); box-shadow: 34px -16px 0 8px rgba(255, 255, 255, .85), -30px -10px 0 2px rgba(255, 255, 255, .85); left: -15%; animation: drift 60s linear infinite; } .c1 { top: 16%; } .c2 { top: 32%; animation-duration: 85s; animation-delay: -35s; transform: scale(.7); }
@keyframes drift { to { translate: 140vw 0; } }
.bird { position: absolute; width: 38px; left: -10%; will-change: transform; } .b1 { top: 22%; } .b2 { top: 30%; width: 28px; } .b3 { top: 14%; width: 22px; }
/* B: blueprint */
.sB { background: transparent; } .plan { width: min(82%, 620px); } .plan path { stroke-dasharray: 1; stroke-dashoffset: calc(1 - min(1, var(--p, 1) * var(--k, 1) * 1.1)); }
.compass { position: absolute; top: 9%; inset-inline-start: 8%; width: clamp(70px, 9vw, 120px); }
.ping { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); } .ping::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid var(--orange); animation: ping 2s ease-out infinite; } .p1 { top: 38%; inset-inline-start: 30%; } .p2 { top: 58%; inset-inline-start: 66%; } .p2::after { animation-delay: -1s; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
/* C: house + radar */
.radar { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%; border-radius: 50%; border: 2px solid var(--orange); animation: radar 4s ease-out infinite; } .r2 { animation-delay: -1.3s; } .r3 { animation-delay: -2.6s; }
@keyframes radar { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.house { width: min(64%, 440px); position: relative; filter: drop-shadow(0 20px 30px rgba(15, 27, 45, .25)); }
.sign { position: absolute; top: 18%; inset-inline-end: 14%; width: 120px; transform-origin: 50% 0; } .sign b { display: block; background: var(--navy); color: var(--paper); text-align: center; padding: .8rem .4rem; font-weight: 900; margin-top: 46px; border: 3px solid var(--orange); } .rope { position: absolute; left: 50%; top: 0; width: 2px; height: 48px; background: var(--navy); }
.pin { position: absolute; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; background: var(--orange); rotate: -45deg; box-shadow: 0 8px 14px rgba(0, 0, 0, .2); } .pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; } .pn1 { top: 20%; inset-inline-start: 18%; } .pn2 { top: 64%; inset-inline-start: 12%; } .pn3 { top: 68%; inset-inline-end: 12%; }
/* D: negotiation */
.ringx { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 2px dashed var(--orange); } .x1 { width: 58%; aspect-ratio: 1; margin: -29% 0 0 -29%; animation: spin 26s linear infinite; } .x2 { width: 40%; aspect-ratio: 1; margin: -20% 0 0 -20%; border-color: var(--navy); animation: spin 16s linear infinite reverse; }
.tag-price { position: relative; transform-origin: 50% 0; text-align: center; background: var(--navy); color: var(--paper); padding: 2rem 2.4rem; margin-top: 60px; border-bottom: 6px solid var(--orange); } .tag-price span { display: block; color: var(--orange); font-weight: 700; letter-spacing: .2em; font-size: .8rem; } .tag-price strong { display: block; font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; } .tag-price .rope { background: var(--paper); height: 62px; top: -62px; }
.coin { position: absolute; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 30%, #FFE08A, #E0A526); color: #7a5300; font-weight: 900; box-shadow: 0 8px 16px rgba(0, 0, 0, .22); } .k1 { top: 16%; inset-inline-start: 14%; } .k2 { top: 24%; inset-inline-end: 12%; width: 40px; height: 40px; } .k3 { bottom: 18%; inset-inline-start: 18%; width: 36px; height: 36px; } .k4 { bottom: 14%; inset-inline-end: 20%; width: 64px; height: 64px; }
/* E: key */
.sE { background: transparent; } .key { height: 62%; filter: drop-shadow(0 16px 20px rgba(255, 107, 53, .35)); transform-origin: 50% 20%; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 18px; background: var(--orange); opacity: 0; } .confetti i:nth-child(3n) { background: #fff; } .confetti i:nth-child(4n) { background: #3E7CB1; } .confetti i:nth-child(5n) { background: #FFD166; }
.confetti i:nth-child(1) { left: 6%; } .confetti i:nth-child(2) { left: 16%; } .confetti i:nth-child(3) { left: 26%; } .confetti i:nth-child(4) { left: 35%; } .confetti i:nth-child(5) { left: 44%; } .confetti i:nth-child(6) { left: 53%; } .confetti i:nth-child(7) { left: 62%; } .confetti i:nth-child(8) { left: 70%; } .confetti i:nth-child(9) { left: 78%; } .confetti i:nth-child(10) { left: 86%; } .confetti i:nth-child(11) { left: 92%; } .confetti i:nth-child(12) { left: 30%; }
.vis[data-dark="1"] .scene { color: #fff; }

/* listings */
.listings { position: relative; z-index: 1; padding: var(--section) var(--pad); }
.l-head h2 { font-size: clamp(2.4rem, 6vw, 5.4rem); max-width: 12ch; margin-bottom: 3rem; }
.rows { border-top: 2px solid var(--navy); } .row { position: relative; display: grid; grid-template-columns: 4rem 1.4fr 1fr 7rem 10rem; gap: 1rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); cursor: pointer; transition: padding .4s, background .4s, color .4s; overflow: hidden; }
.row::before { content: ""; position: absolute; inset: 0; background: var(--c, var(--orange)); transform: scaleX(0); transform-origin: right; transition: transform .5s cubic-bezier(.22, 1, .36, 1); z-index: -1; } .row:hover { padding-inline: 1.2rem; color: #fff; } .row:hover::before { transform: scaleX(1); }
.rn { font-weight: 900; color: var(--orange); direction: ltr; } .row:hover .rn { color: #fff; } .row h3 { font-size: clamp(1.4rem, 2.6vw, 2.4rem); } .rl, .rm { color: var(--mut); font-weight: 500; } .row:hover .rl, .row:hover .rm { color: rgba(255, 255, 255, .85); } .rp { font-weight: 900; font-size: 1.15rem; text-align: end; direction: ltr; }
.l-note { margin-top: 1.2rem; color: var(--mut); font-size: .85rem; }
.peek { position: fixed; left: 0; top: 0; width: 220px; height: 150px; pointer-events: none; z-index: 150; opacity: 0; transform: translate(-50%, -50%) rotate(-4deg); border: 3px solid var(--navy); background: var(--c, var(--orange)); overflow: hidden; } .pk-b { position: absolute; inset: 22% 18% 0 18%; background-color: #BFD6E6; --bld: #0F1B2D; background-image: linear-gradient(90deg, var(--bld) 60%, transparent 0), linear-gradient(var(--bld) 60%, transparent 0); background-size: 18px 22px; } .pk-w { position: absolute; inset-inline: 0; bottom: 0; height: 14%; background: #0F1B2D; }

/* estimate */
.estimate { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--section) var(--pad); background: var(--navy); color: var(--paper); align-items: center; overflow: hidden; }
.estimate h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin-bottom: 1.2rem; } .estimate .lead { color: rgba(243, 241, 234, .7); }
.e-card { position: relative; display: grid; gap: 1.6rem; padding: clamp(1.4rem, 3vw, 2.6rem); border: 2px solid var(--orange); background: rgba(255, 255, 255, .04); } .e-card label { display: block; font-weight: 500; color: rgba(243, 241, 234, .8); } .e-card label select, .e-card label input { margin-top: .7rem; display: block; } .e-card b { color: var(--orange); }
.e-card select { font: 500 1.05rem var(--sans); padding: .8rem 1rem; background: var(--paper); color: var(--navy); border: 0; } input[type="range"] { appearance: none; height: 6px; background: rgba(255, 255, 255, .25); border-radius: 6px; width: 100%; } input[type="range"]::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); border: 4px solid var(--paper); cursor: pointer; box-shadow: 0 0 0 0 rgba(255, 107, 53, .5); transition: box-shadow .3s; } input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 10px rgba(255, 107, 53, .25); }
.e-out { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 1rem; } .e-out span { color: var(--orange); font-weight: 700; letter-spacing: .15em; font-size: .8rem; } .e-out strong { display: block; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 900; line-height: 1.1; text-align: start; font-variant-numeric: tabular-nums; }
.e-coin { position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 30%, #FFE08A, #E0A526); color: #7a5300; font-weight: 900; box-shadow: 0 8px 16px rgba(0, 0, 0, .3); } .ec1 { top: -22px; inset-inline-end: 12%; } .ec2 { bottom: -18px; inset-inline-start: 18%; width: 34px; height: 34px; } .ec3 { top: 40%; inset-inline-end: -20px; width: 38px; height: 38px; }

.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); padding: var(--section) var(--pad); }
.contact h2 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 1rem; }
.details { margin-top: 2rem; display: grid; gap: 1rem; } .details div { border-top: 2px solid var(--navy); padding-top: .7rem; } .details dt { font-size: .75rem; letter-spacing: .15em; font-weight: 700; color: var(--orange); } .details dd { margin: 0; font-weight: 500; }
.form { display: grid; gap: 1.3rem; align-content: start; } .form label { display: grid; gap: .35rem; font-size: .9rem; font-weight: 500; color: var(--mut); }
.form input, .form select, .form textarea { font: 400 1.05rem var(--sans); color: var(--navy); background: #fff; border: 2px solid var(--navy); padding: .8rem 1rem; width: 100%; border-radius: 0; } .form input:focus, .form select:focus, .form textarea:focus { outline: 0; box-shadow: 6px 6px 0 var(--orange); }
.form input[aria-invalid="true"] { border-color: var(--orange); } .form .btn { justify-self: start; } .form-note { min-height: 1.4em; color: var(--orange); font-weight: 500; }
.site-footer { position: relative; z-index: 1; background: var(--navy); color: rgba(243, 241, 234, .6); padding: clamp(3rem, 8vw, 6rem) var(--pad) 2rem; overflow: hidden; font-size: .85rem; }
.badge { position: absolute; top: 2rem; inset-inline-end: var(--pad); width: clamp(110px, 13vw, 180px); } .wordmark { overflow: hidden; line-height: .85; margin: 3rem 0 2rem; } .wordmark span { display: block; direction: ltr; text-align: center; font-weight: 900; font-size: clamp(6rem, 24vw, 22rem); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 2px var(--paper); }

/* floating shapes */
.o-ring { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--orange); animation: spin 20s linear infinite; border-top-color: transparent; } .o-ring.r2 { width: 40px; height: 40px; border-color: var(--navy); border-bottom-color: transparent; animation-direction: reverse; }
.o-sq { width: 34px; height: 34px; background: var(--navy); animation: spin 12s linear infinite; } .o-sq.s2 { background: var(--orange); width: 24px; height: 24px; animation: tumble 10s linear infinite; }
.o-half { width: 70px; height: 35px; background: var(--orange); border-radius: 70px 70px 0 0; animation: bobv 5s ease-in-out infinite; } .o-tri { width: 0; height: 0; border-inline: 20px solid transparent; border-bottom: 34px solid var(--navy); animation: spin 14s linear infinite; }
.motion-toggle { bottom: 1rem; }
@media (max-width: 860px) {
  .site-header { grid-template-columns: auto 1fr auto; } .nav-l { display: none; } .brand { justify-self: start; }
  .story { grid-template-columns: 1fr; } .vis { order: 1; height: 42svh; position: sticky; top: 3.6rem; z-index: 2; } .chapters { order: 2; } .ch { min-height: 70svh; } .num { display: none; }
  .row { grid-template-columns: 2.4rem 1fr auto; } .rl, .rm { display: none; } .estimate, .contact { grid-template-columns: 1fr; }
}

/* a11y: text-safe orange on light backgrounds (>= 4.5:1), bright orange stays on navy */
:root { --o-t: #B33708; }
.tag, em, .rn, .details dt, .form-note { color: var(--o-t); }
.estimate .tag, .estimate em, .estimate .e-out span, .e-card b { color: var(--orange); }
.btn:hover, .nav-cta:hover { background: var(--o-t); }
.row:hover { color: #fff; }
.num { -webkit-text-stroke-color: rgba(15, 27, 45, .3); }
