/* Enterprise view: "IvanN & Co.", a parody of a corporate SRE consultancy site.
 * Light corporate look by default, dark under prefers-color-scheme. Self-contained:
 * no imports, fonts self-hosted (the CSP allows no external fonts). */

@font-face {
    font-family: "Host Grotesk";
    src: url("/assets/fonts/host-grotesk-latin.woff2") format("woff2");
    font-weight: 400 500;
    font-display: swap;
}

@font-face {
    font-family: "Atkinson Hyperlegible Mono";
    src: url("/assets/fonts/atkinson-hyperlegible-mono-latin.woff2") format("woff2");
    font-weight: 400 500;
    font-display: swap;
}

:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-tint: #f6f7fb;
    --surface: #ffffff;
    --ink: #0f1222;
    --ink-2: #3b4056;
    --muted: #6b7088;
    --rule: #e4e6ef;
    --rule-2: #cfd2e0;
    --brand: #4f46e5;
    --brand-2: #7c3aed;
    --brand-ink: #ffffff;
    --brand-soft: #eef0ff;
    --human: #d97706;
    --human-soft: #fff4e0;
    --ok: #16a34a;
    --warn: #d97706;
    --bad: #dc2626;
    --idle: #8a90a6;
    --ok-soft: #e7f7ec;
    --bad-soft: #fdecec;
    --bot-face: #ffffff;
    --bot-1: #4f46e5;
    --bot-2: #0891b2;
    --bot-3: #7c3aed;
    --bot-4: #0d9488;
    --bot-5: #64748b;
    --shadow: 0 1px 2px rgb(15 18 34 / 0.05), 0 8px 24px rgb(15 18 34 / 0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --font: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: "Atkinson Hyperlegible Mono", ui-monospace, monospace;
    --gutter: 32px;
    --section: 112px;
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
        --bg: #0d0f1a;
        --bg-tint: #131627;
        --surface: #171a2e;
        --ink: #eef0f8;
        --ink-2: #c3c7da;
        --muted: #9095ad;
        --rule: #262a42;
        --rule-2: #353a58;
        --brand: #818cf8;
        --brand-2: #a78bfa;
        --brand-ink: #0d0f1a;
        --brand-soft: #1e2142;
        --human: #fbbf24;
        --human-soft: #2e2512;
        --ok: #4ade80;
        --warn: #fbbf24;
        --bad: #f87171;
        --idle: #7d839c;
        --ok-soft: #13291c;
        --bad-soft: #2e1618;
        --bot-face: #0d0f1a;
        --bot-1: #818cf8;
        --bot-2: #22d3ee;
        --bot-3: #a78bfa;
        --bot-4: #2dd4bf;
        --bot-5: #94a3b8;
        --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand) 25%, transparent); }
code {
    font-family: var(--mono);
    font-size: 0.88em;
    padding: 0.05em 0.35em;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--bg-tint);
}
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.person { color: var(--human); font-weight: 500; }
.lead { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); line-height: 1.5; color: var(--ink-2); max-width: 56ch; }
.eyebrow { font-size: 0.875rem; font-weight: 500; color: var(--brand); letter-spacing: 0.02em; }

