/* ============================================================================
   Atlas Dominion Holdings LLC — marketing site
   Hand-written CSS, no build step. Tokens mirror the admin app at
   admin.atlas-dominion.com so the two read as one brand.
   ========================================================================= */

:root {
    /* Brand */
    --navy: #0c1a3a;
    --navy-deep: #070f24;
    --navy-soft: #15244a;
    --gold: #c9a24a;
    --gold-light: #e2c987;
    --gold-deep: #9a7a2e;
    --bone: #f6f1e7;
    --paper: #fbf8f1;
    --ink: #101728;
    --muted: #5b6478;
    --line: rgba(12, 26, 58, .12);
    --line-gold: rgba(201, 162, 74, .35);

    /* Type */
    --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    /* Rhythm */
    --measure: 68ch;
    --gutter: clamp(1.25rem, 4vw, 3rem);
    --shell: 1200px;
    --section-y: clamp(4.5rem, 10vw, 8.5rem);

    --radius: 4px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- reset --- */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 {
    font-family: var(--display);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.012em;
    margin: 0;
    text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 1.9rem + 4.2vw, 5.25rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2.4vw, 3.25rem); }
h3 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); }

p { margin: 0 0 1.15em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-color: var(--line-gold); text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--gold); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

::selection { background: var(--gold); color: var(--navy-deep); }

/* ------------------------------------------------------------ utilities -- */

.shell {
    width: min(100% - (var(--gutter) * 2), var(--shell));
    margin-inline: auto;
}

.shell--narrow { width: min(100% - (var(--gutter) * 2), 860px); }

.eyebrow {
    font-family: var(--mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin: 0 0 1.1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.eyebrow::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line-gold);
    max-width: 5rem;
}

.eyebrow--plain::after { display: none; }

.lede {
    font-size: clamp(1.125rem, 1.02rem + .45vw, 1.375rem);
    line-height: 1.55;
    color: var(--muted);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--bone { background: var(--bone); }

.section--navy {
    background: var(--navy-deep);
    color: var(--bone);
}

.section--navy h2, .section--navy h3 { color: var(--bone); }
.section--navy .lede { color: rgba(246, 241, 231, .68); }
.section--navy p { color: rgba(246, 241, 231, .78); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

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

/* --------------------------------------------------------------- skip --- */

.skip-link {
    position: absolute;
    left: 50%; top: 0;
    transform: translate(-50%, -120%);
    background: var(--navy-deep);
    color: var(--bone);
    padding: .7rem 1.25rem;
    z-index: 200;
    text-decoration: none;
    font-size: .875rem;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: transform .18s var(--ease);
}

.skip-link:focus { transform: translate(-50%, 0); }

/* -------------------------------------------------------------- buttons -- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .005em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s var(--ease), color .2s var(--ease),
                border-color .2s var(--ease), transform .2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }

.btn--navy { background: var(--navy); color: var(--bone); }
.btn--navy:hover { background: var(--navy-soft); }

.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(201, 162, 74, .07); }

.section--navy .btn--ghost {
    border-color: rgba(246, 241, 231, .25);
    color: var(--bone);
}

.section--navy .btn--ghost:hover {
    border-color: var(--gold);
    background: rgba(201, 162, 74, .12);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 2.25rem;
}

/* Arrow link — the quiet tertiary action */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--mono);
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    text-decoration: none;
    font-weight: 500;
}

.arrow-link span { transition: transform .2s var(--ease); }
.arrow-link:hover span { transform: translateX(4px); }

/* ------------------------------------------------------------ masthead -- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 248, 241, .88);
    backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--line);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 76px;
}

.wordmark {
    display: flex;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    line-height: 1;
    color: var(--navy);
}

/* Height-constrained, width auto — the mark is not square (376×320). */
.wordmark__mark {
    height: 38px;
    width: auto;
    flex: none;
}

.wordmark__text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.wordmark__name {
    font-family: var(--display);
    font-size: 1.5rem;
    color: var(--navy);
    letter-spacing: -.01em;
}

