/* ==========================================================================
   Futrzak — Żłobek Niepubliczny, Wrocław
   Design system: "Ciepły minimalizm" (warm minimal)
   Palette is warm-neutral (paper/ink) with a single clay accent and a
   muted sage secondary. Nothing decorative is added that does not carry
   meaning: rules divide, colour signals action, space groups.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */

:root {
  /* Surfaces — warm paper, never pure white */
  --paper:        oklch(97.6% 0.008 80);
  --paper-2:      oklch(94.6% 0.014 78);
  --paper-3:      oklch(90.5% 0.019 76);
  --surface:      oklch(99.2% 0.004 80);

  /* Ink — warm near-black, never #000 */
  --ink:          oklch(25% 0.018 62);
  --ink-2:        oklch(43% 0.020 62);
  --ink-3:        oklch(58% 0.018 66);
  --ink-4:        oklch(72% 0.016 70);

  /* Lines */
  --line:         oklch(87.5% 0.014 78);
  --line-strong:  oklch(78% 0.018 76);

  /* Accent — clay / terracotta */
  --accent:       oklch(57% 0.135 40);
  --accent-deep:  oklch(45% 0.125 38);
  --accent-soft:  oklch(94% 0.028 45);
  --accent-line:  oklch(84% 0.055 42);

  /* Secondary — sage */
  --sage:         oklch(52% 0.055 152);
  --sage-soft:    oklch(94% 0.022 152);

  /* Tertiary — warm sun, used sparingly for notices */
  --sun:          oklch(62% 0.115 72);
  --sun-soft:     oklch(95.5% 0.045 82);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid scale — clamp(min, preferred, max) */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.09rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.38vw, 1.40rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.72vw, 1.85rem);
  --step-3:  clamp(1.80rem, 1.50rem + 1.40vw, 2.60rem);
  --step-4:  clamp(2.25rem, 1.70rem + 2.60vw, 3.70rem);
  --step-5:  clamp(2.75rem, 1.85rem + 4.20vw, 5.10rem);

  /* Space */
  --s-1: 0.5rem;
  --s-2: 0.85rem;
  --s-3: 1.35rem;
  --s-4: 2.1rem;
  --s-5: 3.4rem;
  --s-6: 5.5rem;
  --s-7: clamp(4rem, 8vw, 8.5rem);
  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --measure: 34rem;
  --shell: 78rem;

  /* Motion — exponential ease-out, no bounce */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  --radius: 3px;
  --radius-lg: 6px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--paper-3); }

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

button, input, select, textarea { font: inherit; color: inherit; }

ul, ol { list-style: none; padding: 0; }

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.028em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); line-height: 1.2; }
h4 { font-size: var(--step-1); line-height: 1.3; }

p { text-wrap: pretty; }
p + p { margin-top: 1em; }

strong { color: var(--ink); font-weight: 600; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 44ch;
}

.eyebrow {
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: var(--accent-line);
  flex: none;
}
.eyebrow--plain::before { display: none; }

.muted { color: var(--ink-3); }
.small { font-size: var(--step--1); }

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 56rem; }

section { padding-block: var(--s-7); }
section.tight { padding-block: var(--s-6); }

.section-head {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  max-width: 46rem;
}

.stack { display: grid; gap: var(--s-3); }
.stack-lg { display: grid; gap: var(--s-5); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   5. Header
   -------------------------------------------------------------------------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.masthead[data-stuck] {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--paper) 94%, transparent);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 4.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  flex: none;
}

.brand__mark {
  width: 2.25rem;
  height: 2.25rem;
  flex: none;
  color: var(--accent);
}

.brand__text { display: grid; gap: 0.1rem; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: 0.15rem; }

.nav a {
  font-size: 0.925rem;
  color: var(--ink-2);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--accent-deep); font-weight: 500; }

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
  white-space: nowrap;
}
.header-cta:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.header-cta svg { width: 0.95rem; height: 0.95rem; flex: none; }

/* Mobile nav — details/summary, no JS required */
.nav-toggle { display: none; }

