/* Self-hosted fonts (variable, latin + latin-ext covers hr/sl/en) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/inter-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: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jost-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: "Jost"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/jost-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; }

/* =========================================================
   Umnian — design tokens
   Palette derived from the logo: sand & taupe brain stripes
   ========================================================= */
:root {
  /* Primitives */
  --white: #FFFFFF;
  --cream-50: #FBF8F4;
  --sand-100: #F6EDE4;
  --sand-200: #EEDFD1;
  --sand-300: #E0C8B2;   /* logo stripe (sand) */
  --sand-400: #D1B59C;
  --sand-500: #C2A285;
  --taupe-300: #C9B7AE;
  --taupe-400: #B29D93;  /* logo stripe (taupe) */
  --taupe-500: #98837A;
  --brown-600: #78625A;
  --brown-700: #614E47;
  --brown-800: #44362F;
  --brown-900: #2B221E;
  --glow: #D1B49A;       /* impulse light: a touch darker than the logo sand */

  /* Semantic */
  --color-bg: var(--cream-50);
  --color-surface: var(--white);
  --color-surface-alt: var(--sand-100);
  --color-text: var(--brown-900);
  --color-text-muted: #6B5D56;
  --color-border: #E9E0D8;
  --color-primary: var(--brown-700);
  --color-primary-hover: var(--brown-800);
  --color-on-primary: var(--white);
  --color-accent: var(--taupe-400);
  --color-error: #A3362B;
  --color-focus: var(--brown-600);

  /* Type */
  --font-display: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius / shadow */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --shadow-sm: 0 1px 2px rgba(43, 34, 30, .05), 0 2px 8px rgba(43, 34, 30, .04);
  --shadow-md: 0 2px 6px rgba(43, 34, 30, .05), 0 12px 32px rgba(43, 34, 30, .07);
  --shadow-lg: 0 24px 64px rgba(43, 34, 30, .14);

  /* Motion */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 160ms;
  --dur-med: 280ms;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --z-nav: 40;
  --z-modal: 100;
}

/* =========================================================
   Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
a { color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px;
  z-index: 1000; padding: 12px 18px;
  background: var(--color-primary); color: var(--color-on-primary);
  border-radius: 999px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }

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

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem; font-weight: 500; letter-spacing: -.005em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease,
              box-shadow var(--dur-med) var(--ease-out), transform var(--dur-fast) ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
  box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px rgba(99, 79, 70, .22);
}
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 10px 26px rgba(99, 79, 70, .3); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { background: var(--sand-100); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--lg { --h: 58px; padding: 0 30px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-med) var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }

/* =========================================================
   Navigation — floating pill
   ========================================================= */
.nav {
  position: fixed; inset: 14px 0 auto; z-index: var(--z-nav);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  position: relative;
  isolation: isolate;
  max-width: var(--container);
  margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px;
  padding: 8px 8px 8px 20px;
  /* Liquid glass: milky white body, strong frosted blur, specular rim and soft depth */
  background-color: rgba(255, 255, 255, 0.506);
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%, rgba(244, 236, 227, .18) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(22px) saturate(190%) brightness(1.04);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(255, 255, 255, .45),
    inset 0 -12px 24px -16px rgba(122, 99, 89, .14),
    0 1px 2px rgba(43, 34, 30, .05),
    0 10px 30px -8px rgba(43, 34, 30, .12);
  transition: box-shadow var(--dur-med) var(--ease-out), background-color var(--dur-med) ease;
}
/* Specular rim: bright at the top-left and bottom-right edges, like light bending through glass */
.nav__inner::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(125deg,
    rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .25) 22%, rgba(214, 192, 168, .25) 50%,
    rgba(255, 255, 255, .2) 78%, rgba(255, 255, 255, .95) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
/* Soft sheen across the upper half */
.nav__inner::after {
  content: ""; position: absolute; inset: 2px 24px auto; height: 45%; z-index: -1;
  border-radius: 999px;
  background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}
