/* =========================================
   AFRIPING — Coming Soon · v2.0
   Editorial paper · Burnt sienna · Cobalt spark
   ========================================= */

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

:root {
    /* Canvas — warm cream paper */
    --canvas: #f4efe6;
    --paper: #ede7d8;         /* slightly deeper sand — cards, sections */
    --paper-2: #e4dcc7;       /* deeper band */
    --edge: #c9c0a8;          /* hairlines */
    --edge-strong: #8a826e;

    /* Ink — near-black with warmth */
    --ink: #141414;
    --ink-soft: #2a2a2a;
    --ink-quiet: #6b6357;     /* olive-grey muted body */

    /* Signal — burnt sienna (one hot accent, used with intent) */
    --signal: #e8571c;
    --signal-deep: #b23a0f;
    --signal-soft: rgba(232, 87, 28, 0.1);

    /* Spark — electric cobalt (used only for "live" status + focus rings) */
    --spark: #2f3ee0;
    --spark-soft: rgba(47, 62, 224, 0.08);

    /* Typography */
    --serif: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
    --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

    --radius: 6px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.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;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    background: var(--canvas);
}

body {
    font-family: var(--sans);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    font-feature-settings: 'ss01', 'cv11';
}

::selection {
    background: var(--signal);
    color: var(--canvas);
}

.grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Hot accent — applied to the word "ping" in wordmarks */
.hot {
    color: var(--signal);
    font-style: italic;
    font-feature-settings: 'ss01';
}

/* Mono label style — used for eyebrows and section markers */
.label {
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

/* =========================================
   TICKER — top running banner
   ========================================= */
.ticker {
    position: relative;
    z-index: 5;
    background: var(--ink);
    color: var(--canvas);
    overflow: hidden;
    border-bottom: 1px solid var(--ink);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.ticker-track {
    display: flex;
    gap: 48px;
    white-space: nowrap;
    padding: 10px 0;
    animation: ticker-scroll 38s linear infinite;
    will-change: transform;
    width: max-content;
}

.ticker:hover .ticker-track {
    animation-play-state: paused;
}

.ticker span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.ticker span::before {
    content: '';
    width: 5px;
    height: 5px;
    background: var(--signal);
    border-radius: 50%;
    display: inline-block;
}

@keyframes ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* =========================================
   NAV
   ========================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(244, 239, 230, 0.92);
    border-bottom: 1px solid var(--edge);
}

/* Scroll-blur is desktop-only. On mobile the drawer needs .nav to NOT create
   a containing block for its position:fixed children (backdrop-filter would). */
@media (min-width: 841px) {
    .nav {
        background: rgba(244, 239, 230, 0.88);
        backdrop-filter: blur(10px) saturate(140%);
        -webkit-backdrop-filter: blur(10px) saturate(140%);
    }
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 72px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-variation-settings: 'opsz' 14, 'SOFT' 40, 'WONK' 1;
}

.brand-mark {
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 28px;
    font-size: 0.86rem;
}

.nav-links a {
    color: var(--ink-soft);
    text-decoration: none;
    position: relative;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover::after { transform: scaleX(1); }

/* Wraps lang + contact — becomes the drawer-footer on mobile,
   collapses to inline on desktop via display:contents. */
.nav-footer {
    display: contents;
}

/* Email link: hidden on desktop, visible inside mobile drawer */
.nav-contact {
    display: none;
}

/* Language toggle */
.lang {
    display: inline-flex;
    border: 1px solid var(--edge);
    border-radius: 999px;
    padding: 3px;
    background: var(--canvas);
}

.lang button {
    background: transparent;
    border: 0;
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--ink-quiet);
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 28px;
}

.lang button.active {
    background: var(--ink);
    color: var(--canvas);
}

.lang button:hover:not(.active) {
    color: var(--ink);
}

/* Mobile nav toggle (hamburger = text button). Hidden on desktop. */
.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--edge);
    border-radius: 999px;
    padding: 11px 18px;
    min-height: 40px;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    position: relative;
    z-index: 12;
}

.nav-toggle:hover {
    background: var(--ink);
    color: var(--canvas);
    border-color: var(--ink);
}

