:root {
    --pine-900: #07110f;
    --pine-800: #0c1a17;
    --pine-700: #102923;
    --graphite: #11151a;
    --ink: #e8eee8;
    --muted: #a7b4ae;
    --faint: rgba(232, 238, 232, 0.68);
    --line: rgba(232, 238, 232, 0.16);
    --line-strong: rgba(232, 238, 232, 0.34);
    --signal: #f2b84b;
    --ice: #77d5d8;
    --moss: #90a777;
    --fog: #dfe7dc;
    --soil: #473a2f;
    --header-h: 72px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    background:
        linear-gradient(180deg, rgba(71, 58, 47, 0.12), transparent 340px),
        var(--pine-900);
    letter-spacing: 0;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    color: #17110a;
    background: var(--signal);
    font-weight: 700;
    transform: translateY(-140%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(18px, 4vw, 56px);
    color: rgba(255, 255, 255, 0.9);
    background: linear-gradient(180deg, rgba(7, 17, 15, 0.78), rgba(7, 17, 15, 0.28));
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.brand-mark,
.site-nav,
.hero-actions,
.site-footer {
    display: flex;
    align-items: center;
}

.brand-mark {
    gap: 12px;
    min-width: 0;
    font-weight: 700;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.brand-mark--logo {
    flex: 0 1 auto;
}

.brand-logo {
    width: clamp(180px, 20vw, 300px);
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}

.brand-mark__sigil {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
}

.brand-mark__sigil img {
    display: block;
    width: 34px;
    height: 34px;
}

.site-nav {
    gap: clamp(10px, 1.7vw, 26px);
    font-size: 0.82rem;
    color: var(--faint);
}

.site-nav a {
    position: relative;
}

.site-nav a,
.nav-action,
.inline-link {
    transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.inline-link:hover {
    color: var(--signal);
}

.site-nav a[aria-current="page"] {
    color: var(--ink);
}

.site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 1px;
    background: var(--signal);
}

.mobile-nav-toggle,
.mobile-nav {
    display: none;
}

.mobile-nav-toggle {
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    color: var(--ink);
    background: rgba(7, 17, 15, 0.74);
    cursor: pointer;
}

.mobile-nav-toggle span {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav a {
    position: relative;
    padding: 14px 0;
    color: var(--faint);
    font-size: 0.98rem;
    font-weight: 700;
    border-top: 1px solid var(--line);
}

.mobile-nav a:first-child {
    border-top: 0;
}

.mobile-nav a[aria-current="page"] {
    color: var(--ink);
}

.mobile-nav a[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 16px;
    bottom: 16px;
    width: 3px;
    background: var(--signal);
}

.nav-action {
    padding: 10px 14px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.82rem;
}

.nav-action:hover {
    border-color: var(--signal);
    transform: translateY(-1px);
}

.hero {
    position: relative;
    min-height: min(850px, 88vh);
    overflow: hidden;
    isolation: isolate;
    background: var(--pine-900);
}

.project-hero {
    position: relative;
    min-height: min(760px, 78vh);
    overflow: hidden;
    isolation: isolate;
    background: var(--pine-900);
}

.thesis-hero {
    position: relative;
    min-height: min(780px, 80vh);
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(71, 58, 47, 0.22), transparent 48%),
        var(--pine-900);
}

.build-hero {
    position: relative;
    min-height: min(760px, 78vh);
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(119, 213, 216, 0.08), transparent 46%),
        var(--pine-900);
}

.library-hero {
    position: relative;
    min-height: min(760px, 78vh);
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(135deg, rgba(144, 167, 119, 0.12), transparent 44%),
        var(--pine-900);
}

.redshift-hero {
    position: relative;
    min-height: 680px;
    height: 76vh;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(120deg, rgba(96, 34, 31, 0.42), rgba(7, 17, 15, 0.92) 42%, rgba(12, 26, 23, 0.96)),
        var(--pine-900);
}

.hero-canvas,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    z-index: -3;
}

.hero-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 17, 15, 0.95) 0%, rgba(7, 17, 15, 0.68) 42%, rgba(7, 17, 15, 0.2) 100%),
        linear-gradient(180deg, rgba(7, 17, 15, 0.18) 0%, rgba(7, 17, 15, 0.22) 62%, rgba(7, 17, 15, 0.92) 100%);
}

.hero-content {
    width: min(980px, calc(100% - 36px));
    padding: calc(var(--header-h) + 10vh) 0 4vh clamp(18px, 7vw, 96px);
}

