:root {
  --bg: #fffefa;
  --paper: #f8f4ea;
  --panel: #ffffff;
  --panel-soft: #fffaf1;
  --text: #191817;
  --text-soft: #48433c;
  --muted: #777064;
  --line: rgba(25, 24, 23, .12);
  --line-strong: rgba(25, 24, 23, .2);
  --accent: #18479a;
  --accent-strong: #123a81;
  --accent-soft: #edf2fb;
  --accent-tint: rgba(24, 71, 154, .09);
  --blue-quiet: #f4f8ff;
  --blue-panel: #eaf2ff;
  --deep: #102b55;
  --ivory: #dcd4b3;
  --focus: rgba(24, 71, 154, .32);
  --container: 1240px;
  --container-readable: 860px;
  --gutter: clamp(18px, 4vw, 42px);
  --space-section: clamp(70px, 9vw, 124px);
  --radius: 18px;
  --radius-sm: 14px;
  --radius-lg: 22px;
  --shadow: 0 18px 44px rgba(25, 24, 23, .08);
  --shadow-soft: 0 10px 26px rgba(25, 24, 23, .06);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(220, 212, 179, .28), transparent 30vw),
    linear-gradient(180deg, rgba(237, 242, 251, .7), transparent 520px),
    var(--bg);
  font-family: Aptos, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 24, 23, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 24, 23, .018) 1px, transparent 1px);
  background-size: 92px 92px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .24), transparent 58%);
}

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

figure { margin: 0; }
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 34px);
  min-height: 76px;
  padding: 14px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  background: rgba(255, 254, 250, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: .98rem;
  font-weight: 850;
  line-height: 1.2;
}

.brand-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.main-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.2;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: rgba(24, 71, 154, .18);
  background: var(--accent-soft);
}

.main-nav .nav-cta {
  margin-left: 4px;
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 18px rgba(24, 71, 154, .14);
}

.main-nav .nav-cta:hover {
  color: #ffffff;
  background: var(--accent-strong);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.hero,
.inner-hero,
.section,
.founder-strip,
.founder-hero,
.article-layout {
  width: min(var(--container), calc(100vw - (var(--gutter) * 2)));
  margin-inline: auto;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .76fr);
  align-items: center;
  gap: clamp(34px, 6vw, 86px);
  min-height: min(760px, calc(100vh - 76px));
  padding: clamp(70px, 9vw, 118px) 0 clamp(58px, 8vw, 96px);
}

.hero-home {
  min-height: min(720px, calc(100vh - 76px));
}

.hero::before {
  content: "";
  position: absolute;
  inset: clamp(34px, 7vw, 78px) auto auto 48%;
  width: min(28vw, 320px);
  aspect-ratio: 1;
  border: 1px solid rgba(24, 71, 154, .1);
  border-radius: 38% 62% 48% 52%;
  background: rgba(220, 212, 179, .18);
  z-index: -1;
}

.hero > *,
.two-column > *,
.feature-grid > *,
.card-grid > *,
.profile-grid > * {
  min-width: 0;
}

.hero-copy {
  max-width: 760px;
  animation: riseIn .55s ease both;
}

.hero-brand-symbol {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 24px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero h1,
.inner-hero h1,
.founder-hero h1,
.article-layout h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.85rem, 6vw, 5.55rem);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy > p:not(.eyebrow),
.inner-hero p,
.founder-hero p,
.article-layout > p {
  max-width: 700px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.24vw, 1.2rem);
  line-height: 1.72;
}

.hero-copy > p:not(.eyebrow) {
  margin: 24px 0 0;
}

.hero-media {
  position: relative;
  animation: riseIn .65s ease .08s both;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(24, 71, 154, .12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .45);
}

.hero-media::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 22px;
  border: 1px solid rgba(24, 71, 154, .14);
  background:
    linear-gradient(135deg, rgba(24, 71, 154, .1), rgba(220, 212, 179, .2));
  transform: rotate(8deg);
  z-index: -1;
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  filter: saturate(.96) contrast(1.02);
}

.hero-home .hero-media {
  display: grid;
  place-items: center;
}

.hero-home .hero-media::before {
  border-radius: 34px;
}

.hero-home .hero-media img {
  width: min(100%, 430px);
  aspect-ratio: 1;
  object-fit: contain;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 34px;
  background: var(--panel);
}

.trust-line {
  max-width: 580px;
  margin-top: 18px !important;
  padding-left: 16px;
  border-left: 3px solid var(--ivory);
  color: var(--muted) !important;
  font-size: .98rem !important;
}

