:root {
    --obsidian: #080907;
    --obsidian-soft: #10110f;
    --bone: #ded9ca;
    --paper: #d8d2c2;
    --paper-deep: #c9c2b1;
    --ink: #151713;
    --muted: #8d8e83;
    --line-dark: rgba(222, 217, 202, 0.22);
    --line-light: rgba(21, 23, 19, 0.24);
    --signal: #d55732;
    --signal-soft: #e17a55;
    --node-light: #ded9ca;
    --node-accent: #d55732;
    --node-signal: #e17a55;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --mono: "Courier New", Courier, monospace;
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
    background: var(--obsidian);
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--bone);
    background: var(--obsidian);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.dialog-open {
    overflow: hidden;
}

button,
textarea,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 2px solid var(--signal-soft);
    outline-offset: 4px;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--paper);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.visual-field {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 46%, rgba(70, 72, 65, 0.12), transparent 42%),
        var(--obsidian);
}

#organism-canvas,
.organism-fallback,
.field-vignette,
.field-grain {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#organism-canvas {
    display: block;
    opacity: 0;
    transition: opacity 900ms ease, filter 700ms ease;
}

.webgl-ready #organism-canvas {
    opacity: 1;
}

.organism-fallback {
    display: grid;
    place-items: center;
    opacity: 1;
    transition: opacity 700ms ease;
}

.webgl-ready .organism-fallback {
    opacity: 0;
}

.fallback-core {
    width: min(48vw, 560px);
    aspect-ratio: 1;
    border: 1px solid rgba(222, 217, 202, 0.23);
    border-radius: 46% 54% 53% 47% / 45% 48% 52% 55%;
    background:
        repeating-conic-gradient(from 17deg, transparent 0 8deg, rgba(222, 217, 202, 0.16) 9deg 9.6deg),
        radial-gradient(circle at 40% 38%, rgba(213, 87, 50, 0.22), transparent 16%),
        radial-gradient(circle, rgba(222, 217, 202, 0.07), transparent 64%);
    box-shadow: inset 0 0 90px rgba(222, 217, 202, 0.05), 0 0 120px rgba(222, 217, 202, 0.04);
    animation: fallback-breathe 9s ease-in-out infinite alternate;
}

html[data-specimen="spindle"] .fallback-core {
    width: min(31vw, 380px);
    border-radius: 52% 48% 46% 54% / 25% 27% 73% 75%;
}

html[data-specimen="bilateral"] .fallback-core {
    width: min(67vw, 760px);
    aspect-ratio: 1.8 / 1;
    border-radius: 72% 28% 69% 31% / 50% 36% 64% 50%;
}

html[data-specimen="toroid"] .fallback-core {
    border-radius: 50%;
    background:
        radial-gradient(circle, var(--obsidian) 0 24%, transparent 25%),
        repeating-conic-gradient(from 17deg, transparent 0 8deg, rgba(222, 217, 202, 0.16) 9deg 9.6deg),
        radial-gradient(circle, rgba(213, 87, 50, 0.14), transparent 64%);
}

html[data-specimen="colony"] .fallback-core {
    border-radius: 50% 50% 44% 56% / 58% 42% 58% 42%;
    box-shadow:
        -130px 80px 0 -80px rgba(222, 217, 202, 0.08),
        130px 70px 0 -82px rgba(213, 87, 50, 0.12),
        inset 0 0 90px rgba(222, 217, 202, 0.05),
        0 0 120px rgba(222, 217, 202, 0.04);
}

html[data-renderer="graph"] .fallback-core {
    border-color: color-mix(in srgb, var(--node-light), transparent 48%);
    background:
        radial-gradient(circle, var(--node-signal) 0 1.5%, transparent 2%),
        repeating-conic-gradient(from 7deg, transparent 0 13deg, color-mix(in srgb, var(--node-light), transparent 70%) 13.3deg 13.7deg),
        radial-gradient(circle, transparent 0 34%, color-mix(in srgb, var(--node-accent), transparent 82%) 35% 36%, transparent 37%);
    box-shadow: 0 0 90px color-mix(in srgb, var(--node-signal), transparent 82%);
}

