:root {
    color-scheme: light dark;
    --bg: #f2f5f8;
    --surface: #ffffff;
    --surface-2: #eaf0f5;
    --text: #111820;
    --muted: #5d6977;
    --border: #cfd8e3;
    --brand: #126fae;
    --brand-strong: #075989;
    --accent: #e57d19;
    --good: #087d43;
    --warn: #9a6200;
    --bad: #a12b3b;
    --code: #edf2f6;
    --shadow: 0 18px 55px rgba(14, 30, 48, 0.09);
    --radius: 24px;
    --user-font-scale: 1;
}

* {
    box-sizing: border-box;
}

html {
    font-size: calc(16px * var(--user-font-scale));
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

a {
    color: var(--brand);
}

a:hover {
    color: var(--brand-strong);
}

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

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 8px;
    left: 8px;
    padding: 12px 18px;
    transform: translateY(-150%);
    border-radius: 12px;
    background: var(--text);
    color: var(--surface);
}

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

.site-header,
.workspace-header {
    position: sticky;
    z-index: 40;
    top: 0;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(16px);
}

/* Shared full-face header: public tools and Phoenix workspace */
.face-header-inner {
    display: grid;
    grid-template-columns: minmax(190px, 300px) minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(12px, 2.5vw, 30px);
    min-height: 104px;
    padding-block: 10px;
}

.face-brand {
    display: block;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(88, 224, 255, 0.28);
    border-radius: 8px;
    background: #000;
    box-shadow: 0 10px 34px rgba(0, 0, 0, 0.62), 0 0 24px rgba(0, 174, 255, 0.10);
}

.face-brand img {
    display: block;
    width: 100%;
    height: auto;
}

.face-nav {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.face-nav a {
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #aeeefa;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.face-nav a:hover,
.face-nav a.active {
    border-color: rgba(82, 229, 255, 0.28);
    background: linear-gradient(145deg, rgba(14, 54, 72, 0.78), rgba(1, 7, 11, 0.94));
    color: #fff;
}

.face-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.face-lock,
.face-doer {
    display: inline-grid;
    min-height: 42px;
    place-items: center;
    padding: 9px 14px;
    border: 1px solid rgba(89, 231, 255, 0.58);
    border-radius: 10px;
    background: linear-gradient(180deg, #0e5268, #061c28 55%, #02090e);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.30);
    color: #effcff;
    font-size: 0.75rem;
    font-weight: 950;
    letter-spacing: 0.09em;
    text-decoration: none;
}

.face-doer {
    border-color: rgba(217, 182, 93, 0.52);
    background: linear-gradient(145deg, rgba(17, 40, 54, 0.96), rgba(2, 8, 13, 0.98));
    color: #ead79e;
}

.face-lock:hover,
.face-doer:hover {
    color: #fff;
    filter: brightness(1.14);
}

/* RC4: use the commissioned graphical control family on the real Phoenix routes. */
.face-picture-action {
    display: block;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border: 1px solid rgba(89, 231, 255, 0.58);
    border-radius: 50%;
    background: #02070d;
    box-shadow: 0 8px 24px rgba(0,0,0,.42), 0 0 18px rgba(26,150,255,.18);
}

.face-picture-action img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.face-picture-action:hover,
.face-picture-action:focus-visible {
    filter: brightness(1.15);
    transform: translateY(-1px);
}

.lock-form-mark,
.login-form-mark {
    display: block;
    width: min(220px, 52vw);
    aspect-ratio: 1;
    margin: 0 auto 18px;
    object-fit: contain;
    filter: drop-shadow(0 18px 32px rgba(0,0,0,.35));
}

.login-form-mark {
    width: min(130px, 34vw);
}

@media (max-width: 760px) {
    .face-nav { display: none; }
    .face-header-inner {
        grid-template-columns: minmax(0,1fr) auto;
        gap: 8px;
        min-height: 82px;
        padding-top: max(8px, env(safe-area-inset-top));
    }
    .face-actions { gap: 5px; }
    .face-picture-action { width: 44px; height: 44px; }
    .face-doer { min-height: 44px; padding: 7px 9px; font-size: .62rem; }
    .face-brand { max-width: 100%; }
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 900;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--brand);
    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
}

.main-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    padding: 9px 11px;
    border-radius: 10px;
    color: var(--muted);
    font-weight: 800;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--surface-2);
    color: var(--text);
}

.header-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.button,
button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: 0;
    border-radius: 15px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.button:hover,
button:hover {
    background: var(--brand-strong);
    color: #fff;
}

.button.secondary,
button.secondary {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
}

