/* ==========================================================================
   Energized Vision — stylesheet
   All tokens and components taken from the design system
   ("Energized Vision.dc.html"). Do not introduce colours, fonts or
   components that are not defined here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Fonts — self-hosted
   Previously loaded from fonts.googleapis.com, which sends every visitor's IP
   address to Google. A Munich court found that unlawful under GDPR without
   consent (2022), and the /fdi page is aimed at an EU audience. Self-hosting
   removes the third party entirely, makes the folder self-contained, and
   drops a render-blocking external request.
   latin + latin-ext cover Czech, Polish and other European name spellings.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo Narrow';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/ArchivoNarrow-500-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: 'Archivo Narrow';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/ArchivoNarrow-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-400-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: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/IBMPlexSans-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-400-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-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: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/IBMPlexMono-500-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}



/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour */
  --bg:            #0B0D0E;
  --surface:       #15181A;
  --surface-hover: #1E2326;
  --border:        #2A3033;
  --text:          #E9EAEC;
  --muted:         #9C9FA3;
  --dim:           #7B8184;
  --green:         #00A868;
  --green-hover:   #3ECB92;
  --green-mid:     #4A9E7C;

  /* Type */
  --font-display: 'Archivo Narrow', 'Arial Narrow', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --wrap:  1180px;
  --gutter: 40px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

/* `hidden` must win over component display rules. Without this, elements
   given display:flex/grid ignore the attribute and js/main.js cannot hide
   past events or inactive form groups. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-hover); }

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

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }

p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: var(--bg);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; color: var(--bg); }

/* --------------------------------------------------------------------------
   3. Utility type
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.08em;
  color: var(--green);
  display: block;
}

.label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--green);
  display: block;
}

.label-dim {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--dim);
  display: block;
}

.mono { font-family: var(--font-mono); }

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  text-wrap: pretty;
}

.note {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--dim);
  max-width: 60ch;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--green);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--green-hover); color: var(--bg); }

.btn-ghost {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 15.5px;
  background: none;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--green); color: var(--text); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   5. Header / nav  (identical on every page)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand { display: flex; align-items: stretch; gap: 11px; flex: 0 0 auto; }
.brand:hover { color: inherit; }
.brand__rule { width: 3px; background: var(--green); }
.brand__text { display: flex; flex-direction: column; justify-content: center; }
.brand__a,
.brand__b {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.14em;
  line-height: 1.15;
}
.brand__a { font-weight: 700; color: var(--text); }
.brand__b { font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 2px; }

.nav a {
  padding: 9px;
  font-size: 15px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--green); }

.nav a.btn,
.nav .btn { color: var(--bg); }
.nav a.btn:hover,
.nav .btn:hover { color: var(--bg); }

.nav .btn { margin-left: 12px; padding: 10px 18px; font-size: 14.5px; }
.nav .btn:hover { color: var(--bg); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   6. Sections
   -------------------------------------------------------------------------- */
/* Longhand on purpose. `padding: 72px 0` would reset the
   left/right gutter that .wrap sets, and every "wrap section"
   element would run edge-to-edge below 1180px. */
.section { padding-top: 72px; padding-bottom: 72px; }
.section--tight { padding-top: 56px; padding-bottom: 56px; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); }
.section--ruled { border-top: 1px solid var(--border); }

/* Two-column "label left, content right" pattern used throughout */
.split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 60px;
  align-items: start;
}
.split__head { display: flex; flex-direction: column; gap: 10px; }
.split__head h2 { font-size: 30px; line-height: 1.15; }

/* Default: no gap. The row-based lists inside (track record, papers, events,
   topics, scopes) rely on flush 1px borders between rows — a gap would break
   the rule line. */
.split__body { display: flex; flex-direction: column; }

/* Prose columns — a lead paragraph, a grid of points, a button, a footnote —
   need real vertical rhythm. Without this they butt together with zero
   spacing, which reads as cramped. The design system specified 34px here. */
.split__body.stack { gap: 34px; }

/* Page hero */
.hero { padding: 88px 0 64px; }
.hero h1 {
  font-size: 66px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-top: 26px;
}
.hero p { margin-top: 30px; }

/* --------------------------------------------------------------------------
   7. Home
   -------------------------------------------------------------------------- */
