:root {
  --navy: #073546;
  --navy-deep: #022632;
  --yellow: #ffca05;
  --yellow-soft: #fff1b5;
  --ink: #17242b;
  --muted: #5d686d;
  --paper: #fffdf8;
  --white: #ffffff;
  --line: #d8d8d2;
  --max: 1180px;
  --radius: 26px;
  --shadow: 0 14px 44px rgba(7, 53, 70, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: .18em; }
button, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }

.skip-link { position: fixed; left: 1rem; top: -100px; z-index: 99; background: var(--yellow); color: #111; padding: .65rem 1rem; font-weight: 700; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 20;
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: .65rem max(1rem, calc((100vw - var(--max)) / 2));
  background: rgba(255, 253, 248, .96); border-bottom: 1px solid rgba(7,53,70,.12);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); font-size: .84rem; font-weight: 800; letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { color: var(--ink); font-size: .86rem; font-weight: 700; text-decoration: none; }
nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--yellow); }
.menu-button { display: none; align-items: center; gap: .5rem; border: 0; background: transparent; color: var(--navy); font-weight: 700; padding: .5rem; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; content: ""; transition: .2s; }
.menu-icon { position: relative; }
.menu-icon::before { position: absolute; top: -7px; }
.menu-icon::after { position: absolute; top: 7px; }