@media (max-width: 62rem) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; margin-left: auto; position: relative; }

  .nav-toggle summary {
    list-style: none;
    cursor: pointer;
    display: grid;
    place-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line-strong);
    border-radius: 100px;
    transition: background 0.2s var(--ease);
  }
  .nav-toggle summary::-webkit-details-marker { display: none; }
  .nav-toggle summary span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  }
  .nav-toggle[open] summary span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle[open] summary span:nth-child(2) { opacity: 0; }
  .nav-toggle[open] summary span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav-toggle nav {
    display: grid;
    gap: 0.15rem;
    position: absolute;
    right: 0;
    top: calc(100% + 0.75rem);
    width: min(19rem, calc(100vw - 2.5rem));
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 0.6rem;
    box-shadow: 0 24px 48px -24px oklch(25% 0.02 62 / 0.28);
  }
  .nav-toggle nav a {
    font-size: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--radius);
  }
  .nav-toggle nav a[aria-current="page"] { background: var(--accent-soft); }
  .nav-toggle nav .header-cta {
    display: flex;
    justify-content: center;
    margin-top: 0.4rem;
    border-radius: var(--radius);
  }
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
              border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn svg { width: 1rem; height: 1rem; flex: none; }

.btn--primary { background: var(--accent); color: oklch(99% 0.01 60); }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

.btn--ghost { border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.btn--quiet { color: var(--accent-deep); padding-inline: 0.25rem; }
.btn--quiet:hover { gap: 0.9rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Text link with a rule that grows on hover */
.link-rule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--ink);
  padding-bottom: 2px;
  background-image: linear-gradient(var(--accent-line), var(--accent-line));
  background-repeat: no-repeat;
  background-size: 100% 1px;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}
.link-rule:hover { color: var(--accent-deep); background-size: 100% 2px; }
.link-rule svg { width: 0.9rem; height: 0.9rem; transition: transform 0.3s var(--ease); }
.link-rule:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3rem, 7vw, 6rem) var(--s-6); }

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: clamp(2rem, 5vw, 5rem); }
}

.hero__copy { display: grid; gap: var(--s-3); }

.hero h1 { font-size: var(--step-5); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--step--1);
  color: var(--ink-3);
}
.hero__trust svg { width: 0.85rem; height: 0.85rem; color: var(--sage); flex: none; }

/* Photo composition — two offset plates, no card chrome */
.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  grid-template-rows: auto auto;
  gap: 0.85rem;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.hero__media .plate-a {
  grid-row: span 2;
  aspect-ratio: 4 / 5;
}
.hero__media .plate-b { aspect-ratio: 1 / 1; }
.hero__media .plate-c { aspect-ratio: 4 / 3; }

/* A small caption pinned to the composition, like a contact sheet.
   Block, not flex: the sentence is one run of text with a <strong> inside,
   so flex would split it into three non-wrapping items and shred the line
   breaks at narrow widths. */
.hero__stamp {
  position: absolute;
  left: -0.5rem;
  bottom: -1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.55rem 1.1rem;
  font-size: 0.8rem;
  color: var(--ink-2);
  text-align: center;
  box-shadow: 0 16px 32px -20px oklch(25% 0.02 62 / 0.3);
}
.hero__stamp strong { font-family: var(--font-display); font-size: 1rem; }

@media (max-width: 40rem) {
  .hero__media { grid-template-columns: 1fr 1fr; }
  .hero__media .plate-a { grid-row: auto; grid-column: span 2; aspect-ratio: 3 / 2; }
  .hero__stamp {
    position: static;
    /* Auto-placement would drop it into the first 1fr column, so the pill
       would shrink to ~170px and wrap onto three lines. Span the row. */
    grid-column: span 2;
    width: fit-content;
    margin: 0.85rem auto 0;
    box-shadow: none;
  }
}

