/* ============================================================
   MARCO GLANCY — Interior Design & Art Portfolio
   International Typographic Style: one 12-column grid, one grotesk
   for display, one sans for text, ruled rows, flush-left everything.
   Mirrors the PR1 presentation decks (Alte Haas Grotesk + Inter,
   paper / ink / oxblood).
   ============================================================ */

@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("../fonts/AlteHaasGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F1EDE7;
  --paper-2: #E8DDD3;
  --mat: #FBF9F6;
  --ink: #1C1B1A;
  --grey: #5E5955;
  --rule: #A59E97;
  --accent: #9F3A2E;
  --accent-2: #C37156;
  --charcoal: #525351;

  /* kept so any inline styles that reference it still resolve */
  --line: var(--rule);

  --display: "Alte Haas Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1440px;
  --margin: clamp(1rem, 4vw, 4rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --nav-h: 72px;

  /* type scale */
  --t-xs: 0.8125rem;
  --t-s: 0.9375rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.375rem, 2.2vw, 1.75rem);
  --t-xl: clamp(2rem, 4.4vw, 3.75rem);
  --t-xxl: clamp(2.75rem, 7vw, 6.5rem);
  --t-hero: clamp(3.5rem, 13vw, 12.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-m);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

p { margin: 0; }

::selection { background: var(--accent); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* The content box IS the grid: borders on .wrap run exactly the
   width of the columns, the way rules run the type area in print. */
.wrap {
  width: min(100% - 2 * var(--margin), var(--container));
  margin-inline: auto;
}

/* Twelve columns. Deck columns map 1:3 (label = cols 1–3, body = 4–12). */
.cols {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}

.eyebrow {
  display: block;
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
}

/* ---------------- Skip link ---------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 999;
  font-size: var(--t-s);
  font-weight: 600;
}
.skip-link:focus { left: var(--margin); top: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--paper);
}
.site-header::after {
  content: "";
  position: absolute;
  left: max(var(--margin), (100% - var(--container)) / 2);
  right: max(var(--margin), (100% - var(--container)) / 2);
  bottom: 0;
  height: 2px;
  background: var(--ink);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--t-s);
  font-weight: 500;
  color: var(--ink);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  color: var(--ink);
  width: 44px;
  height: 44px;
  border-radius: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 1rem var(--margin) 2rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { border-bottom: 1px solid var(--rule); }
  .nav-links a {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: -0.02em;
    padding: 0.6rem 0;
    border-bottom: 0;
  }
}

/* Corner brackets from the old theme: retired. */
.bracket-frame { position: relative; overflow: hidden; }
.bracket { display: none; }

/* ============================================================
   HOME HERO
   ============================================================ */
.hero { padding: clamp(1rem, 2vw, 1.5rem) 0 clamp(4rem, 8vw, 7rem); }

.meta-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-top: 0.75rem;
  font-size: var(--t-s);
  font-weight: 600;
}
.meta-row span:last-child { text-align: right; }

.hero h1 {
  font-size: var(--t-hero);
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin: clamp(2.5rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem);
  margin-left: -0.04em; /* optical: pull the O onto the margin */
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}

.hero-content {
  grid-column: 1 / 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-content .eyebrow { margin-bottom: 0.75rem; }
.hero-content p {
  font-size: var(--t-l);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 24ch;
}

.hero-media {
  grid-column: 5 / -1;
  margin: 0;
}
.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--ink);
}
.hero-media figcaption,
.caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-xs);
  color: var(--grey);
  padding-top: 0.6rem;
}

