/* ============================================
   AblaView Signal: homepage design system
   Dark hero + thesis layout. Inner pages keep shared.css.
   ============================================ */

@font-face {
    font-family: 'Archivo';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('fonts/archivo-800.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/ibmplexmono-400.woff2') format('woff2');
}

:root {
    --sg-bg: #04070B;
    --sg-panel: #0A1119;
    --sg-ink: #EAF4FA;
    --sg-mut: #9DB4C4;
    --sg-dim: #7A93A4;
    --sg-accent: #48D6FF;
    --sg-accent-ink: #04121B;
    --sg-line: rgba(120, 190, 220, 0.18);
    --sg-light-bg: #F5F7F8;
    --sg-light-ink: #16181C;
    --sg-light-mut: #494E55;
    --sg-light-line: rgba(20, 24, 28, 0.14);
    --sg-display: 'Archivo', 'Inter', sans-serif;
    --sg-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --sg-mono: 'IBM Plex Mono', ui-monospace, monospace;
    --sg-wrap: 1240px;
    --sg-card-bg: #FFFFFF;
    --sg-blue: #005EC4;
    --sg-blue-hover: #004FA8;
    --sg-on-strong: #FFFFFF;
    --sg-input-line: rgba(20, 24, 28, 0.25);
    --sg-ghost-line: rgba(20, 24, 28, 0.35);
    --sg-cap-mut: #6A7076;
}

/* Dark theme: light content grounds go dark; dark bands are unchanged. */
html[data-theme="dark"] {
    color-scheme: dark;
    --sg-light-bg: #0A1017;
    --sg-light-ink: #E8F2F8;
    --sg-light-mut: #9DB4C4;
    --sg-light-line: rgba(120, 190, 220, 0.16);
    --sg-card-bg: #101B26;
    --sg-blue: #48D6FF;
    --sg-blue-hover: #7DE2FF;
    --sg-on-strong: #04121B;
    --sg-input-line: rgba(120, 190, 220, 0.30);
    --sg-ghost-line: rgba(120, 190, 220, 0.35);
    --sg-cap-mut: #8FA5B4;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: hidden; }
@supports (overflow-x: clip) { html { overflow-x: clip; } }

body {
    background: var(--sg-bg);
    color: var(--sg-ink);
    font-family: var(--sg-body);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.sg-wrap { max-width: var(--sg-wrap); margin: 0 auto; padding: 0 24px; }

.skip-link {
    position: absolute; top: -48px; left: 0; z-index: 200;
    background: var(--sg-accent); color: var(--sg-accent-ink);
    padding: 10px 18px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* --- Nav --- */
.sg-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(4, 7, 11, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--sg-line);
}
.sg-nav-inner {
    max-width: var(--sg-wrap); margin: 0 auto; padding: 18px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.sg-brand img { width: 250px; height: auto; display: block; }
.sg-footer-brand > a img { width: 250px; height: auto; display: block; }
.sg-brand {
    font-family: var(--sg-display); font-weight: 800; font-size: 1.05rem;
    letter-spacing: 0.02em; text-decoration: none; color: var(--sg-ink);
}
.sg-nav-links { display: flex; gap: 26px; align-items: center; }
.sg-nav-links a {
    color: var(--sg-mut); text-decoration: none; font-size: 0.85rem;
}
.sg-nav-links a:hover, .sg-nav-links a:focus-visible { color: var(--sg-ink); outline: none; }
.sg-nav-links .sg-nav-cta {
    color: var(--sg-accent-ink); background: var(--sg-accent);
    padding: 8px 18px; border-radius: 6px; font-weight: 600;
}
.sg-nav-links .sg-nav-cta:hover { background: #7BE2FF; color: var(--sg-accent-ink); }
.sg-theme-btn {
    background: none; border: 1px solid var(--sg-line); border-radius: 8px;
    width: 34px; height: 34px; display: inline-flex; align-items: center;
    justify-content: center; color: var(--sg-mut); cursor: pointer; flex: none;
}
.sg-theme-btn:hover { color: var(--sg-ink); border-color: var(--sg-accent); }
.sg-theme-btn svg { display: block; }

.sg-menu-btn {
    display: none; background: none; border: 1px solid var(--sg-line); border-radius: 6px;
    padding: 8px 10px; cursor: pointer; color: var(--sg-ink);
}
.sg-menu-btn span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px 0; transition: transform 0.2s ease, opacity 0.2s ease; }
.sg-nav.open .sg-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.sg-nav.open .sg-menu-btn span:nth-child(2) { opacity: 0; }
.sg-nav.open .sg-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
    .sg-menu-btn { display: block; }
    .sg-nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        display: none; flex-direction: column; align-items: stretch; gap: 0;
        background: rgba(4, 7, 11, 0.97); border-bottom: 1px solid var(--sg-line);
        padding: 8px 24px 18px;
    }
    .sg-nav-links .sg-theme-btn { margin-top: 10px; align-self: flex-start; }
    .sg-nav.open .sg-nav-links { display: flex; }
    .sg-nav-links a { padding: 13px 0; font-size: 0.95rem; border-bottom: 1px solid var(--sg-line); }
    .sg-nav-links a.sg-nav-cta { margin-top: 14px; text-align: center; border-bottom: none; }
}

/* --- Hero --- */
.sg-hero {
    position: relative; overflow: hidden;
    padding: 160px 0 0;
}
.sg-hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.30;
}
.sg-hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 11, 0.72) 0%, rgba(4, 7, 11, 0.55) 40%, var(--sg-bg) 96%);
}
@media (prefers-reduced-motion: reduce) { .sg-hero-video { display: none; } }
.sg-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 85% 60% at 82% 108%, rgba(38, 196, 255, 0.20), transparent 62%),
        radial-gradient(ellipse 55% 40% at 82% 106%, rgba(38, 196, 255, 0.12), transparent 66%);
}
.sg-arcs, .sg-sweep {
    position: absolute; right: -20vw; bottom: -52vw;
    width: 78vw; height: 78vw; border-radius: 50%; pointer-events: none;
}
.sg-arcs {
    background: repeating-radial-gradient(circle at center, transparent 0 34px, rgba(56, 200, 255, 0.09) 34px 35px);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 72%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 72%);
}
.sg-sweep {
    background: conic-gradient(from 0deg, transparent 0 84%, rgba(72, 214, 255, 0.16) 96%, rgba(160, 236, 255, 0.45) 99.4%, transparent 100%);
    animation: sg-sweep 10s linear infinite;
}
@keyframes sg-sweep { to { transform: rotate(360deg); } }

