/* ===================================
   CSS Custom Properties (Variables)
   =================================== */
:root {
    /* Webflow Colors - Exact Match */
    --text-default: #201f20;
    --bg-color: #f9f4eb;
    --bg-white: #ffffff;
    --text-subtle: #6b6966;
    --text-orange: #ec7357;
    --text-teal: #538179;
    --bg-grey-border: #e7e7e7;
    --bg-grey: #f8f8f5;
    --bg-yellow-border: #f0dfb6;
    --bg-yellow: #fbf3e0;
    --bg-blue-border: #d6e1eb;
    --bg-blue: #eefaff;
    --bg-purple-border: #e4d5fa;
    --bg-purple: #f2eefa;
    --border-default: #6b696640;

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-tight: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-alt: 'Arimo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-pixel: 'Bytesized', sans-serif;
    --font-mono: 'PT Mono', monospace;

    /* Type Scale - Refined hierarchy */
    --text-xs: 0.8125rem;     /* 13px */
    --text-sm: 0.9375rem;     /* 15px */
    --text-base: 1.0625rem;   /* 17px */
    --text-md: 1.1875rem;     /* 19px */
    --text-lg: 1.375rem;      /* 22px */
    --text-xl: 1.625rem;      /* 26px */
    --text-2xl: 2rem;         /* 32px */
    --text-3xl: 2.625rem;     /* 42px */
    --text-4xl: 3.5rem;       /* 56px */
    --text-5xl: 4.5rem;       /* 72px */
    --text-6xl: 6rem;         /* 96px */

    /* Line Heights */
    --leading-tight: 1.15;
    --leading-snug: 1.35;
    --leading-normal: 1.5;
    --leading-relaxed: 1.65;
    --leading-loose: 1.85;

    /* Letter Spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Layout */
    --max-width: 1100px;
    --border-radius: 12px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 22px;
    font-weight: 400;
    color: var(--text-default);
    background-color: var(--bg-color);
    transition: background-color 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

a:hover {
    opacity: 0.7;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

/* Typography Defaults for Semantic Elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-tight);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

p {
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 22px;
}

strong {
    font-weight: 600;
}

/* ===================================
   Container & Layout
   =================================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    padding: 16px 0;
    position: relative;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.navbar.scrolled {
    background-color: var(--bg-color);
    border-bottom-color: var(--bg-grey-border);
}

.navbar .container {
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: Bytesized, sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    color: var(--text-default);
    text-indent: 0;
    position: static;
}

.nav-links {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 10px;
    margin-right: 0;
}

.nav-link {
    font-family: var(--font-alt);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background-color var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.nav-link:hover {
    opacity: 1;
    background-color: #efece5;
    color: #000;
}

.nav-icon {
    height: 16px;
    width: 0;
    opacity: 0;
    margin-right: 0;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                margin-right 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover .nav-icon {
    width: 16px;
    opacity: 1;
    margin-right: 12px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
}

.mobile-menu-btn span {
    width: 28px;
    height: 2.5px;
    background-color: var(--text-default);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 0;
    margin-top: 120px;
    margin-bottom: 120px;
}

.hero-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 50px;
    justify-content: flex-start;
    align-items: center;
}

.avatar {
    background-image: url('../assets/images/avatar.png');
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 100px;
    width: 168px;
    height: 168px;
    margin-left: 0;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-heading {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}

.hero-title {
    font-family: var(--font-tight);
    font-size: 48px;
    font-weight: 700;
    line-height: 60px;
    letter-spacing: 0;
}

.title-normal {
    font-family: var(--font-tight);
    font-weight: 700;
}

.hero-title > .title-normal {
    margin-right: 0.2em;
}

.title-name {
    white-space: nowrap;
}

.title-pixel {
    font-family: Bytesized, sans-serif;
    display: inline-block;
    font-size: 70px;
    font-weight: 200;
    position: relative;
    top: -0.12em;
    z-index: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide entire page while fonts are loading to prevent jitter */
.wf-loading body {
    opacity: 0;
}

.wf-active body,
.wf-inactive body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.title-pixel + .title-normal {
    margin-left: -0.32em;
}

.hero-subtitle {
    font-family: var(--font-tight);
    font-size: 32px;
    color: var(--text-subtle);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0;
    display: block;
    flex: 0 auto;
}

@media (max-width: 768px) {
    /* Container Padding - Consistent across all sections */
    .container {
        padding: 0 24px;
    }

    /* Remove desktop max-width overrides for alignment */
    .navbar .container {
        max-width: 100%;
    }

    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-grey);
        border-bottom: 1px solid var(--bg-grey-border);
        flex-direction: column;
        padding: var(--spacing-sm);
        gap: 8px;
        margin: 0;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
        padding: 6px;
    }

    .mobile-menu-btn span {
        width: 22px;
        height: 2px;
    }

    /* Hero Section Mobile */
    .hero {
        margin-top: 60px;
        margin-bottom: 80px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: flex-start;
    }

    .avatar {
        width: 100px;
        height: 100px;
        margin: 0;
    }

    .hero-content {
        align-items: flex-start;
    }

    .hero-heading {
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero-title {
        font-size: 40px;
        line-height: 48px;
    }

    .title-pixel {
        font-size: 58px;
    }

    .hero-subtitle {
        font-size: 26px;
        line-height: 1.4;
        margin-top: 8px;
    }

    /* Typography Scale */
    body {
        font-size: 16px;
        line-height: 20px;
    }

    .section-title {
        font-size: 28px;
        line-height: 34px;
    }

    .work-period {
        font-size: 18px;
        line-height: 22px;
    }

    /* Project Cards */
    .project-card {
        padding: 24px;
    }

    .project-main {
        padding: 24px;
    }

    .project-title {
        font-size: 24px;
        line-height: 30px;
    }

    .project-description {
        font-size: 16px;
        line-height: 20px;
    }

    .project-sub {
        padding: 24px 24px 0 24px;
    }

    .project-year {
        font-size: 18px;
        line-height: 22px;
    }

    .project-title-small {
        font-size: 18px;
        line-height: 22px;
    }

    .project-description-small {
        font-size: 14px;
        line-height: 18px;
    }

    .badge {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* Philosophy */
    .philosophy-text {
        font-size: 20px;
        line-height: 28px;
    }

    /* Timeline */
    .timeline-year {
        font-family: var(--font-alt);
        font-size: 16px;
        line-height: 20px;
        font-weight: 400;
    }

    .timeline-title {
        font-size: 18px;
        line-height: 22px;
    }

    .timeline-company {
        font-size: 16px;
        line-height: 20px;
    }

    .timeline-description {
        font-size: 14px;
        line-height: 18px;
    }

    .timeline-item {
        grid-template-columns: 1fr !important;
        gap: 4px !important;
        padding: 20px 0 !important;
    }

    /* Company Section */
    .company-section {
        grid-template-columns: 1fr !important;
        gap: 32px;
    }

    /* Footer */
    .footer .container {
        max-width: 100% !important;
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .footer-text {
        font-size: 14px;
        line-height: 20px;
    }

    .footer-copyright {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 14px;
        line-height: 20px;
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
    }

    .footer-credit {
        white-space: normal;
    }

    .footer-avatar {
        width: 18px;
        height: 18px;
    }

    .footer-avatar:not(:first-child) {
        margin-left: -5px;
    }

    /* Password Protected */
    .password-title {
        font-size: 24px;
        line-height: 32px;
    }

    .form-label {
        font-size: 14px;
    }

    .form-input {
        font-size: 14px;
        padding: 14px;
    }

    .btn-submit {
        font-size: 14px;
        padding: 14px 20px;
    }
}

/* ===================================
   Featured Work Section
   =================================== */
.featured-work {
    padding: 0;
    margin-bottom: 120px;
}

.section-title {
    font-family: var(--font-tight);
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0;
    margin-bottom: 0;
}

.work-period {
    font-family: var(--font-tight);
    font-size: 22px;
    color: var(--text-subtle);
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0;
    padding-bottom: 20px;
    margin-top: 20px;
    margin-bottom: 0;
}

/* Project Cards */
.project-card {
    display: block;
    border: 1px solid var(--bg-grey-border);
    background-color: var(--bg-grey);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background-color 1.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    background-color: var(--bg-white);
    border-color: var(--border-default);
    opacity: 1;
}

.project-main {
    padding: 40px;
    min-height: 100%;
    border-radius: 16px;
}

.project-header {
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.company-logo {
    height: 32px;
    width: auto;
}

.arrow {
    position: absolute;
    top: 36px;
    right: 36px;
    opacity: 0;
    color: var(--text-subtle);
    filter: opacity(0.5) grayscale(100%);
    transition: transform var(--transition-smooth), opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.arrow.icon {
    width: 18px;
    height: 18px;
}

.project-card:hover .arrow {
    opacity: 1;
}

.project-title {
    font-family: var(--font-tight);
    font-size: 30px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0;
    margin-bottom: var(--spacing-sm);
}

.project-description {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 20px;
    color: var(--text-default);
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: 20px;
}

.project-image-main {
    margin: var(--spacing-md) 0;
    border: 1px solid var(--bg-grey-border);
    border-radius: 4px;
    overflow: hidden;
}

.project-image-main img {
    width: 100%;
    display: block;
}

/* Image Swap Effect on Hover */
.project-image-swap {
    position: relative;
    overflow: hidden;
}

.project-image-swap .image-default {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    opacity: 1;
    z-index: 2;
    transition: opacity 1.5s ease-in-out 0.75s;
}

.project-image-swap .image-hover {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    opacity: 0;
    z-index: 1;
    transition: opacity 1.5s ease-in-out 0.75s;
}

.project-card:hover .project-image-swap .image-default {
    opacity: 0;
    z-index: 1;
}

.project-card:hover .project-image-swap .image-hover {
    opacity: 1;
    z-index: 2;
}

/* Badges */
.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin: var(--spacing-sm) 0;
}

.project-main .badge-group {
    margin-bottom: 32px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--bg-grey-border);
    border-radius: 100px;
    font-family: var(--font-alt);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text-default);
}

.badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.badge.metric {
    background-color: rgba(255, 255, 255, 0.8);
}

/* Company Section - 2 Column Layout */
.company-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: var(--spacing-lg);
}

/* Project Grid - Stacks vertically within company section */
.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.project-sub {
    padding: 40px 40px 0 40px;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.project-sub .arrow {
    top: 36px;
    right: 36px;
}

.project-content {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    margin-bottom: var(--spacing-sm);
    align-items: start;
}

.project-year {
    font-family: var(--font-tight);
    font-size: 22px;
    line-height: 26px;
    color: var(--text-subtle);
    font-weight: 600;
    letter-spacing: 0;
}

.project-info {
    flex: 1;
}

.project-header-small {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-xs);
}

.project-title-small {
    font-family: var(--font-tight);
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0;
}

.project-description-small {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 20px;
    color: var(--text-default);
    font-weight: 400;
    letter-spacing: 0;
    margin-bottom: var(--spacing-sm);
}

.project-image-small {
    margin-top: auto;
    border: 1px solid var(--bg-grey-border);
    border-bottom: 0;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
}

.project-image-small img {
    width: 100%;
    display: block;
}

/* Project Color Variants */
.project-card.airtable {
    border-color: var(--bg-yellow-border);
    background-color: var(--bg-yellow);
}

.project-card.airtable:hover {
    background-color: var(--bg-white);
    border-color: var(--border-default);
}

.project-card.salesforce {
    background-color: var(--bg-grey);
    border-color: var(--bg-grey-border);
}

.project-card.salesforce:hover {
    background-color: var(--bg-white);
    border-color: var(--border-default);
}

.project-sub.purple {
    border-color: var(--bg-purple-border);
    background-color: var(--bg-purple);
    padding: 40px 40px 0;
}

.project-sub.purple:hover {
    background-color: var(--bg-white);
    border-color: var(--border-default);
}

.project-sub.blue {
    border-color: var(--bg-blue-border);
    background-color: var(--bg-blue);
}

.project-sub.blue:hover {
    background-color: var(--bg-white);
    border-color: var(--border-default);
}

.project-sub.grey {
    background-color: var(--bg-grey);
    border-color: var(--bg-grey-border);
}

.project-sub.grey:hover {
    background-color: var(--bg-white);
    border-color: var(--border-default);
}

/* ===================================
   Philosophy Section
   =================================== */
.philosophy {
    padding: 0;
    margin-top: 120px;
    margin-bottom: 120px;
}

.divider {
    height: 1px;
    background-color: var(--border-default);
    margin: 60px 0;
}

.philosophy-content {
    padding: var(--spacing-lg) 0;
    max-width: 1000px;
}

.philosophy-text {
    font-family: var(--font-tight);
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.philosophy-text.subtle {
    color: var(--text-subtle);
}

.philosophy-text.bold {
    color: var(--text-default);
}

/* ===================================
   Career Milestones
   =================================== */
.career-milestones {
    padding: 0;
    margin-top: 120px;
}

.milestones-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background-color: var(--text-default);
    color: var(--bg-color);
    border-radius: 8px;
    font-family: var(--font-alt);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    height: 16px;
    width: 0;
    opacity: 0;
    margin-right: 0;
    filter: invert(1);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                margin-right 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover .btn-icon {
    width: 16px;
    opacity: 1;
    margin-right: 12px;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--spacing-md);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-default);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-family: var(--font-tight);
    font-size: 22px;
    line-height: 26px;
    color: var(--text-subtle);
    font-weight: 600;
    letter-spacing: 0;
}