@media (max-width: 840px) {
    /* nav-right becomes a full-viewport drawer */
    .nav-right {
        position: fixed;
        inset: 0;
        z-index: 9;
        background: var(--canvas);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: 96px 28px 40px;
        transform: translateY(-100%);
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
        visibility: hidden;
        pointer-events: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-right.open {
        transform: translateY(0);
        visibility: visible;
        pointer-events: auto;
    }

    /* Menu links: large serif, hairline dividers — echoes the editorial hero */
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 0;
        border-top: 1px solid var(--edge);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--edge);
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 22px 0;
        font-family: var(--serif);
        font-weight: 400;
        font-size: clamp(2rem, 8vw, 2.75rem);
        line-height: 1;
        letter-spacing: -0.025em;
        color: var(--ink);
        font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
    }

    .nav-links a::after { display: none; } /* kill desktop underline-grow */

    /* Drawer footer: lang + contact, pushed to the bottom */
    .nav-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-top: auto;
        padding-top: 40px;
    }

    .lang {
        align-self: flex-start;
    }

    .lang button {
        padding: 10px 18px;
        font-size: 0.8rem;
        min-height: 40px;
        min-width: 48px;
    }

    .nav-contact {
        display: inline-block;
        font-family: var(--mono);
        font-size: 0.88rem;
        color: var(--ink);
        text-decoration: none;
        border-bottom: 1px solid var(--ink);
        padding-bottom: 3px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
    }

    /* Body scroll lock while drawer is open (mobile only) */
    body.nav-open {
        overflow: hidden;
        touch-action: none;
    }
}

/* Smaller screens: slightly tighter drawer padding, preserved ergonomics */
@media (max-width: 400px) {
    .nav-right {
        padding: 92px 22px 32px;
    }
    .nav-links a {
        padding: 20px 0;
    }
}

/* =========================================
   HERO — editorial spread (title + prose/spec)
   ========================================= */
.hero {
    position: relative;
    padding: 48px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--edge);
}

.hero::before {
    /* Faint halftone pattern, top-right — background texture */
    content: '';
    position: absolute;
    top: -40px;
    right: -80px;
    width: 440px;
    height: 440px;
    background-image: radial-gradient(var(--edge) 1px, transparent 1.2px);
    background-size: 12px 12px;
    opacity: 0.45;
    mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-main {
    position: relative;
    padding-top: 24px;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--ink);
}

.hero-left {
    min-width: 0;
}

.hero-eyebrow {
    display: block;
    color: var(--ink);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.8rem, 6.8vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    color: var(--ink);
    font-variation-settings: 'opsz' 144, 'SOFT' 50, 'WONK' 1;
    margin-bottom: 36px;
}

.hero-title .comma {
    color: var(--signal);
    font-style: italic;
}

.hero-title .cursor {
    display: inline-block;
    width: 0.5em;
    height: 0.85em;
    background: var(--ink);
    vertical-align: -0.08em;
    margin-left: 0.06em;
    animation: cursor-blink 1.05s steps(2) infinite;
}

@keyframes cursor-blink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.hero-lede {
    max-width: 52ch;
    font-size: 1.08rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 28px;
}

.hero-lede strong {
    background: linear-gradient(180deg, transparent 62%, var(--signal-soft) 62%);
    color: var(--ink);
    font-weight: 500;
    padding: 0 2px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* Spec sheet — right column magazine sidebar */
.hero-spec {
    border-top: 1px solid var(--ink);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
}

.hero-spec .spec-row {
    padding: 14px 0;
    border-bottom: 1px solid var(--edge);
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
}

.hero-spec .spec-row:last-child {
    border-bottom: 0;
}

.hero-spec .spec-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
}

.hero-spec .spec-value {
    font-family: var(--sans);
    font-size: 0.92rem;
    color: var(--ink-soft);
    letter-spacing: -0.005em;
}

/* Editorial code-snippet under the spec — fills the vertical gap
   under the spec sheet and reinforces developer-platform identity. */
.hero-spec .spec-snippet {
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: rgba(20, 20, 20, 0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--ink-soft);
    letter-spacing: 0;
}

