/* ============================================================
   Tokens
   ============================================================ */
:root {
    --bg: #12161c;
    --bg-panel: #191f27;
    --bg-panel-2: #1e2530;
    --ink: #ecebe4;
    --ink-dim: #a2a9b4;
    --ink-faint: #6b7280;
    --cream: #f5ecd9;
    --copper: #f2582c;
    --copper-bright: #ff8552;
    --phosphor: #7cc9a0;
    --line: #2a323c;
    --line-soft: #232a33;

    --display: "Fraunces", Georgia, serif;
    --poster: "Anton", "Arial Narrow", sans-serif;
    --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
    --body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

    --max: 720px;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Generative background — canvas-drawn circuit traces (scripts.js).
   Fixed behind everything; falls back to the flat --bg if JS is off.
   ============================================================ */
.bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
}

a { color: var(--copper-bright); }
a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--phosphor);
    outline-offset: 3px;
}

/* ============================================================
   Signature element — the circuit trace running the length
   of the page, with a node marking each section start.
   ============================================================ */
.trace {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(calc(var(--max) / -2 - 28px));
    width: 1px;
    height: 100%;
    background: linear-gradient(var(--copper) 0%, var(--copper) 100%);
    opacity: 0.35;
    z-index: 0;
}

@media (max-width: 860px) {
    .trace { display: none; }
}

.eyebrow {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--copper-bright);
    margin: 0 0 18px;
}

.eyebrow.node {
    position: relative;
    padding-left: 26px;
}

.eyebrow.node::before {
    content: "";
    position: absolute;
    left: -33px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--copper);
    transform: translateY(-50%);
}

@media (max-width: 860px) {
    .eyebrow.node { padding-left: 0; }
    .eyebrow.node::before { display: none; }
}

.masthead-logo {
    display: block;
    width: 40%;
    max-width: 280px;
    height: auto;
    opacity: 0.92;
    margin: 0 0 28px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
    padding: 40px 0 88px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
}

.hero::before {
    background-image: url("images/hero_background.jpeg");
    background-size: cover;
    background-position: center 35%;
    filter: brightness(0.38) saturate(0.75) contrast(1.05);
    z-index: -2;
}

.hero::after {
    background: linear-gradient(
        180deg,
        rgba(18, 22, 28, 0.72) 0%,
        rgba(18, 22, 28, 0.58) 40%,
        rgba(18, 22, 28, 0.82) 82%,
        var(--bg) 100%
    );
    z-index: -1;
}

.hero .eyebrow { color: var(--phosphor); }

/* ============================================================
   Coming soon (index.html placeholder)
   ============================================================ */
.coming-soon {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

.coming-soon .wrap {
    text-align: center;
}

.coming-soon .eyebrow { color: var(--phosphor); }

.coming-soon .masthead-logo,
.coming-soon .lede {
    margin-left: auto;
    margin-right: auto;
}

.coming-soon-note {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--ink-faint);
    margin-top: 8px;
}

h1 {
    font-family: var(--poster);
    font-weight: 400;
    text-transform: uppercase;
    font-size: clamp(52px, 10vw, 92px);
    line-height: 0.94;
    letter-spacing: -0.01em;
    margin: 0 0 32px;
    color: var(--cream);
}

.highlight {
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='24' viewBox='0 0 120 24'%3E%3Cpath d='M0 14 Q15 4 30 14 T60 14 T90 14 T120 14' stroke='%23f2582c' stroke-width='7' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: bottom 4px left;
    background-size: 84px 18px;
    padding-bottom: 14px;
}

.lede {
    font-size: 19px;
    color: var(--ink-dim);
    max-width: 56ch;
    margin: 0 0 20px;
}

.cta {
    display: inline-block;
    margin-top: 20px;
    padding: 17px 34px;
    background: var(--copper);
    color: #14181d;
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover {
    background: var(--copper-bright);
    transform: translateY(-1px);
}

/* ============================================================
   Sections
   ============================================================ */
.section {
    padding: 76px 0;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

h2 {
    font-family: var(--poster);
    font-weight: 400;
    font-size: clamp(30px, 4.5vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.005em;
    margin: 0 0 24px;
    color: var(--cream);
}

.section p {
    color: var(--ink-dim);
    max-width: 62ch;
}

/* ============================================================
   Feature list ("what's involved")
   ============================================================ */
.feature-list {
    display: grid;
    gap: 32px;
    margin-top: 12px;
}

.feature-label {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.feature p:not(.feature-label) {
    margin: 0;
}

/* ============================================================
   Team
   ============================================================ */
.team-list {
    display: grid;
    gap: 36px;
    margin-top: 12px;
}

.team-member {
    padding: 24px 26px;
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 4px;
}

.team-name {
    font-family: var(--display);
    font-size: 20px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 4px;
}

.team-role {
    font-family: var(--mono);
    font-size: 12.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--phosphor);
    margin: 0 0 14px;
}

.team-member p:not(.team-name):not(.team-role) {
    margin: 0 0 14px;
}

.team-link {
    font-family: var(--mono);
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.team-link:hover {
    border-bottom-color: var(--copper-bright);
}

/* ============================================================
   Forms
   ============================================================ */
.form-section h2 { margin-bottom: 12px; }

.form-embed {
    margin: 28px 0 20px;
}

.contact-email {
    margin: 12px 0 0;
}

.contact-email a {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 600;
    color: var(--copper-bright);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s ease;
}

.contact-email a:hover {
    border-bottom-color: var(--copper-bright);
}

.form-note {
    font-size: 15px;
    color: var(--ink-faint);
}

/* ============================================================
   Privacy accordion
   ============================================================ */
.accordion {
    margin-top: 20px;
    border-top: 1px solid var(--line);
}

details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

summary {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

summary::-webkit-details-marker { display: none; }

summary::before {
    content: "+";
    color: var(--copper);
    font-size: 16px;
    width: 16px;
    flex-shrink: 0;
}

details[open] summary::before {
    content: "\2212";
}

details p {
    margin: 14px 0 0;
    padding-left: 28px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    padding: 56px 0 72px;
    border-top: 1px solid var(--line);
    position: relative;
    z-index: 1;
}

.site-footer p {
    color: var(--ink-faint);
    font-size: 14px;
    margin: 0 0 4px;
}

.footer-logo {
    display: block;
    height: 34px;
    width: auto;
    opacity: 0.92;
    margin-bottom: 28px;
}

.footer-name {
    font-family: var(--display);
    font-size: 18px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 6px !important;
}

.footer-reb {
    margin-top: 20px !important;
    max-width: 58ch;
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cta { transition: none; }
}