.wordmark__sub {
    font-family: var(--mono);
    font-size: .5625rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: 2rem; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__links a {
    font-size: .9rem;
    text-decoration: none;
    color: var(--muted);
    transition: color .18s var(--ease);
    position: relative;
}

.nav__links a:hover { color: var(--navy); }

.nav__links a[aria-current="page"] {
    color: var(--navy);
    font-weight: 600;
}

.nav__links a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 1px;
    background: var(--gold);
}

.nav__toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .55rem .85rem;
    cursor: pointer;
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--navy);
}

/* ---------------------------------------------------------------- hero -- */

.hero {
    position: relative;
    padding-block: clamp(4.5rem, 11vw, 9rem) clamp(4rem, 9vw, 7rem);
    overflow: hidden;
}

.hero::before {
    /* Faint gold wash, top-right — suggests light without becoming decoration */
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(70% 90% at 85% 0%, rgba(201, 162, 74, .13), transparent 60%);
    pointer-events: none;
}

.hero__inner { position: relative; }

.hero h1 { max-width: 16ch; }

.hero__lede {
    margin-top: 1.75rem;
    max-width: 54ch;
    font-size: clamp(1.125rem, 1rem + .55vw, 1.4375rem);
    line-height: 1.55;
    color: var(--muted);
}

/* ---------------------------------------------------------------------------
 | Hero figure
 |
 | A meridian/globe motif echoing the logo mark, filling the dead space to the
 | right of the hero copy. Positioned against .hero__inner (the 1200px shell)
 | rather than .hero, so it lines up with the content edge instead of the
 | viewport edge.
 |
 | Copy is capped at 16ch (h1) and 54ch (lede), so at these widths the figure
 | cannot collide with text. Below 1100px there is no dead space left to fill,
 | so it is removed from the document rather than merely hidden.
 --------------------------------------------------------------------------- */
.hero__figure {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: min(30vw, 340px);
    aspect-ratio: 1;
    pointer-events: none;
    z-index: 0;
}

.hero__figure--lg {
    width: min(36vw, 430px);
}

.hero__figure svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* Keep copy above the artwork in every stacking case. */
.hero__inner > *:not(.hero__figure) {
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .hero__figure { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__figure { transition: opacity .4s var(--ease); }
}

.hero__meta {
    margin-top: 3.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 3.5rem;
}

.hero__meta div { max-width: 22ch; }

.hero__meta dt {
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: .5rem;
}

.hero__meta dd {
    margin: 0;
    font-size: .9375rem;
    color: var(--muted);
    line-height: 1.5;
}

/* --------------------------------------------------------------- cards -- */

.grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .22s var(--ease), transform .22s var(--ease);
}