.home-hero {
  padding: 96px 0 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 72px;
  align-items: start;
}
.home-hero h1 {
  font-size: 76px;
  line-height: 1.04;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin: 24px 0 0;
}
.home-hero p { margin-top: 30px; }
.home-hero .btn-row { margin-top: 38px; }

.panel {
  display: flex;
  flex-direction: column;
  border-top: 3px solid var(--green);
  padding-top: 20px;
  margin-top: 6px;
}
.panel__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.panel__item:hover { border-bottom-color: var(--green); color: inherit; }
.panel__when { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.panel__date { font-family: var(--font-mono); font-size: 15px; color: var(--green); }
/* Distinguishes a speaking engagement from a meeting attended as a CDA
   scout. Never let a scouting entry read as a presentation. */
.panel__role {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 2px 7px;
  white-space: nowrap;
  font-weight: 500;
}
.panel__none { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.panel__none a { font-size: 15px; }
.events__none { font-size: 16px; line-height: 1.6; color: var(--muted); padding: 24px 0; border-top: 1px solid var(--border); }
.panel__name { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.2; color: var(--text); }
.panel__talk { font-size: 15px; line-height: 1.5; color: var(--muted); }
.panel__note { font-size: 14.5px; color: var(--dim); padding-top: 16px; line-height: 1.6; }

/* Credential strip */
.creds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.creds__item { padding: 34px 26px 34px 0; border-right: 1px solid var(--border); }
.creds__item:last-child { border-right: none; }
.creds__inner { border-top: 3px solid var(--green); padding-top: 18px; }
.creds__code { font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--text); }
.creds__lines { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.creds__lines span { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* Two door cards */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 44px 38px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: inherit;
}
.door:hover { border-color: var(--green); color: inherit; }
.door h2 { font-size: 34px; line-height: 1.15; color: var(--text); }
.door p { font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.door__go { font-size: 15.5px; color: var(--green); margin-top: 4px; }

/* Event rows */
.events { display: flex; flex-direction: column; }
.event {
  display: grid;
  grid-template-columns: 230px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: inherit;
}
.event:hover { background: var(--surface-hover); color: inherit; }
.event__when { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.event__date { font-family: var(--font-mono); font-size: 16px; color: var(--green); }
.event__role {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--dim);
  border: 1px solid var(--border);
  padding: 4px 10px;
  white-space: nowrap;
  font-weight: 500;
}
.event__meta { display: flex; flex-direction: column; gap: 6px; }
.event__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); }
.event__talk { font-size: 15.5px; color: var(--muted); }
.event__cta { font-size: 15px; color: var(--green); }

/* The bench */
.bench { display: flex; flex-direction: column; gap: 20px; }
.bench__lead { font-size: 23px; line-height: 1.55; color: var(--text); max-width: 52ch; text-wrap: pretty; }
.bench__body { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about-top {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  padding: 88px 0 64px;
}
.about-bio { display: flex; flex-direction: column; gap: 26px; }
.about-bio h1 { font-size: 60px; line-height: 1.06; letter-spacing: -0.01em; }
.about-bio__creds { font-family: var(--font-mono); font-size: 15px; color: var(--muted); letter-spacing: 0.04em; }
.about-bio__lead { font-size: 19.5px; line-height: 1.65; color: var(--text); max-width: 58ch; text-wrap: pretty; }
.about-bio p:not(.about-bio__lead) { font-size: 17.5px; line-height: 1.75; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

.about-card { background: var(--surface); border: 1px solid var(--border); }
.about-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  object-position: center 2%;
  filter: grayscale(1) contrast(1.05);
}
.about-card__body { padding: 22px 24px; }
.about-card__role { border-top: 3px solid var(--green); padding-top: 14px; }
.about-card__role p { margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: var(--text); }

/* Track record + papers rows */
.track-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.track-row__years { font-family: var(--font-mono); font-size: 14.5px; color: var(--green); }
.track-row__role { font-size: 17px; font-weight: 500; color: var(--text); }
.track-row__org { font-size: 15.5px; color: var(--muted); line-height: 1.55; }

.paper-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
}
.paper-row__year { font-family: var(--font-mono); font-size: 14.5px; color: var(--dim); }
.paper-row__title { font-size: 17px; color: var(--text); line-height: 1.5; }
.paper-row__journal { font-size: 15.5px; color: var(--muted); }

/* --------------------------------------------------------------------------
   9. Individuals (coaching)
   -------------------------------------------------------------------------- */
.coaching-hero { padding: 110px 0 90px; }
.coaching-hero h1 {
  font-size: 66px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-top: 30px;
}
.coaching-hero p { margin-top: 34px; font-size: 20px; line-height: 1.7; color: var(--muted); max-width: 58ch; text-wrap: pretty; }

.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.card-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 3px solid var(--green);
  padding-top: 22px;
}
.card-top h3 { font-size: 24px; line-height: 1.2; }
.card-top p { font-size: 17px; line-height: 1.7; color: var(--muted); text-wrap: pretty; }

