/* MagicGlass — Apple-esque product page.
   Black "Pro" treatment: typography-led, system-font stack, one accent,
   flat bento cards, hairline borders, thin ribbon nav. This deliberately
   departs from the ember/gold PyroSoft house style — the visual system is
   Apple product-page language; the flame accent is what remains of the brand.

   The hero is still a live demo: site.js maps the visitor's pointer onto a
   photographed hand and the macOS cursor rides directly under the fingertip. */

:root {
    --bg: #000;
    --panel: #161617;          /* bento card */
    --panel-2: #1d1d1f;
    --line: rgba(255, 255, 255, 0.10);
    --hairline: rgba(255, 255, 255, 0.16);
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --dim: #86868b;
    --accent: #ff5b04;         /* the flame, flattened to one Apple-style accent */
    --accent-soft: #ff8a3d;
    --ember: var(--accent);
    --ember-2: var(--accent-soft);
    --gold: #ffb340;           /* marker/diagram highlight — SF orange-yellow */
    --blue: #2997ff;           /* Apple system blue */
    --green: #30d158;          /* Apple system green */
    --amber: #ffd60a;          /* Apple system yellow — right-click */
    --radius: 28px;
    --pill: 980px;
    --max: 1040px;
    --max-wide: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.47;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 0 0 12px 0;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------ ribbon nav --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    height: 48px;
    padding: 0 max(22px, calc((100% - var(--max-wide)) / 2));
    background: rgba(18, 18, 19, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand, .site-nav { display: flex; align-items: center; }

.brand {
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.brand-mark { display: block; width: 22px; height: 22px; border-radius: 5px; }

.site-nav { gap: 26px; font-size: 0.78rem; }
.site-nav a {
    color: #d6d6d6;
    text-decoration: none;
    transition: color 160ms ease;
}
.site-nav a:hover, .site-nav a:focus-visible { color: #fff; outline: none; }
.site-nav .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: var(--pill);
    color: #fff;
    font-weight: 600;
    background: var(--accent);
    white-space: nowrap;
}
.nav-cta .dot { background: #fff; width: 0.4rem; height: 0.4rem; margin-right: 0; }

.dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
    margin-right: 0.5rem;
    vertical-align: 0.05em;
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.78); }
}

/* ------------------------------------------------------------- structure --- */
section, .site-footer {
    width: min(var(--max), calc(100% - 44px));
    margin-inline: auto;
}
section { margin-bottom: 150px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.018em; line-height: 1.04; }
h1 {
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 7vw, 6rem);
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.7rem); font-weight: 600; line-height: 1.14; margin-bottom: 12px; letter-spacing: -0.015em; }

/* The gradient word — Apple's signature headline move, in the flame's colors. */
h1 span, h2 em {
    display: inline;
    font-style: normal;
    background: linear-gradient(92deg, var(--accent-soft) 0%, var(--accent) 55%, #ff3b30 110%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
h1 span { display: block; }
h3 em, .section-copy p em { font-style: normal; color: var(--text); }

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-soft);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.hero-lede, .section-copy p, .center-copy p, .download-cta p, .technology-teaser p {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.42;
}
.section-copy p strong, .center-copy p strong { color: var(--text); font-weight: 600; }

.center-copy {
    max-width: 780px;
    margin: 0 auto 56px;
    text-align: center;
}

.aside {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.98rem !important;
}
.aside strong { color: var(--text); }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
}

