/* Immobilo — proposed design system (guideline p.7–8). Mobile-first. */

/* Self-hosted fonts (SIL Open Font License; licence files in /fonts). Latin subset, WOFF2. */
@font-face { font-family: "DM Serif Display"; src: url("/fonts/dm-serif-display-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope-variable.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ivory: #F7F4EC;
  --stone: #D8CFC0;
  --stone-soft: #EDE7DB;
  --sand: #E5DCCD;
  --on-dark: #F7F4EC;
  --on-dark-muted: #C9C4B8;
  --olive: #3D4938;
  --olive-deep: #2F3A2B;
  --charcoal: #232824;
  --muted: #5D625A;
  --rule: #D8CFC0;
  --focus: #232824;

  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;

  --max: 1280px;
  --gutter: 20px;
  --gap: 16px;
  --section: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 40px; --gap: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 64px; --section: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
@media (min-width: 768px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

/* Type */
h1, h2, h3, .h3, .h4 { margin: 0; font-weight: 400; color: var(--charcoal); }
h1 { font: 400 clamp(36px, 6.4vw, 68px)/1.08 var(--serif); letter-spacing: -0.01em; text-wrap: balance; max-width: 18ch; }
h2 { font: 400 clamp(28px, 3.6vw, 42px)/1.15 var(--serif); text-wrap: balance; }
h3, .h3 { font: 600 19px/1.35 var(--sans); letter-spacing: -0.005em; }
.h4 { font: 600 17px/1.4 var(--sans); }
.lead { font-size: 19px; line-height: 1.45; }
@media (min-width: 768px) { .lead { font-size: 22px; } }
.muted { color: var(--muted); }
.eyebrow, .label {
  font: 600 14px/1.4 var(--sans);
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 16px;
}
.label-sep { padding: 0 .25em; }

.wrap {
  width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Focus & skip */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.closing :focus-visible, .site-footer :focus-visible { outline-color: var(--ivory); }
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--charcoal); color: var(--ivory); padding: 12px 16px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px;
  font: 600 16px/1.2 var(--sans); text-decoration: none;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--olive); color: var(--ivory); }
.btn-primary:hover { background: var(--olive-deep); }
.btn-primary:active { background: var(--charcoal); }
.btn-light { background: var(--ivory); color: var(--charcoal); }
.btn-light:hover { background: var(--stone); }
.btn[disabled] { background: var(--stone); color: var(--muted); cursor: not-allowed; }
.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  transition: text-decoration-color .2s var(--ease);
}
.text-link::after { content: "→"; margin-left: 8px; text-decoration: none; display: inline-block; }
.text-link:hover { text-decoration-color: transparent; }

