/* MDV company site. One stylesheet, no framework. One idea runs through it: a building at night, where every lit window is a unit
   and its colour is the state of its rent. Everything else stays quiet so that drawing can carry the page. */
:root {
  --night: #050d1a;
  --night-2: #08162b;
  --blue: #0f2f57;
  --blue-2: #0b2447;
  --glass: rgba(15, 40, 74, .55);
  --glass-2: rgba(15, 40, 74, .78);
  --line: rgba(169, 195, 228, .16);
  --line-2: rgba(169, 195, 228, .34);
  --chalk: #eaf2fb;
  --chalk-2: #9fb8d8;
  --paid: #5fcfa0;
  --due: #f2b233;
  --late: #f26b5b;
  --focus: #f2b233;
  --disp: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--night); color: var(--chalk); font: 400 17px/1.62 var(--disp); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* a faint blueprint grid and two soft pools of light, fixed behind everything */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% 4%, rgba(30, 90, 170, .38), transparent 70%),
    radial-gradient(700px 500px at 6% 62%, rgba(242, 178, 51, .07), transparent 70%),
    linear-gradient(rgba(143, 180, 227, .045) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(143, 180, 227, .045) 1px, transparent 1px) 0 0 / 48px 48px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--chalk); color: var(--blue-2); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
html[data-path="owner"] [data-path="firm"], html[data-path="firm"] [data-path="owner"] { display: none; }
.fine { color: var(--chalk-2); font-size: 14px; margin: 0; }

/* ── the name: a small lit building and the letters ── */
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .06em; font-variation-settings: "wdth" 100; }
.mark { width: 32px; height: 32px; display: block; flex: none; filter: drop-shadow(0 0 10px rgba(95, 207, 160, .35)); }

