/* Elyra Med — site styles. One file, no framework, no external requests. */

@font-face {
    font-family: "Inter";
    src: url("/assets/fonts/inter-var.woff2") format("woff2");
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Newsreader";
    src: url("/assets/fonts/newsreader-var.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Newsreader";
    src: url("/assets/fonts/newsreader-var-italic.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #faf6f0;
    --bg-2: #f3ede4;
    --surface: #ffffff;
    --tint: #f5eff4;
    --ink: #221726;
    --text: #2e2433;
    --muted: #5d5364;
    --dim: #6f6575;
    --plum: #3d1d3a;
    --plum-2: #5a2c55;
    --plum-3: #8a5a83;
    --plum-soft: #efe4ee;
    --teal: #2f7d77;
    --teal-deep: #1f5e59;
    --teal-soft: #dceeea;
    --teal-glow: #7cc4bb;
    --sand: #e9dfd1;
    --line: rgba(61, 29, 58, 0.11);
    --line-2: rgba(61, 29, 58, 0.2);
    --shadow-sm: 0 1px 2px rgba(34, 23, 38, 0.05), 0 2px 8px rgba(34, 23, 38, 0.04);
    --shadow: 0 1px 2px rgba(34, 23, 38, 0.05), 0 12px 32px -12px rgba(34, 23, 38, 0.16);
    --shadow-lg: 0 2px 4px rgba(34, 23, 38, 0.04), 0 30px 60px -24px rgba(61, 29, 58, 0.28);
    --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Inter", ui-sans-serif, system-ui, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --container: 1180px;
    --gutter: clamp(20px, 4.5vw, 44px);
    --header-h: 72px;
    --section: clamp(72px, 9vw, 120px);
}

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

html {
    background: var(--bg);
    color-scheme: light;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--ink); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
strong { font-weight: 600; color: var(--ink); }

::selection { background: var(--teal-soft); color: var(--ink); }

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

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--plum);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container.narrow { max-width: calc(800px + 2 * var(--gutter)); }

/* ---------- Type ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-deep);
}
.eyebrow::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: currentColor;
    opacity: 0.7;
}

.display {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5.4vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -0.018em;
    font-weight: 380;
    font-optical-sizing: auto;
    text-wrap: balance;
}
.display em, .h2 em, .h1 em { font-style: italic; color: var(--plum-2); font-weight: 360; }

.h2 {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.014em;
    font-weight: 400;
    text-wrap: balance;
}
.h3 {
    font-family: var(--serif);
    font-size: clamp(1.45rem, 2.1vw, 1.75rem);
    line-height: 1.2;
    font-weight: 450;
    letter-spacing: -0.006em;
}
.h4 {
    font-family: var(--sans);
    font-size: 1.06rem;
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: -0.006em;
}

.lead {
    font-size: clamp(1.08rem, 1.5vw, 1.24rem);
    line-height: 1.6;
    color: var(--muted);
    max-width: 640px;
    text-wrap: pretty;
}
.muted { color: var(--muted); }
.small { font-size: 0.9rem; color: var(--muted); }
.tiny { font-size: 0.8rem; color: var(--dim); }

.text-link {
    color: var(--teal-deep);
    text-decoration: underline;
    text-decoration-color: rgba(47, 125, 119, 0.35);
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    transition: text-decoration-color 0.2s;
}
.text-link:hover { text-decoration-color: currentColor; }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--plum);
    text-decoration: none;
}
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.2s; }
.arrow-link:hover svg { transform: translateX(3px); }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--plum);
    color: #fbf7f2;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 8px 20px -10px rgba(61, 29, 58, 0.6);
}
.btn-primary:hover { background: var(--plum-2); }
.btn-secondary {
    background: transparent;
    color: var(--plum);
    border-color: var(--line-2);
}
.btn-secondary:hover { border-color: var(--plum-3); background: rgba(255, 255, 255, 0.6); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; }
.btn:disabled { opacity: 0.6; cursor: progress; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 246, 240, 0.86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    height: var(--header-h);
}
.brand {
    display: inline-flex;
    align-items: center;
    color: var(--plum);
    text-decoration: none;
    flex-shrink: 0;
}
.logo { height: 34px; width: auto; }
.logo .logo-elyra { fill: var(--plum); }
.logo .logo-med { fill: var(--teal); }

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.nav a {
    position: relative;
    padding: 8px 12px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background-color 0.2s;
}
.nav a:hover { color: var(--ink); background: rgba(61, 29, 58, 0.05); }
.nav a[aria-current="page"] { color: var(--plum); }
.nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 12px; right: 12px; bottom: 2px;
    height: 1.5px;
    background: var(--teal);
    border-radius: 2px;
}
.nav .nav-mobile { display: none; }
.header-cta { display: flex; gap: 10px; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    margin-left: auto;
    border: 1px solid var(--line-2);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
    position: relative;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    position: absolute;
    left: 50%;
    width: 18px; height: 1.6px;
    margin-left: -9px;
    background: var(--plum);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}
.menu-toggle span { top: 50%; margin-top: -0.8px; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; left: 0; margin-left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1060px) {
    .nav a { padding: 8px 9px; font-size: 0.9rem; }
}

@media (max-width: 960px) {
    /* backdrop-filter would make the header the containing block of the fixed menu panel */
    .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 246, 240, 0.97); }
    .menu-toggle { display: block; }
    .header-cta { display: none; }
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0; bottom: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px var(--gutter) 40px;
        background: var(--bg);
        border-top: 1px solid var(--line);
        overflow-y: auto;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
    }
    .nav.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 0.2s, transform 0.2s;
    }
    .nav a, .nav .nav-mobile {
        display: block;
        padding: 16px 4px;
        font-family: var(--serif);
        font-size: 1.5rem;
        font-weight: 400;
        color: var(--ink);
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }
    .nav a[aria-current="page"]::after { display: none; }
    .nav a[aria-current="page"] { color: var(--teal-deep); }
    body.menu-open { overflow: hidden; }
}

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; position: relative; }
.section.tight { padding: calc(var(--section) * 0.6) 0; }
.section.alt { background: var(--bg-2); }
.section.tint { background: linear-gradient(180deg, var(--tint), var(--bg)); }
.section:not(.alt):not(.tint) + .section:not(.alt):not(.tint) { padding-top: 0; }
.more { margin: 32px 0 0; }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 6vw, 88px);
    align-items: start;
}
.two-col.center { align-items: center; }
.two-col.wide-left { grid-template-columns: 1.15fr 0.85fr; }

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