.sg-hero-grid {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
    gap: 4vw; align-items: center;
    padding-bottom: 72px;
}
.sg-eyebrow {
    font-family: var(--sg-mono); font-size: 0.72rem; letter-spacing: 0.22em;
    color: var(--sg-accent); margin-bottom: 22px;
}
.sg-h1 {
    font-family: var(--sg-display); font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 4.9rem);
    line-height: 0.98; letter-spacing: -0.015em; text-wrap: balance;
}
.sg-h1 em { font-style: normal; color: var(--sg-accent); }
.sg-hero-sub {
    margin-top: 26px; max-width: 56ch; color: var(--sg-mut);
    font-size: clamp(0.95rem, 1.3vw, 1.1rem); line-height: 1.7;
}
.sg-hero-sub strong { color: var(--sg-ink); font-weight: 600; }
.sg-hero-note { margin-top: 16px; font-size: 0.78rem; color: var(--sg-dim); max-width: 56ch; }
.sg-cta-row { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.sg-btn {
    text-decoration: none; font-weight: 600; font-size: 0.9rem;
    padding: 13px 26px; border-radius: 8px; display: inline-block;
}
.sg-btn-primary { background: var(--sg-accent); color: var(--sg-accent-ink); }
.sg-btn-primary:hover { background: #7BE2FF; }
.sg-btn-ghost { border: 1px solid rgba(154, 208, 232, 0.35); color: var(--sg-ink); }
.sg-btn-ghost:hover { border-color: var(--sg-accent); }

.sg-console { position: relative; }
.sg-console figure {
    position: relative;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--sg-line);
    background: #262a49;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 60px rgba(56, 200, 255, 0.08);
}
.sg-console figure::after {
    /* blend the panel into the hero: soft dark vignette over the edges */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(180deg, rgba(4, 7, 11, 0.35), transparent 18%, transparent 82%, rgba(4, 7, 11, 0.35)),
        radial-gradient(ellipse 120% 100% at 50% 50%, transparent 62%, rgba(4, 7, 11, 0.5));
}
.sg-console figcaption {
    font-family: var(--sg-mono); font-size: 0.68rem; letter-spacing: 0.14em;
    color: var(--sg-dim); margin-top: 14px; line-height: 1.7;
}
.sg-console figcaption b { color: var(--sg-accent); font-weight: 400; }
@media (max-width: 900px) { .sg-hero-grid { grid-template-columns: 1fr; } }

/* --- Stat cells (instrument treatment) --- */
.sg-cells {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--sg-line);
    border-bottom: 1px solid var(--sg-line);
    background: rgba(10, 17, 25, 0.55);
}
.sg-cells > div { padding: 26px 24px 30px; border-right: 1px solid var(--sg-line); }
.sg-cells > div:last-child { border-right: none; }
.sg-cells b {
    font-family: var(--sg-display); font-weight: 800;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem); display: block;
    font-variant-numeric: tabular-nums;
}
.sg-cells span {
    font-family: var(--sg-mono); font-size: 0.66rem; letter-spacing: 0.13em;
    color: var(--sg-dim); display: block; margin-top: 6px; line-height: 1.6;
}
@media (max-width: 700px) {
    .sg-cells { grid-template-columns: repeat(2, 1fr); }
    .sg-cells > div { border-bottom: 1px solid var(--sg-line); }
}

