:root {
  --ink: #11152f;
  --ink-soft: #343852;
  --paper: #f7f5ef;
  --white: #fffdf8;
  --line: #d9d5cb;
  --violet: #5341d9;
  --violet-dark: #3f2fbe;
  --yellow: #ffd45c;
  --coral: #b5362d;
  --mint: #92e5c5;
  --focus: #005fcc;
  --shadow: 0 24px 70px rgba(21, 24, 58, 0.12);
  --radius: 1.25rem;
  --shell: min(1180px, calc(100% - 2rem));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: .25rem;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .7rem 1rem;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }

.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;
}

.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 7rem 0; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  background: rgba(247, 245, 239, .92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px rgba(17, 21, 47, .05); }

.nav-wrap { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; line-height: 1.08; }
.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: .8rem;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: -.04em;
  transform: rotate(-3deg);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.02rem; letter-spacing: -.025em; }
.brand small { margin-top: .22rem; color: var(--ink-soft); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }

.primary-nav { display: flex; align-items: center; gap: 1.55rem; }
.primary-nav a { color: var(--ink-soft); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover { color: var(--violet-dark); }
.primary-nav .nav-cta { padding: .7rem 1rem; color: white; background: var(--ink); border-radius: 999px; }
.primary-nav .nav-cta:hover { color: white; background: var(--violet-dark); }
.github-link, .button-icon { display: inline-flex !important; align-items: center; gap: .5rem; }
.github-link svg, .button-icon svg { flex: 0 0 auto; }
.nav-toggle { display: none; width: 2.8rem; height: 2.8rem; padding: .6rem; border: 1px solid var(--line); background: transparent; border-radius: .7rem; }
.nav-toggle span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 5px 0; background: var(--ink); }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: white;
  background: var(--ink);
  isolation: isolate;
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}
.hero-orbit { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.orbit-one { width: 630px; height: 630px; right: -180px; top: -100px; }
.orbit-two { width: 420px; height: 420px; right: -75px; top: 5px; border-color: rgba(255,212,92,.24); }
.hero-grid { display: grid; min-height: 720px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: clamp(3rem, 7vw, 7rem); padding-block: 6rem; }
.eyebrow, .section-label { font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .7rem; color: #d3cef9; }
.eyebrow span { width: 1.8rem; height: 2px; background: var(--yellow); }
.hero h1 { max-width: 850px; margin: 1.4rem 0; font-size: clamp(3rem, 6.3vw, 6.5rem); line-height: .96; letter-spacing: -.065em; }
.hero h1 em { color: var(--yellow); font-family: Georgia, serif; font-weight: 400; }
.hero-lede { max-width: 690px; color: #d8daea; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 3.2rem; align-items: center; justify-content: center; padding: .8rem 1.25rem; border: 1px solid transparent; border-radius: .75rem; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--yellow); }
.button-primary:hover { background: #ffe18a; }
.button-secondary { color: white; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.04); }
.button-secondary:hover { border-color: white; background: rgba(255,255,255,.09); }
.project-status { display: flex; align-items: center; gap: .65rem; margin-top: 1.55rem; color: #b9bdd4; font-size: .86rem; }
.status-dot { width: .55rem; height: .55rem; background: var(--mint); border-radius: 50%; box-shadow: 0 0 0 6px rgba(146,229,197,.12); }

.hero-note { align-self: end; margin-bottom: 1rem; padding: 2rem; color: var(--ink); background: var(--yellow); border-radius: 1.5rem 1.5rem .25rem 1.5rem; box-shadow: var(--shadow); transform: rotate(1deg); }
.note-kicker { margin: 0 0 .8rem; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.impact-number { margin: .4rem 0 .8rem; font-size: clamp(4.5rem, 8vw, 7rem); font-weight: 950; line-height: .82; letter-spacing: -.09em; }
.note-quote { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; line-height: 1.35; }
.note-rule { height: 1px; margin: 1.5rem 0; background: rgba(17,21,47,.25); }
.stat-source, .stat-clarifier { margin: 0; font-size: .76rem; font-weight: 750; }
.stat-source a { text-underline-offset: 3px; }
.stat-clarifier { margin-top: .65rem; color: #62531d; font-weight: 600; }
.note-facts { display: grid; gap: .7rem; margin: 0; }
.note-facts div { display: flex; justify-content: space-between; gap: 1rem; }
.note-facts dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.note-facts dd { margin: 0; font-size: .85rem; font-weight: 800; }

.announcement { background: var(--violet); color: white; }
.announcement-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding-block: 2.3rem; }
.announcement-icon { display: grid; width: 3rem; height: 3rem; place-items: center; color: var(--ink); background: var(--yellow); border-radius: 50%; font-size: 1.4rem; font-weight: 900; }
.announcement .section-label { margin: 0 0 .3rem; color: #dedaff; }
.announcement h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -.04em; }
.announcement p:not(.section-label) { max-width: 760px; margin: .55rem 0 0; color: #e8e6ff; font-size: .92rem; }
.repo-card { min-width: 245px; padding: 1rem 1.1rem; color: var(--ink); background: var(--white); border-radius: 1rem; }
.repo-card > span:first-child { display: block; color: #66677b; font-size: .67rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.repo-card code { display: block; margin: .35rem 0 .65rem; font-size: .78rem; font-weight: 700; overflow-wrap: anywhere; }
.repo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.repo-link { padding: .35rem .6rem; color: white; background: var(--violet-dark); border-radius: .45rem; font-size: .73rem; font-weight: 800; text-decoration: none; }
.repo-link:hover { background: var(--ink); }
.copy-button { padding: .35rem .6rem; border: 1px solid #c8c5d7; background: transparent; border-radius: .45rem; color: var(--violet-dark); font-size: .73rem; font-weight: 800; cursor: pointer; }
.copy-status { margin-left: .4rem; color: #31705a; font-size: .72rem; }

.section-label { margin: 0 0 .8rem; color: var(--violet-dark); }
.split-intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); }
.split-intro h2, .section-heading h2, .accessibility-head h2, .stack-intro h2, .contribute h2, .boundary h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.intro-copy { color: var(--ink-soft); font-size: 1.12rem; }
.intro-copy p { margin: 0 0 1rem; }
.friction-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.friction-grid article { padding: 2rem; border-right: 1px solid var(--line); }
.friction-grid article:first-child { padding-left: 0; }
.friction-grid article:last-child { padding-right: 0; border-right: 0; }
.friction-index { color: var(--coral); font-size: .75rem; font-weight: 900; }
.friction-grid h3 { margin: 1.4rem 0 .55rem; font-size: 1.25rem; letter-spacing: -.02em; }
.friction-grid p { margin: 0; color: var(--ink-soft); }

.use-cases { color: white; background: var(--ink); }
.use-cases .section-label { color: var(--yellow); }
.use-cases .section-heading > p:last-child { color: #c7cadc; }
.wide-heading { max-width: 900px; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.audience-grid article { position: relative; min-height: 300px; padding: 1.7rem; border: 1px solid rgba(255,255,255,.15); border-radius: 1.1rem; background: rgba(255,255,255,.035); }
.audience-grid .audience-featured { grid-row: span 2; min-height: 616px; color: var(--ink); background: var(--yellow); border-color: var(--yellow); }
.audience-icon { display: inline-grid; min-width: 2.5rem; height: 2.5rem; place-items: center; padding-inline: .6rem; border: 1px solid currentColor; border-radius: 999px; color: var(--yellow); font-size: .7rem; font-weight: 900; }
.audience-featured .audience-icon { color: var(--ink); }
.audience-grid h3 { margin: 3.5rem 0 .75rem; font-size: clamp(1.3rem, 2vw, 2rem); line-height: 1.1; letter-spacing: -.035em; }
.audience-grid p { margin: 0; color: #c7cadc; }
.audience-featured p { color: #4e472f; }
.audience-featured ul { margin: 2rem 0 0; padding: 0; list-style: none; }
.audience-featured li { padding: .75rem 0; border-top: 1px solid rgba(17,21,47,.2); font-weight: 800; }
.use-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.use-strip span { padding: .5rem .8rem; color: #d8daea; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; font-size: .75rem; font-weight: 750; }

.demo-section { background: #e9e5dc; }
.section-heading { max-width: 730px; margin-bottom: 3.5rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading > p:last-child, .accessibility-head > p, .stack-intro > p, .boundary-copy > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }
.demo-shell { overflow: hidden; background: var(--white); border: 1px solid #cbc6bb; border-radius: 1.6rem; box-shadow: var(--shadow); }
.demo-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 2rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.demo-toolbar fieldset { margin: 0; padding: 0; border: 0; }
.demo-toolbar legend { margin-bottom: .45rem; color: #5a5d73; font-size: .68rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.segmented-control { display: flex; gap: .3rem; padding: .3rem; background: #ebe9e4; border-radius: .65rem; }
.segmented-control button, .caption-controls button { min-height: 2.35rem; padding: .45rem .7rem; border: 0; color: var(--ink-soft); background: transparent; border-radius: .45rem; font-size: .78rem; font-weight: 800; cursor: pointer; }
.segmented-control button.is-active, .caption-controls button.is-active { color: white; background: var(--ink); box-shadow: 0 2px 8px rgba(17,21,47,.18); }
.caption-controls { display: flex; gap: .3rem; }
.caption-controls button { min-width: 2.4rem; border: 1px solid var(--line); }
.caption-md { font-size: 1.15em; }
.caption-lg { font-size: 1.4em; }
.media-workspace { position: relative; display: grid; min-height: 480px; grid-template-columns: 1.65fr 1fr; gap: .7rem; padding: .7rem; background: #11152f; }
.lesson-frame, .sign-frame { position: relative; min-width: 0; overflow: hidden; border-radius: .8rem; transition: opacity .25s, transform .25s; }
.lesson-frame { background: linear-gradient(145deg, #fff5c8, #f8d86f); }
.frame-topline { display: flex; justify-content: space-between; padding: 1rem; color: #6d570f; font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.leaf-visual { position: absolute; inset: 4rem 1.5rem 3.5rem; }
.leaf { position: absolute; width: 38%; height: 48%; left: 31%; top: 26%; background: #319064; border-radius: 90% 8% 90% 8%; transform: rotate(-42deg); box-shadow: inset -16px -16px 0 rgba(0,0,0,.07); }
.leaf::after { position: absolute; width: 2px; height: 110%; left: 48%; top: -5%; background: #174e39; content: ""; transform: rotate(43deg); }
.sun, .water, .air { position: absolute; padding: .45rem .7rem; border: 1px solid rgba(17,21,47,.18); background: rgba(255,255,255,.65); border-radius: 999px; font-size: .75rem; font-weight: 850; }
.sun { top: 0; right: 1%; }
.water { bottom: 0; left: 4%; }
.air { bottom: 6%; right: 2%; }
.sun::before, .water::before, .air::before { display: inline-block; width: .5rem; height: .5rem; margin-right: .35rem; background: var(--coral); border-radius: 50%; content: ""; }
.water::before { background: #5c89ef; }
.air::before { background: var(--violet); }
.frame-label { position: absolute; bottom: 1rem; left: 1rem; padding: .4rem .7rem; background: var(--ink); border-radius: .4rem; color: white; font-size: .72rem; font-weight: 750; }
.sign-frame { display: flex; align-items: end; justify-content: center; background: linear-gradient(#7770d4, #352d88); }
.sign-frame::before { position: absolute; inset: 0; background: radial-gradient(circle at 50% 35%, rgba(255,255,255,.18), transparent 48%); content: ""; }
.sign-portrait { position: relative; width: 72%; height: 82%; }
.head { position: absolute; width: 30%; aspect-ratio: 1; left: 35%; top: 7%; background: #7e4d32; border-radius: 47% 47% 42% 42%; box-shadow: inset -9px -4px 0 rgba(0,0,0,.12); }
.head::before { position: absolute; width: 108%; height: 40%; left: -4%; top: -8%; background: #171725; border-radius: 52% 52% 20% 20%; content: ""; }
.body { position: absolute; width: 64%; height: 58%; left: 18%; bottom: -2%; background: #f5f0de; border-radius: 42% 42% 0 0; }
.hand { position: absolute; z-index: 2; width: 17%; aspect-ratio: .72; background: #8c5739; border-radius: 60% 60% 45% 45%; transform-origin: bottom center; }
.hand-left { left: 16%; top: 39%; transform: rotate(30deg); }
.hand-right { right: 14%; top: 31%; transform: rotate(-42deg); }
.interpreter-label { position: absolute; z-index: 3; right: .8rem; bottom: .8rem; left: .8rem; padding: .55rem .7rem; background: rgba(17,21,47,.84); border-radius: .5rem; color: white; }
.interpreter-label strong, .interpreter-label span { display: block; }
.interpreter-label strong { font-size: .8rem; }
.interpreter-label span { color: #cac7ed; font-size: .66rem; }
.caption-bar { position: absolute; z-index: 5; right: 10%; bottom: 1.2rem; left: 10%; padding: .55rem .8rem; color: white; background: rgba(0,0,0,.88); border-radius: .35rem; font-size: 1rem; font-weight: 750; text-align: center; transition: font-size .2s; }
.media-workspace.caption-sm .caption-bar { font-size: .78rem; }
.media-workspace.caption-lg .caption-bar { font-size: 1.32rem; }
.media-workspace[data-layout-view="focus-sign"] { grid-template-columns: .58fr 1.8fr; }
.media-workspace[data-layout-view="focus-sign"] .lesson-frame { opacity: .62; }
.media-workspace[data-layout-view="focus-lesson"] { grid-template-columns: 2fr .48fr; }
.media-workspace[data-layout-view="focus-lesson"] .sign-frame { opacity: .72; }
.transcript-row { display: flex; align-items: center; gap: 1rem; padding: .9rem 1.1rem; }
.play-button, .transcript-button { padding: .55rem .8rem; border: 1px solid var(--line); color: var(--ink); background: white; border-radius: .5rem; font-size: .76rem; font-weight: 850; cursor: pointer; }
.play-button { display: flex; align-items: center; gap: .45rem; }
.timeline { height: .3rem; flex: 1; overflow: hidden; background: #dfddd6; border-radius: 999px; }
.timeline span { display: block; width: 28%; height: 100%; background: var(--violet); }
.transcript-row time { color: #65677a; font-size: .72rem; font-weight: 700; }
.transcript-panel { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid var(--line); background: #f4f1ea; }
.transcript-panel h3 { margin: 0 0 .7rem; font-size: 1rem; }
.transcript-panel p { margin: .4rem 0; color: var(--ink-soft); font-size: .9rem; }
.transcript-panel strong { color: var(--violet-dark); }
.demo-disclaimer { margin: 1rem 0 0; color: #5f6172; font-size: .78rem; text-align: center; }
.demo-disclaimer a, .target-note a { color: var(--violet-dark); font-weight: 800; text-underline-offset: 3px; }

.toolkit { background: var(--white); }
.package-list { display: grid; gap: 1rem; }
.package { position: relative; display: grid; grid-template-columns: 70px 1fr 200px; align-items: center; gap: 2rem; min-height: 260px; padding: 2.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.package-featured { color: white; background: var(--ink); border-color: var(--ink); }
.package-number { align-self: start; color: var(--coral); font-size: .75rem; font-weight: 900; }
.package-name { margin: 0 0 .8rem; color: var(--violet-dark); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; font-weight: 750; }
.package-featured .package-name { color: var(--yellow); }
.package h3 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.7rem); letter-spacing: -.045em; }
.package-copy > p:not(.package-name) { max-width: 680px; margin: .8rem 0 1.2rem; color: var(--ink-soft); }
.package-featured .package-copy > p:not(.package-name) { color: #cfd2e3; }
.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tag-list li { padding: .35rem .65rem; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.package-featured .tag-list li { border-color: rgba(255,255,255,.22); color: #e7e8f2; }
.package-symbol { position: relative; display: grid; width: 160px; height: 145px; place-items: center; justify-self: end; color: var(--ink); background: var(--yellow); border-radius: 50% 50% 45% 55%; transform: rotate(5deg); }
.package-symbol span { font-size: 2.5rem; font-weight: 950; letter-spacing: -.1em; }
.package-symbol i { position: absolute; width: 44px; height: 18px; right: 2px; bottom: 13px; background: var(--yellow); clip-path: polygon(0 0, 100% 100%, 25% 100%); }
.symbol-ui { display: flex; align-items: center; justify-content: center; gap: .4rem; background: var(--mint); border-radius: 1.6rem; transform: rotate(-3deg); }
.symbol-ui span { width: 23px; height: 65px; background: var(--ink); border-radius: 999px; }
.symbol-ui span:nth-child(2) { height: 100px; }
.symbol-isl { font-size: 2rem; font-weight: 950; color: white; background: var(--violet); border-radius: 30% 70% 60% 40%; transform: rotate(3deg); }

.developer-hub { background: #ebe7dc; }
.developer-intro { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 5rem; margin-bottom: 3rem; }
.developer-intro h2, .rules-heading h2, .contribute-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.055em;
}
.developer-intro > p, .rules-heading > p, .contribute-heading > p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }
.code-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); overflow: hidden; background: var(--ink); border-radius: 1.4rem; box-shadow: var(--shadow); }
.code-panel { min-width: 0; overflow: hidden; border-right: 1px solid rgba(255,255,255,.12); }
.code-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.code-topbar > div { display: flex; gap: .4rem; }
.code-topbar > div span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--coral); }
.code-topbar > div span:nth-child(2) { background: var(--yellow); }
.code-topbar > div span:nth-child(3) { background: var(--mint); }
.code-topbar p { margin: 0; color: #cdd0e1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .72rem; }
.code-copy { justify-self: end; padding: .35rem .6rem; color: white; border: 1px solid rgba(255,255,255,.23); background: transparent; border-radius: .45rem; font-size: .68rem; font-weight: 800; cursor: pointer; }
.code-panel pre, .repo-layout pre { margin: 0; overflow-x: auto; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.code-panel pre { padding: 2rem; color: #dce0f0; font-size: .84rem; line-height: 1.72; }
.code-keyword { color: #ff8e7d; }
.code-string { color: #ffe17f; }
.code-function { color: #a79dff; }
.code-tag { color: #92e5c5; }
.code-prop { color: #b4d6ff; }
.quickstart-card { padding: 2rem; color: white; }
.quickstart-card .section-label { color: var(--yellow); }
.quickstart-card ol { display: grid; gap: 0; margin: 1.5rem 0; padding: 0; list-style: none; }
.quickstart-card li { display: grid; grid-template-columns: 2rem 1fr; gap: .75rem; padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.13); }
.quickstart-card li > span { display: grid; width: 1.7rem; height: 1.7rem; place-items: center; color: var(--ink); background: var(--yellow); border-radius: 50%; font-size: .68rem; font-weight: 900; }
.quickstart-card strong, .quickstart-card code { display: block; }
.quickstart-card strong { font-size: .86rem; }
.quickstart-card p { margin: .3rem 0 0; color: #bfc3d7; font-size: .76rem; }
.quickstart-card code { margin-top: .4rem; color: var(--mint); font-size: .67rem; overflow-wrap: anywhere; }
.release-warning { padding: .8rem; border: 1px solid rgba(255,212,92,.28); background: rgba(255,212,92,.07); border-radius: .6rem; }
.release-warning strong { display: inline; color: var(--yellow); }
.architecture { display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 4rem; margin-top: 5rem; }
.architecture-copy h3, .repo-layout h3, .pr-checklist h3, .help-panel h3 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.08; letter-spacing: -.045em; }
.architecture-copy > p:last-child, .repo-layout > div > p:last-child { color: var(--ink-soft); }
.architecture-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: .5rem; }
.architecture-flow div { min-height: 150px; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: .9rem; }
.architecture-flow span, .architecture-flow strong, .architecture-flow small { display: block; }
.architecture-flow span { color: var(--violet-dark); font-size: .66rem; font-weight: 900; }
.architecture-flow strong { margin-top: 2.4rem; font-size: .9rem; }
.architecture-flow small { margin-top: .3rem; color: var(--ink-soft); font-size: .68rem; line-height: 1.4; }
.architecture-flow b { color: var(--violet); }
.repo-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 5rem; margin-top: 5rem; padding: 3rem; color: white; background: var(--violet); border-radius: 1.3rem; }
.repo-layout .section-label { color: var(--yellow); }
.repo-layout > div > p:last-child { color: #e1dfff; }
.repo-layout pre { padding: 1.5rem; color: #dce0f0; background: rgba(17,21,47,.94); border-radius: .8rem; font-size: .8rem; line-height: 1.55; }

.boundary { background: #e4dfd3; }
.boundary-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(3rem, 7vw, 7rem); }
.boundary-copy p:last-child { max-width: 480px; }
.boundary-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.boundary-card { min-height: 360px; padding: 2rem; border-radius: 1.2rem; }
.open-card { color: white; background: var(--violet); }
.private-card { background: var(--white); border: 1px solid #cbc6bb; }
.boundary-icon { display: grid; width: 3rem; height: 3rem; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 1.7rem; }
.boundary-card h3 { margin: 3.5rem 0 1.1rem; font-size: 1.65rem; letter-spacing: -.03em; }
.boundary-card ul { margin: 0; padding-left: 1.2rem; }
.boundary-card li { margin: .55rem 0; }

.accessibility { color: white; background: var(--ink); }
.accessibility-head { display: grid; grid-template-columns: 1fr .75fr; align-items: end; gap: 5rem; }
.accessibility .section-label { color: var(--yellow); }
.accessibility-head > p { margin: 0; color: #cfd2e3; }
.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; border-top: 1px solid rgba(255,255,255,.2); }
.principle-grid article { padding: 2rem 1.4rem 0 0; }
.principle-grid article + article { padding-left: 1.4rem; border-left: 1px solid rgba(255,255,255,.2); }
.principle-grid span { color: var(--yellow); font-size: .72rem; font-weight: 900; }
.principle-grid h3 { margin: 1.6rem 0 .65rem; font-size: 1.18rem; }
.principle-grid p { margin: 0; color: #bec2d7; font-size: .9rem; }

.stack-grid { display: grid; grid-template-columns: .7fr 1.3fr; align-items: start; gap: clamp(3rem, 8vw, 8rem); }
.stack-intro { position: sticky; top: 120px; }
.stack-note { margin-top: 2rem; padding: 1rem; border-left: 4px solid var(--coral); background: #ece8df; }
.stack-note strong, .stack-note span { display: block; }
.stack-note strong { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.stack-note span { margin-top: .35rem; color: var(--ink-soft); font-size: .88rem; }
.stack-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
th, td { padding: 1.15rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { color: #626477; background: #ece9e2; font-size: .69rem; letter-spacing: .09em; text-transform: uppercase; }
tbody th { width: 22%; color: var(--violet-dark); font-size: .82rem; }
tbody td:nth-child(2) { width: 31%; font-weight: 800; }
tbody td:last-child { color: var(--ink-soft); font-size: .9rem; }

.rules { background: #f0ede5; }
.rules-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 5rem; margin-bottom: 3.5rem; }
.rules-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.rules-grid article { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rules-grid article:nth-child(even) { border-right: 0; }
.rules-grid article > span { color: var(--coral); font-size: .72rem; font-weight: 900; }
.rules-grid h3 { margin: 0; font-size: 1.15rem; }
.rules-grid p { margin: .4rem 0 .7rem; color: var(--ink-soft); font-size: .88rem; }
.rules-grid code { color: var(--violet-dark); font-size: .72rem; font-weight: 750; }
.pr-checklist { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: 4rem; margin-top: 4rem; padding: 2.5rem; color: white; background: var(--ink); border-radius: 1.2rem; }
.pr-checklist .section-label { color: var(--yellow); }
.pr-checklist ul { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1rem; margin: 0; padding: 0; list-style: none; }
.pr-checklist li { display: flex; gap: .6rem; color: #d5d8e7; font-size: .82rem; }
.pr-checklist li span { color: var(--mint); font-weight: 900; }

.roadmap { background: var(--white); }
.roadmap-track { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; }
.roadmap-track article { position: relative; padding: 0 1.5rem 1rem; border-top: 2px solid var(--line); }
.roadmap-track article:first-child { padding-left: 0; }
.roadmap-track article:last-child { padding-right: 0; }
.roadmap-marker { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; margin-top: -1.5rem; color: white; background: var(--violet); border: 5px solid var(--white); border-radius: 50%; font-size: .8rem; font-weight: 900; }
.roadmap-time { margin: 1.5rem 0 .4rem; color: var(--violet-dark); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.roadmap-track h3 { margin: 0; font-size: 1.25rem; }
.roadmap-track article > p:not(.roadmap-time) { color: var(--ink-soft); font-size: .9rem; }
.roadmap-track strong { color: var(--ink); font-size: .78rem; }
.success-box { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 4rem; padding: 1.5rem; color: white; background: var(--ink); border-radius: 1.2rem; }
.success-box > div { display: flex; min-height: 92px; flex-direction: column; justify-content: center; padding: 0 1.5rem; border-right: 1px solid rgba(255,255,255,.15); }
.success-box > div:last-child { border: 0; }
.success-big { color: var(--yellow); font-size: 2rem; font-weight: 900; letter-spacing: -.04em; }
.success-box div span:last-child { color: #cfd2e3; font-size: .77rem; }
.target-note { color: #5f6172; font-size: .78rem; text-align: center; }

.contribute { background: #dff3ea; }
.contribute-heading { display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 5rem; margin-bottom: 3.5rem; }
.contribution-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.contribution-paths article { min-height: 270px; padding: 1.5rem; background: var(--white); border: 1px solid #bfd5ca; border-radius: 1rem; }
.contribution-paths article > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; color: white; background: #2f795d; border-radius: .7rem; font-weight: 900; }
.contribution-paths h3 { margin: 2.5rem 0 .5rem; font-size: 1.3rem; }
.contribution-paths p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.contribution-paths strong { display: block; margin-top: 1.2rem; color: #2f795d; font-size: .72rem; }
.contribution-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 4rem; }
.contribution-flow div { position: relative; padding: 1.5rem 1rem 1rem; border-top: 2px solid #8ebba9; }
.contribution-flow span, .contribution-flow strong, .contribution-flow small { display: block; }
.contribution-flow span { width: 2rem; height: 2rem; margin-top: -2.55rem; padding-top: .35rem; color: white; background: #2f795d; border: 4px solid #dff3ea; border-radius: 50%; font-size: .62rem; font-weight: 900; text-align: center; }
.contribution-flow strong { margin-top: 1rem; font-size: .86rem; }
.contribution-flow small { margin-top: .35rem; color: var(--ink-soft); font-size: .7rem; line-height: 1.5; }
.help-panel { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 3rem; margin-top: 4rem; padding: 3rem; background: var(--white); border: 1px solid #bfd5ca; border-radius: 1.3rem; }
.help-panel p:last-child { color: var(--ink-soft); }
.help-actions { display: flex; align-items: stretch; flex-direction: column; gap: .7rem; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: var(--violet-dark); }

.site-footer { padding: 4.5rem 0 1.5rem; color: white; background: #0a0c1e; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; }
.footer-brand .brand-mark { color: var(--ink); background: var(--yellow); }
.footer-brand small { color: #9ca1bb; }
.footer-grid > div:first-child > p { max-width: 340px; color: #9ca1bb; font-size: .88rem; }
.footer-grid h2 { margin: 0 0 1rem; color: #9ca1bb; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid div:not(:first-child) a { display: block; margin: .65rem 0; color: #d8daea; font-size: .87rem; text-decoration: none; }
.footer-grid a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.13); color: #82879f; font-size: .72rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: inherit; }

@media (max-width: 980px) {
  .primary-nav { gap: .85rem; }
  .primary-nav a { font-size: .8rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 520px; justify-self: end; }
  .announcement-inner { grid-template-columns: auto 1fr; }
  .repo-card { grid-column: 2; }
  .package { grid-template-columns: 50px 1fr 140px; }
  .package-symbol { width: 130px; height: 120px; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid .audience-featured { grid-column: 1 / -1; grid-row: auto; min-height: 390px; }
  .developer-intro, .rules-heading, .contribute-heading { gap: 3rem; }
  .code-layout { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
  .architecture { grid-template-columns: 1fr; gap: 2rem; }
  .repo-layout { gap: 3rem; }
  .boundary-grid, .stack-grid { grid-template-columns: 1fr; }
  .stack-intro { position: static; }
  .principle-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
  .principle-grid article { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.5rem; }
  .roadmap-track { grid-template-columns: repeat(2, 1fr); gap: 3rem 0; }
  .success-box { grid-template-columns: repeat(2, 1fr); }
  .success-box > div:nth-child(2) { border-right: 0; }
  .success-box > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .contribution-paths { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --shell: min(100% - 1.25rem, 1180px); }
  .section { padding: 5rem 0; }
  .nav-wrap { min-height: 68px; }
  .nav-toggle { display: block; cursor: pointer; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: .6rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(17,21,47,.1); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .9rem; font-size: .9rem; }
  .primary-nav .nav-cta { border-radius: .6rem; text-align: center; }
  .hero, .hero-grid { min-height: auto; }
  .hero-grid { padding: 5rem 0 4rem; gap: 3rem; }
  .hero h1 { font-size: clamp(3rem, 15vw, 5rem); }
  .hero-note { margin: 0; transform: none; }
  .announcement-inner { grid-template-columns: 1fr; }
  .announcement-icon { display: none; }
  .repo-card { grid-column: auto; }
  .split-intro, .accessibility-head { grid-template-columns: 1fr; gap: 1.5rem; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid .audience-featured { grid-column: auto; min-height: 430px; }
  .friction-grid { grid-template-columns: 1fr; }
  .friction-grid article, .friction-grid article:first-child, .friction-grid article:last-child { padding: 1.5rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .friction-grid article:last-child { border-bottom: 0; }
  .demo-toolbar { align-items: stretch; flex-direction: column; }
  .segmented-control { display: grid; grid-template-columns: 1fr; }
  .media-workspace { min-height: 520px; grid-template-columns: 1fr 1fr; }
  .media-workspace[data-layout-view="focus-sign"] { grid-template-columns: .38fr 1.62fr; }
  .media-workspace[data-layout-view="focus-lesson"] { grid-template-columns: 1.7fr .3fr; }
  .sign-portrait { width: 100%; }
  .caption-bar { right: 4%; left: 4%; }
  .transcript-row { flex-wrap: wrap; }
  .timeline { min-width: 120px; }
  .package { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
  .package-symbol { display: none; }
  .developer-intro, .rules-heading, .contribute-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .code-layout { grid-template-columns: 1fr; }
  .code-panel { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .code-topbar { grid-template-columns: 1fr auto; }
  .code-topbar p { display: none; }
  .code-panel pre { padding: 1.3rem; font-size: .73rem; }
  .architecture-flow { grid-template-columns: 1fr; }
  .architecture-flow b { transform: rotate(90deg); text-align: center; }
  .architecture-flow div { min-height: auto; }
  .architecture-flow strong { margin-top: 1.2rem; }
  .repo-layout { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
  .repo-layout pre { font-size: .7rem; }
  .boundary-columns { grid-template-columns: 1fr; }
  .boundary-card { min-height: 300px; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid article, .principle-grid article + article { padding: 1.5rem 0; border-left: 0; }
  .rules-grid { grid-template-columns: 1fr; }
  .rules-grid article, .rules-grid article:nth-child(even) { padding: 1.5rem 0; border-right: 0; }
  .pr-checklist { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem; }
  .pr-checklist ul { grid-template-columns: 1fr; }
  .roadmap-track { grid-template-columns: 1fr; gap: 3rem; }
  .roadmap-track article, .roadmap-track article:first-child, .roadmap-track article:last-child { padding: 0; border-top: 0; border-left: 2px solid var(--line); padding-left: 2rem; }
  .roadmap-marker { position: absolute; left: -1.4rem; top: 0; margin: 0; }
  .roadmap-time { margin-top: 0; }
  .success-box { grid-template-columns: 1fr 1fr; padding: .7rem; }
  .success-box > div { padding: 1rem; }
  .contribution-paths { grid-template-columns: 1fr; }
  .contribution-paths article { min-height: 240px; }
  .contribution-flow { grid-template-columns: 1fr; gap: 1.7rem; }
  .contribution-flow div { border-top: 0; border-left: 2px solid #8ebba9; padding: 0 0 0 2rem; }
  .contribution-flow span { position: absolute; top: 0; left: -1rem; margin: 0; }
  .contribution-flow strong { margin-top: 0; }
  .help-panel { grid-template-columns: 1fr; padding: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .hero-actions, .hero-actions .button { width: 100%; }
  .media-workspace { min-height: 430px; }
  .caption-bar { font-size: .82rem; }
  .media-workspace.caption-lg .caption-bar { font-size: 1.02rem; }
  .frame-topline span:last-child { display: none; }
  .interpreter-label span { display: none; }
  th, td { padding: .8rem .65rem; }
  .success-box { grid-template-columns: 1fr; }
  .success-box > div, .success-box > div:nth-child(2) { border-right: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .success-box > div:first-child { border-top: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

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

@media (forced-colors: active) {
  .brand-mark, .button, .package, .hero-note { border: 2px solid currentColor; }
  .timeline span, .status-dot { background: CanvasText; }
}
