/* Plinth: board-marked concrete, terracotta and drawn buildings. Page Lemon template. */
:root {
  --bg: #E4E0DA;          /* board-marked concrete: page background */
  --bg-deep: #D7D1C9;     /* darker concrete band */
  --sheet: #F1EFEB;       /* drawing sheets (matches the background of art/*.svg) */
  --ink: #2B2825;         /* text and line work */
  --ink-soft: #5E5852;    /* secondary text */
  --rule: #B4ACA2;        /* sheet borders and table rules */
  --rule-soft: #CEC7BE;   /* inner borders, quiet dividers */
  --terra: #A9533A;       /* terracotta: buttons and new work */
  --terra-ink: #94452D;   /* terracotta text on concrete */
  --terra-soft: #E3B8A4;  /* terracotta fills */
  --terra-pale: #EFDDD3;  /* terracotta wash */
  --dark: #34302C;        /* dark concrete band */
  --on-dark: #EDE9E3;     /* text on dark */
  --on-dark-soft: #BDB5AB;/* secondary text on dark */
  --terra-on-dark: #E7A387; /* terracotta on dark */
  --font-display: "Lexend Giga", "Avenir Next", "Segoe UI", sans-serif; /* light, wide display */
  --font-body: "Host Grotesk", "Helvetica Neue", Arial, sans-serif;     /* refined grotesk */
  --wrap: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; color: var(--ink); font: 400 17px/1.6 var(--font-body); overflow-x: clip;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 50%, rgba(43, 40, 37, .1) 0 2px, rgba(43, 40, 37, .03) 2.6px, transparent 3.4px),
    repeating-linear-gradient(180deg, transparent 0 147px, rgba(43, 40, 37, .055) 147px 148px, rgba(255, 255, 255, .22) 148px 149px),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .08) 0 148px, rgba(43, 40, 37, .025) 148px 296px, rgba(255, 255, 255, .03) 296px 444px, rgba(43, 40, 37, .015) 444px 592px),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nLjg1JyBudW1PY3RhdmVzPScyJyBzdGl0Y2hUaWxlcz0nc3RpdGNoJy8+PGZlQ29sb3JNYXRyaXggdmFsdWVzPScwIDAgMCAwIC4xNyAwIDAgMCAwIC4xNiAwIDAgMCAwIC4xNSAwIDAgMCAuMSAwJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  background-size: 296px 148px, auto, auto, 160px 160px;
  background-position: 0 0, 0 0, 0 0, 0 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--terra-ink); }
