/* ===========================================================================
   Ozark Impact Group, LLC — holding-company one-pager
   Lane: registered-entity letterhead / engraved charter (institutional, not fintech).
   Self-contained tokens (not the Pleinform --pf-* system).
   =========================================================================== */

/* ---- Self-hosted faces (latin subset) ---------------------------------- */
@font-face {
    /* Variable: covers 400–700 in one file */
    font-family: "Public Sans";
    src: url("fonts/public-sans.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}

/* ---- Tokens ------------------------------------------------------------- */
:root {
    /* Color — off-white field, corporate-blue ink, gold as hairline accent.
       Off-white is tinted faintly toward the brand blue (cool), never warm cream. */
    --paper: oklch(0.973 0.004 248);
    --paper-sunk: oklch(0.949 0.007 248);
    --ink: oklch(0.255 0.038 256);
    --muted: oklch(0.448 0.035 256); /* secondary text — AA on paper */
    --blue: oklch(0.42 0.1 254); /* corporate blue: headings, links */
    --blue-strong: oklch(0.355 0.1 255); /* link hover / pressed */
    --blue-deep: oklch(0.283 0.064 256); /* colophon band */
    --gold: oklch(0.74 0.12 80); /* accent: hairlines, markers */
    --paper-on-dark: oklch(0.955 0.006 250);
    --muted-on-dark: oklch(0.79 0.018 250);
    --gold-on-dark: oklch(0.805 0.11 82);

    /* Derived rules */
    --rule: color-mix(in oklab, var(--ink) 13%, transparent);
    --rule-faint: color-mix(in oklab, var(--ink) 8%, transparent);
    --rule-gold: color-mix(in oklab, var(--gold) 62%, transparent);
    --wash-blue: color-mix(in oklab, var(--blue) 6%, transparent);
    --rule-on-dark: color-mix(in oklab, var(--paper-on-dark) 16%, transparent);

    /* Type */
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --step-cap: 0.78rem; /* tracked legal stamp / labels */
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem); /* body */
    --step-1: clamp(1.0625rem, 1rem + 0.34vw, 1.1875rem); /* entry name */
    --step-2: clamp(1.3rem, 1.12rem + 0.74vw, 1.6rem); /* section heading */
    --lede: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); /* the display line (sans, bold) */

    /* Space */
    --gutter: clamp(1.25rem, 0.7rem + 2.6vw, 2.5rem);
    --measure: 33rem; /* document column */

    /* Motion */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 0.72s;

    /* Z-scale */
    --z-trim: 50;
}

/* ---- Reset / base ------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
}
a {
    color: var(--blue);
    text-decoration-color: var(--rule-gold);
    text-underline-offset: 0.18em;
    text-decoration-thickness: from-font;
}
a:hover {
    color: var(--blue-strong);
    text-decoration-color: currentColor;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}
:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
    border-radius: 1px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

/* ---- Document header trim (two-tone, like official letterhead) ---------- */
.trim {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: var(--z-trim);
    height: 5px;
    background: var(--blue-deep);
    border-bottom: 1px solid var(--rule-gold);
}

/* ---- Page shell --------------------------------------------------------- */
.page {
    width: 100%;
    max-width: var(--measure);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
main.page {
    padding-block: clamp(3.5rem, 2rem + 7vw, 7rem) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

/* ---- Masthead ----------------------------------------------------------- */
.masthead {
    text-align: center;
}
.crest {
    width: clamp(108px, 26vw, 142px);
    margin-inline: auto;
}
.lede {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--lede);
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--blue);
    text-wrap: balance;
    margin: clamp(1.5rem, 1rem + 2vw, 2.4rem) auto 0;
    max-width: 16ch;
}
.stamp {
    font-size: var(--step-cap);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 1.25rem 0 0;
}
.stamp .sep {
    color: var(--gold);
    margin-inline: 0.5em;
    font-weight: 700;
}
/* gold hairline closing the masthead */
.rule-gold {
    width: 56px;
    height: 0;
    margin: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem) auto 0;
    border: 0;
    border-top: 2px solid var(--gold);
}