html[data-renderer="cloud"] .fallback-core {
    border: 0;
    background:
        radial-gradient(circle at 32% 28%, var(--node-light) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 61%, var(--node-signal) 0 2px, transparent 3px),
        radial-gradient(circle at 47% 72%, var(--node-accent) 0 1px, transparent 2px);
    background-size: 19px 23px, 31px 29px, 37px 41px;
    filter: drop-shadow(0 0 8px var(--node-signal));
}

html[data-renderer="filament"] .fallback-core {
    border: 0;
    background:
        repeating-radial-gradient(ellipse at center, transparent 0 9px, color-mix(in srgb, var(--node-light), transparent 65%) 10px 11px, transparent 12px 19px),
        conic-gradient(from 30deg, transparent, color-mix(in srgb, var(--node-signal), transparent 32%), transparent 38%, color-mix(in srgb, var(--node-accent), transparent 38%), transparent 72%);
    filter: drop-shadow(0 0 12px var(--node-accent));
}

html[data-renderer="voxel"] .fallback-core {
    border-radius: 10%;
    background:
        linear-gradient(45deg, color-mix(in srgb, var(--node-accent), transparent 28%) 25%, transparent 25%) 0 0 / 32px 32px,
        linear-gradient(-45deg, color-mix(in srgb, var(--node-signal), transparent 35%) 25%, transparent 25%) 0 0 / 32px 32px;
}

html[data-renderer="wireframe"] .fallback-core {
    border-radius: 18%;
    border-color: var(--node-signal);
    background:
        linear-gradient(30deg, transparent 48%, color-mix(in srgb, var(--node-light), transparent 60%) 49% 51%, transparent 52%),
        linear-gradient(-30deg, transparent 48%, color-mix(in srgb, var(--node-accent), transparent 55%) 49% 51%, transparent 52%);
    background-size: 42px 42px;
    filter: drop-shadow(0 0 10px var(--node-signal));
}

.field-vignette {
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 35%, rgba(3, 4, 3, 0.62) 100%);
}

.field-grain {
    pointer-events: none;
    opacity: 0.11;
    mix-blend-mode: soft-light;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.62'/%3E%3C/svg%3E");
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    min-height: var(--header-height);
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    background: linear-gradient(to bottom, rgba(8, 9, 7, 0.86), rgba(8, 9, 7, 0.38));
    backdrop-filter: blur(18px);
    transition: color 300ms ease, background 300ms ease, border-color 300ms ease;
}

body.on-paper .site-header {
    color: var(--ink);
    border-color: var(--line-light);
    background: rgba(216, 210, 194, 0.92);
}

