/* ==========================================================================
   Mohamed Echout — site-v13.css
   One stylesheet for the homepage, the learning library and lesson pages.
   Replaces styles-v11.css + responsive-v11.css + ui-v12.css.

   1. Tokens          5. Hero               9. About / reviews
   2. Base            6. Services          10. Process / FAQ / contact
   3. Primitives      7. Work              11. Footer / mobile shortcut
   4. Header          8. Lessons           12. Library + lesson pages
                                           13. Motion, print, fallbacks
   ========================================================================== */

/* Fonts are served from this site (no third-party requests). DM Sans and Manrope, SIL Open Font License. */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/dm-sans-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: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/dm-sans-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: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('fonts/manrope-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: 'Manrope'; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url('fonts/manrope-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;
}

/* 1. Tokens --------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Brand constants */
  --navy: #101c32;
  --navy-deep: #0a1222;
  --violet: #5b4bd6;
  --mint: #a6e3d1;

  /* Type */
  --font-body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-head: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --fs-label: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem);
  --fs-h3: clamp(1.3rem, 1.2rem + .4vw, 1.5rem);
  --fs-h2: clamp(2rem, 1.25rem + 3vw, 3.25rem);
  --fs-h1: clamp(2.6rem, 1.2rem + 4.7vw, 4.7rem);

  /* Space and shape */
  --gutter: clamp(20px, 4.5vw, 48px);
  --section: clamp(68px, 9vw, 128px);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-pill: 999px;
  --header-h: 68px;

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --fast: .18s;
  --slow: .45s;

  /* Light theme */
  --bg: #f6f7fb;
  --bg-alt: #edf0f7;
  --surface: #ffffff;
  --surface-2: #f2f4f9;
  --text: #111a2e;
  --text-2: #495569;
  --text-3: #5d6a82;
  --line: #e2e6ef;
  --line-strong: #c9d0de;
  --accent: #5b4bd6;
  --accent-hover: #4a3bbf;
  --accent-text: #5244c8;
  --accent-soft: #eeebff;
  --accent-line: #d3ccfa;
  --mint-text: #1c7355;
  --mint-soft: #e4f5ee;
  --mint-line: #c4e6d8;
  --ink-bg: #101c32;
  --ink-fg: #ffffff;
  --glass: rgb(255 255 255 / .84);
  --glass-line: rgb(255 255 255 / .7);
  --focus: #7566ee;
  --shadow-sm: 0 1px 2px rgb(16 28 50 / .05), 0 2px 8px rgb(16 28 50 / .04);
  --shadow-md: 0 2px 4px rgb(16 28 50 / .04), 0 14px 34px rgb(16 28 50 / .09);
  --shadow-lg: 0 4px 10px rgb(16 28 50 / .05), 0 28px 70px rgb(16 28 50 / .16);
}

/* Dark theme: follows the visitor's system setting. Nothing is stored. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090f1c;
    --bg-alt: #0c1424;
    --surface: #121b2e;
    --surface-2: #18233a;
    --text: #f1f4fa;
    --text-2: #b7c1d4;
    --text-3: #8d9ab3;
    --line: rgb(255 255 255 / .1);
    --line-strong: rgb(255 255 255 / .2);
    --accent: #6858e6;
    --accent-hover: #5a4ad4;
    --accent-text: #b9b1ff;
    --accent-soft: rgb(124 109 242 / .16);
    --accent-line: rgb(150 138 255 / .35);
    --mint-text: #a6e3d1;
    --mint-soft: rgb(166 227 209 / .1);
    --mint-line: rgb(166 227 209 / .28);
    --ink-bg: #f1f4fa;
    --ink-fg: #101c32;
    --glass: rgb(18 27 46 / .8);
    --glass-line: rgb(255 255 255 / .12);
    --focus: #a59bff;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-md: 0 12px 32px rgb(0 0 0 / .35);
    --shadow-lg: 0 28px 70px rgb(0 0 0 / .5);
  }
}

/* Navy "ink" sections keep the same dark palette in both themes.
   (Mirrors the dark theme block above — keep the two in sync.) */
.hero, .about-section, .contact-section, .library-hero, .site-footer, .podcast-strip {
  color-scheme: dark;
  --text: #ffffff;
  --text-2: #c3cce0;
  --text-3: #9daac3;
  --line: rgb(255 255 255 / .12);
  --line-strong: rgb(255 255 255 / .24);
  --accent: #6858e6;
  --accent-hover: #5a4ad4;
  --accent-text: #c9c3ff;
  --accent-soft: rgb(124 109 242 / .18);
  --accent-line: rgb(150 138 255 / .4);
  --mint-text: #a6e3d1;
  --mint-soft: rgb(166 227 209 / .1);
  --mint-line: rgb(166 227 209 / .28);
  --focus: #b5adff;
  color: var(--text);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 40px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -.045em; }
