/* index.css - styles unique to index.html. Loaded after base.css. */

/* ---------- Splash hero ---------- */

.splash {
    position: relative;
    height: 100vh;
    min-height: 640px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.splash-bg {
    position: absolute;
    inset: -35% 0 0 0;
    height: 145%;
    z-index: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.splash-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .splash-bg { transform: none !important; }
    .splash-bg-video { display: none; }
}

.splash-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10,12,8,0.55) 0%, rgba(10,12,8,0.35) 40%, rgba(10,12,8,0.75) 100%);
}

header {
    position: relative;
    z-index: 2;
    padding: 40px 0 0;
}

header .wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.brand-name {
    font-family: 'Newsreader', serif;
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: #F4F2EA;
}

.brand-title {
    font-size: 13px;
    color: rgba(244,242,234,0.7);
    margin-top: 2px;
    letter-spacing: 0.02em;
}

nav {
    display: flex;
    gap: 40px;
    padding-top: 3px;
}

nav a {
    font-size: 14px;
    color: rgba(244,242,234,0.75);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #F4F2EA;
}

.splash-intro {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: center;
}

.splash-intro .wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
}

.hero-photo {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(244,242,234,0.25);
}

.hero-photo-placeholder {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(244,242,234,0.08);
    border: 1px solid rgba(244,242,234,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: rgba(244,242,234,0.6);
    text-align: center;
    padding: 16px;
}

.splash-intro h1 {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 52px;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #F4F2EA;
}

.splash-intro h1 em {
    font-style: italic;
    color: #6B9878;
}

.splash-intro p {
    font-size: 17px;
    color: rgba(244,242,234,0.8);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
}

.pill-btn {
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: #F4F2EA;
    border: 1px solid rgba(244,242,234,0.35);
    border-radius: 999px;
    padding: 12px 24px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.pill-btn:hover {
    border-color: rgba(244,242,234,0.7);
    background: rgba(244,242,234,0.08);
}

.scroll-cue {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding-bottom: 32px;
    color: rgba(244,242,234,0.7);
    animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-cue { animation: none; }
}

/* ---------- Work section ---------- */

.work {
    padding: 120px 0 140px;
}

.work h2 {
    font-family: 'Newsreader', serif;
    font-weight: 400;
    font-size: 32px;
    margin-bottom: 56px;
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px 40px;
}

.case-study {
    display: block;
}

.case-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 13px;
    transition: border-color 0.2s ease;
}

.case-study:hover .case-thumb {
    border-color: var(--accent-deep);
}

.case-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.case-client {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.case-title {
    font-size: 19px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.case-title .arrow {
    color: var(--accent);
    transition: transform 0.2s ease;
    display: inline-flex;
    width: 16px;
    height: 16px;
    margin-top: 7px;
    flex-shrink: 0;
}

.case-study:hover .case-title .arrow {
    transform: translateX(4px);
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
    .wrap { padding: 0 24px; }
    nav { gap: 24px; padding-top: 0; }
    .splash-intro h1 { font-size: 36px; }
    .hero-photo, .hero-photo-placeholder { width: 200px; height: 200px; }
    .work-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion: hover lift on case study cards ---------- */

.case-study {
    display: block;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-study:hover {
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    body { opacity: 1; transition: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .case-study { transition: none; }
    .case-study:hover { transform: none; }
}

/* ---------- Theme toggle ---------- */

.header-actions {
    display: flex;
    align-items: center;
    gap: 40px; /* matches nav's gap, so Contact-to-toggle spacing matches Contact-to-Resume */
}

/* ---------- Mobile nav ---------- */

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    padding: 6px;
    cursor: pointer;
    /* Sits over the splash photo, not the theme surface, so it always
       stays light regardless of light/dark mode. */
    color: #ECEBE8;
    position: relative;
    z-index: 60;
}