@media (max-width: 860px) {
  .meta-row { grid-template-columns: 1fr 1fr; row-gap: 0.25rem; }
  .meta-row span:last-child { text-align: left; }
  .hero-content, .hero-media { grid-column: 1 / -1; }
  .hero-media { margin-top: 2rem; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-family: var(--body);
  font-size: var(--t-s);
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn::after { content: "→"; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid { background: var(--ink); color: var(--paper); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }

/* ============================================================
   STATEMENT — the accent "statement slide"
   ============================================================ */
section { position: relative; }
[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }

.statement {
  background: var(--accent);
  color: var(--paper);
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
}
.statement .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--paper);
  padding-top: 1rem;
}
.statement .wrap::before {
  content: "Statement";
  grid-column: 1 / 4;
  font-size: var(--t-s);
  font-weight: 600;
}
.statement p {
  grid-column: 4 / -1;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 26ch;
}
.statement cite {
  grid-column: 4 / -1;
  font-style: normal;
  font-size: var(--t-s);
  font-weight: 600;
  margin-top: 2rem;
}
@media (max-width: 860px) {
  .statement .wrap::before { grid-column: 1 / -1; margin-bottom: 2rem; }
  .statement p, .statement cite { grid-column: 1 / -1; }
}

/* ============================================================
   SECTION HEAD — label | title | link, on one rule
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  margin-top: clamp(4rem, 8vw, 7rem);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.section-head > div { display: contents; }
.section-head .eyebrow { grid-column: 1 / 4; font-size: var(--t-s); padding-top: 0.2rem; }
.section-head h2 { grid-column: 4 / 11; font-size: clamp(2rem, 3.4vw, 3rem); letter-spacing: -0.03em; }
.section-head a.section-link { grid-column: 11 / -1; justify-self: end; }

.section-link {
  font-size: var(--t-s);
  font-weight: 600;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.section-link:hover { color: var(--accent); }

@media (max-width: 860px) {
  .section-head .eyebrow, .section-head h2 { grid-column: 1 / -1; }
  .section-head h2 { margin-top: 1.25rem; }
  .section-head a.section-link { grid-column: 1 / -1; justify-self: start; margin-top: 1.25rem; }
}

/* ============================================================
   CARD GRID — one ratio for everything, numbered like an index
   ============================================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 3.5vw, 3.5rem) var(--gap);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  counter-reset: item;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }

.card { counter-increment: item; }
.card[hidden] { display: none; }

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.card-media.is-square { aspect-ratio: 1 / 1; }

/* Works on paper: whole, on a mat, never cropped */
.card-media.is-art {
  background: var(--mat);
  padding: clamp(0.75rem, 2vw, 1.25rem);
}
.card-media.is-art img { object-fit: contain; }

.card:hover .card-media img { opacity: 0.88; }

.card-meta {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  column-gap: 0.75rem;
  align-items: baseline;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
}
.card-meta::before {
  content: counter(item, decimal-leading-zero);
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.card-title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.15;
  letter-spacing: -0.015em;
  transition: color 0.15s ease;
}
.card:hover .card-title { color: var(--accent); }
.card-subject {
  display: block;
  font-size: var(--t-xs);
  color: var(--grey);
  margin-top: 0.2rem;
}
.card-tag {
  font-size: var(--t-xs);
  color: var(--grey);
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   PROMO TILES — two numbered halves
   ============================================================ */
.promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  width: min(100% - 2 * var(--margin), var(--container));
  margin: 0 auto clamp(4rem, 8vw, 7rem);
}
@media (max-width: 780px) { .promo { grid-template-columns: 1fr; gap: 3rem; } }

.promo-tile { display: block; }
.promo-tile img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--paper-2);
  transition: opacity 0.2s ease;
}
.promo-tile.is-art img {
  object-fit: contain;
  background: var(--mat);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}
.promo-tile:hover img { opacity: 0.88; }

