article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
nav,
section,
summary {
    display: block;
}

[hidden] {
    display: none;
}

html {
    font-family: "Roboto", "Barlow", Arial, sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: #000;
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    --screen-width: min(100vw, calc(100vh * 16 / 9));
    --screen-height: min(100vh, calc(100vw * 9 / 16));
    font-size: clamp(16px, 2vw + 4px, 18px);
}

.content {
    display: block;
    width: 100%;
    max-width: 100vw;
    height: 100vh;
    align-items: center;
    z-index: 1000;
    position: relative;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.content::-webkit-scrollbar,
#cv::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

.cover {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100vw;
    position: relative;
    align-items: center;
    z-index: 1000;
    color: #fff;
    height: 100vh;
    justify-content: flex-start; 
    padding-top: 60vh;
}

.content__title {
    position: relative;
    color: var(--color-title);
    font-family: "Barlow", "Roboto", Arial, sans-serif;
    font-size: clamp(3rem, 3vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
    perspective: 1000px;
}

.content__title span {
    display: inline-block;
    white-space: pre;
    transform-origin: 50% -50%;
}

.content__subtitle {
    position: relative;
    margin: 0;
    font-family: "Barlow", Arial, sans-serif;
    font-size: clamp(1.25rem, 1vw, 1.25rem);
    font-weight: 100;
    letter-spacing: 0.019rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.hero-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content; 
    max-width: 90vw; 
}

.landing-links {
    display: flex;
    width: 100%; 
    gap: 16px; 
    margin-top: 24px; 
    opacity: 0; 
}

.landing-btn {
    flex: 1;
    text-align: center; 
    padding: 8px 0; 
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 0.75rem; 
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(2px); 
    text-decoration: none;
}

@media (hover: none) {
    .landing-btn:active {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border-color: #fff;
        transform: scale(0.97);
    }
}

@media (hover: hover) {
    .landing-btn {
        transition: all 0.3s ease;
    }
    .landing-btn:hover {
        background: rgba(255, 255, 255, 0.9);
        color: #000;
        border-color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }
}

.landscape {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    touch-action: none;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: #000;
    pointer-events: none;
}

a {
    text-decoration: none;
}

a:focus {
    outline: thin dotted;
}

a:active,
a:hover {
    outline: 0;
}

.clear {
    clear: both;
}

p {
    font-size: 1em;
    line-height: 1.4em;
    margin-bottom: 20px;
    color: #000;
}

#login-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    margin-top: -1.5rem;
}

.login-header {
    margin-bottom: 0.85rem;
    text-align: center;
}

.login-title {
    margin: 0; 
    font-family: "Barlow", "Roboto", Arial,sans-serif;
    font-size: clamp(1.7rem, 3vw, 1.7rem); 
    text-transform: uppercase;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.005rem;
}

.login-subtitle {
    margin: 0.2rem 0 0 0;
    font-weight: 200; 
    font-size: clamp(0.75rem, 1.5vw, 0.75rem); 
    letter-spacing: 0.02rem;
    color: rgba(255, 255, 255, 0.45);
}

.login-nda-note {
    height: 0.6rem;
    margin: 0.25rem 0 0 0;
    opacity: 0;
    overflow: hidden;
    font-weight: 100;
    font-size: clamp(0.6rem, 1.2vw, 0.6rem);
    letter-spacing: 0.005rem;
    line-height: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
    transition: opacity 0.2s ease;
}

.login-header:hover .login-nda-note {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .login-nda-note {
        transition: none;
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem; 
    width: 100%; 
    margin: 0 auto;
}

#pass-input {
    background: rgba(255, 255, 255, 0.05); 
    color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    outline: none; 
    padding: 0.5rem 0.75rem; 
    width: 100%; 
    text-align: center; 
    border-radius: 0.25rem; 
    letter-spacing: 1px;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 0.75rem; 
    transition: all 0.3s ease;
    box-sizing: border-box; 
}

#pass-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

#pass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.login-btn {
    width: 100%; 
    padding: 0.5rem 0.75rem; 
    font-size: 0.6rem; 
    margin: 0; 
    box-sizing: border-box;
}

.login-status {
    height: 1.25rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading {
    margin: 0;
    color: #aaa;
    font-weight: 100;
    font-size: 0.85rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease;
}

#loading.is-visible {
    visibility: visible;
    opacity: 1;
}

@keyframes login-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-10px); }
    40% { transform: translateX(10px); }
    60% { transform: translateX(-6px); }
    80% { transform: translateX(6px); }
}

#login-gate.is-shaking {
    animation: login-shake 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
    #login-gate.is-shaking {
        animation: none;
    }
}

#login-gate .back-btn {
    display: inline-block;
    position: relative; 
    left: auto; 
    bottom: auto;
    transform: none;
    width: auto;
    height: auto;
    margin: 2rem auto 0 auto; 
    padding: 0.375rem 1rem; 
    box-sizing: border-box;
    font-size: 0.6rem;
    letter-spacing: 1px;
}

/*==================================================
  RESUME GATE UI
==================================================*/
#resume-gate {
    position: absolute;
    top: 5vh; 
    left: 0;
    right: 0;
    width: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    
    z-index: 2000; 
    padding-bottom: 10vh; 
}

.resume-container {
    width: 95%; 
    max-width: 960px; 
    margin: 0 auto;
    height: auto; 
    
    background: transparent; 
    border-radius: 4px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.8); 
}

.resume-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    opacity: 0.85;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

#resume-gate .back-btn {
    display: inline-block;
    position: relative; 
    width: auto;
    height: auto;
    margin: 48px auto 0 auto; 
    padding: 0.5rem 1.25rem; 
    box-sizing: border-box;
    font-size: 0.65rem;
    letter-spacing: 1px;
}

/* Container to hold both buttons side-by-side */
.resume-actions {
    display: flex !important;
    flex-direction: row !important; 
    justify-content: center !important; 
    align-items: center !important;
    gap: 48px !important; 
    
    margin-top: 64px !important; 
    width: 100% !important;
}

.resume-actions .landing-btn {
    flex: 0 0 auto !important; 
    width: 150px !important;  
    display: block !important; 
    position: static !important; 
    margin: 0 !important;
    padding: 0.5rem 0 !important; 
    box-sizing: border-box !important;
    font-size: 0.65rem !important;
    letter-spacing: 1px !important;
    text-align: center !important;
}

/*--- Ultra-wide / High-Res Desktop Fix (1080p and 1440p monitors) ---*/
@media screen and (min-width: 1920px) {
    :root {
        font-size: 21px; 
    }
    .resume-container {
        max-width: 1440px;
    }
}

/*--- Even Larger Monitors (4K) ---*/
@media screen and (min-width: 2560px) {
    :root {
        font-size: 22px;
    }
    .resume-container {
        max-width: 1680px; 
    }
}

@media print {
    .content {
        height: 200vh;
        padding: 0;
        justify-content: flex-end;
    }
}