h2 { font-size: var(--fs-h2); letter-spacing: -.04em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.02em; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
em { font-style: normal; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { border: 0; background: none; }
button, summary, select { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
a, button, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
video:focus-visible { outline-offset: -4px; }
::selection { background: #cfc8ff; color: #111a2e; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 1000;
  padding: 12px 20px; border-radius: var(--r-sm);
  background: #fff; color: #101c32; font-weight: 600; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; }
.anchor { display: block; scroll-margin-top: calc(var(--header-h) + 40px); }
main:focus { outline: none; }

/* 3. Primitives ----------------------------------------------------------- */
.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section { padding-block: var(--section); }

.eyebrow {
  margin-bottom: 18px;
  color: var(--accent-text);
  font-size: var(--fs-label);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .1em;
  text-transform: uppercase;
}
:is(.hero, .about-section, .contact-section, .library-hero, .podcast-strip) .eyebrow { color: var(--mint-text); }

.section-heading { margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-heading > p:last-child:not(.eyebrow) {
  max-width: 60ch; margin-top: 20px; color: var(--text-2); font-size: var(--fs-md);
}
.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: end;
}
.section-heading.split-heading > p:last-child:not(.eyebrow),
.split-heading > div:last-child > p {
  max-width: 50ch; margin-top: 0; color: var(--text-2); font-size: var(--fs-md);
}
.split-heading > div:last-child > .text-link { margin-top: 12px; }
.muted-heading { color: var(--text-3); }
.large-copy { font-size: var(--fs-lg); line-height: 1.5; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 52px; padding: 12px 14px 12px 24px;
  border: 1px solid var(--accent); border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: var(--fs-sm); font-weight: 600; line-height: 1.3; text-align: center;
  box-shadow: 0 1px 2px rgb(16 28 50 / .12), 0 6px 18px rgb(91 75 214 / .28);
  transition: background var(--fast), border-color var(--fast), box-shadow var(--fast), transform var(--fast) var(--ease);
}
.button:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  box-shadow: 0 2px 4px rgb(16 28 50 / .14), 0 12px 28px rgb(91 75 214 / .36);
  transform: translateY(-2px);
}
.button:active { transform: translateY(0); }
.button:disabled { opacity: .65; cursor: wait; }
.button > .ico {
  --ico: 16px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgb(255 255 255 / .18);
  transition: transform var(--fast) var(--ease);
}
.button > .ico-play { --ico: 12px; }
.button > .ico-copy { --ico: 15px; }
.button:hover > .ico-out { transform: translate(2px, -2px); }
.button-small { min-height: 44px; padding: 8px 10px 8px 18px; gap: 10px; font-size: .875rem; }
.button-small > .ico { --ico: 15px; width: 26px; height: 26px; }
.button-dark {
  background: var(--ink-bg); border-color: var(--ink-bg); color: var(--ink-fg);
  box-shadow: var(--shadow-sm);
}
.button-dark:hover { background: var(--ink-bg); border-color: var(--ink-bg); box-shadow: var(--shadow-md); }
@supports (background: color-mix(in srgb, red, blue)) {
  .button-dark:hover { background: color-mix(in srgb, var(--ink-bg) 86%, var(--accent)); border-color: transparent; }
}
.button-dark > .ico { background: color-mix(in srgb, var(--ink-fg) 16%, transparent); }
.button-outline {
  padding-inline: 14px 24px;
  background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .28); color: #fff;
  box-shadow: none; backdrop-filter: blur(6px);
}
.button-outline:hover { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .5); box-shadow: none; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Text links */
.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  color: var(--accent-text); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4;
  text-decoration: underline transparent; text-underline-offset: 5px;
  transition: text-decoration-color var(--fast), color var(--fast);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link > .ico { transition: transform var(--fast) var(--ease); }
.text-link:hover > .ico-out { transform: translate(2px, -2px); }
.text-link:hover > .ico-go { transform: translateX(3px); }

/* Icons. Each one is an empty span whose only content is a drawing made in CSS,
   so it looks the same on every device and always sits dead centre in its box.
   Size with --ico; give the span a width, height and background to make a badge. */
:root {
  --i-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 17.5l11-11M8.5 6.5h9v9'/%3E%3C/svg%3E");
  --i-go: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M13 5.5l6.5 6.5-6.5 6.5'/%3E%3C/svg%3E");
  --i-play: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.6v12.8a1 1 0 0 0 1.5.86l10.8-6.4a1 1 0 0 0 0-1.72L9.5 4.74A1 1 0 0 0 8 5.6z'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  --i-copy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2.5'/%3E%3Cpath d='M15 5.5A1.5 1.5 0 0 0 13.5 4h-8A1.5 1.5 0 0 0 4 5.5v8A1.5 1.5 0 0 0 5.5 15'/%3E%3C/svg%3E");
}
.ico { display: inline-grid; place-items: center; place-content: center; flex-shrink: 0; line-height: 1; }
.ico::before {
  content: ''; display: block; width: var(--ico, 1.15em); height: var(--ico, 1.15em);
  background: currentColor;
  -webkit-mask: var(--ico-src) center / contain no-repeat;
  mask: var(--ico-src) center / contain no-repeat;
}
.ico-out { --ico-src: var(--i-out); }
.ico-go { --ico-src: var(--i-go); }
.ico-play { --ico-src: var(--i-play); }
.ico-check { --ico-src: var(--i-check); }
.ico-plus { --ico-src: var(--i-plus); }
.ico-copy { --ico-src: var(--i-copy); }

/* Disclosure "+" badges */
summary > .ico-plus {
  --ico: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text-2);
  transition: transform var(--slow) var(--ease), background var(--fast), color var(--fast), border-color var(--fast);
}
summary:hover > .ico-plus { border-color: var(--accent-line); color: var(--accent-text); background: var(--accent-soft); }
details[open] > summary > .ico-plus {
  transform: rotate(45deg);
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* 4. Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 12px; z-index: 50;
  width: min(1280px, 100% - 24px); height: var(--header-h);
  margin: 12px auto 0;
  border: 1px solid var(--glass-line); border-radius: 22px;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 2px rgb(10 18 34 / .06), 0 8px 28px rgb(10 18 34 / .1);
  transition: box-shadow var(--slow), background var(--slow);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 2px rgb(10 18 34 / .08), 0 14px 40px rgb(10 18 34 / .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; height: 100%; padding-inline: 20px 12px;
}
.brand {
  display: flex; align-items: center; gap: 12px; flex-shrink: 1; min-width: 0; min-height: 44px;
  font-size: .9375rem; font-weight: 700; line-height: 1.3; letter-spacing: -.015em;
}
.brand > span:last-child { min-width: 0; white-space: nowrap; }
.brand small {
  display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis;
  color: var(--text-3); font-size: .75rem; font-weight: 400; letter-spacing: 0;
}
.brand-mark {
  font-family: var(--font-head); font-size: 1.9rem; font-weight: 800;
  line-height: 1; letter-spacing: -.09em;
}
.brand-mark > span { color: var(--accent-text); }
.site-footer .brand-mark > span { color: var(--mint); }

#site-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
#site-nav a {
  padding: 10px 14px; border-radius: var(--r-pill);
  color: var(--text-2); font-size: .9rem; font-weight: 500; line-height: 1.4; white-space: nowrap;
  transition: color var(--fast), background var(--fast);
}
#site-nav a:hover { color: var(--text); background: var(--surface-2); }
#site-nav a[aria-current="location"] { color: var(--accent-text); background: var(--accent-soft); }
#site-nav .mobile-nav-contact { display: none; }

.menu-toggle {
  display: none; align-items: center; gap: 10px; flex-shrink: 0;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; line-height: 1;
}
.menu-icon { display: flex; flex-direction: column; gap: 5px; }
.menu-icon i {
  display: block; width: 16px; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform var(--fast) var(--ease);
}
.menu-toggle[aria-expanded="true"] .menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* 5. Hero ----------------------------------------------------------------- */
.hero, .library-hero {
  position: relative; isolation: isolate; overflow: clip;
  margin-top: calc(-1 * (var(--header-h) + 12px));
  background: var(--navy);
}
.hero::before, .library-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(58% 52% at 80% 32%, rgb(104 88 230 / .42), transparent 70%),
    radial-gradient(42% 46% at 4% 92%, rgb(166 227 209 / .13), transparent 70%),
    radial-gradient(46% 40% at 42% -6%, rgb(64 98 172 / .42), transparent 70%);
}
.hero::after, .library-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 28%, #000 25%, transparent 100%);
  mask-image: radial-gradient(80% 70% at 50% 28%, #000 25%, transparent 100%);
}
.hero { padding-top: calc(var(--header-h) + clamp(52px, 7vw, 92px)); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 26px; padding: 8px 14px 8px 12px;
  border: 1px solid var(--mint-line); border-radius: var(--r-pill);
  background: var(--mint-soft);
  font-size: .75rem; letter-spacing: .09em;
}
.status-dot {
  position: relative; flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%; background: var(--mint);
}
.status-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--mint);
}
.hero h1 { max-width: 13.5em; font-weight: 600; line-height: 1.04; }
.hero h1 em {
  background: linear-gradient(100deg, #a6e3d1 10%, #b7d4f5 55%, #c0b6ff 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  /* keeps descenders inside the painted box */
  padding-bottom: .12em;
}
.hero-intro { max-width: 34em; margin-top: 26px; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.6; }
.hero-person { max-width: 34em; margin-top: 14px; color: var(--text-3); font-size: 1rem; }
.hero .button-row { margin-top: 32px; }
.hero-details {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: 26px; color: var(--text-2); font-size: .875rem;
}
.hero-details span { display: inline-flex; align-items: center; gap: 8px; }
.hero-details span::before {
  content: ''; width: 15px; height: 15px; flex-shrink: 0; background: var(--mint);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}

.hero-visual { position: relative; padding: 0 0 46px 18px; }
.hero-visual::before {
  content: ''; position: absolute; inset: 6% -8% 10% 4%; z-index: -1;
  border-radius: 50%;
  background: linear-gradient(140deg, #6f5ff0, #63c7b0);
  filter: blur(70px); opacity: .38;
}
.portrait-frame {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 4.7; border-radius: var(--r-lg);
  border: 1px solid rgb(255 255 255 / .18);
  background: #1c2b45;
  box-shadow: 0 30px 70px rgb(3 8 20 / .5);
}
.portrait-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.portrait-caption {
  position: absolute; inset: auto 0 0 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 72px 24px 88px;
  background: linear-gradient(transparent, rgb(9 16 32 / .94) 62%);
}
.portrait-caption .caption-label {
  flex-basis: 100%; color: var(--mint); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.portrait-caption > span:nth-child(2) {
  font-family: var(--font-head); font-size: 1.5rem; font-weight: 600; line-height: 1.3; letter-spacing: -.03em;
}
.credential-note, .hero-sample {
  /* white cards floating on the navy hero, in both themes */
  color-scheme: light;
  position: absolute; display: flex; align-items: center;
  background: rgb(255 255 255 / .96); color: #111a2e;
  border: 1px solid rgb(255 255 255 / .7);
  box-shadow: 0 18px 44px rgb(3 10 26 / .34);
  transition: transform var(--fast) var(--ease), box-shadow var(--fast);
}
.credential-note:hover, .hero-sample:hover { transform: translateY(-3px); box-shadow: 0 24px 54px rgb(3 10 26 / .42); }
.credential-note { position: static; gap: 9px; min-height: 44px; padding: 8px 16px 8px 9px; border-radius: var(--r-pill); box-shadow: 0 6px 18px rgb(3 10 26 / .3); }
.credential-symbol { --ico: 14px; width: 26px; height: 26px; border-radius: 50%; background: #1c7355; color: #fff; }
.credential-note strong { display: block; font-size: .8125rem; line-height: 1.3; }
.credential-note small { display: block; color: #495569; font-size: .75rem; line-height: 1.3; }
.hero-sample { bottom: 0; left: -14px; right: 26px; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); }
.sample-play {
  --ico: 17px;
  width: 44px; height: 44px; border-radius: 50%;
  background: #5b4bd6; color: #fff;
  box-shadow: 0 6px 16px rgb(91 75 214 / .4);
}
.hero-sample small { display: block; color: #495569; font-size: .8125rem; line-height: 1.4; }
.hero-sample strong { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.4; }
.hero-sample > .ico-out { --ico: 20px; margin-left: auto; color: #5244c8; }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: clamp(36px, 5vw, 60px); padding-block: 26px;
  border-top: 1px solid var(--line);
}
.hero-foot span {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgb(255 255 255 / .04);
  color: var(--text-2); font-size: .875rem; font-weight: 500; line-height: 1.4;
}

.publication-strip { padding: 26px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.publication-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.publication-inner > p { flex-shrink: 0; color: var(--text-3); font-size: var(--fs-label); line-height: 1.5; }
.publication-inner > p strong { color: var(--text-2); font-weight: 600; }
.publication-inner > div { display: flex; flex: 1; flex-wrap: wrap; justify-content: space-between; gap: 8px 40px; min-width: 0; max-width: 780px; }
.publication-inner a {
  color: var(--text-2);
  font-family: var(--font-head); font-size: clamp(1.1rem, .9rem + .7vw, 1.4rem); font-weight: 800; letter-spacing: -.04em;
  text-decoration: none; transition: color var(--fast);
}
.publication-inner a:hover { color: var(--text); }
.publication-inner a > .ico { --ico: 15px; color: var(--text-3); }
.publication-inner a:hover > .ico { color: var(--accent-text); }
.partner-trust {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--text-2); font-size: var(--fs-sm); line-height: 1.7;
}
.partner-trust strong { color: var(--text); font-weight: 600; }

/* 6. Services ------------------------------------------------------------- */
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow), border-color var(--fast);
}
.service::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 120px; z-index: 0;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(var(--accent-soft), transparent);
  opacity: 0; transition: opacity var(--slow); pointer-events: none;
}
.service:hover, .service:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.service:hover::before, .service:focus-within::before { opacity: 1; }
.service > * { position: relative; }
.service-top { display: grid; grid-template-columns: 1fr auto; gap: 22px 16px; align-items: start; margin-bottom: 18px; }
.service-icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border: 1px solid var(--accent-line); border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-text);
}
.service:nth-child(3) .service-icon { border-color: var(--mint-line); background: var(--mint-soft); color: var(--mint-text); }
.service-number { color: var(--text-3); font-family: var(--font-head); font-size: .9375rem; font-weight: 600; }
.service-top .eyebrow { grid-column: 1 / -1; margin: 0; color: var(--text-3); font-size: .75rem; letter-spacing: .08em; }
.service h3 { margin-bottom: 12px; font-size: clamp(1.4rem, 1.2rem + .7vw, 1.7rem); }
.service > p { color: var(--text-2); }
.check-list { margin-block: 22px 26px; font-size: var(--fs-sm); }
.check-list li { position: relative; padding: 6px 0 6px 30px; }
.check-list li::before {
  content: ''; position: absolute; left: 0; top: .62em;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-text);
  -webkit-mask: var(--i-check) center / 13px no-repeat;
  mask: var(--i-check) center / 13px no-repeat;
}
.service:nth-child(3) .check-list li::before { background: var(--mint-text); }
.service > .text-link {
  position: static; justify-content: space-between; width: 100%;
  margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line);
}
/* the whole card is the click target */
.service > .text-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); }
.service:hover > .text-link > .ico { transform: translateX(4px); }
.service-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  margin-top: 20px; padding: 18px clamp(20px, 2.6vw, 34px);
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  color: var(--text-2); font-size: var(--fs-sm);
}
.service-note a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--accent-text); font-weight: 600;
  text-decoration: underline transparent; text-underline-offset: 5px; transition: text-decoration-color var(--fast);
}
.service-note a:hover { text-decoration-color: currentColor; }
.audience-line {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.audience-line > span { color: var(--text-3); }
.audience-line > p { font-weight: 600; }

/* 7. Work ----------------------------------------------------------------- */
.work-section { background: var(--bg-alt); }
.featured-work {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-md);
}
.featured-media {
  align-self: center; margin: 14px; overflow: hidden;
  border-radius: var(--r-md); background: #0b1220;
}
.featured-media video, .lesson-player video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #0b1220;
}
.featured-copy { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) clamp(24px, 3vw, 36px) 14px; }
.featured-copy h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.15; letter-spacing: -.03em; }
.featured-copy > p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); }
.small-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.small-list li {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text-2); font-size: var(--fs-label); line-height: 1.5;
}
.featured-copy .button { margin-top: auto; }
.featured-copy .text-link { align-self: flex-start; margin-bottom: 14px; }

