/* ==========================================================================
   Eurogen main stylesheet
   1. Tokens & fonts
   2. Reset & base
   3. Layout helpers
   4. Typography
   5. Components: logo, pill, buttons, placeholders, scale bar, language switch
   6. Site header (nav)
   7. Mobile menu
   8. Hero
   9. About
   10. Services
   11. Team (portrait cards + carousel)
   12. Projects (card grid)
   13. Get in touch
   14. Contact modal & form
   15. Footer
   16. Legal pages
   17. Member detail page (sheet + view transition)
   18. Project detail page (field report)
   19. Splash
   20. Dev helpers (.todo, placeholder labels)
   21. Motion (GSAP / Lenis states, splash wipe)
   22. Background sink, crosshair dividers, magnification indicator
   23. Reduced motion
   ========================================================================== */


/* 1. Tokens & fonts
   ========================================================================== */
/* Fonts: self-hosted woff2 (no Google requests, GDPR), latin + latin-ext only */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-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: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/manrope-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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-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: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/instrument-serif-italic-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;
}

:root {
  --primary: #0E398F;
  --primary-hover: #0A2C70;
  --navy: #111344;
  --aqua-ice: #B5F8FE;    /* fills, glows, tags. NEVER text on white */
  --aqua-mid: #2BB5C6;
  --surface: #FFFFFF;
  --surface-tint: #F3F8FC;
  --text-muted: #5B6478;
  --border: #E2EAF2;
  --surface-lab: #F2F5F9;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --h2-size: clamp(2rem, 4.6vw, 3.75rem);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-space: clamp(88px, 12vw, 168px);
  --header-h: 72px;
  --header-h-compact: 72px;  /* nav height once it turns to glass; scroll targets land below this */

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 300ms;
  --dur-nav: 350ms;
}



/* 2. Reset & base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h-compact);
}

body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

/* The image transform wraps photos in <picture>: no box of its own, so the <img> lays out as if alone */
picture { display: contents; }

a { color: inherit; }

button { font: inherit; color: inherit; cursor: pointer; }

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

/* Focus ring: --primary on light backgrounds, --aqua-ice on dark ones (hero, footer, lightbox) */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.site-header.is-over-hero :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--aqua-ice); }

main:focus { outline: none; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

html.is-locked { overflow: hidden; }


/* 3. Layout helpers
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-space); }

/* Read by screen readers, not shown */
.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;
}


/* 4. Typography
   ========================================================================== */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: inherit;
}

.h2 {
  font-size: var(--h2-size);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-size: 1.08em;
  line-height: 1;
}

p { text-wrap: pretty; }

.paras > p + p { margin-top: 0.9em; }


/* 5. Components
   ========================================================================== */

/* Logo: each variant's ratio is set so its box is reserved before the SVG paints (no layout shift) */
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.logo__svg { display: block; height: 32px; width: auto; flex: none; }
/* Every logo link is at least a 44px touch target, whatever the logo height */
a.logo { min-width: 44px; min-height: 44px; }
.logo__svg--full { aspect-ratio: 1303.49 / 311.49; }
.logo__svg--mark { aspect-ratio: 1; }
.logo__svg--wordmark { aspect-ratio: 928.25 / 115.75; }
.logo--light { color: #fff; }

/* Section label pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--surface);
}
.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua-mid);
}

.pill--slide::before { display: none; }
.pill__index {
  color: var(--primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.pill__index::after {
  content: "\00B7";
  margin-left: 8px;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    color var(--dur) ease,
    box-shadow var(--dur) ease;
}
.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(14, 57, 143, 0.55);
}
.btn:active { transform: translateY(0); }

.btn--sm { min-height: 40px; padding: 9px 18px; font-size: 0.875rem; }
.btn--lg { min-height: 52px; padding: 15px 30px; font-size: 1rem; }

/* Secondary: outlined */
.btn--secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--navy);
}
.btn--secondary:hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: none;
}

/* Image placeholders */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-tint);
  border-radius: var(--radius-lg);
}
.ph--fill { position: absolute; inset: 0; border-radius: 0; }
.ph__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ph__label {
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Scale bar (decorative) */
.scale-bar {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.8;
  pointer-events: none;
}
.scale-bar__line {
  width: 40px;
  height: 5px;
  border: 1px solid currentColor;
  border-top: 0;
}
.scale-bar--light { color: rgba(255, 255, 255, 0.78); }
.scale-bar--corner { left: auto; right: 18px; top: 16px; bottom: auto; align-items: flex-end; }

/* Small tag */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--aqua-ice);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

/* Round primary button */
.round-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: background-color var(--dur) ease, transform var(--dur) var(--ease-out), opacity var(--dur) ease;
}
.round-btn:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-2px); }
.round-btn:disabled { opacity: 0.3; cursor: default; }

/* Language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 6px;
  text-decoration: none;
  opacity: 0.72;
  transition: opacity var(--dur) ease;
}
.lang-switch__link + .lang-switch__link::before {
  content: "|";
  margin-right: 12px;
  margin-left: -6px;
  opacity: 0.5;
  font-weight: 400;
}
.lang-switch__link:hover,
.lang-switch__link[aria-current="true"] { opacity: 1; }
.lang-switch--lg { font-size: 1rem; }


/* 6. Site header (nav)
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h-compact);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92); /* fallback without backdrop-filter */
  border-bottom: 1px solid rgba(17, 19, 68, 0.06);
  box-shadow: 0 1px 2px rgba(17, 19, 68, 0.03), 0 10px 30px -18px rgba(17, 19, 68, 0.12);
  transform: translateZ(0); /* own compositing layer: the blurred fixed bar is not repainted with the page on scroll (iOS) */
  transition:
    height var(--dur-nav) var(--ease-out),
    background-color var(--dur) ease,
    border-color var(--dur) ease,
    box-shadow var(--dur) ease,
    color var(--dur) ease,
    -webkit-backdrop-filter var(--dur) ease,
    backdrop-filter var(--dur) ease;
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(255, 255, 255, 0.64);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

