/* ═══════════════════════════════════════════════════════════
   WaldorfMinds — shared foundation
   Font · colours · navigation · footer · motion
   Used by every page. Self-hosted, no third-party requests.
   ═══════════════════════════════════════════════════════════ */

/* ─── FONT (self-hosted, so no visitor IP goes to Google) ── */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/exo2-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: 'Exo 2';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/exo2-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: 'Exo 2';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/exo2-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: 'Exo 2';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url(../fonts/exo2-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;
}

/* ─── TOKENS (app palette) ───────────────────────────────── */
:root {
  --gold: #FFD43E;
  --gold-soft: #FFF4C7;
  --ink:       #201A0C;
  --ink-soft:  rgba(32, 26, 12, 0.66);
  --ink-faint: rgba(32, 26, 12, 0.14);
  --paper: #FFFFFF;
  --cream: #FFFBEF;

  --red:    #C41F30;
  --green:  #5E8A50;
  --blue:   #378FB0;
  --amber:  #B9790B;
  --violet: #6E5AA8;

  --c: var(--blue);
  --c-tint: color-mix(in srgb, var(--c) 9%, #fff);
  --c-line: color-mix(in srgb, var(--c) 28%, #fff);

  --font: 'Exo 2', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --max-w: 1180px;
  --nav-h: 86px;

  /* hand-painted, never-quite-round shapes */
  --blob-a: 58% 42% 55% 45% / 47% 56% 44% 53%;
  --blob-b: 44% 56% 40% 60% / 58% 42% 58% 42%;
  --blob-c: 52% 48% 62% 38% / 40% 60% 40% 60%;
  --card:   26px 20px 30px 18px / 20px 28px 18px 30px;

  color-scheme: light;
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  background: var(--paper);
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* tints follow whatever colour the nearest element sets with --c */
*, *::before, *::after {
  --c-tint: color-mix(in srgb, var(--c) 9%, #fff);
  --c-line: color-mix(in srgb, var(--c) 28%, #fff);
}
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* gold at the top, fading to white */
body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--sky, 720px);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse 45% 30% at 12% 8%, rgba(255, 246, 200, 0.75), transparent 70%),
    radial-gradient(ellipse 40% 28% at 88% 14%, rgba(255, 190, 40, 0.4), transparent 70%),
    radial-gradient(ellipse 35% 22% at 30% 46%, rgba(255, 200, 60, 0.35), transparent 70%),
    radial-gradient(ellipse 30% 20% at 80% 52%, rgba(244, 181, 196, 0.22), transparent 70%),
    linear-gradient(180deg, var(--gold) 0%, #FFD95A 36%, #FFFFFF 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}
main, .site-footer { position: relative; z-index: 2; }

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

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

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--ink { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(32, 26, 12, 0.22); }
.btn--ink:hover { box-shadow: 0 12px 28px rgba(32, 26, 12, 0.28); }
.btn--glass {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.5);
  backdrop-filter: blur(12px) saturate(1.5);
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 18px rgba(90, 62, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.55); }
.btn--line { color: var(--ink); background: #fff; border-color: var(--ink-faint); }
.btn--line:hover { border-color: var(--ink-soft); }
.btn--small { padding: 9px 18px; font-size: 13.5px; }

/* ─── NAVIGATION ─────────────────────────────────────────── */
/* a soft floating bar, like a pebble resting on the page */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px clamp(10px, 3vw, 32px);
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  max-width: var(--max-w);
  height: 62px;
  margin: 0 auto;
  padding: 0 8px 0 8px;
  border-radius: 999px;
  background: rgba(255, 251, 236, 0.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 26px rgba(140, 95, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled .nav__bar {
  background: rgba(255, 251, 239, 0.92);
  box-shadow: 0 10px 30px rgba(32, 26, 12, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.nav__main, .nav__toggle { grid-column: 1; justify-self: start; }
/* the logo sits in a little round badge in the middle of the bar */
.nav__brand {
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  margin: -8px 0 -14px;
  border-radius: 50%;
  background: #FFFBEF;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(140, 95, 0, 0.14);
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__brand:hover { transform: rotate(-6deg) scale(1.04); }
.nav__brand img { height: 50px; width: auto; }
.nav__cta { grid-column: 3; justify-self: end; }

.nav__links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav__links a {
  position: relative;
  display: block;
  padding: 9px 13px 11px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: var(--blob-a);
  background: var(--dot);
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav__links a:hover { background: rgba(255, 255, 255, 0.7); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scale(1); }
.nav__links a[aria-current="page"] { background: #fff; }
.dot-red    { --dot: var(--red); }
.dot-green  { --dot: var(--green); }
.dot-blue   { --dot: var(--blue); }
.dot-violet { --dot: var(--violet); }
.dot-gold   { --dot: var(--amber); }

.nav__toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ink-faint);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle-icon { position: relative; width: 15px; height: 10px; }
.nav__toggle-icon::before, .nav__toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav__toggle-icon::before { top: 0; }
.nav__toggle-icon::after { top: 8px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { top: 4px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { top: 4px; transform: rotate(-45deg); }

/* full-screen menu (small screens) */
.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
  padding: calc(var(--nav-h) + 12px) 32px calc(32px + env(safe-area-inset-bottom));
  background: var(--cream);
  overflow: hidden auto;
  animation: menu-in 0.35s ease;
}
.menu::before, .menu::after {
  content: '';
  position: absolute;
  z-index: -1;
  border-radius: var(--blob-a);
  filter: blur(2px);
}
.menu::before { right: -90px; top: 18%; width: 240px; height: 220px; background: var(--gold); opacity: 0.55; }
.menu::after { left: -70px; bottom: -40px; width: 200px; height: 180px; background: #F4B5C4; opacity: 0.45; border-radius: var(--blob-b); }
@keyframes menu-in { from { opacity: 0; } to { opacity: 1; } }
.menu[hidden] { display: none; }
.menu__links { list-style: none; display: grid; gap: 6px; }
.menu__links a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  font-size: clamp(28px, 8.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.menu__links a::before {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: var(--blob-a);
  background: var(--dot);
}
.menu__links a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--dot); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.menu__small { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.menu__small a { text-decoration: none; }
.menu-open { overflow: hidden; }

@media (max-width: 1079px) {
  :root { --nav-h: 76px; }
  .nav { padding: 10px 10px; }
  .nav__bar { height: 56px; padding: 0 6px; }
  .nav__main { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__brand { width: 64px; height: 64px; margin: -6px 0 -12px; }
  .nav__brand img { height: 42px; }
}
@media (max-width: 400px) {
  .nav__toggle-label { display: none; }
  .nav__toggle { padding: 12px 14px; }
  .nav__cta { padding: 9px 14px; font-size: 13px; }
}
@media (min-width: 1080px) { .menu { display: none !important; } }

/* ─── LAYOUT HELPERS ─────────────────────────────────────── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.section { padding: clamp(64px, 10vw, 120px) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: var(--blob-a);
  background: var(--c);
}
.h2 {
  margin-top: 12px;
  font-size: clamp(30px, 4.6vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 em { font-style: italic; color: var(--c); }
.lede {
  margin-top: 16px;
  max-width: 60ch;
  font-size: clamp(17px, 1.9vw, 19.5px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(36px, 8vh, 80px) 16px clamp(40px, 7vh, 72px);
  text-align: center;
}
.page-hero__kicker {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(32, 26, 12, 0.7);
}
.page-hero__title {
  margin-top: 12px;
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 16px rgba(94, 62, 0, 0.34), 0 1px 3px rgba(94, 62, 0, 0.22);
}
.page-hero__title em { font-style: italic; }
.page-hero__lede {
  max-width: 58ch;
  margin: 20px auto 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
/* little figures holding hands, standing on a warm meadow */
.site-footer { margin-top: clamp(8px, 2vw, 24px); }
.site-footer__people {
  display: block;
  width: min(720px, 92%);
  height: auto;
  margin: 0 auto -4px;
}
.site-footer__body {
  padding: clamp(44px, 6vw, 64px) 0 32px;
  border-radius: clamp(28px, 5vw, 56px) clamp(28px, 5vw, 56px) 0 0;
  background:
    radial-gradient(ellipse 40% 60% at 8% 0%, rgba(255, 212, 62, 0.35), transparent 70%),
    radial-gradient(ellipse 35% 50% at 96% 100%, rgba(244, 181, 196, 0.3), transparent 70%),
    var(--gold-soft);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-footer__brand img { height: 48px; width: auto; }
.site-footer__tag {
  margin-top: 14px;
  max-width: 32ch;
  font-size: 15px;
  line-height: 1.6;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.site-footer__hello {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(140, 95, 0, 0.1);
  transition: transform 0.25s ease;
}
.site-footer__hello:hover { transform: translateY(-2px); }
.site-footer h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}
.site-footer h2::before { content: ''; width: 9px; height: 9px; border-radius: var(--blob-a); background: var(--h, var(--red)); }
.site-footer__grid > :nth-child(3) h2 { --h: var(--green); }
.site-footer__grid > :nth-child(4) h2 { --h: var(--blue); }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { font-size: 15px; font-weight: 500; text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--amber); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1.5px dashed rgba(140, 95, 0, 0.22);
  font-size: 12.5px;
  color: color-mix(in srgb, var(--ink) 66%, transparent);
}
.site-footer__promise {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #3F6435;
  font-weight: 600;
}
.site-footer__promise::before { content: ''; width: 8px; height: 8px; border-radius: var(--blob-a); background: var(--green); }
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .site-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
  .site-footer__grid > nav:last-child { grid-column: 1 / -1; }
}

/* ─── MOTION ─────────────────────────────────────────────── */
.rise { opacity: 0; }
.is-loaded .rise {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(5px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .rise, .no-js .reveal { opacity: 1; transform: none; }

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

@media print {
  body::before, .nav, .menu, .skip { display: none !important; }
  .rise, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
}
