
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
:root {
  --paper: #fff7ea;
  --paper-2: #f7ecd9;
  --card: #fffdf8;
  --ink: #16120f;
  --ink-2: #231d18;
  --muted: #5b5148;
  --line: #e2d3bd;
  --accent: #d63f0a;
  --accent-ink: #a82f05;
  --hot: #ff6a2b;
  --sun: #ffc933;
  --mint: #5be0c0;
  --teal: #0d6e63;
  --banner: #fff4cc;
  --banner-line: #e4cc7a;
  --good: #1d6844;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --sans: "Figtree", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --serif: var(--display);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2vw, 3rem); max-width: 20ch; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 0.8rem; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: 0.5rem 0.8rem; z-index: 50; }
.skip:focus { left: 0.5rem; top: 0.5rem; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; }
.preview-bar, .hazard, .banner { padding: 0.7rem 1rem; font-size: 0.95rem; }
.preview-bar { background: var(--ink); color: var(--paper); text-align: center; font-size: 0.85rem; padding: 0.45rem 1rem; }
.hazard { background: #f8e4d4; border-top: 1px solid #e2b89a; }
.hazard p { font-size: 0.9rem; }
.banner { background: var(--banner); border: 1px solid var(--banner-line); border-radius: 8px; }

/* header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.bar { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: 0.7rem 0; }
.wordmark { color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 0.5rem; }
.wordmark span { color: var(--accent); }
.wordmark svg { width: 34px; height: 34px; flex: none; }
nav { display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 999px; }
.main-nav a:hover { background: var(--paper-2); }
.main-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.main-nav a.nav-cta { background: var(--accent); color: #fff; }
.main-nav a.nav-cta:hover { background: var(--accent-ink); }
.inline { display: inline; }
.fcol { display: block; }
.sub-hero .eyebrow { color: var(--mint); }
.band .eyebrow { color: var(--accent-ink); }
.automation .eyebrow { color: var(--mint); }
.community .eyebrow { color: var(--ink); }
.band-cta .eyebrow { color: var(--ink); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 0.35rem 0.9rem; background: var(--card); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--paper); }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 0.6rem 1rem 1rem; }
.menu-panel nav { flex-direction: column; align-items: stretch; gap: 0.25rem; }
.menu-panel a, .menu-panel button { display: block; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.1rem; padding: 0.7rem 0.8rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-align: left; width: 100%; }
.menu-panel a.nav-cta { background: var(--accent); color: #fff; border-color: var(--accent); }

.page { padding: 1.5rem 0 2.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.card, form.card, .stack { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem; }
a.card { color: inherit; text-decoration: none; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
a.card:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 4px 4px 0 var(--ink); }
.badge, .domain { display: inline-block; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.5rem; margin-right: 0.35rem; }
.badge { background: #ffd9c4; border-color: #e8b295; }
label { display: block; font-weight: 600; margin: 0.7rem 0 0.25rem; }
input, textarea, select { width: 100%; font: inherit; padding: 0.55rem 0.65rem; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 7rem; }
.check { display: flex; gap: 0.55rem; align-items: flex-start; font-weight: 600; margin: 0.8rem 0; }
.check input { width: auto; margin-top: 0.25rem; }
button, .button { display: inline-block; background: var(--accent); color: #fff; border: 2px solid var(--accent); border-radius: 999px; padding: 0.6rem 1.15rem; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease; }
button:hover, .button:hover { transform: translateY(-2px); box-shadow: 3px 3px 0 var(--ink); }
button.quiet, a.quiet { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.error { color: #8d1d1d; font-weight: 700; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 36rem; border-collapse: collapse; background: var(--card); }
th, td { border-bottom: 1px solid var(--line); text-align: left; padding: 0.45rem; vertical-align: top; }
.photos { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.photos figure { margin: 0; max-width: 280px; }
.photos img { background: white; border: 1px solid var(--line); border-radius: 8px; }
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.35rem 0; }
.search { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: end; }
.search label { flex-basis: 100%; margin: 0; }
.search input { flex: 1; min-width: 12rem; }
.bom-edit { display: grid; grid-template-columns: 1.4fr 0.4fr 1fr 1.3fr; gap: 0.4rem; margin-bottom: 0.4rem; }

/* footer */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .hazard { background: #2b2018; color: #f1dfc9; border-top: 0; }
.site-footer a { color: var(--sun); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1.5rem; padding: 2.2rem 0 1.2rem; }
.footer-grid h2 { font-size: 0.8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: #cdbba3; margin-bottom: 0.6rem; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.site-footer .wordmark { color: var(--paper); }
.site-footer .wordmark span { color: var(--hot); }
.footer-note { color: #cdbba3; font-size: 0.9rem; margin-top: 0.6rem; }
.footer-bottom { border-top: 1px solid #3a2f26; padding: 1rem 0 1.6rem; color: #cdbba3; font-size: 0.9rem; }

/* landing */
.band { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.7rem; display: inline-block; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); max-width: 40rem; }
.hero { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,247,234,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,247,234,0.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000 30%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 2.5rem; align-items: center; padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(2.4rem, 5vw, 3.5rem); }
.hero h1 { font-size: clamp(2.7rem, 1.6rem + 4.6vw, 5rem); max-width: 12ch; line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 .hl-c { color: var(--sun); }
.hero h1 .hl-a { color: var(--mint); }
.hero .eyebrow, .sub-hero .eyebrow { background: rgba(255,247,234,0.1); border: 1px solid rgba(255,247,234,0.25); border-radius: 999px; padding: 0.3rem 0.8rem; color: var(--paper); }
.hero .eyebrow b, .sub-hero .eyebrow b { color: var(--sun); font-weight: 500; }
.hero .eyebrow u { color: #bfd8ff; text-decoration: none; }
.hero .eyebrow i { color: var(--mint); font-style: normal; }
.hero .lede { color: #f1e4cf; margin: 1.1rem 0 1.6rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-big { font-size: 1.1rem; padding: 0.85rem 1.5rem; }
.button.sun { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.button.sun:hover { box-shadow: 4px 4px 0 var(--hot); }
.button.ghost-light { background: transparent; border-color: var(--mint); color: var(--mint); }
.button.ghost-light:hover { background: var(--mint); color: var(--ink); box-shadow: 4px 4px 0 var(--sun); }
.hero-cta-2 { margin-top: 0.8rem; }
.button.ghost-paper { background: transparent; border-color: var(--paper); color: var(--paper); }
.button.ghost-paper:hover { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--sun); }
.hero-fine { color: #cdbba3; font-size: 0.92rem; margin: 1.1rem 0 0; }
.hero-art { position: relative; aspect-ratio: 520 / 440; width: 100%; max-width: 520px; justify-self: center; }
.hero-art svg { width: 100%; height: 100%; display: block; }
.float { position: absolute; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 0.4rem 0.7rem; font-family: var(--mono); font-size: 0.78rem; box-shadow: 3px 3px 0 var(--hot); line-height: 1.35; }
.float b { font-weight: 500; color: var(--accent-ink); }
.float.f1 { left: 0; top: 4%; animation: bob 5s ease-in-out infinite; }
.float.f2 { right: 0; bottom: 6%; box-shadow: 3px 3px 0 var(--mint); animation: bob 6s ease-in-out -2s infinite; }
.float.f3 { right: 2%; top: 36%; box-shadow: 3px 3px 0 var(--sun); animation: bob 7s ease-in-out -4s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.flow-line { stroke-dasharray: 6 8; animation: flow 1.2s linear infinite; }
.bot { transform-box: fill-box; transform-origin: center bottom; animation: wiggle 4s ease-in-out infinite; }
.bot.b2 { animation-delay: -1.3s; } .bot.b3 { animation-delay: -2.6s; }
.eye { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
.hub-spin { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.domain-strip { position: relative; border-top: 1px solid rgba(255,247,234,0.18); padding: 0.9rem 0 1.1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.domain-strip span.lbl { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cdbba3; margin-right: 0.4rem; }
.chip { border: 1px solid rgba(255,247,234,0.35); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: 0.9rem; color: var(--paper); }

.do-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.do { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none; color: var(--ink); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.do:hover { transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--ink); }
.do .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 2px solid var(--ink); }
.do .ic svg { width: 30px; height: 30px; }
.do:nth-child(1) .ic { background: var(--sun); } .do:nth-child(2) .ic { background: var(--hot); } .do:nth-child(3) .ic { background: var(--mint); } .do:nth-child(4) .ic { background: #bfd8ff; }
.do h3 { margin: 0.3rem 0 0; }
.do p { color: var(--muted); margin: 0; flex: 1; }
.do .go { font-weight: 700; color: var(--accent-ink); }
.tag { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; border: 1px solid var(--ink); border-radius: 999px; padding: 0.05rem 0.5rem; align-self: flex-start; background: var(--paper-2); }
.rim { font-family: var(--mono); font-size: 0.8rem; background: var(--ink); color: var(--sun); border-radius: 6px; padding: 0.1rem 0.45rem; white-space: nowrap; }

.community { background: var(--sun); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.2rem; align-items: start; }
.rules { list-style: none; margin: 1.2rem 0; padding: 0; display: grid; gap: 0.7rem; }
.rules li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.7rem; align-items: start; }
.rules .n { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: var(--sun); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.community .grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.community .card { border: 2px solid var(--ink); }
.community .search input { background: #fff; }
.community .muted { color: #4a3b12; }

.automation { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.automation .muted { color: #cdbba3; }
.automation h2 .hl { color: var(--mint); }
.tabs { margin-top: 1.4rem; }
.tabs input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tab-labels { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tab-labels label { margin: 0; cursor: pointer; border: 2px solid var(--mint); color: var(--mint); border-radius: 999px; padding: 0.4rem 1rem; font-weight: 700; }
#r1:checked ~ .tab-labels label[for=r1], #r2:checked ~ .tab-labels label[for=r2], #r3:checked ~ .tab-labels label[for=r3] { background: var(--mint); color: var(--ink); }
#r1:focus-visible ~ .tab-labels label[for=r1], #r2:focus-visible ~ .tab-labels label[for=r2], #r3:focus-visible ~ .tab-labels label[for=r3] { outline: 3px solid var(--sun); outline-offset: 2px; }
.recipe { display: none; }
#r1:checked ~ .recipes .rc1, #r2:checked ~ .recipes .rc2, #r3:checked ~ .recipes .rc3 { display: block; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.9rem; position: relative; }
.node { background: #211b16; border: 2px solid #4a3d31; border-radius: 16px; padding: 1rem 1.1rem; position: relative; }
.node:not(:last-child)::after { content: ""; position: absolute; right: -1.9rem; top: 50%; width: 1.9rem; border-top: 3px dashed var(--mint); animation: dash 1s linear infinite; }
@keyframes dash { to { border-top-color: var(--sun); } }
.node .k { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 0.4rem; }
.node.when { border-color: var(--sun); } .node.when .k { color: var(--sun); }
.node.then { border-color: var(--mint); } .node.then .k { color: var(--mint); }
.node.stop { border-color: var(--hot); } .node.stop .k { color: var(--hot); }
.node ul { margin: 0; padding-left: 1.1rem; }
.node li { margin: 0.2rem 0; }
.recipes { margin-bottom: 1.2rem; }
.find { border: 2px solid var(--ink); border-radius: 18px; background: var(--card); padding: 1.3rem; box-shadow: 6px 6px 0 var(--ink); }
.find h3 { font-size: 1.4rem; }
.cards-row { margin-top: 1.6rem; }
.recipe-title { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-bottom: 0.8rem; }
.recipe-title h3 { margin: 0; }
.automation .tag { background: transparent; color: var(--paper); border-color: var(--paper); }
.learn-btn { background: transparent; border-color: #bfd8ff; color: #bfd8ff; }
.learn-btn:hover { background: #bfd8ff; color: var(--ink); box-shadow: 4px 4px 0 var(--sun); }
.learn { background: #bfd8ff; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.learn .eyebrow, .sponsors .eyebrow { color: var(--ink); }
.seven-teaser { background: var(--paper-2); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.seven-teaser .eyebrow { color: var(--accent-ink); }
.steps7 { margin-top: 1.4rem; }
.step-card { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; position: relative; }
.step-card:not(:last-child)::before { content: ""; position: absolute; left: 1.45rem; top: 3rem; bottom: -1.3rem; border-left: 3px dashed var(--ink); }
.step-card:nth-child(3n+1) .mnum { background: var(--sun); } .step-card:nth-child(3n+2) .mnum { background: var(--mint); } .step-card:nth-child(3n) .mnum { background: var(--hot); }
.step-card .mnum { border: 2px solid var(--ink); border-radius: 50%; width: 3rem; height: 3rem; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; position: relative; z-index: 1; }
.step-card .mcard { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.1rem 1.2rem; }
.step-card p { margin: 0.45rem 0; }
.tag.unlock { background: var(--sun); border: 2px solid var(--ink); }
ul.plain { padding-left: 1.1rem; display: grid; gap: 0.45rem; }
.step-card h3 { font-size: 1.3rem; }
.mini-path { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.mini-path li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.7rem; align-items: center; background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 0.6rem 0.8rem; font-weight: 600; }
.mini-path .n { width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--ink); color: #bfd8ff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 0.95rem; }
.mission { background: var(--paper); padding: clamp(2rem, 5vw, 3.2rem) 0; border-bottom: 2px solid var(--ink); }
.mission .eyebrow { color: var(--accent-ink); }
.mission-text { font-size: clamp(1.4rem, 1.05rem + 1.6vw, 2.2rem); max-width: 34ch; line-height: 1.15; font-weight: 700; border-left: 8px solid var(--sun); padding-left: 1rem; margin: 0; }
.skills { display: none; }
.quiz-js .skills { display: block; }
.quiz-js .skills.row { display: flex; }
.skills-box, .module .skills { margin-top: 0.9rem; border-top: 2px dashed var(--line); padding-top: 0.6rem; }
.mini-h { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); margin: 0.6rem 0 0.3rem; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.tick { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; font-weight: 500; padding: 0.35rem 0.2rem; cursor: pointer; border-radius: 8px; }
.tick:hover { background: var(--paper-2); }
.tick input { width: 1.3rem; height: 1.3rem; flex: none; margin: 0.1rem 0 0; accent-color: var(--teal); }
.tick input:checked + span { text-decoration: line-through; color: var(--muted); }
.milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; border-left: 3px solid var(--mint); padding-left: 0.8rem; }
.milestones .when { font-family: var(--mono); font-size: 0.78rem; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.5rem; margin-right: 0.3rem; white-space: nowrap; }
.proficiency { margin-top: 1.4rem; background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 1.2rem 1.3rem; }
.big-weeks { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); letter-spacing: -0.03em; line-height: 1; margin: 0.3rem 0 0.4rem; }
.weekbar { display: flex; gap: 3px; margin-top: 0.8rem; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--ink); }
.weekbar .seg { flex-basis: 0; min-width: 0; padding: 0.45rem 0.4rem; font-size: 0.75rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.seg0 { background: var(--sun); } .seg1 { background: var(--mint); } .seg2 { background: var(--hot); } .seg3 { background: #bfd8ff; }
.quiz-band { background: var(--paper); }
.quiz { background: var(--card); border: 2px solid var(--ink); border-radius: 20px; padding: 1.2rem; box-shadow: 6px 6px 0 var(--ink); margin-top: 1.2rem; max-width: 46rem; }
.quiz-js .quiz[hidden], .result[hidden] { display: none; }
.qhead { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.qhead p { margin: 0; font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
progress { width: 100%; height: 14px; appearance: none; -webkit-appearance: none; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-2); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--paper-2); }
progress::-webkit-progress-value { background: var(--accent); transition: width 0.25s ease; }
progress::-moz-progress-bar { background: var(--accent); }
.qstep { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.qstep legend { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.65rem); letter-spacing: -0.02em; line-height: 1.15; padding: 0; margin-bottom: 0.4rem; }
.qstep legend:focus { outline: none; }
.opts { display: grid; gap: 0.6rem; margin-top: 0.8rem; }
.opt { display: flex; align-items: center; gap: 0.7rem; margin: 0; padding: 0.8rem 1rem; border: 2px solid var(--ink); border-radius: 14px; background: #fff; cursor: pointer; font-weight: 600; min-height: 3.1rem; transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease; }
.opt:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--ink); }
.opt input { width: 1.25rem; height: 1.25rem; flex: none; accent-color: var(--accent); margin: 0; }
.opt:has(input:checked) { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.qnav { justify-content: space-between; }
.qnav button[hidden] { display: none; }
.result { margin-top: 1.2rem; max-width: 52rem; }
.result-head { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 1.4rem; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--accent); }
.result-head h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); color: var(--sun); outline: none; }
.result-head .lede { color: #f1e4cf; }
.result-head .tag { background: transparent; color: var(--paper); border-color: var(--paper); }
.facts { list-style: none; padding: 0; margin: 0.8rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.facts li { border: 1px solid var(--mint); color: var(--mint); border-radius: 999px; padding: 0.2rem 0.8rem; font-size: 0.95rem; }
.first-project { margin-top: 1.4rem; background: var(--mint); border: 2px solid var(--ink); border-radius: 20px; padding: 1.2rem 1.3rem; }
.first-project h3 { font-size: 1.5rem; }
.first-project .eyebrow { color: var(--ink); }
.first-project .muted { color: #12342e; }
.result h3 { margin-top: 1.6rem; }
.stack { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1rem; }
.stack-item { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; }
.stack-item.mode-3 { opacity: 0.7; }
.stack-item.mode-3 .mnum { background: var(--paper-2); }
.stack-item h4 { font-family: var(--display); font-size: 1.15rem; margin: 0; letter-spacing: -0.02em; }
.slots { list-style: none; padding: 0; margin: 0.5rem 0 0; display: grid; gap: 0.35rem; }
.slot { border: 2px dashed var(--ink); border-radius: 10px; padding: 0.4rem 0.7rem; background: var(--paper); font-size: 0.95rem; }
.actions { margin-top: 1.4rem; }
.fine { font-size: 0.9rem; margin-top: 0.8rem; }
@media print {
  .preview-bar, .site-header, .site-footer, .sub-hero, .quiz, #quiz-intro, .curriculum, .sponsors, .band-cta, .actions, .skip, .banner, noscript { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band { padding: 0; }
  .quiz-band, .band { background: #fff !important; border: 0 !important; }
  .result[hidden] { display: none; }
  .result-head { background: #fff; color: #000; box-shadow: none; border: 2px solid #000; }
  .result-head h2 { color: #000; }
  .result-head .lede { color: #000; }
  .facts li { color: #000; border-color: #000; }
  .first-project { background: #fff; box-shadow: none; break-inside: avoid; }
  .stack-item { break-inside: avoid; }
  .skills { display: none !important; }
  .skills-box { display: block !important; }
  .weekbar .seg { white-space: normal; }
  .proficiency { box-shadow: none; break-inside: avoid; }
  .mission { display: none; }
  .mcard { box-shadow: none; }
  .result::before { content: "Botmechanix tutoring stack (preview)"; display: block; font-weight: 700; margin-bottom: 0.6rem; }
}
.mini-path .more { background: transparent; border-style: dashed; }
.sponsors { background: var(--paper-2); border-top: 2px solid var(--ink); }
.tag.light { background: transparent; color: var(--paper); border-color: var(--paper); }
.path { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.1rem; position: relative; }
.module { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; position: relative; }
.module:not(:last-child)::before, .stack-item:not(:last-child)::before { content: ""; position: absolute; left: 1.45rem; top: 3rem; bottom: -1.3rem; border-left: 3px dashed var(--ink); }
.mnum { width: 3rem; height: 3rem; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; position: relative; z-index: 1; }
.module:nth-child(3n+2) .mnum { background: var(--mint); } .module:nth-child(3n) .mnum { background: var(--hot); }
.mcard { background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 1.1rem 1.2rem; }
.mcard h3 { font-size: 1.3rem; }
.lvl { display: inline-flex; gap: 0.2rem; align-items: center; }
.lvl i { width: 0.7rem; height: 0.7rem; border-radius: 50%; border: 2px solid var(--ink); display: inline-block; }
.lvl i.on { background: var(--ink); }
.mdl { margin: 0.6rem 0 0; display: grid; gap: 0.6rem; }
.mdl dt { font-family: var(--mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-ink); }
.mdl dd { margin: 0.1rem 0 0; }
.band-cta { background: var(--hot); color: var(--ink); border-top: 2px solid var(--ink); }
.band-cta h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); max-width: 18ch; }
.band-cta .button { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.band-cta .button.quiet { background: transparent; color: var(--ink); }
.band-cta .button:hover { box-shadow: 4px 4px 0 var(--sun); }
.sub-hero { background: var(--ink); color: var(--paper); padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.sub-hero h1 { max-width: 16ch; font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); font-weight: 800; }
.sub-hero .lede { color: #f1e4cf; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.mini { border: 2px solid var(--ink); background: var(--card); border-radius: 16px; padding: 1.1rem; }
.mini h3 { margin-bottom: 0.3rem; }
.stack-gap > * + * { margin-top: 1rem; }
.recipe-card { border: 2px solid var(--ink); background: var(--card); border-radius: 18px; padding: 1.2rem; }
.recipe-card .flow .node { background: var(--paper-2); border-color: var(--ink); color: var(--ink); }
.recipe-card .flow .node.when .k { color: #7a5200; } .recipe-card .flow .node.then .k { color: var(--teal); } .recipe-card .flow .node.stop .k { color: var(--accent-ink); }
.recipe-card .flow .node:not(:last-child)::after { border-top-color: var(--ink); }
.recipe-card + .recipe-card { margin-top: 1.2rem; }

@media (max-width: 960px) {
  .do-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero-art { max-width: 380px; }
  .steps3 { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 1.9rem; }
  .node:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -1.9rem; width: 0; height: 1.9rem; border-top: 0; border-left: 3px dashed var(--mint); }
  .recipe-card .flow .node:not(:last-child)::after { border-left-color: var(--ink); }
}
@media (max-width: 720px) {
  .desktop-nav { display: none; }
  .menu { display: block; }
  .site-header .bar { position: relative; }
  .bom-edit { grid-template-columns: 1fr; }
  .table-wrap table { min-width: 0; }
  thead { display: none; }
  tr { display: block; border-bottom: 1px solid var(--line); padding: 0.45rem 0; }
  td { display: block; border: 0; padding: 0.15rem 0; }
  td::before { content: attr(data-label); display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
}
@media (max-width: 560px) {
  .do-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .button { flex: 1 1 100%; text-align: center; }
  .module, .stack-item, .step-card { grid-template-columns: 2.4rem 1fr; gap: 0.7rem; }
  .step-card .mnum { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
  .step-card:not(:last-child)::before { left: 1.1rem; top: 2.4rem; }
  .quiz { padding: 1rem; box-shadow: 4px 4px 0 var(--ink); }
  .mnum { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
  .module:not(:last-child)::before { left: 1.1rem; top: 2.4rem; }
  .float { font-size: 0.7rem; padding: 0.3rem 0.5rem; }
  .search input { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