/* ── navigation ── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(5, 13, 26, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--chalk-2); transition: color .2s; }
.nav-links a:hover { color: var(--chalk); }
.nav-cta { font-size: 15px; font-weight: 700; text-decoration: none; color: #2b1d00; background: var(--due); padding: 9px 18px; border-radius: 999px; transition: background .2s, transform .2s; }
.nav-cta:hover { background: #ffc552; }
.prog { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--paid), var(--due)); transform-origin: 0 50%; transform: scaleX(var(--prog, 0)); opacity: .9; }

/* ── the drawing (shared by the hero and the story) ── */
.elev { width: 100%; height: auto; display: block; overflow: visible; }
.elev .line { fill: none; stroke: var(--chalk); stroke-width: 1.6; }
.elev .hair, .elev .dim { stroke: var(--chalk-2); stroke-width: 1; opacity: .45; }
.elev .note { fill: var(--chalk-2); font: 600 11px var(--disp); letter-spacing: .04em; }
.elev.draw .body { fill: url(#hbody); }
#story-elev .body { fill: url(#sbody); }
.elev .door { fill: var(--blue-2); stroke: var(--chalk-2); stroke-width: 1.2; }
.elev .sk { fill: #0a1f3d; stroke: rgba(70, 120, 190, .45); stroke-width: 1; }
.elev .skw { fill: var(--chalk-2); opacity: .3; }
.elev .win rect { fill: rgba(143, 180, 227, .06); stroke: rgba(159, 184, 216, .7); stroke-width: 1.2; transition: fill .5s, opacity .5s, stroke .3s, filter .5s; }
.elev .win line { stroke: var(--chalk-2); stroke-width: 1; opacity: .7; }
.elev .win.p rect { fill: var(--paid); filter: drop-shadow(0 0 7px rgba(95, 207, 160, .55)); }
.elev .win.d rect { fill: var(--due); filter: drop-shadow(0 0 7px rgba(242, 178, 51, .55)); }
.elev .win.l rect { fill: var(--late); filter: drop-shadow(0 0 8px rgba(242, 107, 91, .65)); }
.elev .win.v rect { fill: transparent; stroke-dasharray: 4 3; }
.elev .win.p line, .elev .win.d line, .elev .win.l line { stroke: var(--blue-2); opacity: .5; }
.elev .win:hover rect { stroke: #fff; stroke-width: 2.4; }
.elev .win.dim rect { opacity: .2; filter: none; }
.elev .win.dim line { opacity: .12; }
.elev .win.mine rect { stroke: #fff; stroke-width: 2.6; }
.elev .win.ping rect { stroke: #fff; stroke-width: 3; }
.elev .badge { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .35s, transform .35s; pointer-events: none; }
.elev .badge.on { opacity: 1; transform: scale(1); }
.elev .badge circle { stroke-width: 2.5; }
.elev .badge text { font: 800 14px var(--disp); }
.elev .badge.fix circle { fill: #fff; stroke: var(--late); }
.elev .badge.fix text { fill: var(--late); }
.elev .badge.ok circle { fill: #fff; stroke: var(--paid); }
.elev .badge.ok text { fill: #0f7a52; }
@media (prefers-reduced-motion: no-preference) {
  .elev.draw .line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s .2s ease-out forwards; }
  .elev.draw .win { animation: light .6s both; animation-delay: calc(1.5s + var(--i, 0) * 45ms); }
  .elev.draw .sk, .elev.draw .skw { animation: fade 1.6s .1s both; }
  .win.ping rect { animation: ping 1.3s ease-out; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes light { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes ping { 0% { stroke-width: 7; stroke: #fff; } 100% { stroke-width: 1.2; } }
.tip { position: fixed; z-index: 55; pointer-events: none; background: var(--chalk); color: var(--blue-2); font-size: 13px; font-weight: 600; padding: 4px 9px; border-radius: 4px; transform: translate(12px, -34px); opacity: 0; }
.tip.on { opacity: 1; }

/* ── hero: the first screen ── */
.hero { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; padding-block: 96px 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 24px 36px; align-items: center; }
.who { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 28px; background: rgba(5, 13, 26, .4); }
.who-btn { font: inherit; font-size: 15px; font-weight: 600; color: var(--chalk); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background .2s; }
.who-btn[aria-pressed="true"] { background: var(--chalk); color: var(--blue-2); }
.who-btn:not([aria-pressed="true"]):hover { background: rgba(234, 242, 251, .14); }
h1 { font-size: clamp(44px, 5.9vw, 92px); line-height: .96; letter-spacing: -.04em; font-weight: 780; font-variation-settings: "wdth" 84; margin: 0 0 24px; max-width: 10.5ch; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--chalk-2); max-width: 40ch; margin: 0 0 34px; }
.cta-row { margin: 0 0 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.cta { display: inline-block; background: var(--due); color: #2b1d00; font: inherit; font-weight: 700; padding: 15px 28px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; box-shadow: 0 10px 30px -10px rgba(242, 178, 51, .6); transition: background .2s, transform .2s, box-shadow .2s; }
.cta:hover { background: #ffc552; transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(242, 178, 51, .75); }
.sub { color: var(--chalk); font-size: 16px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.sub:hover { border-bottom-color: var(--chalk); }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; color: var(--chalk-2); font-size: 14.5px; }
.assure li { position: relative; padding-left: 18px; }
.assure li::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-radius: 2px; background: var(--paid); box-shadow: 0 0 8px rgba(95, 207, 160, .7); }
.hero-fig { margin: 0; position: relative; }
.hero-fig { perspective: 1400px; }
.hero-fig .elev { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .5s cubic-bezier(.2, .8, .2, 1); will-change: transform; }
.feed { margin: 14px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-height: 62px; align-items: stretch; }
.ev { display: grid; grid-template-columns: 10px 1fr; align-items: baseline; gap: 1px 9px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(8, 22, 43, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; line-height: 1.3; }
.ev i { width: 8px; height: 8px; border-radius: 50%; align-self: center; grid-row: 1 / span 2; background: var(--paid); box-shadow: 0 0 9px currentColor; color: var(--paid); }
.ev.d i { background: var(--due); color: var(--due); } .ev.l i { background: var(--late); color: var(--late); }
.ev b { font-weight: 700; } .ev span { color: var(--chalk-2); font-size: 13.5px; }
@media (prefers-reduced-motion: no-preference) { .ev { animation: evin .5s cubic-bezier(.2, .8, .2, 1); } .ev.out { animation: evout .4s forwards; } }
@keyframes evin { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes evout { to { opacity: 0; transform: translateY(-8px); } }
.live { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-weight: 700; font-size: 17px; }
.live .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--paid); box-shadow: 0 0 0 0 rgba(95, 207, 160, .6); }
@media (prefers-reduced-motion: no-preference) { .live .pulse { animation: pulse 2.2s infinite; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95, 207, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(95, 207, 160, 0); } }
.live-sub { color: var(--chalk-2); font-weight: 400; font-size: 14px; }

/* ── section heads ── */
section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 760; font-variation-settings: "wdth" 88; margin: 0 0 16px; text-wrap: balance; max-width: 18ch; }
.head { margin-bottom: clamp(34px, 5vw, 56px); }
@media (min-width: 901px) { .head:not(.center) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 56px; align-items: end; } .head:not(.center) h2 { margin: 0; } .head:not(.center) .intro { padding-bottom: 8px; } }
.head.center { text-align: center; } .head.center h2, .head.center .intro { margin-inline: auto; }
.intro { color: var(--chalk-2); max-width: 54ch; margin: 0; font-size: clamp(17px, 1.5vw, 19px); }

/* ── the numbers ── */
.proof { padding-block: 0; border-block: 1px solid var(--line); background: rgba(8, 22, 43, .5); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.stats li { padding: 34px 28px 34px 0; display: flex; flex-direction: column; gap: 4px; }
.stats li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.stats b { font-size: clamp(44px, 5.4vw, 72px); line-height: 1; font-weight: 780; letter-spacing: -.04em; font-variation-settings: "wdth" 84; font-variant-numeric: tabular-nums; color: var(--chalk); }
.stats span { color: var(--chalk-2); font-size: 15px; max-width: 24ch; }

/* ── the dashboard rising out of the dark ── */
.reveal { overflow: hidden; --p: 1; }
.reveal::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(1100px, 120%); aspect-ratio: 2 / 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(40, 110, 200, .42), rgba(40, 110, 200, 0)); pointer-events: none; }
.reveal-stage { perspective: 1500px; position: relative; }
.frame.big { transform-origin: 50% 0; transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(.9 + var(--p) * .1)); opacity: calc(.35 + var(--p) * .65); box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05), 0 0 90px -20px rgba(40, 110, 200, .6); will-change: transform; }

/* ── a window onto the product ── */
.frame { margin: 0; position: relative; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -26px rgba(0, 0, 0, .75); }
.chrome { position: relative; display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: #141f31; border-bottom: 1px solid rgba(169, 195, 228, .16); }
.chrome i { width: 9px; height: 9px; border-radius: 50%; background: #f26b5b; } .chrome i:nth-child(2) { background: #f2b233; } .chrome i:nth-child(3) { background: #5fcfa0; }
.chrome span { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: var(--chalk-2); }
.frame img { display: block; width: 100%; height: auto; }

/* ── the story: the building stays put while the month goes by ── */
.story { padding-block: 0; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(8, 22, 43, .55), rgba(8, 22, 43, .2)); }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 80px; align-items: start; }
.stage { position: relative; align-self: stretch; }
.stage-in { position: sticky; top: 9vh; padding-block: 24px; }
.stage-in .elev { max-height: 72vh; }
.tally { margin: 8px 0 0; font-weight: 700; font-size: 19px; min-height: 1.6em; }
.tag-sample { margin: 2px 0 0; color: var(--chalk-2); font-size: 14px; }
.beats { padding-bottom: 14vh; }
.beats-h { margin: 0; padding-top: 16vh; max-width: none; }
.beat { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s; }
.beat.on { opacity: 1; }
.beat h3 { margin: 0 0 12px; font-size: clamp(26px, 2.8vw, 38px); line-height: 1.08; letter-spacing: -.025em; font-weight: 740; }
.beat p { margin: 0 0 16px; color: var(--chalk-2); max-width: 36ch; font-size: 19px; }
.who-sees { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.who-sees b { font-size: 13px; font-weight: 600; padding: 3px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--chalk); background: rgba(5, 13, 26, .35); }
.who-sees::before { content: "Sees this:"; font-size: 13px; color: var(--chalk-2); align-self: center; margin-right: 2px; }

/* ── the tour: the product, role by role ── */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 5px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(5, 13, 26, .5); margin-bottom: 44px; }
.tabs button { font: inherit; font-weight: 600; font-size: 15px; color: var(--chalk-2); background: transparent; border: 0; border-radius: 999px; padding: 9px 18px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--chalk); color: var(--blue-2); }
.tabs button:not([aria-selected="true"]):hover { color: var(--chalk); background: rgba(234, 242, 251, .1); }
.panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.9fr); gap: 52px; align-items: start; }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .panel { animation: panelin .5s cubic-bezier(.2, .8, .2, 1); } }
@keyframes panelin { from { opacity: 0; transform: translateY(14px); } }
.panel-text { padding-top: 8px; }
.panel-text h3 { margin: 0 0 16px; font-size: 26px; line-height: 1.12; letter-spacing: -.025em; font-weight: 720; }
.panel-text ul { margin: 0; padding: 0; list-style: none; }
.panel-text li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; color: var(--chalk-2); }
.panel-text li::before { content: ""; position: absolute; left: 3px; top: 1.05em; width: 6px; height: 11px; border: solid var(--paid); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shots { position: relative; min-width: 0; }
.phone { margin: 0; position: absolute; right: -2%; bottom: -8%; width: 22%; border: 5px solid #0a1220; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 24px 50px -12px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); }
.phone img { display: block; width: 100%; height: auto; }
.stack .second { width: 86%; margin: -9% 0 0 14%; }
.note-ill { margin-top: 44px; }

/* ── what it does ── */
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.cap { position: relative; padding: 26px 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(20, 52, 94, .5), rgba(10, 28, 54, .5)); overflow: hidden; transition: border-color .25s; }
.cap::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 178, 51, .16), transparent 70%); }
.cap:hover { border-color: var(--line-2); } .cap:hover::before { opacity: 1; }
.cap > * { position: relative; }
.ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(95, 207, 160, .1); border: 1px solid rgba(95, 207, 160, .28); fill: none; stroke: var(--paid); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; display: block; }
.cap h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.cap p { margin: 0; color: var(--chalk-2); font-size: 15.5px; line-height: 1.55; }