/* --- Section scaffolding --- */
.sg-section { padding: 110px 0; position: relative; }
.sg-section-light { background: var(--sg-light-bg); color: var(--sg-light-ink); }
.sg-label {
    font-family: var(--sg-mono); font-size: 0.72rem; letter-spacing: 0.22em;
    color: var(--sg-accent); display: block; margin-bottom: 18px;
}
.sg-section-light .sg-label { color: var(--sg-blue); }
.sg-h2 {
    font-family: var(--sg-display); font-weight: 800;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.05; letter-spacing: -0.01em; text-wrap: balance;
    max-width: 34ch;
}
.sg-lead { margin-top: 22px; max-width: 62ch; color: var(--sg-mut); line-height: 1.75; }

/* Editorial justification: long-form paragraphs only, desktop only.
   Centered blocks and narrow card copy stay ragged-right. */
@media (min-width: 861px) {
    .sg-hero-sub, .sg-lead, .sg-disclaimer, .sg-boilerplate p {
        text-align: justify; text-justify: inter-word; hyphens: auto;
    }
    .sg-close .sg-lead { text-align: center; hyphens: manual; }
}
.sg-section-light .sg-lead { color: var(--sg-light-mut); }
.sg-lead strong { color: inherit; font-weight: 600; }

/* --- Problem section --- */
.sg-problem-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px;
}
.sg-problem-grid article {
    border: 1px solid var(--sg-line); border-radius: 10px;
    padding: 26px 24px; background: rgba(10, 17, 25, 0.55);
}
.sg-problem-grid h3 { font-size: 1rem; font-weight: 600; }
.sg-problem-grid p { margin-top: 10px; font-size: 0.9rem; color: var(--sg-mut); line-height: 1.7; }
@media (max-width: 860px) { .sg-problem-grid { grid-template-columns: 1fr; } }