:focus-visible { outline: 2px solid var(--terra-ink); outline-offset: 3px; border-radius: 2px; }
.band-dark :focus-visible, .footer :focus-visible { outline-color: var(--terra-on-dark); }
p { margin: 0 0 1em; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 200; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.3vw, 4.1rem); line-height: 1.06; }
h2 { font-size: clamp(1.6rem, 3vw, 2.65rem); }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 300; letter-spacing: -.01em; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--sheet); padding: 10px 16px; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--ink-soft); max-width: 36em; }
.muted { color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

/* Grid-reference label: a letter in a bubble, as on a drawing */
.ref { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 14px; font-weight: 500; color: var(--terra-ink); letter-spacing: .01em; }
.ref b { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-weight: 500; font-size: 13px; }
.ref::after { content: ""; width: 44px; height: 0; border-top: 1px dashed currentColor; opacity: .7; }
.band-dark .ref { color: var(--terra-on-dark); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 12px 22px; background: var(--terra); color: #fff; border: 1px solid var(--terra); border-radius: 2px; font: 500 16px/1.2 var(--font-body); text-decoration: none; letter-spacing: .01em; transition: background .25s var(--ease), color .25s var(--ease); cursor: pointer; }
.btn span[aria-hidden] { display: inline-block; transition: transform .35s var(--ease); }
.btn:hover { background: var(--terra-ink); color: #fff; }
.btn:hover span[aria-hidden] { transform: translateX(5px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--sheet); }
.band-dark .btn--line { color: var(--on-dark); border-color: var(--on-dark); }
.band-dark .btn--line:hover { background: var(--on-dark); color: var(--dark); }
.link { font-weight: 500; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.link span[aria-hidden] { transition: transform .35s var(--ease); }
.link:hover span[aria-hidden] { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: rgba(228, 224, 218, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.header.is-scrolled { border-bottom-color: var(--rule); background: rgba(228, 224, 218, .96); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 300 22px/1 var(--font-display); letter-spacing: .02em; min-height: 44px; }
.wordmark svg { width: 30px; height: 30px; flex: none; transition: transform .5s var(--ease); }
.wordmark:hover { color: var(--ink); }
.wordmark:hover svg { transform: translateY(-2px) rotate(-4deg); }
.nav { display: none; align-items: center; gap: 6px; }
.nav a:not(.btn) { position: relative; padding: 10px 14px; text-decoration: none; font-weight: 500; font-size: 15.5px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--terra-ink); }
.nav .btn { margin-left: 10px; min-height: 44px; padding: 10px 18px; font-size: 15px; }
.mnav { position: relative; }
.mnav summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 2px; font-weight: 500; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary i { width: 16px; height: 9px; border-block: 1.5px solid currentColor; transition: transform .3s var(--ease); }
.mnav[open] summary i { transform: rotate(90deg); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 10px); width: min(84vw, 320px); background: var(--sheet); border: 1px solid var(--rule); padding: 10px; display: grid; gap: 2px; box-shadow: 0 24px 40px -24px rgba(43, 40, 37, .5); }
.mnav nav a { padding: 12px 12px; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--rule-soft); min-height: 44px; }
.mnav nav a[aria-current="page"] { color: var(--terra-ink); }
.mnav nav .btn { margin-top: 8px; justify-content: center; border-bottom: 0; }
@media (min-width: 900px) { .nav { display: flex; } .mnav { display: none; } }

/* Sheets: drawing panels with a double border and a title block */
.sheet { position: relative; background: var(--sheet); border: 1px solid var(--rule); padding: 10px; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 22px 44px -34px rgba(43, 40, 37, .55); }
.sheet::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--rule-soft); pointer-events: none; }
.sheet img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; position: relative; }
.titleblock { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin: 6px -4px -4px; font-size: 13px; line-height: 1.35; }
.titleblock > div { padding: 9px 12px; border-right: 1px solid var(--rule-soft); border-top: 1px solid var(--rule-soft); min-width: 0; }
.titleblock > div:nth-child(-n+2) { border-top: 0; }
.titleblock > div:nth-child(2n) { border-right: 0; }
.titleblock span { display: block; font-size: 12px; color: var(--ink-soft); }
.titleblock strong { font-weight: 500; overflow-wrap: anywhere; }
@media (min-width: 700px) {
  .titleblock { grid-template-columns: 1.6fr 1fr .8fr .8fr; }
  .titleblock > div { border-top: 0; }
  .titleblock > div:nth-child(2n) { border-right: 1px solid var(--rule-soft); }
  .titleblock > div:last-child { border-right: 0; }
}

/* Photo frames: real photos drop straight in */
.frame { margin: 0; position: relative; background: var(--bg-deep); overflow: hidden; }
.photo { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover .photo { transform: scale(1.02); }
.frame figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0 0; font-size: 14px; color: var(--ink-soft); background: var(--bg); }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 4vw, 56px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.1fr 1fr; align-items: end; } .section-head p { margin: 0; } }
.band-deep { background: rgba(215, 209, 201, .6); border-block: 1px solid var(--rule-soft); }
.band-dark { background: var(--dark); color: var(--on-dark); }
.band-dark .muted, .band-dark .lede { color: var(--on-dark-soft); }