.project-hero__content {
    width: min(820px, calc(100% - 36px));
    padding: calc(var(--header-h) + 12vh) 0 10vh clamp(18px, 7vw, 96px);
}

.redshift-hero__content {
    width: min(790px, calc(100% - 36px));
    padding: calc(var(--header-h) + 7vh) 0 5vh clamp(18px, 7vw, 96px);
}

.redshift-orbit-field {
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 17, 15, 0.92) 0%, rgba(7, 17, 15, 0.56) 44%, rgba(7, 17, 15, 0.18) 100%),
        linear-gradient(180deg, rgba(7, 17, 15, 0.12) 0%, rgba(7, 17, 15, 0.18) 58%, rgba(7, 17, 15, 0.94) 100%),
        repeating-linear-gradient(90deg, rgba(232, 238, 232, 0.055) 0 1px, transparent 1px 88px),
        repeating-linear-gradient(0deg, rgba(232, 238, 232, 0.035) 0 1px, transparent 1px 72px);
}

.redshift-orbit-field::before,
.redshift-orbit-field::after {
    content: "";
    position: absolute;
    right: clamp(28px, 8vw, 150px);
    top: calc(var(--header-h) + 5vh);
    width: min(640px, 54vw);
    aspect-ratio: 1.8 / 1;
    border: 1px solid rgba(242, 184, 75, 0.2);
    border-left-color: rgba(119, 213, 216, 0.28);
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-18deg);
}

.redshift-orbit-field::after {
    right: clamp(-10px, 3vw, 64px);
    top: calc(var(--header-h) + 22vh);
    width: min(780px, 62vw);
    border-color: rgba(119, 213, 216, 0.16);
    border-right-color: transparent;
    transform: rotate(-7deg);
}

.eyebrow,
.section-kicker {
    margin: 0 0 18px;
    color: var(--signal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;
    max-width: 12.4ch;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(4rem, 10.2vw, 10rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: 0;
}

h1 span {
    display: block;
}

.hero-brand-logo {
    width: min(980px, calc(100vw - 48px));
    height: auto;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 28px;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.38));
}

.redshift-hero h1 {
    max-width: 11.2ch;
    font-size: clamp(3.8rem, 8.8vw, 8.5rem);
}

.hero-copy {
    max-width: min(610px, 100%);
    color: rgba(232, 238, 232, 0.86);
    font-size: clamp(1.08rem, 2.1vw, 1.42rem);
    line-height: 1.5;
    overflow-wrap: break-word;
}

.hero-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #17110a;
    background: var(--signal);
    border-color: var(--signal);
}

.button-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.03);
}

.button-ghost:hover {
    border-color: var(--moss);
    color: var(--fog);
}

.hero-status,
.hero-note {
    color: rgba(232, 238, 232, 0.64);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    line-height: 1.6;
}

.hero-status {
    max-width: 430px;
    margin: 30px 0 0;
    padding-top: 18px;
    border-top: 1px solid rgba(232, 238, 232, 0.14);
}

.hero-note {
    position: absolute;
    right: clamp(18px, 5vw, 76px);
    bottom: 32px;
    max-width: 260px;
}

.hero-fox-mark {
    position: absolute;
    right: clamp(20px, 6vw, 96px);
    bottom: clamp(36px, 8vh, 86px);
    z-index: -1;
    width: min(420px, 35vw);
    opacity: 0.88;
    filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.34));
    pointer-events: none;
}

.hero-product-preview {
    position: absolute;
    right: clamp(42px, 7vw, 118px);
    bottom: clamp(88px, 13vh, 142px);
    z-index: -1;
    width: min(500px, 34vw);
    opacity: 0.86;
    filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.32));
    pointer-events: none;
}

.project-crest-mark {
    position: absolute;
    right: clamp(22px, 8vw, 118px);
    top: calc(var(--header-h) + 12vh);
    z-index: -1;
    width: min(170px, 16vw);
    opacity: 0.22;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.3));
    pointer-events: none;
}

.intro-section,
.home-base-section,
.pillar-section,
.standard-section,
.model-section,
.contact-section,
.dossier-section,
.principles-section,
.notes-section,
.library-directory,
.redshift-programs {
    padding: clamp(74px, 10vw, 148px) clamp(18px, 7vw, 96px);
    background: var(--pine-900);
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 20px);
}

.intro-section {
    padding-top: clamp(30px, 4vw, 48px);
    border-top: 1px solid var(--line);
}

.home-base-section {
    border-top: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(17, 21, 26, 0.88), rgba(7, 17, 15, 1)),
        var(--pine-900);
}