/* --------------------------------------------------------------------------
   8. Fact strip
   -------------------------------------------------------------------------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  /* The items carry their own padding; the generic section rhythm would
     double up on it and leave the strip floating in empty space. */
  padding-block: 0;
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 52rem) {
  .facts__grid { grid-template-columns: repeat(4, 1fr); }
}
.facts__item {
  padding: var(--s-4) 0;
  display: grid;
  gap: 0.25rem;
}
@media (min-width: 52rem) {
  .facts__item + .facts__item { border-left: 1px solid var(--line); padding-left: var(--s-4); }
  .facts__item { padding-right: var(--s-4); }
}
@media (max-width: 51.99rem) {
  .facts__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: var(--s-4); }
}
.facts__value {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.facts__label { font-size: var(--step--1); color: var(--ink-3); }

/* --------------------------------------------------------------------------
   9. Feature list
   -------------------------------------------------------------------------- */

.features {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
@media (min-width: 48rem) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
.feature {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
@media (min-width: 48rem) {
  .feature:nth-child(odd) { padding-right: var(--s-4); border-right: 1px solid var(--line); }
  .feature:nth-child(even) { padding-left: var(--s-4); }
}
.feature__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.feature h3 { font-size: var(--step-1); }
.feature p { font-size: 0.97rem; max-width: 40ch; }

/* --------------------------------------------------------------------------
   10. Numbered list (zajęcia, program)
   -------------------------------------------------------------------------- */

.numbered {
  display: grid;
  counter-reset: n;
}
.numbered li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 0.9rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  color: var(--ink-2);
}
.numbered li:first-child { border-top: 1px solid var(--line); }
.numbered li::before {
  content: counter(n, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 0.82rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}

/* Two-column list for short items */
.list-2 {
  display: grid;
  gap: 0 2.5rem;
}
@media (min-width: 44rem) { .list-2 { grid-template-columns: repeat(2, 1fr); } }
.list-2 li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.97rem;
}
.list-2 li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: 0.6rem;
}

/* --------------------------------------------------------------------------
   11. Cards / groups (oferta)
   -------------------------------------------------------------------------- */

.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 52rem) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 40rem) and (max-width: 51.99rem) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--surface);
  padding: var(--s-4);
  display: grid;
  gap: 0.55rem;
  align-content: start;
}
.card__tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 500;
}
.card__age {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.card p { font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   12. Notice band
   -------------------------------------------------------------------------- */

.notice {
  background: var(--sun-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  /* .notice__grid carries the vertical rhythm; the generic section padding
     would double it and leave a dead band under the copy. */
  padding-block: 0;
}
.notice__grid {
  display: grid;
  gap: var(--s-4);
  padding-block: var(--s-5);
  align-items: center;
}
@media (min-width: 58rem) {
  .notice__grid { grid-template-columns: 1fr auto; gap: var(--s-5); }
}
.notice h2 { font-size: var(--step-3); }
.notice p { max-width: 52ch; color: var(--ink-2); }

/* Price breakdown */
.pricing {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.pricing__row span:first-child { color: var(--ink-2); }
.pricing__row span:last-child {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink);
  white-space: nowrap;
}
.pricing__row--total {
  border-bottom: 0;
  border-top: 2px solid var(--ink);
  margin-top: 0.5rem;
  padding-top: 1.1rem;
}
.pricing__row--total span:last-child { color: var(--accent-deep); font-size: var(--step-2); }
.pricing__row--credit span:last-child { color: var(--sage); }

/* --------------------------------------------------------------------------
   13. Split section (text + image)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  gap: var(--s-5);
  align-items: center;
}
@media (min-width: 58rem) {
  .split { grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 6vw, 5rem); }
  .split--flip .split__media { order: -1; }
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.split__body { display: grid; gap: var(--s-3); align-content: start; }
.split__body h2 { max-width: 20ch; }

/* --------------------------------------------------------------------------
   13b. Full-bleed quote band
   -------------------------------------------------------------------------- */

.quote-band {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 15vw, 11rem);
  background-size: cover;
  background-position: center 38%;
  color: oklch(97% 0.01 80);
}
.quote-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, oklch(20% 0.025 55 / 0.66), oklch(20% 0.025 55 / 0.78)),
    radial-gradient(120% 90% at 15% 20%, oklch(30% 0.05 45 / 0.5), transparent 70%);
}
.quote-band blockquote {
  margin: 0;
  max-width: 30ch;
}
.quote-band p {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: oklch(98% 0.008 80);
  text-wrap: balance;
}
.quote-band footer {
  margin-top: var(--s-3);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: oklch(84% 0.02 70);
}

/* --------------------------------------------------------------------------
   14. Gallery
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 1fr;
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s var(--ease);
}
.gallery a:hover img { transform: scale(1.045); }

/* A few plates get more room so the grid is not a uniform mesh */
@media (min-width: 46rem) {
  .gallery a:nth-child(1),
  .gallery a:nth-child(8) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  .gallery a:nth-child(5) { grid-column: span 2; aspect-ratio: 8 / 3; }
}

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 68rem);
  max-height: 92vh;
  overflow: visible;
}
.lightbox::backdrop {
  background: oklch(20% 0.02 62 / 0.82);
  backdrop-filter: blur(6px);
}
.lightbox img {
  width: 100%;
  max-height: 84vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: none;
  border: 0;
  color: var(--paper);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lightbox__caption {
  color: oklch(85% 0.01 80);
  font-size: var(--step--1);
  margin-top: 0.85rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   15. Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1.1fr 1fr; } }

