/* Blackstone Stay Management — style.css
   Materials: black stone (basalt / slate / graphite), warm plaster inside, brass door furniture, window light.
   Type: Marcellus (display — letters cut into stone), Marcellus SC (labels — the brass plaque), Schibsted Grotesk (text).
   Sections alternate outside (dark, the street) and inside (light, the plastered room). */

:root {
  --basalt: #111216;
  --slate: #1B1D23;
  --graphite: #2A2D35;
  --flint: #8C919B;
  --mist: #C9CCD2;
  --plaster: #EDEBE6;
  --paper: #F7F6F3;
  --ink: #16171A;
  --stone-grey: #666A73;
  --line: #D8D6D0;
  --brass: #D4AE5A;
  --brass-ink: #8A6B27;
  --brass-deep: #A8842F;
  --glow: #F3C46A;
  --glow-pale: #FFE7B0;
  --dusk: #2B2D42;
  --pavement: #191B20;

  --font-display: "Marcellus", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-label: "Marcellus SC", "Marcellus", Georgia, serif;
  --font-text: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-ui: 200ms;
  --dur-reveal: 1000ms;

  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 78px;
  --sec-pad: clamp(72px, 10vw, 140px);

  --bg: var(--plaster);
  --fg: var(--ink);
  --muted: var(--stone-grey);
  --rule: var(--line);
  --accent: var(--brass-ink);
  --surface: var(--paper);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--basalt); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
::selection { background: var(--brass); color: var(--basalt); }