/* --- Mechanism (light) --- */
.sg-mech-grid {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 5vw; align-items: center;
}
.sg-tip-figure img { border-radius: 12px; }
.sg-tip-figure figcaption {
    font-family: var(--sg-mono); font-size: 0.68rem; letter-spacing: 0.13em;
    color: var(--sg-cap-mut); margin-top: 12px; line-height: 1.7;
}
.sg-photo-grid {
    display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
    gap: 28px; margin: 40px 0 8px; align-items: start;
}
.sg-photo-grid img { width: 100%; height: auto; }
@media (max-width: 860px) { .sg-photo-grid { grid-template-columns: 1fr; } }
.sg-cap-rows { margin-top: 48px; border-top: 2px solid var(--sg-light-ink); }
.sg-cap-rows > div {
    display: grid; grid-template-columns: 180px 1fr; gap: 24px;
    padding: 22px 0; border-bottom: 1px solid var(--sg-light-line);
}
.sg-cap-rows h3 {
    font-family: var(--sg-mono); font-weight: 400; font-size: 0.78rem;
    letter-spacing: 0.12em; color: var(--sg-blue); padding-top: 3px;
}
.sg-cap-rows p { font-size: 0.94rem; color: var(--sg-light-mut); line-height: 1.7; }
.sg-cap-rows p strong { color: var(--sg-light-ink); }
@media (max-width: 900px) {
    .sg-mech-grid { grid-template-columns: 1fr; }
    .sg-cap-rows > div { grid-template-columns: 1fr; gap: 8px; }
}

/* --- Evidence --- */
.sg-pub-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
.sg-pub-cards article {
    border: 1px solid var(--sg-line); border-radius: 10px; padding: 28px 26px;
    background: rgba(10, 17, 25, 0.55); display: flex; flex-direction: column; gap: 14px;
}
.sg-pub-cards .sg-pub-journal {
    font-family: var(--sg-mono); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--sg-accent);
}
.sg-pub-cards p { font-size: 0.9rem; color: var(--sg-mut); line-height: 1.7; flex: 1; }
.sg-pub-cards .sg-pub-name { font-weight: 600; font-size: 0.95rem; color: var(--sg-ink); }
.sg-pub-cards .sg-pub-title { font-size: 0.8rem; color: var(--sg-dim); line-height: 1.6; margin-top: 4px; }
@media (max-width: 860px) { .sg-pub-cards { grid-template-columns: 1fr; } }

/* --- Film --- */
.sg-film-frame {
    max-width: 980px; margin: 56px auto 0;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--sg-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    background: #000;
}
.sg-film-frame video { width: 100%; }
.sg-film-note {
    font-family: var(--sg-mono); font-size: 0.68rem; letter-spacing: 0.14em;
    color: var(--sg-dim); text-align: center; margin-top: 16px;
}
.sg-page-body .sg-film-note { color: var(--sg-cap-mut); }

/* --- Closing CTA with b-roll background --- */
.sg-close { position: relative; overflow: hidden; }
.sg-close-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.35;
}
.sg-close-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, var(--sg-bg) 0%, rgba(4, 7, 11, 0.55) 45%, rgba(4, 7, 11, 0.55) 65%, var(--sg-bg) 100%);
}
.sg-close .sg-wrap { position: relative; }
@media (prefers-reduced-motion: reduce) { .sg-close-video { display: none; } }

/* --- Moat --- */
.sg-moat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
.sg-moat-grid article {
    border: 1px solid var(--sg-line); border-radius: 10px; padding: 32px 30px;
    background: linear-gradient(180deg, rgba(14, 26, 38, 0.9), rgba(10, 17, 25, 0.6));
}
.sg-moat-grid h3 { font-family: var(--sg-display); font-weight: 800; font-size: 1.3rem; }
.sg-moat-grid p { margin-top: 12px; font-size: 0.92rem; color: var(--sg-mut); line-height: 1.75; }
.sg-moat-figures { display: flex; gap: 34px; margin-top: 22px; flex-wrap: wrap; }
.sg-moat-figures b {
    font-family: var(--sg-display); font-weight: 800; font-size: 1.6rem; display: block;
    font-variant-numeric: tabular-nums;
}
.sg-moat-figures span { font-family: var(--sg-mono); font-size: 0.64rem; letter-spacing: 0.13em; color: var(--sg-dim); }
@media (max-width: 860px) { .sg-moat-grid { grid-template-columns: 1fr; } }

