:root {
  --bg: #f5efe3;
  --panel: #efe7d9;
  --border: #e2d7c5;
  --text: #161412;
  --muted: #5a534b;
  --black: #161412;
  --white: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(22, 20, 18, 0.18);
  --shadow-hover: 0 18px 40px -14px rgba(22, 20, 18, 0.28);
  --line: rgba(22, 20, 18, 0.14);
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 80px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-locked { overflow: hidden; }
::selection { background: var(--black); color: var(--bg); }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 400; line-height: 1.06; margin: 0; letter-spacing: -0.025em;
  font-optical-sizing: auto; text-wrap: balance;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 300; }
p { margin: 0; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; background: var(--black); color: var(--white);
  padding: 10px 16px; border-radius: 999px; z-index: 200; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0;
  font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0.01em;
  padding: 15px 28px; border-radius: 999px; border: 1.5px solid var(--black);
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn::after {
  content: "→"; display: inline-block; width: 0; margin-left: 0; opacity: 0; transform: translateX(-6px);
  transition: width .35s var(--ease), margin-left .35s var(--ease), opacity .3s, transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:hover::after { width: 1em; margin-left: 10px; opacity: 1; transform: none; }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .1s; }
.btn-sm::after, .btn-block::after, .connect-btn::after, .reply-form .btn::after { content: none; }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2a2622; }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-beige { background: var(--bg); color: var(--black); border-color: var(--bg); }
.btn-beige:hover { background: var(--white); border-color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 239, 227, 0.6);
  backdrop-filter: saturate(160%) blur(0px);
  -webkit-backdrop-filter: saturate(160%) blur(0px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s, box-shadow .4s, background .4s, backdrop-filter .4s, -webkit-backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(245, 239, 227, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(22,20,18,.45);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); transition: height .4s var(--ease); }
.site-header.is-scrolled .header-inner { height: calc(var(--header-h) - 14px); }
.logo {
  font-family: var(--serif); font-size: 30px; font-weight: 400; font-style: italic; color: var(--black);
  text-decoration: none; letter-spacing: -0.03em; position: relative; z-index: 2;
}
.logo-light { color: var(--bg); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-size: 15px; font-weight: 500; position: relative; padding: 4px 0;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 100%;
  background: var(--black); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--black); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative; z-index: 2;
  transition: background .3s, transform .3s var(--ease);
}
.nav-toggle:active { transform: scale(.94); }
.nav-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--black); border-radius: 2px;
  transition: transform .4s var(--ease), top .4s var(--ease), opacity .25s, background .3s;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] { background: var(--black); }
