/* ============================================================
   De Dubbele Deur — ddd.gent
   One stylesheet, tokens at the top, no framework.
   ============================================================ */

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

/* ---------- design tokens ---------- */
:root {
  --paper: #f4f1ea;
  --paper-deep: #e9e4d9;
  --ink: #1e2621;
  --ink-soft: #38423a;
  --muted: #565951;
  --rule: #cfc8b8;
  --rule-soft: #ddd7c9;
  --clay: #8f4e33;
  --clay-deep: #7a4229;
  --clay-tint: #f0e2d8;
  --moss: #4c5a45;
  --white: #fffdf9;
  --card: #fffdf9;
  --on-photo: #fffdf9;
  --link-rule: #c9a48e;
  --shadow: 0 18px 30px -20px rgb(30 38 33 / 0.35);
  --ghost-hover: #efebe2;
  --pill-bg: #e7ebe3;
  --map-filter: grayscale(0.35) contrast(0.95);
  color-scheme: light;

  --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.08rem);
  --step-1: clamp(1.13rem, 1.05rem + 0.38vw, 1.32rem);
  --step-2: clamp(1.35rem, 1.18rem + 0.82vw, 1.75rem);
  --step-3: clamp(1.62rem, 1.3rem + 1.55vw, 2.4rem);
  --step-4: clamp(2rem, 1.45rem + 2.7vw, 3.35rem);
  --step-5: clamp(2.4rem, 1.5rem + 4.4vw, 4.4rem);

  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --measure: 62ch;
  --wide: 76rem;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- dark mode ----------
   The palette below appears twice on purpose: once for the OS preference, which
   works without JavaScript, and once for an explicit choice stored by the toggle.
   Keep both blocks in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --paper: #171916;
    --paper-deep: #101210;
    --ink: #e9e6dd;
    --ink-soft: #c9c5b9;
    --muted: #9a9a90;
    --rule: #3a3d36;
    --rule-soft: #2a2d28;
    --clay: #d98b62;
    --clay-deep: #f0a97e;
    --clay-tint: #2a211b;
    --moss: #a8b79b;
    --white: #0e100e;
    --card: #1c1f1b;
    --on-photo: #fffdf9;
    --link-rule: #6b4a38;
    --shadow: 0 18px 30px -20px rgb(0 0 0 / 0.65);
    --ghost-hover: #24261f;
    --pill-bg: #232a20;
    --map-filter: invert(0.92) hue-rotate(180deg) grayscale(0.25) contrast(0.9);
  }
  :root:not([data-theme='light']) .brand__mark { filter: invert(1); }
  :root:not([data-theme='light']) .theme-toggle__sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle__moon { display: none; }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --paper: #171916;
  --paper-deep: #101210;
  --ink: #e9e6dd;
  --ink-soft: #c9c5b9;
  --muted: #9a9a90;
  --rule: #3a3d36;
  --rule-soft: #2a2d28;
  --clay: #d98b62;
  --clay-deep: #f0a97e;
  --clay-tint: #2a211b;
  --moss: #a8b79b;
  --white: #0e100e;
  --card: #1c1f1b;
  --on-photo: #fffdf9;
  --link-rule: #6b4a38;
  --shadow: 0 18px 30px -20px rgb(0 0 0 / 0.65);
  --ghost-hover: #24261f;
  --pill-bg: #232a20;
  --map-filter: invert(0.92) hue-rotate(180deg) grayscale(0.25) contrast(0.9);
}
/* Logo marks are ink-on-transparent PNGs: invert keeps them legible on dark. */
:root[data-theme='dark'] .brand__mark { filter: invert(1); }
:root[data-theme='dark'] .theme-toggle__sun { display: block; }
:root[data-theme='dark'] .theme-toggle__moon { display: none; }

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 350;
  line-height: 1.65;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 1px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100; font-size: var(--step--1);
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