/* Hero (home) */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--terra-ink); }
.hero .lede { margin-bottom: 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 32px; margin: 36px 0 0; padding: 18px 0 0; border-top: 1px solid var(--rule); }
.hero-facts dt { font-size: 13px; color: var(--ink-soft); order: 2; }
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts dd { margin: 0; font: 200 clamp(1.5rem, 2.4vw, 2.1rem)/1.1 var(--font-display); letter-spacing: -.02em; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.live { position: relative; overflow: hidden; }
.live img { aspect-ratio: 13 / 10; }
.cross { position: absolute; inset: 10px 10px auto; aspect-ratio: 13 / 10; pointer-events: none; opacity: 0; transition: opacity .25s; }
.cross::before, .cross::after { content: ""; position: absolute; background: var(--terra); opacity: .55; }
.cross::before { left: 0; right: 0; height: 1px; top: var(--cy, 50%); }
.cross::after { top: 0; bottom: 0; width: 1px; left: var(--cx, 50%); }
.cross i { position: absolute; left: var(--cx, 50%); top: var(--cy, 50%); width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1px solid var(--terra); border-radius: 50%; }
.live.is-tracking .cross { opacity: 1; }
.live.is-tracking { cursor: crosshair; }
.readout { font-variant-numeric: tabular-nums; }

/* Typologies */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.types a { display: grid; gap: 6px; padding: 22px 20px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; position: relative; min-height: 150px; transition: background .3s var(--ease); }
.types svg { width: 54px; height: 40px; color: var(--ink); transition: transform .5s var(--ease), color .3s; }
.types strong { font: 300 1.15rem/1.2 var(--font-display); letter-spacing: -.01em; }
.types span { font-size: 14px; color: var(--ink-soft); }
.types a:hover { background: var(--sheet); color: var(--ink); }
.types a:hover svg { transform: translateY(-4px); color: var(--terra); }
@media (min-width: 900px) { .types { grid-template-columns: repeat(4, minmax(0, 1fr)); } .types a { padding: 28px 26px 24px; min-height: 190px; align-content: end; } }

/* Featured projects */
.feature { display: grid; gap: 24px; align-items: center; }
.feature + .feature { margin-top: clamp(56px, 8vw, 112px); }
.feature-text h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 200; letter-spacing: -.02em; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--ink-soft); }
.meta li { display: inline-flex; align-items: center; gap: 8px; }
.meta li + li::before { content: ""; width: 5px; height: 5px; border: 1px solid var(--terra); transform: rotate(45deg); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 7fr 5fr; gap: 56px; }
  .feature--flip { grid-template-columns: 5fr 7fr; }
  .feature--flip .frame { order: 2; }
}

