@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink: #edf1f6;
  --muted: #9aa7ba;
  --night: #0a101b;
  --night-soft: #101a2a;
  --panel: #151f31;
  --panel-light: rgba(22, 33, 51, .74);
  --line: rgba(220, 229, 241, .13);
  --line-strong: rgba(217, 186, 117, .38);
  --gold: #d9ba75;
  --gold-bright: #e8cb8b;
  --violet: #9b8ad9;
  --mist: #d9e0ea;
  --danger: #e7aaa4;
  --success: #90c7aa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 76% 4%, rgba(80, 75, 145, .2), transparent 31rem),
    radial-gradient(circle at 5% 38%, rgba(44, 79, 110, .14), transparent 34rem),
    var(--night);
  font-family: "DM Sans", sans-serif;
  min-height: 100vh;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.08'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, textarea, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 10px 14px; color: #111522; background: var(--gold); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  width: min(1220px, calc(100% - 48px));
  min-height: 84px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 11px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.02em; }
.brand > span:last-child { display: grid; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark { width: 29px; height: 29px; flex: 0 0 auto; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; }
.brand-mark span { width: 11px; height: 17px; border-radius: 50%; background: var(--gold); box-shadow: -5px 0 0 var(--night); transform: rotate(-23deg); }
.header-nav { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 12px; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--ink); }
.nav-button { border: 0; padding: 0; background: none; color: var(--muted); cursor: pointer; }
.nav-accent { border: 1px solid var(--line-strong); padding: 9px 13px; color: var(--gold); }

