@font-face {
    font-family: "INSODEMA Inter";
    src: url("/public/fonts/InterVariable.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --v2-reading-width: 720px;
    --v2-wide-reading-width: 820px;
    --v2-section-gap: 80px;
    --v2-major-gap: 104px;
    --v2-component-gap: 28px;
    --v2-radius-object: 10px;
    --v2-radius-control: 6px;
    --v2-rule: rgba(15, 37, 68, 0.14);
    --v2-rule-strong: rgba(15, 37, 68, 0.22);
}

/*
 * Canonical V2 public design correction layer.
 * Loaded after page-specific CSS so legacy pages and newer V2 pages converge on
 * one editorial grammar instead of exposing two visual systems.
 */

body {
    background: linear-gradient(180deg, #fcfdfd 0%, #f7f8fa 100%);
    font-family: "INSODEMA Inter", Inter, "Segoe UI", Arial, sans-serif;
}

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

.site-main {
    max-width: 1120px;
    padding-bottom: 96px;
}

.hero,
.page-title {
    position: relative;
}

.hero {
    padding-top: 48px;
    padding-bottom: 34px;
}

.hero--home {
    min-height: 380px;
}

.hero h1 {
    max-width: 900px;
    margin-top: 14px;
    margin-bottom: 22px;
    font-size: clamp(2.55rem, 5.2vw, 4.7rem);
    line-height: 1.01;
    letter-spacing: -0.045em;
    font-weight: 710;
    text-wrap: balance;
}

.hero__lead {
    max-width: var(--v2-wide-reading-width);
    font-size: clamp(1.02rem, 1.45vw, 1.16rem);
    line-height: 1.66;
}

.page-title {
    max-width: var(--v2-wide-reading-width);
    margin-bottom: 52px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--v2-rule);
}

.page-title h1 {
    max-width: 14ch;
    margin: 8px 0 0;
    font-size: clamp(2.1rem, 3.6vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-weight: 690;
    text-wrap: balance;
}

.page-title p {
    max-width: var(--v2-reading-width);
    margin-bottom: 0;
    font-size: 1.03rem;
    line-height: 1.66;
}

.section {
    margin-top: var(--v2-section-gap);
}

.section + .section {
    scroll-margin-top: 96px;
}

.section__header {
    max-width: var(--v2-reading-width);
    margin-bottom: 30px;
}

.section__header h2,
.section--split h2,
.v2-why-now__intro h2,
.v2-research-architecture__intro h2 {
    max-width: 16ch;
    margin: 8px 0 0;
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: -0.028em;
    font-weight: 670;
    text-wrap: balance;
}

.section__header > p:not(.eyebrow) {
    max-width: var(--v2-reading-width);
    line-height: 1.66;
}

.section--split,
.brand-interpretation,
.v2-why-now,
.v2-research-architecture__intro {
    grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr);
    gap: 56px;
}

.section--quiet {
    padding: 34px 0;
    border: 0;
    border-top: 1px solid var(--v2-rule);
    border-bottom: 1px solid var(--v2-rule);
    border-radius: 0;
    background: transparent;
}

.text-block,
.v2-why-now__body {
    max-width: var(--v2-reading-width);
}

.text-block p,
.v2-why-now__body p {
    line-height: 1.67;
}

.eyebrow,
.hero__label {
    font-size: .69rem;
    font-weight: 730;
    letter-spacing: .145em;
}

.statement {
    max-width: var(--v2-wide-reading-width);
    padding: 2px 0 2px 22px;
    border-left: 2px solid var(--understanding);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: clamp(1.18rem, 1.75vw, 1.52rem);
    line-height: 1.46;
    font-weight: 520;
}

.section--statement {
    margin-top: 44px;
}

/* Section indices are orientation, not a second button bar. */
.section-index {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin: 0 0 54px;
    padding: 11px 0 13px;
    border-top: 1px solid var(--v2-rule);
    border-bottom: 1px solid var(--v2-rule);
}

.section-index a {
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 620;
}

.section-index a:hover,
.section-index a:focus-visible {
    color: var(--systems);
    background: transparent;
}

/* Generic explanatory card grids become editorial structured grids. */
.card-grid {
    gap: 0;
    border-top: 1px solid var(--v2-rule);
    border-bottom: 1px solid var(--v2-rule);
}

.card-grid > .card {
    position: relative;
    min-width: 0;
    padding: 24px 22px 26px;
    border: 0;
    border-right: 1px solid var(--v2-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.card-grid > .card:last-child {
    border-right: 0;
}

.card-grid > .card[class*="card--accent-"]::before {
    content: "";
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: 22px;
    background: var(--systems);
}

.card-grid > .card.card--accent-research::before { background: var(--research); }
.card-grid > .card.card--accent-understanding::before { background: var(--understanding); }
.card-grid > .card.card--accent-architecture::before,
.card-grid > .card.card--accent-systems::before { background: var(--systems); }

.card-grid > .card h3 {
    margin: 0 0 10px;
    font-size: 1.04rem;
    line-height: 1.32;
    font-weight: 660;
}

.card-grid > .card p {
    line-height: 1.6;
}

/* Standalone cards remain available for true discrete objects, but stop floating. */
.card,
.system-card,
.empty-state,
.access-panel,
.principle-item {
    border-radius: var(--v2-radius-object);
    box-shadow: none;
}

.system-card,
.access-panel,
.empty-state {
    border-color: var(--v2-rule);
}

/* Method and principle sequences read as research structure, not dashboard widgets. */
.method-flow--vertical,
.principle-list {
    gap: 0;
    border-top: 1px solid var(--v2-rule);
}

.method-step,
.principle-block {
    padding: 26px 0;
    border: 0;
    border-bottom: 1px solid var(--v2-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.method-step::before {
    display: none;
}

.method-step--observation,
.method-step--research,
.method-step--understanding,
.method-step--architecture,
.method-step--systems,
.principle-block--research,
.principle-block--understanding,
.principle-block--systems {
    border-left: 0;
}

.method-step__number,
.principle-block__number {
    font-size: 1.18rem;
    font-weight: 680;
    opacity: .28;
}

.method-step h2,
.principle-block h2 {
    font-size: clamp(1.2rem, 1.8vw, 1.65rem);
    line-height: 1.25;
    font-weight: 660;
}

/* System details are genuine objects, so containment remains but is restrained. */
.system-detail {
    padding: 28px;
    border: 1px solid var(--v2-rule);
    border-radius: var(--v2-radius-object);
    background: rgba(255,255,255,.56);
    box-shadow: none;
}

.system-detail--research,
.system-detail--understanding,
.system-detail--systems {
    border-left-width: 2px;
}

.system-detail__header h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.45rem);
    line-height: 1.08;
    font-weight: 680;
}

/* Publications prioritise reading over panel presentation. */
.publication-content {
    max-width: 760px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.publication-content p,
.publication-content li {
    line-height: 1.72;
}

.publication-preview {
    padding: 22px 0 24px;
    border: 0;
    border-bottom: 1px solid var(--v2-rule);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.publication-list {
    gap: 0;
    border-top: 1px solid var(--v2-rule);
}

.status-badge {
    border-radius: 4px;
    padding: 4px 8px;
    font-size: .73rem;
    font-weight: 650;
}

.button,
button,
.site-nav__link,
.site-utility a {
    border-radius: var(--v2-radius-control);
}

.button,
button {
    padding: 9px 14px;
    font-weight: 630;
    box-shadow: none;
}

.button--secondary {
    background: transparent;
}

.v2-actions {
    gap: 8px 14px;
}

.v2-actions .button--secondary {
    border-color: var(--v2-rule-strong);
}

/* New V2 grids inherit the same restrained scale as migrated legacy pages. */
.v2-problem-card,
.v2-research-node,
.v2-trust-card,
.v2-path__step {
    min-height: auto;
}

.v2-problem-card,
.v2-research-node,
.v2-trust-card {
    padding-top: 22px;
    padding-bottom: 24px;
}

.v2-research-node h3,
.v2-trust-card h3 {
    font-size: 1.04rem;
    line-height: 1.32;
    letter-spacing: -.015em;
}

.v2-case-contrast article {
    border-radius: var(--v2-radius-object);
    box-shadow: none;
}

@media (max-width: 960px) {
    :root {
        --v2-section-gap: 64px;
        --v2-major-gap: 80px;
    }

    .section--split,
    .brand-interpretation,
    .v2-why-now,
    .v2-research-architecture__intro {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .card-grid {
        grid-template-columns: 1fr !important;
    }

    .card-grid > .card {
        border-right: 0;
        border-bottom: 1px solid var(--v2-rule);
    }

    .card-grid > .card:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 680px) {
    .site-main {
        padding-bottom: 72px;
    }

    .hero {
        padding-top: 30px;
    }

    .hero h1 {
        font-size: clamp(2.15rem, 11vw, 3.25rem);
    }

    .page-title {
        margin-bottom: 40px;
        padding-bottom: 26px;
    }

    .page-title h1 {
        max-width: none;
        font-size: clamp(1.9rem, 9vw, 2.55rem);
    }

    .section__header h2,
    .section--split h2,
    .v2-why-now__intro h2,
    .v2-research-architecture__intro h2 {
        max-width: none;
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .section-index {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 18px;
        margin-bottom: 42px;
    }

    .section-index a {
        padding: 7px 0;
        border-bottom: 1px solid rgba(15,37,68,.08);
    }

    .section--quiet {
        padding: 28px 0;
    }

    .statement {
        padding-left: 16px;
    }

    .method-step,
    .principle-block {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .system-detail {
        padding: 22px 18px;
    }
}