/* Buttons, chips, dots */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid var(--rule-2);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: 500 1rem/1 var(--font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn:hover { color: var(--ink); border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 30%, transparent); }
.btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--brand-ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }
.btn--light { background: #fff; border-color: #fff; color: #1e1b4b; }
.btn--light:hover { background: #eef0ff; border-color: #eef0ff; color: #1e1b4b; }

.chip {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0;
    vertical-align: middle;
}
.chip--human { background: var(--human-soft); color: var(--human); border: 1px solid color-mix(in srgb, var(--human) 40%, transparent); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 0.08em; background: var(--idle); flex: none; }
.dot--ok { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.dot--warn { background: var(--warn); }
.dot--bad { background: var(--bad); }
.dot--idle { background: var(--idle); }

/* Notice and nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 85%, transparent);
    backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--rule);
}
.nav-inner { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.125rem; letter-spacing: -0.02em; text-decoration: none; }
.logo {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #fff;
    font-size: 0.8125rem;
    letter-spacing: -0.04em;
}
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 0.9375rem; }
.nav-links a { color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--brand); }

/* Hero */
.hero {
    position: relative;
    padding-block: 88px 96px;
    background:
        radial-gradient(60% 70% at 85% 10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
        radial-gradient(40% 50% at 0% 100%, color-mix(in srgb, var(--brand-2) 8%, transparent), transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 14px 4px 4px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--surface);
    font-size: 0.875rem;
    color: var(--ink-2);
    box-shadow: var(--shadow);
}
.badge-new { padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 500; }
/* Weekly release counter ticks up in bursts (enterprise.js) */
[data-weekly] { font-variant-numeric: tabular-nums; }
.badge [data-weekly] { display: inline-block; }
[data-weekly].is-bumped { animation: bump 0.5s ease-out; }
@keyframes bump { from { transform: translateY(-3px); opacity: 0.4; } to { transform: none; opacity: 1; } }
.hero h1 { font-size: clamp(2.5rem, 4.2vw + 0.75rem, 4.25rem); letter-spacing: -0.035em; max-width: 14ch; }
.accent { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.live { font-size: 0.9375rem; color: var(--muted); }
#ivanStatus { transition: opacity 0.3s; }
#ivanStatus.is-fading { opacity: 0; }

/* Org chart */
.org {
    margin: 0;
    padding: 24px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow), 0 30px 60px -30px color-mix(in srgb, var(--brand) 30%, transparent);
}
.org-head { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 500; margin-bottom: 18px; }
.org-ceo {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    margin-inline: auto;
    padding: 10px 16px 10px 10px;
    border: 1.5px solid var(--human);
    border-radius: 14px;
    background: var(--human-soft);
}
.org-ceo img { width: 48px; height: 48px; border-radius: 10px; }
.org-ceo .muted { font-size: 0.8125rem; }
.org-name { font-weight: 500; line-height: 1.3; }
.org-line { position: relative; height: 28px; }
.org-line::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1.5px solid var(--rule-2); }
.org-line::after { content: ""; position: absolute; left: 4%; right: 4%; bottom: 0; border-top: 1.5px solid var(--rule-2); }
.org-grid {
    display: grid;
    grid-template-columns: repeat(16, 1fr);
    gap: 4px;
    padding-top: 12px;
}
.org-grid li { aspect-ratio: 1; }
.org-grid svg { width: 100%; height: 100%; fill: var(--bot-face); transition: transform 0.15s; }
.org-grid li:hover svg { transform: scale(1.5) rotate(-8deg); }
.org-grid li { transition: opacity 0.6s, filter 0.6s; }
.org-grid li.is-off { opacity: 0.22; filter: grayscale(1); }
.org-grid li.is-off svg { animation: none; }
.fleet-n { font-variant-numeric: tabular-nums; }
.c1 { color: var(--bot-1); } .c2 { color: var(--bot-2); } .c3 { color: var(--bot-3); } .c4 { color: var(--bot-4); } .c5 { color: var(--bot-5); }
.org-grid .blink svg { animation: blink 4s infinite; }
.org-grid .blink:nth-child(2n) svg { animation-delay: 1.7s; }
@keyframes blink { 0%, 90%, 100% { transform: none; } 94% { transform: translateY(-3px); } }
.org-foot { margin-top: 16px; font-size: 0.875rem; color: var(--muted); text-align: center; }
.org-foot strong { color: var(--ink); font-weight: 500; }

/* Logos */
.logos { padding-block: 40px; border-block: 1px solid var(--rule); }
.logos-title { text-align: center; font-size: 0.875rem; color: var(--muted); margin-bottom: 22px; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px 48px; color: var(--muted); }
.logos-row li { font-size: 1.25rem; opacity: 0.85; white-space: nowrap; }
.logo-a { font-weight: 500; letter-spacing: -0.04em; }
.logo-b { font-family: var(--mono); font-size: 0.95rem !important; letter-spacing: 0.12em; }
.logo-c { font-weight: 500; font-style: italic; }
.logo-d { font-family: Georgia, "Times New Roman", serif; }
.logo-e { font-family: var(--mono); }
.logo-f { font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem !important; }
.logo-g { font-weight: 500; letter-spacing: -0.02em; }
.logo-g small { font-weight: 400; font-size: 0.7em; }
.logos-rule { width: min(560px, 100%); margin: 36px auto 28px; border: 0; border-top: 1px dashed var(--rule-2); }
.vendors { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 52px; color: var(--muted); }
.vendors li { display: flex; align-items: center; gap: 9px; font-size: 1.375rem; line-height: 1; white-space: nowrap; opacity: 0.6; transition: opacity 0.2s, color 0.2s; }
.vendors li:hover { opacity: 1; color: var(--ink); }
.vendors svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.v-ms { font-weight: 500; letter-spacing: -0.01em; }
.v-ms svg { width: 0.95em; height: 0.95em; }
.v-anthropic span { font-family: Georgia, "Times New Roman", serif; letter-spacing: 0.02em; }
.v-google { letter-spacing: -0.01em; }
.v-nvidia { font-weight: 500; letter-spacing: 0.06em; }
.v-nvidia svg { width: 1.4em; height: 1.4em; }
.v-cloudflare { font-weight: 500; letter-spacing: -0.02em; }
.v-cloudflare svg { width: 1.5em; height: 1.5em; }
.aws { display: inline-grid; justify-items: center; font-weight: 500; font-size: 1.6rem; letter-spacing: -0.02em; line-height: 0.8; }
.aws svg { width: 1.6em; height: 0.48em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.logos-fine { margin-top: 18px; text-align: center; font-size: 0.75rem; color: var(--muted); }

/* Stats */
.stats { padding-block: 72px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 32px; }
.stats-grid > div { padding-left: 20px; border-left: 2px solid var(--rule); }
.stat { font-variant-numeric: tabular-nums; font-size: clamp(2.25rem, 2.5vw + 1rem, 3rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.stat-label { margin-top: 10px; font-weight: 500; }
.stat-note { margin-top: 4px; font-size: 0.875rem; color: var(--muted); }

/* Sections */
.section { padding-block: var(--section); }
.section--tint { background: var(--bg-tint); }
.section-head { display: grid; gap: 14px; margin-bottom: 48px; max-width: 720px; }
.section-head h2 { font-size: clamp(2rem, 2.2vw + 1rem, 2.875rem); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
    padding: 28px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--rule)); box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { font-size: 1.1875rem; margin-bottom: 10px; }
.card p { color: var(--ink-2); }

/* Team */
.ceo {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
    padding: 32px;
    margin-bottom: 24px;
    border: 1.5px solid color-mix(in srgb, var(--human) 55%, transparent);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}
.ceo img { width: 128px; height: 128px; border-radius: 18px; }
.ceo > div { display: grid; gap: 10px; }
.ceo h3 { font-size: clamp(1.5rem, 1vw + 1rem, 1.875rem); }
.ceo h3 .chip { margin-left: 6px; }
.ceo-titles { font-weight: 500; color: var(--human); }
.ceo p:not([class]) { color: var(--ink-2); max-width: 70ch; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 24px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    transition: box-shadow 0.2s, transform 0.2s;
}
.member:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.member:hover .avatar { transform: rotate(-6deg); }
.avatar {
    width: 64px;
    height: 64px;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 16px;
    background: color-mix(in srgb, currentColor 12%, var(--surface));
    fill: var(--bot-face);
    transition: transform 0.2s;
}
.avatar--big { width: 96px; height: 96px; padding: 12px; border-radius: 24px; }
.member h3 { font-size: 1.125rem; letter-spacing: -0.015em; }
.role { font-size: 0.875rem; color: var(--brand); font-weight: 500; }
.member p:not([class]) { margin-top: 6px; font-size: 0.9375rem; color: var(--ink-2); }
.status {
    display: flex;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
    font-size: 0.8125rem;
    color: var(--muted);
}
.team-more { margin-top: 28px; text-align: center; color: var(--muted); }
.team-more a { color: var(--brand); font-weight: 500; }

/* Services tag */
.card-tag {
    display: inline-block;
    margin-bottom: 14px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--brand-soft);
    color: var(--brand);
    font: 500 0.75rem/1.5 var(--mono);
}

/* The Loop: ring of steps and the incident feed */
.loop-split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.ring-wrap { position: relative; container-type: inline-size; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; }
.ring { position: absolute; inset: 0; }
.ring-step {
    --r: 38cqw;
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    gap: 1px;
    width: 25cqw;
    min-width: 118px;
    padding: 10px 12px;
    border: 1px solid var(--rule);
    border-radius: 12px;
    background: var(--surface);
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--muted);
    transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a)));
    transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.ring-step b { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.ring-num { font-family: var(--mono); color: var(--brand); }
.ring-step.is-active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
/* Steps sit on a circle: step i of n at i * 360deg / n, starting at the top. */
.ring { --n: 8; }
.ring.n6 { --n: 6; } .ring.n7 { --n: 7; } .ring.n9 { --n: 9; }
.ring-step { --a: calc(var(--i) * 360deg / var(--n)); }
.ring-step:nth-child(1) { --i: 0; } .ring-step:nth-child(2) { --i: 1; } .ring-step:nth-child(3) { --i: 2; }
.ring-step:nth-child(4) { --i: 3; } .ring-step:nth-child(5) { --i: 4; } .ring-step:nth-child(6) { --i: 5; }
.ring-step:nth-child(7) { --i: 6; } .ring-step:nth-child(8) { --i: 7; } .ring-step:nth-child(9) { --i: 8; }
.ring.n9 .ring-step { --r: 40cqw; width: 22cqw; min-width: 108px; }

/* Loop tabs */
.loop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 40px;
    padding: 4px;
    border: 1px solid var(--rule);
    border-radius: 999px;
    background: var(--surface);
}
.loop-tab {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ink-2);
    font: 500 0.9375rem/1 var(--font);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}