.hero {
    position: relative;
    padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 112px);
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(560px 320px at 86% 18%, rgba(124, 196, 187, 0.16), transparent 72%),
        radial-gradient(520px 300px at 4% 4%, rgba(138, 90, 131, 0.08), transparent 72%);
    pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}
.hero .lead { margin-top: 24px; }
.hero-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 28px;
    max-width: 560px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--dim);
}
.hero-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--teal); }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 7px 14px 7px 12px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}
.status-pill .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 4px rgba(47, 125, 119, 0.15);
}

.page-hero { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero + .section:not(.alt):not(.tint) { padding-top: clamp(12px, 2.5vw, 32px); }
.page-hero .lead { max-width: 700px; }
.page-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

/* ---------- Illustrations ---------- */

.viz {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-left: auto;
}
.viz-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 14px;
}
.viz-card svg { width: 100%; height: auto; border-radius: 14px; }
.viz-caption {
    margin: 14px 4px 0;
    font-size: 0.78rem;
    color: var(--dim);
    text-align: center;
}
.viz-float {
    position: absolute;
    right: -18px;
    bottom: 54px;
    width: 46%;
    min-width: 200px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.viz-float .label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--plum);
}
.viz-float .tag {
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--teal-soft);
    color: var(--teal-deep);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
}
.skel { display: grid; gap: 8px; }
.skel i {
    display: block;
    height: 7px;
    border-radius: 4px;
    background: var(--sand);
}
.skel i:nth-child(1) { width: 92%; }
.skel i:nth-child(2) { width: 74%; background: var(--teal-soft); }
.skel i:nth-child(3) { width: 84%; }
.skel i:nth-child(4) { width: 58%; }
.viz-float .review {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line-2);
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--muted);
}
.viz-float .review svg { width: 16px; height: 16px; color: var(--teal); }

.slices-art { width: 100%; max-width: 420px; margin-left: auto; }