.timeline-title {
    font-family: var(--font-tight);
    font-size: 22px;
    font-weight: 600;
    line-height: 26px;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.timeline-company {
    font-family: var(--font-alt);
    font-size: 18px;
    line-height: 22px;
    color: var(--text-subtle);
    font-weight: 400;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: transparent;
    color: var(--text-default);
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    margin-top: var(--spacing-xl);
}

.footer .container {
    max-width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-text {
    font-size: 16px;
    margin-bottom: 0;
}

.footer-text a {
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 0.2em;
}

.footer-copyright {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-subtle);
}

.footer-avatars {
    display: flex;
    align-items: center;
}

.footer-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--bg-color);
    position: relative;
}

.footer-avatar:first-child {
    z-index: 2;
}

.footer-avatar:not(:first-child) {
    margin-left: -6px;
    z-index: 1;
}

.footer-credit {
    white-space: nowrap;
}

.footer-credit a.footer-name {
    font-weight: 600;
    color: var(--text-default);
    text-decoration: none;
}

.footer-credit a.footer-name:hover {
    text-decoration: underline;
}

.footer-name {
    font-weight: 600;
    color: var(--text-default);
}

/* ===================================
   Icons
   =================================== */
.icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
}

.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Icon sizes */
.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-md {
    width: 20px;
    height: 20px;
}

