/* ============================================================
   SideQuest Voice — "the property at night"
   Deep-purple nightfall palette, ice-blue line-light accents.
   Hand-rolled, no framework. One file, fast.
   ============================================================ */

:root {
    --bg-0: #0a0714;          /* page ground — near-black violet */
    --bg-1: #110b20;
    --bg-2: #170f2c;
    --panel: rgba(126, 96, 255, 0.055);
    --line: rgba(178, 152, 255, 0.14);
    --line-soft: rgba(178, 152, 255, 0.08);

    --text: #f1ecfc;
    --text-dim: #b3a6d6;
    --text-faint: #8577ab;

    --violet: #7a5cff;
    --violet-deep: #432ea8;
    --ice: #9fd9ff;
    --ice-bright: #dcf1ff;
    --ice-dim: rgba(159, 217, 255, 0.55);

    --radius: 20px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Instrument Sans", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;

    --pad: clamp(1.25rem, 5vw, 3rem);
    --sec-gap: clamp(5.5rem, 12vw, 10rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection { background: rgba(122, 92, 255, 0.45); color: var(--ice-bright); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 76rem; margin-inline: auto; padding-inline: var(--pad); }

/* ---- film grain, one fixed layer, GPU-cheap ---- */
.grain {
    position: fixed; inset: -50%; z-index: 40; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05; mix-blend-mode: overlay;
}

/* ============================================================
   Header
   ============================================================ */
.site-head {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    transition: background 0.45s ease, border-color 0.45s ease, backdrop-filter 0.45s ease;
    border-bottom: 1px solid transparent;
}
.site-head.is-scrolled {
    background: rgba(10, 7, 20, 0.72);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-bottom-color: var(--line-soft);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 4.5rem; }

.wordmark { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.wordmark-name {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 500; font-style: italic;
    letter-spacing: 0.01em; color: var(--text);
}
.live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--ice); align-self: center;
    box-shadow: 0 0 0 0 rgba(159, 217, 255, 0.5);
    animation: pulse 3.2s ease-out infinite;
}
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(159, 217, 255, 0.45); }
    55%  { box-shadow: 0 0 0 9px rgba(159, 217, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(159, 217, 255, 0); }
}

.site-nav { display: flex; align-items: center; gap: clamp(0.25rem, 2vw, 1rem); }
.nav-link {
    position: relative; white-space: nowrap;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-dim); padding: 0.5rem 0.55rem;
    transition: color 0.3s ease;
}
.nav-link::after {
    content: ""; position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.15rem;
    height: 1px; background: var(--ice);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover, .nav-link.is-here { color: var(--text); }
.nav-link:hover::after, .nav-link.is-here::after { transform: scaleX(1); }

.nav-cta {
    margin-left: 0.35rem;
    font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--bg-0); background: var(--ice);
    padding: 0.6rem 1.15rem; border-radius: 999px;
    box-shadow: 0 0 24px rgba(159, 217, 255, 0.22);
    transition: box-shadow 0.35s ease, transform 0.35s ease, background 0.35s ease;
}
.nav-cta:hover { background: var(--ice-bright); box-shadow: 0 0 34px rgba(159, 217, 255, 0.45); transform: translateY(-1px); }

@media (max-width: 40rem) {
    .head-row { height: 4rem; }
    .wordmark-name { font-size: 1.15rem; }
    .nav-link { font-size: 0.7rem; letter-spacing: 0.09em; padding: 0.5rem 0.35rem; }
    .nav-cta { font-size: 0.7rem; padding: 0.5rem 0.85rem; margin-left: 0.15rem; }
}

/* ============================================================
   Hero — parallax nightfall
   ============================================================ */
.hero {
    position: relative; overflow: clip;
    display: flex; align-items: flex-end;
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: clamp(3.5rem, 9vh, 6.5rem);
}
.hero--sub { min-height: 72svh; }
.hero--article { min-height: 56svh; }