.site-header.is-over-hero {
  height: var(--header-h);
  color: #fff;
  background: rgba(255, 255, 255, 0);
  border-bottom-color: rgba(17, 19, 68, 0);
  box-shadow: none;
  /* none, not blur(0): a zero blur still costs a full-width backdrop pass every scroll frame */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-nav { display: none; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.site-nav__link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.85;
  transition: opacity var(--dur) ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out);
}
.site-nav__link:hover { opacity: 1; }
.site-nav__link:hover::after { transform: scaleX(1); }

.site-header__actions { display: none; align-items: center; gap: 20px; }

.site-header.is-over-hero .btn--nav {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.site-header.is-over-hero .btn--nav:hover {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

/* Header logo: scaled with transform, not size, so the compact switch causes no reflow */
.site-header__logo .logo__full { display: none; height: 30px; }
.site-header__logo .logo__compact { height: 36px; }
.menu-open .site-header__logo .logo__full { display: block; }
.menu-open .site-header__logo .logo__compact { display: none; }

/* Burger (mobile) */
.burger {
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border: 0;
  background: transparent;
}
.burger__line {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), top var(--dur) var(--ease-out);
}
.burger__line:nth-child(1) { top: 17px; }
.burger__line:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 21px; transform: rotate(-45deg); }

@media (min-width: 768px) and (max-width: 1199.98px) {
  .site-header__logo .logo__full { display: block; height: 34px; }
  .site-header__logo .logo__compact { display: none; }
}

/* Desktop nav from 1200px (keep DESKTOP_QUERY in main.js in sync) */
@media (min-width: 1200px) {
  :root { --header-h: 88px; --header-h-compact: 68px; }
  .site-nav { display: block; }
  .site-header__actions { display: flex; }
  .burger { display: none; }

  .site-header__logo .logo__full {
    display: block;
    height: 44px;
    transform: scale(0.7727);
    transform-origin: left center;
    transition: transform var(--dur-nav) var(--ease-out);
  }
  .site-header.is-over-hero .site-header__logo .logo__full { transform: none; }
  .site-header__logo .logo__compact { display: none; }
}

/* 7. Mobile menu
   ========================================================================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  padding-top: var(--header-h);
  background: var(--surface);
  color: var(--navy);
  animation: menu-in var(--dur) var(--ease-out);
}
.mobile-menu[hidden] { display: none; }

.mobile-menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding-block: 32px 40px;
}

.mobile-menu__list { display: grid; gap: 4px; }

.mobile-menu__link {
  display: block;
  padding-block: 10px;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-decoration: none;
}
.mobile-menu__link:hover { color: var(--primary); }

.mobile-menu__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.menu-open .site-header,
.menu-open .site-header.is-over-hero {
  color: var(--navy);
  background: var(--surface);
  border-bottom-color: var(--border);
  box-shadow: none;
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}


/* 8. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 48px) 96px;
  color: #fff;
  overflow: hidden;
  background: var(--navy);
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__image { width: 100%; height: 100%; object-fit: cover; }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17, 19, 68, 0.38) 0%, rgba(17, 19, 68, 0) 28%),
    linear-gradient(180deg, rgba(17, 19, 68, 0.5) 0%, rgba(17, 19, 68, 0.46) 60%, rgba(17, 19, 68, 0.56) 100%);
}

.hero__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: var(--hero-dim, 0);
}

.hero__media { will-change: transform; }

.hero--no-photo { background: var(--surface-tint); }



.hero__cells {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1600ms ease;
}
.hero__cells.is-ready { opacity: 1; }

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__title {
  max-width: 14ch;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero__title .accent { letter-spacing: -0.02em; }

.hero__subtitle {
  max-width: 560px;
  margin-top: 24px;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero__content .btn { margin-top: 36px; }

/* 9. About
   ========================================================================== */
.about__top {
  display: grid;
  align-items: start;
}

.about__label { justify-self: start; }
.about__title { margin-top: 20px; max-width: 16ch; }
.about__text { margin-top: 24px; }

.about__text {
  max-width: 520px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
}

.about__media {
  display: grid;
  gap: 16px;
  margin-top: clamp(48px, 7vw, 88px);
}

.about__img--portrait { aspect-ratio: 4 / 5; }
.about__img--wide { aspect-ratio: 16 / 10; }

@media (min-width: 640px) {
  .about__media { grid-template-columns: 1fr 2fr; }
  .about__img--portrait,
  .about__img--wide { aspect-ratio: auto; height: clamp(300px, 42vw, 560px); }
}

@media (min-width: 900px) {
  .about__top {
    grid-template-columns: 1.25fr 1fr;
    column-gap: 48px;
  }
  .about__label { grid-column: 1 / -1; }
  /* Align the text's first line with the heading's cap height (Manrope: cap 0.72em, ascent 1.066em, content area 1.366em) */
  .about__text {
    justify-self: end;
    margin-top: calc(20px + max(0px, var(--h2-size) * 0.188 - 0.463em));
  }
  .about__media { gap: 20px; }
}


/* 10. Services: hover-reveal list
   ========================================================================== */
.services__title { margin-top: 20px; max-width: 18ch; }

.services__list {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--border);
}

.service {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.service__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "num arrow" "title arrow";
  align-items: center;
  gap: 6px 16px;
  padding-block: 22px;
}
.service__num { grid-area: num; }
.service__title { grid-area: title; }
.service__arrow { grid-area: arrow; }

.service__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.service__title {
  min-width: 0;
  hyphens: auto; /* long single words ("Milieueffectbeoordeling") on narrow phones, uses <html lang> */
  overflow-wrap: break-word;
  font-size: clamp(1.375rem, 3.4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
  transition: transform 450ms var(--ease-out), color var(--dur) ease;
}

.service__line { display: none; }

/* The arrow sits above the accordion toggle: on touch it asks about the service, the rest of the row opens the accordion */
.service__arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  transition: transform 450ms var(--ease-out), background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease;
}

