/* Self-hosted fonts (SIL Open Font Licence, see /assets/fonts) */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/dm-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Libre Caslon Display'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/libre-caslon-display-latin-400-normal.woff2') format('woff2'); }

/* Battram Associates — design system
   Option 1: Clean & Minimal
   ------------------------------------------------------------ */

:root {
  --ink: #20201e;
  --paper: #f5f3ee;
  --paper-light: #faf9f6;
  --paper-warm: #fbfaf7;
  --sage: #d9dbd1;
  --sage-light: #e6e7df;
  --moss: #4b5346;
  --line: #d6d2ca;
  --muted: #67635c;
  --body: #55544e;
  --serif: 'Libre Caslon Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, Helvetica, sans-serif;
  --gutter: 6vw;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.6; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { left: 8px; }

/* Header -------------------------------------------------------- */
.site-header { height: 118px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; background: var(--paper-light); position: relative; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink); }
.brand .mono { height: 64px; width: auto; }
.brand .wordmark { display: flex; flex-direction: column; justify-content: center; padding-left: 18px; border-left: 1px solid #8e8b84; align-self: stretch; }
.brand .name { font: 21px/1.08 var(--serif); letter-spacing: 2.4px; text-transform: uppercase; color: #000099; }
.brand .sub { font: 500 8.5px/1 var(--sans); letter-spacing: 2.6px; text-transform: uppercase; color: #5a5852; margin-top: 7px; }
.brand .tag { font: 500 8px/1 var(--sans); letter-spacing: 2.2px; text-transform: uppercase; color: #5a5852; margin-top: 8px; white-space: nowrap; }
.site-footer .brand .mono { height: 48px; }
.site-footer .brand .name { font-size: 16px; letter-spacing: 2px; }
.site-footer .brand .tag { font-size: 7px; letter-spacing: 1.8px; }
.site-footer .brand .wordmark { padding-left: 14px; }
.site-footer .brand { gap: 14px; }
.site-nav { display: flex; gap: 34px; }
.site-nav a, .menu { font: 500 12px var(--sans); color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu { display: none; border: 0; background: none; cursor: pointer; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }

/* Shared type ---------------------------------------------------- */
.eyebrow { display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: 2.2px; font-weight: 600; text-transform: uppercase; margin-bottom: 26px; color: #5c5952; }
.eyebrow.rule::after { content: ""; display: block; width: 48px; border-top: 1px solid currentColor; opacity: .6; }
.eyebrow.light { color: #e4e1d8; }
.eyebrow.ink { color: var(--ink); }
.text-link { display: inline-flex; gap: 14px; align-items: center; margin-top: 18px; text-transform: uppercase; letter-spacing: 1.6px; font-size: 10px; font-weight: 600; text-decoration: none; color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.text-link span { transition: transform .2s; }
.text-link:hover span { transform: translateX(4px); }
.text-link.light { color: #fff; }
.button { display: inline-flex; gap: 12px; align-items: center; color: var(--paper); background: var(--moss); padding: 16px 24px; text-decoration: none; margin: 12px 0 20px; font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; border: 1px solid var(--moss); cursor: pointer; font-family: var(--sans); }
.button:hover { background: var(--ink); border-color: var(--ink); }
.num { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 14px; }
.num i { display: block; width: 48px; border-top: 1px solid #aaa; }
.photo-placeholder { background: var(--sage-light); position: relative; }
.photo-placeholder::after { content: "Photo to follow"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: #9a978f; }
.photo-placeholder.quiet::after { content: none; }

/* Heroes --------------------------------------------------------- */
.hero { height: 690px; position: relative; color: #fff; overflow: hidden; background: #3a3a37; }
.hero > img { width: 100%; height: 100%; object-fit: cover; }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.67), rgba(0,0,0,.08)); }
.hero-copy { position: absolute; left: var(--gutter); top: 50%; transform: translateY(-50%); max-width: 760px; padding-right: var(--gutter); }
.hero .eyebrow { color: #fff; }
.hero h1 { font-size: 58px; line-height: 1.04; margin: 0 0 28px; }
.hero p { font-size: 15px; line-height: 1.6; max-width: 560px; }
.hero.inner { height: 640px; }
.hero.inner h1 { font-size: 64px; margin-bottom: 22px; }
.hero.inner h1 + .sub { margin-top: -18px; }
.hero.inner .sub { font-size: 36px; line-height: 1.1; margin: 0 0 26px; font-family: var(--serif); }
.hero.inner p { font-size: 16px; max-width: 520px; }

/* Overview (text + image) ---------------------------------------- */
.overview { padding: 64px var(--gutter) 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.overview h2 { font-size: 44px; line-height: 1.08; margin-bottom: 24px; }
.overview p { max-width: 560px; line-height: 1.75; color: var(--body); font-size: 16px; }
.overview img, .overview .photo-placeholder { width: 100%; height: 380px; object-fit: cover; }
.overview.compact img, .overview.compact .photo-placeholder { height: 300px; }
.overview .pair { display: grid; grid-template-columns: 3fr 2fr; gap: 14px; }
.overview .pair img, .overview .pair .photo-placeholder { height: 100%; min-height: 200px; }
.overview .stack { display: grid; gap: 14px; }
.overview .stack img, .overview .stack .photo-placeholder { height: 203px; }
.overview .trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.overview .trio img, .overview .trio .photo-placeholder { height: 240px; }

/* Service grid --------------------------------------------------- */
.services { padding: 8px var(--gutter) 80px; }
.services .eyebrow { margin-bottom: 36px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 0; padding: 0; }
.service-grid li { padding: 34px 32px 34px 0; border-top: 1px solid var(--line); }
.service-grid li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.service-grid .ico { width: 30px; height: 30px; stroke: var(--ink); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.service-grid .n { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 14px; display: block; }
.service-grid h3 { font-size: 24px; margin-bottom: 8px; }
.service-grid p { font-size: 13px; line-height: 1.6; color: var(--body); margin: 0; }

/* Approach band -------------------------------------------------- */
.approach { display: grid; grid-template-columns: 1fr 1.15fr; background: var(--sage); }
.approach > div { padding: 90px var(--gutter) 90px; }
.approach h2 { font-size: 48px; line-height: 1.05; margin-bottom: 24px; }
.approach p { max-width: 480px; line-height: 1.75; color: #45443f; font-size: 16px; }
.approach img, .approach .photo-placeholder { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }

/* Projects ------------------------------------------------------- */
.projects { padding: 65px 3.5vw 75px; background: var(--paper-warm); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin: 0 0 25px; }
.section-title .eyebrow { margin: 0; }
.section-title a { font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: inherit; text-decoration: none; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.project-grid article { position: relative; }
.project-grid img, .project-grid .photo-placeholder { width: 100%; height: auto; aspect-ratio: 1.35; object-fit: cover; display: block; }
.project-grid h3 { font-size: 20px; margin: 14px 0 3px; }
.project-grid p { font-size: 11px; color: var(--muted); margin: 0; }
.project-grid a.card-link { text-decoration: none; color: var(--ink); font-size: 20px; display: inline-block; margin-top: 8px; }
.project-grid a.card-link::after { content: ""; position: absolute; inset: 0; }
.project-grid .bio { font-size: 13px !important; line-height: 1.6 !important; color: var(--body) !important; margin-top: 10px !important; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding: 30px 3.5vw 10px; }
.filters button { font: 14px var(--serif); background: none; border: 1px solid transparent; padding: 8px 14px; cursor: pointer; color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); }
.project-grid article[hidden] { display: none; }

/* Closing band (headline · sketch · copy) ------------------------ */
.closing { margin: 0 3.5vw 70px; background: var(--sage); padding: 50px 0 50px 4vw; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 4vw; align-items: center; overflow: hidden; }
.closing h2 { font-size: 36px; line-height: 1.12; }
.closing .sketch { opacity: .8; width: 100%; max-width: 460px; height: auto; justify-self: end; align-self: end; margin-bottom: -50px; display: block; }
.closing p { font-size: 13px; line-height: 1.7; color: #45443f; max-width: 320px; }
.closing .text-link { margin-top: 6px; }

/* Let's talk band ------------------------------------------------ */
.talk { display: grid; grid-template-columns: 1fr 1fr; background: var(--moss); color: var(--paper); }
.talk > div:first-child { padding: 56px var(--gutter); }
.talk .eyebrow { color: #d9dccf; }
.talk h2 { font-size: 40px; line-height: 1.05; margin: 0 0 18px; }
.talk p { line-height: 1.7; color: #e3e5db; max-width: 460px; font-size: 16px; }
.talk .text-link { color: #fff; }
.talk { min-height: 0; }
.talk img, .talk .photo-placeholder { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.talk .photo-placeholder { background: #5a6354; }
.talk .photo-placeholder::after { color: #c9cdbf; }

/* Homepage service columns -------------------------------------- */
.intro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 6vw; grid-template-rows: auto auto auto auto auto auto; padding: 54px var(--gutter) 10px; }
.intro-grid article { padding: 0 0 60px; position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 6; align-content: start; }
.intro-grid article + article::before { content: ""; position: absolute; left: -3vw; top: 0; bottom: 0; border-left: 1px solid var(--line); }
.intro-grid h2 { font-size: 34px; margin: 15px 0 0; }
.intro-grid h3 { font-size: 22px; line-height: 1.12; margin: 2px 0 18px; }
.intro-grid ul { list-style: none; margin: 0 0 6px; padding: 0; font-size: 13px; line-height: 1.75; color: #59564f; }
.intro-grid .text-link { align-self: end; justify-self: start; }
.intro-grid img, .intro-grid .photo-placeholder { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 30px; }

/* Team ----------------------------------------------------------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto auto auto auto auto; gap: 0 30px; margin-top: 50px; }
.team article { display: grid; grid-template-rows: subgrid; grid-row: span 6; align-content: start; }
.team img, .team .photo-placeholder { width: 100%; aspect-ratio: 1.2; object-fit: cover; }
.team h3 { font-size: 22px; margin: 16px 0 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; align-self: start; }
.team h3 .nm { display: block; }
.team .role { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; color: var(--muted); margin: 6px 0 12px; }
.team .bio, .team .more p { font: 400 13px/1.65 var(--sans); color: var(--body); margin: 0 0 10px; }
.team .quals { display: block; font-size: 15px; font-family: var(--serif); color: var(--muted); margin-top: 2px; }
.team .more { margin-top: 6px; align-self: start; }
.team .more summary { list-style: none; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; text-transform: uppercase; letter-spacing: 1.6px; font-size: 10px; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid currentColor; }
.team .more summary::-webkit-details-marker { display: none; }
.team .more[open] > summary { display: none; }
.team .more .less { display: inline-flex; gap: 10px; align-items: center; text-transform: uppercase; letter-spacing: 1.6px; font-size: 10px; font-weight: 600; padding-bottom: 4px; border-bottom: 1px solid currentColor; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; color: var(--ink); font-family: var(--sans); margin-top: 4px; }

/* Values --------------------------------------------------------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; list-style: none; padding: 0; }
.values li { padding: 10px 28px 10px 0; }
.values li + li { border-left: 1px solid var(--line); padding-left: 28px; }
.values .n { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; color: var(--muted); display: block; margin-bottom: 10px; }
.values h3 { font-size: 22px; margin-bottom: 6px; }
.values p { font-size: 13px; color: var(--body); margin: 0; line-height: 1.6; }

/* Accreditation logos -------------------------------------------- */
.accred-band { padding: 44px var(--gutter); border-top: 1px solid var(--line); }
.accreditations { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 36px; align-items: center; }
.accreditations li { display: grid; place-items: center; height: 70px; }
.accreditations img { height: var(--h, 48px); width: auto; max-width: 100%; object-fit: contain; }

/* Simple page intro (privacy, 404) ------------------------------- */
.page-intro { padding: 90px var(--gutter) 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: 52px; line-height: 1.05; }
.page-intro p { max-width: 520px; line-height: 1.75; color: var(--body); font-size: 16px; margin: 0; }
.page-intro .eyebrow { margin-bottom: 18px; }

/* Generic sections ----------------------------------------------- */
.section { padding: 80px var(--gutter); }
.section.alt { background: var(--paper-warm); }
.section.sage { background: var(--sage); }
.two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 8vw; }
.two-col h2 { font-size: 40px; line-height: 1.08; }
.two-col p { max-width: 680px; line-height: 1.75; color: var(--body); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 5vw; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 18px; }
.steps li::before { content: "0" counter(step); display: block; font-size: 12px; font-weight: 600; margin-bottom: 14px; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { font-size: 13px; color: var(--body); margin: 0; }
.prose { max-width: 720px; }
.prose p { line-height: 1.75; color: var(--body); }
.prose h2 { font-size: 30px; margin: 40px 0 12px; }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center; }
.lead h2 { font-size: 40px; line-height: 1.08; margin-bottom: 18px; }
.lead .role { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.lead p { line-height: 1.75; color: var(--body); max-width: 560px; }
.lead img, .lead .photo-placeholder { width: 100%; aspect-ratio: .9; object-fit: cover; max-width: 480px; }

/* Contact page --------------------------------------------------- */
.contact-page { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; padding: 80px var(--gutter); }
.contact-page > div:first-child { padding-right: 6vw; border-right: 1px solid var(--line); }
.contact-page > div:last-child { padding-left: 6vw; }
.detail { display: grid; grid-template-columns: 28px 1fr; gap: 16px; margin-bottom: 26px; align-items: start; }
.detail svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.detail address, .detail p { font-style: normal; line-height: 1.7; color: var(--body); margin: 0; font-size: 16px; }
.detail a { text-decoration: none; }
.hours { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 10px; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 600; }
label .req { color: #a0463a; }
input, textarea, select { font: 15px var(--sans); color: var(--ink); background: #ebe9e2; border: 1px solid transparent; padding: 14px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; background: var(--paper-light); }
textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 12px; color: var(--muted); }
.form-status { padding: 14px 16px; font-size: 14px; line-height: 1.5; border-left: 3px solid var(--moss); background: #e9ebe3; color: var(--ink); }
.form-status.error { border-left-color: #a0463a; background: #f3e7e4; }
.button[disabled] { opacity: .6; cursor: wait; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #a0463a; }
.locations { display: grid; grid-template-columns: 1fr 1fr; background: var(--sage); }
.locations .loc { display: grid; grid-template-columns: 1fr 1fr; }
.locations .loc + .loc { border-left: 1px solid rgba(0,0,0,.08); }
.locations .loc > div:first-child { padding: 60px 3vw 60px var(--gutter); }
.locations .loc + .loc > div:first-child { padding-left: 3vw; }
.locations h2 { font-size: 34px; margin-bottom: 14px; }
.locations p { font-size: 14px; line-height: 1.7; color: #45443f; }
.locations .map { background: var(--sage-light); display: grid; place-items: center; min-height: 260px; padding: 24px; }
.locations .map img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; }
.office-sketch { margin-top: 34px; max-width: 420px; width: 100%; }

/* Footer --------------------------------------------------------- */
.site-footer { padding: 55px var(--gutter); display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 40px 5vw; align-items: start; border-top: 1px solid var(--line); }
.site-footer p { font-size: 11px; color: var(--muted); margin: 0 0 4px; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-right { text-align: right; }
.foot-right nav { display: flex; flex-wrap: nowrap; gap: 8px 14px; justify-content: flex-end; margin-bottom: 14px; font-size: 11px; white-space: nowrap; }

/* Responsive ----------------------------------------------------- */
@media (max-width: 1100px) {
  .service-grid, .values { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; gap: 40px 30px; }
  .team article { grid-template-rows: none; grid-row: auto; }
  .accreditations { gap: 20px 32px; }
  .accreditations img { height: calc(var(--h, 48px) * .8); }
  .service-grid li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .service-grid li:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
  .project-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .values li + li { border-left: 0; padding-left: 0; }
  .values li:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 28px; }
  .closing { grid-template-columns: 1fr 1fr; padding-right: 4vw; }
  .closing .sketch { display: none; }
  .site-footer { grid-template-columns: 1fr; }
  .foot-right { text-align: left; }
  .foot-right nav { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 850px) {
  .site-header { height: 78px; }
  .brand { gap: 10px; min-width: 0; flex: 1 1 auto; }
  .brand .mono { height: 40px; }
  .brand .wordmark { padding-left: 10px; min-width: 0; }
  .brand .name { font-size: 14px; letter-spacing: 1.4px; }
  .brand .tag, .brand .sub { font-size: 6px; letter-spacing: 1px; margin-top: 5px; }
  .menu { flex: none; margin-left: 12px; }
  .site-nav { display: none; position: absolute; z-index: 20; top: 78px; left: 0; right: 0; background: var(--paper-light); padding: 25px var(--gutter) 30px; flex-direction: column; gap: 18px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .menu { display: block; }
  .hero, .hero.inner { height: 620px; }
  .hero h1, .hero.inner h1 { font-size: 42px; }
  .hero.inner .sub { font-size: 26px; }
  .page-intro, .overview, .approach, .talk, .intro-grid, .project-grid, .project-grid.cols-4, .two-col, .lead, .contact-page, .locations, .site-footer, .closing { grid-template-columns: 1fr; }
  .overview .trio { grid-template-columns: 1fr; }
  .overview .trio img, .overview .trio .photo-placeholder, .overview img, .overview .photo-placeholder { height: 260px; }
  .approach img, .approach .photo-placeholder, .talk img, .talk .photo-placeholder { min-height: 300px; }
  .approach > div, .talk > div:first-child { padding: 60px var(--gutter); }
  .approach h2, .talk h2, .overview h2, .two-col h2, .lead h2, .page-intro h1 { font-size: 34px; }
  .intro-grid article { padding-right: 0; }
  .intro-grid article + article::before { display: none; }
  .intro-grid article + article { border-top: 1px solid var(--line); padding: 45px 0 60px; }
  .service-grid, .values, .steps { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .intro-grid { grid-template-rows: none; }
  .intro-grid article { grid-template-rows: none; grid-row: auto; }
  .service-grid li { padding-left: 0 !important; border-left: 0 !important; padding-right: 0; }
  .values li { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); padding-top: 20px; }
  .project-grid { gap: 40px; }
  .section { padding: 60px var(--gutter); }
  .closing { margin: 0 0 50px; padding: 50px var(--gutter); }
  .contact-page > div:first-child { padding-right: 0; border-right: 0; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
  .contact-page > div:last-child { padding-left: 0; padding-top: 50px; }
  .locations .loc { grid-template-columns: 1fr; }
  .locations .loc + .loc { border-left: 0; border-top: 1px solid rgba(0,0,0,.08); }
  .locations .loc > div:first-child, .locations .loc + .loc > div:first-child { padding: 50px var(--gutter) 30px; }
  .foot-right { text-align: left; }
  .foot-right nav { justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .text-link span { transition: none; }
}
.service-grid p + p { margin-top: .75em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero :focus-visible, .site-footer.dark :focus-visible { outline-color: #fff; }

/* Project photo gallery (cards with more than one photo) */
.gallery { position: relative; }
.gallery .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 1.35; }
.gallery .track::-webkit-scrollbar { display: none; }
.gallery .track img { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: auto; height: 100%; }
.gallery button { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(245,243,238,.9); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; }
.gallery .g-prev { left: 10px; } .gallery .g-next { right: 10px; }
.gallery button[disabled] { opacity: 0; pointer-events: none; }
.gallery .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.gallery .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(245,243,238,.6); }
.gallery .dots i.on { background: #fff; }
.filter-empty { font-size: 15px; color: var(--body); padding: 30px 0 10px; margin: 0; }
.service-grid li.sketch-cell { display: grid; place-items: center; }
.service-grid li.sketch-cell img { width: 100%; max-width: 440px; height: auto; }

/* Design Studio: behind the design (large landscape image above three smaller ones) */
.behind { display: grid; grid-template-columns: minmax(260px, .8fr) 2.2fr; gap: 48px; padding: 70px var(--gutter); align-items: start; }
.behind-copy h2 { font-size: 40px; line-height: 1.1; margin-bottom: 22px; }
.behind-copy p { line-height: 1.75; color: var(--body); max-width: 340px; }
.behind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 22px; }
.behind-grid figure { margin: 0; min-width: 0; }
.behind-grid figure.big { grid-column: 1 / -1; }
.behind-grid img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.behind-grid figure.big img { aspect-ratio: 2.2; }
.behind-grid .gallery .track { aspect-ratio: 16 / 9; height: auto; }
.behind-grid figure.big .gallery .track { aspect-ratio: 2.2; }
.behind-grid .gallery .track img { aspect-ratio: auto; height: 100%; }
.behind-grid h3 { font-size: 18px; margin: 10px 0 2px; }
.behind-grid figure.big h3 { font-size: 22px; }
.behind-grid p { font-size: 11px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) {
  .behind { grid-template-columns: 1fr; }
  .behind-copy p { max-width: 560px; }
}
@media (max-width: 640px) {
  .behind-grid { grid-template-columns: 1fr; }
  .behind-grid figure.big img, .behind-grid figure.big .gallery .track { aspect-ratio: 1.5; }
  .behind-copy h2 { font-size: 32px; }
}
.behind-grid .moods .track img { object-fit: contain; background: #ece9e1; }

/* Project slideshow */
#project-list article.has-photos { cursor: pointer; }

#project-list article.has-photos:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.view-photos { display: inline-block; margin: 12px 0 0; padding: 0 0 3px; background: none; border: 0; border-bottom: 1px solid currentColor; font: 600 10px/1.4 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.view-photos + h3 { margin-top: 8px; }
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 20, 18, .94); display: grid; grid-template-rows: 1fr auto; }
.lightbox[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; padding: 56px 72px 8px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb-bar { display: flex; justify-content: center; gap: 18px; padding: 14px 20px 22px; color: #e9e6de; font: 500 12px/1 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; }
.lb-title { font: 20px/1 var(--serif); letter-spacing: .5px; text-transform: none; }
.lb-count { align-self: center; color: #b9b5ab; }
.lightbox button { position: absolute; background: rgba(245,243,238,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; display: grid; place-items: center; padding: 0 0 4px; }
.lightbox button:hover { background: rgba(245,243,238,.26); }
.lightbox button[hidden] { display: none; }
.lightbox :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { top: 14px; right: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-stage { padding: 60px 8px 4px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-bar { padding-bottom: 70px; }
}

/* Design Studio overview: four staggered portrait details */
.overview .detail-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: start; padding-bottom: 48px; }
.overview .detail-strip figure { margin: 0; overflow: hidden; }
.overview .detail-strip figure:nth-child(even) { transform: translateY(48px); }
.overview .detail-strip img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; display: block; transition: transform .6s ease; }
.overview .detail-strip figure:hover img { transform: scale(1.04); }
@media (max-width: 1000px) {
  .overview .detail-strip img { height: auto; }
}
@media (max-width: 640px) {
  .overview .detail-strip { grid-template-columns: repeat(2, 1fr); gap: 10px; padding-bottom: 32px; }
  .overview .detail-strip figure:nth-child(even) { transform: translateY(32px); }
  .overview .detail-strip img { height: auto !important; }
}
@media (prefers-reduced-motion: reduce) { .overview .detail-strip img { transition: none; } }
@media (min-width: 1001px) { .overview:has(.detail-strip) { grid-template-columns: .85fr 1.25fr; gap: 5vw; } .overview .detail-strip { gap: 18px; } }
.card-cycle > img { width: 100%; aspect-ratio: 1.35; object-fit: cover; display: block; }
.card-cycle .cc { font: 600 10px/1 var(--sans); letter-spacing: 1px; color: #fff; background: rgba(20,20,18,.55); padding: 4px 8px; border-radius: 10px; }
.overview img.square { height: auto; aspect-ratio: 1 / 1; max-width: 520px; justify-self: center; object-position: 50% 45%; }
img.history-sketch { width: 100%; height: auto !important; object-fit: contain !important; opacity: .85; align-self: end; }

/* Hero that shows the whole photo: sharp image on the right, soft blurred copy fills the rest */
.hero.hero-fit::before { content: ""; position: absolute; inset: -40px; background: var(--hero-bg) center / cover no-repeat; filter: blur(28px) brightness(.8); transform: scale(1.1); }
.hero.hero-fit > img { position: absolute; right: 0; top: 0; width: auto; max-width: 72%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 22%); mask-image: linear-gradient(to right, transparent 0, #000 22%); }
@media (max-width: 760px) { .hero.hero-fit > img { max-width: none; width: 100%; -webkit-mask-image: none; mask-image: none; } }
.overview img.natural { height: auto !important; object-fit: contain; }

/* Closing band v2: centred text over a hand-drawn landscape */
section.closing { position: relative; display: block; overflow: hidden; text-align: center; padding: 64px var(--gutter) 150px; margin: 0 3.5vw 70px; background: var(--sage); }
section.closing .closing-copy { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
section.closing h2 { font-size: 40px; line-height: 1.12; margin-bottom: 20px; }
section.closing p { max-width: 560px; margin: 0 auto 18px; font-size: 14px; line-height: 1.75; color: #45443f; }
section.closing .text-link { display: inline-flex; margin: 10px auto 0; }
section.closing .sk-left, section.closing .sk-right, section.closing .sk-hills { position: absolute; bottom: 0; pointer-events: none; opacity: .85; display: block; margin: 0; max-width: none; }
section.closing .sk-left { left: 0; width: 26%; height: auto; }
section.closing .sk-right { right: 0; width: 30%; height: auto; }
section.closing .sk-hills { left: 18%; width: 60%; height: 46px; fill: none; stroke: #20201e; stroke-width: 1.1; opacity: .35; vector-effect: non-scaling-stroke; }
section.closing .sk-hills path { vector-effect: non-scaling-stroke; }
@media (max-width: 1000px) { section.closing { padding-bottom: 120px; } section.closing .sk-left { width: 34%; } section.closing .sk-right { width: 40%; } section.closing .sk-hills { display: none; } }
@media (max-width: 640px) { section.closing { margin: 0 0 50px; padding: 50px var(--gutter) 110px; } section.closing h2 { font-size: 30px; } section.closing .sk-left { width: 45%; opacity: .6; } section.closing .sk-right { width: 62%; } }

/* About: press */
.press { background: var(--paper-warm); padding: 64px var(--gutter); display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 6vw; align-items: center; }
.press figure { margin: 0; }
.press img { width: 100%; height: auto; display: block; box-shadow: 0 12px 30px rgba(32,32,30,.12); transform: rotate(-1.5deg); }
.press h2 { font-size: 40px; line-height: 1.1; margin-bottom: 20px; }
.press p { max-width: 560px; line-height: 1.75; color: var(--body); font-size: 16px; }
@media (max-width: 760px) { .press { grid-template-columns: 1fr; } .press figure { max-width: 260px; } .press h2 { font-size: 32px; } }
/* Closing band: shorter */
section.closing { padding: 44px var(--gutter) 64px; }
section.closing h2 { font-size: 32px; margin-bottom: 12px; }
section.closing p { margin-bottom: 8px; }
section.closing .text-link { margin-top: 4px; }
section.closing .sk-left { width: 19%; }
section.closing .sk-right { width: 22%; }
section.closing .sk-hills { left: 20%; width: 56%; height: 30px; }
@media (max-width: 1000px) { section.closing { padding-bottom: 90px; } section.closing .sk-left { width: 28%; } section.closing .sk-right { width: 32%; } }
@media (max-width: 640px) { section.closing { padding: 40px var(--gutter) 90px; } section.closing h2 { font-size: 27px; } section.closing .sk-left { width: 40%; } section.closing .sk-right { width: 52%; } }
.section .press { background: none; padding: 48px 0 0; margin-top: 48px; border-top: 1px solid var(--line); }
.hero.hero-home { background: #111110; }
.hero.hero-home > img { opacity: .4; }
.hero.hero-home .shade { background: none; }
.hero.hero-home.hero-fit::before { filter: blur(28px) brightness(.4); }

/* Shorter heroes */
.hero { height: 580px; }
.hero.inner { height: 540px; }
.hero.hero-fit.hero-wide > img { max-width: 84%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%); mask-image: linear-gradient(to right, transparent 0, #000 16%); }
@media (max-width: 760px) { .hero, .hero.inner { height: 520px; } }
/* Inner page heroes: photo fills ~62% of the width, short fade */
.hero.inner.hero-fit > img, .hero.inner.hero-fit.hero-wide > img { width: 62%; max-width: none; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 14%); mask-image: linear-gradient(to right, transparent 0, #000 14%); }
@media (max-width: 760px) { .hero.inner.hero-fit > img, .hero.inner.hero-fit.hero-wide > img { width: 100%; -webkit-mask-image: none; mask-image: none; } }
/* Press: second photo (The Witterings) */
.press { grid-template-columns: minmax(0, 300px) minmax(0, 1fr) minmax(0, 400px); gap: 4vw; }
.press .press-tv img { transform: rotate(1.5deg); }
.press figcaption { margin-top: 14px; font-size: 13px; color: var(--body); text-align: center; }
@media (max-width: 1000px) { .press { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); } .press .press-tv { grid-column: 1 / -1; max-width: 420px; } }
@media (max-width: 760px) { .press { grid-template-columns: 1fr; } .press .press-tv { max-width: 100%; } }
/* Before / after compare slider (slideshow) */
.ba { position: relative; width: min(100%, calc((100vh - 130px) * 1.5)); aspect-ratio: 3 / 2; box-shadow: 0 10px 40px rgba(0,0,0,.4); --p: 50%; user-select: none; touch-action: pan-y; }
.ba[hidden], .lb-stage > img[hidden] { display: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; max-height: none; box-shadow: none; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.ba-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ba-line i::before, .ba-line i::after { content: ""; position: absolute; top: 50%; margin-top: -6px; border: 6px solid transparent; }
.ba-line i::before { left: 6px; border-right-color: #20201e; }
.ba-line i::after { right: 6px; border-left-color: #20201e; }
.ba-tag { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--serif, Georgia, serif); font-size: clamp(22px, 4vw, 52px); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.82); text-shadow: 0 2px 14px rgba(0,0,0,.5); pointer-events: none; }
.ba-tag-b { left: 6%; }
.ba-tag-a { right: 6%; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba:has(input:focus-visible) .ba-line i { outline: 2px solid #fff; outline-offset: 3px; }
.ba-clip-a { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); pointer-events: none; }
/* Press: keep the three parts together on wide screens */
.press { grid-template-columns: minmax(0, 260px) minmax(0, 520px) minmax(0, 360px); justify-content: center; gap: 48px; }
.section .press { max-width: 1240px; margin-left: auto; margin-right: auto; }
@media (max-width: 1000px) { .press { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 36px; } }
@media (max-width: 760px) { .press { grid-template-columns: 1fr; } }
/* Ashridge film: video as the card cover and in the slideshow */
.card-cycle > video { width: 100%; aspect-ratio: 1.35; object-fit: cover; display: block; background: #20201e; }
.card-cycle > video[hidden], .card-cycle > img[hidden], .lb-video[hidden] { display: none; }
.lb-video { max-width: 100%; max-height: calc(100vh - 130px); width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #000; }
.gallery .g-prev[hidden], .gallery .g-next[hidden] { display: none; }
/* Before / after on the project card */
.card-cycle > .ba-card { width: 100%; aspect-ratio: 1.35; box-shadow: none; cursor: ew-resize; touch-action: auto; }
.card-cycle > .ba-card[hidden] { display: none; }
.ba-card .ba-tag { font-size: 15px; letter-spacing: .14em; }
.ba-card .ba-line i { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.ba-card .ba-line i::before { left: 3px; } .ba-card .ba-line i::after { right: 3px; }
.ba-card .ba-line i::before, .ba-card .ba-line i::after { border-width: 5px; margin-top: -5px; }
/* Big screens: inner heroes grow a little taller and the photo stops widening, so it is never cropped to a thin strip */
@media (min-width: 1441px) {
  .hero.inner { --hh: clamp(540px, 32vw, 680px); height: var(--hh); }
  .hero.inner.hero-fit > img, .hero.inner.hero-fit.hero-wide > img { width: min(62%, calc(var(--hh) * 1.85)); }
}
/* Home hero: photo fills most of the width, short fade, little blur showing */
.hero.hero-home.hero-fit > img { width: min(100%, 1340px); max-width: none; height: 100%; object-fit: cover; object-position: 50% 60%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%); mask-image: linear-gradient(to right, transparent 0, #000 12%); }
@media (max-width: 760px) { .hero.hero-home.hero-fit > img { width: 100%; -webkit-mask-image: none; mask-image: none; } }
/* Stop photos going blue (selected) when clicked or double-clicked */
#project-list article, #project-list img, #project-list video, .gallery, .lightbox, .lightbox img { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
#project-list img, .lightbox img, .ba img { -webkit-user-drag: none; }
#project-list article .bio, #project-list article h3, #project-list article p { -webkit-user-select: text; user-select: text; }
.team img { object-position: 50% 22%; }
.team img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; height: auto; }
/* Design Studio: zoomable mood boards and interior concepts */
.zoomable .track img { cursor: zoom-in; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.zoom-box .lb-stage img { background: #ece9e1; }
/* Contact: second office */
.detail .also-at { margin-top: 0; font-size: 16px; line-height: 1.7; font-style: italic; color: var(--body); }
.detail .also-at a { color: inherit; font: inherit; text-decoration: none; }
.detail .also-at a:hover { text-decoration: underline; text-underline-offset: 3px; }
.map-address { font-style: normal; line-height: 1.7; color: var(--body); margin-top: 14px; }
#breamore { scroll-margin-top: 100px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
