:root {
    --bg: #0a0b0f;
    --ink: #14110f;
    --paper: #f7f2ea;
    --paper-soft: #eee6d8;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: rgba(255, 255, 255, 0.14);
    --text: #fbf7ef;
    --muted: #c8ccd2;
    --muted-dark: #5c626d;
    --line: rgba(255, 255, 255, 0.16);
    --line-dark: rgba(20, 17, 15, 0.14);
    --accent: #18c7b6;
    --accent-dark: #087c73;
    --accent-warm: #ff7a59;
    --accent-gold: #f5c542;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --radius: 8px;
    --header-height: 76px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    min-width: 320px;
}

body::selection {
    background: var(--accent);
    color: var(--bg);
}

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

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

button,
input,
textarea {
    font: inherit;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 0 24px;
    width: 100%;
}

.site-header {
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(10, 11, 15, 0.78);
    border-bottom: 1px solid var(--line);
    display: flex;
    height: var(--header-height);
    justify-content: space-between;
    left: 0;
    padding: 0 36px;
    position: sticky;
    right: 0;
    top: 0;
    z-index: 50;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    gap: 12px;
    letter-spacing: 0;
}

.brand-mark {
    align-items: center;
    background: var(--text);
    color: var(--bg);
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.site-nav {
    align-items: center;
    display: flex;
    gap: 28px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
}

.menu-toggle {
    align-items: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    display: none;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.section {
    padding: 104px 0;
}

.section-dark {
    background: var(--bg);
    color: var(--text);
}

.section-light {
    background: var(--paper);
    color: var(--ink);
}

.section-muted {
    background: var(--paper-soft);
    color: var(--ink);
}

.compact-section {
    padding: 56px 0;
}

.hero {
    background-image:
        linear-gradient(90deg, rgba(10, 11, 15, 0.98) 0%, rgba(10, 11, 15, 0.9) 45%, rgba(10, 11, 15, 0.22) 100%),
        url("images/background.png");
    background-position: center right;
    background-size: cover;
    min-height: calc(100vh - var(--header-height));
    overflow: hidden;
    position: relative;
}

.hero-overlay {
    background:
        linear-gradient(180deg, transparent 0%, rgba(10, 11, 15, 0.86) 100%),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 120px);
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-grid {
    align-items: center;
    display: grid;
    gap: 72px;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.88fr);
    min-height: calc(100vh - var(--header-height));
    padding-bottom: 56px;
    padding-top: 56px;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 780px;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.section-kicker h2,
.contact-copy h2 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0;
    line-height: 0.96;
}

.hero h1 {
    font-size: 5.8rem;
    margin-bottom: 24px;
    max-width: 760px;
}

.hero-lede {
    color: var(--muted);
    font-size: 1.22rem;
    max-width: 760px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.hero-meta span {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid var(--line);
    display: inline-flex;
    gap: 10px;
    min-height: 42px;
    padding: 9px 14px;
}

.hero-meta i {
    color: var(--accent-gold);
}

.hero-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

.hero-stats {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 34px;
    max-width: 560px;
}

.hero-stats div {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
    min-height: 106px;
    padding: 16px;
}

.hero-stats strong {
    color: var(--accent-gold);
    display: block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 2.05rem;
    line-height: 1;
}

.hero-stats span {
    color: var(--muted);
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 8px;
}

.button {
    align-items: center;
    border: 1px solid transparent;
    display: inline-flex;
    font-weight: 800;
    gap: 10px;
    justify-content: center;
    min-height: 50px;
    padding: 12px 18px;
    transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--accent);
    color: var(--bg);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: #36e4d2;
}

.button-secondary {
    background: var(--text);
    color: var(--bg);
}

.button-ghost {
    border-color: var(--line);
    color: var(--text);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.1);
}

.proof-strip {
    background: var(--accent-warm);
    color: var(--ink);
}

.proof-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(6, 1fr);
    padding-bottom: 0;
    padding-top: 0;
}