.nav-toggle[aria-expanded="true"] span { background: var(--bg); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Common ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.newsletter .kicker::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.kicker-light { color: rgba(245, 239, 227, 0.7); }
.section { padding: 140px 0; }
.section-head { max-width: 820px; margin-bottom: 64px; }
.section-head h2, .mission h2 { font-size: clamp(42px, 6vw, 76px); }
.section-lead { margin-top: 24px; font-size: 19px; color: var(--muted); max-width: 640px; }

/* Thin editorial divider between sections */
.section-divider { display: flex; align-items: center; gap: 22px; }
.section-divider::before, .section-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-divider span {
  width: 7px; height: 7px; border: 1px solid var(--black); transform: rotate(45deg); flex-shrink: 0; opacity: .7;
}
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Hero ---------- */
.hero { padding: 120px 0 140px; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -200px;
  border-radius: 50%; background: radial-gradient(circle, var(--panel) 0%, transparent 70%); z-index: -1;
}
.hero::after {
  content: ""; position: absolute; width: 440px; height: 440px; right: 6%; top: 18%;
  border: 1px solid var(--line); border-radius: 50%; z-index: -1; pointer-events: none;
}
.hero-inner { max-width: 1040px; }
.hero-title { font-size: clamp(52px, 9.4vw, 132px); font-weight: 300; line-height: .98; letter-spacing: -0.04em; }
.hero-title em { font-style: italic; font-weight: 300; color: var(--black); }
.hero-lead { margin-top: 36px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.badges { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li {
  font-size: 13px; font-weight: 500; padding: 8px 16px; border: 1px solid var(--border);
  background: var(--panel); border-radius: 999px; transition: transform .3s var(--ease), border-color .3s;
}
.badges li:hover { transform: translateY(-2px); border-color: var(--black); }

/* ---------- Core banner ---------- */
.core-banner { background: var(--black); color: var(--bg); padding: 130px 0; }
.core-inner { max-width: 960px; }
.core-inner h2 { font-size: clamp(40px, 6vw, 80px); font-weight: 300; }
.core-inner > p:not(.kicker) { margin-top: 26px; font-size: 18px; color: rgba(245, 239, 227, 0.82); max-width: 720px; }
.core-pillars {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(245, 239, 227, 0.22);
}
.core-pillars li {
  padding: 24px 18px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 300;
  display: flex; flex-direction: column; gap: 6px; transition: transform .4s var(--ease);
}
.core-pillars li:hover { transform: translateX(6px); }
.core-pillars span { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; opacity: .55; }

/* ---------- Forum ---------- */
.forum { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.tabs {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 6px; background: var(--panel);
  border: 1px solid var(--border); border-radius: 999px; margin-bottom: 24px; width: fit-content; max-width: 100%;
}
.tab {
  border: none; background: transparent; font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--text); padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s;
}
.tab:hover:not(.is-active) { background: var(--border); }
.tab.is-active { background: var(--black); color: var(--white); }

.thread-list { display: flex; flex-direction: column; gap: 16px; }
.thread {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  animation: fadeUp .5s var(--ease) both;
}
.thread:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.thread.is-new { border-color: var(--black); }
.thread-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--black); color: var(--bg);
  display: grid; place-items: center; font-weight: 600; font-size: 13px; flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; background: var(--border); color: var(--text); }
.thread-meta strong { color: var(--text); font-weight: 600; }
.new-pill {
  margin-left: auto; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  background: var(--black); color: var(--white); padding: 3px 10px; border-radius: 999px;
}
.thread h3 { font-size: 28px; margin-bottom: 10px; }
.thread-body { color: var(--muted); font-size: 15.5px; }
.thread-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--bg);
  border-radius: 999px; padding: 7px 14px; font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  color: var(--text); cursor: pointer; transition: border-color .25s, background .25s, color .25s, transform .25s var(--ease);
}
.chip-btn:hover { border-color: var(--black); transform: translateY(-1px); }
.chip-btn svg { width: 16px; height: 16px; }
.like-btn.is-liked { background: var(--black); color: var(--white); border-color: var(--black); }
.like-btn.is-liked svg { fill: currentColor; }
.like-btn.pop svg { animation: pop .4s var(--ease); }
.replies-toggle svg { transition: transform .3s var(--ease); }
.replies-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.replies {
  display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease);
}
.replies.is-open { grid-template-rows: 1fr; }
.replies-inner { overflow: hidden; }
.replies-content { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 16px; }
.reply { display: flex; gap: 12px; }
.reply-meta { font-size: 13px; color: var(--muted); }
.reply-meta strong { color: var(--text); }
.reply p { font-size: 15px; margin-top: 2px; }
.reply-form { display: flex; gap: 8px; margin-top: 4px; }
.reply-form input { flex: 1; }

.empty { padding: 40px; text-align: center; color: var(--muted); }

/* Forms */
.post-form { padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 16px; }
.post-form h3 { font-size: 30px; margin-bottom: 4px; }
.post-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
input, select, textarea {
  font-family: var(--sans); font-size: 15px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
textarea { resize: vertical; min-height: 110px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--black); box-shadow: 0 0 0 3px rgba(22,20,18,.08); }
input.is-invalid, textarea.is-invalid { border-color: var(--black); box-shadow: 0 0 0 3px rgba(22,20,18,.14); }
.form-error { font-size: 13px; font-weight: 500; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; }