.portfolio-list {
  margin-top: 24px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.portfolio-row {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center; gap: 22px;
  padding: 24px clamp(18px, 2.4vw, 30px);
  transition: background var(--fast);
}
.portfolio-row + .portfolio-row { border-top: 1px solid var(--line); }
.portfolio-row:hover { background: var(--surface-2); }
.work-index {
  display: grid; place-items: center; align-self: start;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text);
  font-family: var(--font-head); font-size: .875rem; font-weight: 700;
}
.portfolio-row .eyebrow { margin-bottom: 6px; font-size: .75rem; letter-spacing: .08em; }
.portfolio-row h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.3rem); }
.portfolio-row p:last-child { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.work-tags span {
  padding: 3px 11px; border: 1px solid var(--accent-line); border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-text);
  font-size: var(--fs-label); font-weight: 500; line-height: 1.5;
}
.portfolio-row > .text-link { position: static; white-space: nowrap; }
.portfolio-row > .text-link::after { content: ''; position: absolute; inset: 0; }
.access-note { margin-top: 16px; color: var(--text-3); font-size: var(--fs-label); }
.access-note a:not(.text-link) { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

.transcript {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.transcript summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 68px; padding: 16px 20px 16px 24px;
  border-radius: var(--r-md);
  font-weight: 600; line-height: 1.45;
}
.video-error.access-note { margin: 0; padding: 12px 16px; background: #0b1220; color: #c3cce0; }
.video-error.access-note .text-link { min-height: 0; color: #c9c3ff; text-decoration-color: currentColor; }
.short-card .video-error.access-note { margin-top: 8px; border-radius: var(--r-sm); }
.video-frame { position: relative; display: block; }
/* The whole poster is the play target; a small labelled pill sits in the corner,
   clear of the poster's title and of the presenter's face. */
.video-play {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: flex-end; justify-content: flex-end;
  width: 100%; padding: clamp(10px, 2.4%, 20px);
  border-radius: inherit; cursor: pointer;
}
.video-play-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 20px 0 14px; border-radius: var(--r-pill);
  background: #5b4bd6; color: #fff;
  font-size: .9375rem; font-weight: 600; line-height: 1;
  box-shadow: 0 0 0 4px rgb(255 255 255 / .3), 0 10px 26px rgb(8 14 30 / .4);
  transition: transform var(--fast) var(--ease), background var(--fast);
}
.video-play-chip > .ico { --ico: 16px; }
.video-play:hover .video-play-chip { transform: translateY(-2px); background: #4a3bbf; }
.video-play:focus-visible { outline-offset: -6px; }
/* Short covers keep the bottom band empty, so their pill sits bottom centre. */
.short-card .video-play { justify-content: center; padding-bottom: 5%; }
.short-card .video-play-chip { min-height: 40px; padding: 0 16px 0 12px; font-size: .875rem; box-shadow: 0 0 0 4px rgb(255 255 255 / .16), 0 10px 26px rgb(0 0 0 / .5); }
@media (max-width: 700px) {
  .video-play-chip { min-height: 40px; padding: 0 16px 0 12px; font-size: .875rem; }
}

/* Vertical short videos */
.shorts-block { margin-top: clamp(36px, 4.5vw, 56px); }
.shorts-head { display: flex; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 22px; }
.shorts-head .eyebrow { margin-bottom: 8px; }
.shorts-head h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 1.9rem); letter-spacing: -.03em; }
.shorts-head p:not(.eyebrow) { max-width: 52ch; margin-top: 8px; color: var(--text-2); }
.shorts-head > .text-link { flex-shrink: 0; }
.shorts-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.short-card { min-width: 0; }
.short-card video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: #150f12; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--slow), border-color var(--fast);
}
.short-card:hover video { box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.short-meta { margin-top: 12px; color: var(--accent-text); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.short-meta span { color: var(--text-3); }
.short-card h4 {
  margin: 4px 0 0; font-family: var(--font-head); font-size: 1.0625rem;
  font-weight: 700; line-height: 1.35; letter-spacing: -.015em; text-wrap: balance;
}
@media (max-width: 940px) {
  /* A swipeable row that runs to the screen edges */
  .shorts-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(190px, 30%);
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 14px; scroll-padding-inline: var(--gutter);
  }
  .short-card { scroll-snap-align: start; }
}
@media (max-width: 700px) {
  .shorts-head { flex-direction: column; align-items: flex-start; }
  .shorts-row { grid-auto-columns: 62%; }
}

/* 8. Lessons -------------------------------------------------------------- */
.lesson-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lesson-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow), border-color var(--fast);
}
.lesson-card:hover, .lesson-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.lesson-image { position: relative; display: block; overflow: hidden; margin: 8px 8px 0; border-radius: calc(var(--r-lg) - 8px); background: #f1ebe1; }
.lesson-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.lesson-card:hover .lesson-image img { transform: scale(1.04); }
/* The posters carry their own artwork, so the play button only appears on
   hover or keyboard focus; the duration chip always signals "video". */
.play-icon {
  --ico: 22px;
  position: absolute; inset: 0; margin: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: #5b4bd6; color: #fff;
  box-shadow: 0 10px 28px rgb(8 14 30 / .45);
  opacity: 0; transform: scale(.8);
  transition: opacity var(--fast), transform var(--slow) var(--ease);
}
.lesson-card:hover .play-icon, .lesson-card:focus-within .play-icon { opacity: 1; transform: scale(1); }
@media (hover: none) { .play-icon { display: none; } }
.duration {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 9px; border-radius: 8px;
  background: rgb(10 18 34 / .86); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-label); font-weight: 600; font-variant-numeric: tabular-nums;
}
.duration::before {
  content: ''; width: 10px; height: 10px; background: currentColor;
  -webkit-mask: var(--i-play) center / contain no-repeat;
  mask: var(--i-play) center / contain no-repeat;
}
.lesson-body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 16px; }
.lesson-body .eyebrow { margin-bottom: 8px; font-size: .75rem; letter-spacing: .08em; }
.lesson-body .eyebrow > span { color: var(--text-3); }
.lesson-body h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.35rem); line-height: 1.3; }
.lesson-body h3 a::after { content: ''; position: absolute; inset: 0; }
.lesson-body > p:not(.eyebrow) { margin-top: 10px; color: var(--text-2); font-size: var(--fs-sm); }
.lesson-body > .text-link { margin-top: auto; padding-top: 10px; }
.lesson-card:hover .text-link > .ico { transform: translateX(4px); }