.contact-block {
  background: var(--surface);
  padding: var(--s-5) var(--s-4);
  display: grid;
  gap: var(--s-3);
  align-content: start;
}
.contact-block--accent { background: var(--paper-2); }

.contact-list { display: grid; gap: 0; }
.contact-list div {
  display: grid;
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list div:last-child { border-bottom: 0; }
.contact-list dt {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-list dd {
  font-size: var(--step-1);
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.contact-list dd a:hover { color: var(--accent-deep); }

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  aspect-ratio: 16 / 11;
  position: relative;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__fallback {
  position: absolute;
  inset: auto 0 0 0;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  border-top: 1px solid var(--line);
  padding: 0.7rem 1rem;
  font-size: var(--step--1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

/* Person card */
.person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
}
.person__avatar {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: grid;
  place-content: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}
.person__name { color: var(--ink); font-weight: 500; font-size: 1.02rem; }
.person__role { font-size: 0.9rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   16. Page header (subpages)
   -------------------------------------------------------------------------- */

.page-head {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.page-head__inner { display: grid; gap: var(--s-3); max-width: 52rem; }
.page-head h1 { font-size: var(--step-4); }

.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: var(--step--1);
  color: var(--ink-3);
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-hidden] { color: var(--ink-4); }

/* --------------------------------------------------------------------------
   17. CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: oklch(88% 0.012 78);
  /* .cta-band__grid carries the vertical rhythm. */
  padding-block: 0;
}
.cta-band h2 { color: var(--paper); }
.cta-band .eyebrow { color: oklch(78% 0.09 45); }
.cta-band .eyebrow::before { background: oklch(45% 0.06 45); }

.cta-band__grid {
  display: grid;
  gap: var(--s-5);
  padding-block: var(--s-6);
  align-items: end;
}
@media (min-width: 58rem) {
  .cta-band__grid { grid-template-columns: 1.25fr 1fr; gap: var(--s-6); }
}
.cta-band .lead { color: oklch(78% 0.012 78); }

.cta-band .btn--primary { background: var(--accent); }
.cta-band .btn--primary:hover { background: oklch(66% 0.14 42); }
.cta-band .btn--ghost { border-color: oklch(45% 0.02 62); color: var(--paper); }
.cta-band .btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.cta-facts { display: grid; gap: 0; }
.cta-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid oklch(36% 0.015 62);
  font-size: 0.95rem;
}
.cta-facts div:first-child { border-top: 1px solid oklch(36% 0.015 62); }
.cta-facts dt { color: oklch(68% 0.012 78); }
.cta-facts dd { color: var(--paper); text-align: right; }
.cta-facts dd a:hover { color: oklch(80% 0.1 45); }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: var(--s-5) var(--s-3);
}
.footer__grid {
  display: grid;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 52rem) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-5); }
}
.footer h3 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 0.9rem;
}
.footer nav { display: grid; gap: 0.5rem; }
.footer nav a, .footer address { font-size: 0.94rem; color: var(--ink-2); font-style: normal; line-height: 1.7; }
.footer nav a:hover { color: var(--accent-deep); }
.footer__brand { display: grid; gap: 0.75rem; max-width: 30ch; }
.footer__brand p { font-size: 0.94rem; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: var(--s-3);
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */

.bg-2 { background: var(--paper-2); }
.bg-surface { background: var(--surface); }

.flow > * + * { margin-top: var(--s-3); }
.flow-lg > * + * { margin-top: var(--s-4); }

.max-w { max-width: var(--measure); }
.max-w-lg { max-width: 46rem; }

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .lead { margin-inline: auto; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--sage-soft);
  border-radius: 100px;
  padding: 0.35rem 0.8rem;
  font-weight: 500;
}

.pull {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 26ch;
}

/* Reveal on scroll — opt-in, degrades to visible without JS */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }
  [data-reveal].is-in { opacity: 1; transform: none; }
  .no-js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   20. Print
   -------------------------------------------------------------------------- */

@media print {
  .masthead, .cta-band, .map { display: none; }
  body { background: #fff; color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}