.method-lead { font-size: 21px; line-height: 1.6; color: var(--text); max-width: 56ch; text-wrap: pretty; }
.pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 32px; }
.pair { display: flex; flex-direction: column; gap: 10px; }
.pair__label { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.12em; color: var(--green);
  font-weight: 500;
}
.pair__body { font-size: 17px; line-height: 1.65; color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Organizations
   -------------------------------------------------------------------------- */
.phases { display: grid; grid-template-columns: repeat(5, 1fr); }
.phase { padding: 36px 18px 40px 0; }
.phase__inner {
  border-top: 3px solid var(--green);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.phase__num { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em; color: var(--dim);
  font-weight: 500;
}
.phase__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.phase__body { font-size: 17px; line-height: 1.65; color: var(--muted); }

.scope-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.scope-row__name { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--text); }
.scope-row__body { font-size: 16.5px; line-height: 1.65; color: var(--muted); }

/* --------------------------------------------------------------------------
   11. Speaking
   -------------------------------------------------------------------------- */
.topic {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.topic__title { font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--text); }
.topic__body { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 64ch; }

.booking-lead { font-size: 19px; line-height: 1.65; color: var(--text); max-width: 56ch; text-wrap: pretty; }

/* --------------------------------------------------------------------------
   12. Event pages (STFM / FDI)
   -------------------------------------------------------------------------- */
.event-hero { border-bottom: 1px solid var(--border); }
.event-hero__inner { padding: 76px 0 64px; }
.event-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.event-hero__rule { height: 1px; flex: 1; background: var(--border); }
.event-hero__url { font-family: var(--font-mono); font-size: 13px; color: var(--dim); }
.event-hero h1 {
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
.event-hero__sub { margin-top: 20px; font-size: 21px; line-height: 1.45; color: var(--text); max-width: 44ch; text-wrap: pretty; }
.event-hero__body { margin-top: 28px; font-size: 20px; line-height: 1.65; color: var(--muted); max-width: 60ch; text-wrap: pretty; }

.event-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  padding: 64px 0;
}

.toolkit-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-top: 1px solid var(--border);
}
.toolkit-item__num { font-family: var(--font-mono); font-size: 14px; color: var(--dim); padding-top: 5px; }
.toolkit-item__title { font-size: 18px; font-weight: 500; color: var(--text); }
.toolkit-item__body { font-size: 16px; line-height: 1.6; color: var(--muted); }
.toolkit-item__status {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  color: var(--dim);
  white-space: nowrap;
}

.aside {
  background: var(--surface);
  border: 1px solid var(--border);
  position: sticky;
  top: 100px;
}
.aside__top { padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; border-bottom: 1px solid var(--border); }
.aside__head { border-top: 3px solid var(--green); padding-top: 16px; }
.aside__name { margin-top: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.15; }
.aside__creds { margin-top: 8px; font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); }
.aside__bio { font-size: 16px; line-height: 1.65; color: var(--muted); }
.aside__cta { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.aside__cta p { font-size: 16.5px; line-height: 1.6; color: var(--text); }
.aside__cta .btn { padding: 14px 20px; }

/* --------------------------------------------------------------------------
   13. Writing
   -------------------------------------------------------------------------- */
.writing-hero { padding: 88px 0 56px; }
.writing-hero h1 { font-size: 60px; line-height: 1.06; letter-spacing: -0.01em; max-width: 15ch; margin-top: 24px; }
.writing-hero p { margin-top: 28px; font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 58ch; text-wrap: pretty; }

.post {
  display: grid;
  grid-template-columns: 110px 1fr 130px;
  gap: 32px;
  align-items: baseline;
  padding: 22px 0;
  border-top: 1px solid var(--border);
  color: inherit;
}
.post:hover { background: var(--surface); color: inherit; }
.post__date { font-family: var(--font-mono); font-size: 14px; color: var(--dim); }
.post__title { font-family: var(--font-display); font-size: 23px; font-weight: 600; color: var(--text); line-height: 1.25; }
.post__topic { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--green); }