.hero-spec .snippet-line {
    display: block;
}

.hero-spec .snippet-verb {
    display: inline-block;
    background: var(--ink);
    color: var(--canvas);
    padding: 1px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    margin-right: 6px;
}

.hero-spec .snippet-key   { color: var(--signal); }
.hero-spec .snippet-str   { color: var(--ink); }
.hero-spec .snippet-ok    { color: var(--ink); padding-top: 6px; border-top: 1px dashed var(--edge); margin-top: 6px; }
.hero-spec .snippet-arrow { color: var(--signal); margin-right: 4px; }
.hero-spec .snippet-meta  { color: var(--ink-quiet); }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-radius: 999px;
    cursor: pointer;
    border: 1px solid var(--ink);
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--canvas);
}

.btn-primary:hover {
    background: var(--signal);
    border-color: var(--signal);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
}

.btn-ghost:hover {
    background: var(--ink);
    color: var(--canvas);
}

.btn .arrow {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .arrow { transform: translateX(4px); }

@media (max-width: 840px) {
    .hero { padding: 36px 0 56px; }
    .hero-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-title { margin-bottom: 28px; }
    .hero-spec .spec-row {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        padding: 12px 0;
    }
    .hero-spec .spec-value {
        font-size: 0.86rem;
    }
    .hero-spec .spec-snippet {
        margin-top: 24px;
        font-size: 0.74rem;
    }
}

/* =========================================
   MANIFESTO — single editorial band
   ========================================= */
.manifesto {
    background: var(--paper);
    border-bottom: 1px solid var(--edge);
    padding: 100px 0;
    position: relative;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 36px;
    align-items: start;
}

.manifesto-rail .label {
    color: var(--signal);
}

.manifesto p {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 940px;
    color: var(--ink);
    font-variation-settings: 'opsz' 60, 'SOFT' 40, 'WONK' 1;
}

.manifesto p em {
    color: var(--signal);
    font-style: italic;
}

.manifesto-marks {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--edge-strong);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
}

.manifesto-mark .num {
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-variation-settings: 'opsz' 144, 'SOFT' 100;
    display: block;
    margin-bottom: 10px;
}

.manifesto-mark .cap {
    font-size: 0.92rem;
    color: var(--ink-quiet);
    line-height: 1.4;
}

@media (max-width: 840px) {
    .manifesto { padding: 64px 0; }
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================================
   CAPABILITIES — numbered manifesto sections
   ========================================= */
.capabilities {
    padding: 120px 0 80px;
}

.cap-header {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 36px;
    margin-bottom: 72px;
    align-items: end;
}

.cap-header h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
    max-width: 780px;
}

.cap-header h2 em {
    color: var(--signal);
    font-style: italic;
}

.capability {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 36px;
    padding: 48px 0;
    border-top: 1px solid var(--edge);
    position: relative;
    transition: background 0.3s ease;
}

.capability:last-of-type {
    border-bottom: 1px solid var(--edge);
}

.capability:hover {
    background: var(--paper);
}

.cap-num {
    font-family: var(--serif);
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
    font-variation-settings: 'opsz' 120, 'SOFT' 80;
    padding-top: 4px;
}

.capability:hover .cap-num { color: var(--signal); }

.cap-body {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}

.cap-body h3 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--ink);
    font-variation-settings: 'opsz' 72, 'SOFT' 60, 'WONK' 1;
    margin-bottom: 14px;
}

.cap-body p {
    font-size: 1rem;
    color: var(--ink-soft);
    max-width: 48ch;
    line-height: 1.6;
}

.cap-aside {
    border-left: 1px solid var(--edge);
    padding-left: 28px;
}

.cap-aside .label {
    display: block;
    margin-bottom: 14px;
    color: var(--ink);
}

.cap-aside ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cap-aside li {
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--ink-soft);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cap-aside li::before {
    content: '→';
    color: var(--signal);
    font-weight: 500;
}

