:root {
    color-scheme: light;
    --ink: #14203d;
    --muted: #5c6b83;
    --paper: #f2f5fa;
    --panel: #ffffff;
    --line: #d9e1ed;
    --accent: #3157d5;
    --accent-dark: #1c347f;
    --accent-bright: #10a79e;
    --accent-soft: #edf1ff;
    --warm: #ffbd66;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% -8%, rgba(49, 87, 213, .09), transparent 26rem),
        var(--paper);
}

a { color: var(--accent-dark); }

.site-header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header { min-height: 5.25rem; position: relative; z-index: 5; }
.site-header nav, .site-header form, footer nav { display: inline-flex; gap: 1rem; }
.site-header nav { align-items: center; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: var(--ink);
    text-decoration: none;
}

.brand img { flex: 0 0 auto; filter: drop-shadow(0 .35rem .7rem rgba(28, 52, 127, .16)); }
.brand-copy { display: grid; gap: .05rem; }
.brand-copy strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand-copy small { color: var(--muted); font-size: .67rem; font-weight: 650; letter-spacing: .025em; }

.link-button {
    border: 0;
    padding: 0;
    color: var(--accent-dark);
    background: transparent;
    font: inherit;
    text-decoration: underline;
    cursor: pointer;
}

main {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.hero {
    min-height: 32rem;
    display: grid;
    align-items: center;
    padding: 5rem clamp(1.25rem, 5vw, 5rem);
    border: 1px solid var(--line);
    border-radius: 1.4rem;
    background:
        linear-gradient(rgba(49, 87, 213, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 87, 213, .035) 1px, transparent 1px),
        radial-gradient(circle at 85% 15%, rgba(16, 167, 158, .16), transparent 28%),
        var(--panel);
    background-size: 28px 28px, 28px 28px, auto, auto;
    box-shadow: 0 1.2rem 3rem rgba(20, 32, 61, .09);
}

.hero.compact { min-height: 24rem; align-content: center; }
.landing-hero { grid-template-columns: minmax(0, 1.05fr) minmax(25rem, .95fr); gap: clamp(2.5rem, 6vw, 6rem); overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }

.eyebrow {
    margin: 0 0 .8rem;
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    max-width: 16ch;
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.7rem);
    line-height: .98;
    letter-spacing: -.055em;
}

.compact h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