/* ---------- type scale ---------- */
.h-xl { font-size: clamp(3rem, 7.2vw, 6.8rem); line-height: 0.98; letter-spacing: -0.012em; }
.h-l { font-size: clamp(2.1rem, 4.2vw, 3.8rem); line-height: 1.04; letter-spacing: -0.01em; }
.h-m { font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.12; }
.h-s { font-size: 1.2rem; line-height: 1.2; }
.lede { font-size: clamp(1.08rem, 1.45vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.body { max-width: 62ch; text-wrap: pretty; }
.body + .body { margin-top: 1em; }
.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ""; width: 1.6em; height: 2px; background: var(--accent); flex: none; }
.sec-head { max-width: 920px; }
.sec-head .lede { margin-top: 1.4rem; }

/* ---------- sections: outside / inside ---------- */
.sec { background: var(--bg); color: var(--fg); position: relative; padding: var(--sec-pad) 0; }
.sec + .sec { border-top: 1px solid var(--rule); }
.sec[data-theme="dark"] {
  --bg: var(--basalt); --fg: var(--plaster); --muted: var(--flint); --rule: var(--graphite);
  --accent: var(--brass); --surface: var(--slate);
}
.sec[data-theme="dark"] + .sec[data-theme="dark"] { border-top-color: var(--graphite); }
.sec[data-theme="light"] + .sec[data-theme="dark"], .sec[data-theme="dark"] + .sec[data-theme="light"] { border-top: 0; }
.sec[data-theme="dark"] .lede { color: var(--mist); }

/* ---------- buttons: a sheen of light passes over stone ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  font: 600 0.95rem/1 var(--font-text);
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  border-radius: 2px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-ui) var(--ease-out), color var(--dur-ui) ease, border-color var(--dur-ui) ease, background-color var(--dur-ui) ease, box-shadow 320ms ease;
}
.btn::before {
  content: "";
  position: absolute;
  top: -20%; bottom: -20%; left: -35%;
  width: 45%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 240, 200, 0.45) 50%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  z-index: -1;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--brass); color: var(--basalt); border-color: var(--brass); }
.btn--ghost { border-color: currentColor; background: transparent; }
.btn__arrow { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: translateX(340%) skewX(-18deg); transition: transform 640ms var(--ease-out); }
  .btn--primary:hover { box-shadow: 0 0 0 4px rgba(212, 174, 90, 0.18), 0 10px 30px -12px rgba(243, 196, 106, 0.6); }
  .btn--ghost:hover { border-color: var(--brass); color: inherit; }
  .btn:hover .btn__arrow { transform: translateX(4px); }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--plaster);
  transition: background-color 280ms ease, box-shadow 280ms ease;
}
.site-header.is-scrolled { background: rgba(17, 18, 22, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07); }
.site-header > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; transition: transform 360ms var(--ease-out); }
.brand__mark-svg { width: 100%; height: 100%; }
.brand__text { line-height: 1; }
.brand__word { font-family: var(--font-display); font-size: 1.35rem; letter-spacing: 0.02em; display: block; }
.brand__sub { display: block; font-family: var(--font-label); font-size: 0.6rem; letter-spacing: 0.22em; color: var(--brass); margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .brand:hover .brand__mark { transform: translateY(-2px); } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link { text-decoration: none; font-weight: 500; font-size: 0.95rem; position: relative; padding: 4px 0; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--brass);
  transform: scaleX(0); transform-origin: center; transition: transform 260ms var(--ease-out);
}
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover::after { transform: scaleX(1); } }
.nav-toggle {
  display: none; z-index: 70; background: none; border: 1.5px solid var(--plaster); border-radius: 2px; padding: 9px 14px;
  font: 600 0.85rem/1 var(--font-text); color: var(--plaster); cursor: pointer; letter-spacing: 0.02em;
}
.nav__close-hint { display: none; }
@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0; z-index: 60; background: var(--basalt); color: var(--plaster);
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: 0 var(--gutter);
    transform: translateY(-102%); transition: transform 480ms var(--ease-in-out); visibility: hidden;
  }
  body.menu-open .nav { transform: none; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .nav__link { font-family: var(--font-display); font-size: 2.6rem; letter-spacing: 0; }
  .nav__link::after { display: none; }
  .nav .btn { margin-top: 18px; font-size: 1.05rem; }
  .nav__close-hint { display: block; position: absolute; left: var(--gutter); bottom: 32px; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--flint); }
}

/* ---------- hero: the street at dusk ---------- */
.hero {
  padding: calc(var(--header-h) + 5vh) 0 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(to bottom, var(--basalt) 0%, var(--basalt) 38%, #1A1C28 72%, var(--dusk) 100%);
}
.hero__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 80px); align-items: end; padding-bottom: clamp(24px, 4vh, 48px); }
.hero__title { margin: 0.25em 0 0; }
.hline { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hline__in { display: block; }
html.js:not(.static) .hline__in { transform: translateY(110%); }
.glow { font-style: normal; color: var(--glow); }
html.js:not(.static) .glow { color: var(--flint); transition: color 1.2s ease, text-shadow 1.2s ease; }
html.js:not(.static) .glow.is-lit, html.static .glow { color: var(--glow); text-shadow: 0 0 18px rgba(243, 196, 106, 0.45), 0 0 60px rgba(243, 196, 106, 0.25); }
.hero__aside { padding-bottom: 0.4em; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2rem; }
.hero .btn--ghost { color: var(--plaster); }
.hero__street { margin-top: auto; padding-top: 2vh; position: relative; background: linear-gradient(to top, var(--pavement) 0, var(--pavement) 33px, var(--graphite) 33px, var(--graphite) 34px, transparent 34px); }
.hero__street-in { width: min(100%, 1240px); margin-inline: auto; }
.terrace { width: 100%; height: auto; display: block; }
html.js:not(.static) .terrace .bk { opacity: 0; }
html.static .terrace .lit, html.static .terrace .bulb { opacity: 1; }
html.static .terrace .halo { opacity: 1; }
html.static .terrace .star { opacity: 0.6; }
.hero__kerb { background: var(--pavement); color: var(--flint); border-top: 1px solid var(--graphite); }
.hero__kerb-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 15px 0; }
.hero__caption { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em; }
.hero__stages { display: flex; align-items: center; gap: 14px; font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--brass); white-space: nowrap; }
.hero__stages i { display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); opacity: 0.7; }