/* Project index */
.filters { border: 0; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters legend { float: left; margin-right: 10px; font-size: 14px; color: var(--ink-soft); padding: 0; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .25s, color .25s, border-color .25s; background: rgba(241, 239, 235, .5); }
.chip label small { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.chip input:checked + label { background: var(--ink); color: var(--sheet); border-color: var(--ink); }
.chip input:checked + label small { color: var(--rule-soft); }
.chip input:focus-visible + label { outline: 2px solid var(--terra-ink); outline-offset: 3px; }
.chip label:hover { border-color: var(--ink); }
.count { margin: 0 0 0 auto; font-size: 14px; color: var(--ink-soft); min-height: 1.6em; }
.index-wrap { display: grid; gap: 22px; }
.preview { position: sticky; top: calc(var(--header-h) + 8px); z-index: 3; }
.preview .sheet { padding: 8px; }
.preview-stage { position: relative; aspect-ratio: 4 / 3; }
.preview figure { margin: 0; position: absolute; inset: 0; opacity: 0; transform: translateY(8px) scale(.985); transition: opacity .35s var(--ease), transform .5s var(--ease); }
.preview figure img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }
.preview figure.is-on { opacity: 1; transform: none; }
.preview .titleblock { grid-template-columns: 1.6fr 1fr; }
.preview .titleblock > div:nth-child(2n) { border-right: 0; }
.preview .titleblock > div { border-top: 0; }
.index { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.index thead th { text-align: left; font-weight: 500; font-size: 13px; color: var(--ink-soft); padding: 0 12px 10px 0; border-bottom: 1px solid var(--ink); }
.index td { padding: 0 12px 0 0; border-bottom: 1px solid var(--rule); vertical-align: middle; height: 64px; transition: background .25s var(--ease); }
.index tbody tr { position: relative; }
.index td:first-child { position: relative; padding-left: 14px; font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.index td:first-child::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 3px; background: var(--terra); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
.index tbody tr:is(:hover, :focus-within, .is-active) td { background: rgba(241, 239, 235, .85); }
.index tbody tr:is(:hover, :focus-within, .is-active) td:first-child::before { transform: scaleY(1); }
.pname { font: 300 1.08rem/1.25 var(--font-display); letter-spacing: -.01em; text-decoration: none; background: none; border: 0; padding: 10px 0; color: inherit; cursor: pointer; text-align: left; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.pname::after { content: ""; position: absolute; inset: 0; }
a.pname .go { font: 500 12px/1 var(--font-body); color: var(--terra-ink); border: 1px solid currentColor; padding: 4px 7px; border-radius: 99px; letter-spacing: .02em; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.tag svg { width: 22px; height: 16px; color: var(--terra-ink); flex: none; }
.status { font-size: 14px; color: var(--ink-soft); white-space: nowrap; }
.status--live { color: var(--terra-ink); font-weight: 500; }
.status--live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--terra); animation: pulse 2.4s infinite; vertical-align: 1px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(169, 83, 58, .45); } 60% { box-shadow: 0 0 0 7px rgba(169, 83, 58, 0); } }
.col-place, .col-status { display: none; }
.index-wrap:has(#f-houses:checked) tbody tr:not([data-type="houses"]),
.index-wrap:has(#f-civic:checked) tbody tr:not([data-type="civic"]),
.index-wrap:has(#f-retrofit:checked) tbody tr:not([data-type="retrofit"]),
.index-wrap:has(#f-interiors:checked) tbody tr:not([data-type="interiors"]) { display: none; }
/* hover preview without JavaScript */
.index-wrap:not(.js):has(tbody tr:is(:hover, :focus-within)) .preview figure.is-on { opacity: 0; }
.index-wrap:not(.js):has(tr[data-p="weir"]:is(:hover, :focus-within)) .preview [data-p="weir"],
.index-wrap:not(.js):has(tr[data-p="corn"]:is(:hover, :focus-within)) .preview [data-p="corn"],
.index-wrap:not(.js):has(tr[data-p="tanners"]:is(:hover, :focus-within)) .preview [data-p="tanners"],
.index-wrap:not(.js):has(tr[data-p="kiln"]:is(:hover, :focus-within)) .preview [data-p="kiln"],
.index-wrap:not(.js):has(tr[data-p="pavilion"]:is(:hover, :focus-within)) .preview [data-p="pavilion"],
.index-wrap:not(.js):has(tr[data-p="larder"]:is(:hover, :focus-within)) .preview [data-p="larder"],
.index-wrap:not(.js):has(tr[data-p="mill"]:is(:hover, :focus-within)) .preview [data-p="mill"],
.index-wrap:not(.js):has(tr[data-p="sedge"]:is(:hover, :focus-within)) .preview [data-p="sedge"],
.index-wrap:not(.js):has(tr[data-p="orchard"]:is(:hover, :focus-within)) .preview [data-p="orchard"],
.index-wrap:not(.js):has(tr[data-p="gatehouse"]:is(:hover, :focus-within)) .preview [data-p="gatehouse"] { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .preview { top: calc(var(--header-h) + 4px); }
  .preview .sheet { box-shadow: 0 18px 30px -22px rgba(43, 40, 37, .6); }
  .preview .titleblock { font-size: 12px; }
  .preview .titleblock > div { padding: 6px 10px; }
  .index thead { display: none; }
  .index, .index tbody { display: block; }
  .index tbody tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "type year"; padding: 10px 0 12px 14px; border-bottom: 1px solid var(--rule); }
  .index td { height: auto; border: 0; padding: 0; background: none !important; }
  .index td:first-child { display: none; }
  .index tbody tr::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--terra); transform: scaleY(0); transform-origin: top; transition: transform .35s var(--ease); }
  .index tbody tr:is(:hover, :focus-within, .is-active)::before { transform: scaleY(1); }
  .index tbody tr:is(:hover, :focus-within, .is-active) { background: rgba(241, 239, 235, .7); }
  .col-name { grid-area: name; } .col-type { grid-area: type; } .col-year { grid-area: year; text-align: right; padding-right: 12px !important; }
  .pname { padding: 4px 0; }
}
@media (min-width: 900px) {
  .index-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; }
  .index-wrap .preview { order: 2; }
}
@media (min-width: 1200px) { .col-place, .col-status { display: table-cell; } }

/* Approach: stages that step up like levels on a section */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: stage; }
.stage { position: relative; padding: 22px 0 22px 64px; border-top: 1px solid rgba(237, 233, 227, .18); }
.stage::before { content: ""; position: absolute; left: 6px; top: 26px; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-top: 13px solid var(--terra-on-dark); }
.stage::after { content: ""; position: absolute; left: 30px; top: 31px; width: 22px; border-top: 1px solid var(--terra-on-dark); }
.stage .lvl { display: block; font-size: 13px; color: var(--terra-on-dark); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.stage h3 { margin-bottom: .35em; }
.stage p { color: var(--on-dark-soft); margin: 0; font-size: 16px; }
@media (min-width: 900px) {
  .stages { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 0; padding-top: 120px; }
  .stage { padding: 54px 26px 28px; border-top: 0; border-left: 1px solid rgba(237, 233, 227, .18); background: linear-gradient(rgba(237, 233, 227, .045), rgba(237, 233, 227, 0)); }
  .stage::before { left: 22px; top: -14px; }
  .stage::after { left: 46px; top: -8px; width: 70px; }
  .stage:nth-child(2) { margin-bottom: 40px; } .stage:nth-child(3) { margin-bottom: 80px; } .stage:nth-child(4) { margin-bottom: 120px; }
  .stage-ground { grid-column: 1 / -1; height: 1px; background: var(--on-dark-soft); opacity: .5; }
}

/* Quote */
.quote { display: grid; gap: 28px; align-items: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 200 clamp(1.4rem, 2.6vw, 2.25rem)/1.3 var(--font-display); letter-spacing: -.02em; margin-bottom: .7em; }
.quote blockquote p::before { content: "\201C"; color: var(--terra-ink); }
.quote blockquote p::after { content: "\201D"; color: var(--terra-ink); }
.quote cite { font-style: normal; font-size: 15px; color: var(--ink-soft); }
@media (min-width: 900px) { .quote { grid-template-columns: 7fr 4fr; gap: 64px; } }

/* Awards */
.awards { width: 100%; border-collapse: collapse; font-size: 16px; }
.awards th, .awards td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.awards thead th { font-size: 13px; font-weight: 500; color: var(--ink-soft); border-bottom-color: var(--ink); padding-top: 0; }
.awards td:first-child, .awards th:first-child { font-variant-numeric: tabular-nums; width: 5.5em; }
.awards tbody tr { transition: background .25s; }
.awards tbody tr:hover { background: rgba(241, 239, 235, .7); }
.awards .prize { font-weight: 500; }
@media (max-width: 699px) {
  .awards thead { display: none; }
  .awards, .awards tbody, .awards tr { display: block; }
  .awards tr { display: grid; grid-template-columns: 4.5em 1fr; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .awards td { border: 0; padding: 2px 0; }
  .awards td:nth-child(n+3) { grid-column: 2; color: var(--ink-soft); font-size: 15px; }
}

/* CTA band */
.cta { display: grid; gap: 28px; align-items: end; padding-block: clamp(56px, 8vw, 104px); }
.cta h2 { margin: 0; max-width: 16em; }
.cta p { margin: 14px 0 0; }
@media (min-width: 900px) { .cta { grid-template-columns: 1.3fr 1fr; } .cta .actions { justify-content: flex-end; } }

/* Page title (inner pages) */
.ptitle { padding-block: clamp(36px, 6vw, 88px) clamp(28px, 4vw, 48px); }
.ptitle .wrap { display: grid; gap: 22px; align-items: end; }
.ptitle h1 { margin: 0; }
@media (min-width: 900px) { .ptitle .wrap { grid-template-columns: 1.2fr 1fr; } .ptitle .lede { margin: 0; } }

/* Case study */
.case-hero { padding-block: clamp(32px, 5vw, 72px) 0; }
.case-hero .wrap { display: grid; gap: 28px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.facts div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-size: 13px; color: var(--ink-soft); }
.facts dd { margin: 0; font-weight: 500; }
@media (min-width: 900px) { .case-hero .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; } .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.smalls { padding: 24px 26px 20px; }
.smalls-h { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.smalls .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.case-photo { margin-top: clamp(28px, 4vw, 56px); }
.case-photo .photo { aspect-ratio: 16 / 10; }
@media (min-width: 900px) { .case-photo .photo { aspect-ratio: 16 / 8; } }
.story { display: grid; gap: 28px; }
.story h2 { font-size: clamp(1.4rem, 2.3vw, 2rem); }
@media (min-width: 900px) { .story { grid-template-columns: 4fr 7fr; gap: 64px; } .story > div:first-child { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 32px 0; border-top: 1px solid var(--rule); }
.stats div { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--rule); }
.stats dd { margin: 0; font: 200 clamp(1.7rem, 3vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; color: var(--terra-ink); }
.stats dt { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
@media (max-width: 479px) { .stats dt { font-size: 13px; } .stats div { padding-right: 10px; } }
.credits { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; font-size: 15.5px; }
.credits div { display: grid; grid-template-columns: 9em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.credits dt { color: var(--ink-soft); }
.credits dd { margin: 0; }
.next { display: grid; gap: 20px; align-items: center; text-decoration: none; padding: 22px; }
.next img { aspect-ratio: 4 / 3; }
.next strong { font: 200 clamp(1.4rem, 2.6vw, 2.2rem)/1.15 var(--font-display); letter-spacing: -.02em; display: block; margin: 6px 0 10px; }
.next:hover { color: var(--ink); }
.next:hover .link span[aria-hidden] { transform: translateX(4px); }
@media (min-width: 900px) { .next { grid-template-columns: 1fr 1.2fr; gap: 48px; padding: 28px 40px 28px 28px; } }

/* Drawing toggle */
.dwg-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dwg-head h2 { margin: 0; }
.toggle { border: 0; margin: 0; padding: 4px; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: rgba(241, 239, 235, .7); border: 1px solid var(--rule); border-radius: 3px; min-width: min(100%, 440px); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle label { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 12px; font-weight: 500; font-size: 15px; cursor: pointer; transition: color .3s var(--ease); white-space: nowrap; }
.toggle label kbd { font: 500 11px/1 var(--font-body); border: 1px solid currentColor; border-radius: 3px; padding: 3px 5px; opacity: .55; display: none; }
.toggle-ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); background: var(--ink); border-radius: 2px; transition: transform .45s var(--ease); }
.toggle:has(#d-plan:checked) label[for="d-plan"], .toggle:has(#d-section:checked) label[for="d-section"], .toggle:has(#d-axo:checked) label[for="d-axo"] { color: var(--sheet); }
.toggle:has(#d-section:checked) .toggle-ink { transform: translateX(100%); }
.toggle:has(#d-axo:checked) .toggle-ink { transform: translateX(200%); }
.toggle:has(input:focus-visible) { outline: 2px solid var(--terra-ink); outline-offset: 3px; }
@media (pointer: fine) { .toggle label kbd { display: inline-block; } }
.dwg-sheet .dwg { display: none; margin: 0; position: relative; }
.dwgs:has(#d-plan:checked) .dwg--plan, .dwgs:has(#d-section:checked) .dwg--section, .dwgs:has(#d-axo:checked) .dwg--axo { display: block; }
.dwg img { animation: wipe .8s var(--ease) both; }
.dwg::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--terra); opacity: 0; animation: scan .8s var(--ease) both; pointer-events: none; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { left: 0; opacity: .9; } 85% { opacity: .9; } 100% { left: 100%; opacity: 0; } }
.tb-dwg > * { display: none; }
.dwgs:has(#d-plan:checked) .tb-dwg .t-plan, .dwgs:has(#d-section:checked) .tb-dwg .t-section, .dwgs:has(#d-axo:checked) .tb-dwg .t-axo { display: inline; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; color: var(--ink-soft); }
.legend li { display: inline-flex; align-items: center; gap: 10px; }
.legend i { width: 26px; height: 10px; display: inline-block; }
.legend .k-old { background: #4A4540; } .legend .k-new { background: var(--terra); } .legend .k-cut { border-top: 2px dashed var(--terra); height: 0; }
.dwg-notes { display: grid; gap: 8px 32px; margin-top: 28px; font-size: 15.5px; color: var(--ink-soft); }
@media (min-width: 900px) { .dwg-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dwg-notes p { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.dwg-notes strong { color: var(--ink); font-weight: 500; display: block; }

/* Practice */
.principles { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.principle { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.principle svg { width: 64px; height: 48px; color: var(--terra-ink); }
.principle h3 { margin-bottom: .3em; }
.principle p { margin: 0; color: var(--ink-soft); }
@media (min-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; } .principle { grid-template-columns: 84px 1fr; } .principle svg { width: 84px; height: 60px; } }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; list-style: none; padding: 0; margin: 0; }
.people li { display: grid; gap: 4px; }
.people .frame { margin-bottom: 12px; }
.people .photo { aspect-ratio: 4 / 5; filter: saturate(.9); }
.people h3 { margin: 0; font-size: 1.05rem; }
.people .role { font-size: 14px; color: var(--terra-ink); font-weight: 500; }
.people p { font-size: 15px; color: var(--ink-soft); margin: 4px 0 0; }
@media (min-width: 900px) { .people { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.studio-split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .studio-split { grid-template-columns: 7fr 5fr; gap: 56px; } }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.slot { padding: 28px; }
.slot p { font-size: 17px; }
.slot .actions { margin-top: 18px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); counter-reset: s; }
.steps li { position: relative; padding: 18px 0 18px 54px; border-bottom: 1px solid var(--rule); counter-increment: s; }
.steps li::before { content: counter(s, upper-alpha); position: absolute; left: 0; top: 16px; width: 32px; height: 32px; border: 1px solid var(--terra-ink); color: var(--terra-ink); border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 500; }
.steps strong { font-weight: 500; display: block; }
.steps span { color: var(--ink-soft); font-size: 15.5px; }
.visit dl { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.visit dl div { padding: 12px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.visit dt { color: var(--ink-soft); font-size: 15px; }
.visit dd { margin: 0; }
/* Enquiry form styles (used when the Forms plugin renders the template) */
.enquiry-form { display: grid; gap: 18px; }
.enquiry-form .row { display: grid; gap: 18px; }
@media (min-width: 700px) { .enquiry-form .row { grid-template-columns: 1fr 1fr; } }
.enquiry-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
.enquiry-form textarea { min-height: 150px; resize: vertical; }
.enquiry-form input:focus, .enquiry-form select:focus, .enquiry-form textarea:focus { outline: none; border-color: var(--terra-ink); box-shadow: 0 0 0 3px rgba(169, 83, 58, .2); }
.enquiry-form .hint { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.enquiry-form button { justify-self: start; }

/* Prose (privacy) */
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* 404 */
.lost { display: grid; gap: 32px; align-items: center; padding-block: clamp(40px, 7vw, 100px); }
@media (min-width: 900px) { .lost { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Footer: a drawing title block */
.footer { margin-top: 0; padding-block: clamp(40px, 6vw, 72px) 28px; background: var(--dark); color: var(--on-dark); }
.footer a { color: var(--on-dark); }
.footer a:hover { color: var(--terra-on-dark); }
.tblock { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid rgba(237, 233, 227, .28); }
.tblock > div { padding: 16px 18px; border-right: 1px solid rgba(237, 233, 227, .2); border-bottom: 1px solid rgba(237, 233, 227, .2); min-width: 0; }
.tblock > div:nth-child(2n) { border-right: 0; }
.tblock .k { display: block; font-size: 12.5px; color: var(--on-dark-soft); margin-bottom: 6px; }
.tblock address { font-style: normal; }
.tblock .big { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; padding: 22px 18px; }
.tblock .big .wordmark { font-size: clamp(2.2rem, 7vw, 5.2rem); font-weight: 200; letter-spacing: -.02em; gap: 16px; }
.tblock .big .wordmark svg { width: clamp(40px, 6vw, 72px); height: auto; }
.tblock .big p { margin: 0; max-width: 20em; color: var(--on-dark-soft); }
.footer .btn { background: var(--terra); border-color: var(--terra); }
.footer-base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-top: 18px; font-size: 13.5px; color: var(--on-dark-soft); }
.footer-base a { min-height: 44px; display: inline-flex; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 0 16px; }
.social a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .tblock { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .tblock > div:nth-child(2n) { border-right: 1px solid rgba(237, 233, 227, .2); }
  .tblock > div:nth-child(5), .tblock > div:last-child { border-right: 0; }
  .tblock > div:nth-last-child(-n+4) { border-bottom: 0; }
}

/* Reveal on scroll (only when script.js runs) */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js-reveal [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .dwg img { animation: none; } .dwg::after { display: none; }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
  .status--live::before { animation: none; }
}
@media print { .header, .footer, .mnav, .toggle { display: none; } body { background: #fff; } }
.sub { font-size: clamp(1.2rem, 1.8vw, 1.5rem); margin: 48px 0 16px; }
.slot h2, .visit h2 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
.tblock a, .tblock span { overflow-wrap: anywhere; }
@media (max-width: 479px) { .tblock { grid-template-columns: minmax(0, 1fr); } .tblock > div { border-right: 0; } }
@media (min-width: 1200px) {
  .index-wrap { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .index { table-layout: fixed; }
  .index th:nth-child(1) { width: 12%; } .index th:nth-child(3) { width: 16%; } .index th:nth-child(4) { width: 16%; } .index th:nth-child(5) { width: 9%; } .index th:nth-child(6) { width: 15%; }
  .index .col-place, .index .status { font-size: 14px; }
  .index .status { white-space: normal; }
  .pname { flex-wrap: wrap; row-gap: 4px; }
}
.readout { white-space: nowrap; }
.titleblock .readout span { display: inline; font-size: inherit; color: inherit; }
.frame figcaption { background: none; }
.quote .sheet img { aspect-ratio: 2.3 / 1; object-fit: cover; }
@media (min-width: 900px) { .quote { grid-template-columns: 6fr 5fr; } }
.filters { grid-column: 1 / -1; }
.index-wrap { grid-auto-flow: dense; }
.index td:first-child { white-space: nowrap; }
@media (min-width: 900px) { .index-wrap .preview { grid-column: 2; } .index-list { grid-column: 1; } }
.titleblock .tb-dwg > span { display: none; }
.dwgs:has(#d-plan:checked) .titleblock .tb-dwg .t-plan, .dwgs:has(#d-section:checked) .titleblock .tb-dwg .t-section, .dwgs:has(#d-axo:checked) .titleblock .tb-dwg .t-axo { display: inline; font-size: inherit; color: inherit; }
.case-hero .case-photo { display: block; }
.dwg img { max-height: 74vh; }
.story .quote { display: block; margin-top: 40px; }
.ptitle + .section--tight { padding-top: 8px; }
@media (max-width: 899px) {
  .preview-stage { aspect-ratio: auto; height: min(30vh, 230px); }
  .preview .titleblock { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .preview .titleblock > div:nth-child(2) strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  .pname { flex-wrap: wrap; row-gap: 4px; }
  .filters legend { float: none; width: 100%; margin-bottom: 4px; }
  .count { margin-left: 0; width: 100%; }
}
.pan-hint { display: none; }
@media (max-width: 699px) {
  .dwg { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; }
  .dwg img { width: 720px; max-width: none; max-height: none; }
  .pan-hint { display: block; position: relative; margin: 8px 4px 0; font-size: 13px; color: var(--ink-soft); }
}
.contact-grid > *, .visit dd { min-width: 0; }
.visit dd, .slot h2 { overflow-wrap: anywhere; }
@media (max-width: 379px) { .visit dl div { grid-template-columns: 1fr; gap: 2px; } .slot { padding: 22px 18px; } }
.frame { background: none; }
.photo { background: var(--bg-deep); }
.case-photo .photo { object-position: 50% 40%; }
