/* Edvigorate: living field */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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: "Archivo";
  src: url("../fonts/archivo-latin-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  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;
}

:root {
  --deep: #0e1680;
  --field: #1c2bb8;
  --crest: #3a55ff;
  --mist: #eef1ff;
  --mist-soft: #eaedff;
  --spark: #e3ff4f;
  --spark-hot: #f1ffa0;
  --rule: rgba(238, 241, 255, 0.28);
  --rule-strong: rgba(238, 241, 255, 0.55);

  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --measure: 60ch;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --step--1: 0.8125rem;
  --step-0: 1.125rem;
  --step-1: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 4.2rem);
  --display: clamp(3.75rem, 1rem + 11.2vw, 12rem);
  --display-2: clamp(3rem, 1.2rem + 6.4vw, 7.5rem);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--mist-soft) var(--deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--mist);
  /* Static fallback when WebGL is unavailable: the same single-hue field, frozen */
  background:
    radial-gradient(90% 70% at 10% 90%, #15219c 0%, transparent 60%),
    var(--field);
  background-attachment: fixed;
  caret-color: var(--spark);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--spark); color: var(--deep); }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 4px; border-radius: 2px; }
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--crest); border: 3px solid var(--deep); border-radius: 6px; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
p { margin: 0 0 1em; max-width: var(--measure); }
h1, h2, h3 { margin: 0; text-wrap: balance; }

/* Condensed caps close up their word spaces; open them so words never run together */
.hero h1, .section__title, .close h2, .page-hero h1, .detail__title, .seminars-title, .seminar-grid h3 { word-spacing: 0.16em; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--spark); color: var(--deep); padding: 0.75rem 1.25rem; font-weight: 700;
}
.skip:focus { left: var(--gutter); top: 0.75rem; }

/* Static film grain at native resolution, above the field and below content.
   Kept out of the shader: animated grain on an upscaled canvas reads as flicker. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27180%27 height=%27180%27%3E%3Cfilter id=%27n%27%3E%3CfeTurbulence type=%27fractalNoise%27 baseFrequency=%270.85%27 numOctaves=%272%27 stitchTiles=%27stitch%27/%3E%3C/filter%3E%3Crect width=%27100%25%27 height=%27100%25%27 filter=%27url(%23n)%27/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* The living field sits behind every page */
.field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; display: block; pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.5rem var(--gutter);
}
.wordmark {
  font-stretch: 125%; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em;
  text-decoration: none; line-height: 1;
}
.nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav ul { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav a:not(.btn) {
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--mist-soft); padding-block: 0.4rem;
  background: linear-gradient(var(--spark), var(--spark)) 0 100% / 0 2px no-repeat;
  transition: color 0.3s var(--ease-out), background-size 0.4s var(--ease-out);
}
.nav a:not(.btn):hover, .nav a:not(.btn)[aria-current="page"] { color: var(--mist); background-size: 100% 2px; }
.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: inherit; font-stretch: 100%; font-weight: 700; font-size: 1rem; letter-spacing: 0.01em;
  color: var(--deep); background: var(--spark);
  padding: 1rem 1.6rem; border: 0; border-radius: 999px; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  cursor: pointer;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease-out); }
.btn:hover { background: var(--spark-hot); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--small { padding: 0.7rem 1.15rem; font-size: 0.9rem; }
.btn--large { padding: 1.25rem 2.1rem; font-size: 1.15rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: var(--step-0); text-decoration: none; color: var(--mist);
  border-bottom: 2px solid var(--mist); padding-bottom: 0.2rem;
  transition: border-color 0.25s var(--ease-out);
}
.text-link:hover, .text-link:focus-visible { border-bottom-color: var(--spark); }
.text-link svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease-out); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding: 7rem var(--gutter) 0;
}
.hero__body { align-self: center; padding-block: 2rem 3rem; }
.hero h1 {
  font-stretch: 62%; font-weight: 820; text-transform: uppercase;
  /* Sized so "Extraordinary / learning experiences" sets as two lines on desktop
     and keeps the practice-area rail inside the first screen on laptops */
  font-size: clamp(3rem, 0.4rem + 8.6vw, 9rem); line-height: 0.84; letter-spacing: -0.012em;
  max-width: 21ch;
}
.hero__sub {
  margin: 2rem 0 2.25rem; font-size: var(--step-1); line-height: 1.45; max-width: 80ch; color: var(--mist);
}