.promo-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--gap);
  align-items: end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.promo-copy .eyebrow {
  grid-row: 1 / 3;
  font-family: var(--display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
}
.promo-copy h3 { font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 0.95; }
.promo-copy .section-link { justify-self: start; margin-top: 0.75rem; }
.promo-tile:hover .promo-copy .section-link { color: var(--accent); }

/* ============================================================
   PAGE HEADER — label in cols 1–3, title from col 4
   ============================================================ */
.page-hero { padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.page-hero .eyebrow {
  grid-column: 1 / 4;
  font-size: var(--t-s);
  padding-top: 0.25rem;
}
.page-hero h1 {
  grid-column: 4 / -1;
  font-size: var(--t-xxl);
  line-height: 0.9;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.page-hero p {
  grid-column: 4 / 11;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font-size: var(--t-m);
  color: var(--ink);
  max-width: 60ch;
}
.page-hero .btn { grid-column: 4 / -1; justify-self: start; }
@media (max-width: 860px) {
  .page-hero .eyebrow, .page-hero h1, .page-hero p, .page-hero .btn { grid-column: 1 / -1; }
  .page-hero h1 { margin-top: 2rem; }
}

/* ---------------- Filters ---------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0 2.5rem;
}
.filter-btn {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.5rem 0.85rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* Multi-facet panel (Art, 3D Builds): label column + options */
.filters-panel {
  padding: 0 0 2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink);
}
.filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.filter-group:last-of-type { margin-bottom: 0; }
.filter-group-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--grey);
  width: 7.5rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .filter-group-label { width: 100%; margin-bottom: 0.15rem; }
}

.filter-search input {
  width: 100%;
  max-width: 360px;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-s);
  padding: 0.5rem 0;
}
.filter-search input:focus { outline: none; border-bottom-color: var(--accent); }
.filter-search input::placeholder { color: var(--grey); }

.filters-toolbar {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.filters-toolbar .filter-search {
  flex: 1 1 240px;
  display: flex;
  justify-content: flex-end;
}
.filters-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.5rem 0.85rem;
}
.filters-more:hover,
.filters-more[aria-expanded="true"] { background: var(--ink); color: var(--paper); }
.filters-more-caret {
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s ease;
}
.filters-more[aria-expanded="true"] .filters-more-caret { transform: translateY(2px) rotate(-135deg); }
.filters-more-count {
  background: var(--accent);
  color: var(--paper);
  font-size: 0.6875rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
}
.filters-more-count[hidden] { display: none; }
.filters-more-panel {
  margin-top: 1.25rem;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
}
.filters-more-panel[hidden] { display: none; }
.filters-more-panel .filter-group { margin-bottom: 0.75rem; }
.filters-clear {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: 0;
  padding: 0.3rem 0;
  margin-top: 0.4rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 640px) {
  .filters-toolbar .filter-search { justify-content: flex-start; flex-basis: 100%; }
}
.no-results {
  font-size: var(--t-s);
  color: var(--grey);
  padding: 2rem 0;
  display: none;
}
.no-results.is-visible { display: block; }

.grid-page { padding-bottom: clamp(1rem, 3vw, 2rem); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: 0 0 clamp(4rem, 8vw, 7rem);
  align-items: start;
}
.about-portrait-stack {
  grid-column: 1 / 6;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
.about-copy { grid-column: 7 / -1; }
@media (max-width: 860px) {
  .about-portrait-stack, .about-copy { grid-column: 1 / -1; position: static; }
  .about-copy { margin-top: 3rem; }
}
.about-portrait {
  aspect-ratio: 4 / 5;
  background: var(--paper-2);
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-secondary {
  aspect-ratio: 1 / 1;
  width: 50%;
  margin: -4rem 0 0 auto;
  border: 6px solid var(--paper);
  background: var(--mat);
}
.about-portrait-secondary img { width: 100%; height: 100%; object-fit: cover; }
.about-portrait-caption {
  display: block;
  text-align: right;
  font-size: var(--t-xs);
  color: var(--grey);
  margin-top: 0.5rem;
}

.about-copy h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--ink);
}
.about-copy p {
  max-width: 62ch;
  margin: 0 0 1.25rem;
}
.about-copy p:first-of-type { font-size: 1.1875rem; line-height: 1.45; }

