:root {
    color-scheme: dark;
    --page: #080e16;
    --surface: #101b29;
    --ink: #f3f7fb;
    --muted: #bac8d5;
    --line: #26384a;
    --accent: #a1e8fc;
    --button-ink: #08212c;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--page);
}

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

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 90% 0%, #122d43, transparent 41rem),
        radial-gradient(ellipse at 0% 72%, #21142e, transparent 32rem);
}

button, input { font: inherit; }
a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.shell {
    width: min(calc(100% - 5rem), 83rem);
    margin-inline: auto;
}

.masthead {
    position: relative;
    min-height: 5.5rem;
    padding: 1.25rem;
    display: grid;
    place-items: center;
    border-bottom: 1px solid var(--line);
    background: #080e168c;
}

.brand { display: block; }

.brand img {
    display: block;
    width: clamp(12rem, 17vw, 15rem);
    height: auto;
    filter: brightness(0) invert(1);
}

.motion-control {
    position: absolute;
    inset: 50% max(0.7rem, calc((100% - 83rem) / 2)) auto auto;
    display: grid;
    place-items: center;
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    transform: translateY(-50%);
    border: 1px solid #486278;
    border-radius: 0.4rem;
    background: #101b29e6;
    color: var(--accent);
    cursor: pointer;
}

.motion-control:hover { border-color: var(--accent); }
.motion-control svg { width: 1.25rem; height: 1.25rem; }
.motion-control[hidden], .motion-control[aria-pressed="true"] .motion-play,
.motion-control[aria-pressed="false"] .motion-pause { display: none; }