.hero-sky { position: absolute; inset: 0; z-index: -1; }
.sky-layer { position: absolute; inset: -12% 0; will-change: transform; }
.sky-base {
    background:
        radial-gradient(120% 90% at 78% -10%, rgba(122, 92, 255, 0.34) 0%, transparent 55%),
        radial-gradient(110% 100% at 12% 8%, rgba(67, 46, 168, 0.5) 0%, transparent 60%),
        radial-gradient(150% 120% at 50% 115%, rgba(23, 15, 44, 0.9) 0%, transparent 70%),
        linear-gradient(180deg, #0d0919 0%, #140d26 45%, #0a0714 100%);
}
.aurora { filter: blur(70px); opacity: 0.8; }
.aurora-a {
    background: radial-gradient(38% 26% at 70% 30%, rgba(159, 217, 255, 0.17) 0%, transparent 100%);
    animation: drift-a 22s ease-in-out infinite alternate;
}
.aurora-b {
    background: radial-gradient(30% 22% at 26% 55%, rgba(122, 92, 255, 0.28) 0%, transparent 100%);
    animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }
@keyframes drift-b { from { transform: translate3d(2%, 2%, 0) scale(1.05); } to { transform: translate3d(-3%, -2%, 0) scale(1); } }

.sky-horizon {
    top: auto; bottom: 18%; height: 1px; inset-inline: 0;
    background: linear-gradient(90deg, transparent 4%, rgba(159, 217, 255, 0.35) 30%, rgba(159, 217, 255, 0.65) 50%, rgba(159, 217, 255, 0.35) 70%, transparent 96%);
    box-shadow: 0 0 28px 1px rgba(159, 217, 255, 0.35);
    opacity: 0.7;
}

.hero-inner { position: relative; width: 100%; }

.eyebrow {
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--ice); margin-bottom: 1.4rem;
    display: flex; align-items: center; gap: 0.9rem;
}
.eyebrow::before { content: ""; width: 2.6rem; height: 1px; background: var(--ice-dim); }
.eyebrow .crumb { color: var(--ice); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.eyebrow .crumb:hover { border-bottom-color: var(--ice-dim); }

.hero-h {
    font-family: var(--font-display);
    font-weight: 340;
    font-variation-settings: "opsz" 120;
    font-size: clamp(2.7rem, 7.2vw, 5.9rem);
    line-height: 1.02; letter-spacing: -0.015em;
    max-width: 17ch;
    text-wrap: balance;
    margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
    background: linear-gradient(115deg, var(--text) 55%, var(--ice-bright) 82%, var(--text) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: hero-sheen 9s ease-in-out infinite;
}
@keyframes hero-sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 90% 0; } }
.hero-h--sub { font-size: clamp(2.4rem, 5.8vw, 4.6rem); }

.lede {
    max-width: 62ch;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.75; color: var(--text-dim);
}
.module-line {
    font-family: var(--font-display); font-style: italic;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: var(--ice);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.2rem; }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.7rem; border-radius: 999px;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}
.btn--ice { background: var(--ice); color: var(--bg-0); box-shadow: 0 0 30px rgba(159, 217, 255, 0.25); }
.btn--ice:hover { background: var(--ice-bright); transform: translateY(-2px); box-shadow: 0 0 44px rgba(159, 217, 255, 0.45); }
.btn--ghost { border: 1px solid var(--line); color: var(--text-dim); }
.btn--ghost:hover { border-color: var(--ice-dim); color: var(--text); transform: translateY(-2px); }

.scroll-cue {
    position: absolute; right: var(--pad); bottom: 0.2rem;
    width: 1px; height: 4.2rem; overflow: hidden;
    background: var(--line);
    display: none;
}
.scroll-cue span {
    position: absolute; inset-inline: 0; top: -40%; height: 40%;
    background: var(--ice);
    animation: cue 2.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
@keyframes cue { to { top: 110%; } }
@media (min-width: 48rem) { .scroll-cue { display: block; } }

/* ============================================================
   Sections
   ============================================================ */
.sec { padding-block: var(--sec-gap); position: relative; }
.sec--first { padding-top: calc(var(--sec-gap) + 4rem); }

.sec-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 60rem) {
    .sec-grid { grid-template-columns: 8rem minmax(0, 46rem); gap: 3rem; }
}
.sec-side { padding-top: 0.6rem; }
.sec-mark {
    font-family: var(--font-display); font-style: italic; font-weight: 300;
    font-size: 1.05rem; color: var(--ice);
    display: inline-flex; align-items: center; gap: 0.7rem;
}
.sec-mark::after { content: ""; width: 2.4rem; height: 1px; background: var(--ice-dim); }