/* Practice-area rail along the bottom of the first viewport */
.rail {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--rule-strong);
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
}
.rail a {
  display: grid; align-content: start; gap: 0.35rem; padding: 1.4rem 1.5rem 1.6rem 0; text-decoration: none;
  border-right: 1px solid var(--rule);
  transition: color 0.3s var(--ease-out);
}
.rail a + a { padding-left: 1.5rem; }
.rail a:last-child { border-right: 0; }
.rail__name {
  font-size: 1rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.rail__name svg { width: 1.4rem; height: 1.4rem; opacity: 0.6; transition: transform 0.35s var(--ease-out), opacity 0.3s; }
.rail__desc { color: var(--mist-soft); font-size: 0.98rem; line-height: 1.45; }
.rail a:hover .rail__name, .rail a:focus-visible .rail__name, .rail a.is-live .rail__name { color: var(--spark); }
.rail a:hover svg, .rail a.is-live svg { transform: translateX(4px); opacity: 1; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 8vw, 7.5rem) var(--gutter); }
.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section__title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: var(--display-2); line-height: 0.88; letter-spacing: -0.008em;
  margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 14ch;
}

/* Workplace: its own track, a lighter full-bleed band under a full-bleed rule, one step down in scale from museums */
.band {
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(238, 241, 255, 0.06);
}
.band .section__title { font-size: var(--step-3); max-width: 18ch; }
.band .track--flip .track__media { grid-column: 9 / span 4; }
.band .track--flip .track__copy { grid-column: 1 / span 7; }

.section__title--md { font-size: var(--step-3); line-height: 0.92; max-width: 22ch; }
.close.close--compact h2 { font-size: var(--display-2); line-height: 0.88; max-width: 20ch; }

/* Statement */
.statement p {
  font-size: var(--step-3); line-height: 1.12; font-weight: 300; letter-spacing: -0.02em;
  max-width: 24ch; margin: 0;
}
.statement strong { font-weight: 800; }

/* Track: practice-area section with photo */
.track {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: start;
}
.track__head { grid-column: 1 / -1; }
.track__media { grid-column: 1 / span 5; }
.track__copy { grid-column: 7 / span 6; padding-top: 0.5rem; }
.track--flip .track__media { grid-column: 8 / span 5; grid-row: 2; }
.track--flip .track__copy { grid-column: 1 / span 6; grid-row: 2; }
.track__copy > p { font-size: var(--step-1); line-height: 1.5; }

.duotone {
  position: relative; margin: 0; background: var(--crest); overflow: hidden;
  border-radius: 4px;
}
.duotone img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.96);
  mix-blend-mode: luminosity;
  transition: filter 0.9s var(--ease-out);
}
.duotone:hover img, .duotone:focus-within img { filter: none; mix-blend-mode: normal; }
.duotone--portrait { aspect-ratio: 3 / 4; }
.duotone--wide { aspect-ratio: 3 / 2; }

.outcomes { list-style: none; margin: 2.25rem 0 2.5rem; padding: 0; border-top: 1px solid var(--rule-strong); max-width: var(--measure); }
.outcomes li {
  padding: 1.1rem 0; border-bottom: 1px solid var(--rule);
  font-size: var(--step-1); font-weight: 600; line-height: 1.35;
  display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.75rem; align-items: baseline;
}
.outcomes li::before {
  content: ""; width: 0.65rem; height: 0.65rem; border-radius: 50%;
  border: 2px solid var(--mist); transform: translateY(-0.1rem);
}

