:root {
  --night: #0a0e16;
  --panel: #101623;
  --rule: rgba(239, 232, 220, .14);
  --text: #efe8dc;
  --dim: #9aa1ae;
  --gold: #e2a85a;
  --gold-ink: #1d1304;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --serif: "Inter", system-ui, sans-serif;   /* display face */
}

* { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 400 1rem/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--gold-ink); }

.wrap { padding-inline: var(--gutter); max-width: 96rem; margin-inline: auto; }
section { padding-top: clamp(6rem, 13vw, 12rem); }

h1, h2, .xl { font-family: var(--serif); font-weight: 300; letter-spacing: -0.035em; }
.rows h3, .asks a, .fly-stats dd, .steps li::before { font-weight: 300; letter-spacing: -0.025em; }
h1 { font-size: clamp(3rem, 7.6vw, 7.2rem); line-height: .96; }
h2 { font-size: clamp(2.1rem, 4.6vw, 4.2rem); line-height: 1.02; max-width: 17ch; }
h3 { font-size: 1.15rem; font-weight: 500; }
.xl { font-size: clamp(1.6rem, 3.2vw, 3rem); line-height: 1.14; letter-spacing: -0.03em; max-width: 27ch; }
.lede { font-size: clamp(1.05rem, 1.35vw, 1.25rem); color: #cfd2d9; max-width: 30em; }
.lede.wide { max-width: 40em; margin-top: 2rem; }
.tag { color: var(--gold); font-size: .9rem; font-weight: 500; margin-bottom: 1.1rem; }
.small { font-size: .84rem; color: var(--dim); max-width: 34em; }
.head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.btn { display: inline-block; text-decoration: none; font-weight: 500; padding: .9rem 1.5rem; border-radius: 100px; transition: background-color .2s, color .2s, border-color .2s; }
.btn.gold { background: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: #f0bd76; }
.btn.line { border: 1px solid rgba(239, 232, 220, .45); }
.btn.line:hover { border-color: var(--text); background: rgba(239, 232, 220, .08); }

/* header */
.site {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter); transition: background-color .3s, backdrop-filter .3s;
}
.site.solid { background: rgba(10, 14, 22, .78); backdrop-filter: blur(14px); }
.site .mark { font-weight: 600; font-size: 1.3rem; letter-spacing: -0.03em; line-height: 1; text-decoration: none; }
.site nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); font-size: .93rem; }
.site nav a { text-decoration: none; }
.site nav a:hover { color: var(--gold); }
.site nav .pill { border: 1px solid rgba(239, 232, 220, .45); padding: .45rem 1.05rem; border-radius: 100px; }
.site nav .pill:hover { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }

/* the scroll journey */
.fly { padding-top: 0; height: 1250vh; }
.fly-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #0d111b; }
.fly canvas, .fly noscript img, .fly .fly-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fly canvas { opacity: 0; transition: opacity 1.2s ease; }
.fly canvas.ready { opacity: 1; }
.fly-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(to top, rgba(10, 14, 22, .82), rgba(10, 14, 22, 0) 52%),
  linear-gradient(to bottom, rgba(10, 14, 22, .5), rgba(10, 14, 22, 0) 16%); }