.proof-grid span {
    align-items: center;
    display: flex;
    font-weight: 900;
    justify-content: center;
    min-height: 72px;
    text-align: center;
}

.split-layout {
    display: grid;
    gap: 72px;
    grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
}

.section-kicker h2,
.section-heading h2,
.contact-copy h2 {
    font-size: 3.4rem;
}

.about-portrait {
    background: var(--ink);
    border: 1px solid rgba(20, 17, 15, 0.18);
    box-shadow: 0 18px 50px rgba(48, 37, 28, 0.16);
    color: var(--text);
    margin-top: 34px;
    max-width: 410px;
    padding: 12px;
}

.about-portrait img {
    aspect-ratio: 4 / 5;
    background: #a6a6a6;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.about-portrait figcaption {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    margin-top: 12px;
    padding-top: 12px;
}

.section-body p {
    color: #34312d;
    font-size: 1.06rem;
    margin-bottom: 22px;
}

.quick-facts {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
}

.quick-facts div {
    border-left: 4px solid var(--accent-dark);
    background: #fffaf2;
    min-height: 118px;
    padding: 18px;
}

.quick-facts span {
    color: var(--muted-dark);
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.quick-facts strong {
    display: block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.05rem;
    line-height: 1.25;
}

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

.timeline {
    position: relative;
}

.timeline::before {
    background: var(--line-dark);
    content: "";
    height: 100%;
    left: 188px;
    position: absolute;
    top: 0;
    width: 1px;
}

.timeline-item {
    display: grid;
    gap: 36px;
    grid-template-columns: 160px minmax(0, 1fr);
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::after {
    background: var(--accent-dark);
    border: 5px solid var(--paper-soft);
    content: "";
    height: 16px;
    left: 180px;
    position: absolute;
    top: 28px;
    width: 16px;
}

.timeline-date {
    color: var(--muted-dark);
    font-weight: 900;
    padding-top: 26px;
}

.timeline-card,
.skill-card,
.project-card,
.mini-card,
.contact-form {
    background: #fffaf2;
    border: 1px solid var(--line-dark);
    box-shadow: 0 16px 48px rgba(48, 37, 28, 0.08);
}

.timeline-card {
    padding: 30px;
}

.role-heading {
    align-items: flex-start;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
}

.role-heading h3,
.skill-card h3,
.project-card h3,
.mini-card h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    letter-spacing: 0;
    line-height: 1.1;
}

.role-heading h3 {
    font-size: 1.5rem;
}

.role-heading p,
.timeline-card li,
.project-card p,
.mini-card p {
    color: #45423e;
}

.role-heading span {
    background: var(--ink);
    color: var(--text);
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 8px 10px;
    text-transform: uppercase;
}

.timeline-card ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.timeline-card li {
    padding-left: 24px;
    position: relative;
}

.timeline-card li::before {
    background: var(--accent-dark);
    content: "";
    height: 8px;
    left: 0;
    position: absolute;
    top: 10px;
    width: 8px;
}

.tech-stack {
    border-top: 1px solid var(--line-dark);
    color: var(--accent-dark);
    font-weight: 900;
    margin-top: 22px;
    padding-top: 18px;
}

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

.mini-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
    min-height: 220px;
    padding: 28px;
}

.mini-card i {
    color: var(--accent-gold);
    font-size: 2rem;
    margin-bottom: 18px;
}

.mini-card p {
    color: var(--muted);
    margin-top: 12px;
}

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

.skill-card {
    min-height: 260px;
    padding: 30px;
}

.skill-card-featured {
    background: var(--ink);
    color: var(--text);
    grid-column: span 2;
}

.skill-card-featured .skill-icon {
    background: var(--accent);
    color: var(--ink);
}

.skill-card-featured .tag-list span {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--line);
    color: var(--text);
}

.skill-icon {
    align-items: center;
    background: var(--ink);
    color: var(--accent-gold);
    display: inline-flex;
    font-size: 1.4rem;
    height: 48px;
    justify-content: center;
    margin-bottom: 20px;
    width: 48px;
}