/* ---------- Cards & grids ---------- */

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    position: relative;
    padding: clamp(24px, 2.6vw, 32px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card .h4, .card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card.flat { box-shadow: none; background: rgba(255, 255, 255, 0.55); }
.card.plum { background: var(--plum); border-color: var(--plum); color: #efe6ee; }
.card.plum .h3, .card.plum .h4, .card.plum strong { color: #fff; }
.card.plum p { color: #dccfda; }

.icon {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--teal-soft);
    color: var(--teal-deep);
    flex-shrink: 0;
}
.icon svg { width: 22px; height: 22px; }
.icon.plum { background: var(--plum-soft); color: var(--plum); }
.card > .icon { margin-bottom: 20px; }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: var(--plum-soft);
    color: var(--plum);
}
.badge.teal { background: var(--teal-soft); color: var(--teal-deep); }
.badge.outline { background: transparent; border: 1px solid var(--line-2); color: var(--muted); }
.card .badge { margin-bottom: 14px; }

/* Focus areas */
.focus-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.focus-list li {
    list-style: none;
    padding: 28px 24px 8px 0;
    border-right: 1px solid var(--line);
    padding-left: 24px;
}
.focus-list li:first-child { padding-left: 0; }
.focus-list li:last-child { border-right: 0; }
.focus-list .num { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--teal-deep); margin-bottom: 14px; }
.focus-list .h3 { margin-bottom: 10px; }
.focus-list p { font-size: 0.95rem; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li {
    list-style: none;
    position: relative;
    padding: 26px 24px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.steps li::before {
    counter-increment: step;
    content: "0" counter(step);
    display: block;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--teal-deep);
}
.steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 36px; right: -16px;
    width: 12px; height: 1.5px;
    background: var(--line-2);
}
.steps .h4 { margin-bottom: 8px; }
.steps p { font-size: 0.94rem; color: var(--muted); margin: 0; }
.steps li.human { background: var(--plum); border-color: var(--plum); }
.steps li.human::before { color: var(--teal-glow); }
.steps li.human .h4 { color: #fff; }
.steps li.human p { color: #dccfda; }

/* Check lists */
.checks { display: grid; gap: 12px; }
.checks li {
    list-style: none;
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--text);
}
.checks svg { width: 20px; height: 20px; margin-top: 3px; color: var(--teal); }
.checks.no svg { color: var(--plum-3); }
.checks small { display: block; color: var(--muted); font-size: 0.92rem; }

/* Notice */
.notice {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: clamp(22px, 3vw, 30px);
    background: var(--plum-soft);
    border: 1px solid rgba(61, 29, 58, 0.14);
    border-radius: var(--radius);
}
.notice .icon { background: var(--surface); color: var(--plum); }
.notice p { margin: 0 0 0.6em; color: var(--text); }
.notice p:last-child { margin: 0; }
.notice .h4 { margin-bottom: 6px; color: var(--plum); }
.notice.teal { background: var(--teal-soft); border-color: rgba(47, 125, 119, 0.2); }
.notice.teal .icon { color: var(--teal-deep); }

/* Stage panel */
.stage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.stage > div { padding: clamp(26px, 3.4vw, 44px); }
.stage > div + div { border-left: 1px solid var(--line); background: #fdfbf8; }
.stage .h4 { margin-bottom: 18px; }

/* Facts table */
.facts { display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.facts div {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}
.facts dt, .facts dd { margin: 0; }
.facts dt { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--dim); text-transform: uppercase; padding-top: 2px; }
.facts dd { color: var(--ink); }

/* Pipeline (technology) */
.pipeline { display: grid; gap: 0; counter-reset: stage; }
.pipeline > li {
    list-style: none;
    display: grid;
    grid-template-columns: 88px 1fr 1fr;
    gap: clamp(20px, 4vw, 56px);
    padding: clamp(28px, 4vw, 44px) 0;
    border-top: 1px solid var(--line-2);
}
.pipeline > li:last-child { border-bottom: 1px solid var(--line-2); }
.pipeline .stage-no {
    counter-increment: stage;
    font-family: var(--serif);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--teal);
    font-weight: 300;
}
.pipeline .stage-no::before { content: "0" counter(stage); }
.pipeline .h3 { margin-bottom: 12px; }
.pipeline p { color: var(--muted); }
.pipeline ul { display: grid; gap: 10px; padding-top: 6px; }
.pipeline ul li {
    list-style: none;
    position: relative;
    padding-left: 22px;
    font-size: 0.96rem;
    color: var(--text);
}
.pipeline ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.62em;
    width: 10px; height: 1.5px;
    background: var(--teal);
}

/* Roadmap */
.roadmap { position: relative; display: grid; gap: 18px; }
.roadmap::before {
    content: "";
    position: absolute;
    left: 23px; top: 24px; bottom: 24px;
    width: 1.5px;
    background: linear-gradient(var(--teal), var(--line-2) 30%, var(--line-2));
}
.phase {
    list-style: none;
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: clamp(18px, 3vw, 32px);
}
.phase .marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--line-2);
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--muted);
}
.phase.current .marker { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 0 0 6px rgba(47, 125, 119, 0.14); }
.phase .card { padding: clamp(22px, 2.8vw, 32px); }
.phase.current .card { border-color: rgba(47, 125, 119, 0.4); }
.phase-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.phase-head .h3 { margin: 0; }
.phase-head .badge { margin: 0; }
.phase ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; margin-top: 14px; }
.phase ul li { list-style: none; position: relative; padding-left: 20px; font-size: 0.95rem; color: var(--text); }
.phase ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--teal); }
.phase .gate { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 0.9rem; color: var(--muted); }
.phase .gate strong { color: var(--plum); }