/* ---------- layout ---------- */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--wide));
  margin-inline: auto;
}
.prose { max-width: var(--measure); }
.prose > * + h3 { margin-top: 1.9em; }
.prose > * + h4 { margin-top: 1.6em; }
.section {
  padding-block: clamp(3rem, 8vw, 6.5rem);
  border-top: 1px solid var(--rule-soft);
}
.section--tight { padding-block: clamp(2.25rem, 5vw, 3.5rem); }
.section--flush { border-top: 0; }

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::after {
  content: '';
  flex: 1 1 auto;
  max-width: 4.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}
.display {
  font-size: var(--step-5);
  font-variation-settings: 'SOFT' 30, 'WONK' 1, 'opsz' 90;
  font-weight: 350;
}
.title {
  font-size: var(--step-4);
  font-variation-settings: 'opsz' 60;
}
.subtitle {
  font-size: var(--step-2);
  font-variation-settings: 'opsz' 30;
}
.lede {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 350;
  line-height: 1.55;
  letter-spacing: -0.008em;
  color: var(--ink-soft);
  font-variation-settings: 'opsz' 14;
}
.prose h3 {
  font-size: var(--step-2);
  margin-bottom: 0.5em;
  font-variation-settings: 'opsz' 20;
}
.prose h4 { font-size: var(--step-1); margin-bottom: 0.4em; }
.prose p, .prose li { max-width: var(--measure); }
.prose li { margin-bottom: 0.35em; }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); line-height: 1.55; }
.textlink {
  color: var(--clay);
  text-decoration: none;
  border-bottom: 1px solid var(--link-rule);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.textlink:hover { border-bottom-color: var(--clay); color: var(--clay-deep); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  min-height: 4.4rem;
  padding-block: 0.55rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-right: auto;
  min-width: 0;
}
.brand__mark { width: clamp(1.7rem, 3.4vw, 2.05rem); height: auto; flex: none; }
.brand__text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.brand__name {
  font-family: var(--serif);
  font-size: clamp(0.98rem, 2.3vw, 1.12rem);
  font-variation-settings: 'opsz' 24;
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav { display: flex; align-items: center; gap: clamp(0.85rem, 2.2vw, 1.6rem); }
.nav a {
  font-size: var(--step--1);
  font-weight: 450;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink-soft);
  padding-block: 0.35rem;
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: 0.1rem;
  height: 1px;
  background: var(--clay);
  transition: right 0.28s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current='page']::after { right: 0; }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 500; }
.nav__cta {
  color: var(--white) !important;
  background: var(--ink);
  border-radius: 100px;
  padding: 0.5rem 1.05rem !important;
  transition: background 0.2s var(--ease);
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--clay-deep); }
.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.42rem 0.85rem;
  cursor: pointer;
  align-items: center;
  gap: 0.45rem;
}
.menu-toggle[aria-expanded='true'] { background: var(--paper-deep); }

.theme-toggle {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--ink);
  cursor: pointer;
  padding: 0.42rem;
  display: none;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.theme-toggle:hover { background: var(--ghost-hover); border-color: var(--ink); }
.theme-toggle svg { width: 1.05rem; height: 1.05rem; }
.theme-toggle .theme-toggle__sun { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }
/* Only shown once site.js has actually attached the click handler: a visible
   button that does nothing is worse than no button at all. */
html[data-theme-ready] .theme-toggle { display: inline-flex; }

@media (max-width: 800px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav[data-open='true'] { display: flex; }
  .nav a {
    font-size: 1.02rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav a::after { display: none; }
  .nav a[aria-current='page'] { color: var(--clay); }
  .nav__cta {
    margin-top: 1rem;
    text-align: center;
    border-bottom: 0 !important;
    padding: 0.7rem 1.1rem !important;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
}
.hero__copy > * { animation: rise 0.9s var(--ease) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero .display { margin-bottom: 0.55em; max-width: 13ch; }
.hero .display em {
  font-style: italic;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 100;
  color: var(--clay);
}
.hero__lede { margin-bottom: 1.6rem; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem; align-items: center; }
.hero__actions--stack { flex-direction: column; align-items: flex-start; }
.hero__buttons { display: grid; gap: 0.7rem; }
.hero__buttons .btn { justify-content: center; }
.hero__figure {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 46% 46% 2px 2px / 30% 30% 2px 2px;
  background: var(--paper-deep);
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-block: 1.75rem 3rem; gap: 1.75rem; }
  .hero__figure {
    aspect-ratio: 16 / 10;
    max-height: 52svh;
    border-radius: 40% 40% 2px 2px / 18% 18% 2px 2px;
    order: -1;
  }
  .hero .display { max-width: 16ch; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.015em;
  text-decoration: none;
  padding: 0.78rem 1.35rem;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--clay-deep); }
.btn--ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); background: var(--ghost-hover); }
.btn svg { width: 0.95em; height: 0.95em; }