.nav.is-scrolled .nav__inner {
  background-color: rgba(255, 255, 255, .506);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(255, 255, 255, .45),
    inset 0 -12px 24px -16px rgba(122, 99, 89, .14),
    0 2px 6px rgba(43, 34, 30, .05),
    0 16px 40px -10px rgba(43, 34, 30, .16);
}

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__word {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem; letter-spacing: .14em;
  color: var(--taupe-500);
}
.brand__um { color: var(--sand-500); }
.brand--light .brand__word { color: var(--taupe-400); font-size: 1.5rem; }
.brand--light .brand__um { color: var(--sand-300); }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0 14px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  color: var(--color-text-muted);
  transition: background-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-text); background: rgba(244, 236, 227, .8); }

/* Language dropdown */
.lang { position: relative; }
.lang__toggle {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 12px;
  border: 0; border-radius: 999px;
  background: rgba(244, 236, 227, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 0 0 1px rgba(255, 255, 255, .35);
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}
.lang__toggle:hover, .lang__toggle[aria-expanded="true"] { background: var(--sand-200); }
.lang__globe, .lang__chevron { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.lang__globe { width: 18px; height: 18px; color: var(--brown-600); }
.lang__chevron { width: 16px; height: 16px; color: var(--color-text-muted); transition: transform var(--dur-med) var(--ease-out); }
.lang__toggle[aria-expanded="true"] .lang__chevron { transform: rotate(180deg); }

.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 184px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 200ms var(--ease-out), visibility 0s linear 200ms;
}
.lang.is-open .lang__menu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 180ms ease, transform 240ms var(--ease-out), visibility 0s;
}
.lang__option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px;
  padding: 0 12px;
  border: 0; border-radius: 12px;
  background: transparent;
  font-size: .9375rem; text-align: left;
  color: var(--color-text); text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}
.lang__option:hover, .lang__option:focus-visible { background: var(--sand-100); outline-offset: -2px; }
.lang__option[hidden] { display: none; }
.lang__code {
  display: inline-grid; place-items: center;
  width: 32px; height: 24px;
  border-radius: 6px;
  background: var(--sand-100);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
  color: var(--brown-700);
}
.lang__option:hover .lang__code { background: var(--sand-200); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(100dvh, 920px);
  display: flex; align-items: center;
  padding: 128px 0 72px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 60% at 85% 40%, rgba(224, 200, 178, .5) 0%, rgba(224, 200, 178, 0) 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(201, 183, 174, .45) 0%, rgba(201, 183, 174, 0) 70%),
    var(--color-bg);
}
.hero__stripes { position: absolute; z-index: -1; width: 320px; height: auto; opacity: .5; }
.hero__stripes--left { left: -40px; top: 40%; }
.hero__stripes--right { right: -40px; top: 0; height: 100%; width: auto; max-width: 52vw; opacity: .55; }

/* Brain: on load, impulses travel from the centre and draw the UM letters, which then stay in the logo sand */
.hero__brain { opacity: .3; overflow: visible; } /* same strength on every screen size */
.hero__brain-base { opacity: .6; }
.hero__brain .impulse,
.hero__brain .trail { animation: 2.6s cubic-bezier(.45, 0, .25, 1) .4s both; }
.hero__brain .impulse { stroke-dasharray: .2 2; animation-name: brain-impulse; }
.hero__brain .trail { stroke-dasharray: 2 2; animation-name: brain-trail; }
.hero__brain .impulse--m1, .hero__brain .impulse--m2,
.hero__brain .trail--m1, .hero__brain .trail--m2 { animation-delay: .65s; }
.hero__brain-letters { opacity: 0; animation: brain-letters 3.6s ease-in-out .4s both; }
.hero__brain-spark {
  opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: brain-spark 2.6s ease-out .4s both;
}
/* Head and trail fronts both run 0 → 1.2 of the path so the letter fills in right behind the impulse */
@keyframes brain-impulse {
  from { stroke-dashoffset: .2; }
  to   { stroke-dashoffset: -1; }
}
@keyframes brain-trail {
  from { stroke-dashoffset: 2; }
  to   { stroke-dashoffset: .8; }
}
@keyframes brain-letters {
  0%, 70% { opacity: 0; }
  100%    { opacity: 1; }
}
@keyframes brain-spark {
  0%   { opacity: 0; transform: scale(.4); }
  10%  { opacity: .9; }
  50%, 100% { opacity: 0; transform: scale(2.4); }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 500;
  color: var(--color-text);
}
.hero__sub {
  margin-top: 24px;
  max-width: 34ch;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  line-height: 1.5;
  color: var(--color-text-muted);
}
.hero__copy .btn { margin-top: 40px; }