.button.secondary:hover,
button.secondary:hover {
    background: var(--surface-2);
}

.button.compact {
    min-height: 42px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.92rem;
}

.button.danger {
    background: var(--bad);
}

.node-directory {
    background:
        radial-gradient(circle at 15% 0%, rgba(57, 217, 237, .11), transparent 34%),
        radial-gradient(circle at 90% 100%, rgba(229, 125, 25, .08), transparent 36%),
        #02070b;
    color: #eefaff;
}

.node-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.node-grid a {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    border: 1px solid rgba(91, 224, 244, .26);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(12, 48, 62, .86), rgba(2, 7, 11, .98));
    color: #f4fdff;
    font-weight: 950;
    letter-spacing: .035em;
    text-decoration: none;
}

.node-grid a:hover,
.node-grid a:focus-visible {
    border-color: #5be0f4;
    color: #fff;
    outline: 2px solid rgba(91, 224, 244, .4);
    outline-offset: 2px;
}

.node-grid b {
    color: #d9b65d;
    font-size: 1.25rem;
}

.hero {
    padding: clamp(72px, 12vw, 150px) 0 clamp(60px, 10vw, 120px);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    align-items: end;
    gap: clamp(36px, 7vw, 90px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.05;
    letter-spacing: -0.035em;
}

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(3.3rem, 9vw, 7rem);
}

h2 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    margin: 0 0 10px;
    font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.lede {
    max-width: 780px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 650;
}

.hero-actions,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-card,
.card,
.panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-card,
.card {
    padding: clamp(24px, 4vw, 38px);
}

.hero-card ul,
.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-card li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.05rem;
    font-weight: 850;
}

.hero-card li:last-child {
    border: 0;
}

.section {
    padding: clamp(64px, 9vw, 110px) 0;
}

.section.tint {
    border-block: 1px solid var(--border);
    background: var(--surface-2);
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 34px;
}

.section-head p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: 20px;
}

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

.grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.metric {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.metric strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
}

.metric span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 800;
}

.card p {
    margin: 0;
    color: var(--muted);
}

.card + .card {
    margin-top: 0;
}

.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.card-link:hover {
    border-color: var(--brand);
    color: inherit;
    transform: translateY(-2px);
}

