/* The Embouchure Project
   Palette and type come from Gabe's own material: the slate-teal slide
   background, the cream and sand of the oval badge, and the badge's three
   icon colours (brain teal, lips orange, heart yellow). Display face is a
   tall condensed sans like his slide titles. */

:root {
  --slate: #8DA9AE;        /* slide background */
  --slate-deep: #5E7F85;
  --slate-ink: #24383B;    /* text on slate */
  --cream: #F4F2DA;        /* badge interior */
  --sand: #E4DCC2;         /* badge ring */
  --paper: #FBFAF3;
  --ink: #1C1B19;
  --ink-soft: #4A4842;
  --ink-faint: #77736A;
  --line: #DDD6C0;
  --brain: #1F7A80;
  --lips: #D9562A;
  --heart: #FFC54D;

  --font-display: 'Bebas Neue', 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;

  --radius: 14px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brain); text-underline-offset: 3px; }
a:hover { color: var(--slate-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.3rem, 5vw, 3.4rem); }
h3 { font-size: 1.75rem; }

p { margin: 0 0 1em; max-width: 68ch; }

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

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-deep);
  margin: 0 0 10px;
}

.lede,
.hero .desc-edit p,
.section-head .desc-edit p { font-size: 1.2rem; color: var(--ink-soft); }
.hero .desc-edit p { color: var(--slate-ink); font-size: 1.22rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--slate-ink); color: var(--cream); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
}
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 6px; }
.site-nav a {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.site-nav a:hover { background: var(--sand); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lips); border-radius: 0; }
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font: 600 1rem var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-left, 0px)) 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--lips); }
  .brand img { height: 38px; }
}

/* ---------- hero (home) ---------- */
.hero {
  background: var(--slate);
  color: var(--ink);
  overflow: hidden;
  position: relative;
}
.hero::after {
  /* the concentric arches from his title slide */
  content: "";
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 26px, rgba(255,255,255,0.28) 27px 28px);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 7vw, 88px);
  position: relative;
  z-index: 1;
}
.hero-badge img {
  width: 100%;
  max-width: 330px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(36,56,59,0.28));
}
.hero h1 { color: var(--ink); margin-bottom: 0.3em; }
.hero h1 .accent { display: block; color: var(--cream); }
.hero .lede { color: var(--slate-ink); font-size: 1.22rem; }
.hero .eyebrow { color: var(--slate-ink); }
.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  font-family: var(--font-cond);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points li::before { content: "\2022"; color: var(--ink); }
/* Gabe's punchline after the three points (his Select Slides title slide). */
.hero-points:has(+ .hero-tagline) { margin-bottom: 10px; }
.hero-tagline {
  margin: 0 0 28px;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
}
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-badge img { max-width: 190px; }
}

/* ---------- page header (inner pages) ---------- */
.page-head {
  background: var(--slate);
  padding-block: clamp(36px, 6vw, 64px) clamp(28px, 5vw, 48px);
  position: relative;
  overflow: hidden;
}
.page-head .wrap { display: flex; align-items: center; gap: 28px; position: relative; z-index: 1; }
.page-head img.page-icon { width: 92px; flex: none; }
.page-head h1 { margin: 0 0 0.15em; }
.page-head p { margin: 0; color: var(--slate-ink); font-size: 1.15rem; }
.page-head::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -180px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 24px, rgba(255,255,255,0.25) 25px 26px);
}
@media (max-width: 600px) {
  .page-head .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .page-head img.page-icon { width: 64px; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section-cream { background: var(--cream); }
.section-head { max-width: 760px; margin-bottom: 36px; }

/* pillars: listen / study / advocate */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pillar {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
}
.pillar-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.pillar-icon img { width: 56px; height: auto; }
.pillar p { color: var(--ink-soft); }
.pillar .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }

/* audiences */
.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.audience {
  padding: 26px 28px 22px 0;
  border-bottom: 1px solid var(--line);
}
.audience:nth-child(odd) { padding-right: 36px; border-right: 1px solid var(--line); }
.audience:nth-child(even) { padding-left: 36px; }
.audience h3 { margin-bottom: 0.3em; }
.audience p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) {
  .audiences { grid-template-columns: 1fr; }
  .audience:nth-child(odd), .audience:nth-child(even) { padding: 22px 0; border-right: none; }
}

