:root {
  --ink: #05080b;
  --ink-2: #0a1016;
  --ink-3: #101923;
  --paper: #f2eee5;
  --paper-2: #e7dfd1;
  --gold: #d8b568;
  --gold-bright: #f0d48d;
  --gold-soft: rgba(216, 181, 104, .14);
  --cyan: #69cbd2;
  --text: #f4f0e8;
  --muted: #a5adb3;
  --dark-text: #151719;
  --dark-muted: #62676a;
  --line: rgba(216, 181, 104, .22);
  --line-soft: rgba(255, 255, 255, .09);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(41, 103, 124, .12), transparent 32rem),
    radial-gradient(circle at 88% 26%, rgba(216, 181, 104, .08), transparent 30rem),
    linear-gradient(180deg, #05080b 0%, #081019 52%, #05080b 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: #101215; background: var(--gold-bright); }
.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: .75rem 1rem;
  border-radius: 999px;
  color: #111;
  background: var(--gold-bright);
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.shell { width: min(var(--max), calc(100% - 3rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 3rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: rgba(5, 8, 11, .86);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; min-width: 0; }
.brand img { width: 48px; height: 28px; flex: 0 0 auto; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--serif); font-size: 1rem; letter-spacing: .07em; font-weight: 500; }
.brand-copy small { margin-top: .38rem; color: var(--muted); font-size: .67rem; letter-spacing: .19em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 1.55rem; }
.nav a { color: #d9dcdd; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; transition: color .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-bright); }
.nav .nav-amanda { padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 50%; background: transparent; cursor: pointer; }
.nav-toggle > span:first-child, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 18px; height: 1px; margin: 4px auto; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] > span:first-child { opacity: 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-5px) rotate(-45deg); }

.eyebrow { margin: 0 0 1rem; color: var(--gold); font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.07; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3.3rem, 7vw, 7.4rem); letter-spacing: -.045em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.3rem, 4.5vw, 4.7rem); letter-spacing: -.035em; }
h3 { margin-bottom: .85rem; font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 2rem); font-weight: 400; }
p { margin-bottom: 1.2rem; }
.lead { max-width: 44rem; color: #c7cdcf; font-size: clamp(1.05rem, 1.7vw, 1.3rem); }
.gold { color: var(--gold-bright); }
.muted { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: .6rem; margin-top: .5rem; color: var(--gold-bright); font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.text-link::after { content: "→"; font-size: 1rem; transition: transform .2s ease; }
.text-link:hover::after { transform: translateX(.3rem); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .6rem; padding: .78rem 1.25rem; border: 1px solid transparent; border-radius: 999px; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #15120c; background: var(--gold-bright); }
.btn-gold:hover { background: #f7dfaa; }
.btn-line { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .02); }
.btn-line:hover { border-color: var(--gold); }
.btn-dark { color: #fff; background: #111820; }
.btn-small { min-height: 42px; padding: .65rem 1rem; font-size: .72rem; }
.btn-disabled { color: #777; border-color: #d1c9bb; background: transparent; cursor: default; pointer-events: none; }

.hero { min-height: calc(100vh - 84px); display: grid; align-items: center; padding: 7rem 0 6rem; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 span { display: block; color: var(--gold-bright); }
.hero-copy .lead { max-width: 38rem; }
.hero-signature { display: flex; flex-wrap: wrap; gap: .75rem 1.3rem; margin-top: 2.2rem; color: #8e989d; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.hero-signature span + span::before { content: "·"; margin-right: 1.3rem; color: var(--gold); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -14%; z-index: -1; background: radial-gradient(circle, rgba(68, 174, 189, .13), transparent 65%); filter: blur(16px); }
.hero-visual img { width: 100%; border: 1px solid var(--line); border-radius: 2px; box-shadow: var(--shadow); }
.hero-caption { position: absolute; right: -1rem; bottom: -1.3rem; max-width: 16rem; padding: 1rem 1.25rem; border: 1px solid var(--line); background: rgba(6, 10, 14, .94); color: #afb7ba; font-size: .78rem; letter-spacing: .04em; }

.section { padding: clamp(5rem, 10vw, 9rem) 0; }
.section-rule { border-top: 1px solid var(--line-soft); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); gap: 3rem; align-items: end; margin-bottom: 3.5rem; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { margin: 0; color: var(--muted); }
.section-paper { color: var(--dark-text); background: var(--paper); }
.section-paper .eyebrow { color: #916f2e; }
.section-paper .section-head > p, .section-paper .muted { color: var(--dark-muted); }

.atlas-feature { padding-top: 0; }
.atlas-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); min-height: 620px; border: 1px solid var(--line); background: #080d12; overflow: hidden; }
.atlas-panel-media { position: relative; min-height: 480px; }
.atlas-panel-media img { width: 100%; height: 100%; object-fit: cover; }
.atlas-panel-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #080d12 100%); }
.atlas-panel-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2.4rem, 5vw, 5rem); }
.atlas-panel-copy p:not(.eyebrow) { color: var(--muted); }
.principle-strip { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.principle-strip span { padding: .52rem .7rem; border: 1px solid rgba(105, 203, 210, .23); border-radius: 999px; color: #b7dce0; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }

.family-stack { display: grid; gap: 1px; background: rgba(17, 18, 19, .12); border: 1px solid rgba(17, 18, 19, .12); }
.family-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.2rem; padding: clamp(2rem, 4vw, 3.5rem); background: var(--paper); }
.family-label { padding-top: .35rem; }
.family-label .number { display: block; margin-bottom: 1.3rem; color: #a27a2f; font-family: var(--serif); font-size: 2.2rem; }
.family-label h3 { font-size: 1.7rem; }
.family-label p { color: var(--dark-muted); font-size: .92rem; }
.book-grid { display: grid; gap: 1.25rem; }
.book-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.book-card { min-width: 0; }
.book-card figure { position: relative; aspect-ratio: 2 / 3.12; margin: 0 0 1.15rem; overflow: hidden; background: #111; box-shadow: 0 18px 38px rgba(14, 13, 12, .18); }
.book-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.book-card:hover figure img { transform: scale(1.025); }
.book-card .book-line { margin: 0 0 .5rem; color: #8d692a; font-size: .68rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.book-card h4 { margin: 0 0 .75rem; color: var(--dark-text); font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.55rem); font-weight: 400; }
.book-card .book-link { display: inline-flex; gap: .4rem; align-items: center; color: #5b441b; font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.book-card .book-link::after { content: "→"; }

.amanda-band { position: relative; overflow: hidden; }
.amanda-band::before { content: "∞"; position: absolute; right: -1rem; top: 50%; color: rgba(216, 181, 104, .06); font-family: var(--serif); font-size: min(38vw, 34rem); line-height: .5; transform: translateY(-50%); }
.amanda-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr); gap: 5rem; align-items: center; }
.amanda-note { padding: 2rem; border-left: 1px solid var(--gold); color: var(--muted); }
.amanda-note strong { display: block; margin-bottom: .6rem; color: var(--text); font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.institutional { padding: 4.5rem 0; border-top: 1px solid var(--line-soft); }
.institutional-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2.5rem; }
.institutional h3 { font-size: 1.25rem; }
.institutional p { color: var(--muted); font-size: .92rem; }

.page-hero { position: relative; padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.page-hero .lead { max-width: 54rem; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(340px, .65fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.page-hero-art img { width: 100%; border: 1px solid var(--line); box-shadow: var(--shadow); }
.display-tight { font-size: clamp(3.1rem, 6vw, 6.5rem); }
.principles { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid rgba(20, 20, 20, .13); }
.principle { min-height: 240px; padding: 2rem 1.5rem; border-right: 1px solid rgba(20, 20, 20, .13); }
.principle:last-child { border-right: 0; }
.principle .principle-no { color: #99762f; font-family: var(--serif); font-size: 1.9rem; }
.principle h3 { margin-top: 2.4rem; font-family: var(--sans); font-size: 1rem; font-weight: 760; line-height: 1.3; }
.principle p { margin-bottom: 0; color: var(--dark-muted); font-size: .88rem; }
.solutions-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--line-soft); background: var(--line-soft); }
.solution { padding: clamp(2rem, 4vw, 3rem); background: var(--ink-2); }
.solution .solution-icon { display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 2rem; border: 1px solid var(--line); border-radius: 50%; color: var(--gold-bright); font-family: var(--serif); }
.solution p { color: var(--muted); }
.use-cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.use-case { padding: 1.6rem; border-top: 1px solid var(--gold); background: rgba(255, 255, 255, .035); }
.use-case strong { display: block; margin-bottom: .6rem; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.use-case span { color: var(--muted); font-size: .88rem; }
.contact-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; padding: clamp(2.5rem, 6vw, 5rem); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(216, 181, 104, .1), rgba(105, 203, 210, .04)); }
.contact-panel h2 { max-width: 48rem; margin-bottom: 0; }

.library-families { display: grid; gap: clamp(5rem, 10vw, 9rem); }
.library-family-head { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; margin-bottom: 3rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line-soft); }
.library-family-head h2 { margin: 0; font-size: clamp(2.2rem, 4vw, 4rem); }
.library-family-head p { max-width: 42rem; margin: 0; color: var(--muted); }
.library-book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.1rem; }
.library-book-grid.two { grid-template-columns: repeat(2, minmax(0, 360px)); }
.library-book { display: grid; }
.library-book figure { aspect-ratio: 2 / 3.1; margin: 0 0 1.4rem; overflow: hidden; background: #111; box-shadow: 0 22px 48px rgba(0, 0, 0, .28); }
.library-book figure img { width: 100%; height: 100%; object-fit: cover; }
.library-book .status { margin: 0 0 .45rem; color: var(--gold); font-size: .7rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.library-book h3 { margin-bottom: .8rem; }
.library-book p:not(.status) { color: var(--muted); font-size: .93rem; }
.library-book .actions { align-self: end; margin-top: .6rem; }

.book-hero { padding: clamp(5rem, 10vw, 9rem) 0; }
.book-hero-grid { display: grid; grid-template-columns: minmax(260px, 410px) minmax(0, 1fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); }
.book-cover { margin: 0; }
.book-cover img { width: 100%; box-shadow: var(--shadow); }
.book-copy h1 { font-size: clamp(3rem, 6.2vw, 6.6rem); }
.book-copy .subtitle { display: block; margin-top: .6rem; color: var(--gold-bright); font-family: var(--serif); font-size: clamp(1.35rem, 2.5vw, 2.2rem); line-height: 1.25; letter-spacing: -.02em; }
.book-copy .lead { max-width: 42rem; }
.book-meta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; margin: 2rem 0; padding: 1.1rem 0; border-block: 1px solid var(--line-soft); color: var(--muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.book-back { margin-top: 2rem; }

.amanda-page { min-height: calc(100vh - 84px); padding: clamp(3rem, 7vw, 6rem) 0; }
.amanda-page-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(420px, 1fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.amanda-intro { position: sticky; top: 130px; padding-top: 2rem; }
.amanda-intro h1 { font-size: clamp(3rem, 6vw, 6rem); }
.amanda-intro .lead { font-size: 1.06rem; }
.chat-card { min-height: 650px; border: 1px solid var(--line); background: #0a1016; box-shadow: var(--shadow); }
.chat-head { display: flex; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
.chat-head h2 { margin: 0; font-size: 1.6rem; }
.chat-status { margin: 0 0 .3rem; color: var(--gold); font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.chat-status::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .45rem; border-radius: 50%; background: #78c9b1; box-shadow: 0 0 0 4px rgba(120, 201, 177, .1); }
.chat-note { align-self: center; color: #798489; font-size: .75rem; }
.lead-gate { padding: clamp(2rem, 5vw, 4rem); }
.lead-gate > p { max-width: 31rem; color: #c3c8ca; }
.lead-gate label { display: grid; gap: .45rem; margin-top: 1.1rem; color: #b6bdc0; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.lead-gate input, .chat-form input { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1px solid var(--line-soft); border-radius: 0; outline: none; color: #fff; background: #070b0f; }
.lead-gate input:focus, .chat-form input:focus { border-color: var(--gold); }
.lead-gate .btn { width: 100%; margin-top: 1.3rem; }
.lead-gate small { display: block; margin-top: 1rem; color: #7d898e; font-size: .76rem; }
.lead-warning { color: #ebc98b !important; }
.chat-body { display: grid; grid-template-rows: 1fr auto auto; min-height: 555px; }
.chat-body[hidden], .lead-gate[hidden] { display: none; }
.messages { max-height: 440px; padding: 1.5rem; overflow-y: auto; }
.msg { width: fit-content; max-width: 86%; margin-bottom: .85rem; padding: .8rem 1rem; border-radius: 2px 14px 14px 14px; color: #d7dcde; background: #111b24; }
.msg.user { margin-left: auto; border-radius: 14px 2px 14px 14px; color: #18140d; background: var(--gold-bright); }
.msg.loading { color: #879196; font-style: italic; }
.msg a { color: var(--gold-bright); text-decoration: underline; }
.bot-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.bot-buttons a { padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .76rem; text-decoration: none; }
.quick-actions { display: flex; gap: .5rem; padding: 0 1.5rem 1rem; overflow-x: auto; }
.quick-actions button { flex: 0 0 auto; padding: .5rem .7rem; border: 1px solid var(--line-soft); border-radius: 999px; color: #b7c0c4; background: transparent; font-size: .72rem; cursor: pointer; }
.quick-actions button:hover { border-color: var(--gold); }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: .6rem; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid var(--line-soft); }
.chat-form button { padding: 0 1.2rem; border: 0; color: #15120c; background: var(--gold-bright); font-size: .73rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 8rem); align-items: center; }
.about-image { position: relative; }
.about-image img { width: min(100%, 440px); margin-inline: auto; box-shadow: var(--shadow); }
.about-copy p:not(.eyebrow) { color: var(--muted); }
.research-note { display: grid; grid-template-columns: 220px 1fr; gap: 3rem; padding: 2.5rem 0; border-top: 1px solid var(--line-soft); }
.research-note p { margin: 0; color: var(--muted); }

.site-footer { padding: 4rem 0 2rem; border-top: 1px solid var(--line-soft); background: #04070a; }
.footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 3rem; }
.footer-brand { max-width: 310px; }
.footer-brand img { width: 130px; margin-bottom: 1.25rem; }
.footer-brand p { color: var(--muted); font-size: .85rem; }
.footer-col strong { display: block; margin-bottom: 1rem; color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: .45rem 0; color: #b9c0c2; font-size: .86rem; }
.footer-col a:hover { color: var(--gold-bright); }
.footer-bottom { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft); color: #6f787d; font-size: .72rem; }
.error-page { min-height: calc(100vh - 84px); display: grid; place-items: center; padding: 5rem 0; text-align: center; }
.error-page .error-code { margin-bottom: 0; color: var(--gold); font-family: var(--serif); font-size: clamp(7rem, 20vw, 16rem); line-height: .8; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 84px; display: none; padding: 1.2rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line-soft); background: #080c10; }
  .nav.is-open { display: grid; }
  .nav a { padding: .55rem 0; }
  .nav .nav-amanda { width: fit-content; padding: .65rem 1rem; }
  .hero { min-height: auto; }
  .hero-grid, .page-hero-split, .book-hero-grid, .amanda-page-grid { grid-template-columns: 1fr; }
  .hero-visual { width: min(720px, 100%); margin-inline: auto; }
  .hero-caption { right: 1rem; }
  .atlas-panel { grid-template-columns: 1fr; }
  .atlas-panel-media { min-height: 360px; }
  .atlas-panel-media::after { background: linear-gradient(180deg, transparent 60%, #080d12 100%); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principle { border-bottom: 1px solid rgba(20,20,20,.13); }
  .principle:nth-child(2n) { border-right: 0; }
  .principle:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .use-cases { grid-template-columns: repeat(2, 1fr); }
  .amanda-intro { position: static; }
  .book-cover img { width: min(420px, 100%); margin-inline: auto; }
}
@media (max-width: 760px) {
  .shell, .narrow { width: min(100% - 2rem, var(--max)); }
  .header-inner { min-height: 72px; }
  .nav { top: 72px; }
  .brand-copy strong { font-size: .86rem; }
  .brand-copy small { font-size: .58rem; }
  h1 { font-size: clamp(3.1rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.15rem, 11vw, 3.4rem); }
  .hero { padding: 4.5rem 0; }
  .hero-grid { gap: 3rem; }
  .hero-signature span + span::before { display: none; }
  .hero-signature { display: grid; gap: .5rem; }
  .hero-caption { position: static; max-width: none; border-top: 0; }
  .section { padding: 4.8rem 0; }
  .section-head, .amanda-grid, .institutional-grid, .about-grid, .contact-panel, .research-note { grid-template-columns: 1fr; gap: 1.5rem; }
  .atlas-feature { padding-top: 0; }
  .atlas-panel-media { min-height: 260px; }
  .family-row { grid-template-columns: 1fr; }
  .book-grid.two, .book-grid.three, .library-book-grid, .library-book-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-label { max-width: 30rem; }
  .library-family-head { grid-template-columns: 1fr; gap: 1rem; }
  .principles, .solutions-grid, .use-cases { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(2n) { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(20,20,20,.13); }
  .principle:last-child { grid-column: auto; }
  .principle h3 { margin-top: 1rem; }
  .page-hero { padding: 5rem 0; }
  .page-hero-art { order: -1; }
  .amanda-page-grid { gap: 2.5rem; }
  .chat-card { min-height: 590px; }
  .chat-note { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: grid; gap: .5rem; }
}
@media (max-width: 520px) {
  .brand img { width: 42px; }
  .brand-copy strong { font-size: .78rem; letter-spacing: .04em; }
  .brand-copy small { font-size: .54rem; letter-spacing: .1em; }
  .actions .btn { width: 100%; }
  .book-grid.two, .book-grid.three, .library-book-grid, .library-book-grid.two { grid-template-columns: 1fr; }
  .book-card { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: start; }
  .book-card figure { grid-row: 1 / span 3; margin: 0; }
  .book-card .book-line { align-self: end; }
  .atlas-panel-copy { padding: 2rem 1.4rem; }
  .family-row { padding: 2rem 1.25rem; }
  .book-hero-grid { gap: 2.5rem; }
  .book-cover img { width: 78%; }
  .chat-head, .messages { padding-inline: 1rem; }
  .lead-gate { padding: 2rem 1rem; }
  .quick-actions { padding-inline: 1rem; }
  .chat-form { grid-template-columns: 1fr; padding-inline: 1rem; }
  .chat-form button { min-height: 46px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
}