/* ---------- what we do ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 56px; list-style: none; padding: 0; }
.svc { background: var(--paper); padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 16px; transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); position: relative; }
@media (hover: hover) and (pointer: fine) {
  .svc:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(17, 18, 22, 0.45); }
  .svc:hover .svc__art { box-shadow: inset 0 0 0 1px var(--brass-deep); }
}
.svc__art { background: var(--slate); border-radius: 2px; overflow: hidden; margin: 0 -8px; transition: box-shadow 360ms ease; }
.scene { width: 100%; height: auto; }
.svc .eyebrow { margin: 6px 0 0; }
.svc__title { margin-top: -4px; }
.svc__text { color: var(--muted); text-wrap: pretty; }
.svc__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.svc__list li, .lists li, .checklist li, .directions li { padding-left: 1.5em; position: relative; }
.svc__list li::before, .lists li::before, .checklist li::before, .directions li::before, .subnav a::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 0.9em; height: 2px; background: var(--accent);
}
.svc__list li { color: var(--muted); font-size: 0.95rem; }
.svc__more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 0.5em; align-items: center; align-self: flex-start; }
.svc__more .btn__arrow { transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .svc__more:hover { color: var(--brass-ink); } .svc__more:hover .btn__arrow { transform: translateX(4px); } }

/* ---------- the house in three layers ---------- */
.house { padding-bottom: 0; }
.house__track { height: 320vh; position: relative; margin-top: 40px; }
.house__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.house__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; width: min(var(--wrap), 100% - 2 * var(--gutter)); }
.house__fig { margin: 0; }
.house__art { background: var(--slate); border: 1px solid var(--graphite); padding: clamp(10px, 1.5vw, 22px); }
.section { width: 100%; height: auto; max-height: 74svh; }
.house__fig figcaption { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.12em; color: var(--flint); margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.house__pct b { font-weight: 400; color: var(--brass); }
.layers { list-style: none; padding: 0; margin: 0; display: grid; }
.layer { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); pointer-events: none; }
.layer.is-active { opacity: 1; transform: none; pointer-events: auto; transition-delay: 120ms; }
.layer__n { font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.16em; color: var(--brass); margin-bottom: 14px; }
.layer h3 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 16px; }
.layer p:last-child { color: var(--mist); max-width: 40ch; text-wrap: pretty; }
html.js:not(.static) .section [data-l] { opacity: 0; }
html.static .layer { opacity: 1; transform: none; }
html.static .layers { display: grid; gap: 28px; }
html.static .layer { grid-area: auto; }
html.static .house__track { height: auto; }
html.static .house__sticky { position: static; height: auto; padding: 40px 0 80px; }

/* ---------- who we are ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.about .body { margin-top: 1.6rem; color: var(--muted); }
.about .body strong { color: var(--ink); }
.principles { list-style: none; padding: 0; margin: 2.6rem 0 0; border-top: 1px solid var(--rule); }
.principles li { padding: 18px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.4em 1fr; gap: 14px; }
.principles li span:first-child { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--brass-ink); padding-top: 0.35em; }
.principles strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin-bottom: 4px; }
.principles p { color: var(--muted); font-size: 0.95rem; }
.plaque {
  margin: 0; background: var(--slate); color: var(--mist); border: 1px solid var(--graphite);
  box-shadow: inset 0 0 0 5px var(--slate), inset 0 0 0 6px var(--brass-deep);
  padding: 10px 24px 6px; font-size: 0.9rem; position: relative;
}
.plaque::before, .plaque::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); top: 13px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4); }
.plaque::before { left: 13px; } .plaque::after { right: 13px; }
.plaque div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--graphite); }
.plaque div:last-child { border-bottom: 0; }
.plaque dt { font-family: var(--font-label); color: var(--brass); letter-spacing: 0.14em; font-size: 0.7rem; padding-top: 0.35em; }
.plaque dd { margin: 0; line-height: 1.5; color: var(--plaster); }
.plaque__title { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.18em; color: var(--brass); padding: 18px 0 12px; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--brass-deep); }

/* ---------- the key cabinet ---------- */
.cabinet { margin-top: 56px; background: var(--slate); border: 1px solid var(--graphite); padding: clamp(24px, 3.5vw, 44px) clamp(18px, 3vw, 36px) 20px; position: relative; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), 0 40px 60px -40px rgba(17, 18, 22, 0.7); }
.cabinet::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(212, 174, 90, 0.18); pointer-events: none; }
.keys { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.key { position: relative; padding-top: 34px; }
.key__hook { position: absolute; top: 0; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--graphite); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 0 2px var(--slate), 0 0 0 3px var(--graphite); }
.key__hook::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1.5px; height: 24px; margin-left: -0.75px; background: var(--brass); opacity: 0.8; }
.key__tag { background: var(--brass); color: var(--basalt); padding: 20px 18px 22px; border-radius: 3px; position: relative; min-height: 210px; transform-origin: 50% -34px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18), 0 18px 30px -18px rgba(0, 0, 0, 0.7); }
.key__tag::before { content: ""; position: absolute; top: -14px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 3px solid var(--brass); background: var(--slate); box-sizing: border-box; }
.key__tag::after { content: ""; position: absolute; top: 8px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--slate); }
.key__n { display: block; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.18em; color: rgba(17, 18, 22, 0.7); margin: 10px 0 8px; }
.key__tag h3 { font-size: 1.35rem; margin-bottom: 8px; }
.key__tag p { font-size: 0.92rem; line-height: 1.45; color: rgba(17, 18, 22, 0.82); text-wrap: pretty; }
.key__tag--stay { background: var(--glow-pale); }
.cabinet__label { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.18em; color: var(--flint); margin-top: 22px; text-align: right; }
html.js:not(.static) .key__tag { opacity: 0; }
html.static .key__tag { opacity: 1; }