.wordmark {
    width: fit-content;
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.wordmark-main {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.wordmark-index {
    padding-top: 1px;
    color: var(--signal-soft);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.header-register {
    display: flex;
    gap: 28px;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.channel-button,
.record-channel {
    border: 0;
    cursor: pointer;
}

.channel-button {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 0;
    color: inherit;
    background: transparent;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.channel-button span:last-child {
    font-size: 15px;
    transition: transform 180ms ease;
}

.channel-button:hover span:last-child {
    transform: translate(2px, -2px);
}

.channel-indicator,
.chat-connection i,
.entry-state i {
    width: 6px;
    height: 6px;
    display: inline-block;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 3px rgba(213, 87, 50, 0.12);
}

main {
    position: relative;
    z-index: 2;
}

.organism-sequence {
    position: relative;
    height: 420vh;
}

.sequence-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
}

.registration-marks {
    position: absolute;
    inset: calc(var(--header-height) + 22px) 28px 24px;
    pointer-events: none;
}

.registration-marks i {
    position: absolute;
    width: 15px;
    height: 15px;
    opacity: 0.5;
}

.registration-marks i::before,
.registration-marks i::after {
    content: "";
    position: absolute;
    background: var(--bone);
}

.registration-marks i::before {
    width: 15px;
    height: 1px;
}

.registration-marks i::after {
    width: 1px;
    height: 15px;
}

.registration-marks i:nth-child(1) { top: 0; left: 0; }
.registration-marks i:nth-child(2) { top: 0; right: 0; transform: rotate(90deg); }
.registration-marks i:nth-child(3) { bottom: 0; right: 0; transform: rotate(180deg); }
.registration-marks i:nth-child(4) { bottom: 0; left: 0; transform: rotate(270deg); }

.field-readout {
    position: absolute;
    top: calc(var(--header-height) + 36px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: rgba(222, 217, 202, 0.58);
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.4;
    letter-spacing: 0.1em;
}

.field-readout b {
    color: var(--bone);
    font-weight: 400;
}

.field-readout-left { left: 48px; }
.field-readout-right { right: 48px; text-align: right; }

.hero-statement {
    position: absolute;
    left: clamp(28px, 6vw, 92px);
    bottom: clamp(108px, 17vh, 174px);
    width: min(54vw, 760px);
    pointer-events: none;
    transition: opacity 380ms ease, transform 380ms ease;
}

.sequence-sticky[data-stage="2"] .hero-statement,
.sequence-sticky[data-stage="3"] .hero-statement {
    opacity: 0.22;
    transform: translateY(12px);
}

.eyebrow,
.record-label,
.record-code {
    margin: 0;
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--signal-soft);
}

.hero-statement h1 {
    margin: 0;
    font-size: clamp(48px, 8vw, 118px);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.076em;
}

.hero-statement h1 span {
    display: block;
}

.stage-index {
    position: absolute;
    right: clamp(32px, 4vw, 62px);
    top: 50%;
    width: 146px;
    padding: 0;
    margin: 0;
    list-style: none;
    transform: translateY(-50%);
}

.stage-index li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 8px;
    padding: 10px 0;
    color: rgba(222, 217, 202, 0.3);
    border-top: 1px solid rgba(222, 217, 202, 0.12);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    transition: color 300ms ease, padding-left 300ms ease;
}

.stage-index li:last-child {
    border-bottom: 1px solid rgba(222, 217, 202, 0.12);
}

.stage-index li.is-active {
    padding-left: 8px;
    color: var(--bone);
}

.stage-index li.is-active span:first-child {
    color: var(--signal-soft);
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(222, 217, 202, 0.5);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transform: translateX(-50%);
    transition: opacity 300ms ease;
}

.sequence-sticky:not([data-stage="0"]) .scroll-cue {
    opacity: 0;
}

.scroll-cue i {
    width: 1px;
    height: 28px;
    background: linear-gradient(to bottom, var(--bone), transparent);
    animation: cue-pulse 1.8s ease-in-out infinite;
}

.public-record {
    position: relative;
    z-index: 3;
    min-height: 190vh;
    padding: calc(var(--header-height) + 64px) 28px 56px;
    color: var(--ink);
    background: var(--paper);
    border-top: 8px solid var(--signal);
}

.public-record::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(21, 23, 19, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 23, 19, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.record-wrap {
    position: relative;
    width: min(100%, 1420px);
    min-height: 164vh;
    margin: 0 auto;
    border: 1px solid var(--line-light);
}

.record-header {
    min-height: 68px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--line-light);
}

.record-header > div {
    display: flex;
    gap: 36px;
}

.record-header p {
    margin: 0;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.record-intro {
    width: min(74%, 920px);
    padding: clamp(72px, 11vw, 176px) clamp(24px, 7vw, 110px) 86px;
}

.record-label {
    color: #5f6159;
}

.record-intro h2 {
    max-width: 900px;
    margin: 20px 0 30px;
    font-size: clamp(46px, 7.2vw, 108px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.record-deck {
    max-width: 560px;
    margin: 0;
    font-size: clamp(17px, 1.8vw, 25px);
    line-height: 1.25;
    letter-spacing: -0.025em;
}

.record-entries {
    border-top: 1px solid var(--line-light);
}

.record-entry {
    display: grid;
    grid-template-columns: minmax(90px, 0.7fr) 3fr minmax(110px, 0.8fr);
    min-height: 132px;
    border-bottom: 1px solid var(--line-light);
}

.entry-index,
.entry-title,
.entry-state {
    padding: 22px 18px;
}

.entry-index,
.entry-title {
    border-right: 1px solid var(--line-light);
}

.entry-index {
    font-family: var(--mono);
    font-size: 10px;
}

.entry-title {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.entry-title span,
.entry-state {
    color: #5f6159;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.entry-title strong {
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.entry-state {
    display: flex;
    gap: 10px;
    align-items: center;
}

.record-figure {
    position: relative;
    height: clamp(480px, 60vw, 760px);
    overflow: hidden;
    border-bottom: 1px solid var(--line-light);
}

.figure-orbit,
.figure-axis,
.figure-core,
.figure-note,
.figure-caption {
    position: absolute;
}

.figure-orbit {
    top: 50%;
    left: 50%;
    border: 1px solid rgba(21, 23, 19, 0.36);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.figure-orbit-a {
    width: min(52vw, 610px);
    aspect-ratio: 1;
}

.figure-orbit-b {
    width: min(34vw, 400px);
    aspect-ratio: 1;
    border-style: dashed;
}

.figure-axis-x {
    top: 50%;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(21, 23, 19, 0.34);
}

.figure-axis-y {
    top: 8%;
    bottom: 8%;
    left: 50%;
    width: 1px;
    background: rgba(21, 23, 19, 0.34);
}

.figure-core {
    top: 50%;
    left: 50%;
    width: 52px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0 18px rgba(213, 87, 50, 0.12), 0 0 0 64px rgba(213, 87, 50, 0.055);
    transform: translate(-50%, -50%);
}

.figure-note,
.figure-caption {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
}

.figure-note-a { top: 50%; left: 10%; transform: translateY(-18px); }
.figure-note-b { top: 50%; right: 10%; transform: translateY(-18px); }
.figure-caption { left: 18px; bottom: 16px; }

.record-footer {
    min-height: 310px;
    padding: 42px 18px 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.record-footer > p {
    margin: 0;
    color: #5f6159;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.record-channel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(170px, 1fr) 3fr auto;
    align-items: end;
    gap: 24px;
    padding: 18px 0 14px;
    color: var(--ink);
    text-align: left;
    background: transparent;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
}

.record-channel span:first-child {
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.record-channel strong {
    font-size: clamp(38px, 6vw, 88px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.065em;
}

.record-channel span:last-child {
    padding-right: 10px;
    font-size: 28px;
    transition: transform 180ms ease;
}

.record-channel:hover span:last-child {
    transform: translate(4px, -4px);
}

.site-footer {
    position: relative;
    z-index: 3;
    min-height: 86px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto auto 1fr;
    gap: clamp(18px, 3vw, 48px);
    align-items: center;
    color: rgba(222, 217, 202, 0.55);
    background: var(--obsidian);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-location { justify-self: center; }
.footer-copyright { justify-self: end; }

.footer-social {
    display: flex;
    align-items: center;
    gap: 3px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: rgba(222, 217, 202, 0.55);
    border: 1px solid rgba(222, 217, 202, 0.12);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--bone);
    background: rgba(222, 217, 202, 0.05);
    border-color: var(--signal-soft);
}

.footer-social .footer-text-link {
    width: auto;
    min-width: 70px;
    padding: 0 11px;
    text-decoration: none;
}

.footer-social svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.chat-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    color: var(--bone);
    background: rgba(8, 9, 7, 0.97);
    border: 0;
    overflow: hidden;
    overflow-x: clip;
}

.chat-dialog[open] {
    display: block;
    animation: dialog-in 400ms cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

.chat-dialog::backdrop {
    background: rgba(0, 0, 0, 0.82);
}

.chat-field {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    background:
        radial-gradient(circle at 22% 52%, rgba(213, 87, 50, 0.32), transparent 15%),
        repeating-radial-gradient(circle at 22% 52%, transparent 0 26px, rgba(222, 217, 202, 0.09) 27px 28px);
    mask-image: linear-gradient(90deg, black 0 42%, transparent 63%);
}

.chat-shell {
    position: relative;
    z-index: 1;
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(230px, 0.78fr) minmax(480px, 1.7fr);
    grid-template-rows: var(--header-height) 1fr;
}

.chat-header {
    grid-column: 1 / -1;
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line-dark);
    min-width: 0;
}

.chat-header > div {
    display: flex;
    gap: 34px;
    align-items: center;
}

.chat-connection {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: rgba(222, 217, 202, 0.52);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.chat-close {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    color: var(--bone);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.chat-close span:last-child {
    font-family: var(--sans);
    font-size: 24px;
    font-weight: 200;
}

.chat-register {
    padding: 46px 28px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--line-dark);
}

.advisor-switch {
    margin-top: 20px;
    border-top: 1px solid var(--line-dark);
}

.advisor-option {
    width: 100%;
    padding: 14px 0;
    display: grid;
    grid-template-columns: 34px 1fr;
    color: rgba(222, 217, 202, 0.4);
    text-align: left;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line-dark);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 180ms ease, padding-left 180ms ease;
}

.advisor-option:hover,
.advisor-option.is-active {
    padding-left: 8px;
    color: var(--bone);
}

.advisor-option.is-active span {
    color: var(--signal-soft);
}

.channel-meta {
    margin: auto 0 28px;
}

.channel-meta div {
    padding: 8px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line-dark);
}

.channel-meta div:last-child {
    border-bottom: 1px solid var(--line-dark);
}

.channel-meta dt,
.channel-meta dd,
.data-note {
    margin: 0;
    font-family: var(--mono);
    font-size: 8px;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.channel-meta dt { color: rgba(222, 217, 202, 0.4); }
.channel-meta dd { text-align: right; }
.data-note { max-width: 260px; color: rgba(222, 217, 202, 0.38); }
.data-note a {
    color: inherit;
    text-underline-offset: 3px;
}

.data-note a:hover,
.data-note a:focus-visible {
    color: var(--bone);
}

.conversation-panel {
    width: min(100%, 940px);
    min-width: 0;
    min-height: 0;
    padding: clamp(34px, 6vh, 72px) clamp(28px, 6vw, 92px) 28px;
    display: grid;
    grid-template-rows: auto minmax(140px, 1fr) auto auto;
    justify-self: center;
}

.conversation-heading h2 {
    margin: 12px 0 0;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.065em;
    overflow-wrap: anywhere;
}

.conversation {
    min-height: 0;
    margin: 28px 0 18px;
    padding-right: 12px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(222, 217, 202, 0.3) transparent;
}

.message {
    width: min(86%, 660px);
    padding: 17px 0 20px;
    border-top: 1px solid var(--line-dark);
}

.message-user {
    margin-left: auto;
}

.message-author {
    display: block;
    margin-bottom: 8px;
    color: rgba(222, 217, 202, 0.4);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.message-advisor .message-author { color: var(--signal-soft); }

.message p {
    margin: 0;
    font-size: clamp(16px, 1.6vw, 21px);
    line-height: 1.32;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.message-system p {
    color: rgba(222, 217, 202, 0.54);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.handoff {
    margin-bottom: 14px;
    padding: 14px 0;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 1.4fr);
    gap: 22px;
    border-top: 1px solid var(--signal);
}

.handoff[hidden] { display: none; }

.handoff p {
    margin: 5px 0 0;
    max-width: 260px;
    color: rgba(222, 217, 202, 0.58);
    font-size: 12px;
}

.email-form {
    display: flex;
    align-self: center;
    border-bottom: 1px solid rgba(222, 217, 202, 0.45);
}

.email-form input {
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    color: var(--bone);
    background: transparent;
    border: 0;
    outline: 0;
}

.email-form input::placeholder,
.chat-form textarea::placeholder {
    color: rgba(222, 217, 202, 0.3);
}

.email-form button {
    color: var(--signal-soft);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-status {
    grid-column: 2;
}

.chat-form {
    padding-top: 15px;
    border-top: 1px solid rgba(222, 217, 202, 0.5);
}

.chat-form > label {
    display: block;
    margin-bottom: 8px;
    color: rgba(222, 217, 202, 0.42);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    min-width: 0;
}

.chat-form textarea {
    width: 100%;
    min-width: 0;
    max-height: 108px;
    padding: 0;
    resize: none;
    color: var(--bone);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.35;
}

.chat-form button {
    display: flex;
    gap: 12px;
    padding: 11px 0 11px 18px;
    color: var(--bone);
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.chat-form button:disabled {
    opacity: 0.35;
    cursor: wait;
}

.input-meta {
    margin-top: 11px;
    display: flex;
    justify-content: space-between;
    color: rgba(222, 217, 202, 0.3);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Privacy record */

.privacy-page {
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
}

.privacy-header {
    position: relative;
    z-index: 2;
    min-height: var(--header-height);
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--bone);
    background: var(--obsidian);
    border-bottom: 1px solid var(--line-dark);
}

.privacy-return {
    color: inherit;
    font-family: var(--mono);
    font-size: 9px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.privacy-return span {
    display: inline-block;
    margin-left: 8px;
    transition: transform 180ms ease;
}

.privacy-return:hover span {
    transform: translate(3px, -3px);
}

.privacy-main {
    position: relative;
    z-index: 1;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 0 28px 96px;
}

.privacy-main::before {
    content: "";
    position: fixed;
    z-index: -1;
    inset: var(--header-height) 0 0;
    pointer-events: none;
    opacity: 0.15;
    background-image:
        linear-gradient(rgba(21, 23, 19, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(21, 23, 19, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
}

.privacy-title {
    min-height: min(76vh, 820px);
    padding: 26px 18px 72px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: solid var(--line-light);
    border-width: 0 1px 1px;
}

.privacy-title > div {
    position: absolute;
    top: calc(var(--header-height) + 26px);
    left: 47px;
    right: 47px;
    display: flex;
    justify-content: space-between;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.privacy-title > p:not(.privacy-lede) {
    margin: 0 0 20px;
    color: #5f6159;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.privacy-title h1 {
    width: min(88%, 1120px);
    margin: 0;
    font-size: clamp(58px, 9.4vw, 142px);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.076em;
}

.privacy-lede {
    width: min(100%, 680px);
    margin: 40px 0 0;
    font-size: clamp(17px, 1.8vw, 25px);
    line-height: 1.28;
    letter-spacing: -0.025em;
}

.privacy-grid {
    display: grid;
    grid-template-columns: minmax(190px, 0.72fr) minmax(0, 3fr);
    border: solid var(--line-light);
    border-width: 0 1px 1px;
}

.privacy-index {
    padding: 42px 18px;
    display: flex;
    flex-direction: column;
    gap: 13px;
    border-right: 1px solid var(--line-light);
    color: #5f6159;
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.privacy-copy {
    min-width: 0;
}

.privacy-copy section {
    min-height: 350px;
    padding: 42px clamp(24px, 7vw, 112px) 64px;
    border-bottom: 1px solid var(--line-light);
}

.privacy-copy section:last-child {
    border-bottom: 0;
}

.privacy-copy h2 {
    max-width: 820px;
    margin: 22px 0 30px;
    font-size: clamp(34px, 4.6vw, 70px);
    font-weight: 400;
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.privacy-copy section > p:not(.record-label),
.privacy-copy ul,
.privacy-providers {
    max-width: 760px;
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.52;
    letter-spacing: -0.015em;
}

.privacy-copy a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.privacy-copy li + li {
    margin-top: 13px;
}

.privacy-providers {
    margin: 0 0 30px;
    border-top: 1px solid var(--line-light);
}

.privacy-providers > div {
    padding: 16px 0;
    display: grid;
    grid-template-columns: minmax(92px, 0.75fr) 3fr;
    gap: 24px;
    border-bottom: 1px solid var(--line-light);
}

.privacy-providers dt {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.privacy-providers dd {
    margin: 0;
}

.privacy-footer {
    min-height: 86px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    color: rgba(222, 217, 202, 0.55);
    background: var(--obsidian);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.privacy-footer a {
    color: inherit;
    text-decoration: none;
}

.privacy-footer span:last-child {
    justify-self: end;
}

@keyframes cue-pulse {
    0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.3; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
}

@keyframes fallback-breathe {
    from { transform: rotate(-3deg) scale(0.94); }
    to { transform: rotate(4deg) scale(1.04); }
}

@keyframes dialog-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
    :root { --header-height: 64px; }

    .site-header {
        padding: 0 18px;
        grid-template-columns: 1fr auto;
    }

    .header-register { display: none; }
    .channel-button { grid-column: 2; }
    .channel-button .channel-indicator { display: none; }
    .channel-button {
        position: absolute;
        top: 0;
        right: 18px;
        height: var(--header-height);
        grid-column: auto;
        gap: 6px;
        font-size: 9px;
        letter-spacing: 0.05em;
        white-space: nowrap;
        color: inherit;
        font-weight: 700;
        border-left: 1px solid var(--line-dark);
        padding-left: 14px;
    }
    .channel-button span:last-child { display: none; }

    .registration-marks {
        inset: calc(var(--header-height) + 16px) 18px 18px;
    }

    .field-readout-left { left: 28px; }
    .field-readout-right { display: none; }

    .hero-statement {
        left: 24px;
        bottom: 118px;
        width: calc(100% - 48px);
    }

    .hero-statement h1 {
        font-size: clamp(48px, 15.5vw, 78px);
        line-height: 0.88;
    }

    .stage-index {
        top: auto;
        right: 24px;
        bottom: 30px;
        width: calc(100% - 48px);
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        transform: none;
    }

    .stage-index li {
        display: flex;
        gap: 5px;
        border-bottom: 1px solid rgba(222, 217, 202, 0.12);
    }

    .stage-index li span:last-child { display: none; }
    .stage-index li.is-active { padding-left: 5px; }
    .scroll-cue { display: none; }

    .public-record {
        min-height: auto;
        padding: calc(var(--header-height) + 28px) 14px 28px;
    }

    .record-wrap { min-height: auto; }
    .record-header > div { flex-direction: column; gap: 4px; }
    .record-header p { max-width: 90px; text-align: right; }

    .record-intro {
        width: 100%;
        padding: 88px 18px 64px;
    }

    .record-intro h2 {
        font-size: clamp(48px, 15vw, 74px);
    }

    .record-entry {
        grid-template-columns: 58px 1fr;
        min-height: 116px;
    }

    .entry-index,
    .entry-title,
    .entry-state { padding: 16px 12px; }

    .entry-title { border-right: 0; }
    .entry-state { display: none; }
    .entry-title strong { margin-top: 24px; font-size: 19px; }

    .record-figure { height: 480px; }
    .figure-orbit-a { width: 76vw; }
    .figure-orbit-b { width: 49vw; }
    .figure-note { display: none; }

    .record-footer { min-height: 260px; }
    .record-channel {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }
    .record-channel span:first-child { grid-column: 1 / -1; }
    .record-channel strong { font-size: 48px; }

    .site-footer {
        padding: 0 18px;
        grid-template-columns: 1fr auto auto;
        gap: 12px;
    }
    .footer-location { display: none; }
    .footer-social { justify-self: center; }
    .footer-copyright { justify-self: end; }
    .footer-social a {
        width: 44px;
        height: 44px;
    }
    .footer-social .footer-text-link { width: auto; }

    .chat-shell {
        grid-template-columns: 1fr;
        grid-template-rows: var(--header-height) auto minmax(0, 1fr);
    }

    .chat-header { padding: 0 18px; }
    .chat-close {
        position: fixed;
        z-index: 3;
        top: 0;
        right: 18px;
        width: 42px;
        height: var(--header-height);
        justify-content: center;
        color: var(--bone);
        background: var(--obsidian);
        border-left: 1px solid var(--line-dark);
    }
    .chat-close span:first-child { display: none; }
    .chat-header > div { gap: 12px; }
    .chat-connection { display: none; }

    .chat-register {
        padding: 12px 18px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line-dark);
    }

    .chat-register .record-label,
    .channel-meta,
    .data-note { display: none; }

    .advisor-switch {
        margin: 0;
        display: flex;
        border-top: 0;
    }

    .advisor-option {
        grid-template-columns: 26px auto;
        justify-content: start;
        border-bottom: 0;
    }

    .conversation-panel {
        width: 100%;
        min-height: 0;
        padding: 24px 18px max(18px, env(safe-area-inset-bottom));
    }

    .conversation-heading h2 {
        width: 100%;
        max-width: 100%;
        font-size: clamp(30px, 8.8vw, 35px);
        overflow-wrap: anywhere;
    }
    .conversation { margin: 20px 0 12px; }
    .message {
        width: 94%;
        max-width: 100%;
    }

    .handoff {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .form-status { grid-column: 1; }

    .email-form button,
    .chat-form button {
        min-height: 44px;
    }

    .chat-form button {
        min-width: 64px;
        justify-content: flex-end;
    }

    .chat-form textarea::placeholder { color: rgba(222, 217, 202, 0.48); }

    .privacy-header {
        padding: 0 18px;
    }

    .privacy-return {
        max-width: 150px;
        padding: 12px 0;
        text-align: right;
        line-height: 1.4;
    }

    .privacy-main {
        padding: 0 14px 42px;
    }

    .privacy-title {
        min-height: min(82svh, 720px);
        padding: 24px 18px 48px;
    }

    .privacy-title > div {
        top: calc(var(--header-height) + 24px);
        left: 33px;
        right: 33px;
    }

    .privacy-title h1 {
        width: 100%;
        font-size: clamp(49px, 16vw, 78px);
        overflow-wrap: anywhere;
    }

    .privacy-lede {
        margin-top: 30px;
        font-size: 17px;
    }

    .privacy-grid {
        grid-template-columns: 1fr;
    }

    .privacy-index {
        padding: 18px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-right: 0;
        border-bottom: 1px solid var(--line-light);
    }

    .privacy-copy section {
        min-height: 0;
        padding: 48px 18px 56px;
    }

    .privacy-copy h2 {
        margin: 18px 0 26px;
        font-size: clamp(36px, 11.5vw, 54px);
    }

    .privacy-copy section > p:not(.record-label),
    .privacy-copy ul,
    .privacy-providers {
        font-size: 16px;
    }

    .privacy-providers > div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .privacy-footer {
        min-height: 112px;
        padding: 18px;
        grid-template-columns: 1fr auto;
    }

    .privacy-footer a {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

@media (max-width: 420px) {
    .site-footer {
        min-height: 126px;
        padding: 16px 18px max(16px, env(safe-area-inset-bottom));
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }

    .footer-social {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: start;
    }

    .footer-copyright {
        grid-column: 2;
        grid-row: 1;
    }

    .privacy-title > div span:last-child {
        display: none;
    }

    .privacy-copy ul {
        padding-left: 20px;
    }
}

@media (max-height: 680px) and (min-width: 821px) {
    .conversation-panel { padding-top: 28px; }
    .conversation-heading h2 { font-size: 46px; }
    .conversation { margin-top: 16px; }
}

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