/* Free series that live on YouTube */
.series-block { margin-top: clamp(40px, 5vw, 64px); }
.series-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.series-heading::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.series-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.series-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
  transition: transform var(--slow) var(--ease), box-shadow var(--slow), border-color var(--fast);
}
.series-card:hover, .series-card:focus-within { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--accent-line); }
.series-top { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.series-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px;
  border: 1px solid var(--accent-line); border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-text);
}
.series-card:nth-child(2) .series-icon { border-color: var(--mint-line); background: var(--mint-soft); color: var(--mint-text); }
.series-top .eyebrow { margin: 0; font-size: .75rem; letter-spacing: .08em; }
.series-top .eyebrow > span { color: var(--text-3); }
.series-card h4 {
  margin: 0; font-family: var(--font-head); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  font-weight: 700; line-height: 1.25; letter-spacing: -.02em; text-wrap: balance;
}
.series-card > p { margin-top: 10px; color: var(--text-2); }
.series-card .small-list { margin: 18px 0 22px; }
.series-card > .text-link {
  position: static; justify-content: space-between; width: 100%;
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
}
.series-card > .text-link::after { content: ''; position: absolute; inset: 0; border-radius: var(--r-lg); }
@media (max-width: 700px) { .series-grid { grid-template-columns: 1fr; gap: 20px; } }