.service__toggle {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 12px;
}

.service.is-open .service__title { color: var(--primary); }
.service__arrow:hover,
.service__arrow:focus-visible { background: var(--primary); border-color: var(--primary); color: #fff; }

.service__panel { padding-bottom: 24px; }
.service__panel[hidden] { display: none; }
.service__panel-text { color: var(--text-muted); max-width: 52ch; }
.service__panel-img { margin-top: 16px; aspect-ratio: 4 / 3; max-width: 420px; }

.service__float,
.services__cursor { display: none; }

@media (min-width: 640px) {
  .service__row { grid-template-columns: 88px minmax(0, 1fr) auto; grid-template-areas: "num title arrow"; gap: 24px; padding-block: 28px; }
}

/* Desktop hover mode */
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .service__row {
    grid-template-columns: 96px minmax(0, 1.3fr) minmax(0, 1fr) auto;
    grid-template-areas: "num title line arrow";
    gap: 32px;
    padding-block: 34px;
  }
  .service__line {
    grid-area: line;
    display: block;
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 38ch;
  }
  .service__toggle,
  .service__panel { display: none !important; }

  .service:hover .service__title { transform: translateX(14px); color: var(--primary); }
  .service:hover .service__arrow { background: var(--primary); border-color: var(--primary); color: #fff; transform: rotate(45deg); }

  .services .container { position: relative; }
  .services__cursor {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 5;
    width: 320px;
    height: 240px;
    pointer-events: none;
    opacity: 0;
    scale: 0.7;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 60px -30px rgba(17, 19, 68, 0.35);
    transition: opacity 260ms ease, scale 520ms var(--ease-out);
    will-change: transform;
  }
  .services__cursor.is-visible { opacity: 1; scale: 1; }
  .services__cursor .service__float {
    display: grid;
    position: absolute;
    inset: 0;
    border-radius: 0;
    opacity: 0;
    transition: opacity 280ms ease;
  }
  .services__cursor .service__float.is-active { opacity: 1; }
}


.services__list--roomy .service__row { padding-block: 32px; }
.services__list--roomy .service__panel-text { font-size: 1rem; }

@media (min-width: 640px) {
  .services__list--roomy .service__row { padding-block: 44px; }
  .services__list--roomy .service__title { font-size: clamp(1.75rem, 4vw, 3.25rem); }
}

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  .services__list--roomy .service__row {
    grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1.15fr) auto;
    align-items: start;
    padding-block: clamp(56px, 6vw, 88px);
  }
  .services__list--roomy .service__num,
  .services__list--roomy .service__arrow { margin-top: 0.6em; }
  .services__list--roomy .service__line { max-width: 52ch; font-size: 1.0625rem; line-height: 1.65; }
}


/* 11. Team: portrait cards + carousel
   ========================================================================== */
.team__title { margin-top: 20px; max-width: 16ch; }

.carousel { margin-top: clamp(40px, 6vw, 72px); }

.carousel__viewport {
  overflow: hidden;
  touch-action: pan-y; /* vertical page scroll stays native, horizontal swipes drive the track */
}

/* .carousel prefix: must beat the ul[class] reset */
.carousel .carousel__track {
  --gap: 16px;
  --card-w: min(78%, 320px);
  display: flex;
  gap: var(--gap);
  /* The block padding keeps focus rings unclipped */
  padding: 6px max(var(--gutter), calc((100% - var(--container)) / 2));
}

.carousel__item {
  flex: 0 0 var(--card-w);
  min-width: 0;
}

.carousel.is-active .carousel__viewport { cursor: grab; -webkit-user-select: none; user-select: none; }
.carousel.is-active .mcard { cursor: inherit; }
.carousel.is-dragging .carousel__viewport { cursor: grabbing; }

.carousel__controls {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}
.carousel__controls[hidden] { display: none; }

@media (min-width: 640px) {
  .carousel .carousel__track { --card-w: calc((100% - var(--gap) * 2) / 3); }
}

@media (min-width: 1024px) {
  .carousel .carousel__track { --gap: 20px; --card-w: calc((100% - var(--gap) * 3) / 4); }
}

/* Member card */
.mcard {
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  color: #fff;
  text-decoration: none;
  -webkit-touch-callout: none;
}

.mcard__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border-radius: inherit;
}

.mcard__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 800ms var(--ease-out);
}
.mcard__photo .ph__label { margin-bottom: 30%; }

.mcard::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 55%;
  background: linear-gradient(180deg, rgba(17, 19, 68, 0) 0%, rgba(17, 19, 68, 0.5) 60%, rgba(17, 19, 68, 0.75) 100%);
  pointer-events: none;
}

.tag--card {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--surface);
}

.mcard__info {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
}