.code,
code,
.hash {
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.code {
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.hash {
    display: block;
    padding: 12px;
    border-radius: 12px;
    background: var(--code);
    font-size: 0.82rem;
}

.badge,
.status {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status.good,
.badge.good {
    background: color-mix(in srgb, var(--good) 16%, var(--surface));
    color: var(--good);
}

.status.warn {
    background: color-mix(in srgb, var(--warn) 16%, var(--surface));
    color: var(--warn);
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.stack {
    display: grid;
    gap: 16px;
}

.prose {
    max-width: 820px;
    font-size: 1.12rem;
}

.prose p {
    margin: 0 0 1.2em;
}

.manifesto {
    display: grid;
    gap: 12px;
    margin: 34px 0;
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 950;
}

.form-card {
    width: min(100%, 820px);
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    margin-bottom: 22px;
}

.field.full {
    grid-column: 1 / -1;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    font-weight: 900;
}

.hint {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
}

input,
textarea,
select {
    width: 100%;
    min-height: 58px;
    padding: 14px 16px;
    border: 2px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
}

textarea {
    min-height: 180px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--brand);
    outline: 4px solid color-mix(in srgb, var(--brand) 20%, transparent);
}

.notice {
    margin: 0 0 24px;
    padding: 18px 20px;
    border-left: 6px solid var(--brand);
    border-radius: 14px;
    background: var(--surface);
    font-weight: 750;
}

.notice.success {
    border-color: var(--good);
}

.notice.error {
    border-color: var(--bad);
}

.notice.warning {
    border-color: var(--warn);
}

.empty {
    padding: 34px;
    border: 2px dashed var(--border);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-item {
    display: grid;
    grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr);
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.timeline-item:last-child {
    border: 0;
}

.graph-edge {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.graph-edge .relation {
    color: var(--accent);
    font-weight: 950;
}

.site-footer {
    padding: 54px 0;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 30px;
}

.footer-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

.footer-grid > div {
    display: grid;
    align-content: start;
    gap: 8px;
}

.workspace-main {
    padding-block: 46px 80px;
}

.workspace-main > .section-head:first-child {
    margin-top: 0;
}

.workspace-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-block: 30px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.receipt {
    text-align: center;
}

.receipt .brand-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 22px;
    border-radius: 22px;
    font-size: 2rem;
}

@media (max-width: 980px) {
    .main-nav {
        display: none;
    }

    .header-inner {
        justify-content: space-between;
    }

    .face-header-inner {
        grid-template-columns: minmax(180px, 280px) 1fr;
    }

    .face-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        order: 3;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .face-nav::-webkit-scrollbar {
        display: none;
    }

    .face-actions {
        justify-self: end;
    }

    .hero-grid,
    .grid.three,
    .grid.four,
    .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .node-grid {
        grid-template-columns: 1fr;
    }

    .shell {
        width: min(100% - 22px, 1180px);
    }

    .site-header,
    .workspace-header {
        position: static;
    }

    .header-inner {
        min-height: 70px;
        gap: 10px;
    }

    .face-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        min-height: 0;
        padding-block: 8px;
    }

    .face-brand {
        width: min(100%, 245px);
    }

    .face-actions {
        gap: 5px;
    }

    .face-lock,
    .face-doer {
        min-height: 38px;
        padding: 7px 9px;
        font-size: 0.65rem;
    }

    .face-nav {
        gap: 3px;
        margin-inline: -11px;
        padding-inline: 11px;
    }

    .face-nav a {
        flex: 0 0 auto;
        padding: 8px 9px;
        font-size: 0.69rem;
    }

    .brand > span:last-child {
        display: none;
    }

    .header-actions .secondary {
        display: none;
    }

    .hero {
        padding-top: 62px;
    }

    .hero-grid,
    .grid.two,
    .grid.three,
    .grid.four,
    .metrics,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        display: block;
    }

    .section-head .button {
        margin-top: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .graph-edge {
        grid-template-columns: 1fr;
    }

    .workspace-footer {
        display: grid;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d151f;
        --surface: #152231;
        --surface-2: #1d2d3f;
        --text: #f3f7fb;
        --muted: #acb9c7;
        --border: #34465a;
        --brand: #68b7ef;
        --brand-strong: #9dd4f8;
        --accent: #ffad5d;
        --good: #63d798;
        --warn: #f6c65d;
        --bad: #ff8997;
        --code: #0e1924;
        --shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    }
}

html[data-color-mode="light"],
html[data-color-mode="day"] {
    color-scheme: light;
}

html[data-color-mode="dark"],
html[data-color-mode="night"] {
    color-scheme: dark;
    --bg: #08111b;
    --surface: #13202e;
    --surface-2: #1c2b3d;
    --text: #f4f8fc;
    --muted: #afbccb;
    --border: #35475c;
    --brand: #76c1f2;
    --brand-strong: #a8dbfa;
    --accent: #ffad5d;
    --good: #69dc9d;
    --warn: #f2c45b;
    --bad: #ff8b98;
    --code: #0a1520;
    --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

/* Phoenix sovereign skin */
:root {
    color-scheme: dark;
    --bg: #010407;
    --surface: #07111a;
    --surface-2: #0b1b29;
    --text: #edfaff;
    --muted: #9cb5c3;
    --border: #22485d;
    --brand: #54eaff;
    --brand-strong: #9af5ff;
    --accent: #d9b65d;
    --good: #61d99b;
    --warn: #f4c45c;
    --bad: #ff8290;
    --code: #02080d;
    --shadow: 0 22px 65px rgba(0, 0, 0, 0.55), inset 0 1px rgba(255, 255, 255, 0.035);
}

body {
    background:
        radial-gradient(circle at 50% 0, rgba(0, 127, 255, 0.10), transparent 34rem),
        linear-gradient(145deg, #02070c, #000 70%);
}

.site-header,
.workspace-header {
    border-color: rgba(86, 221, 255, 0.20);
    background: rgba(1, 7, 12, 0.90);
}

.brand-mark {
    border: 1px solid rgba(88, 233, 255, 0.72);
    background: linear-gradient(145deg, #0a4d68, #02090e);
    box-shadow: inset 0 0 16px rgba(0, 217, 255, 0.22), 0 0 20px rgba(0, 170, 255, 0.10);
}

.button,
button {
    border: 1px solid rgba(89, 231, 255, 0.58);
    background: linear-gradient(180deg, #0e5268, #061c28 55%, #02090e);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.45), 0 8px 24px rgba(0, 0, 0, 0.30);
    letter-spacing: 0.02em;
}

.button:hover,
button:hover {
    background: linear-gradient(180deg, #16738d, #082a39 58%, #031016);
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.42), 0 0 25px rgba(0, 220, 255, 0.18);
}

.button.secondary,
button.secondary {
    border-color: rgba(217, 182, 93, 0.52);
    background: linear-gradient(145deg, rgba(17, 40, 54, 0.96), rgba(2, 8, 13, 0.98));
}

.hero-card,
.card,
.panel,
.form-card,
.metric,
.table-wrap,
.notice {
    border-color: rgba(87, 217, 244, 0.24);
    background: linear-gradient(145deg, rgba(10, 28, 42, 0.96), rgba(2, 8, 13, 0.98) 72%);
}

.section.tint {
    background: rgba(7, 20, 30, 0.72);
}

.eyebrow,
.code {
    color: var(--brand);
}

.site-footer {
    border-color: rgba(86, 221, 255, 0.18);
    background: #010508;
}

.page-home .site-header {
    display: none;
}

.landing-shell {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100svh;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 44%, rgba(0, 152, 255, 0.14), transparent 36%),
        radial-gradient(circle at 50% 100%, rgba(0, 238, 217, 0.08), transparent 28%),
        linear-gradient(155deg, #02070c 0%, #000 58%, #03070a 100%);
}

.landing-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(71, 185, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(71, 185, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(circle at center, #000, transparent 72%);
}

.landing-ambient {
    position: absolute;
    z-index: -1;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.16;
    pointer-events: none;
}

.landing-ambient-one {
    top: -22vw;
    left: -14vw;
    background: #005dff;
}

.landing-ambient-two {
    right: -18vw;
    bottom: -22vw;
    background: #00cdb3;
}

.landing-brand {
    z-index: 2;
    display: block;
    width: min(760px, 92vw);
    margin: max(10px, env(safe-area-inset-top)) auto 0;
    border-radius: 10px;
    filter: drop-shadow(0 10px 30px rgba(0, 109, 255, 0.20));
    transition: transform 0.16s ease, filter 0.16s ease;
}

.landing-brand img,
.landing-lock img,
.landing-contact img,
.landing-dad img {
    display: block;
    width: 100%;
    height: auto;
}

.landing-brand:hover,
.landing-brand:focus-visible {
    filter: drop-shadow(0 12px 38px rgba(0, 143, 255, 0.38));
}

.landing-lock-stage {
    display: grid;
    min-height: 0;
    place-items: center;
    padding: 12px 20px 70px;
}

.landing-lock {
    display: block;
    width: min(430px, 68vw, 45svh);
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    outline: 1px solid rgba(123, 245, 255, 0.09);
    background: transparent;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 55px rgba(0, 219, 255, 0.10);
    transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.landing-lock:hover,
.landing-lock:focus-visible {
    transform: translateY(-4px) scale(1.012);
    filter: brightness(1.08);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.72), 0 0 70px rgba(0, 225, 255, 0.18);
}

.landing-contact {
    position: absolute;
    z-index: 3;
    bottom: max(14px, env(safe-area-inset-bottom));
    left: 50%;
    display: block;
    width: min(280px, 52vw);
    transform: translateX(-50%);
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.72));
}

.landing-contact:hover,
.landing-contact:focus-visible {
    transform: translateX(-50%) translateY(-3px) scale(1.02);
    filter: brightness(1.08) drop-shadow(0 16px 34px rgba(0, 213, 255, 0.16));
}

.landing-dad {
    position: fixed;
    z-index: 45;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(15px, env(safe-area-inset-bottom));
    display: block;
    width: clamp(72px, 10vw, 104px);
    overflow: hidden;
    border: 1px solid rgba(244, 202, 102, 0.72);
    border-radius: 50%;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.70), 0 0 22px rgba(202, 150, 40, 0.16);
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.landing-dad.positioned {
    right: auto;
    bottom: auto;
}

.landing-enter {
    position: absolute;
    z-index: 3;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: max(16px, env(safe-area-inset-left));
    color: #8ddde9;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-decoration: none;
}

.phoenix-entry {
    scroll-margin-top: 90px;
    padding-block: 28px 0;
}

.phoenix-entry nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.phoenix-entry a {
    padding: 13px 8px;
    border: 1px solid rgba(90, 224, 255, 0.24);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(13, 43, 59, 0.82), rgba(1, 7, 11, 0.92));
    color: #c9f8ff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.intake-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(0, 2, 5, 0.84);
    backdrop-filter: blur(14px);
}

.intake-backdrop[hidden] {
    display: none;
}

body.intake-open {
    overflow: hidden;
}

.intake-panel {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100svh - 36px);
    overflow-y: auto;
    padding: 30px clamp(20px, 5vw, 42px) 34px;
    border: 1px solid rgba(112, 231, 255, 0.72);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(10, 29, 46, 0.99), rgba(1, 5, 9, 0.99) 66%);
    box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.55), inset 0 0 0 5px rgba(218, 172, 65, 0.35), 0 30px 100px #000, 0 0 60px rgba(0, 211, 255, 0.20);
}

.intake-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.intake-mark {
    display: grid;
    width: 66px;
    height: 44px;
    margin: 0 auto 13px;
    place-items: center;
    border: 1px solid #50e4ff;
    border-radius: 10px;
    color: #9af4ff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.16em;
    box-shadow: inset 0 0 18px rgba(0, 213, 255, 0.16), 0 0 24px rgba(0, 213, 255, 0.14);
}

.intake-panel h1 {
    margin: 0 0 26px;
    color: #f7fbff;
    font-size: clamp(25px, 5vw, 36px);
    letter-spacing: 0.12em;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.32);
}

.intake-panel form {
    display: grid;
    gap: 10px;
}

.intake-panel label,
.idea-label-row output,
.attachment-preview > span {
    color: #aeefff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.17em;
}

.intake-panel input,
.intake-panel textarea {
    margin-bottom: 10px;
    border: 1px solid rgba(104, 207, 235, 0.50);
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.48);
    font-size: 17px;
}

.intake-panel textarea {
    min-height: 150px;
}

.idea-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.idea-label-row output,
.attachment-preview > span {
    color: #d5b45f;
    letter-spacing: 0.08em;
}

.attachment-preview {
    display: grid;
    gap: 8px;
    margin: 2px 0 6px;
    padding: 14px;
    border: 1px solid rgba(104, 207, 235, 0.25);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.attachment-icons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.attachment-icons span {
    display: grid;
    min-height: 48px;
    place-items: center;
    border: 1px solid rgba(104, 207, 235, 0.35);
    border-radius: 9px;
    background: linear-gradient(150deg, rgba(16, 55, 75, 0.72), rgba(1, 7, 12, 0.90));
    color: #87efff;
    font-size: 24px;
}

.attachment-preview small {
    color: #8ca3b0;
    line-height: 1.35;
}

.trap-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.submit-idea {
    min-height: 58px;
    margin-top: 8px;
    border-color: #d5b45f;
    border-radius: 12px;
    font-size: 18px;
    letter-spacing: 0.14em;
}

.landing-brand:focus-visible,
.landing-lock:focus-visible,
.landing-contact:focus-visible,
.landing-dad:focus-visible,
.landing-enter:focus-visible {
    outline: 3px solid #66efff;
    outline-offset: 4px;
}

@media (max-width: 680px) {
    .landing-brand {
        width: 96vw;
    }

    .landing-lock-stage {
        padding-top: 8px;
        padding-bottom: 82px;
    }

    .landing-lock {
        width: min(86vw, 43svh);
    }

    .landing-contact {
        width: min(230px, 58vw);
    }

    .landing-enter {
        bottom: 12px;
        font-size: 0.62rem;
    }

    .phoenix-entry nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .intake-panel {
        padding-top: 25px;
        border-radius: 19px;
    }
}

@media (max-height: 700px) {
    .landing-brand {
        width: min(560px, 86vw);
    }

    .landing-lock {
        width: min(330px, 62vw, 39svh);
    }

    .landing-contact {
        width: min(200px, 52vw);
    }
}

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

/* Full-screen standard: fill the viewport; scroll only when content requires it. */
html {
    min-height: 100%;
    overflow-x: clip;
}

body {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    flex-direction: column;
    overflow-x: clip;
}

body > main,
#main,
#workspace-main {
    flex: 1 0 auto;
    width: 100%;
}

.site-header,
.workspace-header,
.site-footer,
.workspace-footer {
    flex: 0 0 auto;
}

.public-page:not(.page-home) #main,
.workspace {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.public-page:not(.page-home) #main {
    display: flex;
    flex-direction: column;
}

.public-page:not(.page-home) #main > .section:only-child {
    flex: 1 0 auto;
}

body > main.section {
    display: grid;
    align-content: center;
    padding-top: max(clamp(32px, 7vw, 72px), env(safe-area-inset-top));
    padding-right: env(safe-area-inset-right);
    padding-bottom: max(clamp(32px, 7vw, 72px), env(safe-area-inset-bottom));
    padding-left: env(safe-area-inset-left);
}

.landing-shell {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

@media (max-width: 680px) {
    .shell {
        width: 100%;
        padding-right: max(11px, env(safe-area-inset-right));
        padding-left: max(11px, env(safe-area-inset-left));
    }

    .site-footer,
    .workspace-footer {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .section {
        padding-top: clamp(32px, 9vw, 54px);
        padding-bottom: clamp(32px, 9vw, 54px);
    }

    .form-card,
    .hero-card,
    .card,
    .panel {
        max-width: 100%;
    }
}