/* --- Closing CTA --- */
.sg-close { text-align: center; }
.sg-close .sg-h2 { margin: 0 auto; }
.sg-close .sg-lead { margin-left: auto; margin-right: auto; }
.sg-close .sg-cta-row { justify-content: center; }

/* --- Footer --- */
.sg-footer { border-top: 1px solid var(--sg-line); padding: 72px 0 40px; }
.sg-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.sg-footer-brand a { font-family: var(--sg-display); font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.sg-footer-tagline { margin-top: 14px; font-size: 0.85rem; color: var(--sg-mut); line-height: 1.7; max-width: 34ch; }
.sg-footer-badges { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.sg-footer-badges span {
    font-family: var(--sg-mono); font-size: 0.64rem; letter-spacing: 0.1em;
    border: 1px solid var(--sg-line); border-radius: 100px; padding: 5px 12px; color: var(--sg-mut);
}
.sg-footer h4, .sg-footer .sg-footer-h {
    font-family: var(--sg-mono); font-weight: 400; font-size: 0.7rem;
    letter-spacing: 0.18em; color: var(--sg-dim); margin-bottom: 16px; text-transform: uppercase;
}
.sg-footer ul { list-style: none; }
.sg-footer ul li { margin-bottom: 10px; }
.sg-footer ul a { color: var(--sg-mut); text-decoration: none; font-size: 0.88rem; }
.sg-footer ul a:hover { color: var(--sg-ink); }
.sg-disclaimer {
    margin-top: 56px; padding: 22px 26px;
    border: 1px solid var(--sg-line); border-radius: 10px;
    font-size: 0.8rem; line-height: 1.7; color: var(--sg-dim);
    background: rgba(10, 17, 25, 0.55);
}
.sg-disclaimer strong { color: var(--sg-ink); }
.sg-footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
    margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--sg-line);
    font-size: 0.8rem; color: var(--sg-dim); flex-wrap: wrap;
}
.sg-footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.sg-footer-legal a { color: var(--sg-dim); text-decoration: none; }
.sg-footer-legal a:hover { color: var(--sg-ink); }
@media (max-width: 860px) { .sg-footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================
   Inner-page kit (technology, clinical, team,
   investors, pipeline, publications, press)
   ============================================ */

/* Compact dark page header band */
.sg-page-hero { position: relative; overflow: hidden; padding: 200px 0 120px; }
.sg-page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse 80% 90% at 85% -20%, rgba(38, 196, 255, 0.14), transparent 60%);
}
.sg-page-hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.38;
}
.sg-page-hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4, 7, 11, 0.72) 0%, rgba(4, 7, 11, 0.55) 40%, var(--sg-bg) 96%);
}
@media (prefers-reduced-motion: reduce) { .sg-page-hero-video { display: none; } }
.sg-page-hero .sg-wrap { position: relative; }
.sg-page-hero h1 {
    font-family: var(--sg-display); font-weight: 800;
    font-size: clamp(2.2rem, 4.6vw, 3.6rem);
    line-height: 1.02; letter-spacing: -0.012em; text-wrap: balance;
}
.sg-page-hero .sg-lead { color: var(--sg-mut); }

/* Light content body under a dark page hero */
.sg-page-body { background: var(--sg-light-bg); color: var(--sg-light-ink); }
.sg-page-body .sg-section { padding: 88px 0; }
.sg-page-body .sg-label { color: var(--sg-blue); }
.sg-page-body .sg-lead { color: var(--sg-light-mut); }