.fly-text {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(3.4rem, 9vh, 6.5rem);
  opacity: 0; visibility: hidden; will-change: opacity, transform; pointer-events: none;
}
.fly-text h2 { max-width: 14ch; font-size: clamp(2.3rem, 5.4vw, 5.2rem); line-height: 1; }
.fly-text .lede { margin-top: 1.3rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.fly-stats { display: flex; flex-wrap: wrap; gap: 1.2rem clamp(1.5rem, 4vw, 4rem); margin-top: 1.8rem; }
.fly-stats dd { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; }
.fly-stats dt { font-size: .86rem; color: #cfd2d9; margin-top: .35rem; }
.fly-text a, .fly-text button { pointer-events: auto; }
.fine { font-size: .8rem; color: #aab0bc; margin-top: 1rem; }
.fly-count { font-size: clamp(1rem, 1.4vw, 1.2rem); color: var(--gold); margin-bottom: .6rem; }
.fly-count span { display: block; font-size: clamp(4.5rem, 12vw, 11rem); font-weight: 300; letter-spacing: -0.05em; line-height: .86; color: var(--text); font-variant-numeric: tabular-nums; }

/* the floor picker */
.floors { max-width: 26rem; right: auto; background: rgba(10, 14, 22, .66); backdrop-filter: blur(12px); border: 1px solid rgba(239, 232, 220, .16); border-radius: 12px; padding: 1.5rem 1.6rem 1.3rem; }
.floors h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
.floor-list { display: grid; margin-top: 1.4rem; border-top: 1px solid rgba(239, 232, 220, .25); pointer-events: auto; }
.floor-list button {
  text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(239, 232, 220, .25);
  padding: .62rem .2rem .62rem .9rem; font-size: 1.02rem; color: #cfd2d9; position: relative; transition: color .2s, padding-left .2s;
}
.floor-list button::before { content: ""; position: absolute; left: 0; top: 50%; width: .42rem; height: .42rem; margin-top: -.21rem; border-radius: 50%; background: currentColor; opacity: .35; }
.floor-list button:hover { color: var(--text); padding-left: 1.15rem; }
.floor-list button[aria-pressed="true"] { color: var(--gold); font-weight: 500; }
.floor-list button[aria-pressed="true"]::before { opacity: 1; }
.floor-out { margin-top: 1.1rem; min-height: 6.6rem; color: #dfe1e6; }
.floor-out .who { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text); margin-bottom: .25rem; }
.floor-out .who.ours { color: var(--gold); }

/* the map: one colony, five parts of the business */
.fly.map { height: 640vh; margin-top: clamp(6rem, 13vw, 12rem); }
.map-panel {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); width: min(27rem, calc(100% - 2 * var(--gutter)));
  background: rgba(10, 14, 22, .7); backdrop-filter: blur(14px); border: 1px solid rgba(239, 232, 220, .16); border-radius: 14px;
  padding: 1.7rem 1.7rem 1.6rem;
}
.map-panel h2 { font-size: clamp(1.8rem, 2.9vw, 2.6rem); }
.map-tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.4rem 0 1.3rem; }
.map-tabs button { background: none; border: 1px solid rgba(239, 232, 220, .28); border-radius: 100px; padding: .38rem .8rem; font-size: .86rem; color: #cfd2d9; transition: color .2s, border-color .2s, background-color .2s; }
.map-tabs button:hover { color: var(--text); border-color: var(--text); }
.map-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 500; }
.map-out { min-height: 13.5rem; }
.map-out h3 { font-size: 1.45rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.map-out p { color: #d5d8de; margin: .55rem 0 1.2rem; font-size: .98rem; }
.map-list { margin: 0 0 1.2rem; border-top: 1px solid rgba(239, 232, 220, .2); }
.map-list a { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgba(239, 232, 220, .2); text-decoration: none; font-size: .92rem; }
.map-list a:hover { color: var(--gold); }
.map-list span { color: var(--dim); text-align: right; }
.map-out .btn { padding: .7rem 1.2rem; font-size: .95rem; }
.fly.map .fly-scrim { background: linear-gradient(to right, rgba(10, 14, 22, .55), rgba(10, 14, 22, 0) 55%), linear-gradient(to bottom, rgba(10, 14, 22, .6), rgba(10, 14, 22, 0) 18%); }
.fly.static.map, .fly.map.static { height: auto; }

/* stage rail */
.fly-rail { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); display: grid; gap: .1rem; counter-reset: stage; text-align: right; }
.fly-rail button {
  counter-increment: stage; background: none; border: 0; padding: .32rem 0; font-size: .82rem; color: rgba(239, 232, 220, .5);
  display: inline-flex; align-items: center; gap: .7rem; transition: color .25s;
}
.fly-rail button::after { content: ""; width: 1.1rem; height: 1px; background: currentColor; transition: width .25s; }
.fly-rail button:hover { color: var(--text); }
.fly-rail button.on { color: var(--gold); }
.fly-rail button.on::after { width: 2.4rem; }

.fly-cue { position: absolute; right: var(--gutter); bottom: 2.4rem; font-size: .84rem; color: #cfd2d9; }
.fly-cue::after { content: ""; display: inline-block; width: 1px; height: 2.4rem; margin-left: .8rem; vertical-align: middle; background: currentColor; transform-origin: 50% 0; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.fly-bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.4rem; height: 1px; background: rgba(239, 232, 220, .2); }
.fly-bar span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.fly-shade { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }
.fly.static { height: auto; }
.fly.static .fly-stage { position: relative; }
.fly.static .fly-text:first-of-type { opacity: 1; visibility: visible; }
.fly.static .fly-bar, .fly.static .fly-cue { display: none; }

.statement { padding-top: clamp(5rem, 10vw, 9rem); }

/* collaboration */
.collab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: var(--gutter); align-items: start; }
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { counter-increment: step; padding: 1.3rem 1.5rem 0 0; border-top: 1px solid var(--rule); position: relative; }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 2.2rem; height: 1px; background: var(--gold); }
.steps li::before { content: counter(step); display: block; font-size: clamp(2.2rem, 3.6vw, 3.4rem); font-weight: 300; letter-spacing: -0.04em; line-height: 1; color: var(--gold); margin-bottom: 1.2rem; }
.steps p { color: var(--dim); margin-top: .4rem; font-size: .95rem; }

figure figcaption { font-size: .84rem; color: var(--dim); padding-top: .7rem; }
.frame, .compare-stage, .bleed { display: block; overflow: hidden; background: #131a28; border-radius: 6px; }
.compare-stage { position: relative; --pos: 50%; }
.compare-top { position: absolute; inset: 0; height: 100%; object-fit: cover; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--text); }
.compare-line::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 2.8rem; height: 2.8rem; translate: -50% -50%;
  border-radius: 50%; background-color: var(--text);
  background-image: linear-gradient(var(--night), var(--night)), linear-gradient(var(--night), var(--night));
  background-size: 1.5px 1rem; background-repeat: no-repeat; background-position: calc(50% - 4px) 50%, calc(50% + 4px) 50%;
}
.compare input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-stage:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.compare figcaption { display: flex; justify-content: space-between; }

