/* ─────────────────────────────────────────
   FONTS
───────────────────────────────────────── */
@font-face {
    font-family: 'PP Monument Normal';
    src: url('font/PPMonumentNormal-Regular.woff2') format('woff2'),
         url('font/PPMonumentNormal-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Monument Normal';
    src: url('font/PPMonumentNormal-Black.woff2') format('woff2'),
         url('font/PPMonumentNormal-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Monument Wide';
    src: url('font/PPMonumentWide-Black.woff2') format('woff2'),
         url('font/PPMonumentWide-Black.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'PP Monument Wide';
    src: url('font/PPMonumentWide-Regular.woff2') format('woff2'),
         url('font/PPMonumentWide-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


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

:root {
    --bg:             #eef0f8;
    --text-primary:   #111827;
    --text-secondary: rgba(17, 24, 39, 0.58);
    --text-muted:     rgba(17, 24, 39, 0.38);
    --border:         rgba(17, 24, 39, 0.10);
    --border-hover:   rgba(17, 24, 39, 0.28);
    --surface:        rgba(17, 24, 39, 0.05);
    --surface-hover:  rgba(17, 24, 39, 0.09);

    --max-w:  1100px;
    --pad-x:  clamp(24px, 7vw, 88px);
    --pad-top: clamp(28px, 4.5vh, 52px);
}

html {
    font-size: 18px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: 'PP Monument Wide', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    min-height: 100dvh;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }


/* ─────────────────────────────────────────
   BACKGROUND ANIMATION
───────────────────────────────────────── */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    pointer-events: none;
}


/* ─────────────────────────────────────────
   SKIP NAV
───────────────────────────────────────── */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 10000;
    padding: 8px 16px;
    background: var(--text-primary);
    color: #fff;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: top 0.2s ease;
}
.skip-nav:focus { top: 16px; }


/* ─────────────────────────────────────────
   GRAIN OVERLAY
───────────────────────────────────────── */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.022;
    z-index: 0;
    pointer-events: none;
}


/* ─────────────────────────────────────────
   PAGE SHELL
───────────────────────────────────────── */
.shell {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-left: var(--pad-x);
    padding-right: var(--pad-x);
}


/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--pad-top);
    padding-bottom: var(--pad-top);
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: slideDown 0.7s ease forwards 0.15s;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.35s ease;
    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.logo:hover .logo-mark { border-color: var(--border-hover); }

.header-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 32px);
}

.nav-item {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: color 0.25s ease;
}

.nav-item:hover { color: var(--text-primary); }


/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    padding-top: 0;
    padding-bottom: clamp(64px, 11vh, 130px);
}

.hero-tag {
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: clamp(22px, 3.5vh, 36px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.40s;
}

.hero-name {
    font-family: 'PP Monument Wide', sans-serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.93;
    color: var(--text-primary);
    margin-bottom: clamp(18px, 2.8vh, 30px);
    opacity: 0;
    animation: slideUp 0.9s ease forwards 0.58s;
}

.hero-name em {
    font-style: normal;
    font-weight: 800;
}

.hero-role {
    font-family: 'PP Monument Wide', sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: clamp(36px, 5.5vh, 60px);
    opacity: 0;
    animation: slideUp 0.9s ease forwards 0.74s;
}

.rule {
    width: 36px;
    height: 1px;
    background: rgba(17, 24, 39, 0.18);
    margin-bottom: clamp(28px, 4vh, 48px);
    opacity: 0;
    animation: slideUp 0.9s ease forwards 0.88s;
}


/* ─────────────────────────────────────────
   EDITORIAL PARAGRAPH
───────────────────────────────────────── */
.hero-editorial {
    font-size: 1.2rem;
    font-weight: normal;
    color: var(--text-secondary);
    opacity: 0;
    animation: slideUp 0.9s ease forwards 1.00s;
}

.el {
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background-image: linear-gradient(
        to right,
        rgba(17, 24, 39, 0.50),
        rgba(17, 24, 39, 0.50)
    );
    background-repeat: no-repeat;
    background-position: 0% 100%;
    background-size: 0% 1px;
    padding-bottom: 1px;
    transition:
        background-size 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.28s ease,
        opacity 0.28s ease;
}

.el:hover {
    background-size: 100% 1px;
    color: #000000;
}

.hero-editorial:has(.el:hover) .el:not(:hover) {
    opacity: 0.45;
}


/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.footer {
    display: none;
    border-top: 1px solid var(--border);
    padding-top: clamp(24px, 3.5vh, 40px);
    padding-bottom: clamp(28px, 4.5vh, 48px);
    align-items: center;
    justify-content: space-between;
    max-width: var(--max-w);
    margin: 0 auto;
    width: 100%;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.45s;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: .6rem;
    font-weight: 400;
    letter-spacing: 0.10em;
    color: var(--text-muted);
}

.footer-status {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    flex-shrink: 0;
    animation: breathe 3.5s ease-in-out infinite;
}


/* ─────────────────────────────────────────
   KEYFRAMES
───────────────────────────────────────── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0);    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0);     }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes breathe {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.4; transform: scale(0.82); }
}


/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 768px) {
    .header-nav { display: none; }

    .hero-name {
        letter-spacing: -0.025em;
        line-height: 0.95;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    :root { --pad-x: 22px; }
    html { font-size: 15px; }
    .hero-name { font-size: 2.2rem; }
    .hero { padding-top: 0; }
    .hero-editorial br { display: none; }
}


/* ─────────────────────────────────────────
   FOCUS & ACCESSIBILITY
───────────────────────────────────────── */
body.keyboard-nav *:focus-visible {
    outline: 2px solid rgba(17, 24, 39, 0.45);
    outline-offset: 3px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