/* --------------------------------------------------------------- buttons --- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: var(--pill);
    font-size: 1.02rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.button-primary {
    color: #fff;
    background: var(--accent);
}
.button-primary:hover, .button-primary:focus-visible { background: #ff6f26; outline: none; }
.button-secondary {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
}
.button-secondary:hover, .button-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

/* ------------------------------------------------------------------ hero --- */
/* Apple hero: statement on top, product below, everything centered. */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 92px 0 0;
    margin-bottom: 150px;
}
.hero-copy { display: contents; }
.hero-lede { max-width: 640px; margin-bottom: 12px; }
.hero-sub {
    max-width: 640px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.hero-nos, .nos-line, .deps-line {
    color: var(--text);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.hero-nos { margin-bottom: 30px; }
.nos-line { margin-bottom: 10px; }
.deps-line { margin: 4px 0 0; color: var(--accent-soft); font-size: 1.05rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 30px;
    order: 5;               /* pills sit under the scene */
}
.hero-proof span, .tech-pill-grid span {
    border: 1px solid #424245;
    border-radius: var(--pill);
    padding: 7px 14px;
    color: var(--muted);
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
}
.hero-proof .proof-lead { color: var(--text); border-color: var(--accent); }

/* ------------------------------------------------------------ live demo ---- */
.demo-stage {
    position: relative;
    order: 4;
    width: min(1080px, 100%);
    margin-top: 44px;
}
.demo-stage svg { display: block; width: 100%; height: auto; touch-action: pan-y; }

/* SVG circles scale around the CANVAS origin unless told otherwise, which
   turned this dot's pulse into a diagonal wander across the window. fill-box
   pins the transform to the dot itself so it breathes in place. */
.win-live, .m-live, .hud-rec { transform-box: fill-box; transform-origin: center; }
.win-live { animation: pulse 2.4s ease-in-out infinite; }

.dm-ring { stroke: var(--accent); transition: stroke 140ms ease; }
.dm-shadow { transition: opacity 140ms ease; }
.dm-handimg { filter: drop-shadow(-14px 20px 22px rgba(0, 0, 0, 0.55)); }
.dm-ripple { opacity: 0; }
.dm-rippleg { transform-box: fill-box; transform-origin: center; }

.is-press .dm-ring { stroke: var(--green); }
.is-press .dm-shadow { opacity: .45; }
.is-press .dm-rippleg { animation: dm-ripple 520ms ease-out; }
@keyframes dm-ripple {
    0% { transform: scale(.6); }
    100% { transform: scale(2.1); }
}
.is-press .dm-ripple { animation: dm-ripple-fade 520ms ease-out; }
@keyframes dm-ripple-fade {
    0% { opacity: .9; }
    100% { opacity: 0; }
}

.demo-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 14px;
    order: 4;
}
.dc-state {
    padding: 5px 14px;
    border-radius: var(--pill);
    border: 1px solid rgba(255, 91, 4, 0.55);
    color: var(--accent-soft);
    font-size: 0.8rem;
    font-weight: 600;
}
.dc-press { display: none; border-color: rgba(48, 209, 88, 0.55); color: var(--green); }
.is-press .dc-hover { display: none; }
.is-press .dc-press { display: inline-block; }
.dc-note { color: var(--dim); font-size: 0.8rem; font-weight: 500; }

.demo-try {
    display: none;
    margin: 8px 0 0;
    text-align: center;
    color: var(--dim);
    font-size: 0.8rem;
    font-weight: 500;
    order: 4;
}
@media (hover: hover) and (pointer: fine) {
    .demo-try { display: block; }
}

.view-cone { opacity: .9; }

/* ------------------------------------------------------------ bento cards --- */
.product-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
}
.product-frame svg { display: block; width: 100%; height: auto; }
.diagram { padding: 10px; }

.workflow-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
/* Four steps read as a 2x2 bento, never 3+1 with an orphan. */
@media (min-width: 700px) {
    .workflow-grid { grid-template-columns: repeat(2, 1fr); }
}
.feature-card, .stack-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    background: var(--panel);
}
.feature-card p, .stack-card p { color: var(--muted); }
.feature-card p:last-child, .stack-card p:last-child { margin-bottom: 0; }