.eyebrow,
.category {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  line-height: 1.35;
  text-transform: uppercase;
}

.actions,
.filter-row,
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.actions { margin-top: 32px; }

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--panel);
  font-size: .95rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(25, 24, 23, .04);
  transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.primary.light {
  background: #ffffff;
  color: var(--accent);
  border-color: rgba(255, 255, 255, .72);
}

.button.primary.light:hover {
  background: var(--blue-panel);
  border-color: #ffffff;
}

.button:active,
.filter-button:active {
  transform: translateY(0);
}

.button[disabled],
.button.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.trust-band {
  width: min(var(--container), calc(100vw - (var(--gutter) * 2)));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 auto clamp(36px, 6vw, 74px);
  overflow: hidden;
  border: 1px solid rgba(24, 71, 154, .13);
  border-radius: var(--radius);
  background: rgba(24, 71, 154, .12);
  box-shadow: var(--shadow-soft);
}

.trust-band article {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: clamp(18px, 2.5vw, 24px);
  background: rgba(255, 255, 255, .82);
}

.trust-band h2,
.area-card h3 {
  margin: 0 0 4px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
}

.trust-band p,
.section-heading p,
.area-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: .96rem;
  line-height: 1.55;
}

.line-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 71, 154, .18);
  border-radius: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.button.secondary,
.button.small {
  background: rgba(255, 255, 255, .72);
  color: var(--accent);
  border-color: rgba(24, 71, 154, .24);
}

.button.secondary:hover,
.button.small:hover {
  background: var(--accent-soft);
}

.button.small {
  min-height: 40px;
  padding: 9px 16px;
  font-size: .9rem;
}

.section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line);
}

.section:nth-of-type(even) {
  position: relative;
  isolation: isolate;
}

.section:nth-of-type(even)::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: rgba(248, 244, 234, .42);
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.section-heading.with-action {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading.with-action > div {
  max-width: 760px;
}

.section-heading h2,
.founder-strip h2,
.login-panel h2,
.access-note h2,
.profile-grid h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.25vw, 3.2rem);
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.feature-grid,
.card-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}

.feature-card,
.post-card,
.resource-card,
.area-card,
.login-panel,
.access-note,
.profile-grid article {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover,
.post-card:hover,
.resource-card:hover,
.area-card:hover,
.login-panel:hover,
.access-note:hover,
.profile-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 71, 154, .18);
  box-shadow: var(--shadow);
}

.mission-section .feature-grid {
  align-items: stretch;
}

.feature-card {
  min-height: 282px;
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -44px auto;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--accent-tint);
}

.feature-card p,
.post-card p,
.resource-card p,
.access-note p,
.login-panel p,
.profile-grid li {
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
}

.icon-circle {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: auto;
  border: 1px solid rgba(24, 71, 154, .18);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
}

.feature-card h2,
.post-card h3,
.resource-card h3 {
  margin: 20px 0 9px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.9vw, 1.72rem);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

.post-card,
.resource-card {
  display: flex;
  flex-direction: column;
}

.clickable-card {
  isolation: isolate;
}

.card-cover-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.post-card a:not(.card-cover-link),
.resource-card a,
.area-card a {
  position: relative;
  z-index: 2;
}

.post-card img,
.resource-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  filter: saturate(.94) contrast(1.02);
}

.post-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(22px, 2.6vw, 28px);
}

.post-card-body h3 {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.post-card-body > p:not(.category):not(.article-meta) {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.blog-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 26px);
}

.area-card {
  min-height: 238px;
  padding: clamp(22px, 3vw, 30px);
}

.area-card h3 {
  margin-top: 22px;
  font-size: clamp(1.25rem, 1.6vw, 1.48rem);
}

.area-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 850;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 22px);
}

.resource-card.compact {
  min-height: 100%;
}

.resource-card.compact img {
  aspect-ratio: 5 / 3;
}

.status-badge {
  align-self: flex-start;
  margin: auto clamp(22px, 2.6vw, 28px) 26px;
  padding: 7px 11px;
  border: 1px solid rgba(24, 71, 154, .16);
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: .78rem;
  font-weight: 900;
}

.institutional-callout {
  position: relative;
  isolation: isolate;
  width: min(var(--container), calc(100vw - (var(--gutter) * 2)));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  margin: clamp(18px, 4vw, 46px) auto var(--space-section);
  padding: clamp(34px, 6vw, 62px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 20%, rgba(255, 255, 255, .18), transparent 23%),
    linear-gradient(135deg, var(--deep), #173f78);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.institutional-callout::before,
.institutional-callout::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .18);
  z-index: -1;
}