/* ── trust ── */
.trust { background: linear-gradient(180deg, rgba(8, 22, 43, .6), rgba(8, 22, 43, .2)); border-block: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.pillar { padding: 4px 28px 4px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px solid var(--line); }
.pillar .ico { background: rgba(242, 178, 51, .1); border-color: rgba(242, 178, 51, .3); stroke: var(--due); }
.pillar h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.2; letter-spacing: -.015em; font-weight: 700; }
.pillar p { margin: 0; color: var(--chalk-2); font-size: 15.5px; }

/* ── what changes, and how it starts ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: 16px 0 16px 34px; border-top: 1px solid var(--line); position: relative; font-size: 18px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts li::before { content: ""; position: absolute; left: 6px; top: 1.15em; width: 7px; height: 13px; border: solid var(--paid); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: s; position: relative; }
.steps li { counter-increment: s; position: relative; padding: 70px 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: rgba(10, 28, 54, .45); }
.steps li::before { content: counter(s); position: absolute; left: 22px; top: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: var(--blue-2); background: var(--due); box-shadow: 0 0 18px rgba(242, 178, 51, .5); }
.steps b { display: block; font-size: 20px; line-height: 1.2; margin-bottom: 6px; letter-spacing: -.015em; }
.steps span { color: var(--chalk-2); font-size: 16px; }

/* ── the request ── */
.ask { border-top: 1px solid var(--line); overflow: hidden; }
.ask::before { content: ""; position: absolute; right: -10%; top: -10%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(30, 90, 170, .45), transparent); pointer-events: none; }
.ask-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; position: relative; }
.next { margin: 30px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.next li { position: relative; padding-left: 28px; color: var(--chalk-2); }
.next li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 6px; height: 11px; border: solid var(--paid); border-width: 0 2px 2px 0; transform: rotate(45deg); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line-2); border-radius: 20px; background: var(--glass-2); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8); }
form .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
input, select, textarea { width: 100%; font: inherit; color: var(--chalk); background: rgba(5, 13, 26, .55); border: 1.5px solid var(--line-2); border-radius: 10px; padding: 12px 13px; transition: border-color .2s, background .2s; }
input:hover, select:hover, textarea:hover { border-color: rgba(169, 195, 228, .55); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 120px; resize: vertical; }
.hp { display: none; }
form .cta { justify-self: start; }

