/* Teslavarázsló — the workshop elevation */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-narrow-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Narrow";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/archivo-narrow-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --d {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

:root {
  /* cladding */
  --clad-hi: #e4e6e8;
  --clad-hi-rib: #d6d9dc;
  --clad-lo: #b8bcc0;
  --clad-lo-rib: #abafb4;
  --batten: #8c9197;
  --batten-hi: #f3f4f5;
  /* reveal, glass, ground */
  --red: #de0202;
  --red-deep: #b10000;
  --glass: #1a1c1f;
  --glass-2: #26292d;
  --concrete: #e6e3dd;
  --concrete-rib: #dcd8d1;
  /* ink */
  --ink: #15171a;
  --ink-2: #33373c;
  --on-glass: #f2f3f4;
  --on-glass-2: #b9bec4;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Narrow", "Archivo", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4.5rem, 9vw, 8rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  scrollbar-color: var(--batten) var(--clad-hi);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--clad-hi);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-color: var(--red); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--glass);
  color: var(--on-glass);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { top: 0.75rem; }

/* ------------------------------------------------------------------ */
/* Cladding bands: fine horizontal ribs, vertical batten seams per bay */

.band-hi,
.band-lo {
  position: relative;
  background-color: var(--clad-hi);
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0.35), rgb(255 255 255 / 0) 40%, rgb(0 0 0 / 0.04)),
    repeating-linear-gradient(180deg, var(--clad-hi-rib) 0 1px, transparent 1px 5px);
}
.band-lo {
  background-color: var(--clad-lo);
  background-image:
    linear-gradient(180deg, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0) 35%, rgb(0 0 0 / 0.06)),
    repeating-linear-gradient(180deg, var(--clad-lo-rib) 0 1px, transparent 1px 4px);
}
/* battens framing the content, half a gutter outside it */
.band-hi,
.band-lo { isolation: isolate; }
.band-hi::after,
.band-lo::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: calc(min(100% - 2 * var(--gutter), var(--wrap)) + var(--gutter));
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(90deg,
    var(--batten) 0 2px, var(--batten-hi) 2px 4px,
    transparent 4px calc(100% - 4px),
    var(--batten) calc(100% - 4px) calc(100% - 2px), var(--batten-hi) calc(100% - 2px));
}
.band-lo::after {
  background: linear-gradient(90deg,
    #7d8288 0 2px, #d9dcdf 2px 4px,
    transparent 4px calc(100% - 4px),
    #7d8288 calc(100% - 4px) calc(100% - 2px), #d9dcdf calc(100% - 2px));
}
/* the drip edge where one band meets the next */
.band-lo::before,
.band-hi + .band-hi::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(180deg, #f6f7f8 0 1px, #9a9fa5 1px 3px, rgb(0 0 0 / 0.12) 3px 6px);
}

/* ------------------------------------------------------------------ */
/* Raked opening: red frame, glass set back by --d                     */

.opening {
  --lean: 40px;
  --d: 6px;
  position: relative;
  background: var(--red);
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
  transition: --d 500ms var(--ease);
}
.opening > img,
.opening > .glass,
.opening > iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: polygon(
    calc(var(--lean) + var(--d)) var(--d),
    100% var(--d),
    calc(100% - var(--lean)) 100%,
    var(--d) 100%);
}
.opening.is-in { --d: 22px; }
/* mirrored rake: cuts top-right and bottom-left, keeps a photo's right edge whole */
.opening.lean-left {
  clip-path: polygon(0 0, calc(100% - var(--lean)) 0, 100% 100%, var(--lean) 100%);
}
.opening.lean-left > img {
  clip-path: polygon(
    var(--d) var(--d),
    calc(100% - var(--lean) + 2px) var(--d),
    100% 100%,
    calc(var(--lean) + var(--d)) 100%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .opening, .act { transition: none; }
  .opening { --d: 16px; }
  .opening.is-in { --d: 16px; }
}

/* ------------------------------------------------------------------ */
/* Header: the upper band with the funding plate mounted on it         */

.site-head { padding-block: 14px; }
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 36px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: auto; height: 52px; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav a { text-decoration: none; padding-block: 6px; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.lang {
  display: flex;
  border: 1.5px solid var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.lang a, .lang span { padding: 5px 9px; text-decoration: none; }
.lang [aria-current] { background: var(--ink); color: var(--clad-hi); }
.fund {
  display: block;
  background: #fff;
  padding: 6px 8px;
  box-shadow: 0 1px 0 #9a9fa5, 0 6px 14px -8px rgb(0 0 0 / 0.35);
  flex: none;
}
.fund img { height: 62px; width: auto; }

@media (min-width: 901px) and (max-width: 1180px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 4px; }
  .nav { order: 5; width: 100%; padding-top: 6px; border-top: 1px solid var(--clad-hi-rib); }
}
@media (max-width: 900px) {
  .nav { display: none; }
}
@media (max-width: 900px) {
  .brand img { height: 42px; }
  .brand span { font-size: 1.25rem; }
}

/* Funding plate, floating at the foot of the viewport on phones */
.fund-float { display: none; }
@media (max-width: 560px) {
  .fund-head { display: none; }
  .fund-float {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: #fff;
    padding: 4px 4px 4px 10px;
    box-shadow: 0 1px 0 #9a9fa5, 0 12px 28px -12px rgb(0 0 0 / 0.5);
  }
  .fund-float[hidden] { display: none; }
  .fund-float a { display: block; min-width: 0; }
  .fund-float img { height: 54px; width: auto; max-width: 100%; }
  .fund-close {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--ink-2);
    cursor: pointer;
  }
  .fund-close:hover { color: var(--ink); background: var(--clad-hi); }
  .fund-close svg { width: 18px; height: 18px; }
  body.has-fund-float { padding-bottom: 80px; }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */

.hero { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.4rem, 8.2vw, 6rem);
  letter-spacing: -0.025em;
  line-height: 0.92;
}
.hero .lede {
  margin-top: var(--space-3);
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.45;
  max-width: 34ch;
  color: var(--ink);
}
.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: var(--space-4);
}

