/* Nooteboom Consult — site styles. Fonts are self-hosted; no third-party requests. */

/* Open Sans (SIL Open Font License), self-hosted */
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
:root {
  --green: #2f6e57;        /* text-safe version of the tree logo */
  --green-dark: #1f4d3d;
  --sage: #74c0a0;         /* logo colour, decorative only */
  --sage-soft: #e7f3ec;
  --ochre: #a9772f;        /* antique-map accent */
  --ink: #1d2826;
  --muted: #56625f;
  --paper: #fbfaf6;
  --line: #e3e0d6;
  --white: #fff;
  --serif: "Open Sans", Arial, sans-serif;
  /* The logo keeps the original lettering: classic serif name, system-font tagline */
  --logo-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --logo-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: var(--serif);  /* one typeface for all text */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 40, 38, .06), 0 8px 24px rgba(29, 40, 38, .06);
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; } /* no layout shift when the splash unlocks scrolling */
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.narrow-text { max-width: 680px; }
.eyebrow { font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); margin-bottom: .75rem; }
.lead { font-size: 1.18rem; color: var(--ink); }

/* Buttons & links */
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  font-weight: 600; padding: .8rem 1.4rem; border-radius: 999px; border: 2px solid var(--green);
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-light { color: #fff; border-color: rgba(255,255,255,.8); }
.btn-light:hover { background: #fff; color: var(--green-dark); border-color: #fff; }
.btn-small { padding: .45rem 1.05rem; font-size: .95rem; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }
.more-links .text-link { margin-right: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* Frosted background lives on a pseudo-element: a backdrop-filter on the header itself would trap the fixed mobile menu inside the header bar */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(251, 250, 246, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: auto; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--logo-serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; }
.brand small { margin-top: .2rem; font: 600 .6rem/1.3 var(--logo-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); white-space: nowrap; }

.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: .5rem .75rem; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .97rem; border-radius: 8px; }
.site-nav a:hover { color: var(--green); background: var(--sage-soft); }
.site-nav > ul > li > a[aria-current] { color: var(--green); box-shadow: inset 0 -2px 0 var(--sage); border-radius: 0; }
.site-nav .nav-cta { margin-left: .5rem; }
.site-nav .nav-cta a { color: #fff; }
.site-nav .nav-cta a:hover { background: var(--green-dark); color: #fff; }
.has-sub { display: flex; align-items: center; }
.has-sub > a { padding-right: .3rem; }
.sub-toggle { background: none; border: 0; padding: .5rem .35rem; color: var(--muted); cursor: pointer; border-radius: 6px; }
.sub {
  list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 0; min-width: 290px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-size: .93rem; }
.sub a[aria-current] { color: var(--green); background: var(--sage-soft); }

.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; border-radius: 8px; }
.bars, .bars::before, .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; margin: 0 auto; transition: transform .2s, background .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -7px; } .bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1200px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 72px 0 0; background: var(--paper); overflow-y: auto; padding: 1rem 24px 2rem; display: none; }
  .site-nav.open { display: block; }
  .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav > ul > li { border-bottom: 1px solid var(--line); }
  .site-nav a { padding: .9rem .25rem; font-size: 1.05rem; }
  .site-nav > ul > li > a[aria-current] { box-shadow: none; }
  .has-sub { flex-wrap: wrap; }
  .has-sub > a { flex: 1; }
  .sub-toggle { padding: .9rem; }
  .has-sub.open .sub-toggle svg { transform: rotate(180deg); }
  .sub { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 .5rem 1rem; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  .has-sub:hover .sub, .has-sub:focus-within .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .site-nav .nav-cta { margin: 1.25rem 0 0; border: 0; }
  .site-nav .nav-cta a { text-align: center; padding: .8rem; }
  body.nav-open { overflow: hidden; }
}

/* Home hero */
.home-hero {
  position: relative; color: #fff; padding: clamp(5rem, 14vw, 9rem) 0 clamp(4rem, 10vw, 7rem);
  background: linear-gradient(100deg, rgba(20, 45, 38, .88) 0%, rgba(20, 45, 38, .62) 55%, rgba(20, 45, 38, .25) 100%), url('/assets/img/hero-map.jpg') center 60% / cover;
}
.home-hero h1 { color: #fff; max-width: 18em; }
.home-hero .lead { color: rgba(255,255,255,.9); max-width: 36em; }
.home-hero .eyebrow { color: #e9c98f; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* Page hero */
.page-hero { background: var(--sage-soft); padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-hero.has-image {
  color: #fff; border: 0;
  background: linear-gradient(100deg, rgba(20, 45, 38, .9), rgba(20, 45, 38, .55)), var(--hero) center / cover;
}
.page-hero.has-image h1 { color: #fff; }
.page-hero.has-image .eyebrow { color: #e9c98f; }
.page-hero h1 { margin: 0; max-width: 20em; }
.crumbs a { color: inherit; text-decoration: none; opacity: .75; transition: opacity .25s ease; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs span { margin: 0 .35em; opacity: .6; }

/* Sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section-tint { background: var(--sage-soft); }
.section-head { max-width: 640px; margin-bottom: 2.5rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 2rem; }
.card {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sage); color: var(--ink); }
.card p { color: var(--muted); flex: 1; }
.card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); margin-bottom: .6rem; }
.card-link { font-weight: 600; color: var(--green); }
.card-link::after { content: " →"; transition: margin .15s; }
.card:hover .card-link::after { margin-left: 4px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.split-reverse { grid-template-columns: auto 1fr; }
.split-top { align-items: start; grid-template-columns: 1fr 300px; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.portrait { margin: 0; }
.portrait img { border-radius: var(--radius); box-shadow: var(--shadow); width: 220px; }
.portrait figcaption { font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.side { display: grid; gap: 1.5rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; font-size: .95rem; }
.contact-card h2 { font-size: 1.2rem; }
.contact-card p:last-child { margin: 0; }
@media (max-width: 800px) {
  .split, .split-reverse, .split-top { grid-template-columns: 1fr; }
  .split-reverse .portrait { order: -1; }
}

.quote-band { background: var(--green-dark); color: #fff; text-align: center; }
.quote-band blockquote { margin: 0; }
.quote-band blockquote p { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.35; font-style: italic; }
.quote-band footer { font-size: .95rem; color: rgba(255,255,255,.78); }
.quote-band a { color: #fff; }

/* Long-form text */
.prose h2 { margin-top: 2.2rem; font-size: 1.55rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.25em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--sage); }
.prose figure { margin: 0 0 2rem; }
.prose figure img { border-radius: var(--radius); }
.prose .poster img { max-width: 520px; box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%232f6e57' stroke-width='2'/%3E%3C/svg%3E") center / 80% no-repeat;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.footnote { font-size: .9rem; color: var(--muted); }
.callout { margin-top: 2.5rem; padding: 1.2rem 1.4rem; background: var(--sage-soft); border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; }
.mission { margin-top: 2.5rem; padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.mission p:last-child { font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; margin: 0; }
.back { margin-top: 3rem; }

/* Testimonials */
.testimonials { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .15s, box-shadow .15s; }
.zoom:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); }
.lightbox::backdrop { background: rgba(15, 25, 22, .82); }
.lightbox img { border-radius: 10px; }
.lightbox-close { position: absolute; top: .5rem; right: .5rem; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 1.4rem; cursor: pointer; }

/* News */
.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.news-item a { display: grid; grid-template-columns: 180px 1fr; gap: 1.4rem; align-items: center; padding: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s; }
.news-item a:hover { box-shadow: var(--shadow); border-color: var(--sage); }
.news-item img, .news-placeholder { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.news-placeholder { display: block; background: var(--sage-soft) url('/assets/img/logo-tree.png') center / 48px no-repeat; }
.news-body { display: flex; flex-direction: column; gap: .2rem; }
.news-body time { font-size: .85rem; color: var(--ochre); font-weight: 600; }
.news-body strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.news-body span { color: var(--muted); }
@media (max-width: 560px) {
  .news-item a { grid-template-columns: 1fr; }
  .news-item img, .news-placeholder { width: 100%; height: 160px; }
}

/* Video (click to load, so nothing is fetched from YouTube until played) */
.video-play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.play-icon { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: var(--green); box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.play-icon::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.video-play:hover .play-icon { background: var(--green-dark); }
.video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-note { font-size: .85rem; color: var(--muted); margin-top: .5rem; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: clamp(3rem, 8vw, 5rem) 0 1.5rem; scroll-margin-top: 72px; }
.site-footer h2 { color: #fff; }
.site-footer a { color: #fff; }
.site-footer .eyebrow { color: #e9c98f; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: end; }
.footer-cta p { max-width: 34em; }
.footer-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.site-footer .btn { background: var(--sage); border-color: var(--sage); color: var(--ink); }
.site-footer .btn:hover { background: #fff; border-color: #fff; }
.site-footer .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.site-footer .btn-ghost:hover { background: #fff; color: var(--ink); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Motion ------------------------------------------------------------ */
:root { --ease: cubic-bezier(.22, .7, .2, 1); }

/* Smooth cross-fade between pages (Chromium/Safari; other browsers just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: ease; }

/* Softer, slower hovers everywhere */
.btn, .card, .zoom, .news-item a, .site-nav a, .card-link::after, .text-link::after {
  transition-duration: .35s; transition-timing-function: var(--ease);
}
.text-link::after { display: inline-block; transition-property: transform; }
.text-link:hover::after { transform: translateX(4px); }
.card:hover { transform: translateY(-5px); }
.btn:hover { transform: translateY(-1px); }
.btn { transition-property: background, color, border-color, transform, box-shadow; }
.btn:hover { box-shadow: 0 6px 18px rgba(31, 77, 61, .22); }
.news-item img, .split-media img { transition: transform .6s var(--ease); }
.news-item a:hover img { transform: scale(1.04); }
.news-item a, .split-media { overflow: hidden; }
.split-media { border-radius: var(--radius); }

/* Header gains a shadow once the page scrolls */
.site-header { transition: box-shadow .35s ease, background .35s ease; }
.site-header.scrolled { box-shadow: 0 4px 20px rgba(29, 40, 38, .08); }

/* Hero: image slowly settles, text fades up in sequence */
.home-hero, .page-hero.has-image { overflow: hidden; isolation: isolate; }
.home-hero::before, .page-hero.has-image::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: inherit;
  animation: hero-settle 2.4s var(--ease) both;
}
.page-hero.has-image { position: relative; }
@keyframes hero-settle { from { transform: scale(1.08); } to { transform: none; } }
.home-hero .wrap > *, .page-hero .wrap > * { animation: fade-up .9s var(--ease) both; }
.home-hero .wrap > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .12s; }
.home-hero .wrap > :nth-child(3) { animation-delay: .24s; }
.home-hero .wrap > :nth-child(4) { animation-delay: .36s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Scroll reveal — only hidden when JS is running, so content never disappears */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.js .card.reveal.in:hover { transform: translateY(-5px); transition-delay: 0s; }

/* Mobile menu and submenus slide/fade instead of popping */
@media (max-width: 1200px) {
  .site-nav { display: block; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s ease, transform .35s var(--ease), visibility .3s; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .has-sub.open .sub { animation: fade-up .35s var(--ease) both; }
  .sub-toggle svg { transition: transform .3s var(--ease); }
}

/* Lightbox fades and scales in */
.lightbox[open] { animation: zoom-in .35s var(--ease); }
.lightbox[open]::backdrop { animation: fade .35s ease; }
@keyframes zoom-in { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}

/* ---- Splash: tree grows, name slides out, logo flies to the header, site is revealed around it ---- */
@property --r { syntax: "<length>"; inherits: false; initial-value: -160px; } /* fully opaque until the reveal */
.splash { display: none; }
.splash-on .splash {
  --tree: clamp(68px, 17vw, 150px); --gap: clamp(12px, 2.4vw, 28px);
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; pointer-events: auto; cursor: pointer;
}
.splash-on body { overflow: hidden; }
.splash-on .site-header .brand { visibility: hidden; }
.splash-on.splash-landed .site-header .brand { visibility: visible; } /* real logo appears under the landed copy */
/* Hold the hero's own entrance animations until the site is revealed */
.splash-hold .home-hero .wrap > *, .splash-hold .page-hero .wrap > *,
.splash-hold .home-hero::before, .splash-hold .page-hero.has-image::before { animation-play-state: paused; }
.splash-bg {
  position: absolute; inset: 0; background: var(--paper);
  -webkit-mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--r), #000 calc(var(--r) + 160px));
          mask-image: radial-gradient(circle at var(--x, 50%) var(--y, 50%), transparent var(--r), #000 calc(var(--r) + 160px));
}
.splash-mark { position: relative; display: flex; align-items: center; }
.splash-tree { position: relative; z-index: 2; width: var(--tree); flex: none; transform-origin: 0 0; }
.splash-tree img {
  display: block; width: 100%; height: auto; transform-origin: 50% 100%;
  -webkit-mask: linear-gradient(to top, #000 33%, transparent 45%) 0 0 / 100% 300% no-repeat;
          mask: linear-gradient(to top, #000 33%, transparent 45%) 0 0 / 100% 300% no-repeat;
}
.splash.go .splash-tree img {
  animation: splash-grow 1.5s cubic-bezier(.45, .05, .25, 1) .15s forwards;
}
@keyframes splash-grow {
  from { -webkit-mask-position: 0 0; mask-position: 0 0; transform: scale(.82, .7); }
  70%  { transform: scale(1.01, 1.02); }
  to   { -webkit-mask-position: 0 100%; mask-position: 0 100%; transform: none; }
}
/* The name sits in a clip window starting at the tree's centre line, so it slides out from behind it */
.splash-text { position: relative; z-index: 1; padding-left: calc(var(--tree) / 2 + var(--gap)); margin-left: calc(var(--tree) / -2); clip-path: inset(0 0 0 100%); }
.splash-text strong, .splash-text small { display: block; width: max-content; transform-origin: 0 0; }
.splash-text strong { font: 600 clamp(1.2rem, 5.4vw, 2.9rem)/1.1 var(--logo-serif); letter-spacing: -.01em; color: var(--ink); }
.splash-text small { margin-top: .45rem; font: 600 clamp(.5rem, 1.9vw, .85rem)/1.3 var(--logo-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ochre); }

/* Language flags next to Contact */
.lang-switch { display: flex; align-items: center; gap: .4rem; margin-left: .75rem; }
.site-nav .flag { display: block; padding: 0; width: 26px; height: 18px; border-radius: 4px; overflow: hidden; opacity: .5; box-shadow: 0 0 0 1px rgba(29, 40, 38, .15); transition: opacity .25s ease, transform .25s var(--ease), box-shadow .25s ease; }
.site-nav .flag svg { display: block; width: 100%; height: 100%; }
.site-nav .flag:hover { opacity: .9; transform: translateY(-1px); background: none; }
.site-nav .flag[aria-current] { opacity: 1; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--green); }
@media (max-width: 1200px) {
  .lang-switch { margin: 1.25rem 0 0; justify-content: center; gap: 1rem; border: 0 !important; }
  .site-nav .flag { width: 36px; height: 24px; padding: 0; }
}

/* Header: room for the longer Dutch labels without wrapping */
.site-header .wrap { max-width: 1260px; }
@media (min-width: 1201px) { .site-nav a { white-space: nowrap; } } /* phones: long menu items may wrap */
@media (min-width: 1201px) {
  .site-nav > ul > li > a, .has-sub > a { padding-left: .6rem; padding-right: .6rem; }
  .has-sub > a { padding-right: .2rem; }
}

/* ---- Small screens ---- */
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .section { padding: 3rem 0; }
  .home-hero { padding: 3.25rem 0 3rem; }
  .home-hero h1 { font-size: clamp(1.75rem, 7.6vw, 2.3rem); }
  .page-hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .lead { font-size: 1.06rem; }
  .hero-actions { margin-top: 1.5rem; }
  .hero-actions .btn, .footer-actions .btn { flex: 1 1 auto; text-align: center; }
  .footer-actions { display: flex; flex-wrap: wrap; }
  .card { padding: 1.3rem; }
  .mission p:last-child { font-size: 1.2rem; }
  .quote-band blockquote p { font-size: 1.35rem; }
}
/* Keep the logo clear of the menu button on narrow phones */
@media (max-width: 420px) {
  .brand { gap: .5rem; }
  .brand img { width: 34px; }
  .brand strong { font-size: 1.05rem; }
  .brand small { font-size: .52rem; letter-spacing: .05em; }
  .splash-text small { letter-spacing: .05em; }
}
@media (max-width: 350px) {
  .brand small { letter-spacing: .01em; }
  .splash-text small { letter-spacing: .01em; }
}