/* =========================================================
   Sections & panels (subscrr-style large rounded cards)
   ========================================================= */
.section { padding: 16px 0; }
.panel {
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 96px) clamp(20px, 6vw, 88px);
}
.panel--white { background: var(--color-surface); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.panel--sand { background: var(--color-surface-alt); }

.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}
.section-sub {
  margin-top: 16px;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--color-text-muted);
}
.section-cta { display: flex; justify-content: center; margin-top: clamp(40px, 6vw, 64px); }

/* Stakes */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(24px, 4vw, 56px);
  max-width: 960px; margin-inline: auto;
}
.risk {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 4px;
  border-top: 1px solid var(--color-border);
  font-size: 1.0625rem; line-height: 1.5;
}
.risk:nth-last-child(-n+2) { border-bottom: 1px solid var(--color-border); }
.risk__node {
  position: relative; flex: none;
  width: 12px; height: 12px; margin-top: 7px;
  background: var(--taupe-400);
  clip-path: polygon(30% 0, 100% 0, 100% 70%, 70% 100%, 0 100%, 0 30%); /* chamfered like the logo stripes */
}

/* Value */
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.value-card {
  display: flex; flex-direction: column; gap: 28px;
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  font-size: 1.0625rem; line-height: 1.5;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px; flex: none;
  border-radius: 16px;
  background: var(--sand-100);
  color: var(--brown-700);
}
.panel--sand .icon-badge { background: var(--sand-200); }
.icon-badge svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Empathy & competency */
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.proof {
  padding: clamp(28px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  border: 1px solid var(--color-border);
}
.proof__title { margin-top: 28px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; }
.proof__text { margin-top: 10px; color: var(--color-text-muted); font-size: 1.0625rem; }

.quote {
  grid-column: 1 / -1;
  position: relative;
  margin: 0;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: var(--brown-900);
  color: var(--sand-100);
  overflow: hidden;
  isolation: isolate;
}
.quote::before {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; right: -160px; top: -220px;
  background: radial-gradient(closest-side, rgba(178, 157, 147, .35), rgba(178, 157, 147, 0));
}
.quote__mark { width: 44px; height: auto; fill: var(--taupe-400); }
.quote blockquote { margin: 28px 0 0; }
.quote blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 3.4vw, 2.625rem);
  line-height: 1.2;
  letter-spacing: -.02em;
  max-width: 24ch;
  color: var(--white);
}
.quote figcaption {
  margin-top: 28px;
  display: flex; align-items: center; gap: 12px;
  color: var(--taupe-300); font-size: 1rem;
}
.quote figcaption::before { content: ""; width: 32px; height: 1px; background: currentColor; }

/* Plan */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: step;
}
.steps::before {
  content: ""; position: absolute; z-index: 0;
  top: 54px; left: 12%; right: 12%;
  border-top: 2px dashed var(--taupe-300);
}
.step {
  position: relative; z-index: 1;
  padding: 28px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.step__num {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-primary); color: var(--white);
  font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem;
  box-shadow: 0 0 0 6px var(--white), 0 0 0 7px var(--sand-300);
}
.step__title { margin-top: 28px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; }
.step__text { margin-top: 10px; color: var(--color-text-muted); font-size: 1.0625rem; }

/* Manifesto / explanatory paragraph */
.section--manifesto { padding: clamp(64px, 10vw, 136px) 0; }
.manifesto { max-width: 880px; margin-inline: auto; text-align: center; }
.manifesto__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.06; letter-spacing: -.035em;
}
.manifesto__sub {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  color: var(--taupe-500);
  color: var(--brown-600);
}
.manifesto__body {
  margin: 36px auto 0;
  max-width: 64ch;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.75;
  color: var(--color-text-muted);
}
.manifesto .btn { margin-top: 44px; }