/* actions are openings too: red frame, graphite glass set back */
.act {
  --lean: 18px;
  --d: 5px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72px;
  padding: 12px calc(var(--lean) + 26px) 12px calc(var(--lean) + 22px);
  color: var(--on-glass);
  text-decoration: none;
  transition: --d 380ms var(--ease);
}
.act::before,
.act::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}
.act::before { background: var(--red); z-index: -2; }
.act::after {
  background: var(--glass);
  clip-path: polygon(
    calc(var(--lean) + var(--d)) var(--d),
    100% var(--d),
    calc(100% - var(--lean)) 100%,
    var(--d) 100%);
}
.act:hover, .act:focus-visible { --d: 10px; }
.act:active { --d: 3px; }
.act small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-glass-2);
}
.act b {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
.act.quiet { color: var(--ink); }
.act.quiet::before { background: var(--ink); }
.act.quiet::after { background: var(--clad-hi); }
.act.quiet small { color: var(--ink-2); }
.band-hi .act.quiet::after { background: #fff; }
.act.small { min-height: 54px; }
.act.small b { font-size: 1.15rem; font-family: var(--font); font-weight: 650; }

.notice {
  --lean: 14px;
  --d: 6px;
  position: relative;
  isolation: isolate;
  margin-top: var(--space-3);
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--on-glass);
  padding: 16px 34px 14px 34px;
  max-width: 40rem;
}
.notice::before,
.notice::after,
.important::before,
.important::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(var(--lean) 0, 100% 0, calc(100% - var(--lean)) 100%, 0 100%);
}
.notice::before,
.important::before { background: var(--red); z-index: -2; }
.notice::after,
.important::after {
  z-index: -1;
  background: var(--glass);
  clip-path: polygon(
    calc(var(--lean) + var(--d)) var(--d),
    100% var(--d),
    calc(100% - var(--lean)) 100%,
    var(--d) 100%);
}
.notice svg { flex: none; width: 26px; height: 26px; color: var(--on-glass); }
.notice p { font-weight: 500; line-height: 1.3; color: var(--on-glass-2); }
.notice strong { color: var(--on-glass); }
.notice strong { font-weight: 800; display: block; font-size: 1.1rem; }