.loop-tab:hover { color: var(--brand); }
.loop-tab[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); }
.loop-panel[hidden] { display: none; }
.loop-panel { animation: panel-in 0.35s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ring-core {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    align-content: center;
    width: 40cqw;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    text-align: center;
}
.ring-arrows { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0.6; animation: spin 24s linear infinite; }
.ring-zero { font-size: 17cqw; font-weight: 500; line-height: 1; letter-spacing: -0.05em; background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ring-caption { font-size: 0.875rem; color: var(--muted); line-height: 1.3; }
@keyframes spin { to { transform: rotate(360deg); } }

.feed {
    margin: 0;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: 0.875rem; font-weight: 500; }
.feed-head > span:first-child { display: flex; align-items: center; }
.feed-lines { display: grid; padding: 10px 0; font-size: 0.8125rem; }
.feed-lines li { display: grid; grid-template-columns: 5em 3.9em 1fr; gap: 10px; padding: 5px 18px; transition: opacity 0.35s, transform 0.35s; }
.feed-lines time { font-family: var(--mono); color: var(--muted); }
.feed-lines code { font-size: 0.85em; }
.feed-human { margin-top: 8px; padding-top: 10px !important; border-top: 1px dashed var(--rule); }
.feed--anim .feed-lines li:not(.is-shown) { opacity: 0; transform: translateY(4px); }
.feed-foot { padding: 12px 18px; border-top: 1px solid var(--rule); background: var(--bg-tint); font-size: 0.875rem; color: var(--muted); }
.feed-foot strong { color: var(--ink); font-weight: 500; }
.who { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.who.person { color: var(--human); }

/* Change management */
.policy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.policy .section-head { margin-bottom: 0; }
.trail { display: grid; gap: 8px; font-size: 0.9375rem; }
.trail li {
    display: grid;
    grid-template-columns: 7.5em 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    background: var(--surface);
}
.trail code { justify-self: start; white-space: nowrap; }
.trail-note { grid-column: 1 / -1; font-size: 0.8125rem; color: var(--muted); }
.verdict { font-size: 0.8125rem; font-weight: 500; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.verdict--bad { background: var(--bad-soft); color: var(--bad); }
.verdict--ok { background: var(--ok-soft); color: var(--ok); }

/* Culture */
.culture { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch; }
.eotm {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 10px;
    padding: 32px 24px;
    text-align: center;
    border-radius: 20px;
    background: linear-gradient(160deg, var(--brand), var(--brand-2));
    color: #fff;
}
.eotm .eyebrow { color: #e0e7ff; }
.eotm .avatar { background: rgb(255 255 255 / 0.95); fill: #fff; margin: 8px 0 4px; }
.eotm-name { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.eotm p:last-child { color: #e0e7ff; }
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.quotes li {
    display: grid;
    align-content: space-between;
    gap: 16px;
    padding: 28px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
}
blockquote { margin: 0; font-size: 1.125rem; line-height: 1.5; letter-spacing: -0.01em; }
blockquote::before { content: "\201C"; display: block; height: 0.6em; font-size: 3rem; line-height: 1; color: var(--brand); opacity: 0.5; }
.attribution { font-size: 0.875rem; color: var(--muted); }
.fineprint { margin-top: 24px; font-size: 0.8125rem; color: var(--muted); text-align: center; }

/* Careers */
.hiring {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 48px;
    align-items: start;
    padding: 40px;
    border: 1px solid var(--rule);
    border-radius: 20px;
    background: var(--surface);
}
.hiring-big { font-size: clamp(2rem, 2.4vw + 1rem, 3rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.035em; }
.hiring-body { display: grid; gap: 14px; color: var(--ink-2); font-size: 1.0625rem; }
.hiring-fine { padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.875rem; color: var(--muted); }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; }
.tag--open { background: var(--ok-soft); color: var(--ok); }

/* CTA */
.cta { padding-block: 0 var(--section); }
.cta-inner > * { position: relative; }
.cta-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 56px;
    border-radius: 24px;
    background: linear-gradient(135deg, #312e81, #4f46e5 55%, #7c3aed);
    color: #fff;
    max-width: calc(1200px - 2 * var(--gutter));
    padding-inline: 56px;
}
.cta h2 { font-size: clamp(2rem, 2vw + 1rem, 2.75rem); }
.cta .lead { color: #e0e7ff; margin-top: 8px; }

/* Footer */
.footer { padding-block: 64px 32px; border-top: 1px solid var(--rule); background: var(--bg-tint); font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1fr; gap: 32px; }
.footer-grid > div:first-child { display: grid; gap: 12px; align-content: start; }
.footer-title { font-weight: 500; margin-bottom: 12px; }
.footer-list { display: grid; gap: 8px; }
/* "Get agents free": quiet on purpose, /free redirects to a certain music video (Caddyfile) */
.btn--free { width: fit-content; margin-top: 16px; color: var(--muted); background: transparent; }
.btn--free:hover { color: var(--brand); }
.footer-list a { color: var(--ink-2); text-decoration: none; }
.footer-list a:hover { color: var(--brand); }
.status-line { display: flex; align-items: center; font-size: 0.875rem; color: var(--ink-2); }
.colophon {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
    margin-top: 48px;
    padding: 28px;
    border: 1px dashed var(--rule-2);
    border-radius: var(--radius);
    background: var(--surface);
}
.colophon .avatar { margin: 0; }
.colophon-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.colophon-title { margin-bottom: 6px; font-size: 1rem; letter-spacing: -0.01em; }
.colophon p { color: var(--ink-2); font-size: 0.9375rem; }
.colophon a { color: var(--brand); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 0.8125rem; color: var(--muted); }

/* "Still need a human?" */
.btn--human { border-color: color-mix(in srgb, var(--human) 55%, transparent); color: var(--human); background: transparent; }
.btn--human:hover { border-color: var(--human); color: var(--human); background: var(--human-soft); }
.btn--human.is-meh { font-style: italic; }

/* Cookie banner */
.cookie {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 100;
    display: grid;
    gap: 14px;
    max-width: 380px;
    padding: 20px;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 20px 50px rgb(15 18 34 / 0.18);
    font-size: 0.9375rem;
    animation: rise 0.4s 1s both;
}
.cookie[hidden] { display: none; }
.cookie p:first-child { color: var(--ink-2); }
.cookie strong { color: var(--ink); font-weight: 500; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Reject runs away from the mouse: the banner jumps to a new spot (enterprise.js) */
.cookie.is-fleeing { transition: left 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2), top 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .team { grid-template-columns: repeat(2, 1fr); }
    .loop-split, .policy { grid-template-columns: 1fr; }
    .culture { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .colophon-cols { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 760px) {
    :root { --gutter: 16px; --section: 72px; }
    .nav-links { display: none; }
    .nav-inner { justify-content: space-between; }
    .hero { padding-block: 48px 64px; }
    .org { padding: 16px; }
    .org-ceo { max-width: 100%; flex-wrap: wrap; }
    .ring-wrap { aspect-ratio: auto; container-type: normal; display: grid; gap: 16px; }
    .ring { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ring-step, .ring.n9 .ring-step { position: static; width: auto; min-width: 0; transform: none; }
    .loop-tabs { border-radius: var(--radius); }
    .ring-core { position: static; order: -1; width: auto; aspect-ratio: auto; transform: none; display: flex; gap: 10px; justify-content: center; }
    .ring-arrows { display: none; }
    .ring-zero { font-size: 2.5rem; }
    .ring-caption br { display: none; }
    .feed-lines li { grid-template-columns: 5em 1fr; }
    .feed-lines li .who { grid-column: 2; grid-row: 1; }
    .feed-lines li > span:last-child { grid-column: 1 / -1; }
    .trail li { grid-template-columns: 1fr auto; }
    .trail code { grid-row: 2; }
    .org-grid { grid-template-columns: repeat(12, 1fr); gap: 3px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .cards, .quotes { grid-template-columns: 1fr; }
    .team { grid-template-columns: 1fr; }
    .ceo { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
    .ceo img { width: 96px; height: 96px; }
    .cta-inner { padding: 40px 24px; border-radius: 20px; max-width: calc(100% - 2 * var(--gutter)); }
    .footer-grid { grid-template-columns: 1fr; }
    .hiring { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
    .colophon { grid-template-columns: 1fr; padding: 20px; }
    .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