/* ---------- where we work: postcode tiles ---------- */
.areas__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.areas__note { margin-top: 1.6rem; font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--flint); }
.tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.tile { aspect-ratio: 1; background: var(--slate); border: 1px solid var(--graphite); display: flex; flex-direction: column; justify-content: space-between; padding: 10px 10px 9px; color: var(--flint); position: relative; overflow: hidden; transition: background-color 700ms ease, color 700ms ease, border-color 700ms ease, box-shadow 700ms ease; }
.tile b { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.02em; color: var(--mist); transition: color 700ms ease; }
.tile span { font-size: 0.66rem; line-height: 1.25; letter-spacing: 0.02em; }
.tile.is-lit { background: #2A2416; border-color: var(--brass-deep); color: var(--brass); box-shadow: inset 0 0 26px rgba(243, 196, 106, 0.16), 0 0 30px -10px rgba(243, 196, 106, 0.35); }
.tile.is-lit b { color: var(--glow); }
html.static .tile { background: #2A2416; border-color: var(--brass-deep); color: var(--brass); }
html.static .tile b { color: var(--glow); }
@media (hover: hover) and (pointer: fine) { .tile:hover { background: #33291A; box-shadow: inset 0 0 26px rgba(243, 196, 106, 0.25); } .tile:hover b { color: var(--glow-pale); } }

/* ---------- cta ---------- */
.cta__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.cta__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cta__phone { font-family: var(--font-display); font-size: clamp(1.5rem, 2.8vw, 2.3rem); text-decoration: none; letter-spacing: 0.01em; line-height: 1; }
.cta__phone small { display: block; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 8px; }
@media (hover: hover) and (pointer: fine) { .cta__phone:hover { color: var(--brass-ink); } }

/* ---------- footer: the street at night ---------- */
.site-footer { background: var(--basalt); color: var(--plaster); overflow: hidden; position: relative; }
.foot__skyline { border-bottom: 1px solid var(--graphite); }
.skyline { width: 100%; height: 110px; display: block; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding: 64px 0 44px; border-bottom: 1px solid var(--graphite); }
.foot__brand .brand { color: var(--plaster); }
.foot__brand p { color: var(--flint); font-size: 0.92rem; margin-top: 18px; max-width: 30em; }
.foot h4 { font-family: var(--font-label); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.18em; color: var(--brass); margin-bottom: 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--plaster); opacity: 0.85; transition: opacity var(--dur-ui) ease; }
.foot address { font-style: normal; color: var(--plaster); opacity: 0.85; line-height: 1.6; }
@media (hover: hover) and (pointer: fine) { .foot a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brass); } }
.legal { font-size: 0.8rem; color: var(--flint); padding: 24px 0 36px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; line-height: 1.6; }
.legal p { max-width: 70ch; }

/* ---------- lift indicator (desktop): sections as floors ---------- */
.lift { display: none; }
@media (min-width: 1180px) {
  html.js:not(.static) .lift { display: block; position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; pointer-events: none; font-family: var(--font-label); }
  .lift__floors { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: relative; }
  .lift__floors li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 26px; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--flint); opacity: 0.55; transition: opacity 300ms ease, color 300ms ease; }
  .lift__floors li span { display: none; opacity: 0; transform: translateX(6px); transition: opacity 300ms ease, transform 300ms var(--ease-out); white-space: nowrap; }
  @media (min-width: 1600px) { .lift__floors li span { display: block; } }
  .lift__floors li b { font-weight: 400; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 2px; font-size: 0.66rem; letter-spacing: 0; }
  .lift__floors li.is-active { opacity: 1; color: var(--brass); }
  .lift__floors li.is-active span { opacity: 1; transform: none; }
  .lift__car { position: absolute; right: -1px; width: 24px; height: 24px; border: 1px solid var(--brass); background: rgba(243, 196, 106, 0.16); box-shadow: 0 0 18px rgba(243, 196, 106, 0.35); top: 1px; }
  .lift--on-light .lift__floors li { color: var(--stone-grey); }
  .lift--on-light .lift__floors li.is-active { color: var(--brass-ink); }
  .lift--on-light .lift__car { border-color: var(--brass-ink); }
}