.icon-lg {
    width: 28px;
    height: 28px;
}

.icon-xl {
    width: 32px;
    height: 32px;
}

/* Icon animations */
.icon-arrow {
    transition: transform var(--transition-fast);
}

a:hover .icon-arrow,
.project-card:hover .icon-arrow {
    transform: translateX(4px);
}

a:hover .icon-arrow-up,
.project-card:hover .icon-arrow-up {
    transform: translate(2px, -2px);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeInUp 1.5s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.1s; }
.fade-in:nth-child(2) { animation-delay: 0.2s; }
.fade-in:nth-child(3) { animation-delay: 0.3s; }
.fade-in:nth-child(4) { animation-delay: 0.4s; }
.fade-in:nth-child(5) { animation-delay: 0.5s; }
.fade-in:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   Utility Classes
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   Password Protected Page
   =================================== */
.password-protected {
    padding: 0;
    min-height: calc(100vh - 80px - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-form-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: var(--spacing-md);
}

.lock-icon-large {
    width: 80px;
    height: 80px;
    opacity: 0.3;
    margin: 0 auto var(--spacing-lg) auto;
    display: block;
}

.password-title {
    font-family: var(--font-tight);
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    letter-spacing: 0;
    color: var(--text-default);
    margin-bottom: var(--spacing-lg);
}

.password-form {
    margin-top: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-family: var(--font-alt);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--text-default);
    margin-bottom: var(--spacing-xs);
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 16px;
    font-family: var(--font-main);
    font-size: 16px;
    color: var(--text-default);
    background-color: var(--bg-white);
    border: 1px solid var(--bg-grey-border);
    border-radius: 8px;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--text-default);
}

.form-input::placeholder {
    color: var(--text-subtle);
}

.btn-submit {
    width: 100%;
    padding: 16px 24px;
    font-family: var(--font-alt);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--bg-color);
    background-color: var(--text-default);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.error-message {
    font-family: var(--font-main);
    font-size: 14px;
    color: #ec7357;
    margin-top: var(--spacing-sm);
    text-align: left;
    display: none;
}

.error-message.show {
    display: block;
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .btn-primary {
        display: none;
    }

    body {
        background-color: white;
    }
}