/* Seminars: a lighter band with intro and photo on top, the three sessions in a row below */
.seminars-top {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem);
  align-items: center; margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.seminars-title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-3); line-height: 0.92; margin-bottom: 1rem;
}
.seminars-top .lede { margin-bottom: 1.75rem; }
.seminars-top .duotone { max-width: 34rem; justify-self: end; width: 100%; }
.seminar-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem);
}
.seminar-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.seminar-grid li { border-top: 2px solid var(--rule-strong); padding-top: 1.25rem; }
.seminar-grid h3 {
  font-stretch: 75%; font-weight: 750; text-transform: uppercase;
  font-size: var(--step-2); line-height: 1; margin-bottom: 0.75rem;
}
.seminar-grid p { margin: 0; }

/* Founder */
.founder { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.founder__body > p { font-size: var(--step-1); line-height: 1.5; }

/* Close */
.close { padding-bottom: clamp(5rem, 10vw, 8rem); }
.close h2 {
  font-stretch: 62%; font-weight: 820; text-transform: uppercase;
  font-size: var(--display); line-height: 0.84; max-width: 11ch; margin-bottom: 2.25rem;
}
.close__row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.close__mail { font-size: var(--step-1); font-weight: 600; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule-strong);
  padding: 2.5rem var(--gutter) 3rem;
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem 3rem; align-items: end;
}
.site-footer .wordmark { font-size: 1.2rem; }
.site-footer p { margin: 0.6rem 0 0; color: var(--mist-soft); font-size: 0.98rem; }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; text-decoration: none; color: var(--mist-soft); }
.site-footer a:hover { color: var(--mist); }
.site-footer a.wordmark { font-size: 1.2rem; letter-spacing: -0.02em; text-transform: none; font-weight: 800; color: var(--mist); }
.legal { grid-column: 1 / -1; color: var(--mist-soft); font-size: 0.875rem; }

/* ---------- Services page ---------- */
.page-hero { padding: 9rem var(--gutter) clamp(4rem, 8vw, 6rem); }
.page-hero h1 {
  font-stretch: 62%; font-weight: 820; text-transform: uppercase;
  font-size: var(--display-2); line-height: 0.92; max-width: 13ch;
}
.page-hero p { margin-top: 1.75rem; font-size: var(--step-1); max-width: 44ch; }

.jump { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; list-style: none; padding: 0; }
.jump a {
  display: inline-block;
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; padding: 0.7rem 1.1rem; border: 1px solid var(--rule-strong); border-radius: 999px;
  transition: border-color 0.3s, color 0.3s;
}
.jump a:hover { border-color: var(--spark); color: var(--spark); }

.detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); border-top: 1px solid var(--rule-strong); padding-top: clamp(2.5rem, 5vw, 4rem); }
.detail__title {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase;
  font-size: var(--step-3); line-height: 0.9; position: sticky; top: 2rem; align-self: start;
}
.detail__title span { display: block; margin-top: 1rem; word-spacing: normal; font-stretch: 100%; text-transform: none; font-weight: 400; font-size: var(--step-0); line-height: 1.5; color: var(--mist-soft); max-width: 32ch; }
.detail__body > p { font-size: var(--step-1); line-height: 1.5; }
.detail__aside { position: sticky; top: 2rem; align-self: start; display: grid; gap: 2rem; }
.detail__aside .detail__title { position: static; }
.detail__aside .duotone { max-width: 26rem; }
.detail h3 { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist-soft); margin: 2.5rem 0 0.25rem; }
.detail .outcomes { margin-top: 0.75rem; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--rule-strong); padding-top: 1.5rem; }
.steps li::before {
  content: counter(step);
  display: block; font-stretch: 62%; font-weight: 800; font-size: var(--step-3); line-height: 0.8; margin-bottom: 1rem; color: var(--mist);
}
.steps h3 {
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; word-spacing: 0.16em;
  font-size: var(--step-2); line-height: 0.95; margin-bottom: 0.75rem;
}
.steps p { color: var(--mist); margin: 0; }