/* Quote / mission */
.mission {
    font-family: var(--serif);
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    line-height: 1.25;
    font-weight: 350;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}
.mission em { color: var(--teal-deep); }

/* Founder */
.founder {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 24px;
    align-items: center;
}
.monogram {
    display: grid;
    place-items: center;
    width: 96px; height: 96px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, var(--plum-2), var(--plum));
    color: #f7f2ea;
    font-family: var(--serif);
    font-size: 2.1rem;
    letter-spacing: 0.02em;
}
.founder .name { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1.2; }
.founder .name, .founder .role { margin: 0; }
.founder .role { color: var(--teal-deep); font-weight: 600; font-size: 0.95rem; margin-top: 4px; }
.founder-text { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.card > .icon { display: grid; }

/* CTA band */
.cta-band {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 6vw, 72px);
    border-radius: var(--radius-lg);
    background: var(--plum);
    color: #efe6ee;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 32px;
    align-items: center;
}
.cta-band::before {
    content: "";
    position: absolute;
    right: -120px; top: -160px;
    width: 460px; height: 460px;
    border-radius: 50%;
    border: 1px solid rgba(124, 196, 187, 0.25);
    box-shadow: 0 0 0 60px rgba(124, 196, 187, 0.04), 0 0 0 120px rgba(124, 196, 187, 0.03);
}
.cta-band > * { position: relative; }
.cta-band .h2 { color: #fff; }
.cta-band p { color: #dccfda; margin: 14px 0 0; max-width: 560px; }
.cta-band .btn-primary { background: #f7f2ea; color: var(--plum); box-shadow: none; }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-secondary { color: #f7f2ea; border-color: rgba(255, 255, 255, 0.3); }
.cta-band .btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.cta-band .actions { margin: 0; justify-content: flex-end; }

/* Contrast list (do / don't) */
.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

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

.contact-points { display: grid; gap: 22px; margin-top: 24px; }
.contact-points li { list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.contact-points strong { display: block; margin-bottom: 2px; }
.contact-points span { color: var(--muted); font-size: 0.96rem; }

.form-card {
    padding: clamp(24px, 3.4vw, 40px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.form-intro {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 10px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--teal-soft);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--teal-deep);
}
.form-intro svg { width: 20px; height: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: #fdfbf8;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(47, 125, 119, 0.16);
}
.field .help { font-size: 0.8rem; color: var(--dim); }
.check-field { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: 0.88rem; color: var(--muted); }
.check-field input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 24px; }
.form-foot .small { margin: 0; flex: 1 1 240px; }
.form-status { display: none; margin-top: 18px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.93rem; }
.form-status.is-visible { display: block; }
.form-status.ok { background: var(--teal-soft); color: var(--teal-deep); }
.form-status.info { background: var(--plum-soft); color: var(--plum); }
.form-status.error { background: #f8e1e1; color: #7a1f1f; }
.form-status a { color: inherit; font-weight: 600; }

/* ---------- Prose (legal) ---------- */

.prose { max-width: 760px; }
.prose h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 450;
    margin: 2.2em 0 0.6em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.6em 0 0.4em; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--teal-deep); text-underline-offset: 3px; }
.prose .updated { font-size: 0.88rem; color: var(--dim); margin-bottom: 2em; }
.prose .notice { margin: 1.6em 0; }

/* 404 */
.error-code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--teal); font-weight: 300; margin-bottom: 8px; }

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