/* Mentor cards */
.mentor-head { margin: 110px 0 32px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mentor-head h3 { font-size: clamp(34px, 4.2vw, 52px); }
.mentor-head p { color: var(--muted); }
.mentor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mentor-card {
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
  transition: opacity 1s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.mentor-card.is-visible:hover, .stat.is-visible:hover { border-color: rgba(22,20,18,.35); }
.mentor-card.is-visible:hover, .no-js .mentor-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.tag {
  align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--black); border-radius: 999px; padding: 5px 12px;
}
.mentor-card h4 { font-size: 28px; }
.mentor-card p { color: var(--muted); font-size: 15px; flex: 1; }
.mentor-meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.mentor-meta li { font-size: 12.5px; background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.connect-btn { align-self: flex-start; margin-top: 6px; }
.connect-btn.is-done { background: var(--bg); color: var(--black); }

/* ---------- Box ---------- */
.box-section { background: var(--bg); }
.box-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.box-visual {
  background: var(--black); color: var(--bg); border-radius: 28px; padding: 56px;
  display: flex; align-items: flex-end; min-height: 520px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-hover);
}
.box-visual::before {
  content: ""; position: absolute; inset: 28px; border: 1px solid rgba(245,239,227,.2); border-radius: 18px; pointer-events: none;
}
.box-visual::after {
  content: "W"; position: absolute; right: 36px; top: 10px; font-family: var(--serif); font-style: italic;
  font-size: 260px; line-height: 1; color: rgba(245,239,227,.07); pointer-events: none;
}
.box-visual-inner { position: relative; z-index: 1; }
.box-eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; margin-bottom: 18px; }
.box-visual h3 { font-size: clamp(40px, 4.8vw, 64px); font-weight: 300; }
.box-sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 28px; margin-top: 8px; }
.box-visual.reveal { transition: transform .8s var(--ease), box-shadow .6s var(--ease), opacity 1s var(--ease); }
.box-visual.is-visible:hover { transform: translateY(-6px) rotate(-.4deg); }
.box-line { display: block; width: 60px; height: 1px; background: var(--bg); opacity: .5; margin: 28px 0 18px; }
.box-small { font-size: 14px; opacity: .8; margin-bottom: 30px; }
.box-content { display: flex; flex-direction: column; justify-content: center; }
.box-intro { font-size: 18px; color: var(--muted); margin-bottom: 30px; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.checklist li {
  position: relative; padding: 20px 0 20px 52px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px; transition: padding-left .35s var(--ease);
}
.checklist li:first-child { border-top: 1px solid var(--border); }
.checklist li:hover { padding-left: 60px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 22px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5efe3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.checklist strong { font-family: var(--serif); font-size: 25px; font-weight: 400; }
.checklist span { color: var(--muted); font-size: 15px; }

/* ---------- Mission ---------- */
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; margin-bottom: 64px; }
.mission-text { font-size: 18px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { padding: 38px 32px; display: flex; flex-direction: column; gap: 8px; transition: opacity .9s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.stat.is-visible:hover, .no-js .stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.stat-label-top { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-num { font-family: var(--serif); font-size: clamp(60px, 7vw, 96px); font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 16px; font-weight: 500; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--black); color: var(--bg); padding: 140px 0; text-align: center; }
.newsletter-inner { max-width: 760px; }
.newsletter h2 { font-size: clamp(40px, 6vw, 72px); font-weight: 300; }
.newsletter-inner > p:not(.kicker) { margin-top: 20px; color: rgba(245,239,227,.78); font-size: 17px; }
.newsletter-form { display: flex; gap: 10px; margin: 38px auto 0; max-width: 520px; padding: 6px; border: 1px solid rgba(245,239,227,.25); border-radius: 999px; }
.newsletter-form input {
  background: transparent; border: none; color: var(--bg); border-radius: 999px; padding: 12px 20px;
}
.newsletter-form input::placeholder { color: rgba(245,239,227,.55); }
.newsletter-form input:focus { box-shadow: none; }
.newsletter-form:focus-within { border-color: var(--bg); }
.newsletter-form.is-invalid { border-color: var(--bg); animation: shake .4s; }
.newsletter-note { font-size: 13px !important; margin-top: 16px !important; opacity: .65; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--bg); padding: 0 0 32px; }
.site-footer > .container:first-child { border-top: 1px solid rgba(245,239,227,.14); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 14px; max-width: 360px; color: rgba(245,239,227,.72); font-size: 15px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer ul a { text-decoration: none; font-size: 15px; opacity: .88; transition: opacity .2s, padding-left .3s var(--ease); }
.site-footer ul a:hover { opacity: 1; padding-left: 4px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(245,239,227,.14); font-size: 13px; opacity: .65; }

/* ---------- Toast ---------- */
.toast-region { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(440px, calc(100% - 32px)); }
.toast {
  background: var(--black); color: var(--white); padding: 14px 22px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45);
  display: flex; align-items: center; gap: 10px; animation: toastIn .45s var(--ease) both; text-align: left;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bg); flex-shrink: 0; }
.toast.is-leaving { animation: toastOut .35s var(--ease) both; }

/* ---------- Animations ---------- */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.mentor-card, .reveal.stat, .reveal.box-visual { transition-delay: var(--reveal-delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

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

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .forum { grid-template-columns: 1fr; }
  .post-form { position: static; }
  .box-grid, .mission-grid { grid-template-columns: 1fr; }
  .box-visual { min-height: 440px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-header.nav-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1; height: 100vh; height: 100dvh;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(var(--header-h) + 24px) 24px max(32px, env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden;
    clip-path: circle(0% at calc(100% - 46px) 40px);
    transition: clip-path .6s var(--ease), opacity .3s, visibility .6s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; clip-path: circle(150% at calc(100% - 46px) 40px); }
  .site-nav a:not(.btn) {
    padding: 18px 0; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-weight: 300; font-size: clamp(34px, 9vw, 46px); letter-spacing: -0.03em; line-height: 1.1;
    opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav .btn { margin-top: 32px; padding: 18px; font-size: 16px; opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease), background .3s; }
  .site-nav.is-open a { opacity: 1; transform: none; }
  .site-nav.is-open a:nth-child(1) { transition-delay: .12s; }
  .site-nav.is-open a:nth-child(2) { transition-delay: .17s; }
  .site-nav.is-open a:nth-child(3) { transition-delay: .22s; }
  .site-nav.is-open a:nth-child(4) { transition-delay: .27s; }
  .site-nav.is-open a:nth-child(5) { transition-delay: .32s; }
  .hero::after { display: none; }
  .mentor-grid, .stats { grid-template-columns: 1fr; }
  .core-pillars { grid-template-columns: repeat(2, 1fr); }
  .core-pillars li { padding-bottom: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .container { width: calc(100% - 36px); }
  .logo { font-size: 26px; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 80px; }
  .hero-actions .btn { width: 100%; }
  .core-banner, .newsletter { padding: 80px 0; }
  .tabs { border-radius: var(--radius); width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .tab { white-space: normal; padding: 10px 8px; font-size: 13px; border-radius: 14px; }
  .thread { padding: 22px 20px; }
  .thread h3 { font-size: 23px; }
  .box-visual { padding: 40px 32px; min-height: 400px; }
  .box-visual::before { inset: 16px; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); padding: 10px; }
  .newsletter-form input { text-align: center; }
  .reply-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- AI assistant (demo) ---------- */
.assistant { position: fixed; right: 24px; bottom: 24px; z-index: 250; transition: opacity .3s; }
body.nav-locked .assistant { opacity: 0; pointer-events: none; }
.chat-fab {
  width: 64px; height: 64px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--black); color: var(--bg); display: grid; place-items: center; position: relative;
  box-shadow: 0 18px 40px -14px rgba(22,20,18,.55), 0 0 0 0 rgba(22,20,18,.25);
  transition: transform .45s var(--spring), box-shadow .4s var(--ease);
  animation: fabIn .8s var(--spring) .6s both, fabPulse 2.8s ease-out 2s 2;
}
.chat-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 24px 46px -14px rgba(22,20,18,.6); }
.chat-fab:active { transform: scale(.94); }
.chat-fab:focus-visible { outline-offset: 4px; }
.chat-fab-icon {
  width: 28px; height: 28px; grid-area: 1 / 1;
  transition: transform .45s var(--spring), opacity .25s;
}
.chat-fab-close { opacity: 0; transform: rotate(-90deg) scale(.6); width: 24px; height: 24px; }
.chat-fab[aria-expanded="true"] .chat-fab-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-fab[aria-expanded="true"] .chat-fab-close { opacity: 1; transform: none; }

.chat-panel {
  position: absolute; right: 0; bottom: 80px;
  width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 140px)); height: min(600px, calc(100dvh - 140px));
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--border); border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(22,20,18,.5), 0 10px 24px -12px rgba(22,20,18,.2);
  transform-origin: bottom right;
  opacity: 0; transform: translateY(16px) scale(.94);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.chat-panel[hidden] { display: none; }
.chat-panel.is-open { opacity: 1; transform: none; }

.chat-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 18px 18px 20px;
  background: var(--black); color: var(--bg);
}
.chat-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: var(--bg); color: var(--black); font-family: var(--serif); font-style: italic; font-size: 22px; font-weight: 400;
}
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-size: 21px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.chat-head p { font-size: 12.5px; opacity: .7; display: flex; align-items: center; gap: 6px; }
.chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bg); animation: blink 2.4s ease-in-out infinite; }
.chat-close {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(245,239,227,.25); background: transparent;
  color: var(--bg); cursor: pointer; display: grid; place-items: center; transition: background .25s, transform .3s var(--ease);
}
.chat-close svg { width: 16px; height: 16px; }
.chat-close:hover { background: rgba(245,239,227,.12); transform: rotate(90deg); }
.chat-close:focus-visible { outline-color: var(--bg); }