.section-shell { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: 6rem 0; }
.hero { min-height: calc(100vh - 72px); min-height: calc(100svh - 72px); display: grid; grid-template-columns: 1.15fr .85fr; align-content: center; gap: 3rem; position: relative; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 .65rem; color: var(--navy); font-size: .77rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.05; }
h1 { margin-bottom: 1.5rem; color: var(--navy); font-size: clamp(3.2rem, 8vw, 7.2rem); letter-spacing: -.065em; }
h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4.8vw, 4.4rem); letter-spacing: -.045em; }
h3 { margin-bottom: .7rem; font-size: 1.35rem; letter-spacing: -.02em; }
.lead { max-width: 710px; margin: 0 0 1.8rem; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid transparent; border-radius: 999px; padding: .65rem 1.05rem; cursor: pointer; font-weight: 800; text-decoration: none; }
.button-primary { background: var(--yellow); color: #111; }
.button-primary:hover { background: #ffd83f; }
.button-secondary { border-color: var(--navy); background: transparent; color: var(--navy); }
.button-quiet { border-color: rgba(255,255,255,.45); background: transparent; color: white; }
.hero-mark { width: min(34vw, 420px); aspect-ratio: 1; align-self: center; justify-self: center; display: grid; place-items: center; border-radius: 42% 58% 60% 40% / 40% 45% 55% 60%; background: var(--yellow); transform: rotate(-7deg); box-shadow: var(--shadow); }
.hero-mark span { color: var(--navy); font-family: Georgia, serif; font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900; line-height: .62; letter-spacing: -.08em; transform: rotate(7deg); }
.hero-note { grid-column: 1 / -1; max-width: 840px; padding: 1rem 1.2rem; border-left: 8px solid var(--yellow); background: white; box-shadow: var(--shadow); }
.hero-note p { margin: 0; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.hero-note strong { color: var(--navy); }

.section-heading { display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 3rem; }
.section-heading h2 { margin-bottom: 0; }
.section-number { flex: 0 0 auto; margin: .18rem 0 0; color: var(--navy); font-size: .82rem; font-weight: 800; }
.glass-intro { max-width: 920px; font-size: 1.12rem; }
.glass-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2rem; border: 1px solid var(--navy); background: var(--navy); }
.glass-layout article { padding: 1.5rem; background: var(--paper); }
.glass-number { margin: 0 0 .8rem; color: var(--yellow); font-size: 1.7rem; font-weight: 900; }
.glass-layout h3 { color: var(--navy); }
.glass-quote { max-width: 920px; margin: 2rem auto 0; font-size: 1.05rem; }
.definition-callout { max-width: 880px; margin: 3rem 0 0 auto; padding: 1.5rem 1.7rem; border-radius: 0 var(--radius) var(--radius) 0; background: var(--yellow); }
.definition-callout p:last-child { margin: 0; font-size: 1.1rem; }
.democracy-thread { margin-top: 2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.democracy-thread > p:last-child { max-width: 920px; margin-bottom: 0; }

.dark-section { width: 100%; max-width: none; padding-inline: max(1rem, calc((100vw - var(--max)) / 2)); background: var(--navy); color: white; }
.inverse .section-number, .inverse .eyebrow, .dark-section .eyebrow, .inverse-text { color: white; }
.competence-layout { display: grid; grid-template-columns: minmax(260px, .7fr) 1.3fr; gap: 4rem; align-items: center; }
.pentagram-figure { margin: 0; text-align: center; }
.pentagram-figure img { max-height: 520px; object-fit: contain; filter: drop-shadow(0 18px 30px rgba(0,0,0,.2)); }
.pentagram-figure figcaption { margin-top: .75rem; font-size: .75rem; color: rgba(255,255,255,.75); }
.competence-list { border-top: 1px solid rgba(255,255,255,.35); }
.competence-list details { border-bottom: 1px solid rgba(255,255,255,.35); }
.competence-list summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; }
.competence-list summary::-webkit-details-marker { display: none; }
.competence-list summary span { color: var(--yellow); font-size: 1.25rem; font-weight: 800; }
.competence-list summary small { color: rgba(255,255,255,.72); }
.competence-list details p { max-width: 700px; margin: 0 0 1rem; }
.prompt { color: var(--navy); font-weight: 800; }
.competence-list .prompt { color: var(--yellow-soft); }
.fine-print { margin-top: 2.5rem; font-size: .8rem; color: var(--muted); }

.exercise-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 1rem; }
.exercise-card { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.exercise-card.featured { background: var(--yellow-soft); border-color: var(--yellow); }
.tag { margin: 0 0 1.5rem; color: var(--muted); font-size: .73rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.exercise-card ol, .exercise-card ul { padding-left: 1.25rem; }
.exercise-card li { margin-bottom: .6rem; }
.safety, .use { margin: 1.2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(7,53,70,.2); font-size: .85rem; }
.dialog-tool { display: grid; grid-template-columns: 1.4fr .6fr; gap: 2rem; margin-top: 1.2rem; padding: 2rem; border-radius: var(--radius); background: var(--navy); color: white; }
.dialog-tool h3 { font-size: 1.8rem; }
.dialog-sequence { display: grid; grid-template-columns: repeat(2, 1fr); gap: .65rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.dialog-sequence li { padding: .85rem; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; }
.dialog-sequence strong, .dialog-sequence span { display: block; }
.dialog-sequence strong { color: var(--yellow); }
.dialog-sequence span { font-size: .85rem; }
.dialog-principle { margin: 1.2rem 0 0; color: var(--yellow-soft); }
.timer { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 1.5rem; border-radius: 18px; background: rgba(255,255,255,.09); text-align: center; }
.timer .eyebrow { color: white; }
#timer-output { display: block; margin: .2rem 0 1rem; color: var(--yellow); font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.timer-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.timer-status { margin: 1rem 0 0; font-size: .8rem; }
.consent-note { margin: 1.2rem 0 0; padding: 1rem 1.2rem; border-left: 6px solid var(--yellow); background: white; box-shadow: var(--shadow); }

.steps-section { padding-top: 3rem; }
.relationship-definition { max-width: 940px; margin: -1rem 0 2rem; padding: 1.4rem 1.6rem; border-left: 7px solid var(--navy); background: white; box-shadow: var(--shadow); }
.relationship-definition p:last-child { margin-bottom: 0; }
.paradigm-shift { display: grid; grid-template-columns: .75fr 1.25fr; gap: 2rem; margin-bottom: 2rem; padding: 2rem; border-radius: var(--radius); background: var(--yellow); }
.paradigm-shift ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin: 0; padding: 0; list-style: none; }
.paradigm-shift li { padding: .7rem .8rem; background: rgba(255,255,255,.72); }
.paradigm-shift span, .paradigm-shift strong { display: block; }
.paradigm-shift span { color: var(--muted); font-size: .75rem; }
.paradigm-shift strong::before { content: "→ "; color: var(--navy); }
.four-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--navy); border: 1px solid var(--navy); }
.four-steps article { padding: 1.4rem; background: var(--paper); }
.four-steps article > span { display: grid; width: 42px; height: 42px; margin-bottom: 1rem; place-items: center; border-radius: 50%; background: var(--yellow); color: #111; font-weight: 900; }
.four-steps h3 { color: var(--navy); }
.four-steps .prompt { margin-bottom: 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .84rem; }
.model-note { margin: 1rem 0 3rem; color: var(--muted); font-size: .8rem; }
.case-study { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.case-intro { padding: 2rem; background: var(--yellow); }
.case-flow { padding: 2rem; background: white; }
blockquote { margin: 1.5rem 0 0; padding: 1rem 1.2rem; border-left: 5px solid var(--yellow); background: rgba(255,202,5,.13); font-weight: 700; }
.boundary-callout { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; margin-top: 1.2rem; padding: 2rem; border: 2px solid var(--navy); border-radius: var(--radius); background: white; }
.boundary-icon { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 50%; background: var(--navy); color: var(--yellow); font-size: 2rem; font-weight: 900; }

.barriers { padding-top: 3rem; }
.barrier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.barrier-grid div { padding: 1.3rem; border-top: 7px solid var(--yellow); background: white; box-shadow: var(--shadow); }
.barrier-grid p { margin-bottom: 0; color: var(--muted); }
.barrier-question { max-width: 900px; margin: 2.5rem auto 0; font-size: 1.25rem; text-align: center; }

.transfer-section { width: 100%; max-width: none; padding-inline: max(1rem, calc((100vw - var(--max)) / 2)); background: var(--navy-deep); color: white; }
.transfer-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; }
.transfer-lead { font-size: 1.2rem; }
.transfer-section label { display: block; margin: 1.3rem 0 .5rem; color: var(--yellow); font-weight: 800; }
.transfer-section textarea { width: 100%; padding: 1rem; border: 2px solid transparent; border-radius: 12px; resize: vertical; color: var(--ink); }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: .8rem; }
.text-button { border: 0; background: transparent; color: white; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.save-status { font-size: .78rem; color: rgba(255,255,255,.72); }
.idea-list { margin: 0; padding: 1.5rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--radius); list-style: none; }
.idea-list li { position: relative; padding: .7rem 0 .7rem 1.8rem; border-bottom: 1px solid rgba(255,255,255,.17); }
.idea-list li:last-child { border-bottom: 0; }
.idea-list li::before { content: "→"; position: absolute; left: 0; color: var(--yellow); font-weight: 900; }

.contact-section { padding-block: 4rem; }
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--radius); background: var(--yellow); }
.contact-card h2 { margin-bottom: 1rem; color: var(--navy); }
.contact-role { margin-bottom: 0; font-size: 1.12rem; }
.contact-action { padding: 1.5rem; border-radius: 18px; background: rgba(255,255,255,.72); }
.contact-action p { margin-top: 0; }
.contact-action .button { max-width: 100%; overflow-wrap: anywhere; text-align: center; }