/* Generic cards on light ground */
.sg-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.sg-cards.sg-cards-2 { grid-template-columns: repeat(2, 1fr); }
.sg-cards.sg-cards-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .sg-cards.sg-cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sg-cards.sg-cards-4 { grid-template-columns: 1fr; } }
.sg-people.sg-people-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .sg-people.sg-people-2 { grid-template-columns: 1fr; } }
.sg-cards article {
    background: var(--sg-card-bg); border: 1px solid var(--sg-light-line);
    border-radius: 10px; padding: 28px 26px;
}
.sg-cards h3 { font-size: 1.02rem; font-weight: 600; }
.sg-cards .sg-card-kicker {
    font-family: var(--sg-mono); font-size: 0.68rem; letter-spacing: 0.15em;
    color: var(--sg-blue); display: block; margin-bottom: 12px;
}
.sg-cards p { margin-top: 10px; font-size: 0.92rem; color: var(--sg-light-mut); line-height: 1.7; }
.sg-cards .sg-card-value {
    font-family: var(--sg-display); font-weight: 800; font-size: 1.7rem;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 860px) { .sg-cards, .sg-cards.sg-cards-2 { grid-template-columns: 1fr; } }

/* Data table on light ground */
.sg-table-scroll { overflow-x: auto; margin-top: 40px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; background: var(--sg-card-bg); }
.sg-table th {
    font-family: var(--sg-mono); font-weight: 400; font-size: 0.68rem;
    letter-spacing: 0.13em; text-align: left; color: var(--sg-blue);
    border-bottom: 2px solid var(--sg-light-ink); padding: 12px 16px;
}
.sg-table td { padding: 14px 16px; border-bottom: 1px solid var(--sg-light-line); color: var(--sg-light-mut); vertical-align: top; }
.sg-table td:first-child { color: var(--sg-light-ink); font-weight: 600; }

/* People */
.sg-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.sg-people figure {
    background: var(--sg-card-bg); border: 1px solid var(--sg-light-line); border-radius: 10px;
    padding: 26px; text-align: left;
}
.sg-people img {
    width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--sg-card-bg); box-shadow: 0 0 0 1px var(--sg-light-line);
}
.sg-people figcaption { margin-top: 16px; }
.sg-people .sg-person-name { font-weight: 600; font-size: 1rem; color: var(--sg-light-ink); }
.sg-person-role { font-family: var(--sg-mono); font-size: 0.68rem; letter-spacing: 0.12em; color: var(--sg-blue); margin-top: 4px; }
.sg-person-bio { font-size: 0.85rem; color: var(--sg-light-mut); line-height: 1.65; margin-top: 8px; }
@media (max-width: 860px) { .sg-people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sg-people { grid-template-columns: 1fr; } }

/* Advisor cards */
.sg-advisors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.sg-advisors figure {
    background: var(--sg-card-bg); border: 1px solid var(--sg-light-line); border-radius: 10px;
    padding: 24px; display: flex; flex-direction: column;
}
.sg-advisors img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--sg-card-bg); box-shadow: 0 0 0 1px var(--sg-light-line);
}
.sg-advisors figcaption { margin-top: 14px; display: flex; flex-direction: column; flex: 1; }
.sg-advisors .sg-person-name { font-weight: 600; font-size: 0.95rem; color: var(--sg-light-ink); line-height: 1.3; }
.sg-advisors .sg-person-role { margin-top: 4px; }
.sg-advisors .sg-person-bio { font-size: 0.82rem; color: var(--sg-light-mut); line-height: 1.6; margin-top: 8px; }
.sg-person-cred {
    font-size: 0.78rem; color: var(--sg-light-ink); line-height: 1.6;
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sg-light-line);
}
@media (max-width: 1100px) { .sg-advisors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sg-advisors { grid-template-columns: 1fr; } }

/* FAQ rows (light ground) */
.sg-faq { margin-top: 48px; border-top: 2px solid var(--sg-light-ink); }
.sg-faq > div { padding: 26px 0; border-bottom: 1px solid var(--sg-light-line); }
.sg-faq h3 { font-size: 1.05rem; font-weight: 600; }
.sg-faq p { margin-top: 10px; color: var(--sg-light-mut); line-height: 1.75; max-width: 78ch; font-size: 0.95rem; }
@media (min-width: 861px) { .sg-faq p { text-align: justify; hyphens: auto; } }