.institutional-callout::before {
  width: 210px;
  height: 210px;
  right: 8%;
  top: -76px;
  border-radius: 38% 62% 45% 55%;
}

.institutional-callout::after {
  width: 110px;
  height: 110px;
  right: 28%;
  bottom: -42px;
  border-radius: 28px;
  transform: rotate(12deg);
}

.institutional-callout .eyebrow {
  color: #dbe8ff;
}

.institutional-callout h2 {
  max-width: 780px;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.institutional-callout p:not(.eyebrow) {
  max-width: 740px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
}

.post-card-body .button {
  margin-top: auto;
}

.resource-card {
  padding: 0;
}

.resource-card > :not(img) {
  margin-left: clamp(22px, 2.6vw, 28px);
  margin-right: clamp(22px, 2.6vw, 28px);
}

.resource-card > .category {
  margin-top: 24px;
}

.resource-card > .button {
  align-self: flex-start;
  margin-top: auto;
  margin-bottom: 26px;
}

.founder-strip,
.founder-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(22px, 4vw, 38px);
  align-items: center;
  margin-bottom: clamp(68px, 9vw, 118px);
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(248, 244, 234, .8)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.founder-strip blockquote {
  margin: 18px 0 0;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-style: italic;
}

.founder-strip p,
.founder-hero p {
  color: var(--text-soft);
}

.founder-strip img,
.founder-hero img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  filter: saturate(.96);
}

.founder-hero img {
  width: clamp(176px, 24vw, 260px);
  height: clamp(176px, 24vw, 260px);
}

.role {
  margin-top: -6px;
  color: var(--accent) !important;
  font-weight: 850;
}

.inner-hero {
  max-width: var(--container-readable);
  padding: clamp(78px, 10vw, 130px) 0 clamp(46px, 7vw, 76px);
}

.inner-hero h1,
.article-layout h1 {
  font-size: clamp(2.85rem, 6vw, 5.3rem);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(280px, 1fr);
  gap: clamp(18px, 2.5vw, 28px);
  align-items: stretch;
}

.login-panel,
.access-note,
.profile-grid article {
  padding: clamp(26px, 3vw, 34px);
}

.muted,
.empty-state,
.article-meta {
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 11px;
  margin-top: 24px;
}

label {
  color: var(--text);
  font-size: .95rem;
  font-weight: 850;
}

input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

input:focus {
  border-color: var(--accent);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--accent-tint);
}

input::placeholder {
  color: var(--muted);
}

.create-account,
.back-link {
  color: var(--accent);
  font-weight: 850;
}

.is-hidden { display: none; }

.blog-tools {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(28px, 4vw, 42px);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .7);
}

.search-box {
  display: grid;
  gap: 8px;
}

.filter-button {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text-soft);
  font-weight: 850;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}

.filter-button:hover,
.filter-button.is-active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.filter-button:hover {
  transform: translateY(-1px);
}

.article-layout {
  max-width: var(--container-readable);
  padding: clamp(64px, 9vw, 116px) 0;
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
}

