/* ---------------------------------------------------------------------------
   grayarea.dev - home page
   ---------------------------------------------------------------------------
   Palette, type and geometry come from tokens.css. This file is structure and
   composition only: no hex values, no font stacks, no second palette.

   Concept (docs/THEME.md): gray is the field, color is the judgment call.
   Neutrals carry every surface and all body text. A hue means a verdict was
   reached. Two poles only - --signal and --risk - plus the interval between
   them, which appears exactly twice: the hero threshold rule and the top edge
   of each case card.
   --------------------------------------------------------------------------- */

@import url("tokens.css");

/* ---------- Reset ---------- */

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

html,
body {
    margin: 0;
    padding: 0;
}

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

/* Home page measure. Wider than the article pages, which set their own. */
:root {
    --maxw: 1180px;
    --gutter: 28px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
p {
    overflow-wrap: break-word;
    margin: 0;
}

::selection {
    background: var(--signal-deep);
    color: var(--text);
}

:focus {
    outline: none;
}

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

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--text);
    color: var(--text-inverse);
    font-size: 13px;
    font-weight: 700;
    transform: translateY(-200%);
    transition: transform .2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* ---------- Layout primitives ---------- */

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

.section {
    padding: 96px 0;
}

.hero,
.section,
.case {
    scroll-margin-top: var(--sticky-scroll-offset);
}

.section + .section {
    padding-top: 0;
}

/* Section headers pair a kicker + title against a supporting line. */
.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 18px 56px;
    align-items: end;
    padding-bottom: 34px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.section-kicker {
    display: block;
    margin-bottom: 14px;
    color: var(--risk-label);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section-title {
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.015em;
    text-wrap: balance;
}

.section-sub {
    max-width: 46ch;
    color: var(--text-dim);
    font-size: 15.5px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.btn svg {
    width: 17px;
    height: 17px;
    flex: none;
}

.btn-primary {
    background: var(--text);
    border-color: var(--text);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--signal);
    border-color: var(--signal);
}

.btn-ghost {
    border-color: var(--line-strong);
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg-elev);
    border-color: var(--signal);
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--scrim);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color .25s ease;
}

.nav.is-scrolled {
    border-bottom-color: var(--line);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
}

.brand-prompt {
    color: var(--risk-label);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 13.5px;
    transition: color .2s ease;
}

.nav-link:hover {
    color: var(--signal);
}

.nav-cta {
    margin-left: 8px;
    padding: 8px 14px;
    border: 1px solid var(--text);
    border-radius: var(--radius-sm);
    background: var(--text);
    color: var(--text-inverse);
    font-size: 13.5px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}

.nav-cta:hover {
    background: var(--signal);
    border-color: var(--signal);
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    padding: 72px 0 80px;
    background: var(--bg-elev);
    /* The threshold rule: the thesis of the site as a single line. Certain at
       both ends, gray where the decision actually gets made. One of only two
       --grayarea instances on the page. */
    border-bottom: 2px solid transparent;
    border-image: var(--grayarea) 1;
}

.hero .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title    portrait"
        "role     portrait"
        "tagline  portrait"
        "actions  portrait";
    gap: 0 var(--hero-column-gap);
    align-items: start;
}

.hero h1 {
    grid-area: title;
    max-width: 20ch;
    margin-bottom: 18px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(38px, 5.6vw, 66px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -.022em;
    text-wrap: balance;
}

.hero .role {
    grid-area: role;
    margin-bottom: 22px;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero .tagline {
    grid-area: tagline;
    max-width: 58ch;
    margin-bottom: 32px;
    color: var(--text-dim);
    font-size: 17px;
    line-height: 1.65;
}

.hero-actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-portrait {
    grid-area: portrait;
    width: var(--hero-portrait-width);
    margin: 0;
    align-self: center;
    border-radius: var(--radius);
}

.hero-portrait-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: var(--hero-portrait-ratio);
    border-radius: var(--radius);
    isolation: isolate;
}

.hero-portrait-image img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: var(--hero-portrait-ratio);
    object-fit: cover;
    object-position: center 39%;
    filter: grayscale(1) contrast(1.06) brightness(.92);
}