/* ---------- the door: page transition ---------- */
.veil { position: fixed; inset: 0; z-index: 100; pointer-events: none; visibility: hidden; }
.veil.is-on, html.veil-in .veil { visibility: visible; }
html.veil-in .veil { background: var(--basalt); }
.veil__l, .veil__r { position: absolute; top: 0; bottom: 0; width: 50.5%; background: var(--basalt); transform: scaleX(0); }
.veil__l { left: 0; transform-origin: left center; box-shadow: inset -1px 0 0 var(--brass-deep); }
.veil__r { right: 0; transform-origin: right center; box-shadow: inset 1px 0 0 var(--brass-deep); }
.veil__l::after, .veil__r::after { content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); margin-top: -3px; opacity: 0.9; }
.veil__l::after { right: 24px; } .veil__r::after { left: 24px; }
html.veil-in .veil__l, html.veil-in .veil__r { transform: none; }

/* ---------- reveal system ---------- */
html.js:not(.static) .rv { opacity: 0; transform: translateY(22px); }
html.js:not(.static) .rv.is-in { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
html.js:not(.static) .rv-clip { clip-path: inset(100% 0 0 0); }
html.js:not(.static) .rv-clip.is-in { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-out); }
html.js:not(.static) .rv-lines .hline__in { transform: translateY(110%); }
html.js:not(.static) .rv-lines.is-in .hline__in { transform: none; transition: transform 1s var(--ease-out); }
html.js:not(.static) .rv-lines.is-in .hline:nth-child(2) .hline__in { transition-delay: 0.1s; }