/* =========================================================
   Footer
   ========================================================= */
.footer {
  margin: 0;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--brown-900);
  color: var(--sand-100);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
  padding-block: 44px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-size: .9375rem;
  color: var(--taupe-300);
  transition: color var(--dur-fast) ease;
}
.footer__nav a:hover { color: var(--white); }
.footer :focus-visible { outline-color: var(--sand-300); }
.footer__legal {
  flex-basis: 100%; margin: 0; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8125rem; line-height: 1.6; color: var(--taupe-300);
}

/* Form consent note */
.form-note { margin: 0 0 16px; font-size: .8125rem; line-height: 1.55; color: var(--color-text-muted); }
.form-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Legal page */
.legal { display: grid; gap: 14px; max-width: 760px; margin-inline: auto; font-size: 1rem; line-height: 1.7; color: var(--color-text-muted); }
.legal h2 { margin-top: 28px; font-size: clamp(1.35rem, 2.4vw, 1.75rem); color: var(--color-text); }
.legal h3 { margin-top: 12px; font-size: 1.125rem; color: var(--color-text); }
.section.legal-page { padding-top: 112px; }
.legal h1 + .legal__updated + h2 { margin-top: 12px; }
.legal p, .legal ul, .legal dl { margin: 0; }
.legal ul { padding-left: 1.25rem; display: grid; gap: 6px; }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; }
.legal dt { font-weight: 600; color: var(--color-text); }
.legal dd { margin: 0; }
.legal__updated { font-size: .875rem; }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; gap: 0; } .legal dd { margin-bottom: 8px; } }

/* =========================================================
   Modal form
   ========================================================= */
.modal {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0; border: 0;
  background: transparent;
  color: var(--color-text);
  overflow: visible;
}
.modal::backdrop {
  background: rgba(43, 34, 30, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modal-in var(--dur-med) var(--ease-out); }
.modal[open]::backdrop { animation: fade-in var(--dur-med) ease; }
.modal.is-closing { animation: modal-out 180ms ease-in forwards; }
.modal.is-closing::backdrop { animation: fade-out 180ms ease-in forwards; }

@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

.modal__card {
  position: relative;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: var(--sand-100);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}
.modal__close:hover { background: var(--sand-200); }
.modal__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.modal__title {
  padding-right: 48px;
  font-size: clamp(1.625rem, 3vw, 2rem);
  line-height: 1.15; letter-spacing: -.025em;
}
.modal__title:focus { outline: none; }
.modal__text { margin-top: 12px; color: var(--color-text-muted); }

#consult-form { margin-top: 28px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: .9375rem; font-weight: 500; }
.req { color: var(--color-error); }
.field input, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit; font-size: 1rem;
  color: var(--color-text);
  background: var(--cream-50);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field textarea:hover { border-color: var(--taupe-300); }
.field input:focus, .field textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--brown-600);
  box-shadow: 0 0 0 4px rgba(122, 99, 89, .16);
}
.field input[aria-invalid="true"] { border-color: var(--color-error); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(163, 54, 43, .14); }
.field__error { font-size: .875rem; color: var(--color-error); }