.credentials {
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.credentials li {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--gap);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-s);
}
.credentials .yr {
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.credentials .desc strong { font-weight: 600; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  width: min(100% - 2 * var(--margin), var(--container));
  margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(4rem, 8vw, 7rem);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.contact-image {
  grid-column: 1 / 6;
  position: relative;
  aspect-ratio: 4 / 5;
  align-self: start;
  background: var(--mat);
}
.contact-image img {
  position: absolute;
  inset: clamp(1rem, 2.5vw, 2rem) clamp(1rem, 2.5vw, 2rem) 3rem;
  width: calc(100% - 2 * clamp(1rem, 2.5vw, 2rem));
  height: calc(100% - clamp(1rem, 2.5vw, 2rem) - 3rem);
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.contact-image img.is-active { opacity: 1; }
.contact-image-caption {
  position: absolute;
  left: clamp(1rem, 2.5vw, 2rem);
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: 1rem;
  font-size: var(--t-xs);
  color: var(--grey);
}
.contact-form-side { grid-column: 7 / -1; }
.contact-form-side .eyebrow { font-size: var(--t-s); }
.contact-form-side h1 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 1.5rem 0 1rem;
  max-width: 16ch;
}
.contact-form-side > p { max-width: 46ch; margin: 0 0 2.5rem; }
@media (max-width: 900px) {
  .contact-image, .contact-form-side { grid-column: 1 / -1; }
  .contact-image { aspect-ratio: 4 / 3; margin-bottom: 3rem; }
}

.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 0.35rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-m);
  padding: 0.5rem 0;
}
.field select {
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231C1B1A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.25rem center;
  padding-right: 1.5rem;
}
.field select option { background: var(--paper); color: var(--ink); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: calc(0.5rem - 1px);
}
.field textarea { resize: vertical; min-height: 110px; }
.field textarea::placeholder { color: var(--grey); }

.form-row { display: flex; gap: var(--gap); }
.form-row .field { flex: 1; }
@media (max-width: 480px) { .form-row { flex-direction: column; gap: 0; } }

.form-note {
  margin-top: 1rem;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--accent);
  min-height: 1.2em;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--ink);
}
@media (max-width: 520px) { .contact-info { grid-template-columns: 1fr; } }
.contact-info div h4 {
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--grey);
  margin-bottom: 0.35rem;
}
.contact-info div p { font-size: var(--t-s); }
.contact-info a:hover { color: var(--accent); }

/* ============================================================
   FOOTER — the dark cover slide
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--paper);
  padding-top: 1rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.footer-top h3 {
  grid-column: 1 / 8;
  font-size: var(--t-xl);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 18ch;
}
.footer-nav {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--gap);
}
@media (max-width: 860px) {
  .footer-top h3, .footer-nav { grid-column: 1 / -1; }
  .footer-nav { margin-top: 2.5rem; }
}
.footer-col h5 {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--rule);
  margin: 0 0 0.75rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.footer-col a {
  font-size: var(--t-s);
  overflow-wrap: anywhere;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  border-top: 1px solid var(--charcoal);
  font-size: var(--t-xs);
  color: var(--rule);
}

/* ============================================================
   PROJECT PAGES
   ============================================================ */
.back-link {
  display: block;
  width: min(100% - 2 * var(--margin), var(--container));
  margin: 0 auto;
  padding: 1.25rem 0 0;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--accent);
}
.back-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Title block above the image, image at full colour below */
.project-hero {
  display: flex;
  flex-direction: column;
  width: min(100% - 2 * var(--margin), var(--container));
  margin: 1.25rem auto 0;
  overflow: visible;
}
.project-hero-copy {
  order: -1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--ink);
  padding: 1rem 0 clamp(2rem, 4vw, 3.5rem);
}
.project-hero-copy .eyebrow {
  grid-column: 1 / 4;
  font-size: var(--t-s);
  padding-top: 0.25rem;
}
.project-hero-copy h1 {
  grid-column: 4 / -1;
  font-size: var(--t-xxl);
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.project-hero img {
  width: 100%;
  height: clamp(320px, 52vw, 78vh);
  object-fit: cover;
  background: var(--paper-2);
}
@media (max-width: 860px) {
  .project-hero-copy .eyebrow, .project-hero-copy h1 { grid-column: 1 / -1; }
  .project-hero-copy h1 { margin-top: 1.5rem; }
  .project-hero img { height: 72vw; }
}

/* Facts in the label column, text from col 4 */
.project-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding: clamp(3rem, 6vw, 5rem) 0;
  align-items: start;
}
.project-body > div { grid-column: 4 / 11; }
.project-body > .project-facts {
  grid-column: 1 / 4;
  grid-row: 1;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}