/* ---------- inner pages ---------- */
.page-hero { padding: calc(var(--header-h) + 9vh) 0 8vh; background: linear-gradient(to bottom, var(--basalt) 0%, var(--basalt) 60%, #17192A 100%); }
.page-hero .lede { margin-top: 1.6rem; }
.page-hero .sec-head { max-width: none; }
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(237, 235, 230, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 34px; list-style: none; margin: 0; padding: 15px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em; text-decoration: none; white-space: nowrap; position: relative; padding-left: 1.6em; color: var(--stone-grey); transition: color var(--dur-ui) ease; }
.subnav a::before { top: 0.6em; opacity: 0.35; transition: opacity var(--dur-ui) ease, background-color var(--dur-ui) ease; background: var(--brass-ink); }
.subnav a.is-active, .subnav a:hover { color: var(--ink); }
.subnav a.is-active::before, .subnav a:hover::before { opacity: 1; }
.svc-sec { padding: clamp(64px, 9vw, 128px) 0; scroll-margin-top: calc(var(--header-h) + 52px); }
.svc-sec__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.svc-sec--flip .svc-sec__art { order: -1; }
.svc-sec__copy .lede { margin-top: 1.4rem; }
.svc-sec[data-theme="light"] .svc-sec__copy .lede { color: var(--ink); }
.svc-sec__copy .body { margin-top: 1.4rem; color: var(--muted); }
.drawing-panel { margin: 0; background: var(--slate); border: 1px solid var(--graphite); padding: 14px; position: sticky; top: calc(var(--header-h) + 76px); }
.drawing { width: 100%; height: auto; }
.drawing-panel figcaption { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.14em; color: var(--flint); margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 2.2rem; }
.lists h3, .checklist h3 { font-family: var(--font-label); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; }
.lists ul, .checklist ul { list-style: none; padding: 0; margin: 0; }
.lists li { padding-top: 9px; padding-bottom: 9px; border-bottom: 1px solid var(--rule); font-size: 0.95rem; text-wrap: pretty; }
.lists--notes li::before { background: var(--muted); opacity: 0.6; }
.fees-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--graphite); border: 1px solid var(--graphite); margin-top: 56px; list-style: none; padding: 0; }
.fees-grid li { background: var(--slate); padding: 28px 26px 30px; }
.fees-grid h3 { font-size: 1.4rem; margin: 6px 0 12px; }
.fees-grid p:last-child { color: var(--mist); font-size: 0.95rem; text-wrap: pretty; }
.fees-grid .eyebrow { margin-bottom: 0.4rem; }
.honest { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; padding: 28px 0 0; border-top: 1px solid var(--brass-deep); }
.honest h3 { font-size: 1.4rem; }
.honest p { color: var(--mist); text-wrap: pretty; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.ccards { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); list-style: none; padding: 0; margin: 0; }
.ccard { background: var(--paper); padding: 22px 24px 24px; }
.ccard .eyebrow { margin-bottom: 8px; }
.ccard a, .ccard address { font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.45rem); letter-spacing: 0.01em; text-decoration: none; display: inline-block; overflow-wrap: anywhere; font-style: normal; line-height: 1.2; }
.ccard p { color: var(--muted); font-size: 0.92rem; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) { .ccard a:hover { color: var(--brass-ink); } }
.checklist { margin-top: 36px; }
.checklist li { padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 3vw, 36px); }
.form__head { grid-column: 1 / -1; }
.form__head h2 { font-size: 1.7rem; }
.form__head p { color: var(--muted); margin-top: 6px; font-size: 0.95rem; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); background: var(--plaster); border-radius: 2px; color: var(--ink); width: 100%;
  transition: border-color var(--dur-ui) ease, background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brass-deep); background: #fff; outline: none; box-shadow: 0 0 0 3px rgba(212, 174, 90, 0.2); }