/* aanmelden: telefoon, WhatsApp en e-mail als duidelijke knoppen */
.reach__name { font-size: var(--step-2); font-variation-settings: 'opsz' 26; margin-bottom: 0.12em; }
.reach__actions {
  display: grid;
  gap: 0.75rem;
  max-width: 26rem;
  margin-top: 1.4rem;
}
.reach__actions .btn {
  font-size: var(--step-0);
  padding: 1rem 1.5rem;
  min-height: 3.25rem;
  overflow-wrap: anywhere;
}
.reach__actions .btn svg { width: 1.1em; height: 1.1em; flex: none; }
.reach__note { margin-top: 1.4rem; max-width: 52ch; }
@media (max-width: 600px) {
  .reach__actions { max-width: none; }
}

/* ---------- intro / statement ---------- */
.statement {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 820px) {
  .statement { grid-template-columns: 1fr; gap: 1rem; }
}

/* team: enkel eyebrow in de masthead, dus geen grote witruimte eronder */
.page-team .masthead { padding-bottom: 0; }
.page-team .masthead + .section--flush { padding-top: 0.4rem; }

/* visie: rustiger ritme op mobiel */
.page-visie .prose p { text-wrap: pretty; }
.page-visie .masthead + .section--flush { padding-top: 0; }
@media (max-width: 820px) {
  .page-visie .section { padding-block: 2.6rem; }
  .page-visie .section--flush { padding-top: 0.6rem; }
  .page-visie .statement { gap: 0.85rem; }
  .page-visie .statement .eyebrow--plain { margin-bottom: 0.15rem; }
  .page-visie .masthead { padding-bottom: 0; }
  .page-visie .masthead + .section--flush { padding-top: 1.1em; }
  .page-visie .band { min-height: 15rem; }
  .page-visie .band blockquote { font-size: var(--step-2); }
  .page-visie .band::after { background: linear-gradient(180deg, rgb(30 38 33 / 0.35) 0%, rgb(30 38 33 / 0.7) 35%, rgb(30 38 33 / 0.85) 100%); }
}

/* ---------- approach cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  list-style: none;
  counter-reset: card;
}
.card {
  border: 1px solid var(--rule-soft);
  background: var(--card);
  background: color-mix(in srgb, var(--card) 55%, transparent);
  padding: clamp(1.3rem, 3vw, 2rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}
.card:hover { border-color: var(--clay); background: var(--clay-tint); transform: translateY(-3px); }
.card__num {
  counter-increment: card;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin-bottom: 0.4rem;
}
.card__num::before { content: '0' counter(card); }
.card h3 { font-size: var(--step-2); margin-bottom: 0.5em; font-variation-settings: 'opsz' 24; }
.card p { font-size: var(--step--1); color: var(--ink-soft); max-width: 34ch; }

/* ---------- gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.6rem, 1.5vw, 1.1rem);
}
.gallery figure { overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery figure:hover img { transform: scale(1.035); }
/* Rij 1: brede foto (8) + staande foto (4). Rij 2: staande foto (4) + brede foto (8).
   De staande foto's bepalen de rijhoogte; de brede vullen die hoogte. */