/* Article pages (/writing/<slug>). Not in the design system — composed from
   its existing tokens and patterns. No new colours or fonts. */
.article { max-width: 760px; margin: 0 auto; padding: 72px 0 88px; }

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.article__topic {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--green);
}
.article__date { font-family: var(--font-mono); font-size: 14px; color: var(--dim); }

.article h1 {
  font-size: 46px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.article__byline {
  font-size: 15.5px;
  color: var(--muted);
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.article__hero {
  width: 100%;
  height: 340px;
  object-fit: cover;
  margin: 32px 0 8px;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--border);
}

.article__body { font-size: 18px; line-height: 1.75; color: var(--muted); }
.article__body p { margin: 24px 0; text-wrap: pretty; }
.article__body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 46px 0 0;
}
.article__body h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--text);
  margin: 36px 0 0;
}
.article__body strong { color: var(--text); font-weight: 600; }
.article__body ul, .article__body ol { margin: 24px 0; padding-left: 22px; }
.article__body li { margin: 10px 0; }
.article__body a { color: var(--green); }
.article__body a:hover { color: var(--green-hover); }
/* Neutralise inline colours carried over from the old CMS. */
.article__body [style*="color"] { color: inherit !important; }
.article__body a[style*="color"] { color: var(--green) !important; }
.article__body img { height: auto; margin: 28px 0; border: 1px solid var(--border); }

.article__end {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 3px solid var(--green);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article__end p { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 52ch; }
.article__back { font-size: 15.5px; color: var(--green);   display: inline-block;
  padding: 12px 0;
}

@media (max-width: 860px) {
  .article { padding: 44px 0 60px; }
  .article h1 { font-size: 32px; }
  .article__hero { height: 220px; }
  .article__body { font-size: 16px; }
  .article__body h2 { font-size: 24px; }
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 88px 0 90px;
}
.contact-intro { display: flex; flex-direction: column; gap: 26px; }
.contact-intro h1 { font-size: 60px; line-height: 1.06; letter-spacing: -0.01em; }
.contact-intro p { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 52ch; text-wrap: pretty; }
.contact-intro .btn { align-self: flex-start; padding: 15px 28px; font-size: 15px; }

.contact-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); }
.contact-card__row {
  padding: 26px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card__row:last-child { border-bottom: none; }
.contact-card__row a,
.contact-card__row span.value { font-size: 17px; color: var(--text); }
.contact-card__row a:hover { color: var(--green); }

/* Contact form — uses only existing tokens; no new colours introduced. */
.form { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form__field { display: flex; flex-direction: column; gap: 10px; }

.form__field label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
  font-weight: 500;
}

.form__req { color: var(--dim); letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 400;
}

.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-body);
  font-size: 16.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 13px 14px;
  width: 100%;
  border-radius: 0;
  appearance: none;
}

.form__field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* Native date picker. type="date" always submits YYYY-MM-DD regardless of the
   visitor's locale, which is the point — it removes the 03/04/2027 ambiguity
   between US and international enquirers. Styling notes:
   - the generic `appearance: none` above strips the control on WebKit, so the
     height must be set explicitly or Safari renders it shorter than the
     text inputs beside it;
   - the calendar glyph is near-black by default and invisible on this
     background, hence the invert. */
.form__field input[type="date"] {
  /* The date control's internal shadow DOM is ~3px taller than a plain text
     input at the same padding, which visibly misaligns Date and Location
     side by side in the same row. border-box makes this exact. */
  height: 50px;
  color-scheme: dark;            /* makes the dropdown calendar itself dark */
}
/* No invert here. `color-scheme: dark` above already makes the browser draw
   the calendar glyph light; inverting it turns it black again and it
   disappears against the field. Opacity alone matches the select chevrons. */
.form__field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
}
.form__field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* Safari renders the unfilled date as muted placeholder-ish text; keep it
   legible rather than letting it inherit the near-invisible default. */