.sec-h {
    font-family: var(--font-display); font-weight: 340;
    font-variation-settings: "opsz" 90;
    font-size: clamp(1.9rem, 3.8vw, 3rem);
    line-height: 1.08; letter-spacing: -0.01em;
    text-wrap: balance;
    margin-bottom: clamp(1.6rem, 3vw, 2.4rem);
}
.sec-h--big { font-size: clamp(2.2rem, 5vw, 3.9rem); max-width: 20ch; }

.prose p { color: var(--text-dim); margin-bottom: 1.35rem; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose--lede p:first-child { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--text); }
.prose--center { margin-inline: auto; }
.prose--center p { margin-inline: auto; }

.text-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    margin-top: 2rem; color: var(--ice); font-weight: 600; font-size: 0.95rem;
}
.text-link .arrow { transition: transform 0.3s ease; }
.text-link:hover .arrow { transform: translateX(5px); }

/* problem section — faint red-shifted dusk to set tension */
.sec--problem {
    background:
        radial-gradient(90% 60% at 15% 0%, rgba(67, 46, 168, 0.16) 0%, transparent 60%),
        var(--bg-0);
    border-top: 1px solid var(--line-soft);
}

/* ============================================================
   Shimmer borders — the signature move
   .shim gets a 1px masked gradient border whose highlight follows
   the pointer (JS feeds --mx/--my). Idle: slow breathing sweep.
   ============================================================ */
.shim {
    position: relative;
    background: linear-gradient(160deg, rgba(126, 96, 255, 0.07), rgba(126, 96, 255, 0.02) 55%);
    border-radius: var(--radius);
    isolation: isolate;
}
.shim::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit; padding: 1px;
    background:
        radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%),
            rgba(220, 241, 255, 0.95) 0%,
            rgba(159, 217, 255, 0.45) 28%,
            rgba(122, 92, 255, 0.28) 55%,
            rgba(122, 92, 255, 0.13) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    opacity: 0.55;
    transition: opacity 0.5s ease;
    pointer-events: none;
}
.shim:hover::before, .shim:focus-within::before { opacity: 1; }
/* idle shimmer sweep for touch / no-hover devices */
@media (hover: none) {
    .shim::before { animation: shim-sweep 7s ease-in-out infinite; }
    @keyframes shim-sweep {
        0%, 100% { --mx: 12%; --my: -10%; opacity: 0.4; }
        50%      { --mx: 88%; --my: 110%; opacity: 0.8; }
    }
}
.shim::after { /* soft interior glow under the pointer */
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, -20%), rgba(159, 217, 255, 0.09), transparent 65%);
    opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.shim:hover::after { opacity: 1; }

/* ---- protocol list (§3) ---- */
.list-intro { margin-top: 2.4rem; margin-bottom: 1.1rem; color: var(--text); }
.protocol-list { list-style: none; display: grid; gap: 0.8rem; max-width: 46rem; }
.protocol-list li {
    display: flex; align-items: flex-start; gap: 0.9rem;
    padding: 1.05rem 1.3rem;
    color: var(--text-dim); font-size: 1rem;
}
.tick {
    flex: none; width: 1.15rem; height: 1.15rem; margin-top: 0.2rem;
    border-radius: 50%;
    border: 1px solid var(--ice-dim);
    position: relative;
}
.tick::after {
    content: ""; position: absolute; inset: 4px;
    border-radius: 50%; background: var(--ice);
    box-shadow: 0 0 10px rgba(159, 217, 255, 0.7);
}

/* ---- capability cards (§4) — asymmetric bento ---- */
.caps-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.caps-head .sec-mark { margin-bottom: 1.2rem; }
.caps-intro { color: var(--text-dim); max-width: 56ch; }