.mini {
    position: relative;
    margin: -12px -12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    background: #0a0a0b;
    overflow: hidden;
}
.mini svg { display: block; width: 100%; height: auto; }
.mini-num {
    position: absolute;
    top: 10px; left: 14px;
    color: var(--dim);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.m-live { animation: pulse 2s ease-in-out infinite; }
.m-pill { opacity: 0; animation: m-appear 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.m-link { stroke-dasharray: 4 5; opacity: 0; animation: m-link 6s ease-in-out infinite; }
@keyframes m-appear { 0%, 18% { opacity: 0; transform: scale(.92); } 30%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
@keyframes m-link   { 0%, 8%  { opacity: 0; } 22%, 84% { opacity: .9; } 100% { opacity: 0; } }

/* step 04 mini: cursor wanders the little screen and clicks twice per loop.
   The base transform is the reduced-motion still. */
.m-touch { transform: translate(112px, 76px); animation: m-move 7s ease-in-out infinite; }
@keyframes m-move {
    0%   { transform: translate(150px, 34px); }
    28%  { transform: translate(184px, 58px); }
    42%  { transform: translate(184px, 58px); }
    70%  { transform: translate(112px, 76px); }
    82%  { transform: translate(112px, 76px); }
    100% { transform: translate(150px, 34px); }
}
.m-ripple-g { transform-box: fill-box; transform-origin: center; animation: m-click 7s ease-out infinite; }
.m-ripple { opacity: 0; animation: m-click-fade 7s ease-out infinite; }
@keyframes m-click      { 28%, 70% { transform: scale(.5); } 36%, 78% { transform: scale(1.9); } }
@keyframes m-click-fade { 28%, 70% { opacity: .9; } 36%, 42%, 78%, 84% { opacity: 0; } }

/* ---------------------------------------------------- split / showcase ----- */
.split-section {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    gap: 56px;
    align-items: center;
}
.sticky-copy { position: sticky; top: 96px; }

.showcase-stack { display: grid; gap: 110px; }
.showcase-row {
    display: grid;
    grid-template-columns: minmax(300px, 0.92fr) minmax(360px, 1.08fr);
    gap: 56px;
    align-items: center;
}
.showcase-row.reverse .section-copy { order: 2; }

/* -------------------------------------------------------- tech + hardware -- */
.technology-teaser {
    display: grid;
    gap: 28px;
    padding: 56px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}
.tech-pill-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
    gap: 16px;
}
.stack-card h3 { font-size: 1.22rem; }

/* -------------------------------------------------------------- final CTA -- */
.download-cta {
    text-align: center;
    padding: 90px 32px;
    border-radius: var(--radius);
    background: var(--panel);
    border: 1px solid var(--line);
}
.download-cta p { max-width: 560px; margin: 0 auto 26px; }
.download-cta .hero-actions { justify-content: center; }

.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 28px 0 40px;
    color: var(--dim);
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .credit { font-size: 0.72rem; }

/* ------------------------------------------------------- scroll reveals ---- */
.section-reveal { opacity: 0; transform: translateY(22px); }
.section-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.25, 1, 0.4, 1);
}

/* ====================================================== copy components ===== */
.card-kicker {
    margin: 0 0 6px;
    color: var(--accent-soft);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
}
.stack-card .card-kicker:not(:first-child) { margin-top: 18px; }

.accent-card { background: var(--panel-2); }
.accent-card .card-kicker { font-size: 1.35rem; color: var(--text); font-weight: 700; letter-spacing: -0.015em; }
.accent-card p:last-child { margin-bottom: 0; color: var(--muted); }

.stack-grid-top { margin-top: 16px; }

.section-note {
    max-width: 700px;
    margin: 30px auto 0;
    text-align: center;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.tick-list { margin: 0 0 14px; padding: 0; list-style: none; color: var(--muted); }
.tick-list li { position: relative; padding-left: 20px; margin-bottom: 6px; }
.tick-list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 0.62em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.tick-list strong { color: var(--text); }

.qpair {
    margin: 20px 0;
    display: grid;
    gap: 1px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--line);
}
.qpair p { margin: 0; padding: 14px 18px; background: var(--panel); font-size: 0.98rem !important; }
.q-from { color: var(--dim) !important; }
.q-to { color: var(--text) !important; background: var(--panel-2) !important; }
.q-to strong { color: var(--accent-soft); }

