/* 100 Curtain Road — shared styles */
:root {
  --ink: #1c1a17;
  --ink-2: #4a443b;
  --mute: #7a705e;
  --line: #d9cfbe;
  --paper: #f7f3eb;
  --mist: #ece5d6;
  --sky: #e2d6c0;
  --sky-2: #efe8db;
  --night: #1c1a17;
  --night-2: #26231f;
  --brick-soft: #f3ead8;
  /* the accent: brass by default, the tenant's own colour when the site is personalised (assets/brand.js) */
  --acc: #c9a66b;          /* fills, bars, dots */
  --acc-rgb: 201,166,107;
  --acc-ink: #1c1a17;      /* text on an accent fill */
  --acc-deep: #a8823f;     /* stronger fills and lines on paper */
  --acc-text: #8a6a2f;     /* accent text on paper */
  --acc-mute: #8a7a5c;     /* small labels on paper */
  --acc-on-dark: #c9a66b;  /* accent text on the dark panels */
  --acc-soft: #f3ead8;     /* tints */
  --acc-sky: #e2d6c0;      /* top of the light header cards */
  --acc-sky-2: #eee6d7;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --disp: "Archivo", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}
.display {
  font-size: clamp(48px, 9vw, 112px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.045em;
}
.h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lede {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.38;
  color: var(--ink-2);
  letter-spacing: -0.015em;
  max-width: 34em;
}
.body { color: var(--ink-2); max-width: 36em; }
.body + .body { margin-top: 1em; }
.mute { color: var(--mute); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 52px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.on-dark { background: rgba(28,26,23, 0.72); border-bottom-color: rgba(255,255,255,.08); color: #ece5d6; }
.nav .wrap-wide { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; white-space: nowrap; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .55; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13.5px; }
.nav-links a { opacity: .78; transition: opacity .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { font-weight: 500; }
.nav-links .pill {
  opacity: 1; background: var(--ink); color: #fff; padding: 7px 15px; border-radius: 999px; font-weight: 500;
}
.nav.on-dark .nav-links .pill { background: #ece5d6; color: var(--ink); }
.nav-toggle { display: none; width: 40px; height: 40px; margin-right: -10px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav.open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 52px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 12px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
    font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  }
  .nav.on-dark .nav-links { background: rgba(28,26,23,.97); }
  .nav.open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 10px 0; width: 100%; opacity: 1; }
  .nav-links .pill { margin-top: 14px; width: auto; padding: 12px 22px; font-size: 16px; }
}

/* ---------- Sections ---------- */
main { padding-top: 52px; }
.section { padding: clamp(88px, 12vw, 160px) 0; }
.section.tight { padding: clamp(64px, 8vw, 104px) 0; }
.mist { background: var(--mist); }
.dark { background: var(--night); color: #ece5d6; }
.dark .lede, .dark .body { color: #a1a1a6; }
.dark .eyebrow { color: #8a8070; }

.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 22px; }
.stack-lg > * + * { margin-top: 36px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--acc-deep); font-weight: 500; font-size: 17px;
}
.link-arrow::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translate(3px, -1px); }
.dark .link-arrow { color: var(--acc-on-dark); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 999px;
  background: var(--ink); color: #fff; font-weight: 500; font-size: 16px;
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { background: #000; }
.btn.light { background: #ece5d6; color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Media ---------- */
.frame { border-radius: var(--radius); overflow: hidden; background: var(--mist); position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.caption { font-size: 13px; color: var(--mute); margin-top: 12px; }
.tag {
  position: absolute; left: 16px; bottom: 16px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.88); color: var(--ink);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 6px 10px; border-radius: 999px;
}

/* ---------- Page heads ---------- */
.page-head { padding: clamp(72px, 10vw, 132px) 0 clamp(48px, 6vw, 72px); }
.page-head .eyebrow { margin-bottom: 18px; }
.page-head .lede { margin-top: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* ---------- Footer CTA + footer ---------- */
.next-up { padding: clamp(80px, 10vw, 128px) 0; text-align: center; }
.next-up .h2 { max-width: 15em; margin: 14px auto 30px; }
.foot { background: var(--mist); padding: 40px 0 48px; font-size: 12px; color: var(--mute); }
.foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a:hover { color: var(--ink); }
.foot .legal { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; max-width: 70em; line-height: 1.6; }
.foot strong { color: var(--ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- v2 language ---------- */
.dark { background: var(--night); }
.dark .lede, .dark .body { color: #b3a893; }
.dark .eyebrow { color: #9c907d; }
.nav.on-dark { background: rgba(28,26,23, .72); }
.nav.on-dark .nav-links .pill { background: #fff; }

/* Framed cards: sections sit inside a rounded frame inset from the window */
.card { margin: 0 12px; border-radius: var(--radius); overflow: hidden; position: relative; }
.card + .card, .card-gap { margin-top: 12px; }
.card.sky { background: linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 55%, #fff 100%); }
.card.mist { background: var(--mist); }
.card.dark { background: var(--night); color: #efe9dd; }

/* Arrow buttons */
.btn-arrow { display: inline-flex; align-items: center; gap: 4px; }
.btn-arrow .btn { padding: 0 22px; }
.btn-arrow .circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; transition: transform .35s var(--ease);
}
.btn-arrow:hover .circle { transform: rotate(45deg); }
.circle svg, .round svg { width: 16px; height: 16px; }
.round {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff;
  display: inline-grid; place-items: center; flex: none; transition: transform .35s var(--ease);
}
a:hover > .round, .round:hover { transform: rotate(45deg); }
.dark .btn-arrow .btn, .dark .btn-arrow .circle, .dark .round { background: #fff; color: var(--ink); }

/* Shaped crops, echoing the school's arched windows */
.arch { border-radius: 999px 999px 24px 24px; overflow: hidden; }
.disc { border-radius: 50%; overflow: hidden; aspect-ratio: 1; }
.pillimg { border-radius: 999px; overflow: hidden; }
.arch img, .disc img, .pillimg img { width: 100%; height: 100%; object-fit: cover; }

/* Page heads become sky cards */
.head-card { padding: clamp(96px, 12vw, 150px) 0 clamp(56px, 7vw, 88px); }
.head-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: end; }
.head-grid .lede { margin-top: 22px; }
.head-media { max-width: 380px; justify-self: end; width: 100%; }
.head-media.arch { aspect-ratio: 3 / 4; }
@media (max-width: 860px) {
  .head-grid { grid-template-columns: 1fr; }
  .head-media { justify-self: start; max-width: 240px; }
}

/* Word fill statement */
.fill-text { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.14; font-weight: 500; letter-spacing: -0.035em; }
.fill-text .w { color: #cdc2ae; transition: color .4s var(--ease); }
.fill-text .w.on { color: var(--ink); }
.fill-text .inline-img { display: inline-block; width: 2.3em; height: .95em; vertical-align: -0.12em; border-radius: 999px; overflow: hidden; margin: 0 .08em; }
.fill-text .inline-img img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .fill-text .w { color: var(--ink); } }

.foot { background: transparent; }
.foot-card { margin: 12px; border-radius: var(--radius); background: var(--mist); padding: 40px 0 44px; }
.head-card { margin-top: 12px; }
.head-grid.solo { grid-template-columns: 1fr; }
.head-grid.solo .h1 { max-width: 15em; }

/* ---------- v5: Shoreditch industrial layer ---------- */
body { background: var(--paper); }
.display, .h1, .h2, .hero-word, .stats dd, .walk b, .nb-name, .niy-num, .curtain-mark, .timeline .when, .pl-people-out, .pl-summary > div b, .nbb-facts b, .v-figures dd, .liz-times dd, .bench-list dd {
  font-family: var(--disp); font-variation-settings: "wdth" 72; font-weight: 700; letter-spacing: -0.015em;
}
.display, .h1 { line-height: .95; }
.h2 { line-height: 1.0; }
.h3 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { color: var(--acc-mute); letter-spacing: .12em; }
.dark .eyebrow { color: var(--acc-on-dark); }
.card.sky { background: linear-gradient(180deg, var(--acc-sky) 0%, var(--acc-sky-2) 55%, var(--paper) 100%); }
.card { border: 1px solid rgba(28,26,23,.06); }
.card.dark { border-color: rgba(var(--acc-rgb),.18); }
.btn { border-radius: 10px; }
.btn-arrow .circle, .round { border-radius: 10px; }
.btn.light { background: #ece5d6; }
.dark .btn-arrow .btn, .dark .btn-arrow .circle, .dark .round { background: var(--acc); color: #1c1a17; }
.link-arrow { color: var(--acc-text); }
/* light grain, only where it earns its place */
.card.dark, .hero3, .head-card, .v-head2, .grain { position: relative; isolation: isolate; }
.card.dark::after, .v-head2::after, .grain::after { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: url(grain.png); opacity: .22; mix-blend-mode: screen; filter: invert(1); }
.hero3::after, .head-card::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background: url(grain.png); opacity: .16; mix-blend-mode: multiply; }
.head-card > * { position: relative; z-index: 4; }
.hero3 > .hero-building, .hero3 > .hero-word, .hero3 > .hero-note, .hero3 > .hero-eyebrow { z-index: 4; }
/* a quiet ruled edge, like a drawing sheet */
.section-rule { border-top: 1px solid var(--line); }
.nav { background: rgba(247,243,235,.82); border-bottom-color: rgba(28,26,23,.08); }
.nav.on-dark { background: rgba(28,26,23,.78); }
@media (max-width: 860px) { .nav-links { background: #f7f3eb; } .nav.on-dark .nav-links { background: #1c1a17; } }
.foot-card { background: #1c1a17; color: #b3a893; }
.foot-card strong { color: #efe9dd; }
.foot-card .legal { border-top-color: #38332c; }
.foot nav a:hover { color: var(--acc); }

/* ---------- tenant branding ---------- */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nav-links .mk { color: var(--acc-text); font-weight: 500; }
html[data-branded] .btn, html[data-branded] .btn-arrow .circle, html[data-branded] .round, html[data-branded] .nav-links .pill { background: var(--acc); color: var(--acc-ink); }
html[data-branded] .btn:hover { background: var(--acc-deep); }
html[data-branded] .pl-style button[aria-pressed="true"], html[data-branded] .pl-rail button[aria-pressed="true"], html[data-branded] .pl-viewseg button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
html[data-branded] .tl-fill, html[data-branded] .timeline li.active::before { background: var(--acc); }
html:not([data-branded]) .if-brand { display: none !important; }
html[data-branded] .if-nobrand { display: none !important; }
/* their typeface (or its closest Google Fonts match) on the big headings */
html[data-brand-font] .display, html[data-brand-font] .h1, html[data-brand-font] .h2, html[data-brand-font] .lx-card h2 {
  font-family: var(--brand-disp), var(--disp); font-variation-settings: normal; font-weight: 600; letter-spacing: -0.025em; }
html[data-brand-font="serif"] .display, html[data-brand-font="serif"] .h1, html[data-brand-font="serif"] .h2, html[data-brand-font="serif"] .lx-card h2 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; }
/* logos: a dark logo turns white on dark panels, a white one turns dark on light panels */
.dark [data-tone="dark"] img, .dark img[data-tone="dark"], .on-dark [data-tone="dark"] img, .nav.on-dark img[data-tone="dark"], .brand-ribbon img[data-tone="dark"], .qx-h img[data-tone="dark"] { filter: brightness(0) invert(1); }
.light-surface [data-tone="light"] img, img.tpl-logo[data-tone="light"], .brand-for img[data-tone="light"], .lx-card [data-tone="light"] img { filter: brightness(0); opacity: .86; }
.tpl-logo { display: inline-block; height: .78em; width: auto; max-width: 4.5em; vertical-align: -0.04em; object-fit: contain; }
.tpl-name { font-weight: inherit; }
.brand-for { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; font-weight: 600; }
.brand-for i { font-style: normal; color: var(--mute); font-weight: 400; }
.brand-for img { height: 18px; max-width: 84px; object-fit: contain; }
.brand-for.has-logo b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.brand-ribbon { position: fixed; left: 0; right: 0; top: 52px; z-index: 49; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 5px 12px;
  background: #1c1a17; color: #efe9dd; font-size: 12.5px; }
.brand-ribbon b { color: var(--acc-on-dark); font-weight: 600; }
.brand-ribbon a, .brand-ribbon button { color: #efe9dd; font: 500 11px var(--sans); letter-spacing: .02em; padding: 3px 9px; border-radius: 7px; background: rgba(255,255,255,.08); }
.brand-ribbon a:hover, .brand-ribbon button:hover { background: rgba(255,255,255,.16); }
html[data-branded] main { padding-top: 84px; }
@media (max-width: 860px) { .brand-for b { display: none; } .brand-ribbon { gap: 6px; } .brand-ribbon span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 38vw; } .brand-ribbon [data-act=clear] { display: none; } }

/* ---------- details pop-up ---------- */
.lx-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; background: rgba(20,18,15,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s var(--ease); overflow-y: auto; }
.lx-modal.in { opacity: 1; }
.lx-card { position: relative; width: min(560px, 100%); background: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); transform: translateY(14px) scale(.985); transition: transform .45s var(--ease); }
.lx-modal.in .lx-card { transform: none; }
.lx-x { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; color: var(--mute); }
.lx-x:hover { background: var(--mist); color: var(--ink); }
.lx-head { display: grid; gap: 10px; margin-bottom: 22px; }
.lx-head h2 { font-family: var(--disp); font-variation-settings: "wdth" 72; font-weight: 700; font-size: clamp(28px, 4vw, 38px); line-height: 1; letter-spacing: -0.015em; text-wrap: balance; padding-right: 24px; }
.lx-head p { color: var(--ink-2); font-size: 16px; }
.lx-eyebrow { font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-mute); }
.lx-pair { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--mute); }
.lx-pair .lx-logo { display: inline-flex; align-items: center; height: 26px; }
.lx-pair .lx-logo img { height: 26px; max-width: 130px; object-fit: contain; }
.lx-pair .lx-logo b { font-size: 16px; color: var(--ink); }
.lx-pair i { font-style: normal; }
.lx-cr { font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.lx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lx-f { grid-column: 1 / -1; display: grid; gap: 5px; }
.lx-f.half { grid-column: span 1; }
.lx-f span { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.lx-f input { font: inherit; font-size: 16px; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; transition: border-color .2s, background .2s; }
.lx-f input:focus { outline: none; border-color: var(--acc-deep); background: #fff; }
.lx-f.bad input { border-color: #b2563a; background: #fff; }
.lx-form { display: grid; gap: 14px; }
.lx-form .btn { width: 100%; height: 52px; font-size: 16px; }
.lx-note { font-size: 14px; color: var(--ink-2); min-height: 1.2em; }
.lx-small { font-size: 12px; color: var(--mute); text-align: center; }
.lx-later { justify-self: center; font-size: 13.5px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .lx-f.half { grid-column: 1 / -1; } .lx-modal { place-items: end center; padding: 0; } .lx-card { border-radius: 22px 22px 0 0; } }

/* ---------- questions widget ---------- */
.qx-launch { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.qx-launch.in { opacity: 1; transform: none; }
.qx-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: transform .25s var(--ease); }
.qx-btn:hover { transform: scale(1.05); }
.qx-btn svg { width: 24px; height: 24px; }
.qx-tease { position: relative; max-width: 250px; background: #fff; border-radius: 16px 16px 4px 16px; padding: 14px 34px 14px 16px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.4); display: grid; gap: 3px; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.qx-tease b { color: var(--ink); font-size: 15px; }
.qx-tx { position: absolute; right: 8px; top: 6px; width: 24px; height: 24px; border-radius: 50%; color: var(--mute); font-size: 16px; }
.qx { position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: min(390px, calc(100vw - 36px)); height: min(580px, calc(100vh - 140px)); background: #fff; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); display: flex; flex-direction: column; overflow: hidden; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.qx.in { opacity: 1; transform: none; pointer-events: auto; }
.qx-h { background: #1c1a17; color: #efe9dd; padding: 16px 16px 16px 20px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.qx-h div { display: grid; gap: 4px; }
.qx-h b { font-size: 16px; }
.qx-h span { font-size: 12.5px; color: #b3a893; line-height: 1.4; }
.qx-close { color: #efe9dd; font-size: 22px; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.qx-close:hover { background: rgba(255,255,255,.1); }
.qx-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.qx-gate { padding: 18px 20px; overflow-y: auto; display: grid; gap: 14px; }
.qx-gate p { font-size: 14.5px; color: var(--ink-2); }
.lx-form.compact { gap: 10px; }
.lx-form.compact .lx-f input { padding: 10px 12px; font-size: 15px; }
.lx-form.compact .btn { height: 46px; }
.qx-log { flex: 1; overflow-y: auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 8px; }
.qx-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; }
.qx-m.bot { background: var(--mist); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.qx-m.me { background: var(--acc); color: var(--acc-ink); border-bottom-right-radius: 4px; align-self: flex-end; }
.qx-m.wait { color: var(--mute); letter-spacing: .2em; }
.qx-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.qx-chips button { font-size: 13px; padding: 7px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.qx-chips button:hover { box-shadow: inset 0 0 0 1.5px var(--acc-deep); color: var(--ink); }
.qx-in { display: flex; gap: 8px; padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--mist); }
.qx-in input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.qx-in input:focus { outline: none; border-color: var(--acc-deep); }
.qx-in button { width: 44px; height: 44px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); display: grid; place-items: center; flex: none; }
.qx-in button svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .qx { right: 0; left: 0; bottom: 0; width: 100%; height: 86vh; border-radius: 20px 20px 0 0; } .qx-launch { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- branded interior renders ---------- */
.rooms { display: grid; gap: 12px; }
.rooms-main { position: relative; border-radius: var(--radius); overflow: hidden; background: #2a2723; aspect-ratio: 16 / 10; max-width: 100%; }
.rooms-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s var(--ease); }
.rooms-main img.on { opacity: 1; }
.rooms-cap { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: flex; gap: 8px; align-items: center; background: rgba(20,18,15,.66); color: #efe9dd; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; }
.rooms-cap b { font-weight: 600; }
.rooms-wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #d8cfbf; font-size: 14.5px; padding: 20px; background: linear-gradient(110deg, #2a2723 30%, #36322c 50%, #2a2723 70%); background-size: 220% 100%; animation: rooms-shim 1.6s linear infinite; }
.rooms-wait[hidden] { display: none; }
@keyframes rooms-shim { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.rooms-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.rooms-thumbs button { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 10; background: #2a2723; box-shadow: inset 0 0 0 0 var(--acc); transition: box-shadow .2s; }
.rooms-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.rooms-thumbs button span { position: absolute; left: 6px; bottom: 5px; font-size: 10.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rooms-thumbs button[aria-pressed="true"]::after { content: ""; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 2.5px var(--acc); }
.rooms-note { font-size: 12.5px; color: var(--mute); }
@media (max-width: 600px) { .rooms-thumbs button span { display: none; } }

/* ---------- colour fields: a swatch, then hex, RGB or CMYK ---------- */
.cp { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; }
.cp-sw { width: 52px; height: 52px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; overflow: hidden; cursor: pointer; }
.cp-sw input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); opacity: 0; cursor: pointer; }
.cp-main { display: grid; gap: 6px; min-width: 0; }
.cp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cp-top b { font-size: 13.5px; }
.cp-modes { display: inline-flex; background: var(--mist); border-radius: 8px; padding: 2px; }
.cp-modes button { font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 6px; color: var(--mute); }
.cp-modes button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cp-vals { display: flex; gap: 6px; }
.cp-vals label { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 10.5px; color: var(--mute); font-weight: 600; letter-spacing: .04em; }
.cp-vals input { font: inherit; font-size: 14.5px; font-variant-numeric: tabular-nums; color: var(--ink); width: 100%; min-width: 0; padding: 8px 9px; border-radius: 9px; border: 1px solid var(--line); background: #fff; }
.cp-vals input:focus { outline: none; border-color: var(--acc-deep); }

/* ---------- month picker ---------- */
.mp { position: relative; }
.mp-btn { width: 100%; text-align: left; font: inherit; font-size: 17px; color: var(--ink); background: var(--mist); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 44px 14px 16px; position: relative; }
.mp-btn.empty { color: var(--mute); }
.mp-btn::after { content: ""; position: absolute; right: 18px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border-radius: 3px; box-shadow: inset 0 0 0 1.6px currentColor; background: linear-gradient(currentColor, currentColor) 0 3px / 100% 1.6px no-repeat; opacity: .55; }
.mp-pop { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; background: #fff; border-radius: 16px; padding: 14px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.4); display: grid; gap: 10px; }
.mp-pop[hidden] { display: none; }
.mp-yr { display: flex; align-items: center; justify-content: space-between; font-weight: 600; }
.mp-yr button { width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.mp-yr button:hover:not(:disabled) { background: var(--mist); }
.mp-yr button:disabled { opacity: .25; }
.mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mp-grid button { padding: 10px 0; border-radius: 10px; font-size: 14px; }
.mp-grid button:hover:not(:disabled) { background: var(--mist); }
.mp-grid button:disabled { opacity: .3; }
.mp-grid button[aria-pressed="true"] { background: var(--acc); color: var(--acc-ink); }
.mp-unsure { font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }

/* floor area schedule */
.areas-sec .areas-head { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: end; margin-bottom: 28px; }
.areas { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.areas th, .areas td { text-align: right; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.areas th:first-child, .areas td:first-child { text-align: left; }
.areas thead th { font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.areas tbody td { font-size: 16px; }
.areas tbody td:first-child { font-weight: 600; }
.areas .bar { display: block; height: 6px; border-radius: 3px; background: var(--acc); margin-top: 6px; }
.areas tfoot td { font-family: var(--disp); font-variation-settings: "wdth" 72; font-weight: 700; font-size: 22px; border-bottom: 0; border-top: 2px solid var(--ink); }
.areas-sec .caption { margin-top: 14px; }
@media (max-width: 720px) { .areas-sec .areas-head { grid-template-columns: 1fr; } .areas th:nth-child(3), .areas td:nth-child(3) { display: none; } .areas th, .areas td { padding: 12px 6px; } }


/* anything marked hidden stays hidden, whatever its display */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[data-branded] .btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
html[data-branded] .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--acc-deep); background: transparent; }
@media (max-width: 860px) { html[data-branded] .brand small { display: none; } .brand-for img { max-width: 70px; height: 16px; } .nav .brand { min-width: 0; overflow: hidden; } .nav-toggle { flex: none; } }

/* ---------- the building as a character (questions) ---------- */
.lx-card.mini { width: min(460px, 100%); }
.lx-card.mini .lx-grid { grid-template-columns: 1fr; }
.lx-card.mini .lx-f.half { grid-column: 1 / -1; }
.qx-btn { width: 64px; height: 64px; background: #fff; padding: 0; position: relative; box-shadow: 0 16px 34px -14px rgba(0,0,0,.45), inset 0 0 0 3px var(--acc); overflow: visible; }
.qx-btn .qx-face { width: 46px; height: 46px; }
.qx-dot { position: absolute; right: 3px; top: 3px; width: 13px; height: 13px; border-radius: 50%; background: #3fb36b; box-shadow: 0 0 0 2.5px #fff; }
.qx-face .eye, .qx-face .pupil { transform-box: fill-box; transform-origin: center; animation: qx-blink 5.5s infinite; }
@keyframes qx-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.qx-launch { animation: qx-hop 1s var(--ease) 1; }
@keyframes qx-hop { 0% { transform: translateY(18px) scale(.9); } 60% { transform: translateY(-4px); } 100% { transform: none; } }
.qx-tease { border-radius: 18px 18px 6px 18px; padding: 14px 34px 15px 16px; animation: qx-pop .5s var(--ease); }
@keyframes qx-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
.qx-h { align-items: center; padding: 14px 14px 14px 16px; }
.qx-av { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: inset 0 0 0 2.5px var(--acc); }
.qx-av .qx-face { width: 32px; height: 32px; }
.qx-h div { flex: 1; min-width: 0; }
.qx-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3fb36b; margin-right: 6px; vertical-align: 1px; }
.qx-m.wait { display: inline-flex; gap: 4px; padding: 13px 14px; }
.qx-m.wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: qx-dots 1.1s infinite; }
.qx-m.wait i:nth-child(2) { animation-delay: .15s; } .qx-m.wait i:nth-child(3) { animation-delay: .3s; }
@keyframes qx-dots { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.qx-m.bot { animation: qx-pop .35s var(--ease); }

/* Make It Yours stands out in the menu */
.nav-links .pill { background: var(--acc-deep); color: #fff; }
.nav-links .pill:hover { filter: brightness(1.06); }
/* the helper asks for attention every 20 seconds */
.qx-launch { flex-direction: column; }
.qx-btn { isolation: isolate; }
.qx-ring { position: absolute; inset: -9px; width: calc(100% + 18px); height: calc(100% + 18px); transform: rotate(-90deg); pointer-events: none; }
.qx-ring circle { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 233; stroke-dashoffset: 233; opacity: 0; }
.qx-btn.nudge .qx-ring circle { animation: qx-draw 2.6s var(--ease) 1; }
@keyframes qx-draw { 0% { stroke-dashoffset: 233; opacity: 1; } 55% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.qx-btn.nudge .qx-face { animation: qx-wiggle 1.3s var(--ease) .2s 1; transform-origin: 50% 90%; }
@keyframes qx-wiggle { 0%, 100% { transform: none; } 18% { transform: translateY(-5px) rotate(-6deg); } 36% { transform: translateY(0) rotate(5deg); } 54% { transform: translateY(-3px) rotate(-3deg); } 72% { transform: rotate(1deg); } }
.qx-btn.nudge .pupil { animation: qx-look 2.2s ease-in-out 1; }
@keyframes qx-look { 0%, 100% { transform: none; } 25% { transform: translateX(-2px); } 60% { transform: translateX(2px); } }
.qx-label { position: absolute; right: 74px; bottom: 18px; white-space: nowrap; background: var(--night); color: #efe9dd; font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 999px; opacity: 0; transform: translateX(8px); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.qx-launch.talk .qx-label, .qx-launch:hover .qx-label { opacity: 1; transform: none; }
.qx-launch:has(.qx-tease) .qx-label { display: none; }
@media (prefers-reduced-motion: reduce) { .qx-btn.nudge .qx-face, .qx-btn.nudge .pupil { animation: none; } }
.qx-launch .qx-btn svg.qx-ring { position: absolute; left: -9px; top: -9px; width: 82px; height: 82px; }
html.lx-locked, html.lx-locked body { overflow: hidden; }
.lx-modal { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(20,18,15,.6); }

/* ---------- details pop-up, v2: image beside the form ---------- */
.lx-card.lx2 { width: min(940px, 100%); padding: 0; display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; border-radius: 24px; box-shadow: 0 50px 100px -40px rgba(0,0,0,.6); }
.lx2 .lx-media { position: relative; min-height: 100%; background: #2a2723; }
.lx2 .lx-media img, .lx2 .lx-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.lx2 .lx-media canvas { object-position: 50% 55%; }
.lx2 .lx-media::after { content: ""; position: absolute; inset: 50% 0 0 0; background: linear-gradient(transparent, rgba(15,13,11,.7)); }
.lx2 .lx-media-cap { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: #fff; }
.lx2 .lx-media-cap b { font-family: var(--disp); font-variation-settings: "wdth" 72; font-weight: 700; font-size: 26px; letter-spacing: -0.01em; line-height: 1; }
.lx2 .lx-media-cap span:last-child { flex-basis: 100%; font-size: 14px; color: rgba(255,255,255,.8); }
.lx2 .lx-media-cap i { font-style: normal; opacity: .7; }
.lx2 .lx-media-cap .lx-logo { display: inline-flex; background: #fff; border-radius: 8px; padding: 5px 9px; }
.lx2 .lx-media-cap .lx-logo img { position: static; height: 20px; width: auto; max-width: 110px; object-fit: contain; }
.lx2 .lx-body { padding: clamp(28px, 4vw, 48px); display: grid; align-content: center; gap: 26px; background: var(--paper); }
.lx2 .lx-head { margin: 0; gap: 14px; }
.lx2 .lx-head h2 { font-family: var(--disp); font-variation-settings: "wdth" 72; font-weight: 800; font-size: clamp(36px, 4.2vw, 50px); line-height: .95; letter-spacing: -0.015em; text-wrap: balance; padding-right: 0; color: var(--ink); }
.lx2 .lx-head p { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); max-width: 30em; }
.lx2 .lx-form { gap: 16px; }
.lx2 .lx-grid { grid-template-columns: 1fr; gap: 14px; }
.lx2 .lx-f.half { grid-column: 1 / -1; }
.lx2 .lx-f span { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: 0; }
.lx2 .lx-f input { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 15px 16px; font-size: 16.5px; }
.lx2 .lx-f input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(var(--acc-rgb), .18); }
.lx2 .lx-go { height: 56px; width: 100%; border-radius: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-size: 16.5px; font-weight: 600; background: var(--ink); color: #fff; }
html[data-branded] .lx2 .lx-go { background: var(--acc); color: var(--acc-ink); }
.lx2 .lx-go svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.lx2 .lx-go:hover svg { transform: translateX(3px); }
.lx2 .lx-note:empty { display: none; }
.lx2 .lx-small { text-align: left; font-size: 12.5px; color: var(--mute); }
.lx2 .lx-x { z-index: 3; background: rgba(255,255,255,.85); }
@media (max-width: 760px) {
  .lx-card.lx2 { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 94vh; overflow-y: auto; }
  .lx2 .lx-media { min-height: 0; aspect-ratio: 16 / 9; }
  .lx2 .lx-body { padding: 24px 20px 28px; gap: 20px; }
  .lx2 .lx-head h2 { font-size: 34px; }
}
.lx2 .lx-grid { grid-template-columns: 1fr 1fr; }
.lx2 .lx-f.half { grid-column: span 1; }
@media (max-width: 420px) { .lx2 .lx-grid { grid-template-columns: 1fr; } .lx2 .lx-f.half { grid-column: 1 / -1; } }
.lx-card.lx2.mini .lx-grid { grid-template-columns: 1fr 1fr; }
.lx-card.lx2.mini .lx-f.half { grid-column: span 1; }
@media (max-width: 420px) { .lx-card.lx2.mini .lx-grid { grid-template-columns: 1fr; } .lx-card.lx2.mini .lx-f.half { grid-column: 1 / -1; } }
/* questions: a quiet pill, no character */
.qx-pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 15px; border-radius: 999px; background: var(--night); color: #efe9dd; font-size: 14.5px; font-weight: 500; box-shadow: 0 14px 30px -16px rgba(0,0,0,.5); transition: transform .25s var(--ease); }
.qx-pill:hover { transform: translateY(-2px); }
.qx-pill svg { width: 18px; height: 18px; }
.qx-launch, .qx-tease { animation: none; }
.qx-launch .qx-tease { margin-bottom: 4px; }
.qx-pill { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px rgba(28,26,23,.1), 0 14px 30px -14px rgba(0,0,0,.45); }