.podcast-strip {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 20px 26px;
  margin-top: 24px; padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 36px);
  border: 1px solid rgb(255 255 255 / .1); border-radius: var(--r-lg);
  background:
    radial-gradient(50% 140% at 100% 0%, rgb(104 88 230 / .38), transparent 70%),
    radial-gradient(40% 120% at 0% 100%, rgb(99 199 176 / .14), transparent 70%),
    var(--navy);
  box-shadow: var(--shadow-md);
}
.podcast-icon {
  display: grid; place-items: center; flex-shrink: 0; width: 60px; height: 60px;
  border: 1px solid var(--mint-line); border-radius: 50%;
  background: var(--mint-soft); color: var(--mint-text);
}
.podcast-strip > div { flex: 1; min-width: 0; }
.podcast-strip .eyebrow { margin-bottom: 6px; font-size: .75rem; }
.podcast-strip h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); letter-spacing: -.03em; }
.podcast-strip p:last-child { max-width: 62ch; margin-top: 8px; color: var(--text-2); font-size: var(--fs-sm); }
.podcast-strip > .text-link { flex-shrink: 0; }

.learning-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px;
  margin-top: 32px; padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--accent-line); border-radius: var(--r-lg);
  background:
    radial-gradient(60% 140% at 100% 0%, var(--accent-soft), transparent 70%),
    var(--surface);
}
.learning-cta > p { color: var(--text-2); }
.learning-cta strong { color: var(--text); font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.02em; }
.learning-cta .button { flex-shrink: 0; }

/* 9. About / reviews ------------------------------------------------------ */
.about-section, .contact-section { position: relative; isolation: isolate; overflow: clip; background: var(--navy); }
.about-section::before, .contact-section::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 60% at 0% 90%, rgb(99 199 176 / .14), transparent 70%),
    radial-gradient(45% 55% at 100% 0%, rgb(104 88 230 / .3), transparent 70%);
}
.contact-section::before {
  background:
    radial-gradient(52% 62% at 96% 82%, rgb(104 88 230 / .36), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, rgb(99 199 176 / .1), transparent 70%);
}
.about-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; gap: clamp(36px, 6vw, 88px); }
.about-image {
  overflow: hidden; border-radius: var(--r-lg);
  border: 1px solid rgb(255 255 255 / .16); background: #243149;
  box-shadow: 0 30px 70px rgb(3 8 20 / .45);
}
.about-image img { width: 100%; aspect-ratio: 4 / 4.9; object-fit: cover; object-position: center; }
.about-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--text-2); font-size: var(--fs-md); line-height: 1.75; }
.about-copy > .large-copy { color: var(--text) !important; font-size: var(--fs-lg) !important; line-height: 1.5 !important; }
.credentials { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.credentials .eyebrow { margin-bottom: 14px; }
.credentials a {
  display: flex; align-items: center; gap: 14px;
  margin-top: 10px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: rgb(255 255 255 / .04); color: var(--text);
  text-decoration: none;
  transition: background var(--fast), border-color var(--fast), transform var(--fast) var(--ease);
}
.credentials a:hover { background: rgb(255 255 255 / .09); border-color: var(--line-strong); transform: translateX(4px); }
.verification-card svg { flex-shrink: 0; color: var(--mint-text); }
.verification-card > span:first-of-type { font-weight: 600; line-height: 1.4; }
.verification-card small {
  display: block; margin-bottom: 2px; color: var(--mint-text);
  font-size: .75rem; font-weight: 600; letter-spacing: .04em;
}
.credentials a > .ico { margin-left: auto; color: var(--mint-text); }
.credentials > p:last-child { margin-top: 14px; color: var(--text-3); font-size: var(--fs-label); }

.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.quote {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.quote-mark {
  height: 42px; color: var(--accent-line);
  font-family: Georgia, 'Times New Roman', serif; font-size: 4.6rem; line-height: 1;
}
.quote blockquote { margin: 10px 0 28px; font-size: var(--fs-md); line-height: 1.75; }
.quote figcaption {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center;
  grid-template-rows: auto auto 1fr;
  min-height: 142px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line);
}
.quote figcaption::before {
  content: attr(data-initials); grid-row: 1 / 3;
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-text);
  font-family: var(--font-head); font-size: .9375rem; font-weight: 700; letter-spacing: .02em;
}
.quote figcaption:not([data-initials])::before { display: none; }
.quote figcaption strong { grid-column: 2; font-size: 1rem; line-height: 1.35; }
.quote figcaption > span { grid-column: 2; color: var(--text-3); font-size: var(--fs-label); line-height: 1.45; }
.quote-source { grid-column: 1 / -1; align-self: end; margin-top: 12px; color: var(--text-3); font-size: var(--fs-label); }
.quote-source .text-link { min-height: 44px; font-size: var(--fs-label); }
.more-reviews { margin-top: 24px; }
.more-reviews > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 68px; padding: 14px 20px 14px 24px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 600; transition: border-color var(--fast);
}
.more-reviews > summary:hover { border-color: var(--accent-line); }
.quote-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.more-reviews .quote-grid { margin-top: 20px; }
.quote-grid-three .quote { padding: 26px; }
.quote-grid-three blockquote { font-size: 1rem; }

