/* The features layered on the original design. html.f-N switches feature N on (the numbers match
   the new build's panel); copied from lab/features.css by tools/promote_lab.py. */

html:not(.f-1) [data-feature="1"], html.f-1 [data-feature-off="1"] { display: none !important; }
html:not(.f-2) [data-feature="2"], html.f-2 [data-feature-off="2"] { display: none !important; }
html:not(.f-3) [data-feature="3"], html.f-3 [data-feature-off="3"] { display: none !important; }
html:not(.f-4) [data-feature="4"], html.f-4 [data-feature-off="4"] { display: none !important; }
html:not(.f-5) [data-feature="5"], html.f-5 [data-feature-off="5"] { display: none !important; }
html:not(.f-6) [data-feature="6"], html.f-6 [data-feature-off="6"] { display: none !important; }
html:not(.f-7) [data-feature="7"], html.f-7 [data-feature-off="7"] { display: none !important; }
html:not(.f-8) [data-feature="8"], html.f-8 [data-feature-off="8"] { display: none !important; }
html:not(.f-9) [data-feature="9"], html.f-9 [data-feature-off="9"] { display: none !important; }
html:not(.f-10) [data-feature="10"], html.f-10 [data-feature-off="10"] { display: none !important; }
html:not(.f-11) [data-feature="11"], html.f-11 [data-feature-off="11"] { display: none !important; }
html:not(.f-12) [data-feature="12"], html.f-12 [data-feature-off="12"] { display: none !important; }
html:not(.f-13) [data-feature="13"], html.f-13 [data-feature-off="13"] { display: none !important; }
html:not(.f-14) [data-feature="14"], html.f-14 [data-feature-off="14"] { display: none !important; }

/* Where two sections in a row share a background they read as one, so the second drops its top
   padding and the gap between them is one section gap, not two. */