@media (max-width: 860px) {
  .project-body > div, .project-body > .project-facts { grid-column: 1 / -1; grid-row: auto; position: static; }
  .project-body > .project-facts { margin-top: 3rem; }
}

.project-body .lede,
.project-subsection > .wrap > p.lede {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-l);
  line-height: 1.2;
  letter-spacing: -0.015em;
  max-width: 34ch;
  margin: 0 0 2rem;
}
.project-body h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--ink);
}
.project-body p {
  max-width: 62ch;
  margin: 0 0 1.2rem;
}
.project-body p:last-child { margin-bottom: 0; }

.project-facts dl { margin: 0; border-top: 2px solid var(--ink); }
.project-facts .fact {
  padding: 0.6rem 0 0.75rem;
  border-bottom: 1px solid var(--rule);
}
.project-facts .fact dt {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--grey);
  margin-bottom: 0.15rem;
}
.project-facts .fact dd {
  margin: 0;
  font-size: var(--t-s);
  line-height: 1.45;
}
/* Facts strip used full-width (Queen Residence) */
.wrap > .project-facts { margin-top: 1rem; }
.wrap > .project-facts dl { border-top: 0; }
.wrap > .project-facts .fact { border-top: 2px solid var(--ink); border-bottom: 0; }

/* Galleries: captions numbered as figures */
.project-gallery { padding-bottom: clamp(3.5rem, 7vw, 6rem); }
.project-gallery .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 0;
  counter-reset: fig;
}
@media (max-width: 700px) { .project-gallery .grid { grid-template-columns: 1fr; } }
.project-gallery figure { margin: 0; counter-increment: fig; }
.project-gallery figure.is-wide { grid-column: 1 / -1; }
.project-gallery img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.project-gallery figure.is-wide img { aspect-ratio: auto; }
/* Drawings and diagrams are never cropped: whole, on white */
.project-gallery img:is([src*="plan"], [src*="diagram"], [src*="elevation"], [src*="isometric"], [src*="iso"], [src*="icons"], [src*="exploded"], [src*="section"]) {
  object-fit: contain;
  background: #fff;
  padding: clamp(0.5rem, 1.5vw, 1rem);
}
.project-gallery figure.is-drawing img {
  max-height: 80vh;
  object-fit: contain;
  background: #fff;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.project-gallery figcaption {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0.5rem;
  font-size: var(--t-xs);
  color: var(--grey);
  padding-top: 0.6rem;
}
.project-gallery figcaption::before {
  content: "Fig. " counter(fig, decimal-leading-zero);
  font-weight: 600;
  color: var(--accent);
}

/* Sub-sections: label | title, then text from col 4 */
.project-subsection { padding: clamp(3rem, 6vw, 5rem) 0 0; }
.project-subsection > .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.project-subsection-head { display: contents; }
.project-subsection-head .eyebrow {
  grid-column: 1 / 4;
  font-size: var(--t-s);
  padding-top: 0.2rem;
}
.project-subsection-head h2 {
  grid-column: 4 / -1;
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 18ch;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.project-subsection > .wrap > p { grid-column: 4 / 11; max-width: 65ch; margin: 0 0 1.2rem; }
@media (max-width: 860px) {
  .project-subsection-head .eyebrow,
  .project-subsection-head h2,
  .project-subsection > .wrap > p { grid-column: 1 / -1; }
  .project-subsection-head h2 { margin-top: 1.25rem; }
}
.project-subsection .project-gallery { padding-top: 1.5rem; padding-bottom: 0; }
.project-subsection .project-gallery .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .project-subsection .project-gallery .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .project-subsection .project-gallery .grid { grid-template-columns: 1fr; } }