/* Role bullet lists (careers) */
.sg-role-list { margin: 14px 0 0; padding-left: 18px; }
.sg-role-list li { font-size: 0.9rem; color: var(--sg-light-mut); line-height: 1.65; margin-top: 8px; }

/* Careers */
.sg-jobs { margin-top: 40px; border-top: 2px solid var(--sg-light-ink); }
.sg-jobs > div {
    display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
    padding: 22px 0; border-bottom: 1px solid var(--sg-light-line);
}
.sg-jobs h3 { font-size: 1.05rem; font-weight: 600; }
.sg-jobs p { font-size: 0.85rem; color: var(--sg-light-mut); margin-top: 4px; }
.sg-job-tag {
    font-family: var(--sg-mono); font-size: 0.66rem; letter-spacing: 0.12em;
    border: 1px solid var(--sg-light-line); border-radius: 100px; padding: 5px 12px; color: var(--sg-light-mut);
}

/* Forms (light ground) */
.sg-form { max-width: 640px; margin-top: 40px; display: grid; gap: 18px; }
.sg-form label { font-size: 0.82rem; font-weight: 600; color: var(--sg-light-ink); display: block; margin-bottom: 6px; }
.sg-form input, .sg-form select, .sg-form textarea {
    width: 100%; padding: 12px 14px; font: inherit; font-size: 0.92rem;
    border: 1px solid var(--sg-input-line); border-radius: 8px;
    background: var(--sg-card-bg); color: var(--sg-light-ink);
}
.sg-form input:focus, .sg-form select:focus, .sg-form textarea:focus {
    outline: 2px solid var(--sg-blue); outline-offset: 1px; border-color: var(--sg-blue);
}
.sg-form .sg-form-note { font-size: 0.78rem; color: var(--sg-light-mut); line-height: 1.6; }
.sg-btn-solid { background: var(--sg-light-ink); color: var(--sg-light-bg); border: none; cursor: pointer; }
.sg-btn-solid:hover { background: var(--sg-blue); color: var(--sg-on-strong); }

/* Dark-ground buttons reused on light ground */
.sg-page-body .sg-btn-primary { background: var(--sg-blue); color: var(--sg-on-strong); }
.sg-page-body .sg-btn-primary:hover { background: var(--sg-blue-hover); }
.sg-page-body .sg-btn-ghost { border-color: var(--sg-ghost-line); color: var(--sg-light-ink); }
.sg-page-body .sg-btn-ghost:hover { border-color: var(--sg-blue); color: var(--sg-blue); }

/* --- Mobile: full-width layout, no horizontal scroll --- */
.sg-hero-grid > *, .sg-mech-grid > *, .sg-moat-grid > *, .sg-problem-grid > *,
.sg-pub-cards > *, .sg-cards > *, .sg-people > *, .sg-advisors > * { min-width: 0; }

@media (max-width: 640px) {
    .sg-wrap { padding: 0 16px; }
    .sg-brand img { width: 175px; }
    .sg-section, .sg-page-body .sg-section { padding: 64px 0; }
    .sg-hero { padding-top: 128px; }
    .sg-page-hero { padding: 140px 0 72px; }
    .sg-cells > div { padding: 20px 16px 24px; }
    .sg-form { max-width: none; }
    /* full-bleed media panels */
    .sg-console figure,
    .sg-film-frame {
        margin-left: -16px; margin-right: -16px;
        border-radius: 0; border-left: none; border-right: none;
    }
    .sg-film-frame { max-width: none; }
    .sg-tip-figure img { width: 100%; }
    .sg-footer { padding: 56px 0 32px; }
    .sg-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* --- Reveal animation (CSS only) --- */
.sg-reveal { opacity: 0; transform: translateY(14px); animation: sg-reveal 0.7s ease forwards; }
.sg-d1 { animation-delay: 0.08s; }
.sg-d2 { animation-delay: 0.18s; }
.sg-d3 { animation-delay: 0.3s; }
@keyframes sg-reveal { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .sg-sweep { animation: none; }
    .sg-reveal { animation: none; opacity: 1; transform: none; }
}