/* ---- The register (holdings ledger) ------------------------------------ */
.register {
    margin-top: clamp(2.75rem, 2rem + 3vw, 4.25rem);
}
.register-label {
    font-size: var(--step-cap);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.5rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--rule);
}
.ledger {
    list-style: none;
    margin: 0;
    padding: 0;
}
.entry {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 1rem;
    row-gap: 0.15rem;
    padding: clamp(1rem, 0.8rem + 0.9vw, 1.4rem) 0.75rem;
    border-bottom: 1px solid var(--rule-faint);
    text-decoration: none;
    color: inherit;
    position: relative;
    transition:
        background-color 0.25s var(--ease-out-expo),
        padding-left 0.25s var(--ease-out-expo);
}
/* heraldic gold marker (a small rotated square), drawn — not a side border */
.entry::before {
    content: "";
    position: absolute;
    left: -0.35rem;
    top: 1.65rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg) scale(0.6);
    opacity: 0;
    transition:
        opacity 0.25s var(--ease-out-expo),
        transform 0.25s var(--ease-out-expo);
}
.entry:hover,
.entry:focus-visible {
    background: var(--wash-blue);
    padding-left: 1.1rem;
    outline: none;
}
.entry:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.entry:hover::before,
.entry:focus-visible::before {
    opacity: 1;
    transform: rotate(45deg) scale(1);
}
.entry-name {
    grid-column: 1;
    font-size: var(--step-1);
    font-weight: 600;
    letter-spacing: -0.005em;
    color: var(--ink);
}
.entry-host {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--blue);
    white-space: nowrap;
}
.entry-desc {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 46ch;
}
.arrow {
    flex: none;
    transition: transform 0.25s var(--ease-out-expo);
}
.entry:hover .arrow,
.entry:focus-visible .arrow {
    transform: translateX(3px);
}

/* ---- Routing line ------------------------------------------------------- */
.routing {
    margin-top: clamp(2.5rem, 1.8rem + 3vw, 4rem);
    text-align: center;
    color: var(--muted);
    font-size: var(--step-0);
    line-height: 1.6;
}
.routing a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-weight: 600;
    color: var(--blue);
    text-decoration: none;
    white-space: nowrap;
}
.routing a:hover {
    color: var(--blue-strong);
}
.routing a:hover .arrow {
    transform: translateX(3px);
}

/* ---- Colophon (deep-blue band, the one moment of weight) --------------- */
.colophon {
    margin-top: auto;
    background: var(--blue-deep);
    color: var(--muted-on-dark);
    border-top: 1px solid var(--rule-gold);
}
.colophon-inner {
    padding-block: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}
.colophon .crest-mark {
    width: 46px;
    /* black-on-transparent logo → knock out to off-white for the dark band */
    filter: invert(1) brightness(1.9);
    opacity: 0.9;
}
.legal {
    font-size: 0.86rem;
    line-height: 1.7;
    color: var(--muted-on-dark);
}
.legal .name {
    color: var(--paper-on-dark);
    font-weight: 600;
    letter-spacing: 0.01em;
}
.legal a {
    color: var(--paper-on-dark);
    text-decoration-color: var(--rule-on-dark);
}
.legal a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}
.colophon-rule {
    width: 100%;
    max-width: 9rem;
    height: 0;
    border: 0;
    border-top: 1px solid var(--rule-on-dark);
    margin: 0;
}
.signature {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: var(--muted-on-dark);
}
.signature .heart {
    color: var(--gold-on-dark);
    font-weight: 700;
    font-style: normal;
}
.signature a {
    color: var(--paper-on-dark);
    font-weight: 600;
    text-decoration-color: var(--rule-gold);
}
.signature a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

/* ---- Entrance motion (CSS-only; enhances an already-final state) -------- */
@keyframes oig-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}
.reveal {
    animation: oig-rise var(--dur) var(--ease-out-expo) both;
    animation-delay: var(--d, 0s);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ---- Narrow screens ----------------------------------------------------- */
@media (max-width: 30rem) {
    .entry {
        grid-template-columns: 1fr;
    }
    .entry-host {
        grid-column: 1;
        grid-row: auto;
        margin-top: 0.35rem;
    }
    .entry-desc {
        order: 2;
    }
}