.project-details { padding-top: clamp(1rem, 3vw, 2rem); }
.project-details-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.project-details-head .eyebrow { grid-column: 1 / 4; font-size: var(--t-s); padding-top: 0.2rem; }
.project-details-head h2 {
  grid-column: 4 / -1;
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  line-height: 0.95;
  max-width: 20ch;
}
@media (max-width: 860px) {
  .project-details-head .eyebrow, .project-details-head h2 { grid-column: 1 / -1; }
  .project-details-head h2 { margin-top: 1.25rem; }
}

/* Video (3D builds) */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed-caption {
  font-size: var(--t-xs);
  color: var(--grey);
  padding-top: 0.6rem;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}
/* "Flyby" heading on the build pages */
.project-gallery + section > .wrap > h2 {
  font-size: var(--t-xl);
  letter-spacing: -0.03em;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  margin-bottom: 1.5rem !important;
}

.project-next {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(3rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}
.project-next .eyebrow { font-size: var(--t-s); }
.project-next a {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t-l);
  letter-spacing: -0.015em;
}
.project-next a:hover { color: var(--accent); }

/* ============================================================
   ART LIGHTBOX
   ============================================================ */
.card-media[role="button"] { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 2.5rem);
  background: rgba(28, 27, 26, 0.9);
}
.lightbox.is-open { display: flex; }

.lightbox-inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  max-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 780px) {
  .lightbox-inner { grid-template-columns: 1fr; overflow-y: auto; }
}
.lightbox-media {
  background: var(--mat);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.5vw, 2rem);
  min-height: 0;
}
.lightbox-media img { max-width: 100%; max-height: 82vh; object-fit: contain; }
@media (max-width: 780px) { .lightbox-media img { max-height: 58vh; } }

.lightbox-info {
  padding: 4.5rem clamp(1.25rem, 2.5vw, 2rem) 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.lightbox-info .card-tag {
  display: block;
  text-align: left;
  border-top: 2px solid var(--ink);
  padding-top: 0.6rem;
  margin-bottom: 1rem;
}
.lightbox-info h3 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}
.lightbox-info .lightbox-subject {
  display: block;
  font-size: var(--t-s);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.lightbox-info .lightbox-blurb { font-size: var(--t-s); line-height: 1.6; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   CASE STUDY — numbered sections, mirrors the deck slides:
   big oxblood number in cols 1–3, title from col 4, 2px rule.
   ============================================================ */
.cs-lead { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.cs-lead img {
  width: min(100% - 2 * var(--margin), var(--container));
  margin-inline: auto;
  height: auto;
}
.cs-lead figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--t-xs);
  color: var(--grey);
  padding-top: 0.6rem;
}

.cs { padding: clamp(3.5rem, 7vw, 6rem) 0 0; }
.cs:last-of-type { padding-bottom: clamp(1rem, 3vw, 2rem); }

.cs-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 3rem);
}
.cs-num {
  grid-column: 1 / 4;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.cs-head h2 {
  grid-column: 4 / -1;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 20ch;
}

.cs-body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap);
  align-items: start;
}
.cs-aside { grid-column: 1 / 4; display: flex; flex-direction: column; gap: 1.5rem; }
.cs-aside > p { font-size: var(--t-s); line-height: 1.55; }
.cs-main { grid-column: 4 / -1; margin: 0; }
.cs-full { grid-column: 1 / -1; margin: 0; }
.cs-text {
  grid-column: 4 / 11;
  font-size: var(--t-l);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 34ch;
}