.form__field input[type="date"]::-webkit-datetime-edit-text,
.form__field input[type="date"]::-webkit-datetime-edit-month-field,
.form__field input[type="date"]::-webkit-datetime-edit-day-field,
.form__field input[type="date"]::-webkit-datetime-edit-year-field { color: var(--text); }
.form__field input[type="date"]:invalid::-webkit-datetime-edit { color: var(--dim); }

.form__field select {
  /* Chevron drawn inline so the folder stays self-contained. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C9FA3' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 40px;
}

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form__field input:invalid:not(:placeholder-shown),
.form__field textarea:invalid:not(:placeholder-shown) { border-color: var(--border); }

.form__hint { font-size: 15px; line-height: 1.6; color: var(--dim); max-width: 60ch; }

/* Conditional groups, revealed by the enquiry-type select. */
.form__group {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
}
.form__group[hidden] { display: none; }

.form__legend {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--green);
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 4px;
}

.form button[type="submit"] { align-self: flex-start; }

/* Honeypot — hidden from people, visible to bots. */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .form__row { grid-template-columns: 1fr; gap: 24px; }
  .form button[type="submit"] { align-self: stretch; }
}

/* --------------------------------------------------------------------------
   15. Expert witness
   -------------------------------------------------------------------------- */
.legal-hero { padding: 88px 0 64px; }
.legal-hero h1 { font-size: 64px; line-height: 1.05; letter-spacing: -0.01em; max-width: 17ch; margin-top: 24px; }
.legal-hero p { margin-top: 28px; font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 62ch; text-wrap: pretty; }

.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}
.area { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px; background: var(--surface); }
.area__name { font-size: 17.5px; font-weight: 500; color: var(--text); line-height: 1.35; }
.area__body { font-size: 16.5px; line-height: 1.6; color: var(--muted); }

.term-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-top: 1px solid var(--border);
}
.term-row__label { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; color: var(--green); padding-top: 3px;
  font-weight: 500;
}
.term-row__body { font-size: 17.5px; line-height: 1.65; color: var(--text); }

.qual-lead { font-size: 20px; line-height: 1.6; color: var(--text); max-width: 56ch; text-wrap: pretty; }
.qual { display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--green); padding-top: 16px; }
.qual__label { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.1em; color: var(--dim); }
.qual__body { font-size: 16.5px; line-height: 1.6; color: var(--text); }

/* A warning that must be read before acting, so it cannot be as quiet as
   .disclaimer. Uses the design system's existing 3px green top rule rather
   than introducing a new callout treatment or colour. */
.notice {
  border-top: 3px solid var(--green);
  padding-top: 16px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  max-width: 58ch;
}

.instruction-lead { font-size: 19px; line-height: 1.65; color: var(--text); max-width: 58ch; text-wrap: pretty; }
.disclaimer { font-size: 15px; line-height: 1.7; color: var(--dim); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Policy pages (privacy, terms, refunds)
   The markup is migrated verbatim from the old site, so these styles target
   plain h1/h2/h3/p/ul rather than site classes. Measure is kept narrow —
   dense legal text is unreadable at full width.
   -------------------------------------------------------------------------- */
.policy { max-width: 760px; margin: 0 auto; padding: 72px 0 88px; }

.policy__body { font-size: 17px; line-height: 1.75; color: var(--muted); }
.policy__body > *:first-child { margin-top: 0; }
.policy__body h1 {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 24px;
}
.policy__body h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 44px 0 0;
}
.policy__body h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 32px 0 0;
}
.policy__body p { margin: 20px 0; text-wrap: pretty; }
.policy__body strong { color: var(--text); font-weight: 600; }
.policy__body ul, .policy__body ol { margin: 20px 0; padding-left: 22px; }
.policy__body li { margin: 9px 0; }
.policy__body a { color: var(--green); }
.policy__body a:hover { color: var(--green-hover); }
/* neutralise any inline colours carried over from the old CMS */
.policy__body [style*="color"] { color: inherit !important; }
.policy__body a[style*="color"] { color: var(--green) !important; }
.policy__body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}
.policy__body table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.policy__body td, .policy__body th {
  border: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

@media (max-width: 860px) {
  .policy { padding: 44px 0 60px; }
  .policy__body { font-size: 16px; }
  .policy__body h1 { font-size: 32px; }
  .policy__body h2 { font-size: 23px; }
}

/* --------------------------------------------------------------------------
   16. Footer  (identical on every page)
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.site-footer__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 56px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-brand__top { display: flex; align-items: center; gap: 16px; }
.footer-brand__rule { width: 3px; align-self: stretch; background: var(--green); }
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.15;
  color: var(--text);
}
.footer-brand__tag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  margin-top: 4px;
  display: block;
}
.footer-brand__copy { font-size: 14.5px; color: var(--dim); }

.footer-cols { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 2px; }
/* padding, not margin: it grows the tap target itself. 15px text + 22px
   padding clears the WCAG 2.2 minimum of 24px. Applied at every width —
   viewport size does not tell you whether the device is touch (iPad
   landscape is 1180px and still a thumb). */
.footer-col a { font-size: 15px; color: var(--muted); padding: 11px 0; }
.footer-col a:hover { color: var(--green); }

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Nav collapse — its own breakpoint, deliberately higher than the layout one.
   Seven links at 15px plus the button need ~1000px; below that the header
   overflowed horizontally (914px of content in an 846px bar at 861px wide).
   Keep this ABOVE the 860px layout query and keep js/main.js in step.
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  /* Nav collapses to a toggle */
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .site-header { position: relative; }
  .nav a { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--border); }
  .nav a[aria-current="page"] { border-bottom-color: var(--green); }
  .nav .btn { margin: 16px 0 0; padding: 14px 18px; font-size: 14px; }
}