main { width: min(1220px, calc(100% - 48px)); margin: auto; }
.hero { min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: center; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.hero-copy { max-width: 820px; padding: 86px 0; position: relative; z-index: 1; }
.eyebrow, .step { margin: 0 0 18px; color: var(--gold); font-size: 11px; font-weight: 600; letter-spacing: .19em; text-transform: uppercase; }
h1, h2, blockquote { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
h1 { margin: 0; font-size: clamp(62px, 8vw, 106px); line-height: .88; letter-spacing: -.05em; max-width: 870px; }
.lede { margin: 30px 0 0; max-width: 680px; color: var(--muted); font-size: 19px; line-height: 1.67; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 35px; }
.primary-link, .book-link { display: inline-flex; justify-content: space-between; align-items: center; gap: 45px; background: var(--gold); color: #101521; padding: 15px 18px; font-weight: 600; text-decoration: none; }
.primary-link:hover, .book-link:hover { background: var(--gold-bright); }
.quiet-link, .author-link { color: var(--mist); text-underline-offset: 5px; }
.usage-note { max-width: 560px; margin: 23px 0 0; color: #6f7b8e; font-size: 10px; line-height: 1.6; letter-spacing: .04em; }
.orbit { width: 330px; height: 330px; justify-self: end; border: 1px solid rgba(217,186,117,.14); border-radius: 50%; position: relative; }
.orbit::before, .orbit::after { content: ""; position: absolute; border: 1px solid rgba(217,186,117,.1); border-radius: 50%; inset: 41px; }
.orbit::after { inset: 91px; }
.moon { width: 104px; height: 104px; border: 1px solid rgba(217,186,117,.55); border-radius: 50%; position: absolute; left: 112px; top: 112px; display: grid; place-items: center; box-shadow: 0 0 60px rgba(217,186,117,.09); }
.moon span { width: 50px; height: 68px; border-radius: 50%; background: linear-gradient(140deg, #efdaa6, #9d7f47); box-shadow: -18px 3px 0 var(--night); transform: rotate(-22deg); }
.star { position: absolute; width: 3px; height: 3px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 10px var(--gold); }
.star-one { top: 34px; left: 89px; }.star-two { right: 7px; top: 178px; }.star-three { left: 37px; bottom: 54px; }
.orbit-label { position: absolute; color: #79869a; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.label-one { top: 71px; right: 15px; }.label-two { bottom: 33px; left: 105px; }.label-three { top: 151px; left: -38px; }

.origin-section { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); gap: 8%; padding: 105px 0; border-bottom: 1px solid var(--line); }
.origin-copy h2, .framework-heading h2, .reader-heading h2, .history-heading h2 { margin: 0 0 25px; font-size: clamp(48px, 6vw, 76px); line-height: .95; }
.origin-copy > p:not(.step) { max-width: 760px; color: var(--muted); font-size: 17px; line-height: 1.8; }
.book-card { align-self: start; padding: 30px; border: 1px solid var(--line-strong); background: linear-gradient(155deg, rgba(217,186,117,.1), rgba(21,31,49,.62)); }
.book-series { margin: 0; color: var(--gold); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.book-card h3 { margin: 18px 0 13px; font-family: "Instrument Serif", serif; font-size: 39px; font-weight: 400; }
.book-card > p:not(.book-series) { color: var(--muted); font-size: 13px; line-height: 1.75; }
.book-link { margin-top: 16px; width: 100%; font-size: 12px; }
.author-link { display: inline-block; margin-top: 19px; color: var(--muted); font-size: 11px; }

.framework-section { padding: 110px 0; border-bottom: 1px solid var(--line); }
.framework-heading { display: grid; grid-template-columns: 1fr .7fr; gap: 8%; align-items: end; margin-bottom: 70px; }
.framework-heading > p { max-width: 510px; margin: 0; color: var(--muted); line-height: 1.75; }
.mind-model { display: grid; grid-template-columns: 1fr 210px 1fr; align-items: stretch; margin-bottom: 16px; }
.mind-model article { padding: 30px; border: 1px solid var(--line); background: var(--panel-light); }
.mind-model article > span, .card-number { color: var(--gold); font-family: "Instrument Serif", serif; font-size: 21px; }
.mind-model h3, .framework-card h3, .source-panel h3 { margin: 24px 0 10px; font-family: "Instrument Serif", serif; font-size: 35px; font-weight: 400; }
.mind-model p, .framework-card p:not(.card-number) { color: var(--muted); font-size: 13px; line-height: 1.7; }
.mind-intersection { position: relative; z-index: 1; display: grid; place-content: center; text-align: center; margin: 26px -13px; border: 1px solid var(--gold); border-radius: 50%; background: var(--night); color: var(--gold); }
.mind-intersection span { font-family: "Instrument Serif", serif; font-size: 32px; }
.mind-intersection small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.framework-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.framework-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); }
.framework-card h3 { margin-top: 50px; }
.source-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 8%; margin-top: 70px; padding: 50px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.source-panel h3 { max-width: 410px; font-size: 42px; }
.source-panel ol { list-style: none; margin: 0; padding: 0; }
.source-panel li { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 15px 0; border-top: 1px solid var(--line); }
.source-panel li:last-child { border-bottom: 1px solid var(--line); }
.source-panel li span { color: var(--gold); font-size: 12px; font-weight: 600; }
.source-panel li p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.method-strip { margin-top: 70px; }
.method-strip ol { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 35px 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-strip li { min-height: 180px; padding: 22px 17px; border-right: 1px solid var(--line); }
.method-strip li:last-child { border-right: 0; }
.method-strip li > span { color: var(--gold); font-family: "Instrument Serif", serif; font-size: 23px; }
.method-strip strong, .method-strip small { display: block; }
.method-strip strong { margin-top: 31px; font-size: 13px; }
.method-strip small { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.55; }
blockquote { max-width: 820px; margin: 62px 0 15px; font-size: clamp(28px, 4vw, 47px); line-height: 1.25; color: var(--mist); }
.attribution { color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }

.reader-heading { max-width: 760px; padding: 110px 0 60px; }
.reader-heading > p:last-child { color: var(--muted); font-size: 16px; line-height: 1.7; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .65fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.entry-panel { padding: 70px 7% 80px 0; border-right: 1px solid var(--line); }
.reader-aside { padding: 70px 0 80px 12%; }
.section-heading { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 38px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 52px); line-height: 1; }
.text-button { border: 0; border-bottom: 1px solid rgba(217,186,117,.6); padding: 3px 0; background: none; color: var(--gold); cursor: pointer; white-space: nowrap; font-size: 12px; }
label, legend { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
label > span { float: right; color: var(--muted); font-size: 10px; font-weight: 400; text-transform: uppercase; letter-spacing: .1em; }
.field-shell { position: relative; }
textarea, input { width: 100%; color: var(--ink); background: rgba(7,12,21,.48); border: 1px solid var(--line); border-radius: 3px; padding: 15px 16px; line-height: 1.65; outline: none; transition: border-color .2s, background .2s; }
textarea { resize: vertical; }
textarea:focus, input:focus { border-color: rgba(217,186,117,.6); background: rgba(7,12,21,.72); }
textarea::placeholder, input::placeholder { color: #697689; }
.main-field textarea { min-height: 285px; padding: 18px 18px 35px; font-family: "Instrument Serif", Georgia, serif; font-size: 22px; }
.count { position: absolute; right: 14px; bottom: 12px; color: #6d798a; font-size: 10px; letter-spacing: .08em; }
.context-block { margin-top: 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.context-block summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }
.context-block summary::-webkit-details-marker { display: none; }
.context-block summary strong, .context-block summary small { display: block; }
.context-block summary strong { font-size: 13px; }
.context-block summary small { color: var(--muted); margin-top: 5px; }
.plus { color: var(--gold); font-size: 24px; font-weight: 300; transition: transform .2s; }
.context-block[open] .plus { transform: rotate(45deg); }
.context-fields { padding-bottom: 22px; display: grid; gap: 10px; }
.context-fields label { margin: 12px 0 0; }
.context-fields textarea { min-height: 110px; }
.lens-picker { border: 0; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lens-picker legend { margin-bottom: 10px; }
.lens-picker label { margin: 0; position: relative; }
.lens-picker input { position: absolute; opacity: 0; pointer-events: none; }
.lens-picker label > span { float: none; display: block; height: 100%; padding: 13px; border: 1px solid var(--line); color: var(--mist); text-transform: none; letter-spacing: 0; font-size: 12px; cursor: pointer; }
.lens-picker small { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.lens-picker input:checked + span { border-color: var(--gold); background: rgba(217,186,117,.07); }
.primary-button { width: 100%; border: 1px solid var(--gold); background: var(--gold); color: #111522; padding: 17px 20px; display: flex; justify-content: space-between; font-weight: 600; cursor: pointer; transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: var(--gold-bright); }
.primary-button:disabled { opacity: .55; cursor: wait; transform: none; }
.privacy-note { color: #727f91; font-size: 10px; line-height: 1.6; margin: 12px 0 0; }
.model-state { display: flex; align-items: center; gap: 8px; margin-bottom: 48px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 13px var(--gold); }
.model-state.offline .status-dot { background: var(--danger); box-shadow: none; }
.reader-aside > ul { list-style: none; margin: 25px 0 0; padding: 0; }
.reader-aside > ul li { padding: 16px 0; border-top: 1px solid var(--line); }
.reader-aside > ul li:last-child { border-bottom: 1px solid var(--line); }
.reader-aside strong, .reader-aside li span { display: block; }
.reader-aside strong { font-size: 12px; }
.reader-aside li span { color: var(--muted); margin-top: 5px; font-size: 10px; line-height: 1.5; }
.account-callout { margin-top: 35px; padding: 22px; border: 1px solid var(--line-strong); background: rgba(217,186,117,.05); }
.account-callout strong { color: var(--gold); }
.account-callout p { color: var(--muted); font-size: 11px; line-height: 1.6; }

.loading-state, .error-state { min-height: 620px; display: grid; place-items: center; align-content: center; text-align: center; }
.loading-orb { width: 110px; height: 110px; border: 1px solid rgba(217,186,117,.25); border-radius: 50%; display: grid; place-items: center; margin-bottom: 34px; animation: breathe 2.4s ease-in-out infinite; }
.loading-orb span { width: 45px; height: 60px; border-radius: 50%; background: var(--gold); box-shadow: -16px 0 0 var(--night); }
.loading-state h2, .error-state h2 { margin: 0; font-size: 40px; }
.loading-line { width: 260px; height: 1px; background: var(--line); margin-top: 35px; overflow: hidden; }
.loading-line span { display: block; width: 40%; height: 100%; background: var(--gold); animation: travel 1.8s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 55px rgba(217,186,117,.12); } }
@keyframes travel { from { transform: translateX(-120%); } to { transform: translateX(350%); } }
.results { padding: 95px 0; }
.result-intro { max-width: 820px; margin-bottom: 60px; }
.result-intro h2 { margin: 0 0 20px; font-size: clamp(48px, 7vw, 84px); line-height: .95; }
.result-intro > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.65; }
.result-actions { display: flex; gap: 20px; margin-top: 19px; }
.result-block { display: grid; grid-template-columns: 220px 1fr; gap: 45px; padding: 42px 0; border-top: 1px solid var(--line); }
.result-block > h3 { margin: 0; color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.reading-card { padding: 22px; border: 1px solid var(--line); background: rgba(21,31,49,.52); }
.reading-card h4 { margin: 0 0 8px; font-family: "Instrument Serif", serif; font-size: 27px; font-weight: 400; }
.reading-card p, .reading-card li { color: var(--muted); font-size: 13px; line-height: 1.65; }
.reading-card ul { padding-left: 17px; margin-bottom: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.badge { border: 1px solid var(--line); color: var(--mist); padding: 5px 8px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.confidence-strong { border-color: rgba(217,186,117,.65); color: var(--gold); }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { color: var(--mist); margin-bottom: 14px; line-height: 1.6; }
.limits { color: var(--muted); line-height: 1.7; border-left: 1px solid var(--gold); padding-left: 20px; }
.followup-panel { max-width: 820px; margin: 65px 0 0 265px; padding: 35px; border: 1px solid var(--line-strong); background: var(--panel-light); }
.followup-panel h3 { margin: 0; font-family: "Instrument Serif", serif; font-size: 39px; font-weight: 400; }
.followup-panel > p:not(.step) { color: var(--muted); font-size: 12px; line-height: 1.7; }
.followup-panel textarea { min-height: 130px; margin-bottom: 14px; }
.error-state { max-width: 650px; margin: auto; }
.error-state p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.secondary-button { margin-top: 18px; border: 1px solid var(--gold); background: transparent; color: var(--gold); padding: 13px 19px; cursor: pointer; }

.history-section { padding: 90px 0; }
.history-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 45px; }
.history-heading h2 { margin-bottom: 0; }
.history-list { display: grid; gap: 9px; }
.history-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; width: 100%; padding: 23px; border: 1px solid var(--line); background: var(--panel-light); text-align: left; cursor: pointer; }
.history-card:hover { border-color: var(--line-strong); }
.history-card strong { display: block; font-family: "Instrument Serif", serif; font-size: 25px; font-weight: 400; }
.history-card span { color: var(--muted); font-size: 10px; }
.empty-history { color: var(--muted); }

.auth-dialog { width: min(820px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 1px solid var(--line-strong); background: var(--night-soft); color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.auth-dialog::backdrop { background: rgba(2,6,12,.8); backdrop-filter: blur(5px); }
.auth-dialog[open] { display: grid; grid-template-columns: .8fr 1.2fr; }
.dialog-close { position: absolute; top: 13px; right: 15px; border: 0; background: none; color: var(--muted); font-size: 25px; cursor: pointer; }
.auth-copy { padding: 60px 40px; border-right: 1px solid var(--line); background: linear-gradient(160deg, rgba(217,186,117,.08), transparent); }
.auth-copy h2 { margin: 0; font-size: 48px; line-height: .95; }
.auth-copy > p:last-child { color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-forms { padding: 48px 40px; overflow-y: auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 25px; border-bottom: 1px solid var(--line); }
.auth-tabs button { border: 0; padding: 12px; background: none; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { border-bottom: 1px solid var(--gold); color: var(--gold); }
.auth-forms form { display: grid; gap: 10px; }
.auth-forms label { margin-top: 5px; }
.auth-forms .primary-button { margin-top: 12px; }
.check-row { display: grid !important; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin-top: 12px !important; }
.check-row input { width: auto; margin-top: 3px; }
.check-row span { float: none; text-transform: none; letter-spacing: 0; line-height: 1.5; }
.form-message { min-height: 18px; color: var(--danger); font-size: 11px; }
.form-message.success { color: var(--success); }

.legal-page { width: min(900px, calc(100% - 48px)); margin: auto; padding: 80px 0 110px; }
.legal-page .back-link { display: inline-block; margin-bottom: 55px; color: var(--gold); font-size: 11px; text-underline-offset: 5px; }
.legal-page h1 { font-size: clamp(55px, 9vw, 92px); }
.legal-lede { color: var(--muted); font-size: 17px; line-height: 1.7; }
.legal-meta { margin: 25px 0 50px; color: #727f91; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.legal-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 45px; }
.legal-index a { padding: 8px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; text-decoration: none; }
.legal-document article { padding: 32px 0; border-top: 1px solid var(--line); }
.legal-document h2 { margin: 0 0 15px; font-size: 36px; }
.legal-document p, .legal-document li { color: var(--muted); font-size: 13px; line-height: 1.8; }
.legal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 50px; }
.legal-cards a { padding: 30px; border: 1px solid var(--line); text-decoration: none; }
.legal-cards strong { display: block; font-family: "Instrument Serif", serif; font-size: 32px; font-weight: 400; }
.legal-cards span { display: block; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }

footer { width: min(1220px, calc(100% - 48px)); min-height: 165px; margin: auto; padding: 35px 0; display: grid; grid-template-columns: 1fr auto; gap: 25px 60px; align-items: center; border-top: 1px solid var(--line); color: #687486; font-size: 10px; }
footer > div > span { color: var(--mist); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
footer > div p { margin: 7px 0 0; }
footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 16px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--gold); }
.footer-disclaimer { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); text-align: right; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .header-nav a { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .orbit { position: absolute; right: -90px; opacity: .45; }
  .origin-section, .framework-heading, .source-panel { grid-template-columns: 1fr; }
  .book-card { margin-top: 10px; }
  .mind-model { grid-template-columns: 1fr; }
  .mind-intersection { width: 180px; height: 180px; justify-self: center; margin: -14px 0; }
  .framework-grid { grid-template-columns: 1fr; }
  .method-strip ol { grid-template-columns: 1fr 1fr; }
  .method-strip li { border-bottom: 1px solid var(--line); }
  .workspace { grid-template-columns: 1fr; }
  .entry-panel { padding: 60px 0; border-right: 0; }
  .reader-aside { padding: 60px 0; border-top: 1px solid var(--line); }
  .result-block { grid-template-columns: 1fr; gap: 18px; }
  .followup-panel { margin-left: 0; }
}

@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 28px, 1220px); }
  .site-header { min-height: 70px; }
  .header-nav { gap: 10px; }
  .nav-button { font-size: 10px; }
  .nav-accent { padding: 7px 9px; }
  .hero-copy { padding: 64px 0 80px; }
  h1 { font-size: 57px; }
  .lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .orbit { right: -185px; }
  .origin-section, .framework-section { padding: 78px 0; }
  .origin-copy h2, .framework-heading h2, .reader-heading h2 { font-size: 48px; }
  .mind-model article, .framework-card, .book-card { padding: 23px; }
  .source-panel li { grid-template-columns: 1fr; gap: 5px; }
  .method-strip ol { grid-template-columns: 1fr; }
  .method-strip li { min-height: auto; border-right: 0; }
  .method-strip strong { margin-top: 12px; }
  .section-heading { align-items: start; flex-direction: column; }
  .lens-picker { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .result-actions { align-items: flex-start; flex-direction: column; }
  .history-heading { align-items: flex-start; flex-direction: column; }
  .auth-dialog[open] { grid-template-columns: 1fr; }
  .auth-copy { padding: 40px 28px 25px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth-copy h2 { font-size: 39px; }
  .auth-forms { padding: 30px 28px; }
  .legal-cards { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  footer nav { justify-content: start; }
  .footer-disclaimer { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; }
}

/* DreamTruth 0.3: blue-hour literary dreamscape */
:root{--night:#070e28;--night-soft:#0c1839;--panel:#101e43;--panel-light:rgba(17,35,74,.78);--ink:#eef6ff;--muted:#acbdd9;--gold:#92d9ff;--gold-bright:#c1edff;--line:rgba(140,187,255,.19);--line-strong:rgba(149,206,255,.5);--violet:#c6abef;--mist:#dce9ff}
body{background:radial-gradient(ellipse at 90% 35%,#411b4533,transparent 45%),radial-gradient(ellipse at 10% 5%,#174f8044,transparent 50%),var(--night)}
.site-header{min-height:100px;width:min(1320px,calc(100% - 64px));border-bottom:1px solid var(--line)}
.brand{font-size:23px;gap:10px}.brand small{font-size:9px;letter-spacing:.16em}.header-nav{font-size:13px;gap:24px}.header-nav [aria-current=page]{color:#b9e8ff}.nav-accent{border-radius:100px;padding:10px 18px}
main{width:min(1320px,calc(100% - 64px))}.dream-hero{position:relative;min-height:690px;display:flex;align-items:center;margin:24px 0 0;overflow:hidden;border-radius:10px 10px 100px 10px;background:#102750}.dreamscape{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% center}.dream-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,15,40,.98) 0%,rgba(6,15,40,.86) 27%,rgba(6,15,40,.25) 65%,transparent)}.dream-hero-copy{position:relative;z-index:1;padding:72px 52px;max-width:770px}.dream-hero h1{font-size:clamp(58px,6.1vw,86px);line-height:1.02;letter-spacing:-.035em}.dream-hero h1 em,.page-intro h1 em{color:#a9dfff;font-weight:400}.dream-hero .lede{max-width:510px;font-size:17px;line-height:1.8}.eyebrow{font-size:10px;letter-spacing:.18em}.usage-note{color:#b2c1dc;font-size:11px;max-width:450px}.primary-link,.primary-button,.book-link{border-radius:8px;background:linear-gradient(115deg,#acdfff,#a2b9ff);color:#08172f}.primary-link{gap:32px}.scene-caption{position:absolute;z-index:1;right:38px;bottom:35px;font-size:9px;text-transform:uppercase;letter-spacing:.18em;color:#e2eaff}.invitation{padding:92px 0;text-align:center;max-width:700px;margin:auto}.invitation h2{font-size:58px;line-height:1.05;margin:12px 0 22px}.invitation>p:not(.step){font-size:17px;line-height:1.85;color:var(--muted)}.invitation .quiet-link{display:inline-block;margin-top:15px}.path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:0 0 85px}.path-grid>a{padding:32px;text-decoration:none;border-top:1px solid #7699e8;background:linear-gradient(155deg,#16396855,#201b3d33);border-radius:0 0 16px 16px}.path-grid span{font-size:11px;color:#abbfea;letter-spacing:.1em}.path-grid h2{font-size:36px;line-height:1.1}.path-grid p{color:var(--muted);font-size:14px;line-height:1.8}.path-grid b{display:inline-block;font-size:12px;color:#aae1ff;margin-top:20px}.page-intro{padding:84px 0 44px}.page-intro h1{font-size:clamp(55px,7vw,86px);line-height:1.04}.origin-section{padding-top:40px}.book-feature{border:1px solid #869fdd66;border-radius:12px;background:radial-gradient(ellipse at top right,#a43b6a55,transparent 65%),linear-gradient(145deg,#214879,#111934);box-shadow:16px 16px 0 #050b1b,17px 17px 0 #5d71a444;padding:45px 34px}.book-feature h3{font-family:'Instrument Serif',Georgia,serif;font-size:54px;color:#e5f3ff}.framework-card,.entry-panel,.reader-aside,.context-block{border-radius:12px}.reader-heading{padding-top:66px}.key-panel{display:grid;grid-template-columns:1.2fr 1fr;gap:50px;padding:28px 32px;background:#13264d;border:1px solid var(--line);border-radius:12px;margin:0 0 26px}.key-panel h3{font-size:22px;margin:0 0 12px}.key-panel p{font-size:13px;line-height:1.7;color:var(--muted)}.key-panel .step{color:var(--gold)}.key-panel input{width:100%;padding:14px;border:1px solid var(--line-strong);border-radius:6px;background:#070e28;color:white;margin:10px 0 15px}.key-actions{display:flex;align-items:center;gap:20px}.key-actions button{font-size:12px}.key-panel #keyStatus{color:#a4e4fa}.auth-dialog{border-radius:18px}footer{max-width:1320px}.legal-document article{border-radius:10px}.legal-main .brand-mark{border:0;background:url('../assets/logo.svg') center/contain;width:42px;height:42px}.brand-mark span{display:none}
@media(max-width:1050px){.header-nav{gap:14px;font-size:12px}.site-header{gap:16px}.dream-hero-copy{padding:58px 34px}.dream-hero{min-height:630px}.path-grid>a{padding:25px}.brand{font-size:20px}}
@media(max-width:760px){main,.site-header{width:calc(100% - 32px)}.site-header{padding:20px 0;align-items:flex-start;flex-direction:column;gap:20px}.header-nav{width:100%;flex-wrap:wrap;gap:16px 20px}.brand img{width:40px;height:40px}.dream-hero{margin-top:16px;min-height:720px;align-items:flex-start;border-radius:8px 8px 50px 8px}.dream-hero-copy{padding:36px 24px}.dream-hero h1{font-size:55px}.dream-hero .lede{font-size:15px;line-height:1.75;margin-top:24px}.dream-hero:after{background:linear-gradient(180deg,#071127ee 0%,#071127d9 47%,#07112722 100%)}.dreamscape{object-position:70% center}.hero-actions{flex-wrap:wrap;gap:23px;margin-top:28px}.scene-caption{right:24px;bottom:26px;font-size:8px}.usage-note{font-size:10px}.invitation{padding:60px 12px}.invitation h2{font-size:44px}.invitation>p:not(.step){font-size:15px}.path-grid{grid-template-columns:1fr;gap:16px;margin-bottom:40px}.path-grid h2{font-size:35px;margin:20px 0}.path-grid b{margin-top:10px}.page-intro{padding:50px 0 20px}.page-intro h1{font-size:58px}.key-panel{grid-template-columns:1fr;gap:16px;padding:24px}.key-actions{flex-wrap:wrap}.book-feature{margin-right:16px}.origin-section{gap:30px}.reader-heading{padding-top:42px}.reader-heading h2{font-size:45px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}

.header-nav a{display:inline-block}
@media(max-width:760px){.dream-hero h1{font-size:49px;text-wrap:balance}.dream-hero{min-height:740px}.scene-caption{font-size:7px}.header-nav{row-gap:14px}}

/* 0.4: manuscript-led reading layout */
[hidden]{display:none!important}.header-nav{flex-wrap:wrap;justify-content:flex-end;gap:14px}.site-header{gap:24px}.hero-explanation{max-width:510px;line-height:1.8;color:#d2e0f3;font-size:16px}.dream-hero h1{font-size:clamp(54px,5.3vw,76px)}.dream-hero-copy{max-width:740px}.author-intro{display:grid;grid-template-columns:.8fr 1.2fr;gap:80px;padding:80px 0}.author-intro h2{font-size:48px;line-height:1.12;margin-top:16px}.author-intro p,.book-copy p{font-size:17px;line-height:1.9;color:var(--muted)}.editorial-heading{padding:68px 0 42px;border-bottom:1px solid var(--line)}.editorial-heading h1{font-size:clamp(46px,5.3vw,72px);line-height:1.1;margin:16px 0}.editorial-heading>p:last-child{font-size:18px;color:var(--muted);max-width:700px;line-height:1.7}.framework-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:80px;align-items:start;margin:48px 0 80px}.framework-toc{position:sticky;top:24px}.framework-toc nav{display:flex;flex-direction:column}.framework-toc a{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:13px;line-height:1.5;text-decoration:none;color:var(--muted)}.framework-toc a:hover{color:var(--gold)}.framework-toc a span{color:var(--gold);font-size:11px;padding-top:2px}.framework-article{max-width:800px}.framework-article section{scroll-margin-top:30px;border-bottom:1px solid var(--line);padding:0 0 40px;margin:0 0 42px}.section-number{font-size:10px!important;letter-spacing:.12em;color:var(--gold)!important}.framework-article h2{font-size:39px;line-height:1.16;margin:12px 0 24px}.framework-article h3{font-family:inherit;font-size:22px;margin:36px 0 12px;color:var(--ink)}.framework-article p,.framework-article dd{font-size:17px;line-height:1.9;color:var(--muted)}.framework-article strong{color:var(--ink);font-weight:600}.framework-article dt{font-weight:600;color:var(--ink);font-size:17px;margin:22px 0 6px}.framework-article dd{margin:0}.worked-example{background:#12264a80;border-left:3px solid #86c7f1;border-radius:0 12px 12px 0;padding:24px 28px;margin:28px 0}.worked-example p:first-child{margin-top:0}.source-list{margin:24px 0}.book-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);gap:80px;padding:50px 0}.book-copy h2,.book-contents h2{font-size:40px;line-height:1.15;margin:20px 0}.book-copy h2:not(:first-child){margin-top:44px}.book-purchase{align-self:start;background:linear-gradient(135deg,#214c78,#322345);border:1px solid #7599ca60;border-radius:12px;padding:34px}.book-purchase h2{font-size:68px;line-height:1.15;margin:30px 0}.book-purchase h2 em{font-weight:400;color:#bde7ff}.book-purchase>a{display:block;font-size:14px;margin-top:22px;line-height:1.6}.book-purchase .primary-link{padding:16px}.book-contents{padding:20px 0 70px}.book-contents ol{display:grid;grid-template-columns:1fr 1fr;gap:0 50px;padding-left:24px;margin-top:32px}.book-contents li{padding:15px 4px;border-bottom:1px solid var(--line);color:var(--muted)}footer nav{display:flex;flex-wrap:wrap;gap:16px}footer{gap:30px}.key-panel #keyGuest p{margin-bottom:20px}
@media(max-width:1050px){.site-header{align-items:flex-start}.header-nav{gap:12px}.framework-layout{gap:40px;grid-template-columns:210px minmax(0,1fr)}.book-layout{gap:35px}.author-intro{gap:40px}}
@media(max-width:760px){.header-nav{justify-content:flex-start}.author-intro,.book-layout{grid-template-columns:1fr;gap:20px;padding:40px 0}.author-intro h2{font-size:38px}.editorial-heading{padding:40px 0 26px}.framework-layout{display:block;margin:24px 0 40px}.framework-toc{position:static;margin-bottom:36px;background:#12264a66;padding:20px;border-radius:10px}.framework-toc nav{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.framework-toc a{font-size:12px}.framework-article h2{font-size:34px}.framework-article p,.framework-article dd,.book-copy p{font-size:16px;line-height:1.85}.worked-example{padding:20px}.book-contents ol{grid-template-columns:1fr}.hero-explanation{font-size:15px}.dream-hero-copy{padding:32px 24px}.dream-hero{min-height:780px}.dream-hero h1{font-size:51px}.book-purchase{padding:28px}.book-purchase h2{font-size:58px}}

.version-bar{width:min(1320px,calc(100% - 64px));margin:14px auto -6px;font-size:11px}.version-bar a{color:#a8cceb;text-decoration:none}.reader-gate{max-width:790px;padding:70px 0 100px}.reader-gate h1{font-size:clamp(46px,6vw,70px);line-height:1.1}.reader-gate p{font-size:17px;line-height:1.85;color:var(--muted)}.reader-gate .primary-button{width:auto;padding:18px 40px}.show-password{display:flex!important;align-items:center;gap:10px}.show-password input{width:auto!important;margin:0!important}.share-panel{border:1px solid var(--line);background:#13264d;padding:28px;border-radius:12px;margin:26px 0}.share-panel p{font-size:14px;color:var(--muted);line-height:1.8}.share-panel input{width:100%;padding:14px;background:var(--night);color:var(--ink);border:1px solid var(--line);margin:12px 0}.share-panel button,.share-panel a{margin:8px 18px 8px 0}.release-notes,.shared-reading{max-width:850px;padding:40px 0 80px}.release-notes section,.shared-reading>section{padding:24px 0;border-bottom:1px solid var(--line)}.release-notes h2,.shared-reading h2{font-size:36px}.release-notes p,.release-notes li,.shared-reading p{line-height:1.8;color:var(--muted)}.shared-reading h1{font-size:48px;line-height:1.15}.shared-reading strong{text-transform:capitalize}.shared-reading li{padding:12px 0}.shared-reading ul{padding-left:24px}
@media(max-width:760px){.version-bar{width:calc(100% - 32px)}.reader-gate{padding:40px 0 60px}.share-panel{padding:20px}.shared-reading h1{font-size:38px}}

.shared-reading{max-width:1100px}.shared-summary{max-width:800px;font-size:18px;line-height:1.85;margin:26px 0 44px}.shared-reading .reading-card li{padding:3px 0}.shared-reading .result-block{padding:24px 0}

.settings-page{max-width:820px;padding:50px 0 80px}.settings-page h1{font-size:64px;line-height:1.1}.settings-page h2{font-size:36px}.settings-page p{color:var(--muted);line-height:1.85}.settings-page label{display:block;margin:24px 0 12px}.settings-page textarea,.settings-page input[type=password]{width:100%;padding:16px;background:var(--night);border:1px solid var(--line-strong);border-radius:8px;color:var(--ink);font:inherit}.settings-page textarea{line-height:1.7;resize:vertical}.settings-page button{margin:16px 15px 16px 0}.delete-control{padding:22px;border:1px solid #bb829555;border-radius:10px;margin:24px 0}.delete-control summary{cursor:pointer;color:#e5b8c7}.delete-control p{color:var(--muted);line-height:1.8}.data-controls{margin-top:60px;border-top:1px solid var(--line);padding-top:26px}.profile-choice{display:flex!important;gap:12px;align-items:center}.profile-choice input{width:auto!important}.field-note{font-size:13px;color:var(--muted);line-height:1.8}.reader-heading{padding-bottom:28px}.header-nav{font-size:12px;gap:13px}.legal-copy{max-width:850px;padding:30px 0 70px}.legal-copy h2{font-size:34px;margin-top:40px}.legal-copy p,.legal-copy li{line-height:1.85;color:var(--muted)}.legal-copy li{margin-bottom:10px}.legal-links{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.legal-links a{border:1px solid var(--line);padding:18px;border-radius:8px}
@media(max-width:760px){.settings-page{padding:32px 0 50px}.settings-page h1{font-size:46px}.delete-control{padding:18px}.header-nav{gap:12px}}

/* v1.3: personal context editor and archive controls */
.profile-page{max-width:none}.profile-heading{max-width:850px;margin-bottom:64px}.profile-heading>p:last-child{font-size:20px;line-height:1.8;color:var(--muted,#abbad4)}
.profile-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:64px;align-items:start}.profile-editor{background:rgba(20,39,77,.65);border:1px solid #31466c;border-radius:18px;padding:32px}.profile-editor h2{font-size:clamp(32px,3vw,48px);margin:12px 0 28px}.profile-editor textarea{min-height:320px;resize:vertical}.profile-editor .field-help{font-size:13px;line-height:1.7;color:#aab9d1}.profile-editor .primary-button{width:100%}.profile-aside h2{font-size:32px}.profile-aside>div{padding:22px 0;border-bottom:1px solid #293858}.profile-aside h3{font-size:16px;margin:0 0 8px}.profile-aside p{font-size:15px;line-height:1.8;color:#abbad4}.profile-privacy a{color:#9cdbff}.profile-page .data-controls{margin-top:64px;padding-top:32px;border-top:1px solid #31466c}.profile-page .data-controls h2{font-size:36px}.history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;background:rgba(20,39,77,.65);border:1px solid #31466c;margin-bottom:14px;align-items:start;border-radius:12px;overflow:hidden}.history-row .history-card{border:0;background:transparent;margin:0;width:100%;min-width:0}.history-open strong{overflow-wrap:anywhere}.history-delete{padding:28px 24px;max-width:330px}.history-delete summary{cursor:pointer;color:#f5b7b7;font-size:14px}.history-confirm p{font-size:14px;line-height:1.7}.history-confirm .secondary-button{padding:12px 16px;margin:8px 12px 8px 0}.history-confirm .quiet-button{background:transparent;color:#b4ddff;border:0;padding:10px;cursor:pointer}.history-status:empty{display:none}
@media(max-width:800px){.profile-grid{grid-template-columns:1fr;gap:32px}.profile-heading{margin-bottom:32px}.profile-heading>p:last-child{font-size:17px}.profile-editor{padding:22px}.profile-editor textarea{min-height:260px}.history-row{grid-template-columns:1fr}.history-delete{padding:0 24px 22px;max-width:none}.profile-page .data-controls{margin-top:36px}}

#memberReader:has(#history:not([hidden])) .reader-heading,#memberReader:has(#history:not([hidden])) .key-panel{display:none} .history-section{padding:60px 0 80px}

/* Official Lab navigation reserves the fixed Live feedback control. */
.site-header{padding-top:76px;align-items:center;gap:24px}.header-nav{flex-wrap:wrap;justify-content:flex-end;gap:16px 20px}.header-nav a,.header-nav button{white-space:nowrap}.version-bar{display:none}.admin-panel{padding:32px;border:1px solid var(--line,#344565);border-radius:18px;background:#101d3b;margin-bottom:80px}.admin-summary{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:24px}.admin-summary label{display:grid;gap:8px}.admin-summary input{width:300px;max-width:100%}.admin-table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th,td{padding:16px 12px;border-bottom:1px solid #344565;overflow-wrap:anywhere}th{color:#9edcff;font-size:13px}.admin-pagination{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:24px}footer small{color:#96a7c6} @media(max-width:760px){.site-header{padding-top:68px;display:block}.header-nav{justify-content:flex-start;margin-top:24px;gap:14px 18px}.admin-panel{padding:18px}.admin-summary{align-items:stretch;flex-direction:column}.admin-summary input{width:100%}th,td{padding:12px 10px;min-width:100px}.admin-table-wrap{max-width:100%}}

@media(max-width:600px){.admin-table-wrap table,.admin-table-wrap tbody,.admin-table-wrap tr,.admin-table-wrap td{display:block;width:100%;min-width:0}.admin-table-wrap thead{display:none}.admin-table-wrap tr{border:1px solid #344565;border-radius:12px;margin-bottom:14px;padding:10px}.admin-table-wrap td{padding:8px;border:0;overflow-wrap:anywhere}.admin-table-wrap td::before{content:attr(data-label);display:block;font-size:11px;color:#9edcff;margin-bottom:3px}.admin-pagination{flex-wrap:wrap}}