@media (max-width: 840px) {
    .capabilities { padding: 72px 0 48px; }
    .cap-header,
    .capability {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cap-body { grid-template-columns: 1fr; gap: 24px; }
    .cap-aside {
        border-left: 0;
        border-top: 1px solid var(--edge);
        padding-left: 0;
        padding-top: 20px;
    }
}

/* =========================================
   CTA — SMS message bubble form
   ========================================= */
.cta {
    background: var(--ink);
    color: var(--canvas);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    /* Subtle halftone, matching hero */
    content: '';
    position: absolute;
    top: -80px;
    left: -60px;
    width: 420px;
    height: 420px;
    background-image: radial-gradient(rgba(244, 239, 230, 0.14) 1px, transparent 1.2px);
    background-size: 14px 14px;
    mask-image: radial-gradient(circle at 30% 30%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 30% 30%, black, transparent 70%);
    pointer-events: none;
}

.cta-grid {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 36px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.cta-rail .label { color: var(--signal); }

.cta h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--canvas);
    font-variation-settings: 'opsz' 96, 'SOFT' 50, 'WONK' 1;
    margin-bottom: 18px;
    max-width: 16ch;
}

.cta h2 em { color: var(--signal); font-style: italic; }

.cta-sub {
    font-size: 1.05rem;
    color: rgba(244, 239, 230, 0.7);
    margin-bottom: 36px;
    max-width: 52ch;
}

/* SMS-bubble form */
.bubble {
    background: var(--canvas);
    color: var(--ink);
    border-radius: 20px 20px 20px 4px;
    padding: 22px 24px;
    max-width: 540px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.bubble::after {
    /* bubble tail, bottom-left */
    content: '';
    position: absolute;
    bottom: -6px;
    left: 16px;
    width: 16px;
    height: 16px;
    background: var(--canvas);
    border-bottom-left-radius: 16px;
    transform: skewX(-25deg);
    z-index: -1;
}

.bubble-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-quiet);
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--edge);
}

.bubble-meta .to {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bubble-meta .to::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal);
}

.bubble-form {
    display: flex;
    gap: 10px;
}

.bubble-form input[type="email"] {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    padding: 8px 0;
}

.bubble-form input[type="email"]::placeholder {
    color: var(--ink-quiet);
}

.bubble-form button {
    padding: 10px 18px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--canvas);
    font-family: var(--sans);
    font-size: 0.86rem;
    font-weight: 500;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.bubble-form button:hover:not(:disabled) {
    background: var(--signal);
    border-color: var(--signal);
    transform: translateY(-1px);
}

.bubble-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loader[hidden] { display: none; }

.btn-loader {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(244, 239, 230, 0.3);
    border-top-color: var(--canvas);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
    margin-top: 14px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 10px 14px;
    border-radius: 8px;
}

.form-message.success {
    background: var(--spark-soft);
    color: var(--spark);
    border: 1px solid rgba(47, 62, 224, 0.3);
}

.form-message.error {
    background: var(--signal-soft);
    color: var(--signal-deep);
    border: 1px solid rgba(232, 87, 28, 0.3);
}

.cta-privacy {
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(244, 239, 230, 0.5);
    text-transform: uppercase;
}

@media (max-width: 840px) {
    .cta { padding: 72px 0; }
    .cta-grid { grid-template-columns: 1fr; gap: 20px; }
    .bubble-form { flex-direction: column; }
    .bubble-form button { width: 100%; justify-content: center; }
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--canvas);
    padding: 48px 0 40px;
    border-top: 1px solid var(--edge);
}

.footer-inner {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 36px;
    align-items: baseline;
}

.footer-brand {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-variation-settings: 'opsz' 14, 'SOFT' 40, 'WONK' 1;
    color: var(--ink);
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-row a {
    color: var(--ink-soft);
    text-decoration: none;
    border-bottom: 1px solid var(--ink-soft);
    padding-bottom: 2px;
    font-size: 0.88rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-row a:hover {
    color: var(--signal);
    border-color: var(--signal);
}

.footer-meta {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-quiet);
}

@media (max-width: 840px) {
    .footer-inner { grid-template-columns: 1fr; gap: 16px; }
    .footer-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* =========================================
   Reveal-on-scroll
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Respect reduced-motion: disable cursor blink, ticker, reveal transform */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .ticker-track { animation: none; }
    .hero-title .cursor { animation: none; opacity: 1; }
}