.field textarea { min-height: 150px; resize: vertical; }
.form__actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form__note { font-size: 0.85rem; color: var(--muted); max-width: 40ch; }
.form__sent { grid-column: 1 / -1; display: none; padding: 14px 16px; background: var(--plaster); border-left: 3px solid var(--brass); font-size: 0.95rem; }
.form[data-sent] .form__sent { display: block; }
.map-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.map-panel { background: var(--slate); border: 1px solid var(--graphite); padding: 14px; }
.haymap { width: 100%; height: auto; }
.map-grid address { font-style: normal; margin-top: 1.6rem; line-height: 1.6; color: var(--mist); }
.map-grid address strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin-bottom: 4px; color: var(--plaster); }
.directions { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 10px; }
.directions li { display: grid; gap: 2px; padding-left: 1.5em; }
.directions b { font-weight: 600; color: var(--plaster); }
.directions span { color: var(--flint); font-size: 0.9rem; }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; padding: calc(var(--header-h) + 40px) 0 80px; background: linear-gradient(to bottom, var(--basalt) 0%, var(--basalt) 50%, #1A1C28 100%); }
.nf__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; }
.nf .hero__ctas { margin-top: 2rem; }
.nf .lede { margin-top: 1.6rem; }
.nf__art { width: min(100%, 360px); justify-self: end; }
.door404 { width: 100%; height: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .keys { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hero__copy, .about__grid, .areas__grid, .cta__grid, .svc-sec__grid, .contact-grid, .map-grid, .nf__grid, .house__grid { grid-template-columns: 1fr; }
  .hero__copy { align-items: start; }
  .hero__aside { padding-bottom: 0; }
  .svc-grid, .fees-grid { grid-template-columns: 1fr; }
  .svc-sec--flip .svc-sec__art { order: 0; }
  .drawing-panel { position: static; }
  .cta__actions { align-items: flex-start; }
  .honest { grid-template-columns: 1fr; gap: 12px; }
  .house__grid { gap: 22px; }
  .house__art { padding: 8px; }
  .section { max-height: 46svh; }
  .layer h3 { font-size: 1.6rem; }
  .layer p:last-child { font-size: 0.95rem; }
  .nf__art { justify-self: start; width: min(100%, 300px); }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .hero__street { background-size: 100% 20px; background-repeat: no-repeat; background-position: bottom; background-image: linear-gradient(to top, var(--pavement) 0, var(--pavement) 20px, transparent 20px); }
  .hero__street-in { width: 100%; overflow: hidden; height: 279px; }
  .terrace { width: 740px; max-width: none; height: auto; margin-left: 50%; transform: translateX(-50%); }
  .hero__kerb-in { flex-direction: column; align-items: flex-start; gap: 8px; }
  .keys { grid-template-columns: 1fr 1fr; }
  .key__tag { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .h-xl { font-size: clamp(2.7rem, 13vw, 4rem); }
  .lists, .form { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .plaque div { grid-template-columns: 1fr; gap: 4px; }
  .foot__grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .legal { flex-direction: column; gap: 10px; }
  .hero { padding-top: calc(var(--header-h) + 3vh); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .keys { grid-template-columns: 1fr; }
  .cabinet { padding: 22px 16px 16px; }
  .skyline { height: 80px; }
}

/* ---------- motion preferences / QA static mode ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.static) .rv, html:not(.static) .rv-clip, html:not(.static) .hline__in, html:not(.static) .terrace .bk, html:not(.static) .key__tag, html:not(.static) .section [data-l], html:not(.static) .layer { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html:not(.static) .terrace .lit, html:not(.static) .terrace .bulb, html:not(.static) .terrace .halo { opacity: 1 !important; }
  html:not(.static) .glow { color: var(--glow) !important; }
  html:not(.static) .tile { background: #2A2416; border-color: var(--brass-deep); color: var(--brass); }
  html:not(.static) .tile b { color: var(--glow); }
  html:not(.static) .house__track { height: auto; }
  html:not(.static) .house__sticky { position: static; height: auto; padding: 40px 0 80px; }
  html:not(.static) .layers { gap: 28px; }
  html:not(.static) .layer { grid-area: auto; }
  .btn, .btn::before, .svc, .nav, .tile { transition: none; }
  .veil { display: none; }
  .lift { display: none !important; }
}
html.static .veil { display: none; }

/* ---------- no JS at all: lights on, everything in place ---------- */
html:not(.js) .terrace .lit, html:not(.js) .terrace .halo, html:not(.js) .terrace .bulb,
html:not(.js) .scene .lit, html:not(.js) .scene .halo, html:not(.js) .scene .bulb { opacity: 1; }
html:not(.js) .terrace .star { opacity: 0.6; }
html:not(.js) .tile { background: #2A2416; border-color: var(--brass-deep); color: var(--brass); }
html:not(.js) .tile b { color: var(--glow); }
html:not(.js) .glow { color: var(--glow); }
html:not(.js) .layer { opacity: 1; transform: none; grid-area: auto; }
html:not(.js) .layers { gap: 28px; }
html:not(.js) .house__track { height: auto; }
html:not(.js) .house__sticky { position: static; height: auto; padding: 40px 0 80px; }
html:not(.js) .lift, html:not(.js) .veil, html.io .lift { display: none !important; }