.article-image {
  width: 100%;
  margin: 34px 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.article-layout p {
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.empty-state {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  color: var(--text-soft);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-row input {
  width: auto;
}

.classroom-layout {
  width: min(var(--container), calc(100vw - (var(--gutter) * 2)));
  margin: 0 auto;
  padding: clamp(42px, 7vw, 84px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
}

.lesson-main,
.lesson-sidebar {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: clamp(18px, 3vw, 30px);
}

.lesson-main h1 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.05;
}

.video-frame,
.lesson-main video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #111;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson-link {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  font-weight: 750;
}

.lesson-link.is-active {
  color: var(--accent);
}

.founder-hero {
  grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr);
  margin-top: clamp(42px, 7vw, 78px);
  align-items: start;
  gap: clamp(28px, 5vw, 58px);
}

.founder-photo {
  margin-top: 6px;
}

.founder-intro {
  min-width: 0;
}

.founder-name {
  margin-bottom: .65rem;
}

.founder-role {
  margin-top: 0;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.founder-biography {
  max-width: 780px;
  text-align: left;
}

.founder-biography p {
  margin: 0 0 1.22rem;
  color: var(--text-soft);
  font-size: clamp(1.02rem, 1.16vw, 1.12rem);
  line-height: 1.78;
}

.founder-quote {
  margin: 0 0 2rem;
  padding: 1.05rem 1.25rem;
  border-left: 4px solid var(--ivory);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(220, 212, 179, .2);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.7;
}

.founder-contact-button {
  margin-top: .5rem;
}

.founder-social-links,
.footer-social-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-social-links {
  align-self: start;
}

.founder-social-link,
.footer-social-link,
.social-links a {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(24, 71, 154, .18);
  border-radius: 50%;
  color: var(--accent);
  background: var(--panel);
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.founder-social-link svg,
.footer-social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.founder-social-link:hover,
.footer-social-link:hover,
.social-links a:hover {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.social-links a {
  font-size: .8rem;
  font-weight: 900;
}

.social-links.large a {
  width: 48px;
  height: 48px;
}

.profile-grid ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.profile-grid li + li {
  margin-top: 10px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, auto) auto;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(44px, 7vw, 78px) max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 26px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-brand {
  max-width: 430px;
}

.footer-brand img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 16px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.site-footer h2,
.site-footer p {
  margin: 0;
}

.site-footer h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.15;
}

.site-footer nav {
  display: grid;
  gap: 9px;
  color: var(--text-soft);
  font-weight: 800;
}

.site-footer a:focus-visible {
  outline-color: rgba(24, 71, 154, .42);
}

.site-footer nav a {
  min-height: 30px;
}

.site-footer nav a:hover {
  color: var(--accent);
}

.footer-description {
  margin-top: 12px !important;
  color: var(--muted);
  font-size: .95rem;
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1120px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset: 74px var(--gutter) auto;
    grid-template-columns: 1fr;
    padding: 12px;
    background: rgba(255, 254, 250, .98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .main-nav a {
    justify-content: flex-start;
    border-radius: var(--radius-sm);
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 980px) {
  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding-inline: 10px;
    font-size: .86rem;
  }

  .hero,
  .two-column,
  .founder-strip,
  .founder-hero,
  .site-footer,
  .institutional-callout,
  .section-heading.with-action {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media img {
    aspect-ratio: 16 / 10;
  }

  .hero-home .hero-media {
    justify-items: start;
  }

  .hero-home .hero-media img {
    width: min(78vw, 360px);
    aspect-ratio: 1;
    padding: clamp(22px, 7vw, 40px);
  }

  .feature-grid,
  .card-grid,
  .profile-grid,
  .area-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-card-grid,
  .resource-grid,
  .trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading.with-action {
    display: grid;
    align-items: start;
  }

  .institutional-callout {
    justify-items: start;
  }

  .classroom-layout {
    grid-template-columns: 1fr;
  }

  .founder-strip .button {
    justify-self: start;
  }

  .founder-hero {
    gap: 24px;
  }

  .founder-photo {
    margin-top: 0;
  }

  .founder-biography {
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 17px;
  }

  .site-header {
    min-height: 72px;
    padding: 12px var(--gutter);
  }

  .brand span {
    max-width: 172px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    inset: 74px 18px auto;
    padding: 12px;
    background: rgba(255, 254, 250, .98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav .nav-cta {
    margin-left: 0;
  }

  .main-nav.is-open {
    display: grid;
    gap: 4px;
  }

  .main-nav a {
    border-radius: var(--radius-sm);
  }

  .hero {
    padding-top: 52px;
  }

  .hero::before {
    display: none;
  }

  .feature-grid,
  .card-grid,
  .profile-grid,
  .area-grid,
  .resource-grid,
  .trust-band,
  .blog-card-grid {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .inner-hero h1,
  .founder-hero h1,
  .article-layout h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
  }

  .hero-media::before {
    inset: -8px;
  }

  .hero-media::after,
  .institutional-callout::before,
  .institutional-callout::after {
    display: none;
  }

  .trust-band {
    border-radius: var(--radius-sm);
  }

  .trust-band article {
    padding: 18px;
  }

  .section-heading.with-action .button {
    width: 100%;
  }

  .institutional-callout {
    padding: 28px;
    border-radius: var(--radius-sm);
  }

  .founder-strip,
  .founder-hero,
  .login-panel,
  .access-note,
  .profile-grid article,
  .blog-tools {
    border-radius: var(--radius-sm);
  }

  .founder-strip img,
  .founder-hero img {
    width: 124px;
    height: 124px;
  }

  .actions,
  .filter-row {
    align-items: stretch;
  }

  .actions .button {
    flex: 1 1 210px;
  }
}

@media (max-width: 420px) {
  .brand span {
    max-width: 138px;
  }

  .hero-brand-symbol {
    width: 56px;
    height: 56px;
  }

  .button,
  .filter-button {
    width: 100%;
  }

  .filter-row {
    display: grid;
  }

  .site-footer {
    padding-inline: var(--gutter);
  }
}