.form-error-summary {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #FBEDEA;
  color: var(--color-error);
  font-size: .9375rem;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#form-submit { margin-top: 6px; }
.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Short or narrow screens: tighten the form so it fits without scrolling inside the dialog */
@media (max-width: 600px), (max-height: 780px) {
  .modal__card { padding: 22px 20px; }
  .modal__text { margin-top: 8px; font-size: .9375rem; line-height: 1.45; }
  #consult-form { margin-top: 16px; gap: 12px; }
  .field { gap: 6px; }
  .field-row { gap: 12px; }
  .field label { font-size: .875rem; }
  .field input, .field textarea { min-height: 44px; padding: 10px 14px; }
  .field textarea { min-height: 76px; height: 76px; }
  #form-submit { margin-top: 2px; }
}

.modal__success { text-align: center; padding-block: 12px; }
.modal__success .modal__title { padding-right: 0; margin-top: 20px; }
.modal__success .btn { margin-top: 28px; }
.success-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--sand-100);
  color: var(--brown-700);
}
.success-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { min-height: 480px; padding-top: 120px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__stripes--right { height: auto; width: 420px; max-width: none; right: -140px; top: 24px; opacity: .3; }
  .hero__stripes--left { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { top: 40px; bottom: 40px; left: 54px; right: auto; border-top: 0; border-left: 2px dashed var(--taupe-300); }
}

@media (max-width: 720px) {
  .risk-grid { grid-template-columns: 1fr; }
  .risk:nth-last-child(-n+2) { border-bottom: 0; }
  .risk:last-child { border-bottom: 1px solid var(--color-border); }
  /* keep wireframe reading order on single column: left column first, then right */
  .risk:nth-child(1) { order: 1; } .risk:nth-child(3) { order: 2; }
  .risk:nth-child(5) { order: 3; } .risk:nth-child(7) { order: 4; }
  .risk:nth-child(2) { order: 5; } .risk:nth-child(4) { order: 6; }
  .risk:nth-child(6) { order: 7; } .risk:nth-child(8) { order: 8; }
  .proof-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .panel { border-radius: var(--radius-lg); }
  .section { padding: 8px 0; }
  .section--manifesto { padding: 64px 0 48px; }
}

@media (max-width: 600px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-card { flex-direction: row; align-items: center; gap: 18px; padding: 22px; }
  .nav { inset-block-start: 10px; }
  .nav__inner { padding-left: 14px; min-height: 58px; }
  .nav__cta { display: none; }
  .nav__actions { gap: 4px; }
  .nav__link { padding: 0 10px; }
  .brand__word { font-size: 1.0625rem; letter-spacing: .12em; }
  .brand__mark { width: 28px; height: 28px; }
  .footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .footer__inner { flex-direction: column; align-items: center; gap: 12px; padding-block: 28px 20px; text-align: center; }
  .brand--light .brand__word { font-size: 1.25rem; }
  .footer__nav { justify-content: center; gap: 0 22px; }
  .footer__nav a { font-size: .875rem; }
}

/* Not enough room for the nav CTA between phone and desktop widths; page CTAs remain */
@media (max-width: 760px) {
  .nav__cta { display: none; }
}

@media (max-width: 360px) {
  .btn--lg { padding-inline: 20px; font-size: .9375rem; }
  .split > * { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Above-the-fold intro: plays on load, independent of scroll observers */
.intro { animation: intro-up 800ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes intro-up { from { opacity: 0; transform: translateY(18px); } }




/* =========================================================
   Programmes, photos & About page
   ========================================================= */
.programs, .areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.program, .area {
  display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  border: 1px solid var(--color-border);
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out);
}
.panel--sand .area { background: var(--white); border-color: transparent; box-shadow: var(--shadow-sm); }
.program:hover, .area:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.program__art {
  display: grid; place-items: center;
  width: 112px; height: 112px; flex: none;
  padding: 14px;
  border-radius: 28px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.panel--sand .program__art { background: var(--cream-50); box-shadow: none; }
.program__art img { width: 100%; height: 100%; object-fit: contain; }
.program__title, .area__title { margin-top: 28px; font-size: 1.375rem; line-height: 1.25; letter-spacing: -.015em; }
.program__text, .area__text { margin-top: 10px; color: var(--color-text-muted); font-size: 1.0625rem; line-height: 1.6; }

/* Wide photo with caption */
.photo-band {
  position: relative; margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden; isolation: isolate;
  background: var(--sand-200);
}
.photo-band img { width: 100%; height: clamp(320px, 42vw, 540px); object-fit: cover; object-position: 50% 40%; }
.photo-band figcaption {
  position: absolute; inset: auto 0 0; z-index: 1;
  padding: clamp(18px, 3vw, 32px) clamp(20px, 5vw, 64px);
  background: rgba(160, 124, 104, .6); /* warm brand brown, translucent so the photo still shows through */
  text-shadow: 0 1px 12px rgba(43, 34, 30, .35);
  -webkit-backdrop-filter: blur(6px) brightness(1.2) saturate(1.2);
  backdrop-filter: blur(6px) brightness(1.2) saturate(1.2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.25; letter-spacing: -.015em;
  max-width: none;
  text-wrap: balance;
}
.photo-band--audience img { object-position: 50% 55%; }
.photo-band--audience figcaption { font-family: var(--font-body); font-size: clamp(.9375rem, 1.4vw, 1.0625rem); letter-spacing: 0; }

/* Speaker photo: same translucent brown caption bar as the wide photos */
.photo-frame { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-md); }
.photo-frame .photo { display: block; box-shadow: none; border-radius: 0; }
.photo-frame figcaption {
  position: absolute; inset: auto 0 0; z-index: 1;
  padding: 24px 28px;
  background: rgba(160, 124, 104, .6);
  text-shadow: 0 1px 12px rgba(43, 34, 30, .35);
  -webkit-backdrop-filter: blur(6px) brightness(1.2) saturate(1.2);
  backdrop-filter: blur(6px) brightness(1.2) saturate(1.2);
  color: var(--white);
  font-family: var(--font-body); font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.3;
}

/* About */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100dvh, 920px); /* same height as the home hero */
  display: flex; align-items: center;
  padding: 128px 0 72px;
  background:
    radial-gradient(60% 70% at 88% 30%, rgba(224, 200, 178, .5) 0%, rgba(224, 200, 178, 0) 70%),
    radial-gradient(45% 50% at 6% 100%, rgba(201, 183, 174, .4) 0%, rgba(201, 183, 174, 0) 70%),
    var(--color-bg);
}
.page-hero__inner {
  width: 100%;
  display: grid; grid-template-columns: 1fr; align-items: center;
  gap: clamp(24px, 6vw, 80px);
}
.page-hero__backdrop {
  position: absolute; z-index: -1; right: 16px; top: 50%; transform: translateY(-50%);
  height: 100%; width: auto; max-width: 52vw; object-fit: contain; object-position: right center;
  opacity: .3; /* same strength as the home brain on every screen size */
}
.page-hero__title { font-size: clamp(2.6rem, 6vw, 4.75rem); line-height: 1.03; letter-spacing: -.035em; }
.page-hero__lead {
  margin-top: 28px; max-width: 36ch;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.6vw, 2rem); line-height: 1.35; letter-spacing: -.015em;
  color: var(--brown-600);
}

.split {
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center;
  gap: clamp(28px, 6vw, 88px);
}
.split--reverse { grid-template-columns: .85fr 1.15fr; }
.prose { display: grid; gap: 20px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); line-height: 1.75; color: var(--color-text-muted); }
.section-title--left { text-align: left; color: var(--color-text); }
.split__cta { margin-top: 12px; }
.split__media { margin: 0; }
.photo { width: 100%; border-radius: var(--radius-lg); object-fit: cover; box-shadow: var(--shadow-md); }
.photo--portrait { aspect-ratio: 4 / 5; max-height: 600px; }
.section--end { padding-bottom: 64px; }

@media (max-width: 1024px) {
  .programs, .areas { grid-template-columns: 1fr; }
  .program, .area { display: grid; grid-template-columns: 112px 1fr; column-gap: 24px; align-items: start; }
  .program__art { grid-row: span 2; }
  .program__title, .area__title { margin-top: 4px; }
}
@media (max-width: 900px) {
  .page-hero { min-height: 480px; padding-top: 120px; } /* matches .hero */
  .page-hero__backdrop { height: auto; width: 280px; max-width: none; }
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 2; }
  .photo--portrait { max-height: 460px; aspect-ratio: 4 / 3; object-position: 50% 28%; }
  .photo--cards { max-height: none; aspect-ratio: 1402 / 1122; object-position: 50% 0; } /* show the whole picture so heads are never cropped */
}
@media (max-width: 600px) {
  .nav__link { padding: 0 10px; font-size: .875rem; }
  .program, .area { grid-template-columns: 1fr; }
  .program__art { width: 88px; height: 88px; border-radius: 22px; padding: 12px; grid-row: auto; }
  .program__title, .area__title { margin-top: 20px; }
  .photo-band { border-radius: var(--radius-lg); }
}