.gallery .g1 { grid-column: span 8; }
.gallery .g2 { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery .g3 { grid-column: span 4; aspect-ratio: 3 / 4; }
.gallery .g4 { grid-column: span 8; }
.gallery .g--wide { position: relative; }
.gallery .g--wide img { position: absolute; inset: 0; }
@media (max-width: 720px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery .g1, .gallery .g2, .gallery .g3, .gallery .g4 { grid-column: auto; aspect-ratio: 3 / 4; }
  .gallery .g1, .gallery .g4 { aspect-ratio: 3 / 2; }
}

/* ---------- band / quote ---------- */
.band {
  position: relative;
  min-height: clamp(18rem, 46vw, 30rem);
  display: flex;
  align-items: flex-end;
  color: var(--on-photo);
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
.band img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.band::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(30 38 33 / 0.08) 0%, rgb(30 38 33 / 0.72) 100%);
}
.band__inner { padding: clamp(1.4rem, 4vw, 3rem); max-width: 48rem; }
.band blockquote { margin: 0; font-family: var(--serif); font-size: var(--step-3); line-height: 1.22; font-variation-settings: 'opsz' 40; }
.band cite { display: block; margin-top: 0.85rem; font-style: normal; font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }

/* ---------- pull quote (text only) ---------- */
.pullquote { text-align: center; }
.pullquote figure { margin: 0 auto; max-width: 28ch; }
.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
  font-variation-settings: 'opsz' 40;
  color: var(--ink);
  text-wrap: balance;
}
.pullquote figcaption { margin-top: 1.1rem; }
.pullquote cite {
  font-style: normal;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}

