/* StarlingTek site styles. System fonts, one accent, light and dark. */

:root {
    --bg: #ffffff;
    --bg-soft: #f5f6fa;
    --surface: #ffffff;
    --border: #e2e5ee;
    --border-strong: #c9cedc;
    --text: #0f1222;
    --muted: #4a5068;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-text: #ffffff;
    --accent-soft: #eef0ff;
    --accent-ink: #3730a3;
    --ok: #15803d;
    --warn: #b45309;
    --warn-soft: #fef3c7;
    --code-bg: #f1f3f8;
    --shadow: 0 1px 2px rgb(15 18 34 / 6%), 0 8px 24px rgb(15 18 34 / 6%);
    --radius: 14px;
    --radius-sm: 8px;
    --max: 1160px;
    --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0b0d14;
        --bg-soft: #10131c;
        --surface: #141824;
        --border: #252a3b;
        --border-strong: #363d55;
        --text: #e8eaf3;
        --muted: #a4aac3;
        --accent: #a5b4fc;
        --accent-hover: #c7d2fe;
        --accent-text: #0b0d14;
        --accent-soft: #1b1f3b;
        --accent-ink: #c7d2fe;
        --ok: #4ade80;
        --warn: #f59e0b;
        --warn-soft: #2a1f0b;
        --code-bg: #1a1f2e;
        --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
    }
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--accent-ink);
    text-underline-offset: 0.18em;
}

@media (prefers-color-scheme: dark) {
    a {
        color: var(--accent);
    }
}

a:hover {
    text-decoration-thickness: 2px;
}

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

main:focus {
    outline: none;
}

h1,
h2,
h3 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6em;
}

h1 {
    font-size: clamp(2.2rem, 5.4vw, 3.75rem);
    font-weight: 750;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 650;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1em;
}

code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--code-bg);
    color: var(--text);
    padding: 0.1em 0.35em;
    border-radius: 5px;
}

.container {
    width: min(100% - 2.5rem, var(--max));
    margin-inline: auto;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .eyebrow {
        color: var(--accent);
    }
}

.lede {
    font-size: clamp(1.1rem, 1.6vw, 1.3rem);
    color: var(--muted);
    max-width: 44rem;
}

.placeholder {
    font-family: var(--mono);
    font-size: 0.92em;
    background: var(--accent-soft);
    color: var(--text);
    border: 1px dashed var(--border-strong);
    border-radius: 5px;
    padding: 0.05em 0.35em;
}

/* Skip link */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 650;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-block: 0.85rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    width: 32px;
    height: 32px;
}

.mark-bg {
    fill: var(--accent);
}

.mark-fg {
    fill: var(--accent-text);
}

.brand-name {
    font-weight: 750;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    margin: 0;
}

.brand-name span {
    color: var(--accent-ink);
}

@media (prefers-color-scheme: dark) {
    .brand-name span {
        color: var(--accent);
    }
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    display: block;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-weight: 550;
    font-size: 0.97rem;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--text);
    background: var(--bg-soft);
}

.site-nav a[aria-current="page"] {
    color: var(--text);
    background: var(--accent-soft);
}

@media (max-width: 640px) {
    .site-nav {
        width: 100%;
        margin-inline: -0.7rem;
    }

    .site-nav a {
        padding: 0.5rem 0.6rem;
        font-size: 0.93rem;
    }
}

/* Buttons */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.7rem 1.25rem;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 650;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    color: var(--accent-text);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border-strong);
}

.btn-secondary:hover {
    border-color: var(--text);
    color: var(--text);
}

.btn:active {
    transform: translateY(1px);
}

/* Sections */
.section {
    padding-block: clamp(4rem, 9vw, 7rem);
}

.section-soft {
    background: var(--bg-soft);
    border-block: 1px solid var(--border);
}

.section-head {
    max-width: 46rem;
    margin-bottom: 3rem;
}

.section-head p {
    color: var(--muted);
    font-size: 1.1rem;
}

.page-hero {
    padding-block: clamp(3.5rem, 8vw, 6rem) clamp(2rem, 4vw, 3rem);
}

/* Home hero */
.hero {
    position: relative;
    overflow: hidden;
    padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 6vw, 5rem);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40% -10% auto;
    height: 520px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
    filter: blur(20px);
    pointer-events: none;
}

.hero > .container {
    position: relative;
}

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

@media (min-width: 1080px) {
    .hero > .container {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
        column-gap: 4rem;
    }

    .hero > .container > :not(.paths) {
        grid-column: 1;
    }

    .hero .paths {
        grid-column: 2;
        grid-row: 1 / span 5;
        align-self: center;
        margin: 0;
    }
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    list-style: none;
    padding: 0;
    margin: 2.25rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-points li::before {
    content: "";
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-right: 0.55rem;
    border-radius: 50%;
    background: var(--ok);
    vertical-align: 0.1em;
}

/* Grids and cards */
.grid {
    display: grid;
    gap: 1.25rem;
}

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

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
    transition: border-color 200ms ease, transform 200ms ease;
}

