:root {
    --ink: #101820;
    --ink-soft: #33414d;
    --paper: #f5f3ee;
    --surface: #ffffff;
    --line: #d8d8d2;
    --accent: #d7ff45;
    --accent-ink: #172000;
    --blue: #2762ff;
    --max: 1240px;
    --header: 72px;
    --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 1000; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: var(--header);
    z-index: 100;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.18);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.site-header.scrolled { color: var(--ink); background: rgba(245,243,238,.96); border-color: var(--line); }
.nav-wrap { width: min(calc(100% - 40px), var(--max)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid currentColor; font-family: "Source Code Pro", monospace; font-size: 13px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.site-nav a:not(.nav-cta) { opacity: .82; }
.site-nav a:hover { opacity: 1; }
.nav-cta { padding: 10px 16px; color: var(--accent-ink); background: var(--accent); border-radius: var(--radius); }
.menu-button { display: none; width: 44px; height: 44px; border: 0; color: inherit; background: transparent; cursor: pointer; }
.menu-button svg { width: 24px; }

.hero { position: relative; min-height: min(860px, 92dvh); overflow: hidden; color: #fff; background: var(--ink); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(7,16,23,.76); }
.hero-content { position: relative; z-index: 2; width: min(calc(100% - 40px), var(--max)); min-height: min(860px, 92dvh); margin: 0 auto; padding: calc(var(--header) + 72px) 0 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow, .section-kicker { margin: 0 0 20px; font-family: "Source Code Pro", monospace; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); }
.eyebrow span { width: 32px; height: 2px; background: currentColor; }
.hero h1 { max-width: 850px; margin: 0; font-size: clamp(64px, 10vw, 148px); line-height: .84; font-weight: 800; letter-spacing: 0; }
.hero-copy { max-width: 650px; margin: 34px 0 0; font-size: clamp(18px, 2vw, 25px); line-height: 1.45; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); font-size: 14px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; }
.button-primary { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.button-ghost { background: rgba(10,20,27,.24); }
.hero-facts { width: 100%; margin: auto 0 0; padding-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.28); }
.hero-facts div { padding-right: 28px; }
.hero-facts dt { font-size: 22px; font-weight: 800; }
.hero-facts dd { margin: 3px 0 0; color: rgba(255,255,255,.65); font-size: 13px; }

.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 112px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .55fr); gap: 80px; align-items: end; margin-bottom: 48px; }
.section-head.compact { margin-bottom: 32px; }
.section-kicker { color: var(--blue); }
.section h2, .contact-section h2 { margin: 0; font-size: clamp(38px, 5.2vw, 72px); line-height: 1.03; font-weight: 800; }
.section-head > p { margin: 0; color: var(--ink-soft); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.project-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.project-featured { grid-column: span 2; display: grid; grid-template-columns: 1.35fr .65fr; }
.project-media { position: relative; display: block; overflow: hidden; min-height: 310px; background: #e4e5e6; }
.project-featured .project-media { min-height: 520px; }
.project-media img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.project-card:hover .project-media img { transform: scale(1.02); }
.open-project { position: absolute; right: 18px; top: 18px; display: grid; place-items: center; width: 46px; height: 46px; color: var(--ink); background: var(--accent); border-radius: 50%; transition: transform .2s ease; }
.project-card:hover .open-project { transform: rotate(8deg); }
.open-project svg { width: 20px; }
.project-body { padding: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.project-meta { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-family: "Source Code Pro", monospace; font-size: 11px; text-transform: uppercase; }
.project-body h3 { margin: 24px 0 12px; font-size: clamp(25px, 3vw, 38px); line-height: 1.08; }
.project-body > p { margin: 0; color: var(--ink-soft); }
.stack-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 28px; padding: 0; list-style: none; }
.stack-list li { padding: 6px 9px; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-soft); font-family: "Source Code Pro", monospace; font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 800; }
.text-link svg { width: 16px; }

.about-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; border-top: 1px solid var(--line); }
.about-intro { position: sticky; top: 110px; align-self: start; }
.about-copy .lead { margin: 0 0 24px; font-size: clamp(24px, 3vw, 38px); line-height: 1.3; font-weight: 600; }
.about-copy > p:not(.lead) { max-width: 760px; color: var(--ink-soft); }
.capability-grid { margin-top: 48px; border-top: 1px solid var(--line); }
.capability-grid > div { display: grid; grid-template-columns: 48px 210px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.capability-grid span { color: var(--blue); font-family: "Source Code Pro", monospace; font-size: 12px; }
.capability-grid strong { font-size: 15px; }
.capability-grid p { margin: 0; color: var(--ink-soft); font-size: 14px; }

.experience-section { border-top: 1px solid var(--line); }
.timeline { border-top: 1px solid var(--ink); }
.timeline-row { display: grid; grid-template-columns: 170px 1fr 1.2fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-row time { font-family: "Source Code Pro", monospace; font-size: 12px; }
.timeline-row h3 { margin: 0; font-size: 22px; }
.timeline-row .company { margin: 5px 0 0; color: var(--blue); font-size: 13px; font-weight: 700; }
.timeline-row > p { margin: 0; color: var(--ink-soft); }
.credentials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 64px; background: var(--line); border: 1px solid var(--line); }
.credentials div { padding: 28px; background: var(--surface); }
.credentials span { display: block; margin-bottom: 24px; color: var(--blue); font-family: "Source Code Pro", monospace; font-size: 11px; text-transform: uppercase; }
.credentials strong { display: block; font-size: 20px; }
.credentials p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13px; }

