/* Flourish Properties — public site.
   The idea: a drawing office. Blueprint navy and drafting paper, ruled lines, one red pencil.
   Type: Besley (a Clarendon, the Victorian face for Victorian houses) + Archivo, which gets narrower for measurements. */

@font-face { font-family: "Besley"; src: url(/fonts/besley.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url(/fonts/archivo.woff2) format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --navy: #022848;        /* from the logo */
  --navy-deep: #011a31;
  --navy-rise: #0a3457;
  --teal: #6098b0;        /* from the logo */
  --teal-pale: #a9cbd8;
  --paper: #eef2f3;
  --paper-2: #e2e9eb;
  --pencil: #c9432b;      /* red pencil on paper */
  --pencil-lit: #f2735a;  /* red pencil on blueprint */
  --brass: #c8a45a;
  --lamp: #f3b562;

  --serif: "Besley", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 4.2vw, 64px);
  --wrap: 90rem;
  --sec: clamp(88px, 11vw, 168px);

  --ease: cubic-bezier(.2, 0, 0, 1);
  --spring: linear(0, .008 1.1%, .034 2.3%, .134 4.9%, .264 7.3%, .683 14.3%, .797 16.5%, .89 18.6%, .967 20.7%, 1.027 22.8%, 1.073 25%, 1.104 27.3%, 1.123 30.6%, 1.119 34.3%, 1.018 49.5%, .988 58.6%, .985 65.2%, 1 84.5%, 1);
  --settle: linear(0, .012 .9%, .05 2%, .411 9.2%, .517 11.8%, .611 14.6%, .694 17.7%, .765 21.1%, .824 24.8%, .872 28.9%, .91 33.4%, .939 38.4%, .977 50.9%, .994 68.4%, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* Type and spacing grow gently on large monitors: 16px up to 1440 wide, 19px from 2400. */
html { font-size: clamp(100%, .3125vw + .71875rem, 118.75%); background: var(--navy-deep); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 1.0625rem/1.55 var(--sans); color: var(--navy); background: var(--paper); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, canvas { max-width: 100%; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.04; letter-spacing: -.018em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 3.5vw + .6rem, 3.75rem); }
h3 { font-size: clamp(1.35rem, .8vw + 1.1rem, 1.7rem); line-height: 1.15; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.defs { position: absolute; }
.icon { flex: none; }
.skip { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; border-radius: 12px; background: #fff; color: var(--navy); translate: 0 -200%; }
.skip:focus { translate: 0; }

/* Two grounds. Each sets the colours everything inside it draws with. */
.sheet--ink, .sheet--deep {
  --bg: var(--navy); --fg: #f2f6f7; --mute: #a9c0cc; --line: rgba(169, 203, 216, .2); --rise: var(--navy-rise); --mark: var(--pencil-lit); --grid: rgba(169, 203, 216, .05);
  color: var(--fg); background-color: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--tile, 96px) var(--tile, 96px);
}
.sheet--deep { --bg: var(--navy-deep); }
.sheet--paper { --bg: var(--paper); --fg: var(--navy); --mute: #46607a; --line: rgba(2, 40, 72, .15); --rise: #fff; --mark: var(--pencil); color: var(--fg); background: var(--bg); }

section[id] { scroll-margin-top: 0; }
.head p { margin-top: 1.1rem; max-width: 46ch; font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--mute); }
.head--split { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
/* measurement lettering: narrower, as on a drawing */
.doorway__for, .deal__kind, .figs dt, .titleblock dt, .stepper__label, .stage__legend, .ways small, .calc__label, .calc__figs dt, .calc__note, .foot__col h2, .form__legal {
  font: 500 .84rem/1.35 var(--sans); font-stretch: 86%; letter-spacing: .012em; color: var(--mute);
}

/* --- Buttons and links --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 52px; padding: 0 1.55rem; border: 0; border-radius: 999px; font: 600 .98rem/1 var(--sans); font-stretch: 104%; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .18s, box-shadow .18s, scale .18s var(--ease); }
.btn:active { scale: .96; }
.btn--paper { background: #f2f6f7; color: var(--navy); }
.btn--paper:hover { background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .14); }
.btn--ink { background: var(--navy); color: #f2f6f7; }
.btn--ink:hover { background: #0a3a66; box-shadow: 0 0 0 5px rgba(2, 40, 72, .12); }
.btn--line { color: inherit; background: transparent; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 36%, transparent); }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link { display: inline-block; padding-block: 6px; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 4px) / 100% 1.5px no-repeat; transition: background-size .35s var(--ease); }
.link:hover { animation: redraw .6s var(--ease); }
@keyframes redraw { 0% { background-position: 100% calc(100% - 4px); background-size: 100% 1.5px; } 45% { background-position: 100% calc(100% - 4px); background-size: 0 1.5px; } 46% { background-position: 0 calc(100% - 4px); background-size: 0 1.5px; } 100% { background-position: 0 calc(100% - 4px); background-size: 100% 1.5px; } }

/* --- Title block: the bordered data box in the corner of every drawing --- */
.titleblock { display: grid; grid-auto-flow: column; margin: 0; border: 1px solid var(--line); border-radius: 12px; }
.titleblock > div { padding: 10px 18px 11px; }
.titleblock > div + div { border-left: 1px solid var(--line); }
.titleblock dd { margin: 2px 0 0; font-weight: 500; }

/* --- Navigation --- */
.nav { position: fixed; z-index: 60; top: 14px; inset-inline: 0; width: fit-content; margin-inline: auto; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 20px); padding: 6px 6px 6px 18px; border-radius: 999px; color: #f2f6f7; background: rgba(2, 40, 72, .5); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 14px 34px -14px rgba(1, 16, 30, .55); transition: background-color .35s; }
.nav[data-stuck] { background: rgba(2, 40, 72, .88); }
.nav__brand { display: flex; align-items: center; gap: 10px; margin-right: 10px; font: 700 .93rem/1 var(--sans); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.nav__brand img { width: auto; height: 30px; }
.nav__links { position: relative; display: flex; }
.nav__links a { position: relative; z-index: 1; display: grid; place-items: center; height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 500; font-size: .93rem; white-space: nowrap; text-decoration: none; color: rgba(242, 246, 247, .8); transition: color .15s; }
.nav__links a:hover, .nav__links a[aria-current], .nav__links a.is-here { color: #fff; }
.nav__goo { position: absolute; inset: 0; opacity: .17; filter: url(#goo); pointer-events: none; }
.nav__goo i { position: absolute; top: 4px; left: 0; height: 36px; width: var(--w, 0); translate: var(--x, 0) 0; border-radius: 999px; background: #fff; scale: var(--on, 0); transition: translate .5s var(--spring), width .5s var(--spring), scale .25s var(--ease); }
.nav__goo i + i { transition-duration: .75s, .75s, .25s; }
.nav__cta { min-height: 44px; padding: 0 1.2rem; margin-left: 6px; font-size: .93rem; }
.nav__toggle { display: none; align-items: center; gap: 10px; height: 44px; padding: 0 16px 0 14px; border: 0; border-radius: 999px; background: #f2f6f7; color: var(--navy); font-weight: 600; font-size: .93rem; cursor: pointer; }
.nav__bars { display: grid; gap: 5px; width: 18px; }
.nav__bars i { height: 2px; border-radius: 2px; background: currentColor; }

.menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 14px var(--gutter) 28px; border: 0; color: #f2f6f7; background: var(--navy-deep); opacity: 0; transition: opacity .3s, display .3s allow-discrete, overlay .3s allow-discrete; }
.menu[open] { display: flex; flex-direction: column; opacity: 1; }
@starting-style { .menu[open] { opacity: 0; } }
.menu::backdrop { background: var(--navy-deep); }
.menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 56px; }
.menu__close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); cursor: pointer; }
.menu__links { display: grid; align-content: center; flex: 1; gap: 2px; }
.menu__links a { padding: 8px 0; font: 500 clamp(2rem, 9.5vw, 3.2rem)/1.12 var(--serif); letter-spacing: -.02em; text-decoration: none; opacity: 0; translate: 0 22px; transition: opacity .5s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--i) * 45ms + 90ms); }
.menu[open] .menu__links a { opacity: 1; translate: 0; }
@starting-style { .menu[open] .menu__links a { opacity: 0; translate: 0 22px; } }
.menu__foot { display: grid; gap: 14px; justify-items: start; }
.menu__mail { color: var(--teal-pale); }

/* --- Hero: a city at dusk. The lights come on from the middle outwards as the page opens. --- */
/* Registered so the mask radius can animate. Where that isn't supported the lit photo simply shows. */
@property --lit { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.hero { position: relative; isolation: isolate; display: grid; min-height: max(100svh, 720px); overflow: clip; color: #f2f6f7; text-align: center; background: var(--navy-deep); }
.hero__art { position: absolute; inset: -2.5%; z-index: -2; animation: hero-settle 7s var(--ease) both; }
/* Anchored to the foot, so the skyline keeps its place and wider screens only gain or lose sky. */
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.hero__lit { -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 78%, #000 calc(var(--lit) - 28%), transparent var(--lit)); mask-image: radial-gradient(ellipse 70% 60% at 50% 78%, #000 calc(var(--lit) - 28%), transparent var(--lit)); animation: hero-light 3.8s 1s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes hero-light { to { --lit: 270%; } }
@keyframes hero-settle { from { scale: 1.07; } }
/* Darker at the top for the words, and a fade at the foot into the section below. */
.hero__scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 62% 34% at 50% 36%, rgba(1, 22, 41, .5), rgba(1, 22, 41, 0) 72%), linear-gradient(rgba(1, 22, 41, .66), rgba(1, 22, 41, .3) 40%, rgba(1, 22, 41, 0) 62%), linear-gradient(0deg, var(--navy), rgba(2, 40, 72, 0) 15%); }
.hero__body { display: grid; justify-items: center; align-content: start; gap: clamp(22px, 3.4vh, 40px); padding-top: clamp(118px, 16vh, 220px); padding-bottom: clamp(200px, 38vh, 520px); }
.hero__panes { display: grid; justify-items: center; width: 100%; }
/* Hidden panes are display:none, so a pane's entrance animations replay each time it is chosen. */
.hero__pane { display: none; justify-items: center; }
.hero:has(.hero__who label:nth-of-type(1) input:checked) .hero__pane:nth-child(1),
.hero:has(.hero__who label:nth-of-type(2) input:checked) .hero__pane:nth-child(2) { display: grid; }
@supports not selector(:has(*)) { .hero__pane:first-child { display: grid; } .hero__who { display: none; } }
.hero__title { font-size: clamp(2.1rem, 5vw + .6rem, 6.4rem); line-height: 1; letter-spacing: -.026em; text-shadow: 0 2px 30px rgba(1, 22, 41, .35); }
.ln { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.ln > span { display: block; text-wrap: balance; animation: rise 1s var(--ease) both; }
.ln:nth-child(2) > span { animation-delay: .1s; }
@keyframes rise { from { translate: 0 110%; } }
@keyframes settle-in { from { opacity: 0; translate: 0 14px; } }
.hero__lede { max-width: 36rem; margin-top: clamp(16px, 2.4vh, 26px); font-size: clamp(1.05rem, .45vw + 1rem, 1.3rem); color: #e6eef2; text-shadow: 0 1px 16px rgba(1, 22, 41, .6); animation: settle-in .9s .3s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 3.2vh, 34px); animation: settle-in .9s .42s var(--ease) both; }
.hero__who { animation: settle-in .9s .05s var(--ease) both; }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.btn--glass:hover { background: rgba(255, 255, 255, .22); }
/* The audience switch: the same segmented control as the enquiry form, in glass. */
.seg--glass .seg__track { padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .13); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.seg--glass label { height: 42px; padding: 0 22px; border-radius: 999px; color: #fff; transition: color .25s; }
.seg--glass label:has(input:checked) { color: var(--navy); }
.seg--glass label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 2px; }
.seg--glass .seg__thumb { top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / var(--n, 2)); border-radius: 999px; background: #f2f6f7; box-shadow: 0 6px 18px -6px rgba(1, 16, 30, .6); }

/* --- Mission --- */
.mission { padding-block: clamp(96px, 13vw, 200px) clamp(80px, 10vw, 150px); }
.mission__text { max-width: 21em; font: 500 clamp(1.7rem, 3vw + .55rem, 3.4rem)/1.17 var(--serif); letter-spacing: -.02em; }
.mission__text .w { opacity: .2; transition: opacity .3s linear; }
.mission__text .w.on { opacity: 1; }
.flourish { display: block; width: clamp(170px, 20vw, 300px); height: auto; overflow: visible; }
.flourish path { stroke: var(--mark); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .15s; }
.flourish.is-in path { stroke-dashoffset: 0; }
.mission__flourish { margin-top: clamp(28px, 4vw, 52px); }

/* --- Services: three doors --- */
.services { padding-block: var(--sec); }
.services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 72px); }
.doorway { position: relative; }
.doorway::before { content: ""; position: absolute; left: calc(clamp(24px, 4vw, 72px) / -2); right: calc(clamp(24px, 4vw, 72px) / -2); top: calc(var(--dw) * 2.45 + 9px); height: 1.5px; background: var(--fg); }
.doorway { --dw: clamp(128px, 13.2vw, 11.875rem); }
.door { position: relative; z-index: 1; display: block; width: var(--dw); margin-left: clamp(0px, 2vw, 28px); }
.door__fan { display: grid; place-items: end center; height: calc(var(--dw) / 2); border: 3px solid var(--navy); border-radius: 999px 999px 0 0; background: repeating-conic-gradient(from -90deg at 50% 100%, transparent 0 28.5deg, rgba(2, 40, 72, .55) 28.5deg 30deg), linear-gradient(#e4eef1, #c7dae1); }
.door__fan b { display: grid; place-items: center; width: 46%; aspect-ratio: 2 / 1; padding-top: 4%; border-radius: 999px 999px 0 0; background: var(--navy); color: #f2f6f7; font: 600 .98rem/1 var(--serif); }
.door__way { position: relative; display: block; height: calc(var(--dw) * 1.95); overflow: hidden; border: 3px solid var(--navy); border-top: 0; perspective: 820px; background: #1d1009; }
.door__hall { position: absolute; inset: 0; background: radial-gradient(130% 75% at 62% 48%, #ffdc9a, #eda145 32%, #7a3d12 68%, #26130a); }
.door__hall::after { content: ""; position: absolute; inset: auto -30% 0; height: 24%; background: repeating-conic-gradient(#2c1a10 0 25%, #eadfca 0 50%) 0 0 / 22px 22px; transform: perspective(90px) rotateX(58deg); transform-origin: 50% 100%; opacity: .8; }
.door__leaf { position: absolute; inset: 0; display: grid; grid-template: 15fr 36fr 23fr / 1fr 1fr; gap: 6% 11%; padding: 12% 13% 9%; background: linear-gradient(100deg, var(--paint), var(--paint-2)); transform-origin: 0 50%; transition: transform .95s var(--spring), filter .6s; }
.door__leaf i { border-radius: 2px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .17), inset 3px 3px 0 rgba(0, 0, 0, .2); }
.door__knob { position: absolute; right: 5.5%; top: 55%; width: 9.5%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f7e6b0, var(--brass) 55%, #7c6124); box-shadow: 0 2px 3px rgba(0, 0, 0, .4); }
.door__slot { position: absolute; left: 31%; right: 31%; top: 67.2%; height: 2.6%; border-radius: 2px; background: linear-gradient(#ecd899, var(--brass)); box-shadow: inset 0 -1.5px 0 rgba(0, 0, 0, .28); }
.door__step { display: block; height: 9px; margin-inline: -13%; border-radius: 2px 2px 0 0; background: var(--navy); }
.door__spill { position: absolute; top: 100%; left: -38%; right: -38%; height: 54px; background: linear-gradient(rgba(243, 181, 98, .6), rgba(243, 181, 98, 0)); clip-path: polygon(33% 0, 67% 0, 100% 100%, 0 100%); opacity: 0; transition: opacity .6s; }
.doorway:hover .door__leaf, .doorway:focus-within .door__leaf, .doorway.is-open .door__leaf { transform: rotateY(64deg); filter: brightness(.82); }
.doorway:hover .door__spill, .doorway:focus-within .door__spill, .doorway.is-open .door__spill { opacity: 1; }
.doorway__text { margin-top: 62px; }
.doorway h3 { margin-top: 4px; font-size: clamp(2rem, 2vw + 1.2rem, 2.9rem); letter-spacing: -.025em; }
.doorway__text > p:not(.doorway__for) { max-width: 30ch; margin-block: 14px 16px; color: var(--mute); }

/* --- Process --- */
.process { padding-block: var(--sec); }
.process__grid { display: grid; grid-template: "stage head" auto "stage steps" 1fr / minmax(0, 1fr) minmax(0, .84fr); column-gap: clamp(32px, 6vw, 110px); align-items: start; }
.process__head { grid-area: head; }
.process__stage { grid-area: stage; position: sticky; top: clamp(84px, 11vh, 116px); }
.steps { grid-area: steps; }
.stage { padding: clamp(14px, 2vw, 28px); border: 1px solid var(--line); border-radius: 24px; background: rgba(1, 22, 41, .42); }
.art { display: block; width: 100%; height: auto; }
.art path, .art circle, .art use { stroke: var(--teal-pale); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.art text { font: 500 15px var(--sans); font-stretch: 86%; fill: var(--teal-pale); }
.art__ground { stroke-opacity: .5; }
.art__ghost { opacity: .26; }
.art__row { opacity: 0; transition: opacity .7s; }
.art__house { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--ease); }
.art__house use { stroke: #fff; stroke-width: 1.9; }
.art__dim, .art__ring, .art__key, .art__leaders g { opacity: 0; transition: opacity .5s; }
.art .art__ring { stroke: var(--pencil-lit); stroke-width: 2.2; stroke-dasharray: 3 7; }
.art__leaders path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.art__leaders circle { fill: var(--navy); }
.art .art__pencil { stroke: var(--pencil-lit); stroke-width: 2.6; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease); filter: url(#pencil); }
.art__glow path { stroke: none; fill: var(--lamp); opacity: 0; transition: opacity .9s; }
.art .art__key circle, .art .art__key path { stroke: var(--lamp); stroke-width: 2.2; }
[data-at="1"] .art__dim { opacity: 1; }
[data-at="2"] .art__row { opacity: .5; }
[data-at="2"] .art__ring { opacity: 1; animation: scan 2.6s var(--ease) both; }
@keyframes scan { 0% { translate: -232px 0; } 45% { translate: 232px 0; } 100% { translate: 0; } }
:is([data-at="3"], [data-at="4"], [data-at="5"]) .art__row { opacity: .16; }
:is([data-at="3"], [data-at="4"], [data-at="5"]) .art__house { stroke-dashoffset: 0; }
:is([data-at="3"], [data-at="4"]) .art__leaders path { stroke-dashoffset: 0; }
:is([data-at="3"], [data-at="4"]) .art__leaders g { opacity: 1; transition-delay: .45s; }
:is([data-at="4"], [data-at="5"]) .art__pencil { stroke-dashoffset: 0; }
[data-at="5"] .art__glow path { opacity: .92; }
[data-at="5"] .art__key { opacity: 1; }
.stage__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 12px 0 0; padding: 14px 4px 0; border-top: 1px solid var(--line); list-style: none; opacity: .32; transition: opacity .5s; }
.stage__legend b { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px currentColor; font-weight: 500; }
:is([data-at="3"], [data-at="4"]) .stage__legend { opacity: 1; color: var(--fg); }
.stepper { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.stepper__pills { display: flex; margin-left: -8px; }
.stepper__pills button { display: grid; place-items: center; height: 40px; padding: 0 5px; border: 0; background: none; cursor: pointer; }
.stepper__pills i { display: block; width: 8px; height: 8px; border-radius: 999px; background: rgba(169, 203, 216, .34); transition: width .5s var(--spring), background-color .25s; }
.stepper__pills button:hover i { background: rgba(169, 203, 216, .7); }
.stepper__pills button[aria-current] i { width: 44px; background: linear-gradient(90deg, #fff var(--fill, 0%), rgba(169, 203, 216, .34) 0); }
.stepper__label { font-variant-numeric: tabular-nums; }
.steps { margin: clamp(36px, 5vw, 72px) 0 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 58px 1fr; column-gap: 18px; align-content: start; min-height: 44vh; padding-block: clamp(32px, 6vh, 64px); border-top: 1px solid var(--line); opacity: .36; transition: opacity .45s; }
.step.is-on { opacity: 1; }
.step__n { grid-row: span 2; font: 500 2.7rem/1 var(--serif); color: var(--teal-pale); }
.step p { grid-column: 2; max-width: 42ch; margin-top: .75rem; color: var(--mute); }

/* --- Listings --- */
.deals { padding-block: var(--sec); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 32px); margin-top: clamp(40px, 5vw, 72px); }
.deal { position: relative; display: flex; flex-direction: column; padding: 10px 10px 8px; border-radius: 24px; background: #fff; box-shadow: 0 1px 1px rgba(2, 40, 72, .05), 0 22px 44px -28px rgba(2, 40, 72, .34); transition: translate .4s var(--ease), box-shadow .4s; }
.deal:hover { translate: 0 -5px; box-shadow: 0 1px 1px rgba(2, 40, 72, .05), 0 34px 54px -28px rgba(2, 40, 72, .42); }
.deal__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--paper-2); }
.deal__media img { display: block; width: 100%; height: 100%; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; border-radius: inherit; transition: scale .8s var(--ease); }
.deal:hover .deal__media img { scale: 1.04; }
.deal__blank { display: block; height: 100%; background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(2, 40, 72, .06) 11px 12px); }
.deal__tags { position: absolute; top: 22px; left: 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #fff; color: var(--navy); font: 600 .78rem/1 var(--sans); font-stretch: 92%; }
.tag::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #2e9e6b; }
.tag--reserved::before { background: #d6982b; }
.tag--sold::before { background: var(--pencil); }
.tag--example { background: var(--navy); color: #f2f6f7; }
.tag--example::before { display: none; }
.deal__body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 0; }
.deal__body .figs { margin-top: auto; }
.deal__where { padding-bottom: 16px; }
.deal h3 { margin-top: 5px; font-size: 1.42rem; }
.deal h3 a { text-decoration: none; }
.deal h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.deal__where { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .95rem; color: var(--mute); }
.figs { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 0; border-top: 1px solid var(--line); }
.figs > div { padding: 11px 0 10px; border-bottom: 1px solid var(--line); }
.figs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.figs > div:nth-child(even) { padding-left: 14px; }
.figs dd { margin: 1px 0 0; font: 500 1.3rem/1.25 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.figs dd small { font: 400 .8rem var(--sans); color: var(--mute); }
.figs > div.figs__wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; padding-left: 0; border-right: 0; border-bottom: 0; }
.strike { position: relative; text-decoration: none; color: var(--mute); }
.strike::after { content: ""; position: absolute; left: -5%; right: -5%; top: 50%; height: 2px; border-radius: 2px; background: var(--mark); rotate: -4deg; scale: 0 1; transform-origin: 0 50%; transition: scale .5s var(--ease) .25s; }
.is-in .strike::after, .strike.is-in::after { scale: 1 1; }
.empty { max-width: 44ch; margin-top: 40px; font-size: 1.15rem; color: var(--mute); }
.listform { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 48px; align-items: center; margin-top: clamp(36px, 5vw, 64px); padding: clamp(22px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; }
.listform p { margin-top: 8px; color: var(--mute); }
.listform__row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.listform__row input[type="email"] { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; }
.listform .form__done { grid-column: 1 / -1; padding: 8px 0; }

/* --- Calculator --- */
.calc { padding-block: var(--sec); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .88fr); gap: clamp(32px, 6vw, 110px); align-items: center; }
.calc__form { margin-top: clamp(28px, 4vw, 48px); }
.range + .range { margin-top: 26px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; }
.range label { color: var(--mute); }
.range output { font: 500 1.6rem/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; }
.range input { --p: 50%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 2px 0 0; cursor: pointer; background: repeating-linear-gradient(90deg, rgba(169, 203, 216, .42) 0 1px, transparent 1px 14px) 0 31px / 100% 7px no-repeat; }
.range input::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(169, 203, 216, .3) var(--p)); }
.range input::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, #fff var(--p), rgba(169, 203, 216, .3) var(--p)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -11px; border: 4px solid var(--navy); border-radius: 50%; background: var(--pencil-lit); box-shadow: 0 0 0 1.5px var(--pencil-lit); transition: scale .15s var(--ease); }
.range input::-moz-range-thumb { width: 16px; height: 16px; border: 4px solid var(--navy); border-radius: 50%; background: var(--pencil-lit); box-shadow: 0 0 0 1.5px var(--pencil-lit); }
.range input:active::-webkit-slider-thumb { scale: 1.18; }
.range input:focus-visible { outline: none; }
.range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1.5px var(--pencil-lit), 0 0 0 5px rgba(255, 255, 255, .35); }
.calc__result { padding: clamp(22px, 3vw, 44px); border-radius: 28px; text-align: center; background: linear-gradient(160deg, #0b3a61, #052c4d); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 10, 22, .7); }
.gauge { display: block; width: min(100%, 340px); height: auto; margin: 0 auto -86px; overflow: visible; }
.gauge__arc { stroke: rgba(169, 203, 216, .28); stroke-width: 2; }
.gauge__fill { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--g, .5)); transition: stroke-dashoffset .8s var(--spring); }
.gauge__ticks path { stroke: rgba(169, 203, 216, .55); stroke-width: 1.5; }
.gauge__ticks text { font: 500 11px var(--sans); font-stretch: 86%; fill: #a9c0cc; }
.gauge__needle { transform-origin: 160px 170px; rotate: calc(var(--g, .5) * 180deg - 90deg); transition: rotate .8s var(--spring); }
.gauge__needle path { stroke: var(--pencil-lit); stroke-width: 2.5; stroke-linecap: round; }
.gauge__needle circle { fill: var(--pencil-lit); stroke: #0a3558; stroke-width: 4; }
.calc__yield { display: flex; justify-content: center; align-items: baseline; font: 500 clamp(4rem, 6.4vw, 6.2rem)/1 var(--serif); letter-spacing: -.03em; }
.calc__unit { margin-left: .06em; font-size: .5em; color: var(--teal-pale); }
.calc__figs { display: grid; grid-template-columns: 1fr 1fr; margin: 26px 0 28px; border-block: 1px solid var(--line); }
.calc__figs > div { padding: 14px 8px; }
.calc__figs > div + div { border-left: 1px solid var(--line); }
.calc__figs dd { margin: 4px 0 0; font: 500 1.55rem/1 var(--serif); }
.calc__note { max-width: 40ch; margin: 18px auto 0; }
.roll { display: inline-flex; height: 1.12em; overflow: hidden; line-height: 1.12; font-variant-numeric: tabular-nums lining-nums; }
.roll__col { display: block; height: 1.12em; }
.roll__col > span { display: block; translate: 0 calc(var(--d) * -1.12em); transition: translate .75s var(--spring); }
.roll__col b { display: block; height: 1.12em; font-weight: inherit; }

/* --- About --- */
.about { padding-block: var(--sec); }
.about__grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 120px); align-items: center; }
.portrait { justify-self: center; width: min(100%, 420px); margin: 0; }
.portrait__frame { position: relative; padding: 12px; }
.portrait__frame::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--navy); border-radius: 999px 999px 14px 14px; }
.portrait img { display: block; width: 100%; height: auto; border-radius: 999px 999px 4px 4px; }
.portrait figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 14px 12px 0; }
.portrait figcaption b { font: 500 1.25rem/1.2 var(--serif); }
.portrait figcaption span { font-size: .95rem; color: var(--mute); }
.about__lede { margin-top: clamp(20px, 2.4vw, 32px); font: 500 clamp(1.25rem, .9vw + 1.05rem, 1.6rem)/1.36 var(--serif); letter-spacing: -.01em; }
.about__text > p + p { max-width: 52ch; margin-top: 1.1rem; color: var(--mute); }
.about__flourish { margin-top: 26px; }
.about__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 26px; }

/* --- Questions --- */
.faq { padding-bottom: var(--sec); }
.faq__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(28px, 7vw, 120px); align-items: start; padding-top: var(--sec); border-top: 1px solid var(--line); }
.faq .head { position: sticky; top: 116px; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font: 500 clamp(1.18rem, .7vw + 1.02rem, 1.5rem)/1.25 var(--serif); letter-spacing: -.012em; list-style: none; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa__mark { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.qa__mark::before, .qa__mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 1.5px; margin: -.75px 0 0 -7px; border-radius: 2px; background: currentColor; transition: rotate .45s var(--spring); }
.qa__mark::after { rotate: 90deg; }
.qa summary:hover .qa__mark { box-shadow: inset 0 0 0 1.5px var(--navy); }
.qa[open] .qa__mark { background: var(--navy); color: #fff; box-shadow: none; }
.qa[open] .qa__mark::after { rotate: 0deg; }
.qa__body { overflow: hidden; }
.qa__body p { max-width: 58ch; padding: 0 56px 28px 0; color: var(--mute); }

/* --- Contact and forms --- */
.contact { padding-block: var(--sec); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.contact__intro > p { max-width: 40ch; margin-top: 1.1rem; font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--mute); }
.ways { margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; list-style: none; }
.ways a, .ways__item { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); text-decoration: none; }
.ways li:last-child > * { border-bottom: 1px solid var(--line); }
.ways span > small { display: block; }
.ways a > span, .ways__item > span { font-weight: 500; font-size: clamp(.9rem, 4.1vw, 1.12rem); overflow-wrap: anywhere; }
.ways a .icon, .ways__item .icon { color: var(--teal-pale); transition: color .2s, translate .35s var(--ease); }
.ways a:hover .icon { color: #fff; translate: 3px 0; }
.contact__card { --fg: var(--navy); --mute: #46607a; --line: rgba(2, 40, 72, .15); --mark: var(--pencil); padding: clamp(18px, 2.8vw, 40px); border-radius: 28px; color: var(--navy); background: var(--paper); box-shadow: 0 40px 80px -40px rgba(0, 10, 22, .7); }
.form { position: relative; }
.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg legend, .field > span { padding: 0; font-weight: 500; font-size: .92rem; }
.seg legend { margin-bottom: 8px; }
.seg__track { position: relative; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); padding: 4px; border-radius: 16px; background: rgba(2, 40, 72, .08); }
.seg label { position: relative; z-index: 1; display: grid; place-items: center; height: 44px; padding: 0 4px; border-radius: 12px; font-weight: 500; font-size: .93rem; line-height: 1.1; text-align: center; cursor: pointer; }
.seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--navy); outline-offset: 1px; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(2, 40, 72, .14), 0 6px 14px -6px rgba(2, 40, 72, .28); translate: calc(var(--i, 0) * 100%) 0; transition: translate .5s var(--spring); }
.seg__track:has(label:nth-of-type(2) input:checked) { --i: 1; }
.seg__track:has(label:nth-of-type(3) input:checked) { --i: 2; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-top: 18px; }
.field em { font-style: normal; font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea { width: 100%; height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s; }
.field textarea { height: auto; min-height: 118px; padding: 14px 16px; resize: vertical; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23022848' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E") right 16px center no-repeat; }
.field :is(input, select, textarea):hover { box-shadow: inset 0 0 0 1px rgba(2, 40, 72, .4); }
.field :is(input, select, textarea):focus-visible, .listform__row:focus-within { outline: none; box-shadow: inset 0 0 0 2px var(--navy); }
.listform__row input:focus-visible { outline: none; }
.field :is(input, select, textarea):user-invalid { box-shadow: inset 0 0 0 2px var(--pencil); }
.field--invest, .field--place { display: none; }
.form:has(input[value="invest"]:checked) .field--invest, .form:has(input[value="let"]:checked) .field--place { display: grid; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
.form__legal { flex: 1; min-width: 190px; }
.form__error { margin-top: 14px; font-weight: 500; color: var(--pencil); }
.form > .form__error:first-child, noscript .form__error { margin-bottom: 14px; } /* notices above the fields, not the one under the button */
.form__done { text-align: center; padding: clamp(28px, 5vw, 64px) 0; }
.form__done h3 { margin-top: 14px; font-size: 1.8rem; }
.form__done p { margin-top: 8px; color: var(--mute); }
.form.is-done > :not(.form__done), .listform.is-done > :not(.form__done) { display: none; }
.tick { width: 64px; height: 64px; }
.tick circle, .tick path { stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tick path { stroke: var(--pencil); stroke-width: 3.5; }
.is-done .tick circle { animation: draw .7s var(--ease) forwards; }
.is-done .tick path { animation: draw .45s var(--ease) .5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --- Footer --- */
.foot { padding: clamp(56px, 8vw, 104px) 0 32px; overflow: clip; }
.foot__word { display: flex; justify-content: space-between; margin: 0 0 clamp(36px, 6vw, 80px); font: 300 clamp(3rem, 14.6vw, 13.6rem)/.86 var(--sans); letter-spacing: -.01em; user-select: none; }
.foot__word span { font-variation-settings: "wght" var(--wt, 300), "wdth" var(--wd, 100); transition: font-variation-settings .5s var(--ease); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px clamp(24px, 5vw, 80px); }
.foot__about img { width: 132px; height: auto; margin-left: -6px; }
.foot__about p { max-width: 26ch; margin-top: 14px; color: var(--mute); }
.foot__col { display: grid; gap: 10px; align-content: start; justify-items: start; }
.foot__col h2 { margin-bottom: 4px; letter-spacing: .012em; }
.foot__col a { text-decoration: none; overflow-wrap: anywhere; }
.foot__col a:hover { text-decoration: underline; }
.foot__col > span { color: var(--mute); }
.foot__legal { margin-top: clamp(36px, 5vw, 64px); grid-auto-columns: 1fr; }
.foot__risk, .foot__copy { max-width: 78ch; margin-top: 18px; font-size: .9rem; color: var(--mute); }
.foot__copy { margin-top: 8px; }

/* --- Section rail: a ruler down the right edge --- */
.rail { position: fixed; z-index: 40; top: 50%; right: 10px; translate: 0 -50%; display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; mix-blend-mode: difference; color: #fff; opacity: 0; transition: opacity .4s; }
.rail.is-on { opacity: 1; }
.rail a { position: relative; display: flex; justify-content: flex-end; align-items: center; height: 26px; width: 40px; text-decoration: none; }
.rail a::after { content: ""; width: 10px; height: 1.5px; background: currentColor; opacity: .5; transition: width .45s var(--spring), opacity .2s; }
.rail a:hover::after, .rail a.is-here::after { width: 26px; opacity: 1; }
.rail span { position: absolute; right: 48px; font: 500 .8rem/1 var(--sans); font-stretch: 86%; white-space: nowrap; opacity: 0; translate: 6px 0; transition: opacity .2s, translate .3s var(--ease); pointer-events: none; }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; translate: 0; }

/* --- Toasts --- */
.toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; translate: -50% 0; display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100% - 24px); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 18px 13px 14px; border-radius: 16px; background: #fff; color: var(--navy); font-weight: 500; font-size: .96rem; box-shadow: 0 1px 2px rgba(2, 40, 72, .1), 0 18px 40px -14px rgba(1, 16, 30, .5); animation: toast-in .55s var(--spring) both; }
.toast .icon { color: #2e9e6b; }
.toast--bad .icon { color: var(--pencil); }
.toast.is-out { animation: toast-out .28s ease-in both; }
@keyframes toast-in { from { opacity: 0; translate: 0 26px; scale: .94; } }
@keyframes toast-out { to { opacity: 0; translate: 0 10px; scale: .97; } }

/* --- Inner pages --- */
.pagehead { padding: clamp(150px, 16vw, 210px) 0 clamp(44px, 6vw, 80px); }
.pagehead h1 { font-size: clamp(2.5rem, 4.6vw + .6rem, 4.75rem); letter-spacing: -.024em; }
.pagehead p { max-width: 52ch; margin-top: 1.2rem; font-size: clamp(1.05rem, .5vw + 1rem, 1.25rem); color: var(--mute); }
.pagebody { padding-block: clamp(40px, 6vw, 88px) var(--sec); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 500; font-size: .95rem; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .2s, box-shadow .2s; }
.chip:hover { box-shadow: inset 0 0 0 1px currentColor; }
.chip[aria-current] { background: #f2f6f7; color: var(--navy); box-shadow: none; }
.pagebody .cards { margin-top: 0; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-weight: 500; font-size: .95rem; color: var(--mute); text-decoration: none; }
.back:hover { color: var(--fg); }
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 72px); align-items: start; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 22px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; border-radius: 22px; outline: 1px solid rgba(0, 0, 0, .1); outline-offset: -1px; background: var(--paper-2); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs a { flex: none; width: 76px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; opacity: .7; transition: opacity .2s; }
.thumbs a:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail__text { margin-top: clamp(28px, 4vw, 48px); }
.detail__text h2 { font-size: 1.7rem; }
.detail__text p { max-width: 62ch; margin-top: 1rem; color: var(--mute); }
.detail__side { position: sticky; top: 100px; display: grid; gap: 18px; }
.panel { padding: clamp(18px, 2.2vw, 28px); border-radius: 24px; background: #fff; box-shadow: 0 1px 1px rgba(2, 40, 72, .05), 0 22px 44px -28px rgba(2, 40, 72, .3); }
.panel h2 { font-size: 1.5rem; }
.panel .figs { margin-top: 14px; }
.panel .figs dd { font-size: 1.5rem; }
.panel .field:first-of-type, .panel .form__row .field { margin-top: 14px; }
.note { font-size: .9rem; color: var(--mute); }
.example-note { display: flex; gap: 12px; align-items: start; padding: 14px 18px; border-radius: 16px; background: var(--navy); color: #f2f6f7; font-size: .95rem; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.6rem; font-size: 1.7rem; }
.prose p, .prose ul { margin-top: 1rem; color: #2c4760; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .4rem; }
.lost { min-height: 78svh; display: grid; align-content: center; padding-block: 150px 80px; }
.lost p { max-width: 44ch; margin-block: 1.2rem 2rem; font-size: 1.2rem; color: var(--mute); }
.lost svg { width: min(100%, 420px); margin-bottom: 36px; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }

/* --- Narrower screens --- */
@media (max-width: 1080px) {
  .nav__links a { padding: 0 10px; }
}
@media (max-width: 940px) {
  .nav { width: calc(100% - 20px); justify-content: space-between; }
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .services__grid, .calc__grid, .about__grid, .faq__grid, .contact__grid, .detail { grid-template-columns: minmax(0, 1fr); }
  .doors { margin-top: clamp(20px, 4vw, 40px); }
  /* Not a grid here: the drawing has to stay stuck while every step scrolls past underneath it. */
  .process__grid { display: block; }
  .process__stage { top: 74px; z-index: 2; margin: 28px calc(var(--gutter) * -1) 0; }
  .steps { margin-top: 0; }
  .stage { padding: 10px var(--gutter) 6px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--navy); }
  .art { width: auto; height: min(38svh, 320px); margin-inline: auto; }
  .stage__legend { display: none; }
  .stepper { margin-top: 2px; }
  .step { min-height: 50svh; }
  .faq .head, .detail__side { position: static; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .listform { grid-template-columns: minmax(0, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__about { grid-column: 1 / -1; }
  .titleblock.foot__legal { grid-auto-flow: row; }
  .titleblock.foot__legal > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .doors { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .doorway { --dw: 104px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 22px; align-items: end; }
  .doorway::before { top: auto; bottom: 0; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); }
  .door { margin-left: 6px; margin-bottom: 0; }
  .doorway__text { margin: 0 0 22px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .listform__row { flex-direction: column; padding: 0; background: none; box-shadow: none; }
  .listform__row input[type="email"] { background: #fff; box-shadow: inset 0 0 0 1px var(--line); flex: none; }
  .qa__body p { padding-right: 0; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-aspect-ratio: 3/5) {
  .hero__lit { -webkit-mask-image: radial-gradient(ellipse 95% 46% at 50% 80%, #000 calc(var(--lit) - 28%), transparent var(--lit)); mask-image: radial-gradient(ellipse 95% 46% at 50% 80%, #000 calc(var(--lit) - 28%), transparent var(--lit)); }
  .hero__body { padding-top: 104px; }
}
/* The process drawing is sticky, so it must never be taller than the window. */
@media (min-width: 941px) { .stage { max-width: max(420px, calc((100vh - 19rem) * 1.2)); } }
@media (hover: none), (max-width: 1240px) { .rail { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .mission__text .w { opacity: 1; }
  @view-transition { navigation: none; }
}
html:has(dialog[open]) { overflow: hidden; }
.tag--plain { background: rgba(255, 255, 255, .12); color: inherit; }
.tag--plain::before { display: none; }
.pagehead .chips .tag { height: 32px; font-size: .84rem; }