.mcard__name {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.mcard__role {
  margin-top: 2px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
}

.mcard__bio {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 500ms var(--ease-out), margin-top 500ms var(--ease-out);
}
.mcard__bio > div {
  min-height: 0;
  overflow: hidden;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 350ms ease, transform 500ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .mcard:hover .mcard__photo,
  .mcard:focus-visible .mcard__photo { transform: scale(1.04); }

  .mcard:hover .mcard__bio,
  .mcard:focus-visible .mcard__bio { grid-template-rows: 1fr; margin-top: 8px; }

  .mcard:hover .mcard__bio > div,
  .mcard:focus-visible .mcard__bio > div { opacity: 1; transform: none; }

  .carousel.is-dragging .mcard .mcard__photo { transform: none; }
}

.team-solo {
  display: grid;
  gap: 28px;
  margin-top: clamp(40px, 6vw, 72px);
}
.mcard--solo { width: min(100%, 360px); }
.mcard--solo::after { display: none; }
.team-solo__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team-solo__name { font-size: clamp(1.75rem, 3.4vw, 2.5rem); letter-spacing: -0.035em; line-height: 1.1; }
.team-solo__role { margin-top: 8px; font-weight: 500; color: var(--text-muted); }
.team-solo__bio { margin-top: 20px; max-width: 52ch; font-size: 1.0625rem; line-height: 1.65; }
.team-solo__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.team-solo__link svg { transition: transform var(--dur) var(--ease-out); }
.team-solo__link:hover svg { transform: translateX(4px); }

@media (min-width: 768px) {
  .team-solo {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(40px, 6vw, 96px);
  }
  .mcard--solo { width: 100%; }
}

@media (hover: hover) and (pointer: fine) {
  .team-solo:has(.team-solo__link:hover) .mcard__photo { transform: scale(1.04); }
}


/* 12. Projects: card grid
   ========================================================================== */
.projects__title { margin-top: 20px; max-width: 16ch; }

.project-grid {
  display: grid;
  gap: 16px;
  margin-top: clamp(40px, 6vw, 72px);
}

.project-grid__item { min-width: 0; }

/* Card */
.bcard {
  --ratio: 5 / 4;
  position: relative;
  isolation: isolate;
  display: block;
  aspect-ratio: var(--ratio);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  color: #fff;
  text-decoration: none;
}

.bcard__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  border-radius: inherit;
}

.bcard__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 900ms var(--ease-out);
}
.bcard__cover .ph__label { margin-bottom: 22%; }

.bcard::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 70%;
  background: linear-gradient(180deg, rgba(17, 19, 68, 0) 0%, rgba(17, 19, 68, 0.55) 55%, rgba(17, 19, 68, 0.82) 100%);
  pointer-events: none;
}

.bcard__num {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.bcard__body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  justify-items: start;
}

.bcard__title {
  margin-top: 12px;
  font-size: clamp(1.25rem, 1.7vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.bcard__summary {
  max-width: 52ch;
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

.bcard__meta {
  margin-top: 8px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

/* "View report" line: always shown on touch (no hover there) */
.bcard__more {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 10px;
}
.bcard__more > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aqua-ice);
}

@media (hover: hover) and (pointer: fine) {
  .bcard__more { grid-template-rows: 0fr; margin-top: 0; transition: grid-template-rows 500ms var(--ease-out), margin-top 500ms var(--ease-out); }
  .bcard__more > span { opacity: 0; transform: translateY(8px); transition: opacity 350ms ease, transform 500ms var(--ease-out); }

  .bcard:hover .bcard__more,
  .bcard:focus-visible .bcard__more { grid-template-rows: 1fr; margin-top: 10px; }
  .bcard:hover .bcard__more > span,
  .bcard:focus-visible .bcard__more > span { opacity: 1; transform: none; }

  .bcard:hover .bcard__cover,
  .bcard:focus-visible .bcard__cover { transform: scale(1.05); }
}

.project-grid--single .bcard__title { font-size: clamp(1.75rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.04em; }

@media (min-width: 640px) and (max-width: 1023.98px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bcard { --ratio: 4 / 3; }
  .project-grid__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .project-grid__item:last-child:nth-child(odd) .bcard { --ratio: 16 / 9; }
}

@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
  .project-grid__item { grid-column: span 2; }
  .bcard { --ratio: 4 / 5; }
  .bcard__body { left: 24px; right: 24px; bottom: 24px; }

  .project-grid__item:nth-last-child(2):nth-child(3n + 1),
  .project-grid__item:nth-last-child(2):nth-child(3n + 1) + .project-grid__item { grid-column: span 3; }
  .project-grid__item:nth-last-child(2):nth-child(3n + 1) .bcard,
  .project-grid__item:nth-last-child(2):nth-child(3n + 1) + .project-grid__item .bcard { --ratio: 4 / 3; }

  .project-grid__item:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  .project-grid__item:last-child:nth-child(3n + 1) .bcard { --ratio: 21 / 9; }
}


/* 13. Get in touch
   ========================================================================== */
.contact {
  position: relative;
  isolation: isolate;
  padding-top: clamp(48px, 6vw, 96px);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1400 560' preserveAspectRatio='xMidYMid slice' fill='none' stroke='%23C9D6E3' stroke-width='1'%3E%3Ccircle cx='90' cy='120' r='46'/%3E%3Ccircle cx='98' cy='114' r='15'/%3E%3Ccircle cx='250' cy='60' r='30'/%3E%3Ccircle cx='246' cy='65' r='10'/%3E%3Ccircle cx='1080' cy='90' r='52'/%3E%3Ccircle cx='1070' cy='94' r='17'/%3E%3Ccircle cx='1250' cy='210' r='34'/%3E%3Ccircle cx='1256' cy='216' r='11'/%3E%3Ccircle cx='1160' cy='330' r='22'/%3E%3Ccircle cx='1160' cy='330' r='8'/%3E%3Ccircle cx='140' cy='330' r='28'/%3E%3Ccircle cx='145' cy='326' r='9'/%3E%3Ccircle cx='60' cy='470' r='38'/%3E%3Ccircle cx='54' cy='476' r='12'/%3E%3Ccircle cx='1300' cy='470' r='44'/%3E%3Ccircle cx='1308' cy='462' r='14'/%3E%3Ccircle cx='980' cy='500' r='24'/%3E%3Ccircle cx='983' cy='503' r='8'/%3E%3Ccircle cx='330' cy='520' r='20'/%3E%3Ccircle cx='328' cy='522' r='7'/%3E%3C/svg%3E") center / cover no-repeat;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 35%, #000 85%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, transparent 35%, #000 85%);
  pointer-events: none;
}

.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__title {
  margin-top: 24px;
  font-size: clamp(2.75rem, 9vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact__text {
  margin-top: 20px;
  max-width: 44ch;
  color: var(--text-muted);
}

.contact__email-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: clamp(28px, 4vw, 44px);
  max-width: 100%;
}

.contact__email {
  position: relative;
  font-size: clamp(1.375rem, 5.4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--primary);
  text-decoration: none;
  overflow-wrap: anywhere;
  padding-block: 10px; /* 44px+ touch target on phones */
}
.contact__email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: currentColor;
}
.contact__email { transition: color var(--dur) ease; }
.contact__email:hover { color: var(--primary-hover); }

.contact__copy-status {
  min-height: 1.5em;
  margin-top: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  transition: background-color var(--dur) ease, border-color var(--dur) ease, color var(--dur) ease;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }

.contact__copy .icon-check { display: none; }
.contact__copy.is-copied { background: var(--primary); border-color: var(--primary); color: #fff; }
.contact__copy.is-copied .icon-copy { display: none; }
.contact__copy.is-copied .icon-check { display: block; }


/* 14. Contact modal & form
   ========================================================================== */
.modal {
  width: min(640px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100% - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 40px 100px -30px rgba(17, 19, 68, 0.45);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(17, 19, 68, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in 600ms var(--ease-out); }
.modal[open]::backdrop { animation: fade-in 400ms ease; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in { from { opacity: 0; } }

.modal__panel { position: relative; padding: clamp(24px, 5vw, 44px); }

.modal__close { position: absolute; top: 16px; right: 16px; }

.modal__title {
  padding-right: 48px;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  letter-spacing: -0.035em;
}
.modal__intro { margin-top: 10px; color: var(--text-muted); font-size: 0.9375rem; }

.modal__success { padding-block: 24px 8px; text-align: center; }
.modal__success:focus { outline: none; }
.modal__success .modal__title { padding-right: 0; }
.modal__success .btn { margin-top: 28px; }
.modal__success-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--aqua-ice);
  color: var(--primary);
}

.modal__card:focus { outline: none; }
.contact-card {
  display: grid;
  gap: 4px;
  margin-top: 28px;
}
.contact-card__row {
  display: grid;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface-tint);
}
.contact-card__row[hidden] { display: none; }
.contact-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-card__value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-height: 44px;
  font-size: clamp(1.125rem, 3.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.contact-card__value--email { justify-content: space-between; }
.contact-card__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  text-decoration: none;
}
.contact-card__link:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.contact-card__status { text-align: left; }

.form { margin-top: 28px; }

.form__summary {
  margin-bottom: 20px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FDECEC;
  color: #A3201F;
  font-size: 0.875rem;
  font-weight: 600;
}

.form__grid { display: grid; gap: 18px; }

@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .field--full { grid-column: 1 / -1; }
}

.field { display: grid; gap: 6px; align-content: start; }

.field__label { font-size: 0.8125rem; font-weight: 600; }
.field__optional { font-weight: 500; color: var(--text-muted); }

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--navy);
  font: inherit;
  font-size: 1rem; /* 16px avoids iOS zoom on focus */
  transition: border-color var(--dur) ease, background-color var(--dur) ease, box-shadow var(--dur) ease;
}
.field__input:hover { border-color: #C9D6E3; }
.field__input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--primary), 0 0 0 5px rgba(14, 57, 143, 0.14);
}
.field__input[aria-invalid="true"] { border-color: #C2312F; background: #FFF8F8; }

.field__textarea { min-height: 132px; resize: vertical; }

.field__select { position: relative; }
.field__select::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--navy);
  border-bottom: 1.5px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.field__select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }

.field__error { font-size: 0.8125rem; font-weight: 600; color: #C2312F; }
.field__error:empty { display: none; }

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
}
.check__input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}
.check__box {
  flex: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #C9D6E3;
  border-radius: 6px;
  background: var(--surface);
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
}
.check__input:checked + .check__box {
  border-color: var(--primary);
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check__input:focus-visible + .check__box { outline: 2px solid var(--aqua-mid); outline-offset: 3px; }
.check__input[aria-invalid="true"] + .check__box { border-color: #C2312F; }
.check__label a { color: var(--primary); text-underline-offset: 3px; }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.form__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 28px;
}

.form__mailto { font-size: 0.875rem; color: var(--text-muted); text-underline-offset: 3px; }
.form__mailto span { color: var(--primary); font-weight: 600; }

@media (max-width: 639px) {
  .form__actions .btn { width: 100%; }
}


/* 15. Footer
   ========================================================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(64px, 8vw, 96px) 32px;
  font-size: 0.875rem;
}

.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }

.site-footer__cols { display: grid; gap: 40px 32px; }

.site-footer__brand .logo__svg { height: 40px; }
.site-footer__tagline { margin-top: 20px; max-width: 300px; }

.site-footer__heading {
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

.site-footer__list { display: grid; gap: 8px; }

.site-footer__legal { display: grid; gap: 2px; font-style: normal; line-height: 1.7; }
.site-footer__company { color: #fff; font-weight: 600; margin-bottom: 6px; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__bottom .lang-switch { margin-left: auto; color: #fff; }

/* Touch screens: 44px tall tap areas */
@media (pointer: coarse) {
  .site-footer__list { gap: 0; }
  .site-footer__list a,
  .site-footer__legal a,
  .site-footer__privacy,
  .site-footer .site-footer__credit { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
}

.site-footer .site-footer__credit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--dur) ease;
}
.site-footer .site-footer__credit:hover { color: rgba(255, 255, 255, 0.85); }

@media (min-width: 640px) {
  .site-footer__cols { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .site-footer__cols { grid-template-columns: 1.3fr 0.8fr 1.3fr; }
  .site-footer__brand { grid-column: auto; }
}


/* 16. Legal pages (privacy)
   ========================================================================== */
.legal-page { padding-block: calc(var(--header-h) + clamp(48px, 8vw, 96px)) var(--section-space); }

.legal-page__inner { max-width: calc(800px + var(--gutter) * 2); }

.legal-page__title { margin-top: 20px; }
.legal-page__updated { margin-top: 12px; font-size: 0.875rem; color: var(--text-muted); }

.legal-page__body { margin-top: clamp(40px, 6vw, 64px); color: var(--text-muted); }
.legal-page__intro { font-size: 1.125rem; color: var(--navy); }

.legal-page__section { margin-top: 48px; }
.legal-page__section h2 { font-size: 1.375rem; color: var(--navy); margin-bottom: 12px; }
.legal-page__section p + p { margin-top: 12px; }

.legal-page__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 56px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
}
.legal-page__back:hover { text-decoration: underline; text-underline-offset: 3px; }