.hero-window {
  --lean: 56px;
  aspect-ratio: 4 / 5;
  max-height: 680px;
  width: 100%;
}
.hero-window > img { object-position: 50% 40%; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-window { --lean: 32px; aspect-ratio: 5 / 4; max-height: none; }
}
@media (max-width: 400px) {
  .act { padding-inline: calc(var(--lean) + 14px) calc(var(--lean) + 12px); }
  .act b { font-size: 1.22rem; }
}
.act b { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.9rem, 13.5vw, 3.6rem); }
  .act { width: 100%; }
  .notice { padding: 14px 24px 12px 30px; }
  .hero-window { aspect-ratio: 1 / 1; }
}

/* ------------------------------------------------------------------ */
/* Section scaffolding                                                 */

.sec { padding-block: var(--space-6); }
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--space-2) clamp(2rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: var(--space-5);
}
.sec-head h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.sec-head p { font-size: 1.15rem; max-width: 52ch; color: var(--ink-2); }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; margin-bottom: var(--space-4); }
}

/* ------------------------------------------------------------------ */
/* Services: the upper-floor ribbon window, one glazing, three panes   */

.ribbon { --lean: 56px; }
.ribbon > .glass {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background:
    linear-gradient(112deg, rgb(255 255 255 / 0.06) 0 34%, rgb(255 255 255 / 0) 34% 100%),
    var(--glass);
  color: var(--on-glass);
}
.pane {
  padding: calc(var(--d) + clamp(2rem, 3.4vw, 3.25rem)) clamp(1.5rem, 2.6vw, 2.5rem) clamp(2rem, 3.4vw, 3.25rem);
}
.pane:first-child { padding-left: calc(var(--lean) + var(--d) + clamp(1rem, 2vw, 1.75rem)); }
.pane:last-child { padding-right: calc(var(--lean) + clamp(1rem, 2vw, 1.75rem)); }
/* aluminium mullion between panes */
.pane + .pane {
  background: linear-gradient(90deg, #6b7076 0 2px, #e8eaec 2px 4px, #8c9197 4px 7px) left / 7px 100% no-repeat;
  padding-left: calc(7px + clamp(1.5rem, 2.6vw, 2.5rem));
}
.pane h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.pane p { margin-top: 0.75rem; max-width: 38ch; color: var(--on-glass-2); }

.not-done {
  margin-top: var(--space-5);
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.not-done svg { flex: none; width: 40px; height: 40px; color: var(--red); }
.not-done p { font-size: 1.15rem; font-weight: 600; }
.not-done p span { font-weight: 400; color: var(--ink-2); }

@media (max-width: 900px) {
  .ribbon { --lean: 24px; }
  .ribbon > .glass { grid-template-columns: 1fr; }
  .pane,
  .pane:first-child,
  .pane:last-child {
    padding: 1.75rem calc(var(--lean) + 1.25rem) 1.75rem calc(var(--lean) + var(--d) + 1.25rem);
  }
  .pane:first-child { padding-top: calc(var(--d) + 1.75rem); }
  /* mullions become transoms */
  .pane + .pane {
    background: linear-gradient(180deg, #6b7076 0 2px, #e8eaec 2px 4px, #8c9197 4px 7px) top / 100% 7px no-repeat;
    padding-top: calc(7px + 1.75rem);
    padding-left: calc(var(--lean) + var(--d) + 1.25rem);
  }
}

/* ------------------------------------------------------------------ */
/* Booking: the glazed entrance                                        */

.entrance {
  background: var(--glass);
  color: var(--on-glass);
  padding-block: var(--space-6);
  position: relative;
  background-image:
    linear-gradient(115deg, rgb(255 255 255 / 0.035) 0 28%, rgb(255 255 255 / 0) 28% 100%);
}
/* the red soffit over the glazed entrance, seen from below */
.entrance::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: clamp(36px, 5vw, 72px);
  background: linear-gradient(180deg, var(--red) 0 60%, var(--red-deep));
  clip-path: polygon(0 0, 100% 0, 100% 22%, 0 100%);
}
.entrance > .wrap { position: relative; }
.entrance .sec-head p { color: var(--on-glass-2); }
.entrance a { color: var(--on-glass); }

.book {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.book-copy { grid-column: 1; grid-row: 1; }
.checklist { grid-column: 2; grid-row: 1 / span 2; }
.book-photo {
  --lean: 36px;
  grid-column: 1;
  grid-row: 2;
  aspect-ratio: 1200 / 1176;
  width: 100%;
}
.important {
  --lean: 16px;
  --d: 8px;
  position: relative;
  isolation: isolate;
  color: var(--ink);
  padding: 26px 40px 22px 42px;
}
.important::after { background: var(--clad-hi); }
.important strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1.05;
  margin-bottom: 0.4rem;
}
.book-copy p + p { margin-top: var(--space-2); }
.book-copy .how { margin-top: var(--space-4); font-size: 1.1rem; max-width: 42ch; }
.book-copy .acts { margin-top: var(--space-3); }
.entrance .act::after { background: var(--glass-2); }
.entrance .act.quiet { color: var(--on-glass); }
.entrance .act.quiet::before { background: var(--on-glass-2); }
.entrance .act.quiet::after { background: var(--glass); }
.entrance .act.quiet small { color: var(--on-glass-2); }

.checklist h3 { font-size: 1.9rem; margin-bottom: var(--space-3); }
.slots {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: slot;
  border-top: 1px solid #3c4046;
}
.slots li {
  counter-increment: slot;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: 16px 0;
  border-bottom: 1px solid #3c4046;
}
.slots li::before {
  content: counter(slot);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  grid-row: span 2;
  padding-top: 2px;
}
.slots b { font-weight: 650; font-size: 1.08rem; }
.slots span { color: var(--on-glass-2); font-size: 0.98rem; }

.template {
  margin-top: var(--space-4);
  background: #f4f5f6;
  color: var(--ink);
}
.template header {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 18px;
  border-bottom: 1px solid #cdd1d5;
  font-size: 0.95rem;
}
.template header span { color: var(--ink-2); }
.template header b { font-weight: 650; }
.template pre {
  margin: 0;
  padding: 16px 18px 20px;
  font-family: var(--font);
  font-size: 0.98rem;
  line-height: 1.7;
  white-space: pre-wrap;
}
.template footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}
.tbtn {
  font: inherit;
  font-weight: 650;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.tbtn:hover { background: var(--ink); color: #fff; }
.tbtn.primary { background: var(--ink); color: #fff; }
.tbtn.primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.tbtn svg { width: 18px; height: 18px; }
.tbtn[data-state="done"] { background: #fff; color: var(--ink); border-color: var(--ink); }
.entrance .template a { color: inherit; }
.entrance .template .tbtn.primary { color: #fff; }

@media (max-width: 900px) {
  .book { grid-template-columns: minmax(0, 1fr); }
  .book-copy, .checklist, .book-photo { grid-column: 1; grid-row: auto; }
  .book-photo { --lean: 24px; }
}

/* ------------------------------------------------------------------ */
/* Contact                                                             */

.contact .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.contact h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.addr {
  margin-top: var(--space-4);
  display: grid;
  gap: 0;
  border-top: 2px solid var(--ink);
}
.addr > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 16px 0;
  border-bottom: 1px solid rgb(21 23 26 / 0.35);
  align-items: baseline;
}
.addr dt { font-weight: 600; font-size: 0.9rem; color: var(--ink-2); }
.addr dd { margin: 0; font-size: 1.2rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.addr dd a { text-decoration-color: rgb(21 23 26 / 0.4); }
.addr dd small { display: block; font-size: 0.95rem; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.contact .by-appt { margin-top: var(--space-3); font-weight: 600; }
.contact .acts { margin-top: var(--space-3); }
.contact .opening.map { --lean: 0px; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; }
/* set the map back by --d instead of clipping it, so no map content hides under the reveal;
   it runs 1px past the right/bottom edge (hidden by the opening's clip) to avoid a subpixel red seam */
.opening > iframe {
  border: 0;
  display: block;
  position: absolute;
  top: var(--d);
  left: var(--d);
  width: calc(100% - var(--d) + 1px);
  height: calc(100% - var(--d) + 1px);
  clip-path: none;
}
@media (max-width: 900px) {
  .contact .wrap { grid-template-columns: 1fr; }
  .contact .opening.map { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) {
  .addr > div { grid-template-columns: 1fr; gap: 2px; }
}

/* ------------------------------------------------------------------ */
/* Footer: the concrete forecourt                                      */

.site-foot {
  background-color: var(--concrete);
  padding-block: var(--space-5) var(--space-4);
  font-size: 0.95rem;
  color: var(--ink-2);
  border-top: 6px solid var(--batten);
}
.site-foot .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-5);
  align-items: start;
}
.site-foot .fund img { height: 54px; }
.foot-legal { max-width: 64ch; }
.foot-legal p + p { margin-top: 0.6rem; }
.foot-legal .disclaimer { color: var(--ink); }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: var(--space-3);
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 760px) {
  .site-foot .wrap { grid-template-columns: 1fr; }
  .site-foot .fund { justify-self: start; width: auto; }
  .site-foot .fund img { width: 100%; max-width: 300px; height: auto; }
}

/* ------------------------------------------------------------------ */
/* Project information page (Read)                                     */

.doc { padding-block: var(--space-5) var(--space-6); }
.doc-plate {
  background: #fff;
  max-width: 920px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  box-shadow: 0 1px 0 #9a9fa5, 0 20px 40px -28px rgb(0 0 0 / 0.45);
}
.doc-plate .badge { width: 100%; max-width: 560px; }
.doc-plate h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  margin-top: var(--space-4);
}
.facts {
  margin: var(--space-4) 0 0;
  border-top: 2px solid var(--ink);
}
.facts > div {
  display: grid;
  grid-template-columns: minmax(10rem, 2fr) minmax(0, 3fr);
  gap: 0.25rem 1.5rem;
  padding: 14px 0;
  border-bottom: 1px solid #cdd1d5;
}
.facts dt { font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.doc-text { margin-top: var(--space-4); max-width: 68ch; }
.doc-text p + p { margin-top: var(--space-2); }
.doc-figure { margin: var(--space-4) 0 0; }
.doc-figure figcaption { margin-top: 0.6rem; font-size: 0.9rem; color: var(--ink-2); }
.doc-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-3);
  font-weight: 600;
}
.doc-plate section { scroll-margin-top: var(--space-3); }
.doc-plate h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-top: var(--space-5);
}
.doc-lead { margin-top: var(--space-2); max-width: 68ch; }
.doc-plate h2 + .doc-text { margin-top: var(--space-2); }
.doc-text h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  margin-top: var(--space-4);
  margin-bottom: var(--space-1);
}
.doc-text ul { margin: var(--space-1) 0 0; padding-left: 1.25em; }
.doc-text li + li { margin-top: 0.35rem; }
.doc-text ul + p { margin-top: var(--space-2); }
.doc-text .doc-date { margin-top: var(--space-4); color: var(--ink-2); font-size: 0.92rem; }
mark.todo { background: #fff0a8; color: var(--ink); padding: 0 0.2em; outline: 1px dashed #b38f00; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--space-3); font-weight: 600; }
.back svg { width: 18px; height: 18px; }
@media (max-width: 600px) {
  .facts > div { grid-template-columns: 1fr; }
}