.caps-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) {
    .caps-grid { grid-template-columns: repeat(6, 1fr); }
    .cap-card:nth-child(1) { grid-column: span 4; }
    .cap-card:nth-child(2) { grid-column: span 2; }
    .cap-card:nth-child(3) { grid-column: span 3; }
    .cap-card:nth-child(4) { grid-column: span 3; }
    .cap-card:nth-child(5) { grid-column: span 6; }
}
.cap-card {
    display: flex; flex-direction: column; gap: 0.85rem;
    padding: clamp(1.5rem, 3vw, 2.2rem);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-card:hover { transform: translateY(-4px); }
.cap-num {
    font-family: var(--font-display); font-style: italic; font-weight: 300;
    color: var(--ice); font-size: 0.95rem;
}
.cap-h {
    font-family: var(--font-display); font-weight: 380;
    font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.12;
    letter-spacing: -0.005em;
}
.cap-body { color: var(--text-dim); font-size: 0.98rem; max-width: 58ch; }
.cap-link {
    margin-top: auto; padding-top: 0.9rem;
    display: inline-flex; align-items: center; gap: 0.5rem;
    color: var(--ice); font-size: 0.88rem; font-weight: 600;
}
.cap-link .arrow { transition: transform 0.3s ease; }
.cap-card:hover .cap-link .arrow { transform: translateX(5px); }

/* homepage capability rows */
.caps-list { display: grid; gap: 0.9rem; }
.cap-row {
    display: grid; align-items: baseline; gap: 0.4rem 1.4rem;
    grid-template-columns: 1fr auto;
    padding: 1.35rem clamp(1.2rem, 3vw, 2rem);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.cap-row:hover { transform: translateY(-3px); }
.cap-row .cap-num { grid-row: 1; }
.cap-row-h {
    font-family: var(--font-display); font-weight: 380;
    font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.1;
}
.cap-row-plain { color: var(--text-dim); font-size: 0.97rem; grid-column: 1; }
.cap-row .arrow { color: var(--ice); grid-row: 2; justify-self: end; transition: transform 0.3s ease; }
.cap-row:hover .arrow { transform: translateX(5px); }
@media (min-width: 48rem) {
    .cap-row { grid-template-columns: 3.2rem minmax(14rem, 18rem) 1fr auto; align-items: center; }
    .cap-row .cap-num, .cap-row .arrow { grid-row: auto; }
    .cap-row-plain { grid-column: auto; }
}

/* ---- pick & choose (§5) ---- */
.sec--pick { text-align: center; }
.pick-inner { display: grid; justify-items: center; }
.pick-inner .sec-mark::after { display: none; }
.pick-inner .sec-mark { margin-bottom: 1.4rem; }
.pick-h {
    font-family: var(--font-display); font-weight: 320; font-style: italic;
    font-variation-settings: "opsz" 110;
    font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.12;
    letter-spacing: -0.01em; text-wrap: balance;
    max-width: 22ch; margin-bottom: 1.8rem;
}
.pick-body { color: var(--text-dim); max-width: 58ch; margin-inline: auto; }

/* ---- CTA (§6) + callback band ---- */
.sec--call, .callback-band { position: relative; overflow: clip; text-align: center; }
.callback-band { padding-block: var(--sec-gap); border-top: 1px solid var(--line-soft); }
.call-glow, .callback-band::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(55% 45% at 50% 108%, rgba(122, 92, 255, 0.28) 0%, transparent 70%),
        radial-gradient(38% 30% at 50% 112%, rgba(159, 217, 255, 0.18) 0%, transparent 70%);
}
.sec--call .sec-h--big, .band-h { margin-inline: auto; }
.band-h {
    font-family: var(--font-display); font-weight: 340;
    font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; text-wrap: balance;
    margin-bottom: 1.4rem;
}
.band-h em { font-style: italic; color: var(--ice-bright); }
.band-sub { color: var(--text-dim); max-width: 52ch; margin: 0 auto 2.4rem; }
.band-inner .eyebrow { justify-content: center; }
.band-inner .eyebrow::before { display: none; }

.call-form { max-width: 44rem; margin: clamp(2rem, 4vw, 3rem) auto 0; padding: clamp(1.4rem, 3vw, 2rem); }
.call-fields { display: grid; gap: 1rem; }
@media (min-width: 48rem) { .call-fields { grid-template-columns: 1fr 1fr auto; align-items: end; } }
.call-field { display: grid; gap: 0.45rem; text-align: left; }
.call-label {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--ice);
}
.call-form input {
    width: 100%; padding: 0.85rem 1rem;
    background: rgba(10, 7, 20, 0.55);
    border: 1px solid var(--line); border-radius: 12px;
    color: var(--text); font: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.call-form input::placeholder { color: var(--text-faint); }
.call-form input:focus {
    outline: none; border-color: var(--ice-dim);
    box-shadow: 0 0 0 3px rgba(159, 217, 255, 0.12), 0 0 24px rgba(159, 217, 255, 0.1);
}
.call-submit {
    font: inherit; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    background: var(--ice); color: var(--bg-0);
    border: 0; border-radius: 999px; cursor: pointer;
    padding: 0.95rem 1.9rem;
    box-shadow: 0 0 30px rgba(159, 217, 255, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}
.call-submit:hover { background: var(--ice-bright); transform: translateY(-2px); box-shadow: 0 0 44px rgba(159, 217, 255, 0.5); }
.call-submit:active { transform: translateY(0); }
.call-note { margin-top: 0.9rem; font-size: 0.9rem; color: var(--text-faint); min-height: 1.3em; text-align: left; }
.call-note.is-ok { color: var(--ice); }
.call-note.is-err { color: #f0b3c0; }

/* ---- escalation (§7) ---- */
.sec--owner { padding-top: 0; }
.owner-panel { padding: clamp(2rem, 5vw, 3.5rem); text-align: left; max-width: 52rem; margin-inline: auto; }
.owner-h {
    font-family: var(--font-display); font-weight: 340;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 1.1rem;
}
.owner-body { color: var(--text-dim); max-width: 62ch; }

/* ---- journal ---- */
.journal-list { display: grid; gap: 0.9rem; max-width: 52rem; }
.journal-row {
    display: grid; gap: 0.3rem 1.4rem; align-items: center;
    grid-template-columns: 1fr auto;
    padding: 1.3rem 1.6rem;
}
.journal-date { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice); }
.journal-h { font-family: var(--font-display); font-size: 1.35rem; font-weight: 380; }
.journal-row .arrow { color: var(--ice); }
.prose--article { max-width: 42rem; margin-inline: auto; }
.prose--article h2 { font-family: var(--font-display); font-weight: 380; font-size: 1.6rem; margin: 2.2rem 0 0.9rem; }
.prose--article ul, .prose--article ol { color: var(--text-dim); margin: 0 0 1.35rem 1.3rem; }

.empty-state { text-align: center; padding-block: 3rem; }
.empty-mark { font-family: var(--font-display); font-style: italic; font-size: 2.4rem; color: var(--ice-dim); margin-bottom: 0.6rem; }
.empty-line { color: var(--text-faint); }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { border-top: 1px solid var(--line-soft); padding-block: 3rem 3.4rem; }
.foot-row { display: grid; gap: 1.4rem; justify-items: start; }
@media (min-width: 48rem) { .foot-row { grid-template-columns: 1fr auto 1fr; align-items: center; } .foot-fine { justify-self: end; } }
.wordmark--small .wordmark-name { font-size: 1.1rem; }
.foot-nav { display: flex; gap: 1.6rem; }
.foot-nav a { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); transition: color 0.3s; }
.foot-nav a:hover { color: var(--text); }
.foot-fine { font-size: 0.85rem; color: var(--text-faint); }

/* ============================================================
   Reveal on scroll (JS adds .in; hidden only when .js present)
   ============================================================ */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv:nth-child(2) { transition-delay: 0.08s; }
.js .rv:nth-child(3) { transition-delay: 0.16s; }
.js .rv:nth-child(4) { transition-delay: 0.24s; }

/* ============================================================
   Reduced motion — everything still works, nothing moves
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
    .js .rv { opacity: 1; transform: none; }
    .sky-layer { transform: none !important; }
}

/* Register shimmer coords so they interpolate (Safari 16.4+/modern) */
@property --mx { syntax: "<percentage>"; inherits: false; initial-value: 50%; }
@property --my { syntax: "<percentage>"; inherits: false; initial-value: -20%; }

/* ============================================================
   ALIVE PASS — motion layer
   ============================================================ */

/* -- always-on border sheen: a slow conic light circles every shim -- */
@property --rot { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.shim::before {
    background:
        radial-gradient(260px circle at var(--mx, 50%) var(--my, -20%),
            rgba(220, 241, 255, 0.95) 0%,
            rgba(159, 217, 255, 0.45) 28%,
            rgba(122, 92, 255, 0.28) 55%,
            rgba(122, 92, 255, 0.13) 100%),
        conic-gradient(from var(--rot),
            rgba(220, 241, 255, 0.5) 0deg, rgba(122, 92, 255, 0.1) 60deg,
            rgba(122, 92, 255, 0.1) 300deg, rgba(220, 241, 255, 0.5) 360deg);
    animation: rot-sweep 9s linear infinite;
}
@keyframes rot-sweep { to { --rot: 360deg; } }

/* -- hero image layer (stock photography, duotoned into the night) -- */
.hero-img-wrap { position: absolute; inset: -12% 0; overflow: hidden; }
.hero-img {
    width: 100%; height: 100%; object-fit: cover;
    opacity: 0.52; filter: saturate(0.72) contrast(1.06) brightness(0.9);
    animation: kenburns 38s ease-in-out infinite alternate;
    will-change: transform;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.11) translateY(-1.6%); } }