/* Staging banner and internal notes (never in production) */
.staging { background: #6B4E1B; color: #FFF8EA; font-size: 14px; line-height: 1.4; padding: 8px 0; }
.todo {
  display: inline-block; font: 600 12px/1.4 var(--sans); letter-spacing: .02em;
  background: #F4E2B8; color: #4A3510; padding: 2px 8px; border-radius: 2px; margin: 0 0 8px;
}
.content-required {
  border: 1px dashed #A78A4E; background: #FBF3E1; color: #4A3510;
  padding: 16px; font-size: 15px; line-height: 1.5; margin: 0 0 16px;
}
.draft-note { margin-top: 16px; font-size: 14px; color: #4A3510; background: #FBF3E1; border: 1px dashed #A78A4E; padding: 8px 12px; }
.draft-note summary { cursor: pointer; font-weight: 600; min-height: 28px; display: flex; align-items: center; }
.draft-note ul { padding-left: 18px; margin-top: 6px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--ivory); position: relative; z-index: 10; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
/* Logo (option D): serif name, olive small-capital sub-line, left-aligned */
.wordmark { display: inline-flex; flex-direction: column; align-items: flex-start; text-decoration: none; margin: 0; color: var(--charcoal); --k: 26px; }
.wm-name { font: 400 var(--k)/.95 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.wm-sub { margin-top: .5em; font: 600 max(9px, calc(var(--k) * .16))/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--olive); white-space: nowrap; }
.wordmark-light { color: var(--ivory); }
.wordmark-light .wm-sub { color: #AAB89F; }
.wordmark-lg { --k: 34px; }
.site-nav ul { list-style: none; display: flex; gap: 32px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font: 500 15px/1.4 var(--sans); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat;
  transition: background-size .2s var(--ease);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background-size: 100% 1px; }
.menu-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px; background: none; border: 0; color: inherit;
  font: 600 16px/1 var(--sans); cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before {
  display: block; width: 20px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .2s var(--ease);
}
.menu-toggle-bars::before { content: ""; position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
.header-cta { padding: 10px 16px; min-height: 44px; font-size: 15px; }

@media (max-width: 899px) {
  .header-row { flex-wrap: wrap; gap: 12px; }
  .wordmark { margin-right: auto; }
  .menu-toggle { margin-left: 0; order: 2; }
  .header-cta { order: 1; }
  .site-nav { order: 3; flex-basis: 100%; display: none; padding: 8px 0 20px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li + li { border-top: 1px solid var(--rule); }
  .site-nav a { font-size: 17px; min-height: 52px; width: 100%; }
}
@media (max-width: 379px) {
  :root { --gutter: 16px; }
  .header-row { gap: 8px; }
  .wordmark { --k: 22px; }
  .header-cta { padding: 8px 12px; font-size: 14px; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav { margin-left: auto; }
}

/* Hero: headline row, then a DL79 photo mosaic. Text never sits on an image. */
.hero { padding: 40px 0 var(--section); }
.hero-text { display: grid; gap: 24px; margin-bottom: 40px; }
.hero h1 { margin: 0; }
.hero .lead { max-width: 38ch; color: var(--charcoal); margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
@media (min-width: 900px) {
  .hero { padding-top: 64px; }
  .hero-text { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; margin-bottom: 56px; }
  .hero-head { grid-column: 1 / span 7; }
  .hero-side { grid-column: 8 / span 5; }
  .hero-type .hero-head { grid-column: 1 / span 9; }
}
.hero { padding-bottom: 40px; }
@media (min-width: 900px) { .hero { padding-bottom: 56px; } .hero-text { margin-bottom: 0; } }

/* Lisbon carousel: full width, manual controls, captions below the image */
.carousel { background: var(--charcoal); }
.car-viewport { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--charcoal); touch-action: pan-y; }
@media (min-width: 768px) { .car-viewport { aspect-ratio: auto; height: min(86vh, 58vw); min-height: 420px; } }
.car-viewport:focus-visible { outline: 2px solid var(--on-dark); outline-offset: -4px; }
.car-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .45s var(--ease); }
.car-slide.is-active { opacity: 1; }
.car-slide picture, .car-slide img { width: 100%; height: 100%; }
.car-slide img { object-fit: cover; }
.car-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 20px; padding-bottom: 24px; background: var(--charcoal); color: var(--on-dark); }
.car-captions { min-width: 0; flex: 1 1 320px; }
.car-caption .label { color: var(--on-dark-muted); margin-bottom: 6px; }
.car-title { font: 400 clamp(24px, 3vw, 34px)/1.15 var(--serif); margin: 0; }
.car-place { font: 400 16px/1.4 var(--sans); color: var(--on-dark-muted); margin-left: 8px; }
.car-link { color: var(--on-dark); margin-top: 4px; }
.car-controls { display: flex; align-items: center; gap: 12px; }
.car-count { font: 600 14px/1 var(--sans); letter-spacing: .08em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; margin-right: 8px; }
.car-dots { display: flex; gap: 4px; }
.car-dot { width: 32px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.car-dot::after { content: ""; position: absolute; left: 4px; right: 4px; top: 21px; height: 2px; background: rgba(247, 244, 236, .35); transition: background-color .2s var(--ease); }
.car-dot[aria-current="true"]::after { background: var(--on-dark); }
.car-btn { width: 48px; height: 48px; border: 1px solid rgba(247, 244, 236, .5); border-radius: 50%; background: transparent; color: var(--on-dark); font-size: 18px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.car-btn:hover { background: var(--on-dark); color: var(--charcoal); }
.carousel :focus-visible { outline-color: var(--on-dark); }
.car-pause-icon { display: inline-block; width: 12px; height: 14px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; vertical-align: middle; }
.car-pause.is-paused .car-pause-icon { width: 0; height: 0; border-left: 12px solid currentColor; border-right: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
@media (max-width: 520px) { .car-dots { display: none; } }

/* Text index of projects (home, when every pictured project is in the carousel) */
.project-index { list-style: none; border-top: 1px solid var(--charcoal); }
.project-index li { border-bottom: 1px solid rgba(35, 40, 36, .2); }
.project-index a { display: grid; gap: 2px 16px; padding: 18px 0; text-decoration: none; align-items: baseline; }
.pi-title { font: 400 26px/1.2 var(--serif); }
.pi-loc, .pi-stage { color: var(--muted); font-size: 16px; }
.pi-group { font: 600 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.project-index a:hover .pi-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
@media (min-width: 900px) { .project-index a { grid-template-columns: 3fr 2fr 4fr 3fr; } }
.carousel .todo { margin-top: 8px; }

/* DL79 details */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mosaic figure { margin: 0; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 5; }
.mosaic picture, .mosaic img { width: 100%; height: 100%; }
.mosaic img { object-fit: cover; }
.mosaic-caption { font-size: 14px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
figcaption { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 12px; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

/* Sections */
.section { padding: var(--section) 0; border-top: 1px solid var(--rule); }
.section-tight { border-top: 0; padding-top: 0; }
.section-stone { background: var(--stone-soft); border-top: 0; }
.section-sand { background: var(--sand); border-top: 0; }
.section-dark { background: var(--charcoal); color: var(--on-dark); border-top: 0; }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark .muted, .section-dark .prose p { color: var(--on-dark-muted); }
.section-dark .lead { color: var(--on-dark); }
.section-dark .btn-primary { background: var(--on-dark); color: var(--charcoal); }
.section-dark .btn-primary:hover { background: var(--stone); }
.section-dark :focus-visible { outline-color: var(--on-dark); }
.section-sand .card-media-empty { background: var(--stone-soft); }
.split { display: grid; gap: 24px; }
.split-body { max-width: 66ch; }
.split-body > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .split-head { grid-column: 1 / span 4; }
  .split-body { grid-column: 6 / span 7; }
}
@media (max-width: 899px) { .split-head:empty { display: none; } }
.section-intro { display: grid; gap: 16px; margin-bottom: 48px; }
.section-intro p { max-width: 60ch; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .section-intro { grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
  .section-intro h2 { grid-column: 1 / span 5; }
  .section-intro p { grid-column: 6 / span 7; }
}
.section-link { margin: 32px 0 0; }

.steps { list-style: none; counter-reset: s; margin: 40px 0 32px; border-top: 1px solid var(--rule); }
.steps li { counter-increment: s; padding: 24px 0 24px 48px; border-bottom: 1px solid var(--rule); position: relative; }
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 26px;
  font: 400 18px/1 var(--serif); color: var(--olive);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); }

/* Page heads */
.page-head { padding: 48px 0 var(--section); }
@media (min-width: 900px) { .page-head { padding-top: 88px; } }
.page-head h1 { margin-bottom: 0; }
.page-lead { max-width: 40ch; margin-top: 28px; }
.page-404 { min-height: 50vh; }

/* Approach stages */
.stages { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--charcoal); }
.stages li { padding: 28px 0 32px; border-bottom: 1px solid var(--rule); }
.stage-n { display: block; font: 400 32px/1 var(--serif); color: var(--olive); margin-bottom: 20px; }
.stages h2 { margin-bottom: 10px; }
.stages p { color: var(--muted); margin: 0; max-width: 46ch; }
@media (min-width: 768px) { .stages { grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); } }
@media (min-width: 1100px) {
  .stages { grid-template-columns: repeat(4, 1fr); }
  .stages li { border-bottom: 0; border-right: 1px solid var(--rule); padding-right: 24px; }
  .stages li:last-child { border-right: 0; }
}

/* Approach: core strengths */
.core { display: grid; gap: 48px var(--gap); }
.core-item { border-top: 1px solid var(--charcoal); padding-top: 24px; }
.core-n { font: 400 56px/1 var(--serif); color: var(--olive); margin: 0 0 16px; }
.core-title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.core-item .lead { max-width: 38ch; }
.core-points { list-style: none; margin-top: 24px; border-top: 1px solid rgba(35, 40, 36, .2); }
.core-points li { padding: 12px 0 12px 28px; border-bottom: 1px solid rgba(35, 40, 36, .2); position: relative; }
.core-points li::before { content: ""; position: absolute; left: 0; top: 23px; width: 14px; height: 1px; background: var(--olive); }
@media (min-width: 900px) { .core { grid-template-columns: 1fr 1fr; gap: var(--gap) 64px; } }
.stages li.is-core h3 { font-size: 21px; }
.stages li:not(.is-core) { color: var(--muted); }
.stages li:not(.is-core) .stage-n { color: var(--muted); }
.stage-tag { display: inline-block; margin: -8px 0 12px; font: 600 12px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); background: var(--stone-soft); padding: 3px 8px; border-radius: 2px; }
.stages h3 { margin-bottom: 10px; }

/* Audiences */
.audiences { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--charcoal); }
.audiences li { padding: 28px 0; border-bottom: 1px solid var(--rule); }
.audiences h2 { margin-bottom: 10px; }
.audiences p { margin: 0; color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) {
  .audiences { grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
  .audiences li { border-bottom: 0; }
}

/* Experience cards */
.groups { padding-bottom: var(--section); }
.group + .group { margin-top: var(--section); }
.group-head { border-top: 1px solid var(--charcoal); padding-top: 20px; margin-bottom: 32px; display: grid; gap: 12px; }
.group-intro { color: var(--muted); max-width: 60ch; margin: 0; }
@media (min-width: 900px) {
  .group-head { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .group-head h2 { grid-column: 1 / span 5; }
  .group-intro { grid-column: 6 / span 7; }
}
.cards { display: grid; gap: 48px var(--gap); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s var(--ease); }
.card:hover .card-media img { transform: scale(1.015); }
.card-media-empty { display: flex; align-items: flex-end; padding: 24px; background: var(--stone-soft); border: 1px solid var(--rule); }
.card-media-empty span { font: 400 clamp(32px, 4vw, 48px)/1 var(--serif); color: var(--muted); }
.img-tag {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--ivory); color: var(--charcoal); font: 600 13px/1 var(--sans); padding: 6px 8px; border-radius: 2px;
}
.card-body { padding-top: 20px; }
.card .label { margin-bottom: 10px; }
.card-title { font: 400 30px/1.15 var(--serif); margin-bottom: 4px; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.card-loc { color: var(--muted); margin-bottom: 16px; }
.card .draft-note { position: relative; z-index: 1; }

.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.facts > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }
.facts dt { color: var(--muted); font-size: 14px; padding-top: 2px; }
.facts dd { margin: 0; }
.facts dd .todo { margin: 0; }
.facts-row { margin-top: 32px; max-width: 760px; }
@media (min-width: 768px) {
  .facts-row { grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--rule); }
  .facts-row > div { grid-template-columns: 1fr; gap: 4px; border-bottom: 0; padding-right: 16px; }
}

/* Case study */
.crumbs { font-size: 15px; margin-bottom: 32px; color: var(--muted); }
.crumbs a { display: inline-flex; min-height: 44px; align-items: center; }
.case-loc { font-size: 19px; color: var(--muted); margin-top: 8px; }
.attribution { font-size: 15px; color: var(--muted); max-width: 60ch; margin-top: 20px; }
.gallery { display: grid; gap: 32px var(--gap); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; }
@media (min-width: 768px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery-lead { grid-column: 1 / -1; } }
.case-body { display: grid; gap: 40px; padding-top: var(--section); padding-bottom: var(--section); }
.case-block { max-width: 66ch; }
.case-block h2 { margin-bottom: 12px; }
.case-block ul { padding-left: 20px; }
.credits { list-style: none; padding: 0 !important; }
@media (min-width: 900px) {
  .case-body { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); }
  .case-block { grid-column: 4 / span 7; }
}

/* About: founder block and leadership row */
.founder { display: grid; gap: 32px; align-items: start; }
.portrait-slot {
  aspect-ratio: 4 / 5; width: 100%; max-width: 220px; display: flex; flex-direction: column; justify-content: space-between;
  padding: 16px; border: 1px dashed #A78A4E; color: #4A3510; background: #FBF3E1; font-size: 14px;
}
.portrait-slot span { font: 400 56px/1 var(--serif); color: #A78A4E; }
.founder-name { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; }
.founder-role { margin: 12px 0 28px; font: 600 14px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--olive); }
.founder-statement { font: 400 clamp(22px, 2.4vw, 30px)/1.35 var(--serif); max-width: 34ch; margin-bottom: 24px; }
.founder-more { color: var(--muted); max-width: 62ch; margin: 0; }
.founder-more p { margin: 0 0 1em; }
.founder-more p:last-child { margin-bottom: 0; }
@media (min-width: 900px) {
  .founder { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .portrait-slot { grid-column: 1 / span 4; max-width: none; }
  .founder-body { grid-column: 6 / span 7; }
  .founder-solo .founder-body { grid-column: 1 / span 9; }
}
.leadership { margin-top: 72px; padding-top: 28px; border-top: 1px solid rgba(35, 40, 36, .2); }
.people { list-style: none; display: grid; gap: 32px var(--gap); margin-top: 8px; }
.person { border-top: 1px solid rgba(35, 40, 36, .2); padding-top: 20px; }
.initials { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ivory); font: 400 15px/1 var(--serif); color: var(--olive); margin-bottom: 16px; }
.person-name { font: 400 24px/1.2 var(--serif); }
.person-role { margin: 6px 0 12px; font: 600 13px/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--olive); }
.person-bio { font-size: 16px; color: var(--muted); margin: 0; }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .people { grid-template-columns: repeat(4, 1fr); } }
.prose h2 { margin: 32px 0 10px; }
.prose h2:first-of-type { margin-top: 8px; }

/* Related companies */
.related { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--charcoal); }
.rel { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rel-name { font: 400 26px/1.15 var(--serif); }
.rel-does { margin: 0; }
.rel-relation { margin: 0; color: var(--muted); font-size: 16px; }
.rel-link { margin-top: auto; padding-top: 8px; overflow-wrap: anywhere; }
@media (min-width: 768px) { .related { grid-template-columns: repeat(2, 1fr); column-gap: var(--gap); } }
@media (min-width: 1100px) {
  .related { grid-template-columns: repeat(4, 1fr); }
  .rel { border-bottom: 0; padding-right: 20px; }
  .rel + .rel { border-left: 1px solid var(--rule); padding-left: 20px; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Project facts, credits, contact alternative */
.case-facts { margin-top: 32px; max-width: 760px; }
.car-credit { margin: 6px 0 0; font-size: 13px; color: var(--on-dark-muted); }
.contact-alt { margin-top: 16px; }
.contact-alt a { overflow-wrap: anywhere; }
.footer-base p { overflow-wrap: anywhere; }

/* Closing CTA */
.closing { background: var(--olive); color: var(--ivory); border-top: 0; }
.closing h2 { color: var(--ivory); margin-bottom: 20px; max-width: 18ch; }
.closing .lead { max-width: 46ch; margin-bottom: 32px; }

/* Contact form */
.enquiry { display: grid; gap: 24px; max-width: 640px; }
.field { display: grid; gap: 8px; }
.field label { font: 600 16px/1.4 var(--sans); }
.optional { font-weight: 400; color: var(--muted); }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.5 var(--sans); color: var(--charcoal);
  background: #fff; border: 1px solid #8E8A80; border-radius: 2px; padding: 12px 14px; min-height: 48px;
  transition: border-color .15s var(--ease);
}
.field textarea { resize: vertical; min-height: 180px; }
.field input:hover, .field textarea:hover { border-color: var(--charcoal); }
.field input:disabled, .field textarea:disabled { background: var(--stone-soft); border-color: var(--stone); cursor: not-allowed; }
.field [aria-invalid="true"] { border-color: #A3261B; border-width: 2px; }
.error { color: #A3261B; font-size: 15px; font-weight: 600; margin: 0; }
.error-summary { border: 2px solid #A3261B; padding: 16px 20px; background: #fff; }
.error-summary ul { padding-left: 20px; margin-top: 8px; }
.error-summary a { color: #A3261B; font-weight: 600; }
.privacy-note { font-size: 15px; color: var(--muted); margin: 0; }
.form-status { margin: 0; font-weight: 600; }
.preview-only { display: inline-block; font-weight: 600; background: #F4E2B8; color: #4A3510; padding: 8px 12px; border-radius: 2px; margin-bottom: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--charcoal); color: #E7E2D6; padding: 64px 0 32px; font-size: 16px; }
.site-footer a { color: #F7F4EC; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand p:last-child { max-width: 32ch; margin-top: 12px; color: #C9C4B8; }
.footer-nav { list-style: none; display: grid; gap: 0; }
.footer-nav a { display: inline-flex; min-height: 40px; align-items: center; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-h { margin: 8px 0 4px; font: 600 13px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #C9C4B8; }
.footer-base { border-top: 1px solid #3F463F; margin-top: 48px; padding-top: 24px; font-size: 14px; color: #C9C4B8; }
.footer-base p { margin: 0; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
  .footer-brand { grid-column: 1 / span 5; }
  .site-footer nav { grid-column: 6 / span 2; }
  .footer-related { grid-column: 8 / span 3; }
  .footer-contact { grid-column: 11 / span 2; grid-row: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