/* study */
.study-page .bleed { margin-inline: var(--gutter); border-radius: 6px; }
.spread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: var(--gutter); margin-top: var(--gutter); align-items: start; }
.spread-text { position: sticky; top: 6.5rem; max-width: 31rem; color: #cfd2d9; }
.spread-text p + p { margin-top: 1em; }
.spread-pics { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 2rem); align-items: end; }
table { width: 100%; border-collapse: collapse; margin-top: 2.2rem; font-size: .93rem; }
th, td { text-align: left; padding: .65rem 0; border-top: 1px solid var(--rule); font-weight: 400; vertical-align: top; color: var(--text); }
th { color: var(--dim); width: 38%; }
tr:last-child th, tr:last-child td { border-bottom: 1px solid var(--rule); }

/* plot tool */
.plot-tool { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.4rem var(--gutter); align-items: start; }
.plot-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem; }
.sizes, .views { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; color: var(--dim); }
.sizes button, .views button { background: none; border: 1px solid var(--rule); border-radius: 100px; padding: .4rem .95rem; min-width: 3.3rem; }
.sizes button:hover, .views button:hover { border-color: var(--text); }
.sizes button[aria-pressed="true"], .views button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); font-weight: 500; }
.sizes span { margin-left: .4rem; }

.sheet { background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet .ln { fill: none; stroke: #dfe3ea; stroke-width: 1.1; }
.sheet .ground { stroke-width: 1.8; }
.sheet .slab { fill: #dfe3ea; stroke: none; }
.sheet .wall { fill: none; stroke: #dfe3ea; stroke-width: 3; }
.sheet .room { fill: #18202f; stroke: #dfe3ea; stroke-width: 1.3; }
.sheet .core { fill: #243044; }
.sheet .plot { fill: none; stroke: #6f7889; stroke-dasharray: 7 5; stroke-width: 1.1; }
.sheet .dim { fill: none; stroke: #6f7889; stroke-width: 1; }
.sheet .share { fill: rgba(226, 168, 90, .34); }
.sheet text { font: 400 12px "Inter", sans-serif; fill: var(--text); }
.sheet text.sub, .sheet text.num { font-size: 10.5px; fill: var(--dim); }
.sheet text.mark { fill: var(--gold); font-weight: 500; }

.readout div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.readout div:first-child { border-top: 1px solid var(--rule); }
.readout dt { color: var(--dim); }
.readout dd { text-align: right; font-weight: 500; }
.plot-side .small { margin: 1.2rem 0 1.5rem; }

/* practice rows */
.rows { border-top: 1px solid var(--rule); }
.rows a {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, .7fr); gap: .3rem var(--gutter); align-items: baseline;
  padding: 1.4rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding-left .3s ease, color .3s;
}
.rows h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.7rem); font-weight: 400; line-height: 1.05; }
.rows p { color: var(--dim); }
.rows span { font-size: .86rem; color: var(--dim); text-align: right; }
.rows a:hover { padding-left: 1.2rem; color: var(--gold); }

/* built work */
.work .btn { margin-top: 2rem; }
.built { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem var(--gutter); margin-top: 3rem; }
.built:empty { display: none; }
.built img, .built .sheet { aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.built .sheet svg { height: 100%; }
.built h3 { margin-top: .8rem; }
.built p { color: var(--dim); font-size: .88rem; }
.built .avail { color: var(--gold); }

/* contact */
.asks { border-top: 1px solid var(--rule); max-width: 56rem; }
.asks a {
  display: flex; justify-content: space-between; align-items: baseline; text-decoration: none;
  font-family: var(--serif); font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.05;
  padding: 1rem 0; border-bottom: 1px solid var(--rule); transition: padding-left .3s ease, color .3s;
}
.asks a::after { content: "WhatsApp"; font: 400 .84rem "Inter", sans-serif; color: var(--dim); }
.asks a:hover { padding-left: 1.2rem; color: var(--gold); }
.contact .small { margin-top: 1rem; }
address { font-style: normal; display: flex; flex-wrap: wrap; gap: 1.5rem 5rem; margin-top: 3rem; }
address p { color: var(--dim); font-size: .9rem; }
address a, address span { color: var(--text); font-size: 1.15rem; }

/* footer */
.foot { margin-top: clamp(6rem, 12vw, 11rem); padding-bottom: 1.6rem; overflow: hidden; }
.wordmark { font-weight: 600; font-size: 25.5vw; line-height: .78; letter-spacing: -0.065em; padding-inline: calc(var(--gutter) - .04em); color: var(--gold); margin-bottom: 2.4rem; user-select: none; }
.foot-line { display: flex; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--dim); }

/* images uncover as they arrive, and drift slightly slower than the page */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal .frame, .js .reveal .compare-stage { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(.2, .7, .1, 1); }
  .js .reveal.in .frame, .js .reveal.in .compare-stage { clip-path: inset(0); }
  .js .reveal img { transform: translate3d(0, var(--py, 0), 0) scale(1.1); will-change: transform; }
}

@media (max-width: 60rem) {
  .collab, .spread, .plot-tool { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 2rem; }
  .spread-text { position: static; }
  .rows a { grid-template-columns: 1fr; }
  .rows span { text-align: left; }
  .built { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 44rem) {
  .site nav a:not(.pill) { display: none; }
  .fly { height: 1050vh; }
  .fly-rail { display: none; }
  .fly.map { height: 560vh; }
  .map-panel { top: auto; bottom: 2.4rem; transform: none; padding: 1.2rem 1.2rem 1.2rem; }
  .map-panel .tag { display: none; }
  .map-panel h2 { font-size: 1.5rem; }
  .map-tabs { margin: .9rem 0 .9rem; }
  .map-out { min-height: 12.5rem; }
  .map-out h3 { font-size: 1.2rem; }
  .fly.map .fly-scrim { background: linear-gradient(to top, rgba(10, 14, 22, .8), rgba(10, 14, 22, 0) 60%); }
  .fly-scrim { background: linear-gradient(to top, rgba(10, 14, 22, .94), rgba(10, 14, 22, .7) 34%, rgba(10, 14, 22, 0) 68%), linear-gradient(to bottom, rgba(10, 14, 22, .5), rgba(10, 14, 22, 0) 16%); }
  .floors .lede { display: none; }
  .floors { padding: 1.1rem 1.1rem 1rem; }
  .floors { max-width: none; right: var(--gutter); }
  .floor-list { display: flex; flex-wrap: wrap; border-top: 0; gap: .35rem; }
  .floor-list button { border: 1px solid rgba(239, 232, 220, .3); border-radius: 100px; padding: .35rem .7rem; font-size: .85rem; }
  .floor-list button::before { display: none; }
  .floor-list button:hover { padding-left: .7rem; }
  .floor-list button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
  .floor-out { min-height: 7.5rem; }
  .fly-cue { display: none; }
  .fly-stats { gap: 1rem 1.6rem; }
  .asks a::after { display: none; }
  .actions .btn { flex: 1 1 auto; text-align: center; }
}
