:root {
    --bg: #f7f8fb;
    --surface: #ffffff;
    --surface-strong: #f1f4f8;
    --ink: #101828;
    --muted: #5d6b82;
    --line: #d9e0ea;
    --primary: #b91c1c;
    --primary-dark: #7f1d1d;
    --accent: #0f766e;
    --navy: #111827;
    --shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    color: #fff;
    transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}

header.scrolled,
header.menu-open {
    background: rgba(17, 24, 39, 0.95);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

.hamburger {
    display: none;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 130px 0 86px;
    background: var(--navy);
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.72) 46%, rgba(127, 29, 29, 0.72) 100%),
        url("holidayhandoutsfounders.png") center 42% / cover no-repeat;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    font-size: clamp(2.7rem, 7vw, 5.75rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    margin-bottom: 26px;
}

.hero-stack span {
    display: block;
}

.hero-description {
    max-width: 710px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.12rem;
}

.hero-actions,
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    background: var(--primary-dark);
    box-shadow: 0 16px 28px rgba(127, 29, 29, 0.28);
    transform: translateY(-2px);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.16);
}

.social-link,
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.social-link:hover,
.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.hero-card {
    display: grid;
    gap: 24px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-headshot {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 42%;
    border-radius: 8px;
}

.hero-card-kicker {
    color: #fca5a5;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-card h2 {
    margin-top: 4px;
    font-size: 1.55rem;
    line-height: 1.2;
}

.quick-facts {
    display: grid;
    gap: 12px;
}

.quick-facts div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.34);
}

.quick-facts span {
    display: block;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 850;
}

.quick-facts p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
}

.impact-strip {
    padding: 0;
    background: var(--surface);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    transform: translateY(-42px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.impact-item {
    padding: 24px;
    background: #fff;
}

.impact-item strong {
    display: block;
    color: var(--ink);
    font-size: 1.03rem;
    margin-bottom: 6px;
}

.impact-item span {
    color: var(--muted);
    font-size: 0.94rem;
}

section {
    padding: 92px 0;
}

.section-muted {
    background: var(--surface-strong);
}

.section-intro {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-heading {
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-intro p:last-child,
.about-content p,
.timeline-card p {
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
    gap: 52px;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-media::before {
    content: "";
    position: absolute;
    inset: 20px -18px -18px 20px;
    border-radius: 12px;
    background: var(--primary);
    opacity: 0.12;
}

.about-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-content p + p {
    margin-top: 16px;
}

.about-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.pill-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pill-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.project-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.project-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.project-card.featured {
    grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.12fr);
    grid-column: span 2;
}

.project-img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    background: var(--surface-strong);
}

.project-content {
    display: flex;
    flex-direction: column;
    padding: 26px;
}

.project-type {
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-content h3 {
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1.22;
    margin-bottom: 12px;
}

.project-content p {
    color: var(--muted);
}

.project-tags,
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.project-tags span,
.skills-container span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: #344054;
    font-size: 0.84rem;
    font-weight: 700;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.project-links a {
    color: var(--primary);
    font-weight: 850;
    text-decoration: none;
}

.archive-projects {
    margin-top: 42px;
}

.archive-heading {
    margin-bottom: 18px;
}

.archive-heading h3 {
    color: var(--ink);
    font-size: 1.25rem;
}

.archive-track {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.archive-row {
    display: flex;
    width: max-content;
    gap: 14px;
    padding: 16px;
    animation: archive-scroll 34s linear infinite;
}

.archive-track:hover .archive-row {
    animation-play-state: paused;
}

.mini-project {
    display: grid;
    grid-template-columns: 74px 180px;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    align-items: center;
    min-width: 300px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.06);
}

.mini-project img {
    grid-row: 1 / 3;
    width: 74px;
    height: 58px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--surface-strong);
}

.mini-project span {
    font-weight: 850;
    line-height: 1.2;
}

.mini-project small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

@keyframes archive-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 7px));
    }
}

.timeline {
    display: grid;
    gap: 18px;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.timeline-date {
    position: sticky;
    top: 96px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 850;
}

.timeline-card,
.skill-category {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.07);
}

.timeline-card {
    padding: 24px;
}

.timeline-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.timeline-company {
    margin-bottom: 12px;
    font-weight: 750;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.skill-category {
    padding: 22px;
}

.skill-category h3 {
    color: var(--ink);
    font-size: 1.05rem;
}

.gallery-showcase {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-radius: 12px;
    background:
        radial-gradient(circle at top left, rgba(185, 28, 28, 0.22), transparent 34%),
        #0b1120;
    box-shadow: var(--shadow);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.gallery-slide.active {
    opacity: 1;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    padding: 18px;
    object-fit: contain;
}

.gallery-slide figcaption {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.78);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.gallery-controls {
    position: absolute;
    right: 24px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.gallery-indicator {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    transition: width 0.25s ease, background 0.25s ease;
}

.gallery-indicator.active {
    width: 28px;
    background: #fff;
}

.social-updates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.social-update-card {
    display: grid;
    gap: 12px;
    min-height: 220px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    text-decoration: none;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-update-card:hover {
    border-color: rgba(185, 28, 28, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.social-update-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
}

.social-update-card span {
    font-size: 1.15rem;
    font-weight: 900;
}

.social-update-card p {
    color: var(--muted);
}

footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.72);
    padding: 48px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr auto auto;
    gap: 32px;
    align-items: center;
}

.footer-logo {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 750;
    text-decoration: none;
}

.copyright {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

@media (max-width: 940px) {
    .hero-grid,
    .about-grid,
    .project-card.featured,
    .timeline-item,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .impact-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        transform: none;
        margin-top: -38px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .archive-row {
        animation-duration: 42s;
    }

    .timeline-date {
        position: static;
    }

    .gallery-showcase {
        min-height: 460px;
    }

    .social-updates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    header {
        background: rgba(17, 24, 39, 0.95);
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: 14px;
        right: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 12px;
        background: rgba(17, 24, 39, 0.98);
        box-shadow: var(--shadow);
    }

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

    .nav-link {
        display: block;
        padding: 12px;
        text-align: center;
    }

    .hero {
        padding-top: 116px;
    }

    .hero-card {
        padding: 16px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    section {
        padding: 70px 0;
    }

    .project-img {
        min-height: 210px;
    }

    .archive-track {
        mask-image: none;
    }

    .mini-project {
        grid-template-columns: 64px 160px;
        min-width: 260px;
    }

    .gallery-showcase {
        min-height: 360px;
    }

    .gallery-slide img {
        padding: 10px;
    }

    .gallery-slide figcaption {
        left: 14px;
        right: 14px;
        bottom: 18px;
        text-align: center;
    }

    .gallery-controls {
        right: 50%;
        bottom: 58px;
        transform: translateX(50%);
    }
}