@media (max-width: 1040px) {
  .home-hero { grid-template-columns: 1fr; gap: 48px; }
  .about-top { grid-template-columns: 1fr; gap: 44px; }
  .about-card { max-width: 420px; }
  .event-grid { grid-template-columns: 1fr; gap: 44px; }
  .aside { position: static; max-width: 420px; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .phase { padding-right: 22px; }
  .creds { grid-template-columns: repeat(2, 1fr); }
  .creds__item:nth-child(2n) { border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 860px) {
  :root { --gutter: 24px; }


  .split { grid-template-columns: 1fr; gap: 28px; }
  .doors { grid-template-columns: 1fr; }
  .areas { grid-template-columns: 1fr; }
  .pairs { grid-template-columns: 1fr; }
  .event { grid-template-columns: 1fr; gap: 10px; }
  .event__cta { margin-top: 4px; }
  .post { grid-template-columns: 1fr; gap: 8px; }
  .scope-row { grid-template-columns: 1fr; gap: 10px; }
  .term-row { grid-template-columns: 1fr; gap: 8px; }
  .track-row { grid-template-columns: 1fr; gap: 6px; }
  .paper-row { grid-template-columns: 1fr; gap: 6px; }
  .toolkit-item { grid-template-columns: 32px 1fr; }
  .toolkit-item__status { grid-column: 2; justify-self: start; margin-top: 4px; }

  .site-footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { gap: 40px; flex-wrap: wrap; }

  /* Type scales down */
  .home-hero { padding: 56px 0 48px; }
  .home-hero h1 { font-size: 44px; }
  .hero, .legal-hero, .writing-hero { padding: 56px 0 40px; }
  .coaching-hero { padding: 56px 0 48px; }
  .about-top { padding: 56px 0 40px; }
  .contact-grid { padding: 56px 0 60px; }
  .event-hero__inner { padding: 48px 0 40px; }
  .hero h1, .coaching-hero h1, .legal-hero h1, .event-hero h1 { font-size: 40px; }
  .about-bio h1, .contact-intro h1, .writing-hero h1 { font-size: 40px; }
  .door h2 { font-size: 28px; }
  .split__head h2 { font-size: 26px; }
  .section { padding-top: 52px; padding-bottom: 52px; }
  .lede, .home-hero p, .coaching-hero p, .event-hero__body { font-size: 17px; }
  .event-hero__sub { font-size: 19px; }

  .event-hero__meta { flex-wrap: wrap; gap: 8px; }
  .event-hero__rule { display: none; }
}

@media (max-width: 560px) {
  .cards-4 { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .creds { grid-template-columns: 1fr; }
  .creds__item { border-right: none; border-bottom: 1px solid var(--border); padding: 26px 0; }
  .creds__item:last-child { border-bottom: none; }
  .home-hero h1 { font-size: 36px; }
  .hero h1, .coaching-hero h1, .legal-hero h1, .event-hero h1,
  .about-bio h1, .contact-intro h1, .writing-hero h1 { font-size: 34px; }
  .btn, .btn-ghost { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