.reach-h { margin: 34px 0 4px; font-weight: 700; }
.reach { margin: 0; color: var(--chalk-2); font-size: 18px; }
.reach a { color: var(--chalk); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.reach a:hover { border-bottom-color: var(--due); }
.foot-h { color: var(--chalk); font-weight: 700; margin: 0 0 4px !important; }
.foot-note .reach { font-size: 15px; margin-bottom: 14px; }

/* ── footer, with the skyline ── */
footer { position: relative; padding-block: 250px 60px; color: var(--chalk-2); font-size: 15px; }
.skyline { position: absolute; inset: 0 0 auto 0; height: 230px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 45%); mask-image: linear-gradient(180deg, transparent, #000 45%); }
.sky-svg { width: 100%; height: 100%; display: block; }
.sky-svg .b rect { fill: #08162b; stroke: rgba(70, 120, 190, .4); stroke-width: 1; }
.sky-svg .w.p { fill: var(--paid); } .sky-svg .w.d { fill: var(--due); } .sky-svg .w.l { fill: var(--late); } .sky-svg .w.o { fill: rgba(159, 184, 216, .16); }
.sky-svg .w.t1, .sky-svg .w.t2, .sky-svg .w.t3 { fill: var(--due); }
.sky-svg .w.p, .sky-svg .w.d { opacity: .85; }
.sky-svg .ground { stroke: var(--line-2); }
@media (prefers-reduced-motion: no-preference) { .sky-svg .w.t1 { animation: twinkle 5s ease-in-out infinite; } .sky-svg .w.t2 { animation: twinkle 7s 1.5s ease-in-out infinite; } .sky-svg .w.t3 { animation: twinkle 6s 3s ease-in-out infinite; } }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .08; } }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.foot-brand p { margin: 12px 0 0; max-width: 34ch; }
.foot-brand .brand { color: var(--chalk); }
.foot-note p { margin: 0 0 6px; max-width: 46ch; }

/* ── the thank-you page ── */
.thanks { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 32px 16px; }
.thanks .brand { margin-bottom: 36px; }
.thanks h1 { max-width: 16ch; margin-inline: auto; font-size: clamp(34px, 5vw, 60px); }
.thanks .lede { margin-inline: auto; }

/* ── smaller screens ── */
@media (max-width: 1040px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 38px; }
  .pillar:nth-child(odd) { padding-left: 0; border-left: 0; }
  .nav-links { display: none; } .nav-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  footer { padding-top: 190px; } .skyline { height: 170px; }
  .hero { padding-block: 84px 40px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-fig { margin-top: 8px; }
  .ev { font-size: 13px; padding: 8px 11px; }
  .feed { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stage { position: sticky; top: 68px; z-index: 4; background: var(--night-2); border-bottom: 1px solid var(--line-2); margin-inline: -20px; padding-inline: 20px; }
  .stage-in { position: static; padding-block: 8px 6px; display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); align-items: center; gap: 4px 12px; }
  .stage-in .elev { max-height: 30vh; grid-row: 1 / span 2; }
  .tally { font-size: 15px; margin: 0; align-self: end; }
  .tag-sample { align-self: start; font-size: 12px; }
  .beats-h { padding-top: 6vh; }
  .beat { min-height: 56vh; }
  .split, .panel, .ask-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .panel-text { padding-top: 0; }
  .phone { right: 2%; bottom: -6%; width: 26%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  form { grid-template-columns: minmax(0, 1fr); }
  .frame.big { transform: rotateX(calc((1 - var(--p)) * 12deg)) scale(calc(.94 + var(--p) * .06)); }
}
@media (max-width: 560px) {
  .who { display: flex; flex-direction: column; border-radius: 18px; width: 100%; }
  .who-btn { text-align: left; border-radius: 12px; }
  .stage .dim, .stage .note { display: none; }
  .tabs { border-radius: 18px; }
  .cap-grid, .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillar, .pillar + .pillar { padding: 0; border-left: 0; }
  .stats li { padding-block: 24px; }
  .chrome span { display: none; }
}

/* the language switch, the sandbox page and the confirmation page */
[hidden] { display: none !important; }
.lang { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--chalk-2); border: 1px solid var(--line-2); padding: 7px 14px; border-radius: 999px; transition: color .2s, border-color .2s; }
.lang:hover { color: var(--chalk); border-color: var(--chalk-2); }
.sb { padding-top: clamp(120px, 16vw, 170px); padding-bottom: clamp(56px, 8vw, 110px); }
.sb h1 { font-size: clamp(36px, 5vw, 64px); max-width: 14ch; }
.sb-box { position: relative; }
.sb-form { grid-template-columns: 1fr; }
.sb-msg { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(242, 107, 91, .12); border: 1px solid rgba(242, 107, 91, .45); color: var(--chalk); font-size: 15px; }
.sb-done { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line-2); border-radius: 20px; background: var(--glass-2); }
.sb-done h2 { margin-top: 0; }
.sb-done:focus { outline: none; }
.sb-confirm .reach { margin-top: 28px; }
.sb-confirm .sub { display: inline-block; margin-top: 18px; }
@media (max-width: 900px) { .nav-links { display: none; } .lang { margin-left: auto; } .nav-cta { margin-left: 0; } .sb h1 { max-width: none; } }
@media (max-width: 460px) { .nav-in { gap: 12px; } .nav-cta { padding: 8px 14px; font-size: 14px; } }

/* Spanish headlines run longer: keep them clear of the drawing */
html[lang="es"] .hero h1 { font-size: clamp(38px, 4.6vw, 72px); }
html[lang="es"] .sb h1 { max-width: 16ch; }