/* 17. Member detail page
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

::view-transition-group(*) {
  animation-duration: 550ms;
  animation-timing-function: var(--ease-out);
}

.sheet-page {
  --sheet-offset: clamp(12px, 2.4vw, 28px);
  background: #E9EAF0; /* fallback */
  background: color-mix(in srgb, var(--navy) 9%, var(--surface));
}

.sheet {
  position: relative;
  margin: var(--sheet-offset) clamp(0px, 1.6vw, 24px) 0;
  padding-bottom: var(--section-space);
  min-height: 100vh;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -12px 48px -24px rgba(17, 19, 68, 0.28);
}

.sheet__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
}
.sheet__top .logo { grid-column: 2; }
.sheet__top .logo__svg { height: 30px; }
.sheet__top .lang-switch { grid-column: 3; justify-self: end; }

.sheet-back {
  position: fixed;
  top: calc(var(--sheet-offset) + 14px);
  left: max(12px, calc(var(--gutter) - 4px));
  z-index: 60;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 8px 24px -12px rgba(17, 19, 68, 0.35);
  will-change: transform; /* fixed + shadow: keep it on its own layer while the sheet scrolls under it */
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform var(--dur) var(--ease-out);
}
.sheet-back:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateX(-2px); }

/* Sheet entrance without a view transition. Fill "backwards" so no transform lingers */
@media (prefers-reduced-motion: no-preference) {
  html.sheet-enter .sheet { animation: sheet-up 700ms var(--ease-out) backwards; }
  html.sheet-enter .sheet-back { animation: fade-in 400ms 300ms ease backwards; }
}

@keyframes sheet-up {
  from { transform: translateY(12vh); opacity: 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

/* 1. Header */
.member-head {
  display: grid;
  gap: 28px;
  padding-top: clamp(8px, 2vw, 24px);
}

.member-head__media {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.member-head__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.member-head__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.member-head__name {
  margin-top: 18px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.member-head__role {
  margin-top: 12px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.member-head__intro {
  max-width: 52ch;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: clamp(1rem, 1.3vw, 1.0625rem);
}

@media (min-width: 900px) {
  .member-head {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: end;
    gap: clamp(40px, 6vw, 96px);
  }
  .member-head__media { max-width: none; }
  .member-head__info { padding-bottom: 12px; }
}

/* Sections */
.member-section { margin-top: clamp(64px, 9vw, 120px); }

.member-section__title {
  margin-bottom: clamp(24px, 3vw, 36px);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

/* 2. Key facts */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}
.fact__value {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}
.fact__label { font-size: 0.875rem; line-height: 1.4; color: var(--text-muted); }

@media (min-width: 900px) {
  .facts { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
  .fact { padding: 24px; }
}

/* 3-4. Timeline (experience, studies) */
.timeline { max-width: 880px; }

.timeline__item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px;
}

.timeline__year {
  padding-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.timeline__body {
  position: relative;
  padding: 0 0 36px 32px;
}
.timeline__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--aqua-ice);
}
.timeline__body::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: 4px;
  width: 1px;
  background: var(--border);
}
.timeline__item:last-child .timeline__body { padding-bottom: 0; }
.timeline__item:last-child .timeline__body::after { display: none; }

.timeline__title { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; }
.timeline__org { margin-top: 4px; font-size: 0.9375rem; font-weight: 500; }
.timeline__text { margin-top: 6px; font-size: 0.9375rem; color: var(--text-muted); }

.timeline--light .timeline__year { color: var(--text-muted); }
.timeline--light .timeline__body::before {
  background: var(--surface);
  border: 1.5px solid var(--aqua-mid);
  box-shadow: none;
}
.timeline--light .timeline__title { font-size: 1.0625rem; font-weight: 500; }
.timeline--light .timeline__org { color: var(--text-muted); font-weight: 400; }

@media (min-width: 768px) {
  .timeline__item { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; }
}

/* 5. Professional training */
.training {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.training__item {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.training__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--aqua-ice);
  color: var(--primary);
}
.training__year { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-muted); }
.training__title { font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.3; }
.training__org { font-size: 0.875rem; font-weight: 500; }
.training__text { font-size: 0.875rem; color: var(--text-muted); }

/* 6. Related projects */
.member-projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.pcard__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 10px;
  transition: transform 500ms var(--ease-out);
}
.pcard__meta { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.pcard__title { font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1.25; transition: color var(--dur) ease; }
.pcard__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.pcard:hover .pcard__cover { transform: translateY(-4px); }
.pcard:hover .pcard__title { color: var(--primary); }

/* 7. CTA + next member */
.member-end {
  display: grid;
  gap: 16px;
  margin-top: clamp(72px, 10vw, 140px);
}

.member-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}
.member-cta__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; }
.member-cta__text { max-width: 44ch; color: var(--text-muted); }
.member-cta .btn { margin-top: 8px; }

.member-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-content: end;
  gap: 6px 16px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}
.member-next__label {
  grid-column: 1;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.member-next__name {
  grid-column: 1;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.member-next__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--aqua-ice);
  color: var(--navy);
  transition: transform var(--dur) var(--ease-out);
}
.member-next:hover .member-next__arrow { transform: translateX(4px); }

@media (min-width: 900px) {
  .member-end { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .member-end--solo { grid-template-columns: minmax(0, 1fr); }
}


/* 18. Project detail page ("field report")
   ========================================================================== */

/* 1. Cover */
.report-cover {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(400px, 72vh, 820px);
  min-height: clamp(400px, 72svh, 820px);
  overflow: hidden;
  color: #fff;
}

.report-cover__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }

.report-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.report-cover__img .ph__label { margin-bottom: 18%; }

.report-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 65%;
  background: linear-gradient(180deg, rgba(17, 19, 68, 0) 0%, rgba(17, 19, 68, 0.6) 55%, rgba(17, 19, 68, 0.85) 100%);
  pointer-events: none;
}

.report-cover__content {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding-bottom: clamp(28px, 5vw, 64px);
}

.report-cover__kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.report-cover__kicker span { margin-inline: 6px; opacity: 0.6; }

.report-cover__title {
  max-width: 18ch;
  margin-top: 4px;
  font-size: clamp(2.25rem, 6.5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

/* 2. Data sheet + body */
.report-main {
  display: grid;
  gap: 40px;
  margin-top: clamp(40px, 6vw, 96px);
}

.datasheet {
  align-self: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
}

.datasheet__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.datasheet__title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
}

.datasheet__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.datasheet__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 16px;
}

.datasheet__row {
  display: grid;
  align-content: start;
  gap: 2px;
  padding-block: 12px;
  border-bottom: 1px dashed #CFDCE8;
}
.datasheet__row--team { grid-column: 1 / -1; }
.datasheet__row:last-child { border-bottom: 0; padding-bottom: 0; }

.datasheet__row dt {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.datasheet__row dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.datasheet__team { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--dur) ease, color var(--dur) ease;
}
.team-chip:hover { border-color: var(--primary); color: var(--primary); }

.team-chip__avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--aqua-ice);
}

.report-body { max-width: 68ch; }

.report-body__lead {
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.report-body__section { margin-top: clamp(40px, 5vw, 64px); }

.report-body__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  letter-spacing: -0.03em;
}

.report-body__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.report-body__section p { color: var(--text-muted); }
.report-body__section p + p { margin-top: 14px; }

@media (min-width: 900px) {
  .report-main {
    grid-template-columns: minmax(260px, 4fr) minmax(0, 7fr);
    align-items: start;
    gap: clamp(48px, 6vw, 112px);
  }
  .datasheet { position: sticky; top: 24px; padding: 28px; }
  .datasheet__list { grid-template-columns: none; }
  .datasheet__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding-block: 14px; }
  .datasheet__row dd { text-align: right; }
  .datasheet__row--team { grid-template-columns: none; gap: 2px; }
  .datasheet__row--team dd { text-align: left; }
}

/* 3. Gallery */
.report-gallery { margin-top: clamp(72px, 10vw, 140px); }

.report-gallery__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}
.report-gallery__head .member-section__title { margin-bottom: 0; }

.report-gallery__hint {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.carousel.gallery { margin-top: clamp(24px, 3vw, 36px); }
.gallery .carousel__track { --gap: 12px; }

.carousel.gallery .gallery__item {
  flex: 0 0 auto;
  height: clamp(220px, 60vw, 420px);
  aspect-ratio: var(--ratio, 4 / 3);
}

.gallery__btn {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-touch-callout: none;
}
.carousel.is-active .gallery__btn { cursor: inherit; }

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 700ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .gallery__btn:hover .gallery__img { transform: scale(1.03); }
  .carousel.is-dragging .gallery__img { transform: none; }
}

@media (min-width: 1024px) {
  .gallery .carousel__track { --gap: 16px; }
  .carousel.gallery .gallery__item { height: clamp(340px, 34vw, 480px); }
}

/* Lightbox (full-screen dialog) */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(17, 19, 68, 0.95);
  color: #fff;
  overscroll-behavior: contain;
}
.lightbox[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  animation: fade-in 300ms ease;
}
.lightbox::backdrop { background: transparent; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
}

.lightbox__counter {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.lightbox__figure {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  min-height: 0;
  padding: 0 var(--gutter) 32px;
}

.lightbox__stage {
  width: min(100%, calc((100vh - 190px) * var(--ratio, 4 / 3)));
  width: min(100%, calc((100svh - 190px) * var(--ratio, 4 / 3)));
  aspect-ratio: var(--ratio, 4 / 3);
  touch-action: pan-y; /* horizontal swipes go to main.js */
  -webkit-user-select: none;
  user-select: none;
}
.lightbox__stage > *,
.lightbox__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  animation: fade-in 260ms ease;
}

.lightbox__caption {
  min-height: 1.5em;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  margin-top: -26px;
  background: rgba(17, 19, 68, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.lightbox__nav:hover:not(:disabled) { background: var(--primary); }
.lightbox__nav[hidden] { display: none; }
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }

/* 4. Pull-quote */
.report-quote {
  display: grid;
  justify-items: center;
  max-width: calc(980px + var(--gutter) * 2);
  margin-top: clamp(72px, 10vw, 140px);
  text-align: center;
}

.report-quote__text::before {
  content: "\201C";
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--aqua-mid);
}

.report-quote__text p {
  font-size: clamp(1.625rem, 3.8vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.report-quote__by { display: grid; gap: 2px; margin-top: 28px; }
.report-quote__author { font-weight: 600; }
.report-quote__role { font-size: 0.875rem; color: var(--text-muted); }

/* 5. Next project */
.report-end { margin-top: clamp(72px, 10vw, 140px); }

.report-next {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: end;
  gap: 6px 20px;
  min-height: clamp(280px, 42vw, 520px);
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  text-decoration: none;
}

.report-next__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; }

.report-next__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 900ms var(--ease-out);
}
.report-next__img .ph__label { margin-bottom: 22%; }

.report-next::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(17, 19, 68, 0.1) 0%, rgba(17, 19, 68, 0.55) 55%, rgba(17, 19, 68, 0.85) 100%);
  pointer-events: none;
}

.report-next__label,
.report-next__title,
.report-next__meta { grid-column: 1; }

