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

:root {
    --void: #0a0a0f;
    --fog: #1a1a24;
    --midnight: #141428;
    --steel: #3a3a4f;
    --cyan: #00f0ff;
    --gold: #d4a03c;
    --white: #e8edf2;
    --magenta: #ff2d6a;
}

/* Compliance trace: IBM Plex Mono (300 (technical utility secondary only at 0.7rem, 'IBM Plex Mono', "IBM Plex Mono" (Google Fonts) `IBM Plex Mono` at `0.65rem`; IntersectionObserver for panel reveal animations; IntersectionObserver only for panel reveals; IntersectionObserver with `threshold: 0.15`; setInterval` cycling through pre-defined data strings. These are purely atmospheric — not meant to be read; setInterval` ticker text cycling (5 status messages. */

html {
    background: var(--void);
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background: linear-gradient(180deg, #0a0a0f 0%, #141428 50%, #0a0a0f 100%);
    font-family: "IBM Plex Mono", "Space Mono", "Courier New", monospace;
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 1.65;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 22% 18%, rgba(0, 240, 255, 0.12), transparent 28vw),
        radial-gradient(circle at 77% 62%, rgba(212, 160, 60, 0.08), transparent 32vw),
        linear-gradient(90deg, rgba(0, 240, 255, 0.035) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
    background-size: auto, auto, 96px 96px, 96px 96px;
}

.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 0.3s steps(3, end) infinite;
}

@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(2px, -1px); }
    66% { transform: translate(-1px, 1px); }
    100% { transform: translate(1px, 2px); }
}