.contact-section { padding: 112px 20px; color: #fff; background: var(--ink); }
.contact-inner { width: min(100%, var(--max)); margin: 0 auto; }
.contact-section .section-kicker { color: var(--accent); }
.contact-section h2 { max-width: 980px; }
.contact-section > div > p:not(.section-kicker) { max-width: 620px; margin: 24px 0 0; color: rgba(255,255,255,.68); font-size: 18px; }
.contact-mail { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 64px; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.28); border-bottom: 1px solid rgba(255,255,255,.28); color: var(--accent); font-size: clamp(28px, 5vw, 64px); font-weight: 800; line-height: 1.1; }
.contact-mail svg { flex: 0 0 auto; width: 44px; height: 44px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 28px; color: rgba(255,255,255,.7); font-size: 13px; }
.contact-links a:hover { color: var(--accent); }
.site-footer { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px max(20px, calc((100% - var(--max)) / 2)); background: #080d11; color: rgba(255,255,255,.62); font-size: 12px; }
.site-footer a { display: inline-flex; align-items: center; gap: 7px; }
.site-footer svg { width: 15px; }

[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .menu-button { display: grid; place-items: center; }
    .site-nav { position: fixed; inset: var(--header) 0 0; padding: 28px 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; color: var(--ink); background: var(--paper); }
    .site-nav.open { display: flex; }
    .site-nav a { min-height: 56px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font-size: 20px; }
    .site-nav .nav-cta { justify-content: center; margin-top: 20px; border: 0; }
    .hero h1 { font-size: clamp(60px, 16vw, 112px); }
    .section-head, .about-section { grid-template-columns: 1fr; gap: 32px; }
    .section-head > p { max-width: 640px; }
    .about-intro { position: static; }
    .project-featured { display: block; grid-column: span 2; }
    .project-featured .project-media { min-height: 420px; }
    .timeline-row { grid-template-columns: 130px 1fr; }
    .timeline-row > p { grid-column: 2; }
    .credentials { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    :root { --header: 64px; }
    .nav-wrap, .hero-content, .section { width: min(calc(100% - 28px), var(--max)); }
    .brand > span:last-child { display: none; }
    .hero { min-height: 760px; }
    .hero-content { min-height: 760px; padding-top: calc(var(--header) + 48px); }
    .hero h1 { font-size: clamp(54px, 18vw, 88px); }
    .hero-copy { margin-top: 26px; font-size: 18px; }
    .hero-actions { width: 100%; }
    .button { flex: 1 1 auto; }
    .hero-facts { gap: 16px; }
    .hero-facts div { padding: 0; }
    .hero-facts dt { font-size: 17px; }
    .hero-facts dd { font-size: 11px; }
    .section { padding: 80px 0; }
    .section-head { margin-bottom: 32px; }
    .project-grid { grid-template-columns: 1fr; gap: 18px; }
    .project-featured { grid-column: auto; }
    .project-media, .project-featured .project-media { min-height: 250px; }
    .project-body { padding: 22px; }
    .project-body h3 { font-size: 27px; }
    .capability-grid > div { grid-template-columns: 36px 1fr; }
    .capability-grid p { grid-column: 2; }
    .timeline-row { grid-template-columns: 1fr; gap: 8px; }
    .timeline-row > p { grid-column: 1; margin-top: 8px; }
    .contact-section { padding: 80px 14px; }
    .contact-mail { align-items: flex-end; overflow-wrap: anywhere; }
    .contact-mail svg { width: 30px; height: 30px; }
    .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
}