.hero-portrait-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--portrait-wash);
    mix-blend-mode: color;
    pointer-events: none;
}

.hero-portrait figcaption {
    display: grid;
    gap: var(--hero-portrait-caption-gap);
    margin-top: var(--hero-portrait-caption-space);
    color: var(--text-dim);
    font-size: var(--hero-portrait-caption-size);
    line-height: var(--hero-portrait-caption-leading);
}

.hero-portrait figcaption span:first-child {
    color: var(--text);
    font-weight: 600;
}

/* ---------- Outcomes strip ---------- */

.outcomes-strip {
    margin-bottom: 40px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elev);
}

.outcomes-label {
    margin-bottom: 18px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
}

.hero-stat {
    display: block;
    padding: 18px 20px;
    background: var(--bg-elev);
    transition: background .2s ease;
}

a.hero-stat:hover,
a.hero-stat:focus-visible {
    background: var(--bg-elev-2);
}

/* Outcomes are resolved results, so every one reads as signal. Varying the
   hue per stat would imply a distinction the content doesn't have. */
.hero-stat .num {
    margin-bottom: 6px;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 600;
    letter-spacing: -.02em;
}

.hero-stat .lbl {
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.5;
}

/* ---------- Case studies ---------- */

.cases {
    display: grid;
    gap: 28px;
}

.case {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-elev);
    scroll-margin-top: 84px;
    transition: border-color .3s ease;
}

.case:hover {
    border-color: var(--text-mute);
}

/* Each case study resolved an ambiguity, so the top edge carries the gray
   area itself. Drawn as a pseudo-element rather than border-image, which
   would replace all four borders of the card. */
.case::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grayarea);
}

.case-banner {
    padding: 32px 36px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--signal-wash), transparent);
}

.case-eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.case-num {
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .1em;
}

/* Verdict chip. Every case here is a shipped, resolved system, so the swatch
   reads as signal; --risk stays reserved for open questions. */
.case-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--hairline-wash);
    color: var(--text-dim);
    font-size: 12px;
}

.case-tag .swatch {
    width: 7px;
    height: 7px;
    border-radius: var(--radius-sm);
    background: var(--signal);
}

.case-caption {
    color: var(--text-mute);
    font-size: 12.5px;
    font-style: italic;
}

.case-art-frame,
.case-visual {
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--bg-sunk);
}

.case-art {
    display: block;
    width: 100%;
    max-height: var(--case-art-max-height);
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.case-body {
    padding: 30px 36px 34px;
    color: var(--text-dim);
}

.case-title {
    margin-bottom: 22px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 600;
    letter-spacing: -.012em;
}

.ps-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 26px;
}

.ps-block h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

/* Short rule leading into the label, tinted to match its pole. */
.ps-block h4::before {
    content: "";
    width: 18px;
    height: 1px;
    flex: none;
    background: currentColor;
    opacity: .45;
}

.ps-problem h4 {
    color: var(--risk-label);
}

.ps-solution h4 {
    color: var(--signal);
}

.ps-block p {
    font-size: 15px;
    line-height: 1.6;
}

.impacts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.impact {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 14px;
}

.impact .arrow {
    color: var(--signal);
}

.case-toplink {
    display: inline-block;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
    transition: color .2s ease;
}

.case-toplink:hover {
    color: var(--signal);
}

/* Case 2: horizontal pipeline diagram */
.flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.flow-step {
    flex: 1 1 140px;
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 18px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--bg-sunk);
    text-align: center;
}

.flow-step img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.flow-step span {
    color: var(--text-dim);
    font-size: 12.5px;
    line-height: 1.4;
}