/* 10. Process / FAQ / contact --------------------------------------------- */
.process-section { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 52px); counter-reset: step; }
.process-grid li { position: relative; }
.process-grid li > span {
  position: relative; z-index: 1;
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 24px;
  border: 1px solid var(--accent-line); border-radius: 50%;
  background: var(--surface); color: var(--accent-text);
  font-family: var(--font-head); font-size: .9375rem; font-weight: 700;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 7%, var(--bg));
}
.process-grid li:not(:last-child)::before {
  content: ''; position: absolute; top: 26px; left: 52px;
  width: calc(100% + clamp(24px, 4vw, 52px) - 52px); height: 1px;
  background: linear-gradient(90deg, var(--accent-line), var(--line-strong));
}
.process-grid p { margin-top: 12px; color: var(--text-2); }
.scope-note {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 12px 40px; align-items: center;
  margin-top: clamp(36px, 5vw, 56px); padding: clamp(22px, 2.6vw, 30px) clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.scope-note strong { font-family: var(--font-head); font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.scope-note p { color: var(--text-2); font-size: var(--fs-sm); }

.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-grid > div:first-child { position: sticky; top: calc(var(--header-h) + 44px); }
.faq-grid > div > .text-link { margin-top: 20px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.faq-item + .faq-item { margin-top: 12px; }
.faq-item:hover { border-color: var(--line-strong); }
.faq-item[open] { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 68px; padding: 16px 18px 16px 24px;
  border-radius: var(--r-md);
  font-size: var(--fs-md); font-weight: 600; line-height: 1.45;
}
.faq-item > p { padding: 0 72px 24px 24px; color: var(--text-2); line-height: 1.75; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.contact-grid > div:first-child > p:not(.eyebrow) { margin-top: 20px; color: var(--text-2); font-size: var(--fs-md); line-height: 1.75; }
.contact-grid > div:first-child > .large-copy { color: var(--text) !important; font-size: var(--fs-lg) !important; line-height: 1.5 !important; }
.contact-grid > div:first-child > .button { margin-top: 30px; }
.contact-grid > div:first-child > .contact-small { max-width: 48ch; margin-top: 14px !important; color: var(--text-3) !important; font-size: var(--fs-label) !important; line-height: 1.6 !important; }

/* The brief card returns to the page theme inside the navy contact section */
.brief-card {
  color-scheme: light;
  --text: #111a2e; --text-2: #495569; --text-3: #5d6a82;
  --line: #e2e6ef; --line-strong: #c9d0de;
  --surface: #ffffff; --surface-2: #f2f4f9;
  --accent: #5b4bd6; --accent-text: #5244c8; --accent-soft: #eeebff; --accent-line: #d3ccfa;
  --mint-text: #1c7355;
  --ink-bg: #101c32; --ink-fg: #ffffff; --focus: #7566ee;
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); color: var(--text);
  box-shadow: 0 30px 80px rgb(2 6 18 / .45);
}
@media (prefers-color-scheme: dark) {
  .brief-card {
    color-scheme: dark;
    --text: #f1f4fa; --text-2: #b7c1d4; --text-3: #8d9ab3;
    --line: rgb(255 255 255 / .1); --line-strong: rgb(255 255 255 / .2);
    --surface: #121b2e; --surface-2: #18233a;
    --accent: #6858e6; --accent-text: #b9b1ff; --accent-soft: rgb(124 109 242 / .16); --accent-line: rgb(150 138 255 / .35);
    --mint-text: #a6e3d1;
    --ink-bg: #f1f4fa; --ink-fg: #101c32; --focus: #a59bff;
  }
}
.brief-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.brief-heading h3 { font-size: var(--fs-h3); }
.brief-heading > .ico { --ico: 18px; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); }
.brief-card label { display: block; margin: 20px 0 8px; font-size: var(--fs-sm); font-weight: 600; }
.brief-card label > span { color: var(--text-3); font-weight: 400; }
.brief-card select, .brief-card textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--text);
  font-size: 1rem; line-height: 1.6;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.brief-card select { min-height: 50px; }
.brief-card textarea { display: block; min-height: 108px; resize: vertical; font-size: 1rem; line-height: 1.6; }
.brief-card select:hover, .brief-card textarea:hover { border-color: var(--text-3); }
.brief-card noscript p { margin-top: 12px; font-size: var(--fs-sm); }
.brief-card noscript a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.brief-card select:focus-visible, .brief-card textarea:focus-visible {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.brief-actions { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 16px; }
.brief-actions .button { width: 100%; min-height: 52px; }
.brief-actions button.text-link { justify-content: center; cursor: pointer; }
.brief-actions .button.is-copied { background: #1c7355; border-color: #1c7355; color: #fff; box-shadow: none; }
.brief-actions .text-link.is-copied { color: var(--mint-text); }
.brief-actions .is-copied > .ico { --ico-src: var(--i-check); }
.brief-card #linkedin-fallback { display: flex; justify-content: center; }
.brief-card.brief-highlight { animation: brief-arrival 1.5s ease-out; animation-timeline: auto; }
.copy-status { min-height: 1.5em; margin-top: 6px; color: var(--mint-text); font-size: var(--fs-sm); line-height: 1.5; }
.brief-card .copy-status { color: #1c7355; }
@media (prefers-color-scheme: dark) { .brief-card .copy-status { color: #a6e3d1; } }
.privacy-note { margin-top: 4px; color: var(--text-3); font-size: var(--fs-label); line-height: 1.6; }

/* 11. Footer / mobile shortcut -------------------------------------------- */
.site-footer { padding: 48px 0 26px; border-top: 1px solid var(--line); background: var(--navy-deep); }
.site-footer .brand small { color: var(--text-3); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px 32px; padding-bottom: 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer-links .text-link { color: var(--text-2); }
.footer-links .text-link:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px; border-top: 1px solid var(--line);
  color: var(--text-3); font-size: var(--fs-label);
}
.footer-bottom p + p { margin: 0; }
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); transition: color var(--fast); }
.footer-bottom a:hover { color: var(--text); }

.mobile-project-shortcut { display: none; }

/* 12. Library + lesson pages ---------------------------------------------- */
.library-hero { padding: calc(var(--header-h) + 44px) 0 clamp(48px, 6vw, 76px); }
.breadcrumb {
  display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 22px; padding: 6px 16px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: 500;
  transition: border-color var(--fast), color var(--fast), background var(--fast);
}
.breadcrumb:hover { border-color: var(--accent-line); color: var(--accent-text); }
.library-hero .breadcrumb { background: rgb(255 255 255 / .05); }
.library-hero .breadcrumb:hover { background: rgb(255 255 255 / .1); color: #fff; border-color: var(--line-strong); }
.library-hero h1 { font-size: clamp(2.8rem, 1.5rem + 4.6vw, 4.6rem); font-weight: 600; }
.library-hero .large-copy { margin-top: 22px; color: var(--text); }
.library-hero p:last-of-type { max-width: 62ch; color: var(--text-2); font-size: var(--fs-md); }
.library-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.not-found { min-height: 72vh; display: grid; align-items: center; }
.not-found .button-row { margin-top: 30px; }
.library-stats span {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: rgb(255 255 255 / .04); color: var(--text-2); font-size: .875rem; font-weight: 500;
}

.library-tools { margin-bottom: 32px; }
.js .library-tools[hidden] { display: block !important; }
.js .brief-actions > [hidden] { display: inline-flex !important; }
.search-row { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.lesson-search {
  display: flex; align-items: center; flex: 1; gap: 12px; max-width: 560px; min-height: 54px; padding: 8px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.lesson-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.lesson-search > span:first-child { height: 26px; color: var(--text-3); }
.lesson-search input { align-self: stretch; width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font-size: 1rem; }
.lesson-search input:focus-visible { outline: none; }
.lesson-search input::placeholder { color: var(--text-3); opacity: 1; }
#lesson-count { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.lesson-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lesson-filters button {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-2);
  font-size: var(--fs-sm); font-weight: 500; line-height: 1.4;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.lesson-filters button span { margin-left: 6px; font-size: var(--fs-label); opacity: .75; }
.lesson-filters button:hover { border-color: var(--accent-line); color: var(--text); }
.lesson-filters button[aria-pressed="true"] { border-color: var(--ink-bg); background: var(--ink-bg); color: var(--ink-fg); }
.empty-lessons {
  padding: 60px 24px; border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
  background: var(--surface); text-align: center;
}
.empty-lessons p { margin: 12px 0 22px; color: var(--text-2); }

.lesson-page { max-width: 980px; padding-top: 32px; padding-bottom: var(--section); }
.lesson-page h1 { max-width: 20em; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
.lesson-page > .eyebrow { margin-bottom: 12px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; color: var(--text-3); font-size: var(--fs-sm); }
.lesson-player {
  margin-top: 28px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: #0b1220; box-shadow: var(--shadow-lg);
}
.lesson-description { margin-top: 28px; color: var(--text-2); font-size: var(--fs-lg); line-height: 1.6; }
.caption-help { margin-top: 12px; color: var(--text-3); font-size: var(--fs-label); }
.lesson-pagination { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 32px; }
.lesson-pagination a {
  padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 600; line-height: 1.4;
  transition: border-color var(--fast), transform var(--fast) var(--ease), box-shadow var(--fast);
}
.lesson-pagination a:hover { border-color: var(--accent-line); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.lesson-pagination a:last-child { text-align: right; }
.lesson-pagination a:only-child { grid-column: 1 / -1; }
.lesson-pagination small { display: block; margin-bottom: 6px; color: var(--accent-text); font-size: var(--fs-label); font-weight: 600; }
.transcript-body { padding: 4px 24px 24px; }
.transcript-body p { max-width: 70ch; color: var(--text-2); font-size: var(--fs-md); line-height: 1.8; }
.transcript-body .text-link { margin-top: 14px; }

/* Privacy and legal page */
.legal-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.legal-summary li {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
  font-weight: 600; line-height: 1.45;
}
.legal-summary li::before {
  content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; background: var(--mint-text);
  -webkit-mask: var(--i-check) center / contain no-repeat;
  mask: var(--i-check) center / contain no-repeat;
}
.legal-page section { margin-top: 44px; }
.legal-page h2 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -.02em; }
.legal-page section p { max-width: 68ch; margin-top: 12px; color: var(--text-2); font-size: var(--fs-md); line-height: 1.75; }
.legal-page section a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.legal-page > .caption-help { margin-top: 44px; }
@media (max-width: 700px) { .legal-summary { grid-template-columns: 1fr; } }

/* 13. Responsive ---------------------------------------------------------- */
@media (max-width: 1100px) {
  #site-nav a { padding-inline: 10px; font-size: .85rem; }
  .brand small { display: none; }
  .hero-sample { left: -6px; right: 14px; }
  .faq-item > p { padding-right: 24px; }
}

@media (min-width: 941px) {
  .menu-toggle { display: none !important; }
}

@media (max-width: 940px) {
  :root { --header-h: 64px; }
  .brand { margin-right: auto; }
  .brand small { display: block; }
  .menu-toggle { display: flex; order: 3; }
  #site-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    margin: 0; padding: 12px;
    border: 1px solid var(--line); border-radius: 22px;
    background: var(--surface); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h) - 34px); max-height: calc(100dvh - var(--header-h) - 34px);
    overflow-y: auto; overscroll-behavior: contain;
  }
  #site-nav a { padding: 13px 16px; border-radius: var(--r-sm); color: var(--text); font-size: 1rem; }
  #site-nav .mobile-nav-contact {
    display: flex; justify-content: space-between; margin-top: 6px;
    background: var(--accent); color: #fff; font-weight: 600;
  }
  #site-nav .mobile-nav-contact:hover { background: var(--accent-hover); color: #fff; }
  .js #site-nav { display: none; }
  .js #site-nav.is-open { display: flex; animation: nav-enter .22s var(--ease); }

  /* Without JavaScript the menu is simply always visible */
  html:not(.js) .site-header { position: static; height: auto; }
  html:not(.js) .header-inner { flex-wrap: wrap; padding-block: 12px; }
  html:not(.js) #site-nav { position: static; order: 4; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; background: transparent; padding: 0; }
  /* Controls the script switches on are drawn from the first paint, so nothing pops in. */
  .js .menu-toggle[hidden] { display: flex !important; }
  html:not(.js) .hero, html:not(.js) .library-hero { margin-top: 12px; padding-top: 56px; }

  .publication-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .publication-inner > p br { display: none; }
  .publication-inner > p strong::before { content: ' '; }
  .publication-inner > div { width: 100%; max-width: none; justify-content: flex-start; gap: 4px 34px; }
  .publication-inner a { min-height: 44px; }

  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .portrait-caption > span:nth-child(2) { font-size: 1.25rem; }
  .hero-sample { padding: 12px 14px; gap: 10px; }
  .hero-sample small { font-size: .75rem; }
  .hero-sample strong { font-size: .8125rem; }
  .sample-play { --ico: 15px; width: 38px; height: 38px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-top .eyebrow { grid-column: 1 / -1; }
  .featured-work { grid-template-columns: 1fr; }
  .featured-media { margin: 12px 12px 0; align-self: auto; }
  .featured-copy { padding: 24px; }
  .featured-copy .button { margin-top: 6px; align-self: flex-start; }
  .lesson-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid-three { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid > div:first-child { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .scope-note { grid-template-columns: 1fr; }
}

@media (min-width: 701px) and (max-width: 940px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:last-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html { scroll-padding-bottom: 92px; }
  .header-cta { display: none; }
  .header-inner { padding-inline: 16px 10px; }
  .brand small { font-size: .7rem; }

  .split-heading { grid-template-columns: 1fr; gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.6rem); }
  .hero .button { flex: 1 1 auto; }
  .hero-visual { width: min(420px, 94%); margin-inline: auto; padding-left: 0; padding-bottom: 50px; }
  .portrait-frame { aspect-ratio: 4 / 4.4; }
  .portrait-frame > img { object-position: center 30%; }
  .hero-sample { left: -8px; right: 10px; padding: 14px 16px; }
  .hero-sample small { font-size: .8125rem; }
  .hero-sample strong { font-size: .875rem; }
  .hero-foot { margin-top: 32px; gap: 8px; }
  .hero-foot span { padding: 6px 13px; font-size: .8125rem; }

  .publication-inner > div { gap: 4px 26px; }

  .service-note { flex-direction: column; align-items: flex-start; }
  .audience-line { flex-direction: column; gap: 6px; }
  .audience-line > p { line-height: 1.8; }
  .featured-copy h3 br { display: none; }
  .portfolio-row { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 22px 18px; }
  .work-index { width: 40px; height: 40px; border-radius: 12px; }
  .portfolio-row > .text-link { grid-column: 2; justify-self: start; }
  .transcript summary, .more-reviews > summary, .faq-item summary { padding-left: 18px; padding-right: 14px; }
  .lesson-grid { grid-template-columns: 1fr; gap: 20px; }
  .learning-cta { flex-direction: column; align-items: flex-start; }
  .podcast-strip { flex-direction: column; align-items: flex-start; }
  .podcast-icon { width: 52px; height: 52px; }

  .about-grid { display: flex; flex-direction: column-reverse; gap: 36px; }
  .about-image { width: 100%; max-width: 460px; margin-right: auto; }
  .about-image img { aspect-ratio: 4 / 4.2; }
  .quote-grid { grid-template-columns: 1fr; gap: 16px; }

  .process-grid { grid-template-columns: 1fr; gap: 0; }
  .process-grid li { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 18px; padding-bottom: 32px; }
  .process-grid li:last-child { padding-bottom: 0; }
  .process-grid li > span { grid-row: 1 / 3; margin: 0; }
  .process-grid h3 { align-self: center; min-height: 52px; display: flex; align-items: center; }
  .process-grid p { grid-column: 2; margin-top: 2px; }
  .process-grid li:not(:last-child)::before { top: 52px; left: 26px; width: 1px; height: calc(100% - 52px); background: var(--accent-line); }

  .faq-item > p { padding: 0 18px 22px; }
  .brief-card textarea { min-height: 132px; }
  .brief-card select, .brief-card textarea, .lesson-search input { font-size: 16px; }
  .brief-actions .button { flex: 1 1 auto; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .search-row { flex-direction: column; align-items: stretch; }
  .lesson-search { max-width: none; }
  .lesson-page { padding-top: 20px; }
  .lesson-meta { gap: 4px 8px; font-size: .875rem; }
  .lesson-player { border-radius: var(--r-md); }
  .lesson-pagination { gap: 10px; }
  .lesson-pagination a { padding: 16px 14px; font-size: var(--fs-sm); }
  .transcript-body { padding: 0 18px 22px; }

  .mobile-project-shortcut:not([hidden]) {
    position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    min-height: 58px; padding: 10px 12px 10px 22px;
    border: 1px solid rgb(255 255 255 / .16); border-radius: var(--r-pill);
    background: rgb(16 28 50 / .92); color: #fff;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    box-shadow: 0 12px 34px rgb(4 10 24 / .4);
    animation: shortcut-enter .3s var(--ease);
  }
  .mobile-project-shortcut > span { color: #c3cce0; font-size: .875rem; }
  .mobile-project-shortcut strong {
    display: flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill);
    background: #6858e6; font-size: .875rem; white-space: nowrap;
  }
  .has-mobile-shortcut .site-footer { padding-bottom: 104px; }
  .menu-open .mobile-project-shortcut { display: none !important; }
}

@media (max-width: 480px) {
  .brand small { display: none; }
}

@media (max-width: 380px) {
  .brand-mark { font-size: 1.7rem; }
  .menu-toggle { padding-inline: 12px; }
  .hero .button-row { display: grid; grid-template-columns: 1fr; }
  .hero-sample > .ico-out { display: none; }
  .mobile-project-shortcut > span { font-size: .8125rem !important; }
}

/* 14. Motion -------------------------------------------------------------- */
@keyframes brief-arrival {
  0%, 30% { box-shadow: 0 0 0 5px var(--mint), 0 30px 80px rgb(2 6 18 / .45); }
  100% { box-shadow: 0 0 0 0 transparent, 0 30px 80px rgb(2 6 18 / .45); }
}
@keyframes nav-enter { from { opacity: 0; translate: 0 -8px; } }
@keyframes shortcut-enter { from { opacity: 0; translate: 0 16px; } }
@keyframes rise { from { opacity: 0; translate: 0 22px; } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .status-dot::after { animation: ping 2.4s ease-out infinite; }

  /* Hero copy arrives in sequence on load */
  .hero-copy > *, .hero-visual, .library-hero .container > * { animation: rise .6s var(--ease) both; }
  .hero-copy > :nth-child(2), .library-hero .container > :nth-child(2) { animation-delay: .04s; }
  .hero-copy > :nth-child(3), .library-hero .container > :nth-child(3) { animation-delay: .08s; }
  .hero-copy > :nth-child(4), .library-hero .container > :nth-child(4) { animation-delay: .12s; }
  .hero-copy > :nth-child(5), .library-hero .container > :nth-child(5) { animation-delay: .16s; }
  .hero-copy > :nth-child(6), .library-hero .container > :nth-child(6) { animation-delay: .2s; }
  .hero-visual { animation-delay: .1s; }

  /* Sections ease in as they scroll into view. Pure CSS: browsers without
     scroll-driven animations simply show everything. */
  @supports (animation-timeline: view()) {
    .section-heading, .service, .service-note, .featured-work, .portfolio-list, .shorts-head, .short-card,
    .lesson-card, .series-heading, .series-card, .podcast-strip, .learning-cta, .about-image, .about-copy, .quote, .more-reviews,
    .process-grid > li, .scope-note, .faq-grid > div, .contact-grid > div, .library-tools {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 150px;
    }
  }

  /* Smoothly opening disclosures */
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    details::details-content {
      block-size: 0; overflow: clip; opacity: 0;
      transition: block-size var(--slow) var(--ease), opacity var(--slow), content-visibility var(--slow) allow-discrete;
    }
    details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .brief-card.brief-highlight { outline: 3px solid var(--mint); outline-offset: 3px; }
}

/* 15. High contrast, print ------------------------------------------------- */
@media (forced-colors: active) {
  .brief-card select:focus-visible, .brief-card textarea:focus-visible, .lesson-search:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
  .hero h1 em { background: none; color: inherit; -webkit-text-fill-color: currentColor; }
  .button, .service, .lesson-card, .quote, .faq-item, .site-header { border: 1px solid CanvasText; }
  .ico::before, .check-list li::before, .hero-details span::before, .duration::before, .legal-summary li::before { forced-color-adjust: none; background: CanvasText; }
}

@media print {
  :root, .hero, .about-section, .contact-section, .library-hero, .site-footer, .podcast-strip {
    color-scheme: light;
    --text: #111; --text-2: #333; --text-3: #555; --line: #ccc; --accent-text: #111; --mint-text: #111;
  }
  *, *::before, *::after { animation: none !important; box-shadow: none !important; }
  .site-header, .site-footer, .button, .brief-card, .hero-visual, video, .video-play, .lesson-image,
  .hero-sample, .mobile-project-shortcut, .library-tools,
  .hero::before, .hero::after, .library-hero::before, .library-hero::after,
  .about-section::before, .contact-section::before { display: none !important; }
  body, .section, .hero, .library-hero, .about-section, .contact-section, .podcast-strip { background: #fff !important; color: #111 !important; }
  .hero, .library-hero { margin-top: 0 !important; padding-top: 24px !important; }
  .hero h1 em { background: none; color: #111; -webkit-text-fill-color: #111; }
  .container { width: 100%; }
  .section { padding-block: 24px; }
  .hero-grid, .contact-grid, .about-grid, .faq-grid { display: block; }
  .lesson-grid { grid-template-columns: 1fr 1fr; }
  .service, .quote, .lesson-card, .series-card, .faq-item { break-inside: avoid; }
  details::details-content { block-size: auto !important; opacity: 1 !important; content-visibility: visible !important; }
}