.site-footer {
    margin-top: 0;
    padding: clamp(48px, 6vw, 72px) 0 32px;
    background: #2a1428;
    color: #d9cdd7;
}
.site-footer a { color: #f3ebf1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .logo .logo-elyra { fill: #f7f2ea; }
.site-footer .logo .logo-med { fill: var(--teal-glow); }
.site-footer .brand { color: #f7f2ea; }
.footer-disclaimer {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
    padding: 20px 22px;
    margin-bottom: clamp(40px, 5vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}
.footer-disclaimer .icon { background: rgba(124, 196, 187, 0.14); color: var(--teal-glow); }
.footer-disclaimer p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #e4d9e2; }
.footer-disclaimer strong { color: #fff; }
.footer-disclaimer a { text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-about p { margin: 18px 0 0; max-width: 340px; font-size: 0.94rem; color: #cbbcc8; }
.footer-about .text-link { color: #f3ebf1; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); }
.footer-col h2 {
    margin-bottom: 16px;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-glow);
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col li { list-style: none; font-size: 0.94rem; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 24px;
    margin-top: clamp(40px, 5vw, 56px);
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
    color: #b9a9b6;
}

/* ---------- Reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
    .grid-4, .focus-list { grid-template-columns: repeat(2, 1fr); }
    .focus-list li:nth-child(2) { border-right: 0; }
    .focus-list li:nth-child(3) { padding-left: 0; }
    .focus-list li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps li::after { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
    .hero-grid, .page-hero-grid, .two-col, .two-col.wide-left { grid-template-columns: 1fr; }
    .viz { margin: 8px auto 0; }
    .slices-art { margin: 0 auto; max-width: 320px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .stage { grid-template-columns: 1fr; }
    .stage > div + div { border-left: 0; border-top: 1px solid var(--line); }
    .pipeline > li { grid-template-columns: 1fr; gap: 14px; }
    .cta-band { grid-template-columns: 1fr; }
    .cta-band .actions { justify-content: flex-start; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .grid-2, .grid-3, .grid-4, .focus-list, .steps, .split-list { grid-template-columns: 1fr; }
    .focus-list li, .focus-list li:nth-child(3) { padding: 22px 0 6px; border-right: 0; border-top: 1px solid var(--line); }
    .focus-list li:first-child { border-top: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .facts div { grid-template-columns: 1fr; gap: 4px; }
    .phase ul { grid-template-columns: 1fr; }
    .roadmap::before { left: 17px; }
    .phase { grid-template-columns: 36px 1fr; gap: 14px; }
    .phase .marker { width: 36px; height: 36px; font-size: 0.74rem; }
    .viz-float { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 16px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .founder { grid-template-columns: 72px 1fr; gap: 18px; }
    .monogram { width: 72px; height: 72px; font-size: 1.6rem; }
    .actions .btn { flex: 1 1 auto; }
    .footer-disclaimer { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
    .footer-disclaimer .icon { width: 36px; height: 36px; }
    .logo { height: 30px; }
}

@media print {
    .site-header, .menu-toggle, .cta-band, .form-card { display: none; }
    body { background: #fff; }
}

.contact-warning { margin-top: 36px; }
.form-intro strong { color: inherit; }
.h2 + .lead, .h2 + p { margin-top: 18px; }
.checks + .small { margin-top: 22px; }
.num, .steps li::before, .phase .marker, .error-code, .pipeline .stage-no { font-variant-numeric: tabular-nums; }
.focus-list .num, .steps li::before { font-weight: 600; letter-spacing: 0.04em; }