.flow-arrow {
    flex: none;
    width: 18px;
    height: 1px;
    background: var(--line-strong);
}

.flow-arrow::after {
    content: "";
    display: block;
    margin-left: auto;
    width: 5px;
    height: 5px;
    border-top: 1px solid var(--line-strong);
    border-right: 1px solid var(--line-strong);
    transform: translateY(-3px) rotate(45deg);
}

/* Case 3: partner logos */
.partners {
    margin-bottom: 22px;
    padding: 20px 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--bg-elev-2);
}

.partners-label {
    margin-bottom: 14px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.partners-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 26px;
}

.partners-row img {
    height: 34px;
    width: auto;
    opacity: .86;
    filter: grayscale(1) brightness(0) invert(1);
    transition: opacity .2s ease, filter .2s ease;
}

.partners-row a:hover img,
.partners-row a:focus-within img {
    opacity: 1;
}

/* ---------- Background / timeline ---------- */

.background-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
    gap: 56px;
    align-items: start;
}

/* Vertical rule behind the role markers. */
.timeline {
    position: relative;
    display: grid;
    gap: 30px;
    padding-left: 26px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 4px;
    width: 1px;
    background: var(--line-strong);
}

.role-item {
    position: relative;
}

.role-item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: -26px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 1px solid var(--text-mute);
    background: var(--bg);
}

/* The current role is the one live data point, so it reads as signal. */
.role-item.current::before {
    border-color: var(--signal);
    background: var(--signal);
}

.role-when {
    margin-bottom: 5px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .05em;
}

.role-title {
    margin-bottom: 3px;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0;
}

.role-org {
    margin-bottom: 10px;
    color: var(--text-dim);
    font-size: 14px;
}

.role-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.role-tags li {
    padding: 4px 9px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
}

.background-side {
    display: grid;
    gap: 18px;
}

.extra-card {
    padding: 22px 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-elev);
}

.extra-card.highlight {
    border-left: 3px solid var(--signal);
}

.extra-card h5 {
    margin-bottom: 14px;
    color: var(--text-mute);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.extra-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.extra-card li {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.55;
}

.extra-card strong {
    color: var(--text);
    font-weight: 600;
}

.extra-card .meta {
    display: block;
    margin-top: 2px;
    color: var(--text-mute);
    font-size: 13px;
}

.ctf-link {
    border-bottom: 1px solid var(--line-strong);
    transition: border-color .2s ease, color .2s ease;
}

.ctf-link::after {
    content: "↗";
    margin-left: 3px;
    color: var(--signal);
    font-size: .85em;
    opacity: .7;
}

.ctf-link:hover {
    border-bottom-color: var(--signal);
    color: var(--signal);
}

.ctf-link strong {
    color: var(--text);
    font-weight: 600;
}

/* Terminal block: the one place a mono prompt is literal rather than stylistic. */
.term-block {
    margin: 0;
    padding: 18px 20px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-sunk);
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
}

.term-prompt {
    margin-right: 9px;
    color: var(--risk-label);
    font-weight: 700;
}

/* ---------- Writing ---------- */

.reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
}

.read-card {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    gap: 10px;
    padding: 24px 24px 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-elev);
    transition: border-color .25s ease, background .25s ease;
}

.read-card:hover {
    border-color: var(--signal);
    background: var(--bg-elev-2);
}