.sources { padding-bottom: 4rem; }
.source-intro { max-width: 900px; margin: -1rem 0 2rem; padding: 1.2rem 1.4rem; border-left: 7px solid var(--yellow); background: white; }
.source-intro p { margin: 0; }
.source-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.source-columns > section { padding: 1.5rem; border-top: 8px solid var(--navy); background: white; }
.source-columns > section:last-child { border-color: var(--yellow); }
.source-type { color: var(--navy); font-size: .73rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.source-type.practice { color: #6d5700; }
.source-list { padding-left: 1.2rem; }
.source-list li { margin-bottom: 1rem; font-size: .88rem; }
.source-limit { margin: 1.4rem 0 0; padding: 1rem; background: var(--yellow-soft); font-size: .82rem; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem max(1rem, calc((100vw - var(--max)) / 2)); background: var(--yellow); color: #111; }
footer div { display: flex; align-items: center; gap: 1rem; }
footer img { width: 56px; height: 56px; object-fit: contain; }
footer p { margin: 0; }
footer a { color: #111; font-weight: 800; }

@media (max-width: 900px) {
  body { font-size: 17px; }
  .section-shell { padding-block: 4.5rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 4rem; }
  .hero-mark { position: absolute; top: 2rem; right: 0; width: 150px; opacity: .22; }
  .hero-mark span { font-size: 2.6rem; }
  .hero-copy { padding-right: 1rem; }
  .glass-layout, .four-steps, .barrier-grid { grid-template-columns: repeat(2, 1fr); }
  .competence-layout, .dialog-tool, .case-study, .transfer-layout, .source-columns, .paradigm-shift, .contact-card { grid-template-columns: 1fr; }
  .pentagram-figure img { max-height: 380px; }
  .exercise-grid { grid-template-columns: 1fr 1fr; }
  .exercise-card.featured { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .site-header { min-height: 64px; }
  .brand span { display: none; }
  .brand img { width: 42px; height: 42px; }
  .menu-button { display: flex; }
  nav { position: absolute; inset: 64px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { padding: .8rem; border-bottom: 1px solid var(--line); }
  .menu-button[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-button[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  h1 { font-size: clamp(3rem, 16vw, 5.4rem); }
  .hero-note { font-size: .9rem; }
  .section-heading { gap: .8rem; margin-bottom: 2rem; }
  .section-number { min-width: 26px; }
  .glass-layout, .four-steps, .barrier-grid, .exercise-grid, .dialog-sequence, .paradigm-shift ul { grid-template-columns: 1fr; }
  .four-steps { gap: 1px; }
  .exercise-card.featured { grid-column: auto; }
  .dialog-tool, .case-intro, .case-flow, .boundary-callout, .contact-action { padding: 1.3rem; }
  .boundary-callout { grid-template-columns: 1fr; }
  .timer { padding: 1rem; }
  footer { align-items: flex-end; }
}

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

@media print {
  @page { margin: 1.4cm; }
  body { background: white; color: #111; font-size: 10pt; }
  .site-header, .hero-actions, .timer, .save-row, footer { display: none !important; }
  .section-shell, .dark-section, .transfer-section { width: 100%; padding: 1cm 0; background: white !important; color: #111 !important; }
  .hero { min-height: auto; display: block; padding-top: 0; }
  .hero-mark { display: none; }
  h1 { font-size: 32pt; }
  h2 { font-size: 22pt; }
  h3 { font-size: 13pt; }
  .eyebrow, .inverse .eyebrow, .inverse .section-number, .inverse-text, .competence-list summary span, .competence-list .prompt { color: #111 !important; }
  .hero-note, .exercise-card, .source-columns > section, .case-study, .barrier-grid div { box-shadow: none; }
  .competence-layout { grid-template-columns: 1fr 1.6fr; }
  .pentagram-figure img { max-height: 10cm; }
  .competence-list details { border-color: #aaa; }
  .competence-list details[open] p, .competence-list details p { display: block; }
  .glass-layout, .exercise-grid, .four-steps, .barrier-grid { grid-template-columns: repeat(2, 1fr); }
  .dialog-tool, .case-study, .transfer-layout, .source-columns { grid-template-columns: 1fr 1fr; }
  .dialog-tool, .transfer-section { color: #111; border: 1px solid #777; }
  .transfer-section textarea { border: 1px solid #777; min-height: 2.5cm; }
  a { color: #111; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
  article, section, .source-columns > section { break-inside: avoid; }
}
