/* ---------------------------------------------------------------
   ADS Risk Solutions
   Palette taken from the shield: ink, steel, sheen. Paper ground.
   One accent of annotation red, used only where something is
   unverified. Type: Archivo (display) / Source Serif 4 (body) /
   IBM Plex Mono (labels and the questionnaire facsimile).
----------------------------------------------------------------*/

:root {
    --ink: #0b1218;
    --ink-2: #12212c;
    --steel: #2f6b87;
    --steel-deep: #1c485d;
    --sheen: #7cc3de;
    --paper: #f2f2ee;
    --surface: #ffffff;
    --text: #16202a;
    --muted: #57646f;
    --muted-light: #a9bcc7;
    --mark: #a3392c;
    --rule: rgba(11, 18, 24, 0.14);
    --rule-light: rgba(255, 255, 255, 0.16);

    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

    --shell: 1180px;
    --measure: 62ch;
}

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.19rem);
    line-height: 1.65;
    font-synthesis-weight: none;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

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

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.measure { max-width: var(--measure); }

/* --- bands ----------------------------------------------------- */

.band { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.band--tight { padding-top: 0; }
.band--paper { background: var(--paper); }
.band--surface { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.band--ink {
    background:
        radial-gradient(120% 90% at 82% 0%, rgba(47, 107, 135, 0.38) 0%, rgba(11, 18, 24, 0) 62%),
        var(--ink);
    color: #e8eef2;
}

.band--ink h1,
.band--ink h2 { color: #ffffff; }

/* --- type ------------------------------------------------------- */

.h2 {
    font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.9rem);
    margin-bottom: 1.1rem;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--steel-deep);
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.eyebrow::before {
    content: "";
    width: 0.6rem;
    height: 0.6rem;
    border: 1px solid currentColor;
    flex: none;
}

.eyebrow--light { color: var(--sheen); }
.eyebrow--mark { color: var(--mark); }

.pullquote {
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
    line-height: 1.4;
    font-weight: 600;
    color: var(--text);
    border-left: 2px solid var(--mark);
    padding-left: 1.25rem;
    margin-top: 2rem;
}

.credential {
    font-size: 0.92rem;
    color: var(--muted-light);
    border-top: 1px solid var(--rule-light);
    padding-top: 1.2rem;
    margin-top: 2rem;
}

.credential a {
    color: var(--sheen);
    text-decoration: none;
    border-bottom: 1px solid rgba(124, 195, 222, 0.4);
    transition: border-color 0.18s ease;
}

.credential a:hover { border-bottom-color: var(--sheen); }

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

.button {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    text-decoration: none;
    color: #ffffff;
    background: var(--steel-deep);
    padding: 0.95rem 1.9rem;
    border: 1px solid transparent;
    transition: background 0.18s ease, color 0.18s ease;
}

.button:hover { background: var(--steel); }

.button--light {
    background: var(--sheen);
    color: var(--ink);
}

.button--light:hover { background: #ffffff; }

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

.masthead {
    background: var(--surface);
    border-bottom: 1px solid var(--rule);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.masthead__logo img { height: clamp(3.4rem, 6vw, 4.6rem); width: auto; }

.masthead__action {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--steel-deep);
    border-bottom: 1px solid var(--steel);
    padding-bottom: 0.2rem;
    transition: color 0.18s ease, border-color 0.18s ease;
}

.masthead__action:hover { color: var(--mark); border-color: var(--mark); }

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

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
}

.hero__title {
    font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.6rem;
}

.hero__lede {
    color: #c8d6de;
    max-width: 34em;
}

.hero__lede--strong {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 2.2rem;
}

/* --- findings sheet (the signature element) ---------------------- */

.findings { margin: 0; }

.findings__sheet {
    background: #f7f7f3;
    color: var(--text);
    padding: clamp(1.5rem, 3vw, 2.1rem);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.35);
}

.findings__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.findings__row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.8rem 0;
    border-bottom: 1px dotted var(--rule);
}

.findings__row:first-child { padding-top: 0; }
.findings__row:last-child { border-bottom: none; padding-bottom: 0; }

.findings__toggle {
    flex: none;
    width: 0.8rem;
    color: var(--steel);
    line-height: 1.5;
    user-select: none;
}

.findings__body {
    flex: 1 1 auto;
    display: block;
    min-width: 0;
}

.findings__line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
}

.findings__name { flex: 1 1 auto; }

.findings__meta {
    flex: none;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.1rem;
}


.findings__meta--first { color: var(--mark); }
.findings__meta--clear { color: var(--steel); }

.findings__caption {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--sheen);
    margin-top: 1.1rem;
}

/* --- questionnaire facsimile (alternate hero artifact) ----------- */

.facsimile { margin: 0; }

.facsimile__sheet {
    background: #f7f7f3;
    color: var(--text);
    padding: clamp(1.5rem, 3vw, 2.1rem);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.55;
    box-shadow: 0 1.4rem 3rem rgba(0, 0, 0, 0.35);
}