.chat-log {
  flex: 1; overflow-y: auto; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.chat-log:focus-visible { outline-offset: -3px; }
.chat-day { align-self: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.msg {
  max-width: 86%; padding: 12px 16px; font-size: 15px; line-height: 1.55; border-radius: 20px;
  animation: msgIn .45s var(--ease) both; overflow-wrap: anywhere;
}
.msg p + p { margin-top: 8px; }
.msg-bot { align-self: flex-start; background: var(--panel); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.msg-user { align-self: flex-end; background: var(--black); color: var(--bg); border-bottom-right-radius: 6px; }
.msg a { font-weight: 600; text-underline-offset: 3px; }
.msg-time { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.msg-user .msg-time { color: rgba(245,239,227,.6); text-align: right; }

.typing { display: inline-flex; gap: 5px; align-items: center; padding: 16px 18px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1.2s ease-in-out infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 18px 12px; }
.chat-chips:empty { display: none; }
.chat-chip {
  font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--black); text-align: left;
  background: transparent; border: 1px solid var(--black); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  animation: msgIn .45s var(--ease) both;
  transition: background .25s, color .25s, transform .3s var(--ease);
}
.chat-chip:nth-child(2) { animation-delay: .06s; }
.chat-chip:nth-child(3) { animation-delay: .12s; }
.chat-chip:hover { background: var(--black); color: var(--bg); transform: translateY(-2px); }
.chat-chip:active { transform: scale(.96); }

.chat-form {
  display: flex; gap: 8px; align-items: center; margin: 0 14px; padding: 6px 6px 6px 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 999px; transition: border-color .25s, box-shadow .25s;
}
.chat-form:focus-within { border-color: var(--black); box-shadow: 0 0 0 3px rgba(22,20,18,.08); }
.chat-form input { border: none; background: transparent; padding: 8px 0; font-size: 15px; }
.chat-form input:focus { box-shadow: none; }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%; border: none; flex-shrink: 0; cursor: pointer;
  background: var(--black); color: var(--bg); display: grid; place-items: center;
  transition: transform .35s var(--spring), opacity .25s;
}
.chat-send svg { width: 18px; height: 18px; }
.chat-send:hover { transform: translateX(2px) scale(1.06); }
.chat-send:disabled { opacity: .35; cursor: default; transform: none; }
.chat-note { font-size: 11px; color: var(--muted); text-align: center; padding: 8px 16px 12px; }

@keyframes fabIn { from { opacity: 0; transform: scale(.4) translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fabPulse { 0% { box-shadow: 0 18px 40px -14px rgba(22,20,18,.55), 0 0 0 0 rgba(22,20,18,.3); } 100% { box-shadow: 0 18px 40px -14px rgba(22,20,18,.55), 0 0 0 18px rgba(22,20,18,0); } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-5px); opacity: 1; } }
@keyframes blink { 50% { opacity: .35; } }

@media (max-width: 600px) {
  .assistant { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  .chat-fab { width: 58px; height: 58px; }
  .chat-panel {
    position: fixed; inset: auto 8px calc(max(16px, env(safe-area-inset-bottom)) + 70px) 8px;
    width: auto; height: calc(100vh - 100px); height: calc(100dvh - 100px); max-height: 640px; border-radius: 22px;
  }
  .chat-form input { font-size: 16px; }
  .toast-region { bottom: 92px; }
}