.card:hover {
    border-color: var(--border-strong);
}

.card p:last-child,
.card ul:last-child {
    margin-bottom: 0;
}

.card p {
    color: var(--muted);
}

.icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    fill: none;
    stroke: currentcolor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-color-scheme: dark) {
    .icon {
        color: var(--accent);
    }
}

/* Deploy -> monitor -> recover */
.steps {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 0;
}

.steps > li {
    position: relative;
    counter-increment: step;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem;
}

.steps > li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--accent-ink);
    margin-bottom: 0.75rem;
}

@media (prefers-color-scheme: dark) {
    .steps > li::before {
        color: var(--accent);
    }
}

.steps p {
    color: var(--muted);
    margin: 0;
}

/* Screens */
.screen {
    margin: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.screen-bar {
    display: flex;
    gap: 6px;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg-soft);
}

.screen-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
}

.screen img {
    width: 100%;
}

.screen figcaption,
.figure-caption {
    padding: 0.85rem 1.1rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--muted);
}

.preview-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
    margin-top: 1.5rem;
}

/* Feature detail rows */
.feature-row {
    display: grid;
    gap: 2.5rem;
    align-items: start;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    padding-block: 3.5rem;
    border-top: 1px solid var(--border);
}

.feature-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

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

.checklist li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.65rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0.15rem;
    top: 0.5em;
    width: 0.9rem;
    height: 0.5rem;
    border-left: 2px solid var(--ok);
    border-bottom: 2px solid var(--ok);
    transform: rotate(-45deg);
}