.facsimile__head {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.68rem;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 0.9rem;
    margin: 0 0 1.2rem;
}

.facsimile__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.facsimile__list li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 0.75rem 0;
    border-bottom: 1px dotted var(--rule);
}

.facsimile__q { flex: 1 1 auto; }

.facsimile__a {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
}

.box {
    width: 0.85rem;
    height: 0.85rem;
    border: 1px solid var(--muted);
    display: inline-block;
    position: relative;
    flex: none;
}

.box--marked::after {
    content: "";
    position: absolute;
    left: 0.22rem;
    top: 0.02rem;
    width: 0.28rem;
    height: 0.55rem;
    border-right: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(42deg);
}

.facsimile__sign { margin-top: 1.6rem; }

.facsimile__line {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin: 0 0 0.9rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.facsimile__rule {
    flex: 1 1 auto;
    height: 1px;
    background: var(--rule);
    position: relative;
    top: -0.15rem;
}

.facsimile__rule--filled::after {
    content: "";
    position: absolute;
    inset: auto 0 0.15rem 0;
    height: 2px;
    background: var(--steel-deep);
    opacity: 0.55;
}

.facsimile__line--open {
    color: var(--mark);
}

.facsimile__line--open .facsimile__rule {
    background: var(--mark);
    opacity: 0.5;
}

.facsimile__caption {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    color: var(--sheen);
    margin-top: 1.1rem;
}

/* --- steps ------------------------------------------------------ */

.steps {
    list-style: none;
    margin: clamp(2.5rem, 5vw, 3.75rem) 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(1.5rem, 3vw, 2.75rem);
    row-gap: 2.5rem;
}

.steps__item { padding-top: 1.1rem; border-top: 1px solid var(--steel); }

.steps__label {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.45rem;
}

.steps__item p:not(.steps__label) {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

/* --- the measure note ------------------------------------------- */

.note {
    background: var(--paper);
    border-left: 2px solid var(--mark);
    padding: clamp(1.6rem, 3vw, 2.2rem);
    max-width: calc(var(--measure) + 4rem);
}

/* --- cases ------------------------------------------------------ */

.cases {
    list-style: none;
    margin: clamp(2rem, 4vw, 2.75rem) 0;
    padding: 0;
    max-width: 46rem;
    border-top: 1px solid var(--rule);
}

.cases__item {
    padding: 1.15rem 0 1.15rem 1.9rem;
    border-bottom: 1px solid var(--rule);
    font-size: 1.02rem;
    line-height: 1.55;
    position: relative;
}

.cases__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.75rem;
    width: 0.85rem;
    height: 1px;
    background: var(--mark);
}

.cases__close {
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.5;
}

/* --- faq -------------------------------------------------------- */

.faq {
    margin: clamp(1.8rem, 3.5vw, 2.5rem) 0 0;
    border-top: 1px solid var(--rule);
}

.faq__q {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.08rem;
    letter-spacing: -0.012em;
    line-height: 1.3;
    margin: 0;
    padding-top: 1.5rem;
}

.faq__a {
    margin: 0.5rem 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* --- contact ---------------------------------------------------- */

.contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem 2rem;
    margin-top: 2.4rem;
}

.contact__line {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--sheen);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.18s ease;
}

.contact__line:hover { border-bottom-color: var(--sheen); }

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

.footer {
    background: var(--paper);
    border-top: 1px solid var(--rule);
    padding: 2.5rem 0;
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem 2rem;
}

.footer__legal,
.footer__links {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0;
}

.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__links a { text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 0.15rem; }
.footer__links a:hover { color: var(--mark); border-bottom-color: var(--mark); }

/* --- motion ----------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* --- accessibility ---------------------------------------------- */

.skip-link {
    position: absolute;
    left: 50%;
    top: -6rem;
    transform: translateX(-50%);
    background: var(--ink);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0.8rem 1.4rem;
    text-decoration: none;
    z-index: 20;
    transition: top 0.18s ease;
}

.skip-link:focus { top: 0; }

a:focus-visible,
.button:focus-visible {
    outline: 2px solid var(--mark);
    outline-offset: 3px;
}

.band--ink a:focus-visible { outline-color: var(--sheen); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

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

@media (max-width: 900px) {
    .hero__grid { grid-template-columns: 1fr; }
    .findings, .facsimile { max-width: 34rem; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .titles { grid-template-columns: 1fr; row-gap: 1.25rem; }
    .masthead__action { display: none; }
}

@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; row-gap: 2rem; }
    .facsimile__list li { flex-direction: column; gap: 0.4rem; }
    .findings__line { flex-direction: column; gap: 0.35rem; }
    .facsimile__sheet,
    .findings__sheet { font-size: 0.76rem; }
    .contact { gap: 1rem 1.4rem; }
    .footer__inner { flex-direction: column; align-items: flex-start; }
}