.skill-card h3 {
    font-size: 1.45rem;
    margin-bottom: 20px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list span {
    background: #efe5d4;
    border: 1px solid rgba(20, 17, 15, 0.08);
    color: #25211d;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 8px 10px;
}

.project-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(6, 1fr);
}

.project-card {
    display: flex;
    flex-direction: column;
    grid-column: span 3;
    overflow: hidden;
}

.project-card.featured {
    grid-column: span 6;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

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

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

.project-type {
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.project-card h3 {
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.project-card a {
    align-items: center;
    color: var(--ink);
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
}

.project-card a:hover,
.project-card a:focus-visible {
    color: var(--accent-dark);
}

.contact-grid {
    display: grid;
    gap: 72px;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1fr);
}

.contact-copy p {
    color: var(--muted);
    font-size: 1.06rem;
    margin-top: 22px;
    max-width: 560px;
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.contact-list a {
    align-items: center;
    border: 1px solid var(--line);
    display: flex;
    gap: 12px;
    min-height: 52px;
    padding: 12px 14px;
    transition: background 180ms ease, border-color 180ms ease;
}

.contact-list a:hover,
.contact-list a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

.contact-list i {
    color: var(--accent-gold);
    width: 20px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--line);
    padding: 30px;
}

.contact-form label {
    color: var(--text);
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--line);
    color: var(--text);
    margin-bottom: 18px;
    outline: none;
    padding: 14px;
    resize: vertical;
    width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aeb5be;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
}

.contact-form button {
    cursor: pointer;
    width: 100%;
}

.hidden-field {
    display: none;
}

.site-footer {
    background: #050608;
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: 26px 0;
}

.footer-content {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.footer-content a {
    color: var(--text);
    font-weight: 900;
}

.footer-content a:hover,
.footer-content a:focus-visible {
    color: var(--accent);
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 240ms ease, transform 240ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: 4.5rem;
    }

    .hero-grid,
    .split-layout,
    .contact-grid {
        gap: 48px;
    }

    .about-portrait {
        max-width: 360px;
    }

    .quick-facts,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 42px;
    }

    .timeline-item::after {
        left: 2px;
    }

    .timeline-date {
        padding-top: 0;
    }
}

@media (max-width: 860px) {
    .site-header {
        padding: 0 20px;
    }

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

    .site-nav {
        background: rgba(10, 11, 15, 0.97);
        border: 1px solid var(--line);
        display: none;
        flex-direction: column;
        gap: 0;
        left: 20px;
        padding: 10px;
        position: absolute;
        right: 20px;
        top: calc(var(--header-height) + 10px);
    }

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

    .site-nav a {
        min-height: 46px;
        padding: 10px;
        width: 100%;
    }

    .hero {
        background-position: center;
    }

    .hero-grid,
    .split-layout,
    .contact-grid,
    .project-card.featured {
        grid-template-columns: 1fr;
    }

    .about-portrait {
        max-width: 420px;
    }

    .hero-grid {
        padding-bottom: 44px;
        padding-top: 44px;
    }

    .hero h1 {
        font-size: 3.6rem;
    }

    .section {
        padding: 78px 0;
    }

    .section-kicker h2,
    .section-heading h2,
    .contact-copy h2 {
        font-size: 2.55rem;
    }

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

    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 600px) {
    :root {
        --header-height: 68px;
    }

    .container {
        padding: 0 18px;
    }

    .brand span:last-child {
        display: none;
    }

    .hero h1 {
        font-size: 2.9rem;
    }

    .hero-lede {
        font-size: 1.02rem;
    }

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

    .hero-meta {
        display: grid;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

    .proof-grid span {
        min-height: 58px;
    }

    .role-heading {
        display: block;
    }

    .role-heading span {
        display: inline-block;
        margin-top: 14px;
    }

    .timeline-card,
    .skill-card,
    .project-content,
    .contact-form,
    .mini-card {
        padding: 22px;
    }

    .tag-list {
        gap: 8px;
    }

    .tag-list span {
        font-size: 0.82rem;
        padding: 7px 8px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}