/* Architecture diagram */
.diagram {
    margin: 0;
    padding: clamp(1rem, 3vw, 2rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.diagram-scroll {
    overflow-x: auto;
}

.diagram svg {
    width: 100%;
    min-width: 680px;
    font-family: var(--font);
}

.diagram .figure-caption {
    border-top: 0;
    padding: 1rem 0 0;
}

.d-box {
    fill: var(--bg-soft);
    stroke: var(--border-strong);
    stroke-width: 1.5;
}

.d-accent {
    fill: var(--accent-soft);
    stroke: var(--accent);
    stroke-width: 1.5;
}

.d-text {
    fill: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.d-sub {
    fill: var(--muted);
    font-size: 12.5px;
}

.d-line {
    stroke: var(--muted);
    stroke-width: 1.5;
    fill: none;
}

.d-dash {
    stroke-dasharray: 5 5;
}

.d-arrow {
    fill: var(--muted);
}

.d-zone {
    fill: none;
    stroke: var(--border-strong);
    stroke-width: 1.5;
    stroke-dasharray: 6 6;
}

/* Definition lists (security, architecture) */
.facts {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    margin: 0;
}

.facts > div {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.facts dt {
    font-weight: 650;
    margin-bottom: 0.4rem;
}

.facts dd {
    margin: 0;
    color: var(--muted);
}

/* Pricing */
.tiers {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    align-items: stretch;
}

.tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.tier-featured {
    border: 2px solid var(--accent);
    box-shadow: var(--shadow);
}

.tier-badge {
    position: absolute;
    top: -0.8rem;
    left: 1.5rem;
    margin: 0;
    padding: 0.15rem 0.7rem;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-text);
    font-size: 0.8rem;
    font-weight: 700;
}

.price {
    margin: 0.25rem 0 0.5rem;
}

.price-amount {
    font-size: 2.6rem;
    font-weight: 750;
    letter-spacing: -0.03em;
}

.price-period {
    color: var(--muted);
    font-weight: 550;
    margin-left: 0.15rem;
}

.tier-summary {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.price-prefix {
    color: var(--muted);
    font-weight: 550;
}

.tier-availability {
    display: inline-block;
    align-self: flex-start;
    margin: 0 0 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    font-size: 0.82rem;
    font-weight: 650;
}

.tier-how {
    margin: auto 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.95rem;
}

.tier-how strong {
    color: var(--text);
}

.tier-cta {
    margin-top: auto;
    align-self: stretch;
}

.tier .checklist {
    margin-bottom: 1.5rem;
}

.tier-how + .tier-cta {
    margin-top: 1.5rem;
}

.plan-group {
    padding-block: 2.5rem;
}

.plan-group + .plan-row,
.plan-row + .plan-group {
    border-top: 1px solid var(--border);
}

.plan-row {
    display: grid;
    gap: 0 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.plan-row > .plan-group {
    display: flex;
    flex-direction: column;
}

.plan-row .tiers {
    flex: 1;
}

.plan-row .tiers-1 {
    max-width: none;
}

@media (max-width: 899px) {
    .plan-row > .plan-group + .plan-group {
        border-top: 1px solid var(--border);
    }
}

.custom-build {
    display: grid;
    gap: 1.5rem 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    align-items: center;
    padding: 1.75rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent-soft);
}

.custom-build h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.custom-build .muted {
    margin: 0;
    max-width: 44rem;
}

.price-quoted {
    font-size: 1.6rem;
}

.custom-build-cta {
    justify-self: end;
}

@media (max-width: 760px) {
    .custom-build-cta {
        justify-self: stretch;
    }

    .custom-build-cta .btn {
        width: 100%;
    }
}

/* Two paths in the Home hero */
.paths {
    display: grid;
    gap: 1rem;
    margin-top: 2.5rem;
}

.path-card {
    display: grid;
    gap: 0.3rem;
    padding: 1.4rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    color: var(--text);
    text-decoration: none;
    transition: border-color 150ms ease;
}

.path-card:hover {
    border-color: var(--accent);
}

.path-kicker {
    font-size: 0.8rem;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.path-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.path-title::after {
    content: " \2192";
    color: var(--accent-ink);
}

@media (prefers-color-scheme: dark) {
    .path-title::after {
        color: var(--accent);
    }
}

.path-text {
    color: var(--muted);
}

/* Five process steps: wrap evenly instead of leaving one orphan. */
.steps-5 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

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

.facts-tight > div {
    padding: 1.1rem;
}

.plan-group-head {
    margin-bottom: 2rem;
    max-width: 44rem;
}

.plan-group-head h2 {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
}

.tiers-1 {
    max-width: 560px;
}

/* Comparison table: scrolls sideways on narrow screens. */
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}

.compare {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.compare caption {
    text-align: left;
    padding: 1rem 1.1rem;
    font-weight: 650;
    border-bottom: 1px solid var(--border);
}

.table-hint {
    font-weight: 400;
    color: var(--muted);
}

@media (min-width: 1000px) {
    .table-hint {
        display: none;
    }
}

.compare th,
.compare td {
    padding: 0.8rem 1.1rem;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.compare tbody tr:last-child > * {
    border-bottom: 0;
}

.compare thead th {
    background: var(--bg-soft);
    font-weight: 650;
}

.compare tbody th {
    font-weight: 650;
    white-space: nowrap;
}

.compare td {
    color: var(--muted);
}

.table-price {
    display: block;
    font-weight: 500;
    color: var(--muted);
}

.table-price .price-amount {
    font-size: 1rem;
    font-weight: 650;
    color: var(--text);
}

.teaser-link {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 1.2rem;
    color: var(--text);
    text-decoration: none;
}

.teaser-link:hover .teaser-name {
    text-decoration: underline;
}

.teaser {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.teaser li {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.teaser .price-amount {
    font-size: 1.5rem;
}

.teaser-name {
    font-weight: 650;
}

.notes {
    margin-top: 2.5rem;
}

.faq details {
    border-bottom: 1px solid var(--border);
    padding-block: 0.4rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 650;
    padding-block: 0.8rem;
    min-height: 44px;
}

.faq details p {
    color: var(--muted);
    max-width: 48rem;
}

/* CTA band */
.cta {
    text-align: center;
}

.cta .lede {
    margin-inline: auto;
}

.cta .actions {
    justify-content: center;
}

/* Prose pages */
/* Limit line length without moving the column off the page grid. */
.prose > * {
    max-width: 46rem;
}

.prose h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.callout {
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    background: var(--bg-soft);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-block: 1.5rem;
}

.callout p:last-child {
    margin: 0;
}

.contact-card {
    font-size: 1.25rem;
    font-weight: 650;
}

/* Built on StarlingTek */
.site-card h3 a,
.project-card h3 {
    color: var(--text);
}

.site-card h3 a:hover {
    color: var(--accent-ink);
}

/* Current projects */
.labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.label {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--border-strong);
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 650;
}

.label-warn {
    border-color: var(--warn);
    background: var(--warn-soft);
}

/* 404 */
.not-found {
    min-height: 50vh;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    padding-block: 3rem;
    font-size: 0.95rem;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links a {
    color: var(--muted);
    display: inline-block;
    padding-block: 0.3rem;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-meta {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Motion: a gentle fade-up, only when the visitor has not asked for less. */
@media (prefers-reduced-motion: no-preference) {
    .hero .container > * {
        animation: rise 600ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .hero .container > :nth-child(2) {
        animation-delay: 60ms;
    }

    .hero .container > :nth-child(3) {
        animation-delay: 120ms;
    }

    .hero .container > :nth-child(4) {
        animation-delay: 180ms;
    }

    .hero .container > :nth-child(5) {
        animation-delay: 240ms;
    }

    .reveal-pending {
        opacity: 0;
        transform: translateY(14px);
    }

    .reveal-in {
        opacity: 1;
        transform: none;
        transition: opacity 500ms ease, transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .card:hover {
        transform: translateY(-2px);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .skip-link {
        display: none;
    }
}

/* Team bio (Contact page): photo beside the text, stacked on narrow screens. */
.team-member {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin: 1rem 0 1.5rem;
}

.team-member p {
    margin-top: 0;
}

.team-photo {
    flex: 0 0 auto;
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 560px) {
    .team-member {
        flex-direction: column;
    }
}