.home-base-map {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: clamp(36px, 6vw, 78px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-base-link {
    display: grid;
    grid-template-rows: auto auto 1fr;
    gap: 16px;
    min-height: 230px;
    padding: clamp(24px, 3.6vw, 38px);
    border-right: 1px solid var(--line);
    transition: background 180ms ease, transform 180ms ease;
}

.home-base-link:last-child {
    border-right: 0;
}

.home-base-link:hover {
    background: rgba(232, 238, 232, 0.035);
    transform: translateY(-2px);
}

.home-base-link span {
    color: var(--signal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.8rem;
}

.home-base-link strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 2.2vw, 2rem);
    line-height: 1;
}

.home-base-link em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(28px, 6vw, 86px);
    align-items: start;
}

.section-grid > *,
.standard-layout > *,
.model-section > * {
    min-width: 0;
}

.section-grid--lead h2,
.standard-layout h2,
.model-copy h2,
.contact-section h2 {
    margin-bottom: 0;
    max-width: 880px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(2.25rem, 5vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.lead-copy,
.model-copy p,
.contact-section p {
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.7;
}

.inline-link {
    display: inline-flex;
    margin-top: 18px;
    color: var(--ice);
    font-weight: 700;
    border-bottom: 1px solid rgba(119, 213, 216, 0.46);
}

.foxclaw-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.foxclaw-lockup img {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
}

.foxclaw-lockup span {
    color: var(--signal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.redshift-lead {
    background:
        linear-gradient(180deg, rgba(7, 17, 15, 1), rgba(27, 20, 19, 0.78)),
        var(--pine-900);
}

.redshift-programs {
    padding-top: 0;
    background:
        linear-gradient(180deg, rgba(27, 20, 19, 0.7), rgba(7, 17, 15, 1)),
        var(--pine-900);
}

.pillar-section {
    padding-top: 0;
}

.pillar-row,
.dossier-line,
.principle-line,
.library-line,
.mission-line {
    display: grid;
    grid-template-columns: 80px minmax(180px, 0.65fr) minmax(240px, 1fr);
    gap: clamp(16px, 4vw, 56px);
    align-items: baseline;
    padding: clamp(26px, 4vw, 44px) 0;
    border-top: 1px solid var(--line);
}

.pillar-row:last-child,
.dossier-line:last-child,
.principle-line:last-child,
.library-line:last-child,
.mission-line:last-child {
    border-bottom: 1px solid var(--line);
}

.pillar-index,
.dossier-line span,
.principle-line span,
.library-line span,
.mission-line span {
    color: var(--signal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.86rem;
}

.pillar-row h3,
.dossier-line h3,
.principle-line h3,
.library-line h3,
.mission-line h3 {
    margin-bottom: 0;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.3rem, 2vw, 2.2rem);
    line-height: 1;
}

.pillar-row p,
.dossier-line p,
.principle-line p,
.library-line p,
.mission-line p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
}

.library-line {
    grid-template-columns: 80px minmax(180px, 0.55fr) minmax(240px, 1fr) max-content;
    align-items: center;
}

.dossier-section {
    padding-top: 0;
}

.project-summary {
    background:
        linear-gradient(180deg, rgba(7, 17, 15, 1), rgba(12, 26, 23, 0.9)),
        var(--pine-900);
}

.project-standard {
    border-top: 1px solid var(--line);
}

.project-roadmap {
    background:
        linear-gradient(140deg, rgba(119, 213, 216, 0.09), transparent 44%),
        var(--pine-900);
}

.thesis-lead {
    background:
        linear-gradient(180deg, rgba(7, 17, 15, 1), rgba(16, 41, 35, 0.72)),
        var(--pine-900);
}

.principles-section {
    padding-top: 0;
}

.thesis-standard {
    background:
        linear-gradient(145deg, rgba(242, 184, 75, 0.08), rgba(119, 213, 216, 0.06) 48%, rgba(7, 17, 15, 1)),
        var(--pine-900);
}

.build-lead {
    background:
        linear-gradient(180deg, rgba(7, 17, 15, 1), rgba(17, 21, 26, 0.86)),
        var(--pine-900);
}

.library-lead {
    background:
        linear-gradient(180deg, rgba(7, 17, 15, 1), rgba(16, 41, 35, 0.78)),
        var(--pine-900);
}

.library-directory {
    padding-top: 0;
}

.library-shelf {
    background:
        linear-gradient(145deg, rgba(144, 167, 119, 0.12), rgba(71, 58, 47, 0.26) 48%, rgba(7, 17, 15, 1)),
        var(--pine-800);
}

.redshift-rules {
    background:
        linear-gradient(145deg, rgba(96, 34, 31, 0.22), rgba(16, 41, 35, 0.86) 48%, rgba(7, 17, 15, 1)),
        var(--pine-800);
}

.redshift-roadmap {
    background:
        linear-gradient(135deg, rgba(119, 213, 216, 0.08), rgba(71, 58, 47, 0.28) 54%, rgba(7, 17, 15, 1)),
        var(--pine-900);
}

.notes-section {
    padding-top: 0;
}

.note-entry {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: clamp(18px, 5vw, 72px);
    padding: clamp(30px, 5vw, 54px) 0;
    border-top: 1px solid var(--line);
}

.note-entry:last-child {
    border-bottom: 1px solid var(--line);
}

.note-entry time {
    color: var(--signal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    text-transform: uppercase;
}

.note-entry h3 {
    margin-bottom: 14px;
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 3vw, 3rem);
    line-height: 1;
}

.note-entry p {
    max-width: 840px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.65;
}

.standard-section {
    background:
        linear-gradient(180deg, rgba(16, 41, 35, 0.82), rgba(7, 17, 15, 1)),
        var(--pine-800);
}

.standard-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
    gap: clamp(34px, 6vw, 86px);
}

.standard-list {
    border-top: 1px solid var(--line);
}

.standard-list div,
.instinct-line {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.standard-list span,
.instinct-line span {
    color: var(--signal);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.standard-list strong,
.instinct-line strong {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    line-height: 1.35;
}

.model-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
    gap: clamp(34px, 8vw, 118px);
    align-items: end;
    background:
        linear-gradient(135deg, rgba(71, 58, 47, 0.34), transparent 42%),
        var(--pine-900);
}

.instinct-rail {
    border-top: 1px solid var(--line);
}

.contact-section {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(7, 17, 15, 0.94), rgba(17, 21, 26, 1)),
        var(--graphite);
}

.contact-section p {
    max-width: 760px;
    margin: 24px 0 34px;
}

.site-footer {
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 7vw, 96px);
    color: rgba(232, 238, 232, 0.56);
    font-size: 0.82rem;
    background: var(--graphite);
    border-top: 1px solid var(--line);
}

.reveal-on-load {
    animation: hero-rise 760ms ease both;
}

.reveal-section {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hero-rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-height: 820px) and (min-width: 841px) {
    .hero-content {
        padding-top: calc(var(--header-h) + 7vh);
        padding-bottom: 22px;
    }

    .project-hero__content {
        padding-top: calc(var(--header-h) + 8vh);
        padding-bottom: 7vh;
    }

    .redshift-hero__content {
        padding-top: calc(var(--header-h) + 8vh);
        padding-bottom: 7vh;
    }

    h1 {
        font-size: clamp(4rem, 9.8vw, 10.5rem);
    }
}

@media (max-width: 840px) {
    :root {
        --header-h: 64px;
    }

    .site-header {
        width: 100vw;
        max-width: 100vw;
        justify-content: flex-start;
        gap: 14px;
        padding: 0 16px;
    }

    .brand-mark {
        flex: 1 1 auto;
        max-width: calc(100vw - 74px);
        font-size: clamp(0.86rem, 3.7vw, 1rem);
    }

    .brand-logo {
        width: clamp(150px, 45vw, 230px);
        max-height: 44px;
    }

    .hero-brand-logo {
        width: min(100%, calc(100vw - 64px), 620px);
        margin-bottom: 24px;
    }

    .brand-mark span:last-child {
        max-width: calc(100vw - 122px);
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .site-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: grid;
        flex: 0 0 42px;
        position: fixed;
        top: 11px;
        right: 16px;
        z-index: 22;
        gap: 5px;
    }

    .mobile-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        z-index: 19;
        flex-direction: column;
        padding: 10px 16px 18px;
        background: rgba(7, 17, 15, 0.96);
        border-bottom: 1px solid var(--line);
        backdrop-filter: blur(16px);
    }

    .mobile-nav:not([hidden]) {
        display: flex;
    }

    .nav-action {
        display: none;
    }

    .hero-content {
        width: min(100%, calc(100% - 32px));
        padding: calc(var(--header-h) + 9vh) 16px 7vh;
    }

    .project-hero__content {
        width: min(100%, calc(100% - 32px));
        padding: calc(var(--header-h) + 10vh) 16px 9vh;
    }

    .redshift-hero__content {
        width: min(100%, calc(100% - 32px));
        padding: calc(var(--header-h) + 8vh) 16px 6vh;
    }

    .redshift-hero {
        min-height: 0;
        height: auto;
    }

    .redshift-orbit-field::before {
        right: -120px;
        top: calc(var(--header-h) + 18vh);
        width: 520px;
        opacity: 0.5;
    }

    .redshift-orbit-field::after {
        right: -220px;
        top: calc(var(--header-h) + 32vh);
        width: 680px;
        opacity: 0.45;
    }

    .project-crest-mark {
        right: 16px;
        top: auto;
        bottom: 28px;
        width: 92px;
        opacity: 0.18;
    }

    .project-hero .hero-copy {
        max-width: min(330px, calc(100vw - 42px));
        font-size: 1.02rem;
    }

    .thesis-hero .hero-copy {
        max-width: min(330px, calc(100vw - 42px));
        font-size: 1.02rem;
    }

    .thesis-hero .hero-note {
        max-width: 300px;
        font-size: 0.72rem;
    }

    .build-hero .hero-copy {
        max-width: min(330px, calc(100vw - 42px));
        font-size: 1.02rem;
    }

    .build-hero .hero-note {
        max-width: 320px;
        font-size: 0.72rem;
    }

    .redshift-hero .hero-copy {
        max-width: min(330px, calc(100vw - 42px));
        font-size: 1.02rem;
    }

    h1 {
        max-width: 100%;
        font-size: clamp(3.05rem, 13.2vw, 5.1rem);
        line-height: 0.9;
    }

    .redshift-hero h1 {
        font-size: clamp(3.05rem, 13.2vw, 5.1rem);
    }

    .hero-copy {
        max-width: min(32ch, 100%);
        font-size: 1.05rem;
    }

    .hero-status {
        max-width: min(31ch, 100%);
        margin-top: 24px;
    }

    .hero-note {
        left: 16px;
        right: 16px;
    }

    .hero-fox-mark {
        right: 12px;
        bottom: 34px;
        width: min(230px, 58vw);
        opacity: 0.62;
    }

    .hero-product-preview {
        display: none;
    }

    .intro-section,
    .home-base-section,
    .pillar-section,
    .standard-section,
    .model-section,
    .contact-section,
    .dossier-section,
    .principles-section,
    .notes-section,
    .library-directory,
    .redshift-programs {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-base-map {
        grid-template-columns: 1fr;
    }

    .home-base-link {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-base-link:last-child {
        border-bottom: 0;
    }

    .section-grid,
    .standard-layout,
    .model-section {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .section-grid > *,
    .lead-copy,
    .lead-copy p,
    .model-copy,
    .model-copy p,
    .contact-section p {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .lead-copy,
    .lead-copy p {
        inline-size: auto;
        max-inline-size: 36ch;
    }

    .foxclaw-lockup {
        max-width: 32ch;
    }

    .pillar-row,
    .dossier-line,
    .principle-line,
    .library-line,
    .mission-line {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .pillar-row h3,
    .dossier-line h3,
    .principle-line h3,
    .library-line h3,
    .mission-line h3,
    .pillar-row p,
    .dossier-line p,
    .principle-line p,
    .library-line p,
    .mission-line p {
        max-inline-size: 30ch;
        overflow-wrap: break-word;
    }

    .pillar-row p,
    .dossier-line p,
    .principle-line p,
    .library-line p,
    .mission-line p {
        grid-column: 2;
    }

    .library-line .inline-link {
        grid-column: 2;
        max-width: max-content;
    }

    .standard-list div,
    .instinct-line {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .note-entry {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .note-entry h3,
    .note-entry p {
        width: 100%;
        max-width: 100%;
        max-inline-size: min(100%, 30ch);
        overflow-wrap: anywhere;
    }

    .section-grid--lead h2,
    .standard-layout h2,
    .model-copy h2,
    .contact-section h2 {
        max-width: min(15ch, calc(100vw - 36px));
        font-size: clamp(1.65rem, 7vw, 2.15rem);
        line-height: 1.02;
    }

    .standard-layout h2 {
        max-inline-size: 13ch;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (min-width: 620px) and (max-width: 840px) {
    .hero-fox-mark {
        right: 10px;
        bottom: 82px;
        width: min(270px, 40vw);
        opacity: 0.66;
    }
}

@media (max-width: 520px) {
    .brand-logo {
        width: min(190px, 56vw);
    }

    .brand-mark span:last-child {
        max-width: calc(100vw - 118px);
    }

    .hero-brand-logo {
        width: min(310px, calc(100vw - 64px));
    }

    .nav-action {
        display: none;
    }

    .hero-product-preview {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}