/* ---------- team ---------- */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.team--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 44rem; }
.team--single { grid-template-columns: minmax(0, 24rem); }
@media (max-width: 640px) { .team--pair { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; }
.person__photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-deep);
  margin-bottom: 1.4rem;
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92); transition: filter 0.4s var(--ease), transform 0.7s var(--ease); }
.person:hover .person__photo img { filter: saturate(1); transform: scale(1.02); }
.person h2, .person h3 { font-size: var(--step-2); font-variation-settings: 'opsz' 26; margin-bottom: 0.12em; }
.person__role {
  font-size: var(--step--1);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.9rem;
  font-weight: 500;
}
.person__bio p { font-size: var(--step--1); line-height: 1.68; color: var(--ink-soft); max-width: 38ch; }
.person__contact {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: var(--step--1);
}
.person__contact a {
  min-height: 1.5rem;
  padding-block: 0.15rem;
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.person__contact a:hover { color: var(--clay); border-bottom-color: var(--clay); }
.person__contact svg { width: 0.85em; height: 0.85em; opacity: 0.6; flex: none; }

/* ---------- practical cards ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  container-type: inline-size;
}
/* two-column range: let an odd last card fill the row instead of leaving an empty slot */
@container (min-width: 609px) and (max-width: 913.98px) {
  .fact:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.fact {
  background: var(--paper);
  padding: clamp(1.2rem, 3vw, 1.9rem);
}
.fact h2, .fact h3 {
  font-size: var(--step-1);
  font-variation-settings: 'opsz' 18;
  margin-bottom: 0.55em;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.fact p, .fact li { font-size: var(--step--1); color: var(--ink-soft); max-width: 42ch; }
.fact strong { color: var(--ink); font-weight: 500; }
.fact .list { list-style: none; display: grid; gap: 0.55rem; }
.fact .list li {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.6rem;
  align-items: baseline;
}
.fact .list .k {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}

/* ---------- contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.contact__list { list-style: none; display: grid; gap: 1.15rem; }
.contact__list li {
  display: grid;
  grid-template-columns: 6.2rem 1fr;
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--rule-soft);
  align-items: baseline;
}
.contact__list li:first-child { padding-top: 0; border-top: 0; }
.contact__list .k {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}
.contact__list .v { font-family: var(--serif); font-size: var(--step-1); line-height: 1.45; font-variation-settings: 'opsz' 16; }
.contact__list .v a { display: inline-flex; align-items: center; min-height: 1.6rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
.contact__list .v a:hover { border-bottom-color: var(--clay); color: var(--clay-deep); }
.map {
  aspect-ratio: 5 / 4;
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  background: var(--paper-deep);
}
.map iframe { display: block; width: 100%; height: 100%; border: 0; filter: var(--map-filter); }
@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 5.2rem 1fr; }
}

/* ---------- page masthead ---------- */
.masthead {
  padding-block: clamp(2.4rem, 5vw, 4rem) clamp(1.6rem, 3.5vw, 2.6rem);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}
.masthead .title { max-width: 18ch; }
.masthead__lede { max-width: 34ch; }
@media (max-width: 820px) {
  .masthead { grid-template-columns: 1fr; align-items: start; gap: 0.9rem; }
}
.masthead--stacked { grid-template-columns: 1fr; }
.masthead--stacked .title { max-width: 24ch; text-wrap: balance; margin-bottom: 0.45em; }
.masthead--stacked .masthead__lede { max-width: 64ch; margin: 0; text-wrap: pretty; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--paper-deep);
  padding-block: clamp(1.6rem, 4vw, 2.4rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer__bar .brand { margin-right: 0; }
.footer__meta { display: grid; gap: 0.1rem; justify-items: end; text-align: right; }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule-soft);
}
.footer__meta p,
.footer__base p { margin: 0; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.01em; }
.footer__meta a,
.footer__base a { display: inline-flex; align-items: center; min-height: 1.5rem; padding-block: 0.15rem; }
@media (max-width: 760px) {
  .footer__bar { flex-direction: column; align-items: flex-start; }
  .footer__meta { justify-items: start; text-align: left; }
}

/* ---------- misc ---------- */
.note {
  font-size: var(--step--1);
  color: var(--muted);
  border-left: 2px solid var(--clay);
  padding-left: 1rem;
  max-width: var(--measure);
  margin: 1.6rem 0 0;
}
.divider {
  height: 1px;
  background: var(--rule-soft);
  border: 0;
  margin: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--moss);
  background: var(--pill-bg);
  border-radius: 100px;
  padding: 0.32rem 0.7rem;
}
.pill::before {
  content: '';
  width: 0.4rem; height: 0.4rem;
  border-radius: 50%;
  background: var(--moss);
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- spacing helpers (replace ad-hoc inline styles) ---------- */
.eyebrow--plain { margin: 0; }
.title--16ch { max-width: 16ch; }
.title--18ch { max-width: 18ch; }
.title--22ch { max-width: 22ch; }
.title--14ch { max-width: 14ch; }
.title--12ch { max-width: 12ch; }
.title--sm { font-size: var(--step-3); font-variation-settings: 'opsz' 48; }
.subtitle--tight { margin-bottom: 0.6em; }
.subtitle--block { margin-top: 2.2em; margin-bottom: 0.6em; }
.stack-1 { margin-top: 1rem; }
.stack-12 { margin-top: 1.2rem; }
.stack-14 { margin-top: 1.4rem; }
.stack-15 { margin-top: 1.5rem; }
.lede--tight { margin-bottom: 1.4rem; }
.masthead--flush { padding-top: 0; }
.footer__base--bare { border-top: 0; padding-top: 0; }

/* print */
@media print {
  /* Selector list keeps specificity at or above the dark blocks, which sit earlier. */
  :root,
  :root[data-theme='dark'],
  :root:not([data-theme='light']) {
    color-scheme: light;
    --paper: #fff;
    --paper-deep: #fff;
    --ink: #000;
    --ink-soft: #000;
    --muted: #333;
    --rule: #999;
    --rule-soft: #ccc;
    --clay: #000;
    --clay-deep: #000;
    --clay-tint: #fff;
    --moss: #000;
    --white: #fff;
    --card: #fff;
    --on-photo: #fff;
    --link-rule: #999;
    --ghost-hover: #fff;
    --pill-bg: #fff;
  }
  .site-header, .site-footer, .hero__figure, .map, .band { display: none; }
  /* Header and footer are hidden in print, so their logo inversion never applies.
     These selectors match the dark blocks' specificity so nothing inverts. */
  :root[data-theme='dark'] .brand__mark,
  :root:not([data-theme='light']) .brand__mark { filter: none; }
  html[data-theme-ready] .theme-toggle { display: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