.section--bone .card { background: #fff; }

.card--link:hover {
    border-color: var(--line-gold);
    transform: translateY(-3px);
}

.card__index {
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .18em;
    color: var(--gold-deep);
    margin-bottom: 1.5rem;
}

.card h3 { margin-bottom: .85rem; }
.card p { color: var(--muted); font-size: .9375rem; }
.card .arrow-link { margin-top: auto; padding-top: 1.75rem; }

/* Full-bleed link overlay so the whole card is clickable, keyboard included */
.card--link .stretch::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

/* ------------------------------------------------------------- listing -- */

.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

/* Sequence is carried by the hairline rules and reading order, not by numbers. */
.steps li {
    padding-block: clamp(1.75rem, 3vw, 2.5rem);
    border-top: 1px solid var(--line);
}

.steps li:last-child { border-bottom: 1px solid var(--line); }

.section--navy .steps li { border-color: rgba(246, 241, 231, .14); }

.steps h3 { margin-bottom: .6rem; }
.steps p { color: var(--muted); font-size: .9375rem; }
.section--navy .steps p { color: rgba(246, 241, 231, .7); }

/* Checklist */
.checks { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; }

.checks li {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: .75rem;
    font-size: .9375rem;
    color: var(--muted);
    align-items: start;
}

.checks li::before {
    content: "";
    width: 7px; height: 7px;
    margin-top: .55rem;
    border: 1px solid var(--gold);
    background: var(--gold);
    transform: rotate(45deg);
}

.section--navy .checks li { color: rgba(246, 241, 231, .78); }

/* Split layout: sticky heading beside flowing content */
.split {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
}

.split__aside { position: sticky; top: 110px; }

/* ------------------------------------------------------------- callout -- */

.callout {
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background: rgba(201, 162, 74, .07);
    padding: clamp(1.5rem, 3vw, 2.25rem);
}

.callout p { font-size: .9375rem; color: var(--muted); }

.disclosure {
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ---------------------------------------------------------------- CTA --- */

.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta .lede { margin-inline: auto; margin-top: 1.25rem; max-width: 52ch; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------- forms -- */

.form { display: grid; gap: 1.5rem; }

.field { display: grid; gap: .5rem; }

.field > label {
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
}

.field .hint {
    font-size: .8125rem;
    color: var(--muted);
    margin: 0;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder, .field textarea::placeholder { color: rgba(91, 100, 120, .5); }

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 74, .16);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, .1);
}

.field-error {
    margin: 0;
    min-height: 1.1em;
    font-size: .8125rem;
    color: #b3261e;
}

.field-row {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

fieldset {
    margin: 0;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background: rgba(201, 162, 74, .05);
    display: grid;
    gap: 1.25rem;
}

legend {
    font-family: var(--mono);
    font-size: .625rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-deep);
    padding-inline: .6rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    margin: 0;
    font-size: .9375rem;
    min-height: 1.4em;
}

.form-status--success {
    padding: 1.1rem 1.25rem;
    border: 1px solid var(--line-gold);
    border-radius: var(--radius);
    background: rgba(201, 162, 74, .1);
    color: var(--navy);
}

.form-status--error { color: #b3261e; }

.form-status__ref {
    display: block;
    margin-top: .4rem;
    font-family: var(--mono);
    font-size: .8125rem;
    letter-spacing: .08em;
    color: var(--gold-deep);
}

.required-mark { color: var(--gold-deep); }

/* -------------------------------------------------------------- footer -- */

.footer {
    background: var(--navy-deep);
    color: rgba(246, 241, 231, .68);
    padding-block: clamp(3.5rem, 7vw, 5.5rem) 2.5rem;
    font-size: .9rem;
}

.footer a { color: rgba(246, 241, 231, .68); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }

.footer__grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(140px, 1fr));
    padding-bottom: 3rem;
}

.footer__grid h4 {
    font-family: var(--mono);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.1rem;
}

.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }

/* The footer is navy and the mark's "A" is navy, so the footer stays type-only. */
.footer .wordmark__name { color: var(--bone); }

.footer__blurb {
    margin-top: 1.25rem;
    max-width: 34ch;
    color: rgba(246, 241, 231, .55);
    font-size: .875rem;
}

.footer__base {
    border-top: 1px solid rgba(246, 241, 231, .14);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: baseline;
    font-size: .8125rem;
    color: rgba(246, 241, 231, .45);
}

.footer__disclosure {
    margin-top: 1.5rem;
    max-width: 82ch;
    font-size: .75rem;
    line-height: 1.65;
    color: rgba(246, 241, 231, .4);
}

/* ------------------------------------------------------------ 404 page -- */

.stub {
    min-height: 62vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding-block: var(--section-y);
}

.stub .btn-row { justify-content: center; }

/* ------------------------------------------------------------ prose ----- */

.prose h2 { margin-top: 3rem; margin-bottom: 1rem; }
.prose h3 { margin-top: 2.25rem; margin-bottom: .75rem; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; max-width: var(--measure); color: var(--muted); }
.prose li { margin-bottom: .55rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose td { color: var(--muted); }

/* --------------------------------------------------------- responsive --- */

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split__aside { position: static; }

    .nav__links {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: .5rem var(--gutter) 1.25rem;
    }

    .nav__links[data-open="true"] { display: flex; }
    .nav__links li { border-top: 1px solid var(--line); }
    .nav__links a { display: block; padding: .9rem 0; font-size: 1rem; }
    .nav__links a[aria-current="page"]::after { display: none; }

    .nav .btn { display: none; }
    .nav__toggle { display: inline-flex; }
    .masthead__inner { position: relative; }

}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .btn:hover, .card--link:hover { transform: none; }
}

@media print {
    .masthead, .footer, .btn-row, .skip-link { display: none; }
    body { background: #fff; }
}