.hero-tint {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 7, 20, 0.66) 0%, rgba(13, 9, 25, 0.34) 42%, var(--bg-0) 97%),
        radial-gradient(120% 85% at 72% 8%, rgba(67, 46, 168, 0.38) 0%, transparent 60%),
        radial-gradient(90% 70% at 10% 30%, rgba(10, 7, 20, 0.45) 0%, transparent 60%);
}

/* -- a call travelling the horizon line -- */
.sky-horizon::after {
    content: ""; position: absolute; top: -1.5px; height: 4px; width: 150px;
    left: -12%;
    background: linear-gradient(90deg, transparent, rgba(220, 241, 255, 0.95), transparent);
    border-radius: 4px;
    animation: line-travel 6.5s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
@keyframes line-travel {
    0%   { left: -12%; opacity: 0; }
    10%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: 106%; opacity: 0; }
}

/* -- night air: drifting star specks in the hero -- */
.stars { position: absolute; inset: 0; }
.stars i {
    position: absolute; width: 3px; height: 3px; border-radius: 50%;
    background: var(--ice-bright);
    opacity: 0;
    animation: twinkle 7s ease-in-out infinite;
    box-shadow: 0 0 8px 1px rgba(159, 217, 255, 0.55);
}
.stars i:nth-child(1) { top: 22%; left: 12%; animation-delay: 0s;   transform: scale(0.8); }
.stars i:nth-child(2) { top: 14%; left: 38%; animation-delay: 1.6s; transform: scale(0.55); }
.stars i:nth-child(3) { top: 30%; left: 63%; animation-delay: 3.1s; transform: scale(1); }
.stars i:nth-child(4) { top: 12%; left: 82%; animation-delay: 2.2s; transform: scale(0.7); }
.stars i:nth-child(5) { top: 42%; left: 88%; animation-delay: 4.4s; transform: scale(0.5); }
.stars i:nth-child(6) { top: 48%; left: 28%; animation-delay: 5.3s; transform: scale(0.65); }
.stars i:nth-child(7) { top: 8%;  left: 55%; animation-delay: 3.9s; transform: scale(0.9); }
@keyframes twinkle {
    0%, 100% { opacity: 0; }
    20%      { opacity: 0.9; }
    45%      { opacity: 0.25; }
    70%      { opacity: 0.7; }
}