/* Lede paragraphs and seminar topics */
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 46ch; margin: 0 0 clamp(2.5rem, 5vw, 4rem); }
.close .lede { margin-bottom: 2.25rem; }

/* ---------- Service pages ---------- */
/* Situations: six reasons a team calls, three across, hairline above each */
.situations {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 3rem);
}
.situations li { border-top: 2px solid var(--rule-strong); padding-top: 1.25rem; }
.situations h3 {
  font-stretch: 75%; font-weight: 750; text-transform: uppercase; word-spacing: 0.16em;
  font-size: var(--step-2); line-height: 1; margin-bottom: 0.75rem;
}
.situations p { margin: 0; }

/* Benefits: a bold lead-in, then the sentence */
.benefits { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--rule-strong); max-width: var(--measure); }
.benefits li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); font-size: var(--step-1); line-height: 1.45; }
.benefits strong { font-weight: 800; }

/* Delivery formats: two by two, titles at the same size as the situations */
.formats {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 5vw, 5rem);
  border-top: 1px solid var(--rule-strong);
}
.formats li { padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--rule); }
.formats h3 {
  font-stretch: 75%; font-weight: 750; text-transform: uppercase; word-spacing: 0.16em;
  font-size: var(--step-2); line-height: 1; margin-bottom: 0.75rem;
}
.formats p { margin: 0; font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }

/* Process: three steps, each a big numeral and title beside its numbered parts */
.process { list-style: none; margin: 0; padding: 0; }
.process__step {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem);
  padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 2px solid var(--rule-strong);
}
.process__step:last-child { border-bottom: 1px solid var(--rule); }
.process__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(1rem, 2vw, 1.5rem);
  align-content: start;
}
.process__num {
  grid-row: span 2;
  font-stretch: 62%; font-weight: 800; font-size: var(--step-3); line-height: 0.8;
}
.process__head h3 {
  align-self: end; min-width: 0; overflow-wrap: break-word;
  font-stretch: 62%; font-weight: 800; text-transform: uppercase; word-spacing: 0.16em;
  font-size: var(--step-2); line-height: 0.95;
}
.process__parts { list-style: none; margin: 0; padding: 0; }
.process__parts li {
  display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem;
  padding: 1.1rem 0 1.2rem; border-bottom: 1px solid var(--rule);
}
.process__parts li:first-child { padding-top: 0.2rem; }
.process__parts li:last-child { border-bottom: 0; padding-bottom: 0; }
.process__part-num {
  font-weight: 700; font-size: var(--step-0); line-height: 1.5; color: var(--mist-soft);
  font-variant-numeric: tabular-nums;
}
.process__parts h4 { margin: 0 0 0.3rem; font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.process__parts p { margin: 0; max-width: 60ch; }

/* ---------- About ---------- */
.statement p.statement__follow {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  font-size: var(--step-1); font-weight: 400; line-height: 1.5; letter-spacing: 0; max-width: 46ch;
}
.founder--page { align-items: start; }
.founder__name { font-size: var(--step-1); font-weight: 700; margin-bottom: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.founder__body > p + p { margin-top: 1rem; }


/* ---------- Page hero variants ---------- */
.page-hero--short { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-hero--full { min-height: calc(100svh - 9rem); display: grid; align-content: center; }
.page-hero__actions { margin-top: 2.5rem; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__aside { border-top: 1px solid var(--rule-strong); padding-top: 1.5rem; }
.contact__title {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mist-soft); margin: 0 0 0.75rem;
}
.contact__title + p { margin-bottom: 2.5rem; }
.contact__mail { font-size: var(--step-1); font-weight: 700; text-decoration-thickness: 2px; }
.contact__mail:hover, .close__mail:hover { text-decoration-color: var(--spark); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.75rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.form-field { display: grid; gap: 0.55rem; align-content: start; }
.form-field label {
  font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.form-field .optional { font-weight: 500; letter-spacing: 0.02em; text-transform: none; color: var(--mist-soft); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; font: inherit; font-size: var(--step-0); line-height: 1.4; color: var(--mist);
  background: rgba(14, 22, 128, 0.62); border: 1px solid var(--rule-strong); border-radius: 4px;
  padding: 0.9rem 1rem;
  transition: border-color 0.2s var(--ease-out), background-color 0.2s var(--ease-out);
}
.form-field textarea { min-height: 11rem; resize: vertical; line-height: 1.55; }
.form-field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23eef1ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 1.1rem;
}
.form-field select option { background: var(--deep); color: var(--mist); }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--mist); }
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible {
  outline: 3px solid var(--spark); outline-offset: 2px; border-color: var(--spark); background-color: rgba(14, 22, 128, 0.8);
}
.hint { margin: 0; font-size: 1rem; color: var(--mist-soft); }
.error-msg { display: none; margin: 0; font-size: 1rem; font-weight: 700; color: var(--spark); }
.form-field.has-error .error-msg { display: block; }
.form-field.has-error input, .form-field.has-error textarea { border-color: var(--spark); border-width: 2px; padding: calc(0.9rem - 1px) calc(1rem - 1px); }
.form-alert {
  padding: 1rem 1.25rem; border: 2px solid var(--spark); border-radius: 4px;
  background: rgba(14, 22, 128, 0.7); font-weight: 600;
}
.form-alert a { color: var(--spark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* Page-leave dissolve: content steps back while the field takes over */
body.is-leaving main, body.is-leaving .site-header, body.is-leaving .site-footer {
  opacity: 0; transform: translateY(-8px); filter: blur(6px);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out), filter 0.38s var(--ease-out);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .situations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .track__media, .track--flip .track__media { grid-column: 1 / span 6; grid-row: auto; }
  .track__copy, .track--flip .track__copy { grid-column: 7 / -1; grid-row: auto; }
}
/* The nav collapses into the Menu panel below 1000px: the two longer labels and
   the free-consultation button stop fitting on one line around there */
@media (max-width: 1000px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: transparent; color: var(--mist); border: 1px solid var(--rule-strong); border-radius: 999px;
    padding: 0.55rem 1rem; font: inherit; font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    cursor: pointer;
  }
  .nav {
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter);
    display: none; flex-direction: column; align-items: flex-start; gap: 1.25rem;
    background: var(--deep); padding: 1.5rem; border-radius: 6px; border: 1px solid var(--rule-strong);
  }
  .nav.is-open { display: flex; }
  .nav ul { flex-direction: column; gap: 1rem; }
  .nav a:not(.btn) { font-size: 0.95rem; color: var(--mist); }
}

@media (max-width: 780px) {
  .hero { padding-top: 6rem; }
  .rail { grid-template-columns: 1fr; }
  .rail a, .rail a + a { padding: 1.1rem 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .rail a:last-child { border-bottom: 0; }

  .track { grid-template-columns: 1fr; }
  .track__media, .track__copy, .track--flip .track__media, .track--flip .track__copy { grid-column: 1; grid-row: auto; }
  .track__media { margin-bottom: 2.25rem; max-width: 30rem; }
  .founder, .detail, .seminars-top, .seminar-grid { grid-template-columns: 1fr; }
  .seminars-top .duotone { justify-self: start; }
  .founder .duotone { max-width: 18rem; }
  .detail__title, .detail__aside { position: static; }
  .band .track--flip .track__media, .band .track--flip .track__copy { grid-column: 1; }
  .steps { grid-template-columns: 1fr; }
  .contact, .field-row, .situations, .formats, .process__step { grid-template-columns: 1fr; }
  .process__parts li { grid-template-columns: 2.25rem minmax(0, 1fr); }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