/* risk factors (slide 10) */
.risk-band { background: var(--ink); color: var(--cream); }
.risk-band .eyebrow { color: var(--heart); }
.risk-band h2 { color: var(--cream); }
.risk-band .lede { color: #CFCAB5; }
.risk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  counter-reset: risk;
  border-top: 1px solid #3A3833;
}
.risk-list li {
  counter-increment: risk;
  padding: 26px 32px 26px 0;
  border-bottom: 1px solid #3A3833;
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto 1fr;
  gap: 6px 12px;
  align-items: start;
}
/* Divider and breathing room between columns, so each number reads as the
   start of its own item rather than the end of the one before. */
.risk-list li:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid #3A3833; }
.risk-list li::before {
  content: counter(risk);
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.85;
  color: var(--heart);
  grid-row: span 2;
}
.risk-list strong {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
}
.risk-list span { color: #CFCAB5; font-size: 0.98rem; }
.risk-source { margin-top: 26px; font-size: 0.9rem; color: #A9A491; }
.risk-source a { color: var(--heart); }
@media (max-width: 900px) {
  .risk-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .risk-list li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .risk-list li:nth-child(2n) { padding-left: 28px; border-left: 1px solid #3A3833; }
}
@media (max-width: 560px) {
  .risk-list { grid-template-columns: 1fr; }
  .risk-list li:nth-child(2n) { padding-left: 0; border-left: 0; }
  .risk-list li { padding-right: 0; }
}

/* call to action band */
.cta-band {
  background: var(--heart);
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner h2 { margin: 0 0 0.2em; }
.cta-inner p { margin: 0; color: var(--ink-soft); }

/* ---------- about ---------- */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}
.story-photo { border-radius: var(--radius); border: 2px solid var(--ink); overflow: hidden; }
.story-photo figcaption { font-size: 0.85rem; color: var(--ink-faint); padding: 8px 12px; background: var(--cream); }
@media (max-width: 820px) { .story { grid-template-columns: 1fr; } .story-photo { max-width: 380px; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li {
  background: var(--paper);
  border-left: 4px solid var(--brain);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
}
.steps li strong { font-family: var(--font-cond); font-size: 1.25rem; font-weight: 600; display: block; }
.steps li p { margin: 2px 0 0; color: var(--ink-soft); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.principle { border-top: 4px solid var(--ink); padding-top: 16px; }
.principle p { color: var(--ink-soft); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; } }

.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.person {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px;
  align-items: start;
}
.person img { border-radius: 10px; width: 150px; height: 180px; object-fit: cover; }
.person h3 { margin-bottom: 0.1em; }
.person .role { font-family: var(--font-cond); font-weight: 600; color: var(--slate-deep); letter-spacing: 0.04em; margin-bottom: 10px; }
.person .desc-edit p { font-size: 0.96rem; color: var(--ink-soft); }
@media (max-width: 960px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
  .person { grid-template-columns: 1fr; }
  .person img { width: 130px; height: 156px; }
}

/* ---------- research ---------- */
.culture-intro { max-width: 760px; }
.culture-rows { display: grid; gap: 18px; }
.culture-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}
.culture-step {
  padding: 22px 34px 22px 22px;
  position: relative;
  min-width: 0;
}
.culture-step:nth-child(1) { background: #E9E9F2; border-radius: var(--radius) 0 0 var(--radius); }
.culture-step:nth-child(2) { background: #D3CCC2; }
.culture-step:nth-child(3) { background: #626B82; color: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.culture-step:nth-child(1)::after,
.culture-step:nth-child(2)::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 26px solid transparent;
  border-bottom: 26px solid transparent;
  border-left: 28px solid var(--heart);
  z-index: 2;
}
.culture-step h3 { font-family: var(--font-cond); font-weight: 600; font-size: 1.45rem; letter-spacing: 0; line-height: 1.15; margin-bottom: 8px; }
.culture-step ul { margin: 0; padding-left: 18px; font-size: 0.98rem; }
.culture-step li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .culture-row { grid-template-columns: 1fr; }
  .culture-step { padding: 18px 20px 26px; }
  .culture-step:nth-child(1) { border-radius: var(--radius) var(--radius) 0 0; }
  .culture-step:nth-child(3) { border-radius: 0 0 var(--radius) var(--radius); }
  .culture-step:nth-child(1)::after,
  .culture-step:nth-child(2)::after {
    right: auto; left: 22px; top: auto; bottom: -16px; transform: none;
    border-left: 22px solid transparent;
    border-right: 22px solid transparent;
    border-top: 20px solid var(--heart);
    border-bottom: 0;
  }
}

.topic-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.topic-nav a {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 5px 14px;
}
.topic-nav a:hover { background: var(--ink); color: var(--cream); }

.topic { margin-bottom: 44px; scroll-margin-top: 90px; }
.topic h3 { font-size: 2rem; border-bottom: 2px solid var(--ink); padding-bottom: 8px; }
.study-list { list-style: none; padding: 0; margin: 0; }
.study-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 4px 28px;
}
.study-cite { font-weight: 600; color: var(--ink); }
a.study-cite { color: var(--brain); }
a.study-cite::after { content: " \2197"; font-weight: 400; }
.study-journal { display: block; font-style: italic; font-size: 0.92rem; color: var(--ink-faint); grid-column: 1; }
.study-sum { margin: 0; color: var(--ink-soft); grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 720px) {
  .study-list li { grid-template-columns: 1fr; }
  .study-sum { grid-column: 1; grid-row: auto; margin-top: 6px; }
}

/* ---------- resources ---------- */
.res-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.res-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
}
.res-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); }
.res-thumb {
  aspect-ratio: 16 / 9;
  background: var(--slate);
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--ink);
}
.res-thumb img { width: 100%; height: 100%; object-fit: cover; }
.res-thumb img.res-mark { width: auto; height: 62%; object-fit: contain; }
.res-thumb.cream { background: var(--cream); }
.res-thumb.heart { background: var(--heart); }
.res-thumb .res-type {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.res-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.res-kind { font-family: var(--font-cond); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--slate-deep); }
.res-body h3 { font-family: var(--font-cond); font-weight: 600; font-size: 1.4rem; letter-spacing: 0; line-height: 1.2; margin: 0; }
.res-body p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }
.res-body .res-credit { font-size: 0.85rem; font-style: italic; }
.res-credit cite { font-style: normal; }
.res-go { margin-top: auto; padding-top: 10px; font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brain); }
@media (max-width: 960px) { .res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .res-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.form-card, .side-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.side-card + .side-card { margin-top: 22px; }
.side-card.cream { background: var(--cream); }

.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-cond); font-weight: 600; letter-spacing: 0.04em; font-size: 1.05rem; margin-bottom: 5px; }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 11px 13px;
  border: 2px solid #BDB59C;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(31,122,128,0.25); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.hidden-field { position: absolute; left: -9999px; }
.form-note { font-size: 0.88rem; color: var(--ink-faint); margin-top: 12px; }
/* Linked sections land below the sticky header, not under it. */
section[id] { scroll-margin-top: 60px; }

.email-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 2px dashed #BDB59C;
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 4px;
}
.email-copy a { font-weight: 600; word-break: break-all; flex: 1; min-width: 0; }
.copy-btn {
  font: 600 0.95rem var(--font-cond);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--cream);
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  cursor: pointer;
}
.copy-btn.done { background: var(--brain); }

.signup { display: flex; flex-wrap: wrap; gap: 10px; }
.signup input {
  flex: 1 1 200px;
  min-width: 0;
  font: inherit;
  padding: 11px 13px;
  border: 2px solid #BDB59C;
  border-radius: 10px;
  background: #fff;
}
.signup input:focus { border-color: var(--ink); outline: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--slate-ink); color: #D9DEDC; padding-block: 48px 28px; font-size: 0.95rem; }
.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.footer-badge { width: 74px; }
.site-footer h2 { font-size: 1.6rem; color: var(--cream); margin-bottom: 8px; }
.site-footer a { color: var(--cream); }
.footer-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-legal {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  font-size: 0.85rem;
  color: #AFBAB8;
}
.footer-legal p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