/* -- staggered word rise + travelling sheen on hero headlines -- */
.hero-h.split { background: none; -webkit-text-fill-color: currentcolor; color: var(--text); animation: none; }
.hero-h.split .w {
    display: inline-block;
    background: linear-gradient(115deg, var(--text) 55%, var(--ice-bright) 82%, var(--text) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    opacity: 0; transform: translateY(0.55em); filter: blur(7px);
    animation:
        word-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(0.12s + var(--wi) * 0.07s) forwards,
        hero-sheen 8s ease-in-out calc(var(--wi) * 0.3s) infinite;
}
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }

/* -- language ticker: the line speaks every language -- */
.ticker {
    overflow: hidden; position: relative;
    border-block: 1px solid var(--line-soft);
    padding-block: 1.05rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker-run 42s linear infinite; }
.ticker-group { display: flex; align-items: center; }
.ticker-group span {
    font-family: var(--font-display); font-style: italic; font-weight: 300;
    font-size: clamp(1rem, 1.6vw, 1.25rem); white-space: nowrap;
    color: var(--text-faint); padding-inline: 1.9rem;
}
.ticker-group span:nth-child(odd) { color: var(--text-dim); }
.tick-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ice-dim); flex: none; }
@keyframes ticker-run { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* -- voice waveform ornament -- */
.wave { display: inline-flex; align-items: center; gap: 4px; height: 26px; }
.wave i {
    width: 3px; border-radius: 3px; background: var(--ice);
    box-shadow: 0 0 8px rgba(159, 217, 255, 0.45);
    animation: wave-bar 1.5s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 32%; animation-delay: 0s; }
.wave i:nth-child(2) { height: 65%; animation-delay: 0.15s; }
.wave i:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.wave i:nth-child(4) { height: 55%; animation-delay: 0.45s; }
.wave i:nth-child(5) { height: 80%; animation-delay: 0.6s; }
.wave i:nth-child(6) { height: 40%; animation-delay: 0.75s; }
@keyframes wave-bar { 0%, 100% { transform: scaleY(0.45); opacity: 0.6; } 50% { transform: scaleY(1); opacity: 1; } }
.call-form .wave { margin-bottom: 1.1rem; }

/* -- cursor glow: the room notices you (desktop only, JS-attached) -- */
.cursor-glow {
    position: fixed; top: 0; left: 0; z-index: 1;
    width: 620px; height: 620px; border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(159, 217, 255, 0.055) 0%, rgba(122, 92, 255, 0.035) 35%, transparent 62%);
    mix-blend-mode: screen;
    will-change: transform;
}

