/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0a0a0f;
    --dark: #111118;
    --bone: #f0ece4;
    --silver: #a8a4a0;
    --brass: #c9a84c;
    --pale-gold: #e8d5a3;
    --crimson: #b5273e;
    --glass-bg: rgba(17, 17, 24, 0.65);
    --glass-border: rgba(201, 168, 76, 0.25);
    --glass-border-hidden: rgba(201, 168, 76, 0);
    --hud-opacity: 0.35;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--bone);
    font-family: 'Libre Baskerville', serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* === HUD OVERLAY === */
.hud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
}

.hud-coords {
    position: absolute;
    top: 20px;
    left: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 10px;
    color: var(--brass);
    opacity: var(--hud-opacity);
    letter-spacing: 0.08em;
    transition: opacity 0.6s ease;
}

.hud-clock {
    position: absolute;
    top: 20px;
    right: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 10px;
    color: var(--brass);
    opacity: var(--hud-opacity);
    letter-spacing: 0.08em;
    transition: opacity 0.6s ease;
}

.hud-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: var(--hud-opacity);
    transition: opacity 0.6s ease;
}

.hud-scroll-line {
    width: 1px;
    height: 30px;
    background: var(--brass);
    opacity: 0.5;
}

.hud-scroll-diamond {
    width: 6px;
    height: 6px;
    background: var(--brass);
    transform: rotate(45deg);
    margin-top: 2px;
    transition: transform 0.3s ease;
}

/* === BRASS RULES === */
.brass-rule {
    width: 60%;
    max-width: 500px;
    height: 1px;
    background: var(--brass);
    margin: 0 auto;
    opacity: 0.3;
    animation: brassAmbient 4s ease-in-out infinite;
}

@keyframes brassAmbient {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.brass-rule-top {
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
}

.brass-rule-bottom {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
}

/* === BRIEFING SCREEN === */
.briefing {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
}

.briefing-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.monogram-small {
    opacity: 0.5;
    margin-bottom: 8px;
}

.domain-name {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(3rem, 7vw, 6rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--bone);
    min-height: 1.2em;
}

.briefing-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: clamp(0.6rem, 1.2vw, 0.85rem);
    letter-spacing: 0.2em;
    color: var(--silver);
    max-width: 600px;
    min-height: 1.5em;
}

/* === TYPEWRITER CURSOR === */
.typewrite.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--pale-gold);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: cursorBlink 530ms step-end infinite;
}

.typewrite.typed::after {
    display: none;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* === CHEVRON DIVIDERS === */
.chevron-divider {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.chevron-divider svg {
    width: clamp(40px, 8vw, 120px);
    height: auto;
}

.chevron-sm {
    padding: 40px 0;
}

/* === DOSSIER === */
.dossier {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* === GLASSMORPHIC CARDS === */
.glass-card {
    position: relative;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border-hidden);
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(201, 168, 76, 0.08);
    padding: 48px 56px;
    max-width: 620px;
    width: 90%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
                transform 800ms cubic-bezier(0.16, 1, 0.3, 1),
                border-color 1200ms ease 200ms;
}

.glass-card.revealed {
    opacity: 1;
    transform: translateY(0);
    border-color: var(--glass-border);
}

.card-1 { align-self: flex-start; margin-left: 10%; }
.card-2 { align-self: flex-end; margin-right: 10%; }
.card-3 { align-self: flex-start; margin-left: 15%; }

/* Card corners - art deco filigree */
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.card-corner-tl {
    top: -1px;
    left: -1px;
    border-top: 1px solid var(--brass);
    border-left: 1px solid var(--brass);
    opacity: 0.5;
}

.card-corner-tl::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: var(--brass);
    transform: rotate(45deg);
    opacity: 0.4;
}

.card-corner-br {
    bottom: -1px;
    right: -1px;
    border-bottom: 1px solid var(--brass);
    border-right: 1px solid var(--brass);
    opacity: 0.5;
}

.card-corner-br::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 6px;
    height: 6px;
    background: var(--brass);
    transform: rotate(45deg);
    opacity: 0.4;
}

.card-heading {
    font-family: 'Poiret One', sans-serif;
    font-weight: 400;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--bone);
    margin-bottom: 24px;
    min-height: 1.3em;
}

.card-body {
    font-family: 'Libre Baskerville', serif;
    font-weight: 400;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    line-height: 1.8;
    color: var(--silver);
    min-height: 3em;
}

/* === TICKER === */
.ticker-wrapper {
    overflow: hidden;
    padding: 40px 0;
    border-top: 1px solid rgba(201, 168, 76, 0.12);
    border-bottom: 1px solid rgba(201, 168, 76, 0.12);
    margin: 60px 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 60s linear infinite;
}

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

.ticker-content {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--brass);
    opacity: 0.5;
    flex-shrink: 0;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === SEAL SECTION === */
.seal-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 120px 0;
}

.seal-svg-wrap {
    width: clamp(140px, 25vw, 220px);
    margin-bottom: 40px;
}

.seal-svg {
    width: 100%;
    height: auto;
}

/* Seal stroke animation */
.seal-circle {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    opacity: 0;
    transition: opacity 0.3s;
}

.seal-ticks line {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    opacity: 0;
    transition: opacity 0.3s;
}

.seal-text {
    opacity: 0;
    transition: opacity 0.3s;
}

.seal-section.seal-animate .seal-circle-outer {
    animation: drawCircle 600ms ease-in-out forwards;
}

.seal-section.seal-animate .seal-circle-mid {
    animation: drawCircle 600ms ease-in-out 600ms forwards;
}

.seal-section.seal-animate .seal-circle-inner {
    animation: drawCircle 600ms ease-in-out 1200ms forwards;
}

.seal-section.seal-animate .seal-ticks line {
    animation: drawTick 400ms ease-in-out 1800ms forwards;
}

.seal-section.seal-animate .seal-text {
    animation: fadeIn 1200ms ease-in-out 2200ms forwards;
}

@keyframes drawCircle {
    0% { stroke-dashoffset: 600; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes drawTick {
    0% { stroke-dashoffset: 20; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.seal-inscription {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--brass);
    opacity: 0.5;
    min-height: 1.5em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .card-1, .card-2, .card-3 {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }

    .glass-card {
        padding: 32px 28px;
    }
}
