@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./fonts/inter/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/inter/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("./fonts/inter/inter-latin-800-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Big Shoulders";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/big-shoulders/big-shoulders-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Big Shoulders";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("./fonts/big-shoulders/big-shoulders-latin-800-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Libre Franklin";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./fonts/libre-franklin/libre-franklin-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Libre Franklin";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("./fonts/libre-franklin/libre-franklin-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Libre Franklin";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/libre-franklin/libre-franklin-latin-700-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("./fonts/martian-mono/martian-mono-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("./fonts/martian-mono/martian-mono-latin-700-normal.woff2") format("woff2");
}
:root {
    --ink: #232c22;
    --paper: #ffffff;
    --contrast-paper: rgb(247 246 245);
    --panel: #ffffff;
    --line-strong: rgba(33, 40, 55, 0.22);
    --accent: #62835d;
    --accent-light: #99b796;
    --accent-faded: #62835db8;
    --marigold: #fce8b8;
    --muted: #2128377d;
    --line: rgba(33, 40, 55, 0.16);
    --green: #66842f;
    --notes-fill: #fffbec;
    --notes-accent: #f4b41a;
    --notes-surface: #FFFFFF;
    --hover-background: rgb(45 90 39 / 8%);
    --shadow-color: rgb(35 44 34 / 10%);
    --shadow: 3px 4px 5px var(--shadow-color);
    --modal-accent: #e9ece9;
    --gutter-line-color: color-mix(in oklab, #000 8%, transparent);
    --topbar-background: var(--paper);
    --section-background: var(--contrast-paper);
    --page-background: var(--paper);
    --doc-pad: 24px;
    --doc-gap: 16px;
    --doc-gap-sm: 12px;
    --doc-gap-lg: 20px;
    --grid-size: 32px;
    --grid-columns-max: 45;
    --grid-columns: min(
        round(calc(100vw / var(--grid-size) - 3)),
        var(--grid-columns-max)
    );
    --content-no-borders: calc(var(--grid-size) * var(--grid-columns));
    --content-width: calc(var(--content-no-borders) + 2px);
    --topbar-height: calc(var(--grid-size) * 2);
    --mono: "Martian Mono", "Roboto Mono", "Courier New", monospace;
    --sans:
        "Libre Franklin", ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display: "Big Shoulders", "Libre Franklin", sans-serif;
    --heading: "Inter", "Libre Franklin", ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--topbar-height);
}

body {
    margin: 0;
    line-height: 1.5;
    color: var(--ink);
    font-family: var(--sans);
    background: var(--page-background);
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

img,
picture,
video,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-family: var(--heading);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: var(--topbar-height);
    padding: 0;
    background: var(--topbar-background);
    backdrop-filter: blur(14px);
    font: 11px/1 var(--mono);
    text-transform: uppercase;
    border-bottom: 1px solid var(--gutter-line-color);
}
.topbar-inner {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
    min-height: var(--topbar-height);
    max-width: 100%;
    padding-inline: var(--grid-size);
    width: var(--content-width);
    margin-inline: auto;
    border-left: 1px solid var(--gutter-line-color);
    border-right: 1px solid var(--gutter-line-color);
    background: var(--section-background);
}

.topbar-inner::before,
.topbar-inner::after {
    content: "";
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    background: var(--gutter-line-color);
}

.topbar-inner::before {
    left: calc(var(--grid-size) * -1);
}
.topbar-inner::after {
    right: calc(var(--grid-size) * -1);
}

.top-left {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
}

.top-center {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

/* Ground-mark + live display-face wordmark. */
.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    text-transform: none;
}

.wordmark svg {
    flex: none;
}

.wordmark span {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.02em;
}

.menu-strip {
    display: flex;
    align-items: center;
    gap: 2px;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-strip a {
    padding: 7px 8px;
    font: 11px/1 var(--mono);
    text-transform: none;
}

.menu-strip a:hover,
.menu-strip a:focus-visible {
    color: var(--panel);
    background: var(--accent);
    outline: 0;
    box-shadow: inset 0 -2px 0 var(--accent);
}

.top-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 8px;
}

.top-actions a,
.top-actions button {
    border: 1px solid var(--ink);
    padding: 8px 9px;
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.top-actions a:hover,
.top-actions a:focus-visible,
.top-actions button:hover,
.top-actions button:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

.topbar-menu-actions {
    display: none;
}

.topbar-menu-toggle {
    display: none;
    border: 1px solid var(--ink);
    padding: 8px 9px;
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.topbar-menu-toggle:hover,
.topbar-menu-toggle:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

@media (max-width: 760px) {
    .top-center {
        display: none;
    }

    .topbar-menu-toggle {
        display: inline-block;
    }

    .top-actions button[data-modal] {
        display: none;
    }

    .topbar--nav-open .top-center {
        display: block;
        position: absolute;
        top: 100%;
        left: -1px;
        right: -1px;
        z-index: 30;
        border: 1px solid var(--gutter-line-color);
        border-top: 0;
        background: var(--paper);
    }

    .topbar--nav-open .menu-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .topbar--nav-open .menu-strip a {
        padding: 14px var(--grid-size);
        border-top: 1px solid var(--line);
    }

    .topbar--nav-open .topbar-menu-actions {
        display: block;
        padding: 14px var(--grid-size) 16px;
        border-top: 1px solid var(--line);
    }

    .topbar-menu-actions button {
        width: 100%;
        border: 1px solid var(--ink);
        padding: 13px;
        background: transparent;
        cursor: pointer;
        font: 11px/1 var(--mono);
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .topbar-menu-actions button:hover,
    .topbar-menu-actions button:focus-visible {
        background: var(--ink);
        color: var(--panel);
    }
}

.hero,
section {
    padding: var(--grid-size);
    margin: var(--grid-size);
    width: var(--content-width);
    margin-inline: auto;
}

section {
    background: var(--section-background);
    position: relative;
    display: flex;
}

.hero {
    margin-top: 0;
    background: var(--page-background);
}

section:not(.hero) .section-inner {
    width: 100%;
}

section::before,
section::after {
    content: "";
    position: absolute;
    top: 0;
    width: var(--grid-size);
    height: calc(100% + var(--grid-size) * 1);
    background:
        linear-gradient(90deg, var(--gutter-line-color) 1px, transparent 1px),
        linear-gradient(
            90deg,
            transparent calc(100% - 1px),
            var(--gutter-line-color) 1px
        );
}

section::after {
    right: calc(var(--grid-size) * -1 + 1px);
}

section::before {
    left: calc(var(--grid-size) * -1 + 1px);
}

section:last-child::before,
section:last-child::after {
    height: calc(100% + var(--grid-size) * 2);
}

.section-inner {
    position: relative;
}

section.hero .section-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: var(--grid-size);
    align-items: center;
    width: 100%;
    min-height: calc(
        100svh - var(--topbar-height) - var(--grid-size) * 2
    );
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
}

section .section-inner::before {
    content: "";
    position: absolute;
    left: calc(var(--grid-size) * -3);
    top: calc(var(--grid-size) * -2);
    height: var(--grid-size);
    width: calc(100% + var(--grid-size) * 6);
    background:
        linear-gradient(0deg, var(--gutter-line-color) 1px, transparent 1px),
        linear-gradient(
            0deg,
            transparent calc(100% - 1px),
            var(--gutter-line-color) 1px
        );
}

section.last:last-child .section-inner::after {
    content: "";
    position: absolute;
    right: calc(var(--grid-size) * -3);
    bottom: calc(var(--grid-size) * -2);
    height: var(--grid-size);
    width: calc(100% + var(--grid-size) * 6);
    background:
        linear-gradient(0deg, var(--gutter-line-color) 1px, transparent 1px),
        linear-gradient(
            0deg,
            transparent calc(100% - 1px),
            var(--gutter-line-color) 1px
        );
}

section:not(.last):last-child {
    margin-bottom: 0;
}
section:not(.last):last-child::before,
section:not(.last):last-child::after {
    height: 100%;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 var(--doc-gap-sm);
    color: var(--muted);
    font: 11px/1.3 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-kicker {
    color: var(--muted);
    font-weight: 700;
}



.section-inner h1 {
    max-width: 780px;
    font-size: clamp(42px, 5.9vw, 72px);
    line-height: 0.94;
    letter-spacing: -0.055em;
}

.hero-statement {
    max-width: 670px;
    margin: 17px 0 21px;
    color: var(--accent);
    font-family: var(--heading);
    font-size: clamp(23px, 2.7vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-sub {
    max-width: 520px;
    margin: 14px 0 0;
    color: #4a5060;
    font: 17px/1.5 var(--sans);
}

.hero-sub strong {
    color: var(--ink);
    font-weight: 800;
}

.hero-sub span {
    display: block;
    margin-top: 8px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: var(--doc-gap-lg);
}

.hero-actions a,
.hero-actions button {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ink);
    padding: 13px 15px;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--panel);
}

.hero-actions a:hover,
.hero-actions a:focus-visible,
.hero-actions button:hover,
.hero-actions button:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

.hero-actions .primary {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.hero-actions .primary:hover,
.hero-actions .primary:focus-visible {
    color: #fff;
    background: var(--accent-light);
    border-color: var(--accent-light);
}

/* ---------- hero: rotating word ---------- */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Width is set from JS per word so the rest of the line glides instead of
   jumping. clip-path masks the sliding words to the box without disturbing
   the inline-block baseline the way overflow: hidden would. */
.hero-rotator {
    display: inline-block;
    white-space: nowrap;
    vertical-align: baseline;
    clip-path: inset(-0.08em 0 -0.18em 0);
    transition: width 0.38s cubic-bezier(0.3, 0.7, 0.2, 1);
}

.hero-rotator-word {
    display: inline-block;
    transition:
        transform 0.24s ease,
        opacity 0.24s ease;
}

.hero-rotator-word.is-leaving {
    opacity: 0;
    transform: translateY(0.42em);
}

.hero-rotator-word.is-entering {
    opacity: 0;
    transform: translateY(-0.42em);
    transition: none;
}

.hero-rotator-measure {
    position: absolute;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
}

/* ---------- hero: grounding stage ---------- */

/* One 3.4s cycle shared by every part of the stage: the word chip drops onto
   the stem (0–20%), dwells (20–64%), then sinks into the ground bars (64–76%)
   while the bars pulse the energy downward. JS swaps the words in sync via
   the chip's animationiteration event. */

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.ground-stage {
    position: relative;
    width: 100%;
    max-width: 460px;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gs-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(var(--gutter-line-color) 1px, transparent 1px) 0 0 /
            var(--grid-size) var(--grid-size),
        linear-gradient(90deg, var(--gutter-line-color) 1px, transparent 1px)
            50% 0 / var(--grid-size) var(--grid-size);
    -webkit-mask-image: radial-gradient(
        75% 70% at 50% 52%,
        #000 40%,
        transparent 75%
    );
    mask-image: radial-gradient(75% 70% at 50% 52%, #000 40%, transparent 75%);
}

.gs-glyph {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 460px;
}

.gs-guide {
    position: absolute;
    left: 50%;
    top: 18px;
    width: 2px;
    height: 138px;
    margin-left: -1px;
    background: repeating-linear-gradient(
        180deg,
        var(--accent-light) 0 5px,
        transparent 5px 11px
    );
    opacity: 0;
    animation: gs-guide-cycle 3.4s infinite;
}

.gs-chip-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 156px;
    height: 96px;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.gs-chip {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border: 1px solid var(--ink);
    background: var(--panel);
    box-shadow: 4px 5px 0 var(--shadow-color);
    color: var(--accent);
    transform-origin: 50% 100%;
    will-change: transform;
    animation: gs-chip-cycle 3.4s infinite;
}

.gs-chip svg {
    display: none;
    width: 56px;
    height: 56px;
}

.gs-chip svg.is-active {
    display: block;
}

.gs-stem {
    position: absolute;
    left: 50%;
    top: 252px;
    width: 28px;
    height: 62px;
    margin-left: -14px;
    background: var(--accent);
    z-index: 1;
    animation: gs-stem-cycle 3.4s infinite;
}

.gs-bars {
    position: absolute;
    left: 0;
    right: 0;
    top: 312px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    z-index: 3;
}

.gs-bar {
    height: 32px;
    background: var(--accent);
    animation: gs-bar-cycle 3.4s infinite;
}

.gs-bar:nth-child(1) {
    width: 280px;
}

.gs-bar:nth-child(2) {
    width: 172px;
    animation-delay: 0.11s;
}

.gs-bar:nth-child(3) {
    width: 68px;
    animation-delay: 0.22s;
}

.gs-ripple {
    position: absolute;
    left: 50%;
    top: 312px;
    width: 180px;
    height: 48px;
    margin: -24px 0 0 -90px;
    border: 1.5px solid var(--accent-light);
    border-radius: 50%;
    opacity: 0;
    z-index: 0;
    animation: gs-ripple-cycle 3.4s infinite;
}

.gs-sparks {
    position: absolute;
    left: 50%;
    top: 248px;
}

.gs-sparks::before,
.gs-sparks::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 0;
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    background: var(--accent-light);
    opacity: 0;
}

.gs-sparks::before {
    animation: gs-spark-left 3.4s infinite;
}

.gs-sparks::after {
    animation: gs-spark-right 3.4s infinite;
}

@keyframes gs-chip-cycle {
    0% {
        transform: translateY(-140px);
        opacity: 0;
        animation-timing-function: cubic-bezier(0.5, 0, 0.85, 0.6);
    }
    4% {
        opacity: 1;
    }
    16% {
        transform: translateY(8px);
        animation-timing-function: cubic-bezier(0.3, 0.6, 0.4, 1);
    }
    20% {
        transform: translateY(0);
    }
    64% {
        transform: translateY(0);
        opacity: 1;
        animation-timing-function: cubic-bezier(0.6, -0.15, 0.8, 0.6);
    }
    76%,
    100% {
        transform: translateY(130px) scale(0.55);
        opacity: 0;
    }
}

@keyframes gs-bar-cycle {
    0%,
    17% {
        transform: none;
        background: var(--accent);
    }
    20% {
        transform: translateY(3px);
    }
    25%,
    64% {
        transform: none;
        background: var(--accent);
    }
    69% {
        transform: scaleX(1.05);
        background: var(--accent-light);
    }
    76%,
    100% {
        transform: none;
        background: var(--accent);
    }
}

@keyframes gs-guide-cycle {
    0% {
        height: 0;
        opacity: 0.85;
        animation-timing-function: cubic-bezier(0.5, 0, 0.85, 0.6);
    }
    16%,
    20% {
        height: 138px;
        opacity: 0.85;
    }
    34%,
    100% {
        height: 138px;
        opacity: 0;
    }
}

@keyframes gs-stem-cycle {
    0%,
    62% {
        background: var(--accent);
    }
    67% {
        background: var(--accent-light);
    }
    74%,
    100% {
        background: var(--accent);
    }
}

@keyframes gs-ripple-cycle {
    0%,
    15% {
        opacity: 0;
        transform: scale(0.4);
    }
    19% {
        opacity: 0.5;
        transform: scale(0.55);
    }
    32% {
        opacity: 0;
        transform: scale(1.15);
    }
    33%,
    66% {
        opacity: 0;
        transform: scale(0.45);
    }
    71% {
        opacity: 0.7;
        transform: scale(0.6);
    }
    92%,
    100% {
        opacity: 0;
        transform: scale(1.8, 1.55);
    }
}

@keyframes gs-spark-left {
    0%,
    18% {
        opacity: 0;
        transform: translate(0, 0);
    }
    20% {
        opacity: 1;
    }
    34%,
    100% {
        opacity: 0;
        transform: translate(-56px, -28px) rotate(-90deg);
    }
}

@keyframes gs-spark-right {
    0%,
    18% {
        opacity: 0;
        transform: translate(0, 0);
    }
    20% {
        opacity: 1;
    }
    34%,
    100% {
        opacity: 0;
        transform: translate(56px, -32px) rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-chip,
    .gs-guide,
    .gs-stem,
    .gs-bar,
    .gs-ripple,
    .gs-sparks::before,
    .gs-sparks::after {
        animation: none;
    }

    .hero-rotator {
        transition: none;
    }

    .hero-rotator-word {
        transition: none;
    }
}

.access-rules-panel > p,
.access-log-panel > p,
.permission-title {
    margin: 0 0 var(--doc-gap-sm);
    color: var(--muted);
    font: 11px/1.3 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-copy {
    max-width: 850px;
}

.section-copy h2,
.final-cta h2 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 5vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.section-copy > p:not(.section-kicker),
.final-cta p:not(.section-kicker) {
    max-width: 670px;
    margin: var(--doc-gap-lg) 0 0;
    color: #4a5060;
    font: 18px/1.5 var(--sans);
}

.access-proof-grid {
    display: grid;
    grid-template-columns: minmax(200px, 295px) minmax(310px, 1fr) minmax(
            260px,
            0.82fr
        );
    gap: var(--doc-gap-lg);
    margin-top: var(--doc-gap-lg);
    align-items: start;
}

.access-rules-panel,
.access-request-panel,
.access-log-panel {
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.access-rules-panel,
.access-log-panel {
    padding: var(--doc-gap);
}

.access-rules-panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font: 12px/1.45 var(--mono);
}

.access-rules-panel li {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.access-rules-panel li b {
    display: inline-block;
    width: 28px;
    color: var(--accent);
    font-weight: 400;
}

.access-rules-panel li::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border: 1px solid var(--ink);
    background: var(--accent);
    transform: translateY(-1px);
}

.access-request-panel .permission-box {
    margin: 0;
    border: 0;
    box-shadow: none;
}

.permission-box {
    display: grid;
    gap: 10px;
    padding: 14px;
    box-shadow: inset 4px 0 0 var(--accent);
}

.permission-title {
    margin-bottom: 0;
}

.permission-box h3 {
    margin: 0 0 4px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.request-state {
    justify-self: start;
    padding: 5px 7px;
    border: 1px solid var(--ink);
    color: var(--ink);
    background: var(--marigold);
    font: 700 10px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.scope-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font: 12px/1.3 var(--mono);
}

.scope-row b {
    color: var(--muted);
    font-weight: 400;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.scope-note {
    margin: 0;
    color: var(--accent);
    font: 11px/1.35 var(--mono);
}

.permission-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.permission-actions button {
    border: 1px solid var(--ink);
    padding: 9px 12px;
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.permission-actions button:hover,
.permission-actions button:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

.permission-actions button:disabled {
    cursor: default;
    opacity: 0.42;
}

.permission-actions button:disabled:hover {
    color: inherit;
    background: transparent;
}

.log-list {
    margin: 0;
    padding: 0;
    list-style: none;
    font: 12px/1.5 var(--mono);
}

.log-list li {
    display: grid;
    grid-template-columns: 6px 44px minmax(0, 1fr);
    align-items: baseline;
    column-gap: 8px;
    padding: var(--doc-gap-sm) var(--doc-gap);
    border-bottom: 1px solid var(--line);
}

.log-list li::before {
    content: none;
}

.log-list li i {
    display: block;
    width: 6px;
    height: 6px;
    border: 1px solid var(--ink);
    background: var(--accent);
    transform: translateY(-1px);
}

.log-list time {
    color: var(--muted);
}

@media (max-width: 820px) {
    .access-proof-grid {
        grid-template-columns: 1fr;
    }
}

.split-section .section-inner {
    display: grid;
    grid-template-columns: minmax(280px, 400px) auto;
    gap: var(--grid-size);
    align-items: start;
    justify-content: stretch;
}

.split-section .section-copy {
    text-align: right;
    width: 100%;
    max-width: none;
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
}

.split-section .section-copy > p:not(.section-kicker),
.split-section .section-copy h2 {
    align-self: end;
}

.system-note-panel {
    display: grid;
    gap: 0;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.system-note-panel p {
    margin: 0;
    padding: var(--doc-gap);
    border-bottom: 1px solid var(--line-strong);
    color: var(--muted);
    font: 11px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-note-panel span {
    padding: var(--doc-gap);
    border-bottom: 1px solid var(--line);
    font: 13px/1.4 var(--mono);
}

.system-note-panel span:last-child {
    border-bottom: 0;
}

.route-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: var(--doc-gap-lg);
    border: 1px solid var(--line-strong);
    border-right: 0;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.route-card {
    position: relative;
    appearance: none;
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    min-height: 210px;
    padding: 16px;
    border: 0;
    border-right: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background:
        linear-gradient(var(--line), var(--line)) 16px calc(100% - 24px) /
            calc(100% - 32px) 1px no-repeat,
        transparent;
}

.route-card::before {
    content: "";
    position: absolute;
    right: 16px;
    top: 16px;
    width: 36px;
    height: 26px;
    border: 1px solid var(--ink);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.route-card::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 10px;
    width: 18px;
    height: 7px;
    border: 1px solid var(--ink);
    border-bottom: 0;
    background: var(--panel);
}

.route-card:hover,
.route-card:focus-visible {
    background-color: var(--hover-background);
}

.route-card:hover::before,
.route-card:focus-visible::before,
.route-card:hover::after,
.route-card:focus-visible::after {
    border-color: var(--accent);
}

.route-strip span {
    display: block;
    margin-bottom: 26px;
    color: var(--muted);
    font: 10px/1.2 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.route-strip strong {
    display: block;
    max-width: calc(100% - 58px);
    font-family: var(--heading);
    font-weight: 800;
    font-size: 22px;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.route-strip p {
    margin: var(--doc-gap-sm) 0 0;
    color: #4a5060;
    font: 14px/1.5 var(--sans);
}

.folder-layer .section-inner {
    display: grid;
    grid-template-columns: minmax(453px, 1fr) minmax(543px, max-content);
    gap: clamp(28px, 5vw, 76px);
    align-items: center;
}

.folder-layer .section-copy {
    text-align: right;
    width: 100%;
    max-width: none;
    justify-self: end;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: end;
}

.folder-layer .desktop-icons {
    width: max-content;
    max-width: 100%;
    margin-top: 0;
    justify-self: start;
    grid-template-columns: repeat(3, 124px);
}

.desktop-icons {
    display: grid;
    grid-template-columns: repeat(5, 124px);
    gap: 24px 20px;
    width: max-content;
    margin-top: 28px;
    padding: 14px 12px 12px;
    border: 1px solid var(--line-strong);
    background: var(--panel);
    box-shadow: var(--shadow);
    justify-self: auto;
}

.desktop-icons::before {
    content: "groundware / choose a path";
    grid-column: 1 / -1;
    margin: -2px 0 2px;
    color: var(--muted);
    font: 10px/1 var(--mono);
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.desktop-icons::after {
    content: none;
    display: none;
}

.desktop-icon {
    position: relative;
    appearance: none;
    width: 124px;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 6px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: center;
    font: 15px/1.16 var(--mono);
    text-transform: none;
    transition:
        background 0.16s ease,
        border-color 0.16s ease,
        color 0.16s ease,
        transform 0.16s ease;
}

.desktop-icon > span:not(.icon-shape) {
    width: 100%;
    max-width: 100%;
    min-height: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.desktop-icon small {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 7px auto 0;
    color: var(--muted);
    opacity: 1;
    white-space: normal;
    overflow-wrap: anywhere;
    font: 12px/1.18 var(--mono);
    text-transform: none;
    transition: opacity 0.18s ease;
}

.desktop-icon:hover,
.desktop-icon:focus-visible {
    border-color: var(--accent);
    background: var(--hover-background);
}

.desktop-icon:hover .icon-shape,
.desktop-icon:focus-visible .icon-shape {
    border-color: var(--accent);
    box-shadow: 4px 5px 0 rgba(43, 127, 255, 0.18);
}

.desktop-icon:hover > span:not(.icon-shape),
.desktop-icon:focus-visible > span:not(.icon-shape) {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.icon-shape {
    position: relative;
    display: block;
    width: 62px;
    height: 50px;
    flex: 0 0 50px;
    margin: 0 auto 10px;
    border: 1px solid var(--ink);
    background: var(--panel);
    box-shadow: 3px 3px 0 rgba(43, 127, 255, 0.12);
    transition:
        border-color 0.16s ease,
        box-shadow 0.16s ease,
        background 0.16s ease;
}

.folder .icon-shape::before {
    content: "";
    position: absolute;
    left: -1px;
    top: -9px;
    width: 27px;
    height: 8px;
    border: 1px solid var(--ink);
    border-bottom: 0;
    background: var(--panel);
}

.desktop-icon:hover.folder .icon-shape::before,
.desktop-icon:focus-visible.folder .icon-shape::before {
    border-color: var(--accent);
}

.file .icon-shape::after,
.log .icon-shape::after {
    content: "";
    position: absolute;
    inset: 10px 9px;
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.log .icon-shape {
    background: #d7ddca;
}

.start-icon .icon-shape::after {
    content: "01";
    position: absolute;
    right: 7px;
    top: 7px;
    color: var(--accent);
    font: 9px/1 var(--mono);
}

.access-icon .icon-shape {
    border: 2px solid var(--accent);
    background:
        linear-gradient(var(--accent), var(--accent)) 0 13px / 100% 1px
            no-repeat,
        var(--panel);
    box-shadow: 4px 5px 0 rgba(43, 127, 255, 0.18);
}

.access-icon .icon-shape::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 27px;
    width: 18px;
    height: 10px;
    border: 1px solid var(--ink);
    border-radius: 999px;
}

.access-icon .icon-shape::after {
    content: "";
    position: absolute;
    right: 10px;
    top: 2px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--ink);
    background: var(--accent);
}

.log-icon .icon-shape::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 15px;
    width: 31px;
    height: 1px;
    background: var(--line-strong);
    box-shadow:
        0 9px 0 var(--line-strong),
        0 18px 0 var(--line-strong);
}

.notes .icon-shape {
    background:
        linear-gradient(var(--notes-accent), var(--notes-accent)) 0 11px / 100%
            1px no-repeat,
        repeating-linear-gradient(
            var(--notes-fill) 0 10px,
            rgba(33, 40, 55, 0.22) 10px 11px
        );
}

.notes .icon-shape::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 17px;
    width: 31px;
    height: 1px;
    background: var(--line-strong);
    box-shadow: 0 9px 0 var(--line-strong);
}

.manifesto .icon-shape {
    background:
        linear-gradient(var(--line-strong), var(--line-strong)) 24px 15px / 24px
            1px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) 24px 26px / 26px
            1px no-repeat,
        linear-gradient(var(--line-strong), var(--line-strong)) 24px 37px / 22px
            1px no-repeat,
        var(--panel);
}

.manifesto-icon .icon-shape::after {
    content: "01\A 02\A 03";
    position: absolute;
    left: 9px;
    top: 12px;
    color: var(--muted);
    white-space: pre;
    font: 7px/11px var(--mono);
}

.manifesto-icon .icon-shape::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-left: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    background:
        linear-gradient(
            135deg,
            transparent 0 48%,
            var(--ink) 49% 53%,
            transparent 54%
        ),
        var(--paper);
}

.desktop-icon:hover.manifesto-icon .icon-shape::before,
.desktop-icon:focus-visible.manifesto-icon .icon-shape::before {
    border-left: 1px solid var(--accent);
    border-bottom: 1px solid var(--accent);
    background:
        linear-gradient(
            135deg,
            transparent 0 48%,
            var(--accent) 49% 53%,
            transparent 54%
        ),
        var(--paper);
}

.rooms-icon .icon-shape::after {
    content: "";
    position: absolute;
    left: 15px;
    top: 15px;
    width: 31px;
    height: 23px;
    background:
        linear-gradient(var(--line-strong), var(--line-strong)) 0 50% / 100% 1px
            no-repeat,
        linear-gradient(90deg, var(--line-strong), var(--line-strong)) 50% 0 /
            1px 100% no-repeat;
    border: 1px solid var(--line-strong);
}

.rooms-icon .icon-shape::before {
    width: 24px;
}

.final-cta .section-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.final-cta .primary {
    display: inline-block;
    margin-top: 22px;
    padding: 13px 15px;
    border: 1px solid var(--accent);
    color: #fff;
    background: var(--accent);
    text-decoration: none;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.final-cta .primary:hover,
.final-cta .primary:focus-visible {
    border-color: var(--accent-light);
    background: var(--accent-light);
}

@media (max-width: 1180px) {
    .split-section .section-inner,
    .folder-layer .section-inner {
        grid-template-columns: 1fr;
    }
    .folder-layer .section-copy,
    .split-section .section-copy {
        text-align: left;
        align-items: start;
    }

    .split-section .section-copy > p:not(.section-kicker),
    .split-section .section-copy h2 {
        align-self: start;
    }

    .folder-layer .desktop-icons {
        justify-self: center;
        margin-top: var(--doc-gap-lg);
    }

    .route-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desktop-icons {
        width: min(760px, 100%);
        grid-template-columns: repeat(5, minmax(112px, 124px));
        margin-top: 34px;
        justify-self: auto;
    }
}

@media (max-width: 820px) {
    .desktop-icons {
        grid-template-columns: repeat(3, minmax(112px, 1fr));
        margin-top: 38px;
        width: 100%;
    }
}
/* ---------- modals ---------- */

.window-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 39px;
    padding: 0 9px;
    border-bottom: 1px solid var(--ink);
    background: var(--modal-accent);
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.window-bar button {
    border: 1px solid var(--ink);
    background: var(--panel);
    cursor: pointer;
    font: 10px/1 var(--mono);
    text-transform: uppercase;
    padding: 7px 8px;
}

.window-bar button:hover,
.window-bar button:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

.file-path {
    margin: 0 0 var(--doc-gap-sm);
    padding-left: 9px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font: 10px/1 var(--mono);
}

.window-list {
    display: grid;
    margin: 0;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    background: var(--modal-accent);
}

.window-list span {
    padding: var(--doc-gap-sm) 0 var(--doc-gap-sm) 9px;
    border-left: 2px solid transparent;
    border-bottom: 1px solid var(--line);
    font: 13px/1.5 var(--mono);
}

.window-list span:hover {
    border-left-color: var(--accent);
    background: var(--hover-background);
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 18px;
    border: 0;
    background: transparent;
    overflow: visible;
    pointer-events: none;
}

.modal-backdrop[open]::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(33, 40, 55, 0.28);
    pointer-events: auto;
}

.modal-backdrop:not([open]) {
    display: none;
}

.modal-backdrop[open] {
    display: grid;
    place-items: center;
    pointer-events: auto;
}

.modal-backdrop[open] .modal {
    pointer-events: auto;
}

.modal {
    width: min(520px, 100%);
    border: 1px solid var(--ink);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.modal-body {
    padding: var(--doc-pad);
}

.modal-body p {
    margin: 0 0 var(--doc-gap);
    font: 14px/1.55 var(--mono);
}

.modal-body form {
    display: grid;
    gap: var(--doc-gap-sm);
}

.modal-body label {
    display: grid;
    gap: 6px;
    font: 11px/1.2 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    min-width: 0;
    width: 100%;
    border: 1px solid var(--ink);
    border-radius: 0;
    padding: 13px;
    background: transparent;
    outline: 0;
    color: var(--ink);
    text-transform: none;
}

.modal-body textarea {
    min-height: 86px;
    resize: vertical;
}

.modal-body form button {
    justify-self: start;
    padding: 13px 14px;
    border: 1px solid var(--ink);
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-body form button:hover,
.modal-body form button:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

.modal--info {
    width: min(940px, 90vw);
    max-height: 70vh;
    display: grid;
    grid-template-rows: auto 1fr;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.modal--info .modal-body {
    overflow: auto;
    min-height: 0;
}

.modal-body .modal-kicker {
    margin: 0 0 var(--doc-gap-sm);
    color: var(--muted);
    font: 11px/1.3 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-body .modal-heading {
    margin: 0 0 var(--doc-gap);
    font: 800 clamp(22px, 4vw, 30px) / 1.05 var(--heading);
    letter-spacing: -0.04em;
}

.modal-body .window-list {
    margin: var(--doc-gap) 0;
}

.modal-list-section {
    margin: var(--doc-gap) 0;
}

.modal-list-title {
    margin: 0 0 var(--doc-gap-sm);
    color: var(--muted);
    font: 11px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yours-layer-grid {
    display: grid;
    margin: 0;
    border: 1px solid var(--line-strong);
    background: var(--modal-accent);
}

.yours-layer-item {
    padding: 11px 11px 11px 13px;
    border-bottom: 1px solid var(--line);
    border-left: 2px solid var(--accent);
}

.yours-layer-item:last-child {
    border-bottom: 0;
}

.yours-layer-item strong {
    display: block;
    margin-bottom: 6px;
    font: 11px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.yours-layer-item span {
    color: #4a5060;
    font: 13px/1.45 var(--mono);
}

.modal-footer-note {
    margin: var(--doc-gap) 0 0;
    padding-top: var(--doc-gap-sm);
    border-top: 1px solid var(--line);
    font: 15px/1.45 var(--sans);
    letter-spacing: -0.01em;
}

.form-note {
    margin-top: var(--doc-gap-sm);
    color: var(--muted);
    font: 11px/1.5 var(--mono);
}

.confirmation-panel {
    display: grid;
    gap: 18px;
    font: 13px/1.5 var(--mono);
}

.confirmation-panel strong {
    font-weight: 400;
}

.next-panel {
    padding: 13px;
    border: 1px solid var(--line-strong);
    background: #e9ecf5;
}

.next-panel span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font: 10px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.next-panel ol {
    margin: 0;
    padding-left: 20px;
}

.next-panel li {
    margin: 7px 0;
}

/* ---------- modal window contents ---------- */

.modal--flush .modal-body {
    padding: 0;
}

.window-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: var(--doc-gap);
}

.window-action {
    border: 1px solid var(--ink);
    padding: 11px 13px;
    background: transparent;
    cursor: pointer;
    font: 11px/1 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.window-action:hover,
.window-action:focus-visible {
    background: var(--ink);
    color: var(--panel);
}

.modal-body .log-list {
    margin: var(--doc-gap) 0 0;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    background: var(--modal-accent);
}

.modal-body .permission-box {
    margin-top: var(--doc-gap);
    border: 1px solid var(--line-strong);
    background: var(--modal-accent);
}

.request-state.state-allowed {
    border-color: var(--green);
    color: var(--ink);
    background: rgba(155, 182, 95, 0.25);
}

.request-state.state-denied {
    border-color: var(--accent);
    color: var(--panel);
    background: var(--accent);
}

.request-state.state-revoked {
    border-color: var(--line-strong);
    color: var(--muted);
    background: rgba(33, 40, 55, 0.06);
}

.permission-result {
    display: none;
    padding: 12px;
    border-left: 4px solid var(--line-strong);
    background: rgba(33, 40, 55, 0.05);
    color: var(--ink);
    font: 12px/1.45 var(--mono);
}

.permission-result.show {
    display: block;
}

.permission-result.state-allowed {
    border-left-color: var(--green);
    background: rgba(155, 182, 95, 0.18);
}

.permission-result.state-denied {
    border-left-color: var(--accent);
    background: rgba(43, 127, 255, 0.095);
}

.permission-result.state-revoked {
    border-left-color: var(--muted);
    background: rgba(109, 114, 128, 0.12);
    color: var(--muted);
}

.tiny-manifesto {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line-strong);
    border-bottom: 0;
    background: var(--modal-accent);
}

.tiny-manifesto li {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: var(--doc-gap);
    align-items: start;
    border-bottom: 1px solid var(--line);
    padding: var(--doc-gap) var(--doc-pad);
    font-family: var(--mono);
}

.tiny-manifesto li span {
    color: var(--accent);
    font-weight: 800;
}

.tiny-manifesto li strong {
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: var(--doc-gap-lg) 0 0;
    border: 1px solid var(--line-strong);
    border-left: 0;
    border-bottom: 0;
    background: var(--modal-accent);
}

.room-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    padding: var(--doc-gap-sm);
    border-left: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
}

.room-card span {
    color: var(--muted);
    font: 10px/1 var(--mono);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.room-card h3 {
    margin: 18px 0 8px;
    font-size: 24px;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.room-card p {
    margin: 0;
    font-size: 11px;
}

.notes-app {
    display: grid;
    grid-template-columns: minmax(210px, 270px) 1fr;
    height: calc(70vh - 41px);
    min-height: 360px;
    background: var(--notes-surface);
}

.notes-sidebar {
    display: grid;
    align-content: start;
    overflow-y: auto;
    border-right: 1px solid var(--line-strong);
    background: var(--notes-fill);
}

.notes-sidebar > strong {
    padding: var(--doc-gap-sm) var(--doc-pad);
    border-bottom: 1px solid var(--line-strong);
    font: 11px/1 var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notes-sidebar button {
    border: 0;
    border-bottom: 1px solid rgba(33, 40, 55, 0.18);
    padding: var(--doc-gap-sm) var(--doc-pad);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    font: 13px/1.4 var(--sans);
}

.notes-sidebar button:hover,
.notes-sidebar button.selected {
    background: var(--hover-background);
}

.notes-sidebar button.selected {
    box-shadow: inset 3px 0 0 var(--accent);
}

.notes-sidebar button span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font: 9px/1 var(--mono);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.notes-sidebar button em {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font: 10px/1.4 var(--mono);
    opacity: 0.78;
}

.notes-readout {
    overflow: auto;
    min-height: 0;
}

.notes-readout .notes-pane[hidden] {
    display: none;
}

.notes-pane {
    overflow: auto;
    padding: var(--doc-pad);
}

.notes-pane > span {
    display: block;
    margin-bottom: var(--doc-gap-sm);
    color: var(--muted);
    font: 10px/1 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.notes-pane h3 {
    max-width: 560px;
    margin: 0 0 var(--doc-gap);
    font-size: clamp(22px, 2.25vw, 30px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.notes-pane p {
    max-width: 58ch;
    margin: 0 0 var(--doc-gap);
    color: #30342d;
    font: 15px/1.6 var(--sans);
}

.notes-pane p:last-child {
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .notes-app {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .notes-sidebar {
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--line-strong);
    }

    .notes-sidebar > strong {
        display: none;
    }

    .notes-sidebar button {
        flex: 0 0 200px;
        border-bottom: 0;
        border-right: 1px solid rgba(33, 40, 55, 0.18);
    }

    .notes-sidebar button.selected {
        box-shadow: inset 0 3px 0 var(--accent);
    }

    .notes-sidebar button em {
        display: none;
    }
}

/* ---------- folder layer responsiveness ---------- */

@media (max-width: 600px) {
    .folder-layer .desktop-icons {
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px 8px;
    }

    .desktop-icon {
        width: 100%;
        min-width: 0;
        padding-inline: 4px;
        font-size: 13px;
    }

    .desktop-icon > span:not(.icon-shape),
    .desktop-icon small {
        overflow-wrap: break-word;
    }

    .route-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 470px) {
    .folder-layer .desktop-icons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    section.hero .section-inner {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        margin-top: var(--doc-gap-lg);
    }
}

@media (max-width: 600px) {
    .ground-stage {
        padding: 8px 0;
    }

    .gs-glyph {
        transform: scale(0.8);
        transform-origin: top center;
        margin-bottom: -92px;
    }
}