.particle-field {
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.page-particles { position: fixed; z-index: -1; }

.hero {
    margin-block: clamp(1.25rem, 3vw, 2.75rem) clamp(2rem, 4vw, 3.5rem);
}

.hero-home {
    display: grid;
    align-items: center;
    position: relative;
    z-index: 1;
    isolation: isolate;
    min-height: clamp(32rem, 43vw, 41rem);
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: #0b1420;
}

.hero-home::after,
.hero-error::after,
.applications-hud::after,
.scene-reticle {
    --bracket: linear-gradient(currentColor, currentColor);
    background:
        var(--bracket) left top / var(--corner) 1px no-repeat,
        var(--bracket) left top / 1px var(--corner) no-repeat,
        var(--bracket) right top / var(--corner) 1px no-repeat,
        var(--bracket) right top / 1px var(--corner) no-repeat,
        var(--bracket) left bottom / var(--corner) 1px no-repeat,
        var(--bracket) left bottom / 1px var(--corner) no-repeat,
        var(--bracket) right bottom / var(--corner) 1px no-repeat,
        var(--bracket) right bottom / 1px var(--corner) no-repeat;
    pointer-events: none;
}

.hero-home::after {
    --corner: 1rem;
    content: "";
    position: absolute;
    inset: 0.7rem;
    color: #a1e8fc73;
}

.scene {
    --scene-zoom: 1.035;
    position: absolute;
    z-index: -1;
    inset: 0;
    margin: 0;
    overflow: hidden;
    border-radius: inherit;
}

.scene-photo, .scene-photo img,
.scene::after, .scene-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.scene-photo {
    transform: translate(var(--shift-x, 0px), var(--shift-y, 0px)) scale(var(--scene-zoom));
    transition: transform 220ms ease-out;
}

.scene-photo img {
    object-fit: cover;
    object-position: 50% 30%;
}

.scene::after {
    content: "";
    background:
        linear-gradient(90deg, #0b1420 1%, #0b1420f7 23%, #0b1420dc 36%, #0b142044 60%, transparent 78%),
        linear-gradient(0deg, #080e16a6, transparent 30%);
    pointer-events: none;
}

.scene-grid {
    color: #bceaf61a;
    background-image: linear-gradient(currentColor 1px, transparent 1px), linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 3.75rem 3.75rem;
    mask-image: radial-gradient(ellipse at 86% 49%, #000 6%, transparent 65%);
    pointer-events: none;
}

.scene-particles {
    position: absolute;
    z-index: 1;
    mask-image: linear-gradient(90deg, #000 2%, #000 28%, #0005 65%, #0008 77%, #000 100%);
}

.scene-scan {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto 34%;
    height: 100%;
    opacity: 0;
    border-bottom: 1px solid #b8f4ff;
    background: linear-gradient(0deg, #9eedff3d, transparent 13%);
    mask-image: linear-gradient(90deg, transparent, #000 48%);
    pointer-events: none;
    animation: scan 3.8s ease-in-out both;
}

[data-motion="paused"] .scene-scan { animation: none; }
[data-motion="paused"] .scene-photo, [data-motion="paused"] .scene-reticle,
[data-motion="paused"] .scene-targets { transition: none; }

@keyframes scan {
    0% { transform: translateY(-100%); opacity: 0; }
    20%, 77% { opacity: 0.65; }
    100% { transform: translateY(0); opacity: 0; }
}

.scene-targets {
    --face-scan-duration: 5.2s;
    position: absolute;
    z-index: 1;
    inset: 0;
    transform: translate(var(--shift-x, 0px), var(--shift-y, 0px));
    transition: transform 220ms ease-out;
    pointer-events: none;
}

.scene-reticle {
    --corner: 25%;
    position: absolute;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.scene-face-reticle {
    top: var(--face-y);
    left: var(--face-x);
    width: var(--face-size);
    color: #7ae9ff;
    filter: drop-shadow(0 0 2px #003e54);
}

.scene-face-reticle:not(.is-primary) { visibility: hidden; }
.scene-face-reticle.is-cropped { opacity: 0; }

.scene-cursor-reticle {
    --corner: 0.75rem;
    z-index: 1;
    top: var(--target-y, 50%);
    left: var(--target-x, 50%);
    width: clamp(2.5rem, 5vw, 4.25rem);
    color: #dcfaff;
    opacity: 0;
    transition: top 150ms ease-out, left 150ms ease-out, opacity 150ms ease;
}

.scene-reticle::before,
.scene-reticle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.65rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.scene-reticle::after { transform: translate(-50%, -50%) rotate(90deg); }
.scene.is-tracking .scene-cursor-reticle { opacity: 1; }

@keyframes face-reticle-reveal {
    0%, 3%, 80%, 100% { clip-path: inset(0 0 100% 0); }
    15%, 75% { clip-path: inset(0); }
}

@keyframes face-reticle-scan {
    0%, 43%, 53%, 62%, 68% { opacity: 1; }
    48%, 57% { opacity: 0.3; }
    78%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    [data-motion="playing"] .scene-targets {
        animation: face-reticle-scan var(--face-scan-duration) ease-in-out infinite;
    }

    [data-motion="playing"] .scene-face-reticle {
        visibility: visible;
        animation: face-reticle-reveal var(--face-scan-duration) ease-in-out var(--face-delay, 0ms) infinite both;
    }
}

.scene figcaption {
    position: absolute;
    z-index: 1;
    right: 1.55rem;
    bottom: 1.35rem;
    margin: 0;
    padding: 0.4rem 0.6rem;
    border: 1px solid #c5f3ff3b;
    border-radius: 0.25rem;
    color: #ecfaff;
    background: #080e16d9;
    font: 0.75rem/1.25 Consolas, "Courier New", monospace;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-home .hero-copy {
    position: relative;
    z-index: 1;
    padding: clamp(2.25rem, 5.4vw, 5rem);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.2rem;
    color: var(--accent);
    font: 700 0.875rem/1.4 Consolas, "Courier New", monospace;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow::before, .eyebrow::after {
    flex: 0 0 var(--eyebrow-line-width, 1.75rem);
    height: 1px;
    background: currentColor;
    box-shadow: 0 0 0.65rem #7ddcfdb3;
}

.eyebrow::before { content: ""; }

h1 {
    margin: 0;
    font-size: clamp(3.7rem, 7.1vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.073em;
    line-height: 0.94;
}

h1 span { display: block; }

.hero-description {
    max-width: 26rem;
    margin: 1.45rem 0 0;
    color: var(--muted);
    font-size: clamp(1.125rem, 1.55vw, 1.375rem);
    line-height: 1.45;
    text-wrap: pretty;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 33rem;
    margin-top: 1.9rem;
}

.contact {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 4.55rem;
    padding: 0.6rem 0.75rem;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.contact::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(105deg, transparent 28%, #e5faff50 50%, transparent 72%);
    pointer-events: none;
}

.contact:is(:hover, :focus-visible)::before {
    transform: translateX(100%);
    transition: transform 460ms ease-out;
}

.contact:active { transform: translateY(1px) scale(0.985); }

.contact-primary {
    border-color: #c5f4ff;
    background: linear-gradient(118deg, #bbf2ff, #7ad6f1 82%);
    box-shadow: inset 0 1px #ffffff94, 0 6px 20px #5dcfea26;
    color: var(--button-ink);
}

.contact-primary:is(:hover, :focus-visible) {
    box-shadow: inset 0 1px #fff, 0 0 1.4rem #8be4ff59;
}

.contact-secondary {
    border-color: #536e87;
    background: linear-gradient(130deg, #1b3245, #0e1927 82%);
    box-shadow: inset 0 1px #e5faff15;
    cursor: pointer;
    list-style: none;
}

.contact-secondary::-webkit-details-marker { display: none; }

.contact-secondary:is(:hover, :focus-visible), .wechat[open]:not([data-collapsing]) .contact-secondary {
    border-color: var(--accent);
    box-shadow: inset 0 1px #e5faff24, 0 0 1.15rem #8be4ff24;
}

.contact-icon {
    width: 2.6rem;
    height: 2.6rem;
    display: grid;
    flex: none;
    place-items: center;
    border: 1px solid #9eeeff31;
    border-radius: 0.46rem;
    background: #a1e8fc11;
    color: var(--accent);
}

.contact-primary .contact-icon {
    border-color: #08212c4d;
    background: #0b2838;
    color: #c7f4ff;
}

.contact-icon svg, .action svg { width: 1.35rem; height: 1.35rem; }
.contact-text { display: grid; min-width: 0; gap: 0.2rem; }
.contact-label { font-size: 1.0625rem; font-weight: 700; }
.contact-value { font-size: 0.875rem; line-height: 1.2; color: var(--muted); }
.contact-primary .contact-value { color: #173b47; }
.wechat-value { font-size: 0.8125rem; overflow-wrap: anywhere; }

.contact-disclosure {
    position: relative;
    flex: 0 0 1.25rem;
    height: 1.25rem;
    margin-inline-start: auto;
    border: 1px solid #8fc8df45;
    border-radius: 0.3rem;
    color: var(--accent);
}

.contact-disclosure::before, .contact-disclosure::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.54rem;
    height: 1px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.contact-disclosure::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 200ms ease;
}

.wechat[open]:not([data-collapsing]) .contact-disclosure::after { transform: translate(-50%, -50%) rotate(0); }

.wechat { position: relative; min-width: 0; }

.wechat-reveal {
    position: absolute;
    z-index: 2;
    inset: 100% 0 auto auto;
    display: flex;
    flex-direction: column;
    width: min(20rem, calc(100vw - 3.5rem));
}

.wechat-reveal.is-sliding { overflow: clip; }

.wechat-panel {
    position: relative;
    flex: none;
    margin-top: 0.35rem;
    padding: 1rem;
    border: 1px solid #688fa8;
    border-radius: 0.75rem;
    background: linear-gradient(150deg, #1a2d40, #101b29 65%);
    box-shadow: inset 0 1px #b9edff2b, 0 14px 38px #03080ec9;
}

.wechat-panel label {
    color: #b5eafd;
    font: 700 0.8125rem/1.3 Consolas, "Courier New", monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wechat-panel input {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.65rem;
    border: 1px solid #58738c;
    border-radius: 0.4rem;
    background: #080e16b8;
    color: var(--ink);
}

.wechat-note, .copy-status {
    margin: 0.75rem 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.wechat-panel .copy-status { margin-bottom: 0; }
.copy-status:empty { margin: 0; }

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.875rem;
    padding: 0.65rem 1rem;
    border: 0;
    border-radius: 0.4rem;
    background: var(--accent);
    color: var(--button-ink);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms, box-shadow 160ms;
}

.action:hover {
    background: #c1f3ff;
    box-shadow: 0 0 1.1rem #8be4ff45;
}

.action[hidden] { display: none; }

.wechat-copy {
    --copy-background: linear-gradient(105deg, #b7f3ff, #7ad7f2);
    width: 100%;
    min-height: 3.125rem;
    border: 1px solid #bbf1ff;
    border-radius: 0.5rem;
    background: var(--copy-background);
    box-shadow: inset 0 1px #ffffff80;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.wechat-copy:is(:hover, :focus-visible) {
    background: var(--copy-background);
    box-shadow: inset 0 1px #fff, 0 0 1.2rem #8be4ff55;
}

.wechat-copy:active { transform: scale(0.985); }

.wechat-copy[data-copied] {
    --copy-background: #a1efda;
    border-color: #a1efda;
    box-shadow: inset 0 1px #ffffff80, 0 0 1.15rem #87e5cf33;
}

.copy-icon, .copy-check {
    transform-origin: center;
    transition: opacity 160ms ease, transform 200ms ease;
}

.copy-check, .wechat-copy[data-copied] .copy-icon {
    opacity: 0;
    transform: scale(0.72);
}

.wechat-copy[data-copied] .copy-check { opacity: 1; transform: scale(1); }

.wechat-copy[data-copied] + .copy-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.applications {
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
}

.applications-visual {
    position: relative;
    min-height: 19rem;
    overflow: hidden;
    background: #0b1420;
}

.applications-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.applications-hud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 100% 82%, #16658e3b, transparent 60%);
}

.applications-hud::after {
    --corner: 0.8rem;
    content: "";
    position: absolute;
    inset: 0.65rem;
    color: #a1e8fc9c;
}

.applications-hud .scene-grid {
    color: #9cecff26;
    background-size: 2.5rem 2.5rem;
    mask-image: linear-gradient(100deg, #000a, #0001 56%, #000b);
}

.applications-sweep {
    position: absolute;
    inset: 0 auto 0 0;
    width: 25%;
    opacity: 0;
    border-right: 1px solid #aff1ff;
    background: linear-gradient(90deg, transparent, #6ddcfa3d);
}

.applications-joint {
    position: absolute;
    top: var(--joint-y);
    left: var(--joint-x);
    width: var(--joint-size);
    aspect-ratio: 1;
    opacity: 0;
    transform: translate(-50%, -50%);
    border: 1px solid #93eeff8c;
    border-radius: 50%;
    box-shadow: inset 0 0 0.55rem #6bcdf538, 0 0 0.6rem #77e8ff51;
}

.applications-joint.is-visible { opacity: 1; }

.applications-joint::before, .applications-joint::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.applications-joint::before {
    inset: -0.34rem;
    border: 1px dashed #8fe8ff8c;
    opacity: 0.55;
}

.applications-joint::after {
    top: 50%;
    left: 50%;
    width: 0.25rem;
    height: 0.25rem;
    transform: translate(-50%, -50%);
    background: #b8f5ff;
    box-shadow: 0 0 0.5rem #7aeaff;
}

@keyframes cobot-sweep {
    0%, 8% { transform: translateX(-100%); opacity: 0; }
    18%, 51% { opacity: 0.8; }
    64%, 100% { transform: translateX(400%); opacity: 0; }
}

@keyframes cobot-joint-pulse {
    0%, 100% { opacity: 0; transform: scale(0.94); }
    15% { opacity: 0.55; transform: scale(1); }
    27% { opacity: 1; transform: scale(1.04); }
    52%, 99% { opacity: 0; transform: scale(1.24); }
}

@media (prefers-reduced-motion: no-preference) {
    [data-motion="playing"] .applications-visual[data-in-view] .applications-sweep {
        animation: cobot-sweep 5.2s ease-in-out infinite;
    }

    [data-motion="playing"] .applications-visual[data-in-view] .applications-joint::before {
        animation: cobot-joint-pulse 3.9s ease-out var(--joint-delay, 0ms) infinite;
    }
}

.applications-copy {
    padding: clamp(1.5rem, 4vw, 3.75rem);
    background: radial-gradient(ellipse at 100% 0%, #1b3a4b75, transparent 65%);
}

.applications h2 {
    margin: 0 0 clamp(2.125rem, 3.15vw, 2.6rem);
    font-size: clamp(1.7rem, 3.25vw, 3.125rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.applications ul {
    display: grid;
    gap: clamp(0.95rem, 1.35vw, 1.25rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.applications li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.applications li + li {
    padding-top: clamp(0.95rem, 1.4vw, 1.25rem);
    border-top: 1px solid var(--line);
}

.applications h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.application-description {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
}

.applications li > svg {
    box-sizing: content-box;
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    padding: 0.5rem;
    border: 1px solid #6bdaf24f;
    border-radius: 0.45rem;
    background: linear-gradient(145deg, #73d8f423, #1f3d502b);
    color: var(--accent);
}

.footer {
    margin-top: auto;
    padding-block: 1.75rem;
    color: var(--muted);
    text-align: center;
}

.footer small { font-size: 0.8125rem; }

.error-page {
    background:
        radial-gradient(ellipse at 88% 14%, #132e45, transparent 38rem),
        radial-gradient(ellipse at 5% 85%, #2c163a, transparent 36rem);
}

.hero-error {
    position: relative;
    display: grid;
    align-items: center;
    isolation: isolate;
    min-height: clamp(32rem, 43vw, 42rem);
    border: 1px solid #46506f;
    border-radius: 0.85rem;
    background: #0c1220;
    box-shadow: 0 0 3rem #7360d01a, 0 1.25rem 3rem #02040966;
}

.hero-error::after {
    --corner: 1rem;
    content: "";
    position: absolute;
    inset: 0.7rem;
    color: #b0ddfba8;
}

.error-visual {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.error-photo, .error-photo img, .error-visual::after {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.error-photo {
    transform: translate(var(--error-shift-x, 0px), var(--error-shift-y, 0px)) scale(1.04);
    transition: transform 240ms ease-out;
}

.error-photo img { object-fit: cover; object-position: 50% 33%; }

.error-visual::after {
    content: "";
    background:
        linear-gradient(90deg, #0c1220 1%, #0c1220f5 24%, #0c1220bd 40%, #0c122033 61%, transparent 81%),
        linear-gradient(0deg, #0b101ec9, transparent 36%);
}

.error-visual .error-grid {
    z-index: 1;
    color: #c7d4ff20;
    mask-image: radial-gradient(ellipse at 74% 61%, #000 12%, transparent 65%);
}

.error-radar {
    position: absolute;
    z-index: 1;
    top: 62%;
    left: 73%;
    width: clamp(9rem, 22vw, 20rem);
    aspect-ratio: 1;
    border: 1px solid #98eeff4d;
    border-radius: 50%;
    transform: translate(calc(-50% + var(--error-shift-x, 0px)), calc(-50% + var(--error-shift-y, 0px)));
    transition: transform 240ms ease-out;
    box-shadow: inset 0 0 1.2rem #71dfff16, 0 0 1.2rem #71dfff16;
}

.error-radar::before, .error-radar::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.error-radar::before {
    inset: -6%;
    border: 1px dashed #c5a2ff73;
}

.error-radar::after {
    inset: 5%;
    background: conic-gradient(from 28deg, #95eaff 0deg 47deg, transparent 48deg 162deg, #e28bea 163deg 222deg, transparent 223deg);
    mask-image: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
}

.error-beam {
    position: absolute;
    z-index: 1;
    inset: 0 0 auto 43%;
    height: 100%;
    opacity: 0;
    border-bottom: 1px solid #b2f5ff;
    background: linear-gradient(0deg, #6fdbff35, transparent 16%);
    mask-image: linear-gradient(90deg, transparent, #000 40%, #000 82%, transparent);
    transform: translateY(-100%);
}

.error-copy {
    position: relative;
    padding: clamp(2rem, 5.3vw, 4.65rem);
}

.error-loading {
    position: relative;
    width: 8.5rem;
    height: 0.44rem;
    margin-bottom: 1.6rem;
    overflow: hidden;
    background: #283346;
    mask-image: repeating-linear-gradient(90deg, #000 0 8px, transparent 8px 12px);
}

.error-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #c18aff, #8aecff);
}

.error-heading {
    display: grid;
    justify-items: start;
    gap: clamp(0.95rem, 1.5vw, 1.45rem);
}

.error-code {
    position: relative;
    color: #ebfaff;
    font-size: clamp(6.8rem, 14vw, 13rem);
    letter-spacing: -0.09em;
    line-height: 0.81;
    text-shadow: 0.025em 0 #65dfff65, -0.024em 0.01em #e781f25c, 0 0 0.24em #6fcafd3d;
}

.error-code::after {
    content: attr(data-code);
    position: absolute;
    inset: 0;
    color: #91edff;
    opacity: 0;
    clip-path: inset(61% 0 29%);
    pointer-events: none;
}

.error-title {
    font-size: clamp(2.25rem, 4.4vw, 4.2rem);
    letter-spacing: -0.048em;
    line-height: 1;
}

.error-description {
    max-width: 24.5rem;
    margin-top: 1.15rem;
    color: #c5cddb;
    font-size: clamp(1rem, 1.45vw, 1.25rem);
    line-height: 1.55;
    text-wrap: pretty;
}

.home-link {
    min-height: 3.2rem;
    margin-top: 1.55rem;
    padding-inline: 1.15rem;
    border: 1px solid #bfefff;
    background: linear-gradient(110deg, #bbf3ff, #8dcff9);
    box-shadow: 0 0.4rem 1.6rem #53c5f337;
}

[data-motion="paused"] .error-photo, [data-motion="paused"] .error-radar { transition: none; }

@keyframes error-boot {
    0% { clip-path: inset(0 100% 0 0); }
    45% { clip-path: inset(0 43% 0 0); }
    60% { clip-path: inset(0 43% 0 0); }
    100% { clip-path: inset(0); }
}

@keyframes error-sweep {
    0%, 9% { transform: translateY(-100%); opacity: 0; }
    24%, 49% { opacity: 0.7; }
    66%, 100% { transform: translateY(0); opacity: 0; }
}

@keyframes error-orbit { to { transform: rotate(360deg); } }

@keyframes error-split {
    0%, 17%, 28%, 100% { opacity: 0; transform: translateX(0); }
    20% { opacity: 0.57; transform: translateX(0.05em); }
    24% { opacity: 0.35; transform: translateX(-0.035em); }
}

@media (prefers-reduced-motion: no-preference) {
    [data-motion="playing"] .error-loading::after { animation: error-boot 1.6s ease-out both; }
    [data-motion="playing"] .error-beam { animation: error-sweep 5.8s ease-in-out infinite; }
    [data-motion="playing"] .error-radar::before { animation: error-orbit 27s linear infinite reverse; }
    [data-motion="playing"] .error-radar::after { animation: error-orbit 18s linear infinite; }
    [data-motion="playing"] .error-code::after { animation: error-split 6.1s ease-in-out infinite; }
}

@media (max-width: 65rem) {
    .shell { width: calc(100% - 3.5rem); }
    .contacts { grid-template-columns: minmax(0, 1fr); max-width: 18.5rem; }
    .wechat-reveal { inset-inline: 0 auto; }
    .error-radar { top: 58%; left: 76%; }
}

@media (max-width: 48rem) {
    .shell { width: calc(100% - 1.75rem); }
    .masthead { min-height: 4.4rem; padding: 1rem; }
    .hero-home { --scene-height: clamp(14.5rem, 60vw, 21rem); min-height: 0; padding-top: calc(var(--scene-height) - 1.15rem); }
    .hero-home::after { --corner: 0.75rem; inset: 0.45rem; }
    .hero-home .hero-copy { padding: 0 clamp(0.95rem, 5vw, 2rem) 1.6rem; }

    .scene { bottom: auto; height: var(--scene-height); border-radius: 0.85rem 0.85rem 0 0; }
    .scene-photo { transform: none; }
    .scene-photo img { object-position: 50% 15%; }
    .scene::after { background: linear-gradient(0deg, #0b1420 1%, #0b1420b3 15%, transparent 50%); }
    .scene-grid { background-size: 2.5rem 2.5rem; mask-image: radial-gradient(ellipse at 74% 45%, #000 5%, transparent 65%); }
    .scene-particles { mask-image: radial-gradient(ellipse at 50% 44%, #0004 16%, #0009 52%, #000 84%); }
    .scene-scan { left: 0; mask-image: none; }
    .scene figcaption {
        inset: 0.7rem 0.7rem auto auto;
        padding: 0.25rem 0.4rem;
        font-size: 0.625rem;
    }

    .eyebrow { --eyebrow-line-width: 1.15rem; margin-bottom: 0.8rem; font-size: 0.75rem; }

    .hero-home .eyebrow {
        --eyebrow-line-width: clamp(0.65rem, 3.5vw, 1.15rem);
        justify-content: center;
        gap: clamp(0.35rem, 2vw, 0.75rem);
        text-align: center;
    }

    .hero-home .eyebrow::after { content: ""; }

    .hero-home h1 {
        font-size: clamp(2.375rem, 9vw, 4.5rem);
        text-align: center;
    }

    .hero-description { margin-top: 0.95rem; }

    .hero-home .hero-description {
        margin-inline: auto;
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        text-align: center;
        text-wrap: balance;
    }

    .contacts { max-width: none; margin-top: 1.25rem; }
    .contact { min-height: 3.9rem; padding-block: 0.45rem; }

    .wechat-reveal {
        inset-block: auto calc(100% + 0.35rem);
        justify-content: flex-end;
    }

    .wechat-panel { margin-top: 0; }

    .applications { grid-template-columns: minmax(0, 1fr); }
    .applications-visual { min-height: 0; aspect-ratio: 1.65; }
    .applications-copy { padding: 1.25rem 1rem 1.5rem; }
    .applications h2 { text-wrap: pretty; }

    .hero-error {
        --error-art-height: clamp(14.75rem, 62vw, 22rem);
        min-height: 0;
        padding-top: calc(var(--error-art-height) - 0.95rem);
    }

    .hero-error::after { --corner: 0.75rem; inset: 0.45rem; }
    .error-visual { bottom: auto; height: var(--error-art-height); }
    .error-photo { transform: none; }
    .error-photo img { object-position: 50% 64%; }
    .error-visual::after { background: linear-gradient(0deg, #0c1220, #0c1220a8 19%, transparent 56%); }
    .error-visual .error-grid { mask-image: radial-gradient(ellipse at 48% 57%, #000 8%, transparent 68%); }
    .error-radar { top: 57%; left: 48%; width: clamp(7rem, 36vw, 13rem); }
    .error-beam { left: 0; }
    .error-copy { padding: 0 clamp(1rem, 5vw, 2.5rem) 1.8rem; text-align: center; }
    .error-loading { width: 6.25rem; margin: 0 auto 1rem; }
    .error-heading { justify-items: center; }
    .error-code { padding-right: 0.09em; font-size: clamp(5.5rem, 18vw, 8.5rem); }
    .error-title { font-size: clamp(1.9rem, 6.5vw, 3.3rem); }
    .error-description { margin-inline: auto; text-wrap: balance; }
}

@media (min-width: 33rem) and (max-width: 48rem) {
    .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wechat-reveal { inset-inline: auto 0; }
}

@media (max-width: 32.99rem) {
    .wechat-reveal { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .scene-scan { animation: none; }
    .scene-photo, .scene-reticle, .scene-targets, .error-photo, .error-radar, .contact, .contact-disclosure::after,
    .action, .copy-icon, .copy-check { transition: none; }
    .contact::before { display: none; }
    .contact:active, .wechat-copy:active { transform: none; }
}