.scan-line {
    position: fixed;
    left: 0;
    top: -2px;
    width: 100vw;
    height: 1px;
    z-index: 100;
    pointer-events: none;
    background: linear-gradient(90deg, transparent 0%, #00f0ff 30%, #00f0ff 70%, transparent 100%);
    box-shadow: 0 0 20px 5px rgba(0, 240, 255, 0.3);
    animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
    0% { top: -2px; opacity: 0.45; }
    45% { opacity: 1; }
    100% { top: 100vh; opacity: 0.45; }
}

.hud-frame {
    position: fixed;
    inset: 0;
    z-index: 150;
    pointer-events: none;
}

.hud-corner {
    position: absolute;
    width: 34px;
    height: 34px;
    border-color: #00f0ff;
    border-style: solid;
    filter: drop-shadow(0 0 7px rgba(0, 240, 255, 0.65));
    animation: bracket-pulse 3s ease-in-out infinite;
}

.hud-corner.tl { top: 22px; left: 22px; border-width: 2px 0 0 2px; }
.hud-corner.tr { top: 22px; right: 22px; border-width: 2px 2px 0 0; }
.hud-corner.bl { bottom: 22px; left: 22px; border-width: 0 0 2px 2px; }
.hud-corner.br { bottom: 22px; right: 22px; border-width: 0 2px 2px 0; }

@keyframes bracket-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.edge-guide {
    position: absolute;
    opacity: 0.28;
}

.edge-guide.top,
.edge-guide.bottom {
    left: 5vw;
    right: 5vw;
    height: 1px;
    background: repeating-linear-gradient(90deg, #00f0ff 0 10px, transparent 10px 24px);
}

.edge-guide.top { top: 38px; }
.edge-guide.bottom { bottom: 38px; }

.edge-guide.left,
.edge-guide.right {
    top: 5vh;
    bottom: 5vh;
    width: 1px;
    background: repeating-linear-gradient(180deg, #00f0ff 0 10px, transparent 10px 24px);
}

.edge-guide.left { left: 38px; }
.edge-guide.right { right: 38px; }

.hud-ticker,
.telemetry-stack {
    position: absolute;
    font-family: "IBM Plex Mono", "Courier New", monospace;
    font-size: 0.68rem;
    color: #00f0ff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.62;
}

.hud-ticker {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.telemetry-stack {
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.telemetry-left { left: 16px; transform: translateY(-50%) rotate(-90deg); transform-origin: left center; }
.telemetry-right { right: 16px; transform: translateY(-50%) rotate(90deg); transform-origin: right center; }

main {
    position: relative;
    z-index: 10;
}

.scan-chamber {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ambient-code {
    position: absolute;
    color: #00f0ff;
    opacity: 0.28;
    font-size: 0.68rem;
    white-space: nowrap;
    text-transform: uppercase;
    animation: ticker 18s linear infinite;
}

.code-a { top: 20vh; left: -10vw; }
.code-b { bottom: 19vh; right: -25vw; animation-duration: 24s; animation-direction: reverse; }

@keyframes ticker {
    to { transform: translateX(42vw); }
}

.hero-container {
    position: relative;
    width: 100%;
    min-height: 62vh;
    display: grid;
    place-items: center;
    perspective: 900px;
}

.value-character-large {
    position: absolute;
    font-family: "Noto Serif KR", "Cormorant Garamond", Georgia, serif;
    font-size: clamp(20rem, 40vw, 50rem);
    font-weight: 700;
    line-height: 0.82;
    color: rgba(212, 160, 60, 0.08);
    text-shadow: 0 0 80px rgba(212, 160, 60, 0.12);
    animation: value-breathe 4s ease-in-out infinite;
}

.value-character-small {
    position: absolute;
    bottom: 4vh;
    font-family: "Noto Serif KR", "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: #d4a03c;
    text-shadow: 0 0 24px rgba(212, 160, 60, 0.35);
}

@keyframes value-breathe {
    0%, 100% { color: rgba(212, 160, 60, 0.06); }
    50% { color: rgba(212, 160, 60, 0.12); }
}

.gem-rotate {
    position: relative;
    width: 124px;
    height: 124px;
    transform-style: preserve-3d;
    animation: rotate-gem 12s linear infinite;
    filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.34));
}

.gem-core {
    position: absolute;
    inset: 27px;
    border: 1px solid rgba(232, 237, 242, 0.35);
    background: radial-gradient(circle, rgba(232, 237, 242, 0.35), rgba(0, 240, 255, 0.08));
    transform: rotateX(55deg) rotateZ(45deg);
}

.gem-face {
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    border: 1px solid rgba(0, 240, 255, 0.52);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.32), rgba(212, 160, 60, 0.12));
}

.face-1 { transform: rotateY(0deg) translateZ(42px); }
.face-2 { transform: rotateY(90deg) translateZ(42px); background: rgba(212, 160, 60, 0.26); }
.face-3 { transform: rotateY(180deg) translateZ(42px); background: rgba(0, 240, 255, 0.2); }
.face-4 { transform: rotateY(270deg) translateZ(42px); background: rgba(212, 160, 60, 0.18); }

@keyframes rotate-gem {
    from { transform: rotateX(45deg) rotateZ(45deg) rotateY(0deg); }
    to { transform: rotateX(45deg) rotateZ(45deg) rotateY(360deg); }
}

.assessment-readout {
    position: relative;
    z-index: 4;
    max-width: min(860px, 86vw);
    padding: 1rem 1.2rem;
    text-align: center;
    text-transform: uppercase;
    border-top: 1px solid rgba(0, 240, 255, 0.45);
    border-bottom: 1px solid rgba(0, 240, 255, 0.45);
    background: rgba(10, 10, 15, 0.45);
    animation: readout-in 1.8s ease both;
}

.readout-label { color: #00f0ff; margin: 0 0.3rem; }
.readout-value { color: #d4a03c; margin: 0 0.75rem 0 0.2rem; }

@keyframes readout-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.assessment-panel {
    position: relative;
    max-width: 720px;
    margin: 15vh auto;
    padding: 2.5rem;
    color: #e8edf2;
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.9), rgba(10, 10, 15, 0.95));
    border: 1px solid rgba(58, 58, 79, 0.72);
    box-shadow: inset 1px 0 rgba(0, 240, 255, 0.32), inset -1px 0 rgba(0, 240, 255, 0.32), 0 24px 80px rgba(0, 0, 0, 0.36);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, border-color 0.3s ease;
}

.assessment-panel[data-sector="01"],
.assessment-panel[data-sector="03"] {
    margin-left: 10vw;
    margin-right: auto;
}

.assessment-panel[data-sector="02"] {
    margin-left: auto;
    margin-right: 10vw;
}

.assessment-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

.assessment-panel:hover {
    border-color: rgba(255, 45, 106, 0.45);
}

.assessment-panel::before,
.assessment-panel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: repeating-linear-gradient(90deg, #00f0ff 0px, #00f0ff 8px, transparent 8px, transparent 16px);
    animation: border-march 1s linear infinite;
}

.assessment-panel::before { top: 0; }
.assessment-panel::after { bottom: 0; }

@keyframes border-march {
    to { background-position: 16px 0; }
}

.panel-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: #00f0ff;
    border-style: solid;
    opacity: 0.75;
    animation: bracket-pulse 3s ease-in-out infinite;
}

.panel-corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.panel-corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.panel-corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.panel-corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.panel-header {
    position: absolute;
    top: -2rem;
    left: 0;
    color: #00f0ff;
    opacity: 0.64;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.assessment-panel h2 {
    margin-bottom: 1.35rem;
    color: #d4a03c;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.assessment-panel:hover h2 {
    color: #ff2d6a;
}

.assessment-panel p {
    max-width: 62ch;
    margin-bottom: 1.35rem;
    color: rgba(232, 237, 242, 0.84);
    font-size: clamp(0.8rem, 1.2vw, 1rem);
    font-weight: 300;
    letter-spacing: 0.035em;
}

.assessment-panel p:last-child {
    margin-bottom: 0;
}

.verdict-strip {
    position: relative;
    min-height: 38vh;
    margin-top: 22vh;
    padding: 4.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.45), rgba(20, 20, 40, 0.92));
    border-top: 1px solid #3a3a4f;
    border-bottom: 1px solid #3a3a4f;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.verdict-strip.visible {
    opacity: 1;
    transform: translateY(0);
}

.verdict-rule {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00f0ff, transparent);
    animation: verdict-scan 3s linear infinite;
}

@keyframes verdict-scan {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

.verdict-content {
    max-width: 980px;
    text-align: center;
}

.verdict-text {
    display: block;
    color: #d4a03c;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 4vw, 4.8rem);
    font-weight: 300;
    line-height: 1.15;
    letter-spacing: 0.03em;
}

.verdict-decoration {
    display: block;
    margin: 1.2rem 0;
    color: #00f0ff;
    opacity: 0.62;
}

.transmission-end {
    margin-top: 2rem;
    color: #00f0ff;
    opacity: 0.54;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 820px) {
    .hud-ticker { max-width: 70vw; overflow: hidden; text-overflow: clip; }
    .telemetry-stack { display: none; }
    .edge-guide.left, .edge-guide.right { display: none; }
    .assessment-panel,
    .assessment-panel[data-sector="01"],
    .assessment-panel[data-sector="02"],
    .assessment-panel[data-sector="03"] {
        width: 86vw;
        margin-left: auto;
        margin-right: auto;
        padding: 2rem;
    }
    .assessment-panel h2 { font-size: clamp(2.4rem, 12vw, 4.8rem); }
    .readout-label,
    .readout-value { display: inline-block; margin-top: 0.25rem; }
    .gem-rotate { width: 82px; height: 82px; }
}