.wide-note {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 36px 40px;
    background: var(--panel);
}
.wide-note h3 { margin-bottom: 12px; }
.wide-note p { color: var(--muted); max-width: 76ch; }
.wide-note p:last-child { margin-bottom: 0; }

.gesture-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.gesture-card h3 { margin-bottom: 8px; }
.gesture-card p:last-child { margin-bottom: 0; }

/* =============================================================== diagrams == */
.fid-outer { fill: none; stroke: var(--gold); stroke-width: 2.4; }
.fid-inner { fill: var(--gold); }
.fid {
    opacity: .3;
    animation: fid-read 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * .22s);
    transform-box: fill-box;
    transform-origin: center;
}
@keyframes fid-read {
    0%, 4% { opacity: .3; }
    9%, 26% { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,179,64,.85)); }
    34%, 100% { opacity: .55; filter: none; }
}
.quad-skew, .quad-true {
    fill: rgba(255, 138, 61, .07);
    stroke: var(--accent-soft);
    stroke-width: 1.4;
    stroke-dasharray: 5 5;
    opacity: 0;
}
.quad-skew { stroke: var(--blue); fill: rgba(41,151,255,.06); animation: quad-seen 6s ease-in-out infinite; }
.quad-true { animation: quad-lock 6s ease-in-out infinite; }
@keyframes quad-seen { 0%, 22% { opacity: 0; } 27%, 36% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes quad-lock { 0%, 38% { opacity: 0; } 46%, 92% { opacity: 1; } 100% { opacity: 0; } }

.gesture-stage { --beat: 9s; }
.g-btn { fill: rgba(255,255,255,.07); stroke: rgba(255,255,255,.16); }

.gi-halo { fill: var(--accent); opacity: .13; animation: gi-hue var(--beat) steps(1,end) infinite, gi-pulse 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.gi-ring { fill: none; stroke: var(--accent); stroke-width: 2.5; animation: gi-hue-stroke var(--beat) steps(1,end) infinite; }
.gi-core { fill: var(--accent); animation: gi-hue var(--beat) steps(1,end) infinite; }
.gi-second { opacity: 0; animation: gi-two var(--beat) steps(1,end) infinite; }
.gi-core2 { fill: var(--amber); }

@keyframes gi-hue        { 0%, 32% { fill: var(--accent); } 33%, 65% { fill: var(--green); } 66%, 100% { fill: var(--amber); } }
@keyframes gi-hue-stroke { 0%, 32% { stroke: var(--accent); } 33%, 65% { stroke: var(--green); } 66%, 100% { stroke: var(--amber); } }
@keyframes gi-two   { 0%, 65% { opacity: 0; } 66%, 100% { opacity: 1; } }
@keyframes gi-pulse { 0%, 100% { transform: scale(1); opacity: .13; } 50% { transform: scale(1.16); opacity: .2; } }

.g-legend text { fill: var(--dim); font-family: inherit; font-size: 13px; font-weight: 600; }
.lg circle { fill: rgba(255,255,255,.16); }
.lg-hover circle { animation: lg-a var(--beat) steps(1,end) infinite; }
.lg-press circle { animation: lg-b var(--beat) steps(1,end) infinite; }
.lg-right circle { animation: lg-c var(--beat) steps(1,end) infinite; }
@keyframes lg-a { 0%, 32% { fill: var(--accent); } 33%, 100% { fill: rgba(255,255,255,.16); } }
@keyframes lg-b { 0%, 32% { fill: rgba(255,255,255,.16); } 33%, 65% { fill: var(--green); } 66%, 100% { fill: rgba(255,255,255,.16); } }
@keyframes lg-c { 0%, 65% { fill: rgba(255,255,255,.16); } 66%, 100% { fill: var(--amber); } }

.homography-svg { --beat: 6s; }
.hud-rec { animation: pulse 1.6s ease-in-out infinite; }
.hg-skew { fill: rgba(41,151,255,.06); stroke: var(--blue); stroke-width: 1.6; }
.hg-rect { fill: rgba(255,179,64,.06); stroke: var(--gold); stroke-width: 1.6; }
.hg-c { fill: var(--gold); animation: hg-pop var(--beat) ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes hg-pop { 0%, 10% { opacity: .3; r: 4; } 20%, 60% { opacity: 1; r: 6; } 80%, 100% { opacity: .5; r: 5; } }
.hg-links path {
    fill: none; stroke: var(--accent-soft); stroke-width: 1.4; stroke-dasharray: 4 5;
    opacity: 0;
    animation: hg-link var(--beat) ease-in-out infinite;
    animation-delay: calc(var(--i) * .3s + .3s);
}
@keyframes hg-link { 0%, 14% { opacity: 0; } 30%, 74% { opacity: .85; } 92%, 100% { opacity: 0; } }
.hg-labels text, .hg-h { fill: var(--dim); font-family: inherit; font-size: 12px; font-weight: 600; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.hg-h { fill: var(--accent-soft); font-size: 21px; font-style: italic; font-family: Georgia, serif; text-transform: none; letter-spacing: 0; }
.hg-tags text { fill: var(--gold); }

.hand-svg { --beat: 5s; }
.hs-bones path { fill: none; stroke: rgba(255,255,255,.20); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hs-bones path.hot { stroke: rgba(255,138,61,.7); }
.hs-joints .j { fill: rgba(255,255,255,.42); animation: j-pop var(--beat) ease-out infinite; animation-delay: calc(var(--i) * .055s); transform-box: fill-box; transform-origin: center; }
.hs-joints .j.hot { fill: var(--accent-soft); }
.hs-joints .j.tip { fill: var(--gold); }
@keyframes j-pop {
    0% { opacity: 0; transform: scale(.2); }
    12%, 84% { opacity: 1; transform: scale(1); }
    100% { opacity: .85; transform: scale(1); }
}
.hs-cap { fill: var(--dim); font-family: inherit; font-size: 12.5px; font-weight: 600; text-anchor: middle; letter-spacing: .07em; text-transform: uppercase; }

.height-svg { --beat: 6s; }
.hv-plane { stroke: var(--gold); stroke-width: 2; opacity: .8; }
.hv-plane-label, .hv-span-label { fill: var(--dim); font-family: inherit; font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.hv-span-label { text-anchor: middle; }
.hv-finger { animation: hv-lift var(--beat) ease-in-out infinite; }
@keyframes hv-lift {
    0%, 18% { transform: translateY(4px); }
    50%, 68% { transform: translateY(-46px); }
    92%, 100% { transform: translateY(4px); }
}
.hv-bone { fill: none; stroke: var(--accent-soft); stroke-width: 3.2; stroke-linecap: round; }
.hv-j { fill: var(--accent-soft); }
.hv-tip { fill: var(--gold); }
.hv-drop { stroke: rgba(255,255,255,.24); stroke-width: 1.2; stroke-dasharray: 3 4; }
.hv-pt { fill: var(--blue); }
.hv-span { fill: none; stroke: var(--blue); stroke-width: 2; animation: hv-widen var(--beat) ease-in-out infinite; transform-box: fill-box; transform-origin: left center; }
@keyframes hv-widen {
    0%, 18% { transform: scaleX(.62); opacity: .6; }
    50%, 68% { transform: scaleX(1); opacity: 1; }
    92%, 100% { transform: scaleX(.62); opacity: .6; }
}
.hv-readout text { font-family: inherit; font-size: 15px; font-weight: 700; text-anchor: middle; letter-spacing: .05em; text-transform: uppercase; }
.hv-touch { fill: var(--green); animation: hv-a var(--beat) steps(1,end) infinite; }
.hv-lift  { fill: var(--dim);   animation: hv-b var(--beat) steps(1,end) infinite; }
@keyframes hv-a { 0%, 30% { opacity: 1; } 31%, 82% { opacity: 0; } 83%, 100% { opacity: 1; } }
@keyframes hv-b { 0%, 30% { opacity: 0; } 31%, 82% { opacity: 1; } 83%, 100% { opacity: 0; } }

.calib-svg { --beat: 7s; }
.ct-ring { fill: none; stroke: rgba(255,255,255,.20); stroke-width: 2; }
.ct-core { fill: rgba(255,255,255,.28); }
.cal-t { animation: cal-hit 7s ease-in-out infinite; animation-delay: calc(var(--i) * .28s); transform-box: fill-box; }
.cal-t .ct-ring { animation: cal-ring 7s ease-in-out infinite; animation-delay: calc(var(--i) * .28s); }
.cal-t .ct-core { animation: cal-core 7s ease-in-out infinite; animation-delay: calc(var(--i) * .28s); }
@keyframes cal-hit  { 0%, 100% { opacity: .55; } 6%, 40% { opacity: 1; } }
@keyframes cal-ring { 0%, 3% { stroke: rgba(255,255,255,.20); } 8%, 40% { stroke: var(--gold); } 60%, 100% { stroke: rgba(255,179,64,.42); } }
@keyframes cal-core { 0%, 3% { fill: rgba(255,255,255,.28); } 8%, 40% { fill: var(--gold); } 60%, 100% { fill: rgba(255,179,64,.5); } }
.cal-hover-path {
    fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round;
    stroke-dasharray: 340; stroke-dashoffset: 340;
    animation: cal-hover 7s ease-in-out infinite;
}
@keyframes cal-hover {
    0%, 42% { stroke-dashoffset: 340; opacity: 0; }
    48% { opacity: 1; }
    82%, 100% { stroke-dashoffset: 0; opacity: 1; }
}
.cal-cap { fill: var(--blue); font-family: inherit; font-size: 12.5px; font-weight: 600; text-anchor: middle; letter-spacing: .07em; text-transform: uppercase; }

/* ============================================================== responsive == */
@media (max-width: 980px) {
    .split-section, .showcase-row, .showcase-row.reverse { grid-template-columns: 1fr; }
    .hero { padding-top: 64px; }
    .showcase-row.reverse .section-copy { order: 0; }
    .sticky-copy { position: static; }
    h1 { font-size: clamp(2.8rem, 11vw, 4rem); }
    .showcase-stack { gap: 72px; }
    section { margin-bottom: 96px; }
    .stack-grid { grid-template-columns: 1fr; }
    .technology-teaser { padding: 32px 24px; }
}

@media (max-width: 720px) {
    .site-nav { gap: 14px; }
    .site-nav a:not(.nav-cta) { display: none; }   /* Apple collapses to essentials */
    .download-cta { padding: 56px 20px; }
    .site-footer { flex-direction: column; align-items: flex-start; }
}

/* Motion is decorative — every scene is legible at rest. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    .section-reveal { opacity: 1; transform: none; }
    .fid, .cal-t, .hs-joints .j, .hg-c { opacity: 1; }
    .quad-true, .hg-links path { opacity: .9; }
    .cal-hover-path { stroke-dashoffset: 0; opacity: 1; }
    .quad-skew, .hv-lift { opacity: 0; }
    .m-pill, .m-link { opacity: 1; }
    .m-ripple { opacity: .5; }
    .m-ripple-g { transform: scale(1.2); }
    .gi-halo, .gi-core { fill: var(--accent); }
    .gi-ring { stroke: var(--accent); }
    .gi-second { opacity: 0; }
    .lg-hover circle { fill: var(--accent); }
}