@media (max-width: 860px) {
  .cs-num { grid-column: 1 / -1; font-size: 3rem; }
  .cs-head h2 { grid-column: 1 / -1; margin-top: 1rem; }
  .cs-aside, .cs-main, .cs-text { grid-column: 1 / -1; }
}

.cs-label {
  display: block;
  font-family: var(--body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
  margin: 0 0 0.5rem;
}
.cs-note { font-size: var(--t-xs); color: var(--grey); line-height: 1.5; }

.cs figcaption {
  font-size: var(--t-xs);
  color: var(--grey);
  padding-top: 0.6rem;
}
.cs-main img, .cs-full img { width: 100%; height: auto; }

/* Numbered rows — the deck's "01  Foyer" lists */
.index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px solid var(--ink);
}
.index-list li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: var(--t-s);
}
.index-list li span {
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Two-column key/value tables */
.spec-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--ink); font-size: var(--t-s); }
.spec-table td { padding: 0.5rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.spec-table td:last-child { text-align: right; color: var(--grey); white-space: nowrap; padding-left: 1rem; }
.spec-table--key td:first-child { color: var(--accent); font-weight: 600; white-space: nowrap; padding-right: 1rem; }
.spec-table--key td:last-child { text-align: left; color: var(--ink); white-space: normal; padding-left: 0; }

/* Big scale figures */
.spec { display: flex; flex-direction: column; border-top: 2px solid var(--ink); padding-top: 0.6rem; }
.spec strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

/* ---------- 01 Residents ---------- */
.people {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 860px) { .people { grid-template-columns: 1fr; gap: 2.5rem; } }
.person { border-top: 2px solid var(--ink); padding-top: 0.75rem; }
.person h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.02em; }
.person-role { display: block; font-size: var(--t-s); color: var(--accent); margin: 0.25rem 0 1rem; }
.person dl { margin: 0; }
.person dl div { border-top: 1px solid var(--rule); padding: 0.6rem 0; }
.person dt { font-size: var(--t-xs); font-weight: 600; color: var(--grey); }
.person dd { margin: 0.15rem 0 0; font-size: var(--t-s); }

/* ---------- 02 Concept: the accent statement slide ---------- */
.cs--accent {
  background: var(--accent);
  color: var(--paper);
  margin-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: clamp(3.5rem, 7vw, 6rem);
}
.cs--accent .cs-head { border-top-color: var(--paper); }
.cs--accent .cs-num,
.cs--accent .cs-label,
.cs--accent .index-list li span { color: #F2CDBF; }
.cs--accent .cs-aside > p { font-size: var(--t-m); }
.cs--accent .index-list,
.cs--accent .spec-table { border-top-color: var(--paper); }
.cs--accent .index-list li,
.cs--accent .spec-table td { border-bottom-color: rgba(241, 237, 231, 0.35); }
.cs--accent .spec-table td:last-child,
.cs--accent .cs-note { color: #F2CDBF; }
.cs--accent .cs-note { margin-top: 0.75rem; }
.cs--accent + .cs { padding-top: clamp(3.5rem, 7vw, 6rem); }
.cs-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 700px) { .cs-split { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- 03 Sketches ---------- */
.cs-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem) var(--gap);
  counter-reset: sk;
}
@media (max-width: 860px) { .cs-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cs-gallery { grid-template-columns: 1fr; } }
.cs-gallery figure { margin: 0; counter-increment: sk; }
.cs-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--mat);
}
.cs-gallery figcaption {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  border-top: 1px solid var(--ink);
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  font-size: var(--t-s);
  color: var(--ink);
}
.cs-gallery figcaption::before {
  content: counter(sk, decimal-leading-zero);
  color: var(--accent);
  font-weight: 600;
}
.cs-gallery-note { border-top: 2px solid var(--ink); padding-top: 0.75rem; }
.cs-gallery-note h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.cs-gallery-note p { font-size: var(--t-s); color: var(--grey); }