/* -- breathing light on the primary CTAs -- */
.nav-cta, .call-submit, .btn--ice { animation: breath 4.5s ease-in-out infinite; }
@keyframes breath {
    0%, 100% { box-shadow: 0 0 22px rgba(159, 217, 255, 0.2); }
    50%      { box-shadow: 0 0 42px rgba(159, 217, 255, 0.45); }
}

/* -- hairlines draw themselves in on reveal -- */
.js .rv .sec-mark::after, .js .rv.sec-side .sec-mark::after, .js .eyebrow.rv::before {
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
.js .rv.in .sec-mark::after, .js .eyebrow.rv.in::before { transform: scaleX(1); }

/* -- capability icons -- */
.cap-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.9rem; height: 2.9rem; flex: none;
    border-radius: 14px;
    color: var(--ice);
    background: rgba(159, 217, 255, 0.06);
    border: 1px solid var(--line);
    box-shadow: inset 0 0 18px rgba(122, 92, 255, 0.12);
}
.cap-ico svg { width: 1.35rem; height: 1.35rem; }
.cap-card .cap-top { display: flex; align-items: center; justify-content: space-between; }
.cap-card:hover .cap-ico { color: var(--ice-bright); border-color: var(--ice-dim); box-shadow: inset 0 0 22px rgba(159, 217, 255, 0.2), 0 0 18px rgba(159, 217, 255, 0.15); transition: all 0.4s ease; }
.hero .cap-ico { width: 3.4rem; height: 3.4rem; margin-bottom: 1.3rem; }
.hero .cap-ico svg { width: 1.6rem; height: 1.6rem; }
@media (max-width: 48rem) { .cap-row .cap-ico { display: none; } }