.report-next__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.report-next__title {
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.report-next__meta {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.report-next__arrow {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: end;
  display: grid;
  place-items: center;
  width: clamp(52px, 6vw, 72px);
  height: clamp(52px, 6vw, 72px);
  border-radius: 50%;
  background: var(--aqua-ice);
  color: var(--navy);
  transition: transform var(--dur) var(--ease-out);
}

.report-next:hover .report-next__img { transform: scale(1.04); }
.report-next:hover .report-next__arrow { transform: translateX(4px); }


/* 19. Splash
   ========================================================================== */
.splash {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
  text-align: center;
  background: var(--surface);
}

.splash__logo {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 24px);
  color: var(--navy);
}
.splash__logo .splash__mark { height: clamp(64px, 14vw, 112px); }
.splash__logo .splash__wordmark { height: clamp(24px, 4.6vw, 38px); }

.splash__line {
  display: block;
  width: 56px;
  height: 2px;
  margin-top: -6px;
  border-radius: 2px;
  background: var(--aqua-mid);
  transform-origin: left center;
}

.splash__prompt {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.splash__prompt span + span::before {
  content: "/";
  margin-inline: 10px;
  opacity: 0.6;
}

.splash__choices {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.btn--lang { min-width: 112px; letter-spacing: 0.06em; }

/* 404 page */
.not-found { gap: 16px; }
.not-found__logo { color: var(--navy); margin-bottom: 20px; }
.not-found__logo .logo__svg { height: 40px; }
.not-found__lang { max-width: 44ch; }
.not-found__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.not-found__title--sub { font-size: 1.125rem; letter-spacing: -0.01em; margin-top: 12px; }
.not-found__text { margin-top: 8px; color: var(--text-muted); }
.not-found__choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}


/* 20. Dev helpers
   ========================================================================== */
.todo {
  background: #FFE45C;
  color: #111344;
  outline: 2px dashed #C99A00;
  outline-offset: 1px;
  border-radius: 3px;
  padding: 0 0.25em;
}


/* 21. Motion
   Only active with html.motion, which is never set with reduced motion.
   ========================================================================== */

/* Lenis smooth scroll (desktop / mouse only) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Intro elements stay hidden until motion.js has set their start state */
.motion.intro-pending .hero__title,
.motion.intro-pending .hero__subtitle,
.motion.intro-pending .hero__content .btn,
.motion.intro-pending .splash__logo,
.motion.intro-pending .splash__line,
.motion.intro-pending .splash__prompt,
.motion.intro-pending .splash__choices { opacity: 0; }

.motion.intro-pending.nav-intro .site-header__logo .orbit-outer,
.motion.intro-pending.nav-intro .site-header__logo .orbit-inner,
.motion.intro-pending.nav-intro .site-header__logo .letter { opacity: 0; }

/* Split heading words: the clip reaches past the box so descenders and italic overhangs are not cut */
.split-word {
  display: inline-block;
  clip-path: inset(-0.3em -0.15em -0.12em -0.15em);
}
.split-word__inner { display: inline-block; will-change: transform; }
.is-split-done .split-word { clip-path: none; }
.is-split-done .split-word__inner { will-change: auto; }

.from-splash body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--surface);
  pointer-events: none;
  animation: splash-wipe 1000ms 120ms cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
@keyframes splash-wipe { to { transform: translateY(-100%); } }


/* 22. Background sink, crosshair dividers, magnification indicator
   ========================================================================== */

/* Background sink: opacity only (cheap to composite) */
.sink {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--surface-lab);
  opacity: 0;
  pointer-events: none;
}

.crosshair {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 24px;
}
.crosshair__line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.crosshair__line--start { transform-origin: right center; }
.crosshair__line--end { transform-origin: left center; }
.crosshair__ring {
  position: relative;
  flex: none;
  width: 13px;
  height: 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 50%;
}
.crosshair__ring::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  bottom: -6px;
  width: 1px;
  margin-left: -0.5px;
  background: var(--border);
}
.crosshair__ring::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px 0 0 -1.5px;
  border-radius: 50%;
  background: var(--aqua-mid);
}

/* Magnification indicator (main.js shows it from 1024px) */
.mag {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 30;
  height: 40vh;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.mag[hidden] { display: none; }
.mag.is-visible { opacity: 1; pointer-events: auto; }

.mag__track {
  position: relative;
  width: 1px;
  height: 100%;
  background: var(--border);
}

.mag__tick {
  position: absolute;
  right: -6px;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  display: grid;
  place-items: center;
  text-decoration: none;
}
.mag__tick::before {
  content: "";
  width: 9px;
  height: 1px;
  background: color-mix(in srgb, var(--primary) 35%, var(--border));
  transition: background-color var(--dur) ease, width var(--dur) var(--ease-out);
}
.mag__tick:hover::before,
.mag__tick.is-current::before { width: 13px; background: var(--primary); }

.mag__name {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  display: inline-flex;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
}
.mag__name-value { color: var(--text-muted); font-variant-numeric: tabular-nums; text-transform: none; }
.mag__tick:hover .mag__name { opacity: 1; transform: translate(0, -50%); }

.mag__indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  will-change: transform;
}
.mag__indicator::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--surface);
}
.mag__value {
  position: absolute;
  right: 12px;
  top: 0;
  transform: translateY(-50%);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  white-space: nowrap;
}
.mag__track:has(.mag__tick:hover) .mag__value { opacity: 0; }


/* 23. Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover,
  .round-btn:hover:not(:disabled),
  .sheet-back:hover,
  .pcard:hover .pcard__cover,
  .member-next:hover .member-next__arrow { transform: none; }

  .mcard:hover .mcard__photo,
  .mcard:focus-visible .mcard__photo { transform: none; }
  .mcard__bio > div { transform: none; }

  .bcard:hover .bcard__cover,
  .bcard:focus-visible .bcard__cover,
  .gallery__btn:hover .gallery__img,
  .report-next:hover .report-next__img,
  .report-next:hover .report-next__arrow { transform: none; }
  .bcard__more > span { transform: none; }
}