.f-6 .replaces + #product,
.f-1.f-7 #devices,
.f-8 .field + #rebuild,
.f-10 #teams + .trust { padding-top: 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-dark { background: var(--ink); color: #f6f3ee; }
.btn-dark:hover { background: #26262a; }

/* ---------- 1 · The hero frame becomes the live product ---------- */

.hw { display: flex; flex-direction: column; overflow: hidden; border-radius: clamp(11px, 1.4vw, 18px); background: #0e0e10; }
.hw-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .035); }
.hw-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.hw-tabs button { padding: 7px 15px; border: 0; border-radius: 999px; background: none; color: #cfcbc4; font: 500 13.5px var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s; }
.hw-tabs button:hover { color: #fff; }
.hw-tabs button[aria-selected="true"] { background: #f6f3ee; color: var(--ink); }
.hw-live { display: inline-flex; align-items: center; gap: 8px; padding-right: 6px; font-size: 12.5px; color: #a29f99; }
.hw-stage { position: relative; aspect-ratio: 1240 / 860; background: #111113; }
.hw-pane { position: absolute; inset: 0; }
.hw-pane.is-entering { animation: hw-in .45s ease both; }
@keyframes hw-in { from { opacity: 0; } }
.hw-pane > img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.hw-cap {
  position: absolute; left: 14px; bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: rgba(11, 11, 12, .66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 12.5px; color: #e8e5df;
}
.hw-cap .dot:not(:first-child) { margin-left: 6px; }
.hw-viewer, .hw-viewer .viewer-stage { height: 100%; }
.hw-viewer .viewer-stage { aspect-ratio: auto !important; border: 0; border-radius: 0; box-shadow: none; }
.hw-viewer .viewer-label { display: none; }
.hw-rooms, .lv-compact .lv-chips {
  position: absolute; left: 50%; bottom: 14px; z-index: 3; display: flex; gap: 2px; padding: 3px; transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: rgba(11, 11, 12, .62);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.hw-rooms .room, .lv-compact .lv-chips button {
  display: block; min-width: 0; padding: 6px 13px; border: 0; border-radius: 999px; background: none;
  color: #e8e5df; font: 500 13px var(--font-sans); cursor: pointer; transition: background-color .2s, color .2s;
}
.hw-rooms .room:hover, .lv-compact .lv-chips button:hover { background: rgba(255, 255, 255, .1); }
.hw-rooms .room.is-active, .lv-compact .lv-chips button[aria-pressed="true"] { background: #f6f3ee; color: var(--ink); }
@media (max-width: 640px) {
  .hw-live, .hw-cap-note { display: none; }
  .hw-bar { justify-content: center; }
  .hw-cap { left: 10px; bottom: 10px; padding: 5px 10px; font-size: 11.5px; }
  .hw-rooms, .lv-compact .lv-chips { bottom: 10px; }
  .hw-rooms .room, .lv-compact .lv-chips button { padding: 5px 10px; font-size: 12px; }
}
.f-1 .chip { cursor: pointer; }
.f-1 .chip:hover { border-color: rgba(228, 203, 169, .5); }

/* ---------- Level views (hero "Views" tab and the section in 3) ---------- */

.lv-frame { position: relative; overflow: hidden; background: #111113; }
.lv-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity .7s ease, transform 1.4s var(--ease); }
.lv-frame img.is-active { opacity: 1; transform: none; }
.lv-compact { position: absolute; inset: 0; }
.lv-compact .lv-frame { position: absolute; inset: 0; }
.lv-compact .lv-now {
  position: absolute; left: 14px; top: 14px; z-index: 3; padding: 7px 12px; border-radius: 999px;
  background: rgba(11, 11, 12, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 12.5px; color: #e8e5df;
}
.lv-compact .lv-now span { font-weight: 600; color: var(--sand); }
.lv-compact .lv-word { display: none; }

.levels-grid { display: grid; gap: 40px; align-items: center; }
.levels-now { display: flex; align-items: baseline; gap: 14px; }
.levels-now span:first-child { font-size: clamp(42px, 5vw, 64px); font-weight: 500; letter-spacing: -.04em; color: var(--sand); }
.levels-hint { font-size: 13px; color: var(--muted); }
.lv-tower { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 14px; }
.lv-tower .lv-frame { aspect-ratio: 16 / 10; border-radius: var(--r-lg); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
/* A building in section: one bar per level, the chosen one lit. */
.lv-building { display: flex; flex-direction: column; gap: 4px; padding: 10px 8px 0; border-top: 3px solid rgba(255, 255, 255, .45); border-radius: 6px 6px 0 0; }
.lv-building::after { content: ""; height: 3px; margin: 6px -14px 0; background: rgba(255, 255, 255, .28); }
.lv-building button {
  flex: 1; min-height: 34px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 8px;
  background: rgba(255, 255, 255, .04); color: #b9b5ad; font: 500 12.5px var(--font-sans); text-align: left; cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.lv-building button:hover { border-color: rgba(228, 203, 169, .5); color: #fff; }
.lv-building button[aria-pressed="true"] { border-color: var(--sand); background: var(--sand); color: var(--ink); }
@media (min-width: 1024px) {
  .levels-grid { grid-template-columns: 4fr 8fr; gap: 64px; }
  .levels-grid .section-head { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .lv-tower { grid-template-columns: 1fr; }
  .lv-building { flex-direction: row-reverse; padding: 0; border: 0; }
  .lv-building::after { display: none; }
  .lv-building button { min-height: 40px; text-align: center; }
  .lv-building .lv-word { display: none; }
}

/* ---------- 9 · "I'm with a..." switch ---------- */

/* A self-contained card, so the band reads as a deliberate panel rather than a strip cut from the page. */
/* It sits above the next section, so the card's shadow fades over it instead of being cut off at the edge. */
.audband { position: relative; z-index: 1; padding-block: clamp(48px, 6vw, 80px) clamp(16px, 2vw, 24px); }
.audband-card {
  display: grid; gap: clamp(22px, 2.6vw, 30px); padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--card-line); border-radius: 28px; background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 70px -50px rgba(30, 25, 15, .4);
}
.audband-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-bottom: clamp(20px, 2.4vw, 26px); border-bottom: 1px solid var(--line); }
.audband-label { font: 500 12px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.audband-tabs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--card-line); border-radius: 999px; background: var(--paper-2); }
.audband-tabs button { padding: 8px 16px; border: 0; border-radius: 999px; background: none; color: var(--fg-2); font: 500 14.5px var(--font-sans); cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.audband-tabs button:hover { color: var(--fg); }
.audband-tabs button[aria-selected="true"] { background: var(--ink); color: #f6f3ee; box-shadow: 0 6px 14px -8px rgba(11, 11, 12, .6); }
.audband-panel { display: grid; gap: 18px; align-items: center; animation: hw-in .4s ease both; }
.audband-pitch { max-width: 30ch; font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.25; letter-spacing: -.025em; }
.audband-panel ul { display: grid; gap: 8px; }
.audband-panel li { display: flex; gap: 10px; align-items: baseline; color: var(--fg-2, #2b2a28); }
.audband-panel li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--bronze); transform: translateY(-2px); }
@media (min-width: 1024px) {
  .audband-panel { grid-template-columns: 1.3fr 1fr auto; gap: 40px; }
}
@media (max-width: 559px) {
  .audband-tabs { display: grid; grid-template-columns: repeat(3, auto); width: 100%; }
  .audband-tabs button { padding: 8px 6px; font-size: 13.5px; white-space: nowrap; }
}

/* ---------- 6 · What it replaces ---------- */

.replaces-wrap { overflow-x: auto; border: 1px solid var(--card-line); border-radius: var(--r-lg); background: var(--card); box-shadow: 0 24px 48px -38px rgba(20, 16, 10, .3); }
.replaces-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.replaces-table th, .replaces-table td { padding: 17px 22px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.replaces-table tbody tr:last-child > * { border-bottom: 0; }
.replaces-table thead th { font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.replaces-table thead th.is-us { color: var(--ink); }
.replaces-table tbody th { width: 30%; font-weight: 500; }
.replaces-table td { color: var(--muted); }
.replaces-table td:last-child, .replaces-table th.is-us { background: rgba(228, 203, 169, .16); }
.replaces-table td:last-child { color: var(--fg); font-weight: 500; }
.mk { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; vertical-align: 1px; }
.mk-yes { background: var(--avail); }
.mk-part { background: var(--res); }
.mk-no { background: #cbc6bd; }

/* ---------- 7 · How it works ---------- */

.how-steps { display: grid; gap: 40px; }
.how-steps li { position: relative; display: grid; align-content: start; gap: 10px; }
.how-num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: var(--sand); font-size: 14px; font-weight: 600; }
.how-steps h3 { font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.how-steps p { max-width: 36ch; color: var(--muted); }
.how-shot { margin-top: 14px; overflow: hidden; border: 1px solid var(--card-line); border-radius: var(--r-md); background: #fff; box-shadow: 0 30px 60px -44px rgba(30, 25, 15, .5); }
@media (min-width: 900px) {
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .how-steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 54px; right: -14px; height: 1px; background: linear-gradient(90deg, var(--line), var(--line) 70%, transparent); }
}

/* ---------- 10 · Security and data ---------- */

.trust { padding-block: clamp(56px, 7vw, 88px); border-top: 1px solid var(--line); }
.trust-title { margin-bottom: 28px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.025em; }
.trust-grid { display: grid; gap: 24px; }
.trust-grid li { display: grid; align-content: start; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.trust-grid h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.trust-grid p { font-size: 15px; color: var(--muted); }
.trust-grid .tag { margin-left: 4px; vertical-align: 1px; }
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 8 · In the field ---------- */

.field-grid { display: grid; gap: 48px; align-items: center; }
.field-media { position: relative; padding-bottom: 12%; }
.field-main { width: 88%; border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9); }
.field-side { position: absolute; right: 0; bottom: 0; width: 46%; border: 6px solid var(--ink); border-radius: var(--r-md); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.field-facts { display: grid; gap: 10px; margin-block: 8px 12px; }
.field-facts li { display: flex; gap: 10px; color: var(--fg-2, #d9d6d0); }
.field-facts li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--sand); }
.field .section-head { margin-bottom: 0; }
.field .btn { justify-self: start; }
@media (min-width: 1024px) { .field-grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }

/* ---------- 11 · Roadmap ---------- */

.roadmap { position: relative; display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 48px); }
.roadmap li { position: relative; display: grid; gap: 4px; padding-left: 28px; }
.roadmap b { font-size: 16px; font-weight: 500; }
.roadmap li span:last-child { font-size: 14px; color: var(--muted); }
.rm-dot { position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; background: var(--ink); }
.roadmap .is-done .rm-dot { border-color: var(--avail); background: var(--avail); }
.roadmap .is-now .rm-dot { border-color: var(--sand); box-shadow: 0 0 0 5px rgba(228, 203, 169, .14); }
@media (min-width: 900px) {
  .roadmap { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .roadmap::before { content: ""; position: absolute; left: 7px; right: 12%; top: 11px; height: 2px; background: linear-gradient(90deg, var(--avail), var(--sand) 35%, rgba(255, 255, 255, .15) 80%); }
  .roadmap li { padding: 30px 0 0; }
}

/* ---------- 2 · Ask the building (live) ---------- */

/* The live panel gets more of the row and larger type, and invites a try. */
@media (min-width: 1024px) { .f-2 .ai-grid { grid-template-columns: 1.3fr 1fr; } }
.ask { position: relative; transition: box-shadow .45s ease; }
@media (min-width: 1024px) { .ask { position: sticky; } }
.js .ask .msg, .js .ask .chat-actions { opacity: 1; transform: none; transition: none; }
.ask .chat-head { padding: 16px 18px; }
.ask .chat-title { font-size: 16.5px; }
.ask .chat-body { display: grid; gap: 14px; padding: 24px; transition: border-color .45s ease; }
.ask .msg { max-width: 90%; font-size: 16.5px; line-height: 1.55; }
.ask .msg-ai { color: #f1eee8; }
.ask-log { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.ask-log .msg { white-space: pre-wrap; }
.ask-log .msg.is-error { border-color: rgba(239, 90, 90, .45); color: #ffb3b3; }
.ask-log .msg.is-typing { color: #a29f99; }
.ask-log .msg.is-typing::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: ask-dots 1.2s steps(4, end) infinite; }
@keyframes ask-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.ask-live { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px; border: 1px solid rgba(228, 203, 169, .4); border-radius: 999px; font: 500 11px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--sand); }
.ask-live i { width: 7px; height: 7px; border-radius: 50%; background: #5fd38d; animation: ask-ping 2.2s ease-out infinite; }
@keyframes ask-ping { 0% { box-shadow: 0 0 0 0 rgba(95, 211, 141, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95, 211, 141, 0); } }
.ask-try { margin-top: 6px; font-size: 15px; color: #bdb9b2; }
.ask-try .serif { margin-right: 4px; font-size: 22px; color: var(--sand); }
.ask-suggest button { padding: 9px 14px; border: 1px solid rgba(228, 203, 169, .4); border-radius: 999px; background: none; color: var(--sand); font: 14.5px/1.35 var(--font-sans); text-align: left; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.ask-suggest button:hover, .ask-suggest button:focus-visible { border-color: var(--sand); background: rgba(228, 203, 169, .14); color: #f6e8d4; }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; padding: 13px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(0, 0, 0, .35); color: #f4f2ee; font: 16px var(--font-sans); }
.ask-form input::placeholder { color: #8f8b84; }
.ask-form input:focus { outline: none; border-color: rgba(228, 203, 169, .7); box-shadow: 0 0 0 4px rgba(228, 203, 169, .14); }
.ask-form .btn { --h: 48px; }
.ask .chat-foot { padding: 14px 18px 10px; font-size: 13.5px; color: #b0aca4; }

/* Under the cursor, the panel turns gold: a gold edge that burns brightest where the pointer is,
   a warm sheen that follows it across the panel, and a bronze glow on the page beneath. */
.ask::before, .ask::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .45s ease;
}
.ask::before {
  z-index: 2; padding: 2px;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), #f6e2c2, rgba(228, 203, 169, .7) 35%, rgba(228, 203, 169, .38) 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.ask::after {
  z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 0%), rgba(228, 203, 169, .14), transparent 65%);
}
.ask:hover::before, .ask:focus-within::before, .ask:hover::after, .ask:focus-within::after { opacity: 1; }
.ask:hover, .ask:focus-within { box-shadow: 0 50px 100px -50px rgba(20, 16, 10, .65), 0 34px 80px -34px rgba(133, 99, 63, .7); }
.ask:hover .chat-body, .ask:focus-within .chat-body { border-color: rgba(228, 203, 169, .3); }
.ask .chat-title { transition: color .45s ease; }
.ask:hover .chat-title, .ask:focus-within .chat-title { color: #f0d6b0; }

/* ---------- 4 · The company ---------- */

.company-facts { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 40px; border-top: 1px solid var(--line); }
.company-facts > div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.company-facts dt { margin-bottom: 6px; font: 500 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.company-facts dd { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.people { display: grid; gap: 16px; }
.people li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--card-line); border-radius: var(--r-md); background: var(--card); }
.people .avatar { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(228, 203, 169, .14); color: var(--sand); font-weight: 600; }
.people li span:last-child { font-size: 14px; color: var(--muted); }
/* Placeholders to fill in before this goes anywhere. */
.todo { outline: 1px dashed #3c7dff; outline-offset: 4px; color: #8fb2ff !important; }
@media (min-width: 900px) {
  .company-facts { grid-template-columns: repeat(4, 1fr); }
  .company-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
  .people { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 12 · Questions ---------- */

.faq-grid { display: grid; gap: 40px; }
.faq-grid > * { min-width: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { flex: 1; min-width: 0; }
.faq-list summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px;
  background: linear-gradient(var(--muted), var(--muted)) center / 14px 1.5px no-repeat, linear-gradient(var(--muted), var(--muted)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; padding-bottom: 22px; color: var(--muted); }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 1fr 1.5fr; gap: 72px; }
  .faq .section-head { margin-bottom: 0; }
}

/* ---------- 5 · Restraint pass: fewer template tells, same warmth ---------- */

.f-5 .hero .pill { display: none; }
.f-5 .hero-bg::before { display: none; }
.f-5 .chip { display: none !important; }
.f-5 main .h2[data-plain] .serif { font-family: inherit; font-size: 1em; font-style: normal; font-weight: inherit; letter-spacing: inherit; color: inherit; }
.f-5 svg:has(use[href="#i-sparkle"]), .f-5 .card-icon:has(use[href="#i-sparkle"]) { display: none; }

/* ---------- 1 · Bar legend (moved out of the screenshot) ---------- */

.hw-meta { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; font-size: 12.5px; color: #b9b5ad; }
.hw-meta .dot:not(:first-child) { margin-left: 8px; }
@media (max-width: 640px) {
  .hw-meta { display: none !important; }
}

/* ---------- 1 · The unit card: the app's own card, opening beside the available unit ---------- */

.unit-layer { position: absolute; inset: 0; }
.unit-dim { position: absolute; inset: 0; padding: 0; border: 0; background: rgba(10, 10, 12, .42); opacity: 0; pointer-events: none; cursor: default; transition: opacity .6s ease; }
.unit-layer.is-open .unit-dim { opacity: 1; pointer-events: auto; }
/* The green dot on the façade (measured from the screenshot: 44.2% across, 47.4% down). */
.unit-dot {
  position: absolute; left: 44.2%; top: 47.4%; z-index: 2; width: 26px; height: 26px; padding: 0; transform: translate(-50%, -50%);
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.unit-dot::before, .unit-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.unit-dot::before { inset: 8px; background: #3ecf8e; box-shadow: 0 0 12px rgba(62, 207, 142, .9); }
.unit-dot::after { border: 2px solid rgba(62, 207, 142, .9); animation: unit-ping 2s ease-out infinite; }
@keyframes unit-ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }
.unit-card {
  position: absolute; left: 24.4%; top: 31%; z-index: 3; width: 17.6%; min-width: 150px; padding: 1.4% 1.5%;
  border-radius: 6px; background: #fff; color: #111; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  font-family: var(--font-sans); opacity: 0; transform: translateX(10px) scale(.96); transform-origin: right center;
  pointer-events: none; transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.unit-layer.is-open .unit-card { opacity: 1; transform: none; pointer-events: auto; transition-delay: .15s; }
.unit-card dl { display: grid; gap: clamp(4px, .6vw, 9px); margin: 0 0 clamp(8px, 1vw, 14px); }
.unit-card dl > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.unit-card dt { font-size: clamp(7.5px, .72vw, 11px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.unit-card dd { margin: 0; display: flex; align-items: center; gap: 5px; font-size: clamp(7.5px, .72vw, 11px); font-weight: 600; letter-spacing: .08em; color: #555; }
.unit-badge { padding: 2px 5px; border-radius: 3px; background: #d8f5e3; color: #1f9d58; font-size: .9em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.unit-specs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-bottom: clamp(8px, 1vw, 14px); color: #8a8a8a; font-size: clamp(7.5px, .7vw, 10.5px); }
.unit-specs li { display: inline-flex; align-items: center; gap: 3px; }
.unit-specs svg { width: clamp(10px, 1vw, 15px); height: clamp(10px, 1vw, 15px); fill: none; stroke: #555; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.unit-btn {
  display: block; width: 100%; margin-top: clamp(4px, .5vw, 7px); padding: clamp(5px, .6vw, 9px) 4px; border: 0; border-radius: 3px;
  background: #f1f0ee; color: #555; font: 600 clamp(7px, .66vw, 10px) var(--font-sans); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .2s;
}
.unit-btn:hover { background: #e4e2de; }
.unit-plate { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.unit-back {
  position: absolute; left: 14px; top: 14px; z-index: 5; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px;
  background: rgba(11, 11, 12, .72); color: #f4f2ee; font: 500 12.5px var(--font-sans); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.unit-layer.is-plan .unit-plate, .unit-layer.is-plan .unit-back { opacity: 1; pointer-events: auto; }
.unit-layer.is-plan .unit-card, .unit-layer.is-plan .unit-dot { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .unit-card { left: 3%; top: 18%; width: 38%; min-width: 0; padding: 2.4%; }
  .unit-card dt, .unit-card dd, .unit-specs { font-size: 8px; }
}

/* ---------- 13 · Scroll atmosphere: window light ---------- */

/* Sunlight through a window of nine equal panes falls across each section and drifts as the sun moves, with the odd
   cloud dimming it. The window art (built in features.js) is static; only transform and opacity animate. */
.f-13 main > section { position: relative; isolation: isolate; }
.f-13 .rebuild-bg, .f-13 .access-bg { z-index: -2; }
.sun {
  position: absolute; inset: 0; z-index: -1; overflow: clip; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 140px, #000 calc(100% - 220px), transparent);
  mask-image: linear-gradient(180deg, transparent, #000 140px, #000 calc(100% - 220px), transparent);
}
.hero > .sun { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 220px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 220px), transparent); }
.sun-window {
  position: absolute; top: -90px; left: var(--sun-left, 44%);
  width: min(1100px, 82vw); aspect-ratio: 1;
  background: var(--sun-light) center / 100% 100% no-repeat;
  transform-origin: 50% 0;
  animation: sun-drift 30s ease-in-out infinite alternate, sun-cloud 11s ease-in-out infinite alternate;
  animation-delay: var(--sun-delay, 0s);
  will-change: transform, opacity;
}
.theme-dark > .sun .sun-window { background-image: var(--sun-dark); }
@keyframes sun-drift {
  from { transform: translateX(-9%) skewX(-18deg) scaleY(.94); }
  to { transform: translateX(9%) skewX(-30deg) scaleY(1.04); }
}
@keyframes sun-cloud {
  0%, 35% { opacity: 1; }
  100% { opacity: .62; }
}
@media (max-width: 899px) {
  .sun-window { left: 8%; width: 150vw; }
}
@media (prefers-reduced-motion: reduce) {
  .sun-window { animation: none; transform: skewX(-24deg); }
}

/* Fine film grain on dark sections. */
.f-13 .theme-dark.section:not(.try)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 14 · Logo: OFFPLAN in spaced capitals ---------- */

/* No symbol: the name alone, in widely spaced capitals, with OFF bold and PLAN regular. */
.logo-caps { font: 400 14px/1 var(--font-sans); letter-spacing: .34em; margin-right: -.34em; text-transform: uppercase; }
.logo-caps b { font-weight: 700; }