/* -- journal cards with imagery -- */
.journal-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .journal-grid { grid-template-columns: repeat(3, 1fr); } }
.journal-card { display: flex; flex-direction: column; overflow: hidden; }
.jc-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; position: relative; }
.jc-media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(67, 46, 168, 0.18), rgba(10, 7, 20, 0.42));
    transition: opacity 0.5s ease;
}
.journal-card:hover .jc-media::after { opacity: 0.4; }
.jc-media img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(0.8);
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}
.journal-card:hover .jc-media img { transform: scale(1.06); filter: saturate(1); }
.jc-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.jc-h { font-family: var(--font-display); font-weight: 380; font-size: 1.35rem; line-height: 1.18; }
.jc-sum { color: var(--text-dim); font-size: 0.94rem; flex: 1; }
.jc-body .cap-link { padding-top: 0.7rem; }

/* -- tilt shells (JS drives transform on hover-capable devices) -- */
.tilt { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); transform-style: preserve-3d; }

/* -- calm it all down when asked -- */
@media (prefers-reduced-motion: reduce) {
    .hero-h.split .w { opacity: 1; transform: none; filter: none; }
    .ticker-track { animation: none; }
    .cursor-glow { display: none; }
}

/* -- split hero for capability sub-pages -- */
.hero--split { align-items: center; padding-top: 8rem; }
.hero-split-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 60rem) { .hero-split-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); gap: 4rem; } }
.hero-media { margin: 0; overflow: hidden; aspect-ratio: 4 / 3; }
.hero-media img {
    width: 100%; height: 100%; object-fit: cover;
    border-radius: inherit;
    filter: saturate(0.85);
    animation: kenburns 34s ease-in-out infinite alternate;
}

/* -- framed media at the top of a journal article -- */
.sec--post { padding-top: clamp(3rem, 7vw, 5rem); }
.article-media { margin: 0 auto clamp(2.5rem, 5vw, 4rem); max-width: 52rem; aspect-ratio: 21 / 10; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: saturate(0.85); }
.post-foot { max-width: 42rem; margin: 3rem auto 0; }

/* -- fleshed sub-pages: walk-through steps, fact list, ownership story -- */
.sec--subpage { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec--scene { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.walk-steps { list-style: none; counter-reset: none; display: grid; gap: 1rem; margin-top: 2.2rem; max-width: 46rem; }
.walk-steps li { position: relative; padding: 1.25rem 1.5rem 1.3rem 4.8rem; }
.walk-num {
    position: absolute; left: 1.5rem; top: 1.15rem;
    font-family: var(--font-display); font-style: italic; font-weight: 300;
    font-size: 1.7rem; color: var(--ice); opacity: 0.85;
}
.walk-t { display: block; font-family: var(--font-display); font-weight: 380; font-size: 1.18rem; margin-bottom: 0.35rem; }
.walk-d { color: var(--text-dim); font-size: 0.97rem; line-height: 1.6; }

.fact-list { list-style: none; display: grid; gap: 0.85rem; margin-top: 2.2rem; grid-template-columns: 1fr; max-width: 52rem; }
@media (min-width: 48rem) { .fact-list { grid-template-columns: 1fr 1fr; } }
.fact-list li { display: flex; align-items: flex-start; gap: 0.85rem; padding: 1.05rem 1.25rem; color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }

.sec--story { position: relative; overflow: clip; }
.story-glow {
    position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(55% 50% at 50% 115%, rgba(122, 92, 255, 0.22) 0%, transparent 70%);
}
.story-panel { max-width: 52rem; }
.story-panel .owner-body { font-size: 1.05rem; line-height: 1.75; }
.sec--suborbit { padding-top: 0; }
@media (max-width: 40rem) {
    .walk-steps li { padding: 1.1rem 1.1rem 1.15rem 3.6rem; }
    .walk-num { left: 1.05rem; font-size: 1.4rem; }
}