.lede {
    max-width: 43rem;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.domain-note { margin: 1.2rem 0 0; color: #7c899d; font-size: .78rem; font-weight: 650; letter-spacing: .025em; }

.button {
    display: inline-block;
    padding: .85rem 1.2rem;
    border-radius: .7rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 .55rem 1.2rem rgba(49, 87, 213, .2);
}

.secondary { color: var(--accent-dark); font-weight: 750; }

.hero-visual { position: relative; min-height: 27rem; display: grid; align-items: center; perspective: 1200px; }
.formula-sheet {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid #ccd7e9;
    border-radius: 1rem;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 1.8rem 4rem rgba(20, 32, 61, .18);
    transform: rotateY(-4deg) rotateZ(1deg);
}
.formula-sheet-back {
    position: absolute;
    inset: 1.5rem -1.2rem -1.5rem 2rem;
    z-index: 1;
    background: #e9edfb;
    box-shadow: none;
    transform: rotateY(-4deg) rotateZ(4deg);
}
.formula-sheet-heading { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.formula-sheet-heading strong, .formula-sheet-heading small { display: block; }
.formula-sheet-heading strong { font-size: .88rem; }
.formula-sheet-heading small { margin-top: .15rem; color: var(--muted); font-size: .66rem; }
.formula-sheet-number { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; border-radius: .65rem; background: var(--accent-soft); color: var(--accent); font: 800 .67rem ui-monospace, monospace; }
.formula-sheet-status { display: inline-flex; align-items: center; gap: .3rem; color: #16726b; font-size: .65rem; font-weight: 800; }
.formula-sheet-status::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: var(--accent-bright); }
.formula-inherited { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; padding: .65rem 1rem; border-bottom: 1px solid #cfebe7; background: #f0fbf9; font-size: .62rem; }
.formula-inherited span { color: #5f7774; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.formula-inherited code { color: #176f68; }
.formula-row { min-height: 4.25rem; display: grid; grid-template-columns: 1.7rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid #e7ebf2; }
.formula-row > span { color: #9aa6b8; font: .62rem ui-monospace, monospace; }
.formula-row small, .formula-row code { display: block; }
.formula-row small { margin-bottom: .3rem; color: var(--muted); font-size: .65rem; }
.formula-row code { color: #294baf; font-size: .67rem; }
.formula-row > strong { color: #21304e; font: 800 .7rem ui-monospace, monospace; white-space: nowrap; }
.formula-row.formula-pass { background: #f2fbf6; }
.formula-row.formula-pass > strong { padding: .35rem .5rem; border-radius: 99px; color: #167044; background: #dff5e8; }
.formula-sheet-footer { display: flex; justify-content: space-between; gap: .5rem; padding: .75rem 1rem; color: #7e899a; font-size: .56rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }

.foundation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 1.5rem 0;
    padding: 2.5rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel);
}

.foundation h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.foundation > div > p:last-child { color: var(--muted); line-height: 1.65; }
.foundation ul { display: grid; gap: .7rem; margin: 0; padding: 0; list-style: none; }
.foundation li { display: grid; gap: .15rem; padding: .85rem 1rem; border-left: .2rem solid var(--accent); border-radius: 0 .55rem .55rem 0; background: #f7f8fc; }
.foundation li:nth-child(2), .foundation li:nth-child(4) { border-color: var(--accent-bright); }
.foundation li span { color: var(--muted); font-size: .88rem; line-height: 1.45; }

footer {
    padding-block: 2rem;
    color: var(--muted);
    font-size: .9rem;
}

.auth-shell {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 9rem);
    padding: 2rem 0 4rem;
}

.auth-card {
    width: min(38rem, 100%);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel);
    box-shadow: 0 1rem 2.5rem rgba(20, 33, 40, .08);
}

.auth-card h1, .prose h1 {
    max-width: none;
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.stack-form {
    display: grid;
    gap: .75rem;
    margin-top: 2rem;
}

.stack-form > label:not(.check-row) { margin-top: .5rem; font-weight: 750; }

.stack-form input[type="text"],
.stack-form input[type="email"],
.stack-form input[type="password"] {
    width: 100%;
    min-height: 2.8rem;
    padding: .65rem .75rem;
    border: 1px solid #aab8b1;
    border-radius: .45rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.stack-form select {
    width: 100%;
    min-height: 2.8rem;
    padding: .65rem .75rem;
    border: 1px solid #aab8b1;
    border-radius: .45rem;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.stack-form input:focus { outline: 3px solid rgba(49, 87, 213, .2); border-color: var(--accent); }

.check-row { display: flex; align-items: flex-start; gap: .65rem; margin-top: .5rem; line-height: 1.45; }
.check-row input { margin-top: .25rem; }
.field-hint { color: var(--muted); font-size: .9rem; }
.field-error, .validation-summary { color: #922b21; }
.validation-summary-valid { display: none; }
.validation-summary:empty { display: none; }
.button-wide { width: 100%; border: 0; margin-top: .75rem; cursor: pointer; font: inherit; }

.auth-links {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem 1.25rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: .95rem;
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 2rem;
}

.inline-form select {
    min-height: 2.8rem;
    padding: .55rem .75rem;
    border: 1px solid #aab8b1;
    border-radius: .45rem;
    background: #fff;
    font: inherit;
}

.prose {
    max-width: 52rem;
    margin: 2rem auto 5rem;
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--panel);
}

.wide-prose { max-width: 68rem; }
.notice-success { padding: .8rem 1rem; border-left: .3rem solid var(--accent); background: #eaf5f1; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.mail-card { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: .7rem; }
.mail-card pre { overflow-wrap: anywhere; white-space: pre-wrap; color: var(--ink); font: .88rem/1.5 ui-monospace, monospace; }

.prose h2 { margin-top: 2.25rem; }
.prose p { line-height: 1.7; }
.document-integrity { color: var(--muted); font-family: ui-monospace, monospace; font-size: .78rem; }

.wide-main { width: min(1480px, calc(100% - 2rem)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.card-panel { border: 1px solid var(--line); border-radius: 1rem; background: var(--panel); box-shadow: 0 .7rem 2rem rgba(20, 33, 40, .055); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.section-heading-row h2, .create-project h2, .sheet-editor h2, .revision-panel h2 { margin: 0; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.25rem; margin-top: 1.25rem; }
.project-browser, .create-project { padding: 1.4rem; }
.project-search { display: flex; gap: .5rem; }
.project-search input, .stacked-form input, .stacked-form textarea, .permanent-delete input {
    width: 100%; min-height: 2.65rem; padding: .6rem .7rem; border: 1px solid #aab8b1; border-radius: .45rem; background: #fff; color: var(--ink); font: inherit;
}
.project-search button, button.secondary, button.danger-link, button.danger, .compact-button { border: 0; background: transparent; color: var(--accent-dark); cursor: pointer; font: inherit; }
.project-tabs { display: flex; gap: .3rem; margin: 1.25rem 0; border-bottom: 1px solid var(--line); }
.project-tabs a { padding: .65rem .85rem; border-bottom: .2rem solid transparent; text-decoration: none; font-weight: 700; }
.project-tabs a.selected { border-color: var(--accent); color: var(--ink); }
.project-list { display: grid; gap: .65rem; }
.project-list-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .75rem; }
.project-list-item h3 { margin: .25rem 0; }
.project-list-item small { display: block; color: var(--muted); }
.project-number { color: var(--accent); font: 800 .78rem ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; }
.project-item-actions { display: flex; flex-wrap: wrap; justify-content: end; align-items: center; gap: .65rem; }
.project-item-actions form { margin: 0; }
.project-item-actions button.secondary, .project-search button.secondary, .compact-button { padding: .65rem .8rem; border: 1px solid var(--line); border-radius: .55rem; font-weight: 700; }
.danger-link { padding: .5rem; color: #8c2f24 !important; }
.danger { padding: .7rem .85rem; border-radius: .5rem; color: #fff !important; background: #8c2f24 !important; font-weight: 750 !important; }
.deletion-warning { margin-top: .25rem; color: #8c2f24 !important; }
.permanent-delete { position: relative; }
.permanent-delete summary { color: #8c2f24; cursor: pointer; }
.permanent-delete form { position: absolute; z-index: 3; right: 0; width: 19rem; padding: 1rem; border: 1px solid #d4a39d; border-radius: .7rem; background: #fff; box-shadow: 0 1rem 2rem rgba(20, 33, 40, .15); }
.permanent-delete label { display: grid; gap: .5rem; margin-bottom: .7rem; }
.stacked-form { display: grid; gap: .55rem; }
.stacked-form label { margin-top: .45rem; font-weight: 750; }
.stacked-form .button { border: 0; margin-top: .5rem; cursor: pointer; font: inherit; }
.empty-state { padding: 2rem; border: 1px dashed #b8c4be; border-radius: .75rem; color: var(--muted); text-align: center; }
.empty-state h3 { margin-top: 0; color: var(--ink); }
.empty-state.compact { padding: .8rem; }

.calculation-header, .revision-header { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 1.5rem 0 1rem; padding: 1.5rem; border-radius: 1rem; background: var(--ink); color: #fff; }
.calculation-header h1, .revision-header h1 { max-width: none; font-size: clamp(2.2rem, 5vw, 4.5rem); }
.calculation-header .eyebrow, .revision-header .eyebrow { color: #83d0c2; }
.back-link { display: inline-block; margin-bottom: 1rem; color: inherit; }
.draft-status-block { display: grid; justify-items: end; gap: .45rem; }
.draft-label { color: #c8d6d2; font-size: .85rem; }
.save-state { display: inline-flex; align-items: center; gap: .45rem; font-weight: 800; }
.save-state::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.save-state.saved { color: #8ce0ad; }
.save-state.saving, .save-state.pending { color: #f1d17d; }
.save-state.disconnected, .save-state.error, .save-state.conflict { color: #ff9c8f; }
.draft-status-block .secondary { color: #fff; border-color: #607078; }
.notice { margin: .75rem 0; padding: .8rem 1rem; border-radius: .65rem; }
.notice.warning { border: 1px solid #e5c78e; background: #fff7e5; }
.calculation-layout { display: grid; grid-template-columns: 14.5rem minmax(38rem, 1fr) 18rem; align-items: start; gap: 1rem; }
.sheet-tree-panel, .revision-panel { position: sticky; top: 1rem; padding: 1rem; }
.tree-project-heading { display: grid; }
.persisted-sheet-tree { display: grid; gap: .3rem; margin: 1rem 0; }
.sheet-tree-item { display: grid; grid-template-columns: 2rem 1fr; gap: .35rem; padding: .65rem .55rem; border-radius: .5rem; color: var(--ink); text-decoration: none; }
.sheet-tree-item:hover, .sheet-tree-item.selected { background: var(--accent-soft); }
.sheet-tree-item.selected { box-shadow: inset .2rem 0 var(--accent); }
.sheet-tree-item span { color: var(--muted); font: .75rem ui-monospace, monospace; }
.sheet-tree-item.depth-1 { padding-left: 1.1rem; }
.sheet-tree-item.depth-2 { padding-left: 1.65rem; }
.sheet-tree-item.depth-3 { padding-left: 2.2rem; }
.sheet-tree-item.depth-4, .sheet-tree-item.depth-5, .sheet-tree-item.depth-6 { padding-left: 2.7rem; }
.tree-help { padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.5; }
.sheet-editor { min-width: 0; padding: 1rem; }
.sheet-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.calculation-controls { display: flex; align-items: center; gap: .8rem; }
.auto-calculate-control { display: flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 700; }
.calculation-controls .secondary { padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .5rem; }
.calculation-controls .secondary:disabled { color: #8b9993; cursor: not-allowed; }
.inherited-values { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; margin: 1rem 0; padding: 1rem; border: 1px solid #b9d9d1; border-radius: .75rem; background: #f0f9f6; }
.inherited-values h3 { margin: 0; }
.inherited-value-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .55rem; }
.inherited-value { display: grid; gap: .1rem; padding: .55rem; border-radius: .45rem; background: #fff; }
.inherited-value small { color: var(--muted); }
.calculation-table-scroll { overflow-x: auto; }
.calculation-table { min-width: 47rem; table-layout: fixed; }
.calculation-table th:nth-child(1) { width: 2.6rem; }
.calculation-table th:nth-child(2) { width: 24%; }
.calculation-table th:nth-child(3) { width: 34%; }
.calculation-table th:nth-child(4) { width: 7.5rem; }
.calculation-table th:nth-child(5) { width: 23%; }
.calculation-table th:last-child { width: 2.6rem; }
.calculation-table input { width: 100%; min-height: 2.4rem; padding: .45rem .5rem; border: 1px solid transparent; border-radius: .35rem; color: var(--ink); background: transparent; font: inherit; }
.calculation-table input:focus { outline: 3px solid rgba(49, 87, 213, .18); border-color: var(--accent); background: #fff; }
.calculation-table .row-formula, .calculation-table code { font-family: ui-monospace, "Cascadia Code", monospace; }
.row-number { color: var(--muted); text-align: center; }
.row-result { overflow-wrap: anywhere; }
.row-result strong, .row-result small { display: block; }
.row-result span { margin-left: .3rem; color: var(--muted); }
.row-result.error { padding-left: .6rem; border-left: .2rem solid #b23b2f; color: #922b21; background: #fff2f0; }
.row-result.pass { color: #126b3b; background: #edf8f0; }
.row-result.fail { color: #922b21; background: #fff2f0; }
.row-result.pending { color: var(--muted); }
.remove-calculation-row { width: 2rem; height: 2rem; border: 0; border-radius: 50%; color: #8c2f24; background: transparent; cursor: pointer; font-size: 1.35rem; }
.remove-calculation-row:hover { background: #fff2f0; }
.add-row-button { margin-top: .8rem; padding: .65rem .8rem; border: 1px dashed #9caaa4 !important; border-radius: .5rem; }
.calculation-summary { display: flex; justify-content: end; gap: 1rem; margin-top: .7rem; color: var(--muted); font-size: .85rem; }
.error-count { color: #922b21; font-weight: 750; }
.revision-panel > p { color: var(--muted); line-height: 1.5; }
.revision-list, .check-records { display: grid; gap: .5rem; padding: 0; list-style: none; }
.revision-list a { display: grid; gap: .2rem; padding: .7rem; border: 1px solid var(--line); border-radius: .55rem; color: var(--ink); text-decoration: none; }
.revision-list span { color: var(--muted); }
.revision-list small { color: var(--muted); font-size: .75rem; }

.revision-metadata { display: grid; grid-template-columns: repeat(2, auto); gap: .7rem 1.5rem; margin: 0; }
.revision-metadata div { display: grid; }
.revision-metadata dt { color: #b8c8c3; font-size: .75rem; text-transform: uppercase; }
.revision-metadata dd { margin: .15rem 0 0; }
.revision-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1rem; align-items: start; }
.revision-content { min-width: 0; }
.revision-layout .card-panel { padding: 1.2rem; margin-bottom: 1rem; }
.revision-actions { position: sticky; top: 1rem; padding: 1.2rem; }
.revision-actions h2 { margin-top: 0; }
.revision-actions hr { margin: 1.4rem 0; border: 0; border-top: 1px solid var(--line); }
.small-copy { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.sheet-difference { margin-top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: .7rem; }
.sheet-difference h3 { margin-top: 0; }
.sheet-difference li { display: grid; grid-template-columns: 6rem 1fr; gap: .5rem; margin: .45rem 0; }
.sheet-difference code { grid-column: 2; overflow-wrap: anywhere; }
.difference { padding: .2rem .4rem; border-radius: .35rem; background: #fff2d6; color: #745314; font-size: .72rem; text-transform: uppercase; }
.revision-sheet { margin-top: 1.4rem; }
.revision-sheet h3 { padding-bottom: .5rem; border-bottom: 1px solid var(--line); }
.calculation-table.readonly td:nth-child(3) { overflow-wrap: anywhere; }
.check-records li { display: grid; gap: .2rem; padding: .65rem; border-left: .2rem solid var(--accent); background: #f0f9f6; }
.check-records small { color: var(--muted); }

@media (max-width: 1180px) {
    .calculation-layout { grid-template-columns: 13rem minmax(0, 1fr); }
    .revision-panel { position: static; grid-column: 2; }
}

@media (max-width: 820px) {
    .landing-hero, .workspace-grid, .revision-layout, .calculation-layout { grid-template-columns: 1fr; }
    .hero-visual { min-height: 24rem; }
    .sheet-tree-panel, .revision-panel, .revision-actions { position: static; grid-column: auto; }
    .section-heading-row, .calculation-header, .revision-header, .sheet-editor-heading { align-items: stretch; flex-direction: column; }
    .section-heading-row, .calculation-header, .revision-header, .sheet-editor-heading, .project-list-item { display: flex; }
    .project-list-item { align-items: stretch; flex-direction: column; }
    .project-item-actions { justify-content: start; }
    .inherited-values { grid-template-columns: 1fr; }
    .revision-metadata { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
    .site-header, footer { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
    .site-header nav { flex-wrap: wrap; }
    .project-search, .calculation-controls { align-items: stretch; flex-direction: column; }
    .revision-metadata { grid-template-columns: 1fr; }
    .formula-sheet { transform: none; }
    .formula-sheet-back { display: none; }
    .formula-sheet-footer { flex-wrap: wrap; }
}

.status-grid {
    display: grid;
    grid-template-columns: minmax(12rem, 1fr) 1fr;
    gap: .5rem 1rem;
}

.status-grid dt { font-weight: 750; }
.status-grid dd { margin: 0; }

@media (max-width: 720px) {
    .site-header { align-items: flex-start; padding-block: 1rem; }
    .site-header nav { flex-wrap: wrap; justify-content: flex-end; }
    .brand-copy { display: grid; margin: 0; }
    .hero { min-height: auto; padding-block: 4rem; }
    .foundation { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.5rem; }
}
