:root {
    --bg: #0a0d12;
    --bg-alt: #121821;
    --panel: rgba(18, 24, 33, 0.9);
    --panel-strong: rgba(24, 33, 46, 0.96);
    --line: rgba(186, 202, 220, 0.16);
    --text: #f3f5f7;
    --muted: #a5b0bd;
    --accent: #d0a461;
    --accent-soft: rgba(208, 164, 97, 0.18);
    --shadow: 0 28px 60px rgba(0, 0, 0, 0.38);
    --radius: 22px;
    --radius-small: 14px;
    --container: 1180px;
    --font-display: "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --font-body: "Segoe UI Variable", "Segoe UI", Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top right, rgba(208, 164, 97, 0.14), transparent 28%),
        radial-gradient(circle at top left, rgba(97, 124, 166, 0.18), transparent 25%),
        linear-gradient(180deg, #05070a 0%, #0b0f15 45%, #090c11 100%);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.narrow {
    max-width: 780px;
}

.section,
.page-hero,
.hero-section,
.project-hero {
    position: relative;
    padding: 5rem 0;
}

.section-tight {
    padding-top: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(7, 10, 14, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 84px;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.brand-title,
.footer-brand {
    font-family: var(--font-display);
    font-size: 1.45rem;
    letter-spacing: 0.04em;
}

.brand-subtitle,
.footer-copy,
.lead,
.hero-intro,
.card-content p,
.content-card p,
.experience-body p,
.skill-card p,
.form-note {
    color: var(--muted);
    line-height: 1.7;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    color: var(--muted);
    transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active,
.footer-links a:hover,
.footer-link:hover,
.card-content h2 a:hover,
.card-content h3 a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 0.35rem;
    width: 3rem;
    height: 3rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text);
}

.nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
}

.button,
.button-outline,
.button-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.85rem 1.3rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button {
    background: linear-gradient(135deg, #d0a461 0%, #bb8342 100%);
    color: #111;
    box-shadow: 0 14px 30px rgba(208, 164, 97, 0.18);
}

.button:hover,
.button-outline:hover,
.button-ghost:hover,
.project-card:hover,
.highlight-card:hover,
.content-card:hover,
.experience-card:hover,
.skill-card:hover,
.gallery-item:hover {
    transform: translateY(-3px);
}

.button-outline {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.button-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.button-small {
    min-height: 2.6rem;
    padding: 0.65rem 1rem;
}

.button-row,
.tag-row,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.eyebrow {
    margin: 0 0 0.75rem;
    color: var(--accent);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    line-height: 1.08;
}

h1 {
    font-size: clamp(2.8rem, 7vw, 5.3rem);
}

h2 {
    font-size: clamp(1.85rem, 4vw, 2.8rem);
}

h3 {
    font-size: 1.45rem;
}

.hero-grid,
.project-hero-grid,
.two-column,
.contact-grid,
.detail-layout {
    display: grid;
    gap: 1.5rem;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    align-items: center;
    min-height: calc(100vh - 84px);
}

.hero-tagline {
    margin: 0 0 1.5rem;
    color: #d6dde8;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.hero-intro {
    max-width: 62ch;
    margin: 0 0 2rem;
}

.hero-panel,
.project-card,
.highlight-card,
.content-card,
.experience-card,
.skill-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(20, 27, 37, 0.92), rgba(10, 14, 20, 0.96));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-panel {
    overflow: hidden;
}

.hero-panel-image {
    min-height: 340px;
    background:
        linear-gradient(180deg, rgba(8, 10, 14, 0.1), rgba(8, 10, 14, 0.8)),
        url("../images/hero/collage.jpg") center/cover no-repeat;
}

.hero-panel-content {
    padding: 1.5rem;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.metric-card {
    padding: 1rem;
    border-radius: var(--radius-small);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.6rem;
}

.metric-label {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 2rem;
}

.featured-projects,
.project-grid,
.highlight-grid,
.skill-grid {
    display: grid;
    gap: 1.25rem;
}

.featured-projects {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.highlight-grid,
.skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card,
.experience-card,
.skill-card,
.content-card {
    overflow: hidden;
}

.card-image-link img,
.project-hero-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-content,
.content-card,
.experience-card,
.skill-card {
    padding: 1.4rem;
}

.card-image-static img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-kicker {
    margin-bottom: 0.75rem;
    color: var(--accent);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-meta .card-kicker {
    margin-bottom: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 166, 77, 0.32);
    background: rgba(255, 166, 77, 0.14);
    color: #ffc98c;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-badge-large {
    margin-bottom: 0.75rem;
}

.card-note {
    margin: -0.2rem 0 0.8rem;
    color: var(--accent);
    font-size: 0.92rem;
}

.project-card-disabled {
    opacity: 0.94;
}

.project-card-disabled:hover {
    transform: none;
}

.tag {
    display: inline-flex;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(208, 164, 97, 0.2);
    color: #f2d1a0;
    font-size: 0.86rem;
}

.page-hero {
    padding-bottom: 2rem;
}

.lead {
    font-size: 1.08rem;
    max-width: 70ch;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack {
    display: grid;
    gap: 1.25rem;
}

.experience-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.7fr);
    padding: 0;
    align-items: stretch;
}

.experience-header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.experience-header h2 {
    margin-bottom: 0;
    font-size: clamp(1.95rem, 3vw, 3.2rem);
    line-height: 1.02;
    text-wrap: balance;
}

.experience-body {
    padding: 2rem;
}

.experience-body .detail-list {
    margin-top: 1rem;
}

.detail-layout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
    align-items: start;
}

.detail-main,
.detail-sidebar {
    display: grid;
    gap: 1.25rem;
}

.detail-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.gallery-item {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    cursor: zoom-in;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.video-frame,
.video-placeholder {
    border-radius: var(--radius-small);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

.video-stack {
    display: grid;
    gap: 1rem;
}

.video-frame iframe {
    width: 100%;
    min-height: 360px;
    border: 0;
}

.video-placeholder {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 1.5rem;
    text-align: center;
}

.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-form {
    display: grid;
    gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 1px solid rgba(208, 164, 97, 0.35);
    border-color: rgba(208, 164, 97, 0.4);
}

.photography-bridge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-footer {
    padding: 2rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 0.9fr;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-heading {
    margin: 0 0 1rem;
    color: var(--text);
    font-weight: 700;
}

.footer-links,
.footer-link {
    color: var(--muted);
}

.footer-link {
    display: block;
    margin-bottom: 0.65rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: rgba(4, 6, 10, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-image {
    max-width: min(92vw, 1200px);
    max-height: 84vh;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.lightbox-close {
    position: absolute;
    top: 1.4rem;
    right: 1.4rem;
    width: 3rem;
    height: 3rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    font-size: 1.45rem;
}

code {
    padding: 0.15rem 0.35rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 980px) {
    .hero-grid,
    .project-hero-grid,
    .two-column,
    .contact-grid,
    .detail-layout,
    .experience-card,
    .footer-grid,
    .photography-bridge {
        grid-template-columns: 1fr;
    }

    .experience-header {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .featured-projects,
    .project-grid,
    .highlight-grid,
    .skill-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 74px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        left: 1rem;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        border-radius: 20px;
        border: 1px solid var(--line);
        background: rgba(9, 12, 17, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .featured-projects,
    .project-grid,
    .highlight-grid,
    .skill-grid,
    .gallery-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .hero-section,
    .project-hero {
        padding: 4rem 0;
    }

    .button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .card-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