/* ---------- 04 Space analysis ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: var(--t-s);
  line-height: 1.4;
}
.data-table thead th {
  text-align: left;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--grey);
  padding: 0 1rem 0.6rem 0;
  border-bottom: 2px solid var(--ink);
}
.data-table td,
.data-table tbody th {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}
.data-table tbody th { color: var(--accent); font-weight: 600; width: 12%; }
.data-table tr.group td {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  padding-top: 1.75rem;
  border-bottom: 1px solid var(--ink);
}

/* ---------- Diagrams + drawings ---------- */
.diagram { background: #fff; padding: clamp(1rem, 2.5vw, 2rem); }
.diagram--plain { background: transparent; padding: 0; }
.diagram-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.diagram svg { display: block; width: 100%; height: auto; min-width: 560px; }
.diagram figcaption { padding-top: 0.75rem; }

.key { list-style: none; margin: 0; padding: 0.6rem 0 0; border-top: 2px solid var(--ink); display: grid; gap: 0.6rem; }
.key li { display: flex; align-items: center; gap: 0.75rem; font-size: var(--t-s); }
.key-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--c); flex: none; }
.key-dot--small { width: 14px; height: 14px; margin: 0 4px; }
.key-ring { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--ink); flex: none; }
.key-ring--sun { border-color: #E0952F; border-width: 4px; }
.key-cross { width: 22px; height: 22px; flex: none; background:
  linear-gradient(45deg, transparent 43%, var(--ink) 43% 57%, transparent 57%),
  linear-gradient(-45deg, transparent 43%, var(--ink) 43% 57%, transparent 57%); }
.key-swatch { width: 22px; height: 22px; background: var(--c); flex: none; }
.key-line { width: 28px; height: 6px; background: var(--c, var(--ink)); flex: none; }
.key-line--minor { height: 4px; background: var(--c, #8E8780); }

.drawing { background: #fff; padding: clamp(0.75rem, 2vw, 1.5rem); }
.drawing a { display: block; cursor: zoom-in; }
.drawing figcaption { padding-top: 0.75rem; }

/* ---------- Rooms: intent + finishes | render, FF&E below ---------- */
.room .cs-aside { grid-row: 1 / span 2; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.room .ffe { background: #fff; padding: clamp(0.75rem, 2vw, 1.5rem); }
.room-block p { font-size: var(--t-m); line-height: 1.45; border-top: 2px solid var(--ink); padding-top: 0.6rem; }
.room-block .index-list { border-top-width: 2px; }
@media (max-width: 860px) {
  .room .cs-aside { grid-row: auto; position: static; }
}

/* ---------- Elevation ---------- */
.elevation-zones {
  display: grid;
  grid-template-columns: 31fr 31fr 38fr;
  gap: var(--gap);
}
.elevation-zones span { border-top: 2px solid var(--ink); padding-top: 0.5rem; color: var(--ink); font-size: var(--t-s); }

/* ---------- Model ---------- */
.model-pair { display: grid; grid-template-columns: 1.7fr 1fr; gap: var(--gap); align-items: end; }
.model-pair figure { margin: 0; }
.model-pair img { width: 100%; height: auto; }
.model-pair figcaption { border-top: 2px solid var(--ink); margin-top: 0.75rem; color: var(--ink); font-size: var(--t-s); }
@media (max-width: 700px) { .model-pair { grid-template-columns: 1fr; } }

/* ---------- Materials ---------- */
.cs-board { grid-column: 1 / 6; margin: 0; }
.cs-board img { width: 100%; height: auto; }
.cs-board-list {
  grid-column: 6 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}
@media (max-width: 860px) {
  .cs-board, .cs-board-list { grid-column: 1 / -1; }
}
@media (max-width: 520px) { .cs-board-list { grid-template-columns: 1fr; gap: 0; } .cs-board-list .index-list + .index-list { border-top: 0; } }