/* Homemade Science with Bruce Yeany: v2 "professional resource" theme */
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #14202e;          /* deep navy text */
  --ink-2: #4a5666;
  --ink-3: #5f6977;          /* 5.1:1 on paper (was #7a8494, too faint for small text) */
  --navy: #0f2236;
  --navy-2: #1b3550;
  --paper: #f7f5f0;        /* warm off-white */
  --white: #ffffff;
  --line: #e3dfd6;
  --line-2: #d3cdc0;
  --brass: #b9873a;        /* accent */
  --brass-2: #8a6327;        /* text-safe brass: 5.4:1 on white, 4.5:1 on brass-soft */
  --brass-soft: #f4ead8;
  --teal: #1f6f6b;
  --teal-soft: #e3f0ee;
  --rose-soft: #f8e9e2;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 34, 54, .05), 0 8px 24px rgba(15, 34, 54, .07);
  --max: 1200px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--brass-2); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.15; margin: 0 0 .45em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.eyebrow { font: 600 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 14px; display: block; }
.lead { font-size: 1.18rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--navy); color: #dfe6ee; }
.section.dark h2, .section.dark h3 { color: #fff; }
/* light cards inside dark bands keep navy headings (white-on-white was invisible) */
.section.dark .card h3, .section.dark .card h4, .section.dark .panel:not(.dark) h3, .section.dark .door h3 { color: var(--navy); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head p { margin: 0; }

/* header */
.site-head { background: rgba(247, 245, 240, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { font: 600 1.18rem/1.05 var(--serif); display: block; }
.brand small { font: 500 .72rem/1.2 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; gap: 2px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font: 500 .93rem/1 var(--sans); padding: 10px 12px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: var(--line); color: var(--navy); }
.nav a[aria-current] { color: var(--brass-2); }
.nav .cta { background: var(--navy); color: #fff; margin-left: 8px; padding: 11px 16px; }
.nav-group { position: relative; }
.nav-toggle { white-space: nowrap; background: none; border: 0; cursor: pointer; color: var(--ink); font: 500 .93rem/1 var(--sans); padding: 10px 12px; border-radius: 6px; display: inline-flex; align-items: center; gap: 6px; }
.nav-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--line); color: var(--navy); }
.nav-group.is-current > .nav-toggle { color: var(--brass-2); }
.nav-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; z-index: 60; }
.nav-toggle[aria-expanded="true"] + .nav-menu { display: block; }
.nav-menu a { display: block; padding: 11px 12px; }
.nav .cta:hover { background: var(--navy-2); color: #fff; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 6px; padding: 8px 12px; font: 600 .9rem var(--sans); color: var(--navy); cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font: 600 .97rem/1 var(--sans); padding: 15px 22px; border-radius: 6px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-brass { background: var(--brass-2); color: #fff; }
.btn-brass:hover { background: #6f4f1e; color: #fff; }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--navy); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.arrow::after { content: "\2192"; }

/* hero */
.hero { padding: 72px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brass-2); }
.hero-media { position: relative; }
.hero-media img { border-radius: 14px; aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.hero-media .caption { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(15, 34, 54, .82); color: #fff; padding: 12px 16px; border-radius: 8px; font-size: .9rem; backdrop-filter: blur(6px); }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust div { padding: 26px 24px; border-right: 1px solid var(--line); }
.trust div:last-child { border-right: 0; }
.trust b { display: block; font: 600 2rem/1 var(--serif); color: var(--navy); }
.trust span { font-size: .88rem; color: var(--ink-2); }

/* home (pass 2) */
.hero-note { margin: 16px 0 0; }
h1, h2 { text-wrap: balance; }
.proof { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { padding: 24px 22px; border-right: 1px solid var(--line); }
.proof .wrap > div:first-child { padding-left: 0; }
.proof .wrap > div:last-child { border-right: 0; }
.proof b { display: block; font: 600 1.9rem/1 var(--serif); color: var(--navy); margin-bottom: 6px; }
.proof span { font-size: .88rem; color: var(--ink-2); }
.wb-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.wb-photo { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.wb-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.wb-label { position: absolute; left: 16px; bottom: 16px; background: rgba(15, 34, 54, .85); color: #fff; font: 600 .82rem/1 var(--sans); letter-spacing: .04em; padding: 9px 12px; border-radius: 6px; }
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.route { display: flex; gap: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: inherit; transition: border-color .15s; }
.route:hover { border-color: var(--brass); color: inherit; }
.route .ico { flex: 0 0 48px; height: 48px; border-radius: 10px; background: var(--brass-soft); color: var(--brass-2); display: grid; place-items: center; }
.route .ico svg { width: 26px; height: 26px; }
.route p { color: var(--ink-2); margin: 0 0 14px; }
.route .go, .door .go { font: 600 .92rem var(--sans); color: var(--teal); }
.meet { grid-template-columns: .8fr 1.2fr; }
.split.meet img { aspect-ratio: 1; border-radius: 50%; max-width: 340px; justify-self: center; box-shadow: none; }
.section.dark .meet p { color: #dfe6ee; }
.inquiry > div:first-child { flex: 1 1 460px; }
.inquiry { display: flex; justify-content: space-between; align-items: center; gap: 24px 40px; flex-wrap: wrap; border-top: 2px solid var(--navy); padding-top: 34px; }

/* resource templates (pass 2) */
.type-label { display: inline-block; font: 600 .74rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); background: var(--brass-soft); border: 1px solid #ead7b5; padding: 7px 10px; border-radius: 6px; margin: 0 12px 14px 0; }
.type-label + .eyebrow { display: inline-block; }
.provenance { font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--brass); padding-left: 12px; margin: 14px 0 0; max-width: 40em; }
.provenance.untested { border-color: #b4541f; background: var(--rose-soft); padding: 10px 14px; border-radius: 0 6px 6px 0; }
.subtitle { font: 400 italic 1.35rem/1.35 var(--serif); color: var(--ink-2); margin: -4px 0 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .9rem; }
.toc b { font: 600 .74rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin-right: 8px; }
.toc a { padding: 6px 10px; border-radius: 6px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.toc a:hover { border-color: var(--brass); color: var(--navy); }
.lib-foot { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }

/* home: book band */
.book-band { grid-template-columns: .7fr 1.3fr; }
.book-cover { justify-self: center; display: block; max-width: 330px; transform: rotate(-2deg); transition: transform .2s; }
.book-cover:hover { transform: rotate(0); }
.split .book-cover img { width: 100%; aspect-ratio: 8.5 / 11; object-fit: contain; border-radius: 3px 8px 8px 3px; box-shadow: -6px 0 0 #0b1a2a, 0 18px 40px rgba(0, 0, 0, .5); }
.section.dark .book-band p { color: #dfe6ee; }
@media (max-width: 900px) { .book-band { grid-template-columns: 1fr; } .book-cover { max-width: 240px; } }

/* audience doors */
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.door { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: border-color .15s, transform .15s, box-shadow .15s; }
.door:hover { border-color: var(--brass); transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.door .ico { width: 44px; height: 44px; border-radius: 10px; background: var(--brass-soft); display: grid; place-items: center; margin-bottom: 18px; color: var(--brass-2); }
.door .ico svg { width: 24px; height: 24px; }
.door h3 { margin-bottom: 8px; }
.door p { color: var(--ink-2); font-size: .96rem; flex: 1; }
.door .go { font: 600 .9rem var(--sans); color: var(--teal); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.card img { aspect-ratio: 3/2; object-fit: cover; width: 100%; background: var(--line); }
.card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .kicker { font: 600 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brass-2); }
.card h3 { margin: 4px 0 2px; font-size: 1.22rem; }
.card p { font-size: .94rem; color: var(--ink-2); margin: 0; }
.card .meta { margin-top: auto; padding-top: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.meta-line { font: 500 .84rem/1.4 var(--sans); color: var(--ink-2); flex: 1 1 auto; }
.tag { font: 500 .76rem/1 var(--sans); padding: 6px 9px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.tag.teal { background: var(--teal-soft); border-color: #c5e0dc; color: var(--teal); }
.tag.brass { background: var(--brass-soft); border-color: #ead7b5; color: var(--brass-2); }

/* library filters */
.toolbar { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 0 0 26px; padding: 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.toolbar input[type=search] { flex: 1 1 240px; font: 500 1rem var(--sans); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); color: var(--ink); }
.toolbar select { font: 500 .95rem var(--sans); padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper); color: var(--ink); }
.count { font-size: .9rem; color: var(--ink-2); margin: 0 0 16px; }
.empty { display: none; padding: 40px; text-align: center; background: var(--white); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--teal); text-decoration: underline; cursor: pointer; }

/* feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split img { border-radius: 12px; box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--teal-soft); box-shadow: inset 0 0 0 5px var(--teal); }
.dark .checks li::before { background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 5px var(--brass); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel.brass { background: var(--brass-soft); border-color: #ead7b5; }
.panel.teal { background: var(--teal-soft); border-color: #c5e0dc; }
.coming { display: inline-block; font: 600 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brass-2); background: var(--brass-soft); border: 1px solid #ead7b5; padding: 6px 9px; border-radius: 999px; margin-bottom: 12px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.dark .feature { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.dark .feature p { color: #c6d1dd; }
.feature h3 { font-size: 1.15rem; }
.feature p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.steps-list { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-list div { counter-increment: s; position: relative; padding-top: 52px; }
.steps-list div::before { content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; font: 600 2rem/1 var(--serif); color: var(--brass); }
.quote-band { font: 400 italic clamp(1.4rem, 2.6vw, 2rem)/1.35 var(--serif); color: #fff; max-width: 30em; }
.quote-band + p { color: var(--brass); font-weight: 600; margin-top: 14px; }
table.data { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .93rem; }
table.data th, table.data td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--paper); font-weight: 600; color: var(--navy); }
table.data code, .code { font: 600 .82rem var(--sans); background: var(--teal-soft); color: var(--teal); padding: 3px 7px; border-radius: 5px; white-space: nowrap; }

/* forms */
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font: 600 .88rem var(--sans); color: var(--navy); display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea { width: 100%; font: 400 1rem var(--sans); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--white); color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.hp { display: none; }

/* footer */
.site-foot { background: var(--navy); color: #b9c4d0; padding: 64px 0 36px; font-size: .92rem; }
.site-foot a { color: #e3e9ef; text-decoration: none; }
.site-foot a:hover { color: var(--brass); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }

/* page head (inner pages) */
.page-head { padding: 64px 0 46px; border-bottom: 1px solid var(--line); background: var(--white); }
.page-head.dark { background: var(--navy); border: 0; }
.page-head.dark h1 { color: #fff; }
.page-head.dark .lead { color: #c6d1dd; }
.crumb { font-size: .88rem; color: var(--ink-3); margin-bottom: 18px; }
.crumb a { color: var(--ink-2); }
.dark .crumb, .dark .crumb a { color: #9fb0c2; }

/* experiment page */
.exp-head { padding: 46px 0 30px; }
.exp-head .grid2 { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: start; }
.facts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.facts div { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.facts div:nth-child(2n) { border-right: 0; }
.facts small { display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.facts b { font-weight: 600; font-size: .98rem; }
.facts .wide { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
.drops { letter-spacing: 3px; color: var(--teal); }
.drops i { color: var(--line-2); font-style: normal; }
.tabs { position: sticky; top: 72px; z-index: 20; background: rgba(247, 245, 240, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.tabs .wrap { display: flex; gap: 4px; overflow-x: auto; }
.tabs a { white-space: nowrap; padding: 15px 14px; font: 600 .9rem var(--sans); color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--navy); border-color: var(--brass); }
.video { position: relative; border-radius: 12px; overflow: hidden; background: #0b1520; box-shadow: var(--shadow); aspect-ratio: 16/9; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.video button { position: absolute; inset: 0; width: 100%; border: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.45)); cursor: pointer; display: grid; place-items: center; }
.video button span { background: #fff; color: var(--navy); border-radius: 999px; padding: 14px 22px 14px 18px; font: 600 .97rem/1 var(--sans); display: inline-flex; gap: 10px; align-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.35); }
.video button:hover span { background: var(--brass-2); color: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.quote { border-left: 3px solid var(--brass); padding: 6px 0 6px 20px; margin: 26px 0 0; }
.quote p { font: 400 italic 1.2rem/1.45 var(--serif); color: var(--navy); margin-bottom: 8px; }
.quote footer { font-size: .85rem; color: var(--ink-2); }
.safety { background: var(--rose-soft); border: 1px solid #ecc9b9; border-radius: 8px; padding: 14px 18px; margin: 20px 0 0; font-size: .95rem; }
.safety b { color: #9b3f1d; }
.exp-section { padding: 60px 0; border-top: 1px solid var(--line); scroll-margin-top: 130px; }
.build { display: grid; grid-template-columns: 320px 1fr; gap: 44px; align-items: start; }
.needs { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; position: sticky; top: 140px; }
.needs ul { list-style: none; margin: 0; padding: 0; }
.needs li { margin: 0 0 11px; font-size: .95rem; }
.needs label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; line-height: 1.4; }
.needs input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.needs input:checked + span { text-decoration: line-through; color: var(--ink-3); }
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 0 18px; padding: 0 0 30px; position: relative; }
ol.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--navy); color: var(--navy); font: 600 1.05rem/37px var(--serif); text-align: center; background: var(--paper); z-index: 1; }
ol.steps li::after { content: ""; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: var(--line-2); }
ol.steps li:last-child::after { display: none; }
ol.steps li > div { padding-top: 6px; }
ol.steps li p { margin: 0 0 12px; }
ol.steps li img { border-radius: 8px; width: 100%; max-width: 560px; aspect-ratio: 16/9; object-fit: cover; border: 1px solid var(--line); }
b.gu { color: #9b3f1d; font-weight: 700; }
.notice { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.notice div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: .97rem; }
.notice div:first-child { background: var(--brass-soft); border-color: #ead7b5; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.challenges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.challenges div { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--brass); border-radius: var(--radius); padding: 20px 22px; }
.challenges h3 { font-size: 1.08rem; }
.challenges p { font-size: .94rem; color: var(--ink-2); margin: 0; }
.vocab { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.vocab div { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.vocab b { display: block; font-family: var(--serif); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.vocab span { font-size: .92rem; color: var(--ink-2); }
.resources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.res { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
a.res:hover { border-color: var(--brass); box-shadow: var(--shadow); color: inherit; }
.res small { display: block; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.res b { display: block; font: 600 1.1rem/1.25 var(--serif); color: var(--navy); margin-bottom: 6px; }
.res span { font-size: .9rem; color: var(--ink-2); }
.res.soon { background: transparent; border-style: dashed; }
.res.soon small { color: var(--brass-2); }
.more-videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.more-videos .video button span { font-size: .88rem; padding: 10px 16px 10px 14px; }
.std-list li { margin-bottom: 8px; }

/* lesson plan */
.plan-grid { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.plan-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.flow { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.flow div { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.flow div:last-child { border-bottom: 0; }
.flow b { background: var(--paper); padding: 16px; font: 600 1rem var(--serif); color: var(--navy); border-right: 1px solid var(--line); }
.flow b small { display: block; font: 500 .8rem var(--sans); color: var(--ink-3); margin-top: 4px; }
.flow p { padding: 16px 18px; margin: 0; font-size: .96rem; }
.misc { display: grid; gap: 12px; }
.misc div { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); font-size: .94rem; }
.misc span { padding: 12px 14px; }
.misc span:first-child { background: var(--rose-soft); }
.misc .lbl { display: block; font: 700 .74rem/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; color: #9b3f1d; }
.misc span:last-child .lbl { color: var(--teal); }
.misc.trouble span:first-child { background: var(--paper); font-weight: 600; }
.misc.trouble span:first-child .lbl { color: var(--ink-2); }
ul.clean { padding-left: 20px; margin: 0 0 1em; }
ul.clean li { margin-bottom: 7px; }

/* worksheet page */
.sheet { margin: 26px 0 44px; }
.sheet-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.sheet-tools b { font: 600 1.2rem/1.1 var(--serif); color: var(--navy); }
.paper { background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: var(--shadow); padding: 38px 44px; max-width: 820px; color: #222; }
.paper h2 { color: #222; font-size: 1.6rem; margin-bottom: .2em; }
.ws-head { display: flex; justify-content: space-between; gap: 16px; font-size: .95rem; margin-bottom: 14px; flex-wrap: wrap; }
.ws-brand { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: #777; margin-bottom: 6px; }
.ws-intro { color: #444; margin-bottom: 14px; }
.ws-item { margin: 0 0 16px; break-inside: avoid; }
.ws-q { margin: 0 0 6px; }
.ws-draw { border: 1.5px solid #999; border-radius: 8px; }
.ws-draw.large { height: 210px; }
.ws-draw.small { height: 120px; }
.ws-opts { display: flex; gap: 22px; flex-wrap: wrap; padding-left: 20px; }
.ws-line { border-bottom: 1.5px solid #999; height: 30px; }
.ws-table { width: 100%; border-collapse: collapse; }
.ws-table th, .ws-table td { border: 1.5px solid #999; padding: 6px 8px; text-align: left; font-size: .9rem; height: 32px; }
.ws-table th { background: #f2f2f2; }
.answers li { margin-bottom: 6px; }

/* questionnaire */
.qn-section { margin: 0 0 34px; }
.qn { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px; }
.qn.done { border-color: #c5e0dc; }
.qn > p { font-weight: 600; margin: 0 0 12px; color: var(--navy); }
fieldset.qn { min-width: 0; margin-left: 0; margin-right: 0; }
.qn .opts label { max-width: 100%; }
.qn > legend { float: left; width: 100%; padding: 0; font-weight: 600; margin: 0 0 12px; color: var(--navy); }
fieldset.qn > :not(legend) { clear: both; }
.qn .old { font-size: .88rem; color: var(--ink-2); background: var(--brass-soft); border-radius: 6px; padding: 8px 12px; margin: 0 0 10px; }
.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; }
.save-state { font-size: .88rem; color: #c6d1dd; }
.save-state.bad { color: #fff; background: #9b2c2c; padding: 6px 10px; border-radius: 6px; }
.qn .opts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qn .opts label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 14px; cursor: pointer; font-size: .95rem; background: var(--paper); }
.qn .opts input { accent-color: var(--teal); width: 17px; height: 17px; margin: 0; }
.qn .opts label:has(input:checked) { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); font-weight: 600; }
.qn textarea { width: 100%; font: 400 .97rem var(--sans); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; min-height: 46px; resize: vertical; background: #fff; }
.qn-bar { position: sticky; bottom: 0; background: var(--navy); color: #fff; padding: 14px 0; z-index: 40; }
.qn-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.progress { flex: 1 1 200px; height: 8px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; max-width: 340px; }
.progress i { display: block; height: 100%; width: 0; background: var(--brass); transition: width .2s; }

@media (max-width: 1080px) {
  .doors, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .steps-list { grid-template-columns: repeat(2, 1fr); }
  .nav a { padding: 10px 8px; font-size: .88rem; }
}
/* the menu folds into the Menu button below 1060px (8 top-level items no longer fit on one line) */
@media (max-width: 1060px) {
  .menu-btn { display: block; min-height: 44px; padding: 10px 16px; font-size: 1rem; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 10px; font-size: 1rem; min-height: 44px; display: flex; align-items: center; }
  .nav .cta { margin: 8px 0 0; justify-content: center; }
  .nav-toggle { width: 100%; justify-content: space-between; padding: 12px 10px; font-size: 1rem; min-height: 44px; }
  .nav-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 6px 10px; padding: 0 0 0 6px; min-width: 0; background: transparent; }
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
}
@media (max-width: 900px) {
  .hero .wrap, .split, .exp-head .grid2, .build, .two-col, .plan-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
  .grid, .features, .challenges, .resources, .vocab { grid-template-columns: repeat(2, 1fr); }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust div:nth-child(2) { border-right: 0; }
  .trust div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .needs, .plan-side { position: static; }
  .tabs { top: 72px; }
  .wb-feature, .routes, .meet { grid-template-columns: 1fr; gap: 28px; }
  .proof .wrap { grid-template-columns: repeat(2, 1fr); }
  .proof .wrap > div { padding-left: 0; }
  .proof .wrap > div:nth-child(2) { border-right: 0; }
  .proof .wrap > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero { padding: 40px 0 44px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .doors, .grid, .grid.four, .features, .challenges, .resources, .vocab, .notice, .more-videos, .steps-list { grid-template-columns: 1fr; }
  .form .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .flow div { grid-template-columns: 1fr; }
  .flow b { border-right: 0; border-bottom: 1px solid var(--line); }
  .misc div { grid-template-columns: 1fr; }
  .paper { padding: 22px 18px; }
  .brand small { display: none; }
  .foot-grid li { margin-bottom: 0; }
  .foot-grid li a { display: flex; align-items: center; min-height: 44px; }   /* finger-sized footer links */
  table.data { display: block; overflow-x: auto; }
  table.data code { white-space: normal; }
  .route { flex-direction: column; gap: 14px; padding: 22px; }
  .proof b { font-size: 1.6rem; }
  .split.meet img { max-width: 220px; }
  ol.steps li { grid-template-columns: 44px 1fr; gap: 0 12px; }
}

@media print {
  .site-head, .site-foot, .tabs, .video, .no-print, .related { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .exp-section { padding: 18px 0; border: 0; }
  .needs, .plan-side { position: static; }
  .build, .plan-grid { grid-template-columns: 1fr; }
  ol.steps li { break-inside: avoid; }
  ol.steps li img { max-width: 300px; }
  details > *:not(summary) { display: block; }
  a { color: #000; text-decoration: none; }
  body.printing-sheet .sheet { display: none; }
  body.printing-sheet .sheet.print-me { display: block; }
  .sheet { margin: 0; }
  .paper { box-shadow: none; border: 0; padding: 0; max-width: none; font-size: 10.5pt; line-height: 1.35; }
  .paper h2 { font-size: 17pt; }
  .ws-head { margin-bottom: 8px; }
  .ws-intro { margin-bottom: 8px; }
  .ws-item { margin: 0 0 10px; }
  .ws-line { height: 24px; }
  .ws-table th, .ws-table td { height: 24px; padding: 3px 6px; font-size: 9.5pt; }
  .ws-draw.large { height: 2.1in; }
  .ws-draw.small { height: 1.15in; }
  @page { margin: 0.5in; }
}

/* build plan printing / PDF */
.print-brand { display: none; }
@media print {
  .print-brand { display: flex; justify-content: space-between; border-bottom: 2px solid #0f2236; padding-bottom: 6px; margin-bottom: 14px; font: 600 9pt var(--sans); color: #0f2236; }
  .print-brand span:last-child { color: #9a6f2c; }
  .exp-head { padding: 0 0 6px; }
  .exp-head h1 { font-size: 24pt; }
  .exp-head .lead { font-size: 11pt; }
  .exp-head .grid2 { grid-template-columns: 1fr 1fr !important; gap: 18px; }
  .exp-head .grid2 img { max-height: 2.6in; }
  .facts div { padding: 6px 8px; }
  .exp-section { padding: 10px 0; }
  .exp-section h2 { font-size: 16pt; margin-bottom: 6px; }
  .two-col { grid-template-columns: 1fr 1fr !important; gap: 18px; }
  ol.steps li { padding-bottom: 12px; grid-template-columns: 36px 1fr; }
  ol.steps li::before { width: 28px; height: 28px; line-height: 26px; font-size: 10pt; }
  ol.steps li::after { left: 13.5px; top: 30px; }
  ol.steps li img { max-width: 2.8in; max-height: 1.9in; width: auto; }
  .needs { padding: 10px 12px; }
  .needs li { margin-bottom: 4px; font-size: 9.5pt; }
  .misc div { font-size: 9.5pt; }
  .plan-foot { display: block !important; border-top: 1px solid #ccc; margin-top: 16px; padding-top: 6px; font-size: 8.5pt; color: #555; }
}

/* respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .door:hover, .card:hover { transform: none; }
}
