/* Anix — a precise, editorial identity for a kernel project. */
:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #101010;
  --panel-2: #151515;
  --ink: #f0f0ed;
  --soft: #c3c3bd;
  --muted: #92928b;
  --faint: #66665f;
  --line: #30302c;
  --line-soft: #20201d;
  --measure: 1220px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.wrap { width: min(var(--measure), calc(100% - 80px)); margin-inline: auto; }
.progress-track { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--ink); }

/* Masthead */
.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 36px; min-height: 78px; padding: 0 max(40px, calc((100% - var(--measure)) / 2)); border-bottom: 1px solid var(--line-soft); background: rgba(11,11,11,.94); backdrop-filter: blur(12px); }
.group-brand { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.group-mark { width: 24px; height: 25px; display: flex; align-items: center; justify-content: center; gap: 3px; border-left: 1px solid #454540; padding-left: 8px; }
.group-mark i { display: block; width: 3px; background: var(--ink); }
.group-mark i:nth-child(1) { height: 10px; }
.group-mark i:nth-child(2) { height: 20px; }
.group-mark i:nth-child(3) { height: 14px; }
.group-name { display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1; font-weight: 650; letter-spacing: .2px; white-space: nowrap; }
.group-subline { color: var(--faint); font: 7px/1.2 var(--mono); letter-spacing: .85px; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.8vw, 36px); margin-left: auto; align-self: stretch; }
.site-nav a { position: relative; display: inline-flex; align-items: center; color: var(--muted); font-size: 11px; white-space: nowrap; transition: color .18s ease; }
.site-nav a::after { position: absolute; right: 0; bottom: 20px; left: 0; height: 1px; background: var(--ink); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[data-repo-link] { border-left: 1px solid var(--line); padding-left: 20px; color: var(--soft); }
.site-nav a[data-repo-link]::after { left: 20px; }
.menu-toggle { display: none; }

/* Type and reusable controls */
.overline, .section-number, .breadcrumbs, .hero-index, .spec-intro, .spec-item > span, .sheet-heading, .sheet-state, .schematic-num, .schematic-state, .schematic-base, .sheet-footnote, .page-stamp, .map-topline, .layer-order, .layer-kind, .hardware-line, .map-disclaimer, .detail-kicker, .page-note, .roadmap-title > span, .roadmap-status, .roadmap-index, .contribute-index, .footer-label, .footer-bottom { font-family: var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.overline { display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.overline-rule { width: 22px; height: 1px; background: var(--soft); }
.overline-slash { color: #4f4f49; }
.button { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; gap: 28px; padding: 0 16px; border: 1px solid transparent; font-size: 11px; font-weight: 600; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-solid { border-color: var(--ink); background: var(--ink); color: #111; }
.button-solid:hover { border-color: #fff; background: #fff; }
.button-outline { border-color: #55554f; background: transparent; color: var(--ink); }
.button-outline:hover { border-color: #aaa9a2; background: #151515; }
.button span { font-size: 15px; line-height: 1; }
.text-link, .underlined-link, .repo-link { display: inline-flex; align-items: center; gap: 21px; padding-bottom: 6px; border-bottom: 1px solid #53534d; color: var(--soft); font-size: 11px; transition: color .18s, border-color .18s; }
.text-link:hover, .underlined-link:hover, .repo-link:hover { border-color: var(--ink); color: var(--ink); }
.text-link span, .underlined-link span { font-size: 14px; }
em { color: #a4a49c; font-family: var(--serif); font-weight: 400; }

/* Home hero: typography + a real, labelled system map instead of decoration. */
.home-hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(40px, 6vw, 88px); align-items: center; padding-top: 92px; padding-bottom: 80px; min-height: 620px; }
.hero-copy { min-width: 0; }
.hero-copy .overline { margin-bottom: 19px; }
.hero-word { margin: 0 0 14px -7px; font-size: clamp(100px, 13vw, 174px); line-height: .84; font-weight: 760; letter-spacing: -.105em; }
.hero-word > span { color: #777770; }
.hero-subtitle { margin-bottom: 22px; font-size: clamp(29px, 3vw, 39px); line-height: 1.1; font-weight: 530; letter-spacing: -.055em; }
.hero-description { max-width: 525px; margin: 0; color: #a6a69f; font-size: 13px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 29px; }
.hero-index { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 47px; color: var(--faint); font-size: 8px; }
.hero-index span + span { padding-left: 12px; border-left: 1px solid #393934; }
.project-sheet { position: relative; padding: 0 23px; border: 1px solid #373732; background: #0d0d0d; min-width: 0; }
.sheet-heading { display: flex; justify-content: space-between; padding: 17px 0 16px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 8px; }
.sheet-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 21px 0 19px; border-bottom: 1px solid var(--line); }
.sheet-title > span:first-child { font-size: 28px; font-weight: 680; letter-spacing: -.07em; }
.sheet-state { display: flex; align-items: center; gap: 7px; color: #86867f; font-size: 7px; white-space: nowrap; }
.sheet-state i { width: 5px; height: 5px; display: inline-block; background: #b9b9b1; border-radius: 50%; }
.schematic { padding-top: 20px; }
.schematic-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; min-height: 48px; padding: 0 12px; border: 1px solid #262622; background: #0d0d0d; }
.schematic-row.future { color: #b7b7b0; }
.schematic-row.kernel-row { border-color: #a9a9a1; background: #e7e7e1; color: #101010; }
.schematic-num { font-size: 8px; color: #74746d; }
.kernel-row .schematic-num, .kernel-row .schematic-state { color: #55554f; }
.schematic-name { font-size: 11px; font-weight: 520; }
.schematic-state { color: #62625b; font-size: 7px; text-align: right; }
.schematic-connector { height: 13px; display: flex; align-items: center; padding-left: 25px; }
.schematic-connector i { display: block; width: 1px; height: 100%; background: #4b4b45; }
.schematic-base { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding: 11px 12px 12px; border-top: 1px solid #3c3c37; color: var(--faint); font-size: 8px; }
.schematic-base strong { color: var(--soft); font-size: 9px; font-weight: 500; }
.sheet-footnote { margin: 0 -23px; padding: 14px 23px 15px; border-top: 1px solid var(--line); color: #62625b; font-size: 7px; line-height: 1.7; }
.spec-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0e0d; }
.spec-bar-inner { display: grid; grid-template-columns: 1.1fr repeat(4,1fr); align-items: stretch; }
.spec-intro, .spec-item { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 83px; padding: 0 14px; border-left: 1px solid var(--line-soft); }
.spec-intro { padding-left: 0; border-left: 0; color: var(--faint); font-size: 8px; }
.spec-item > span { color: var(--faint); font-size: 7px; }
.spec-item strong { color: #d0d0ca; font-size: 10px; font-weight: 500; }

/* Content rhythm */
.section { padding-top: 105px; padding-bottom: 114px; }
.section-number { display: flex; align-items: center; gap: 13px; color: #777770; font-size: 8px; }
.section-number span:first-child { color: #d3d3cc; }
.statement-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 80px; align-items: start; margin-top: 44px; }
.statement-layout h2, .principles-intro h2, .roadmap-intro h2, .closing-inner h2, .page-hero h1, .reference-layout h2, .contribution-note h2 { margin: 0; font-size: clamp(37px, 4.4vw, 56px); line-height: 1.1; font-weight: 540; letter-spacing: -.065em; }
.statement-copy { max-width: 465px; padding-top: 5px; }
.statement-copy p { margin: 0 0 18px; color: #999992; font-size: 12px; line-height: 2; }
.statement-copy .copy-lead { color: var(--ink); font-size: 17px; line-height: 1.65; letter-spacing: -.02em; }
.underlined-link { margin-top: 9px; }
.principles-section { padding: 80px 0 99px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0e0d; }
.principles-intro { display: grid; grid-template-columns: 1fr .6fr; gap: 65px; align-items: end; margin: 40px 0 45px; }
.principles-intro > p { max-width: 315px; margin: 0 0 4px; color: #898982; font-size: 11px; line-height: 1.9; }
.principle-table { border-top: 1px solid #3a3a35; }
.principle-table article { display: grid; grid-template-columns: 65px 1fr 25px; gap: 20px; align-items: start; padding: 23px 0; border-bottom: 1px solid #33332e; transition: padding .22s var(--ease); }
.principle-table article:hover { padding-right: 7px; padding-left: 7px; }
.principle-table article > span:first-child { padding-top: 4px; color: #71716a; font: 9px var(--mono); }
.principle-table h3 { margin: 0 0 7px; font-size: 15px; font-weight: 550; letter-spacing: -.015em; }
.principle-table p { max-width: 590px; margin: 0; color: #8c8c85; font-size: 11px; line-height: 1.9; }
.principle-mark { color: #777770; transition: transform .2s, color .2s; }
.principle-table article:hover .principle-mark { color: var(--ink); transform: translate(2px,-2px); }
.roadmap-preview-section { padding-top: 105px; padding-bottom: 115px; }
.roadmap-intro { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin: 40px 0 36px; }
.roadmap-intro > div > p { max-width: 470px; margin: 18px 0 0; color: #96968f; font-size: 12px; line-height: 1.95; }
.roadmap-intro > .underlined-link { flex: 0 0 auto; margin-bottom: 6px; }
.roadmap-mini { border-top: 1px solid #3a3a35; }
.roadmap-mini a { display: grid; grid-template-columns: 50px 1fr 190px 24px; gap: 16px; align-items: center; padding: 19px 0; border-bottom: 1px solid #30302b; transition: padding .22s var(--ease), background .22s; }
.roadmap-mini a:hover { padding-right: 8px; padding-left: 8px; background: #0e0e0d; }
.roadmap-mini a > span:first-child { color: #777770; font: 9px var(--mono); }
.roadmap-mini strong { font-size: 12px; font-weight: 500; }
.roadmap-mini small { color: #686860; font: 8px var(--mono); letter-spacing: .06em; }
.roadmap-arrow { justify-self: end; color: #777770; }
.closing-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0e0e0d; }
.closing-inner { display: flex; justify-content: space-between; align-items: end; gap: 60px; padding-top: 69px; padding-bottom: 75px; }
.closing-inner .overline { margin-bottom: 17px; }
.closing-inner h2 { font-size: clamp(35px, 4vw, 49px); }
.closing-action { width: min(330px, 38%); }
.closing-action p { margin: 0 0 18px; color: #93938c; font-size: 11px; line-height: 1.9; }
.closing-action .repo-link { display: flex; width: fit-content; margin-top: 14px; }

/* Interior page heading */
.page-hero { display: grid; grid-template-columns: 1fr 190px; align-items: end; gap: 70px; padding-top: 72px; padding-bottom: 70px; border-bottom: 1px solid var(--line); }
.page-hero-main { max-width: 800px; }
.breadcrumbs { display: flex; align-items: center; gap: 12px; margin: 0 0 34px; color: #777770; font-size: 8px; }
.breadcrumbs a { color: #c4c4bd; }
.breadcrumbs a:hover { color: white; }
.page-hero h1 { font-size: clamp(43px, 5.4vw, 70px); }
.page-lede { max-width: 620px; margin: 22px 0 0; color: #9d9d96; font-size: 13px; line-height: 1.95; }
.page-stamp { justify-self: end; width: 100%; max-width: 185px; padding: 15px 0 0 15px; border-left: 1px solid #454540; color: #777770; font-size: 8px; }
.page-stamp strong { display: block; margin: 7px 0 14px; color: #d5d5cf; font-size: 37px; line-height: 1; font-weight: 450; letter-spacing: -.08em; }
.page-stamp > div { width: 100%; height: 1px; background: #30302b; margin-bottom: 13px; }
.page-stamp p { margin: 0; font-size: 7px; line-height: 1.8; }

/* Architecture: useful clickable layer map, deliberately diagrammatic. */
.architecture-interactive { padding-top: 76px; padding-bottom: 95px; border-bottom: 1px solid var(--line); }
.architecture-layout { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(50px, 8vw, 110px); align-items: center; margin-top: 38px; }
.layer-map { min-width: 0; padding: 0 22px 18px; border: 1px solid #383833; background: #0e0e0d; }
.map-topline { display: flex; justify-content: space-between; gap: 15px; padding: 17px 0; border-bottom: 1px solid #30302b; color: #777770; font-size: 7px; }
.layer-button { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; width: 100%; min-height: 53px; padding: 0 12px; border: 1px solid #292925; background: #0d0d0c; text-align: left; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.layer-button:hover { border-color: #676760; transform: translateX(2px); }
.layer-button[aria-pressed="true"] { border-color: #c7c7bf; background: #e9e9e3; color: #111; }
.layer-order { color: #777770; font-size: 8px; }
.layer-name { font-size: 11px; font-weight: 500; }
.layer-kind { color: #6c6c65; font-size: 7px; text-align: right; }
.layer-button[aria-pressed="true"] .layer-order, .layer-button[aria-pressed="true"] .layer-kind { color: #5a5a53; }
.map-link { height: 12px; margin-left: 26px; border-left: 1px solid #51514a; }
.hardware-line { display: flex; align-items: center; justify-content: space-between; margin-top: 17px; padding: 13px 12px; border-top: 1px solid #4a4a43; color: #66665f; font-size: 8px; }
.hardware-line strong { color: #cbcbc4; font-size: 9px; font-weight: 500; }
.map-disclaimer { margin: 0; padding-top: 13px; color: #62625b; font-size: 7px; line-height: 1.7; }
.detail-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; color: #797972; font-size: 8px; }
.detail-kicker i { width: 5px; height: 5px; background: #d7d7d0; border-radius: 50%; }
.layer-detail h2 { margin: 0 0 16px; font-size: clamp(30px, 3.2vw, 41px); line-height: 1.18; font-weight: 520; letter-spacing: -.055em; }
.layer-detail > p:not(.detail-kicker) { color: #999992; font-size: 12px; line-height: 2; }
.detail-rule { height: 1px; width: 100%; margin: 27px 0 19px; background: #30302b; }
.layer-detail .detail-note { color: #707069; font-size: 10px; }
.architecture-reference { padding-top: 94px; padding-bottom: 102px; }
.reference-layout { display: grid; grid-template-columns: .7fr 1.3fr; gap: 65px; margin-top: 38px; }
.reference-layout h2 { font-size: 43px; }
.reference-table > div { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid #30302b; font-size: 11px; }
.reference-table > div:first-child { border-top: 1px solid #30302b; }
.reference-table span { color: #85857e; }
.reference-table strong { color: #deded8; font-weight: 500; }
.page-note { margin: 24px 0 0; color: #686860; font-size: 8px; line-height: 1.9; text-transform: none; letter-spacing: .015em; }

/* Roadmap: a numbered sequence instead of feature cards. */
.roadmap-body { padding-top: 77px; padding-bottom: 100px; }
.roadmap-list { position: relative; margin-top: 39px; border-top: 1px solid #3a3a35; }
.roadmap-item { display: grid; grid-template-columns: 55px minmax(0,1fr) 100px; gap: 24px; padding: 30px 0 33px; border-bottom: 1px solid #30302b; }
.roadmap-index { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 15px; color: #777770; font-size: 9px; }
.roadmap-index i { width: 7px; height: 7px; border: 1px solid #72726a; background: var(--bg); }
.roadmap-focus .roadmap-index i { background: var(--ink); border-color: var(--ink); }
.roadmap-title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 10px; }
.roadmap-title h2 { margin: 0; font-size: 18px; font-weight: 540; letter-spacing: -.025em; }
.roadmap-title > span { color: #72726a; font-size: 7px; }
.roadmap-focus .roadmap-title > span { color: #c6c6bf; }
.roadmap-content > p { max-width: 660px; margin: 0; color: #96968f; font-size: 12px; line-height: 1.9; }
.roadmap-content ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 24px; margin: 18px 0 0; padding: 0; list-style: none; }
.roadmap-content li { position: relative; padding-left: 13px; color: #8a8a83; font-size: 10px; line-height: 1.7; }
.roadmap-content li::before { position: absolute; top: .7em; left: 0; width: 4px; height: 1px; background: #8a8a83; content: ""; }
.roadmap-status { justify-self: end; align-self: start; padding-top: 3px; color: #62625b; font-size: 7px; line-height: 1.9; text-align: right; }

/* Contribution */
.contribute-body { padding-top: 80px; padding-bottom: 100px; }
.contribute-rows { margin-top: 39px; border-top: 1px solid #3a3a35; }
.contribute-rows article { display: grid; grid-template-columns: 130px 1fr 25px; gap: 25px; align-items: start; padding: 26px 0; border-bottom: 1px solid #30302b; transition: padding .22s var(--ease); }
.contribute-rows article:hover { padding-right: 8px; padding-left: 8px; }
.contribute-index { padding-top: 4px; color: #777770; font-size: 8px; }
.contribute-rows h2 { margin: 0 0 8px; font-size: 16px; font-weight: 540; letter-spacing: -.02em; }
.contribute-rows p { max-width: 660px; margin: 0; color: #96968f; font-size: 11px; line-height: 1.95; }
.contribute-symbol { color: #73736b; transition: transform .2s, color .2s; }
.contribute-rows article:hover .contribute-symbol { color: var(--ink); transform: translate(2px,-2px); }
.contribution-note { padding: 72px 0 80px; border-top: 1px solid var(--line); background: #0e0e0d; }
.contribution-note-inner { display: flex; align-items: end; justify-content: space-between; gap: 50px; }
.contribution-note h2 { margin-bottom: 18px; }
.contribution-note p:not(.overline) { max-width: 490px; margin: 0; color: #91918a; font-size: 11px; line-height: 1.95; }
.contribution-note .button { flex: 0 0 auto; }
.contribution-note-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(310px, .75fr); align-items: stretch; gap: clamp(36px, 6vw, 88px); }
.contribution-source { min-width: 0; }
.contribution-source > p:not(.overline) { max-width: 560px; }
.repo-address { display: flex; align-items: center; gap: 12px; width: fit-content; max-width: 100%; margin-top: 25px; padding: 11px 0; color: #c4c4bd; border-bottom: 1px solid #44443e; font: 10px/1.5 var(--mono); overflow-wrap: anywhere; transition: color .18s, border-color .18s; }
.repo-address:hover { color: var(--ink); border-color: var(--ink); }
.repo-address-mark { display: inline-grid; width: 26px; height: 26px; place-items: center; flex: 0 0 auto; border: 1px solid #454540; color: var(--ink); font-size: 8px; }
.repo-address-arrow { margin-left: 4px; color: #777770; font-size: 13px; }
.contribution-repo-button { margin-top: 24px; }
.contribution-contact { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; padding: 30px; border: 1px solid #393934; background: #0a0a0a; }
.contribution-contact .overline { margin-bottom: 25px; }
.contribution-contact h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.2; font-weight: 540; letter-spacing: -.04em; }
.contribution-contact > p:not(.overline) { max-width: 420px; }
.contact-email { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; color: var(--ink); font-size: 13px; border-bottom: 1px solid #66665f; padding-bottom: 7px; overflow-wrap: anywhere; transition: border-color .18s; }
.contact-email:hover { border-color: var(--ink); }
.contact-email span { color: #82827a; }
.contact-button { margin-top: 25px; }
.contribution-note-inner > .contribution-contact { align-self: stretch; }

/* Footer */
.site-footer { border-top: 1px solid #282824; }
.footer-main { display: grid; grid-template-columns: 1fr .7fr .8fr; gap: 55px; padding-top: 46px; padding-bottom: 48px; }
.footer-anix { font-size: 36px; line-height: .9; font-weight: 760; letter-spacing: -.1em; }
.footer-anix span { color: #777770; }
.footer-identity p { margin: 16px 0 0; color: #7f7f78; font-size: 10px; line-height: 1.9; }
.footer-identity p a { color: #d0d0c9; border-bottom: 1px solid #44443e; }
.footer-label { display: block; margin-bottom: 14px; color: #66665f; font-size: 8px; }
.footer-navigation { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-navigation > a { color: #a7a7a0; font-size: 10px; transition: color .18s; }
.footer-navigation > a:hover { color: white; }
.footer-note p { max-width: 280px; margin: 0 0 15px; color: #7f7f78; font-size: 10px; line-height: 1.9; }
.footer-note > a { color: #c9c9c2; font: 8px var(--mono); letter-spacing: .08em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 58px; border-top: 1px solid #242420; color: #62625b; font-size: 7px; }
.footer-bottom a { color: #a5a59e; transition: color .18s; }
.footer-bottom a:hover { color: white; }

/* Motion is deliberately quiet and never hides content when JS is off. */
.js [data-reveal], .js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.js [data-reveal].is-visible, .js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.layer-detail h2, #layer-description, #layer-note { transition: opacity .14s ease; }
.group-brand:focus-visible, .site-nav a:focus-visible, a:focus-visible, button:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

@media (max-width: 1050px) {
  .wrap { width: calc(100% - 56px); }
  .site-header { padding-inline: 28px; gap: 25px; }
  .group-subline { letter-spacing: .55px; }
  .site-nav { gap: 18px; }
  .home-hero { gap: 37px; padding-top: 75px; }
  .hero-word { font-size: clamp(95px, 13vw, 145px); }
  .project-sheet { padding-inline: 17px; }
  .sheet-footnote { margin-inline: -17px; padding-inline: 17px; }
  .schematic-row { grid-template-columns: 22px 1fr; }
  .schematic-state { grid-column: 2; text-align: left; padding-bottom: 9px; }
  .schematic-row { padding-top: 8px; }
  .schematic-name { align-self: end; }
  .schematic-num { grid-row: span 2; }
  .architecture-layout { gap: 45px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 72px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 69px; padding-inline: 20px; gap: 14px; }
  .group-brand { gap: 9px; }
  .group-mark { width: 20px; height: 23px; padding-left: 6px; }
  .group-name { font-size: 12px; }
  .group-subline { font-size: 6px; letter-spacing: .55px; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; margin-left: auto; padding: 8px; border: 1px solid #3b3b36; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 68px; right: 0; left: 0; margin: 0; padding: 8px 20px 16px; border-bottom: 1px solid var(--line); background: #0b0b0b; }
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { min-height: 44px; border-bottom: 1px solid #21211e; font-size: 12px; }
  .site-nav a::after { display: none; }
  .site-nav a[data-repo-link] { border-left: 0; padding-left: 0; }
  .home-hero { grid-template-columns: 1fr; gap: 45px; padding-top: 64px; padding-bottom: 46px; min-height: auto; }
  .hero-word { margin-left: -4px; font-size: clamp(104px, 23vw, 155px); }
  .hero-subtitle { font-size: clamp(30px, 7.3vw, 39px); }
  .hero-description { max-width: 570px; }
  .hero-index { margin-top: 34px; }
  .project-sheet { width: 100%; max-width: 570px; }
  .schematic-row { grid-template-columns: 28px 1fr auto; padding: 0 12px; }
  .schematic-num { grid-row: auto; }
  .schematic-name { align-self: center; }
  .schematic-state { grid-column: auto; align-self: center; padding-bottom: 0; text-align: right; }
  .spec-bar-inner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .spec-intro { min-height: 53px; padding-left: 12px; border-left: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .spec-item { min-height: 70px; }
  .section { padding-top: 75px; padding-bottom: 83px; }
  .statement-layout, .principles-intro, .roadmap-intro, .architecture-layout, .reference-layout { grid-template-columns: 1fr; display: grid; gap: 29px; }
  .statement-layout { margin-top: 31px; }
  .statement-layout h2, .principles-intro h2, .roadmap-intro h2, .closing-inner h2, .reference-layout h2, .contribution-note h2 { font-size: clamp(36px, 8vw, 49px); }
  .statement-copy { max-width: 570px; }
  .principles-section { padding: 66px 0 76px; }
  .principles-intro { margin: 30px 0 29px; gap: 18px; }
  .principle-table article { grid-template-columns: 34px 1fr 20px; gap: 14px; }
  .roadmap-preview-section { padding-top: 76px; padding-bottom: 82px; }
  .roadmap-intro { margin: 30px 0 30px; gap: 20px; }
  .roadmap-intro > .underlined-link { justify-self: start; margin-top: 0; }
  .roadmap-mini a { grid-template-columns: 28px 1fr 20px; gap: 11px; padding: 17px 0; }
  .roadmap-mini small { grid-column: 2; grid-row: 2; }
  .roadmap-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .closing-inner { align-items: flex-start; flex-direction: column; gap: 27px; padding-top: 57px; padding-bottom: 62px; }
  .closing-action { width: 100%; max-width: 420px; }
  .page-hero { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; padding-bottom: 49px; }
  .breadcrumbs { margin-bottom: 27px; }
  .page-hero h1 { font-size: clamp(43px, 9.2vw, 61px); }
  .page-stamp { justify-self: start; display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px; max-width: 100%; padding: 10px 0 0; border-left: 0; border-top: 1px solid #33332e; }
  .page-stamp strong { margin: 0; font-size: 21px; }
  .page-stamp > div { display: none; }
  .page-stamp p { grid-column: 1 / -1; }
  .architecture-interactive { padding-top: 65px; padding-bottom: 75px; }
  .architecture-layout { margin-top: 30px; gap: 32px; }
  .layer-map { padding-inline: 13px; }
  .map-topline { font-size: 6px; }
  .reference-layout { margin-top: 29px; gap: 20px; }
  .reference-layout h2 { font-size: 38px; }
  .roadmap-body, .contribute-body { padding-top: 65px; padding-bottom: 76px; }
  .roadmap-item { grid-template-columns: 33px minmax(0,1fr); gap: 15px; padding: 24px 0 27px; }
  .roadmap-status { grid-column: 2; justify-self: start; text-align: left; padding: 0; }
  .roadmap-content ul { grid-template-columns: 1fr; gap: 7px; }
  .roadmap-title { gap: 8px 13px; }
  .roadmap-title h2 { font-size: 16px; }
  .contribute-rows article { grid-template-columns: 1fr 20px; gap: 10px; }
  .contribute-index { grid-column: 1 / -1; }
  .contribute-rows h2 { font-size: 15px; }
  .contribution-note { padding: 58px 0 65px; }
  .contribution-note-inner { grid-template-columns: 1fr; align-items: stretch; gap: 32px; }
  .contribution-contact { padding: 24px; }
  .repo-address { font-size: 9px; }
  .contact-email { font-size: 12px; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 35px 24px; padding-top: 37px; padding-bottom: 37px; }
  .footer-note { grid-column: 1 / -1; }
  .footer-bottom { min-height: 62px; flex-wrap: wrap; gap: 7px 15px; padding: 15px 0; line-height: 1.7; }
  .footer-bottom span:nth-child(2) { order: 3; width: 100%; }
}
@media (max-width: 390px) {
  .group-subline { max-width: 160px; white-space: normal; line-height: 1.4; }
  .hero-index { gap: 7px; font-size: 7px; }
  .hero-index span + span { padding-left: 7px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .schematic-row { grid-template-columns: 22px 1fr; gap: 8px; padding-top: 7px; padding-bottom: 7px; }
  .schematic-state { grid-column: 2; text-align: left; }
  .schematic-num { grid-row: span 2; }
  .spec-intro, .spec-item { padding-inline: 9px; }
  .spec-item strong { font-size: 9px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .footer-navigation { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .reveal { opacity: 1; transform: none; }
}