.read-kicker {
    color: var(--risk-label);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.read-card h3 {
    color: var(--text);
    font-family: var(--font-display);
    font-size: 19.5px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.005em;
    text-wrap: balance;
}

.read-card p {
    color: var(--text-dim);
    font-size: 14.5px;
    line-height: 1.55;
}

.read-more {
    margin-top: 4px;
    color: var(--signal);
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.reading-actions {
    margin-top: 28px;
}

/* ---------- Contact ---------- */

.contact-card {
    padding: 48px 44px;
    border-radius: var(--radius);
    background: var(--signal-deep);
    color: var(--text);
    box-shadow: 12px 12px 0 var(--risk-shadow);
}

.contact-card .section-kicker,
.contact-card .read-kicker {
    color: var(--text);
    opacity: .75;
}

.contact-card h2 {
    margin-bottom: 16px;
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 600;
    letter-spacing: -.018em;
}

.contact-card p {
    max-width: 62ch;
    margin-bottom: 14px;
    font-size: 16.5px;
    line-height: 1.6;
    opacity: .92;
}

.contact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-bottom: 26px;
    font-family: var(--font-mono);
    font-size: 13px;
}

.contact-meta a {
    border-bottom: 1px solid currentColor;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.contact-card .btn-primary {
    background: var(--text);
    border-color: var(--text);
    color: var(--signal-deep);
}

.contact-card .btn-primary:hover {
    background: var(--text);
    border-color: var(--text);
    opacity: .88;
}

.contact-card .btn-ghost {
    border-color: var(--on-deep-line);
    color: var(--text);
}

.contact-card .btn-ghost:hover {
    background: var(--on-deep-wash);
    border-color: var(--text);
}

.contact-social {
    display: flex;
    gap: 10px;
}

.contact-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--on-deep-line);
    border-radius: var(--radius-sm);
    color: var(--text);
    transition: background .2s ease, border-color .2s ease;
}

.contact-social a:hover {
    background: var(--on-deep-wash);
    border-color: var(--text);
}

.contact-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* ---------- Footer ---------- */

footer {
    padding: 34px 0;
    border-top: 1px solid var(--line);
    background: var(--bg-sunk);
}

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    color: var(--text-mute);
    font-size: 13.5px;
}

.foot-links {
    display: flex;
    gap: 18px;
}

.foot-links a {
    transition: color .2s ease;
}

.foot-links a:hover {
    color: var(--signal);
}

.disclaimer {
    margin-top: 18px;
    color: var(--text-mute);
    font-size: 12px;
    font-style: italic;
}

/* ---------- Responsive ----------
   Breakpoints follow the content, not device classes: each one fires where a
   given grid actually runs out of room. */

@media (max-width: 1040px) {
    .background-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 900px) {
    .section-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 14px;
    }

    .hero .wrap {
        grid-template-columns: 1fr;
        grid-template-areas:
            "portrait"
            "title"
            "role"
            "tagline"
            "actions";
        gap: 0;
    }

    .hero-portrait {
        display: flex;
        align-items: center;
        gap: var(--hero-portrait-mobile-gap);
        width: auto;
        margin-bottom: var(--hero-portrait-mobile-space);
    }

    .hero-portrait-image {
        flex: none;
        width: var(--hero-portrait-mobile-width);
        height: var(--hero-portrait-mobile-height);
    }

    .hero-portrait figcaption {
        margin-top: 0;
    }

    .ps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    :root {
        --gutter: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .nav-inner {
        flex-wrap: wrap;
        min-height: 56px;
        gap: 4px 12px;
        padding: 9px 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex-wrap: wrap;
        gap: 2px;
        margin-left: -12px;
    }

    .nav-cta {
        margin-left: 0;
    }

    .hero {
        padding: var(--hero-mobile-padding);
    }

    .hero,
    .section,
    .case {
        scroll-margin-top: var(--sticky-scroll-offset-mobile);
    }

    .case-banner {
        padding: 22px 20px;
    }

    .case-body {
        padding: 24px 20px 26px;
    }

    .outcomes-strip {
        padding: 18px 18px;
    }

    .contact-card {
        padding: 34px 22px;
        box-shadow: 8px 8px 0 var(--risk-shadow);
    }

    .flow-arrow {
        display: none;
    }
}

/* ---------- Motion ----------
   Reveal is a progressive enhancement: the .js guard means no-JS visitors get
   fully visible content rather than a blank page. */

.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
}

.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .js .reveal {
        opacity: 1;
        transform: none;
    }
}
