@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #f3eee7;
    --muted: #aaa29a;
    --paper: #101010;
    --surface: #1b1a19;
    --line: #3a3734;
    --lime: #ffb06e;
    --forest: #080808;
    --orange: #f07843;
    --shadow: 0 18px 50px rgba(0, 0, 0, .3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: 'Manrope', sans-serif; line-height: 1.6; }
body::before { background-image: linear-gradient(rgba(240, 120, 67, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(240, 120, 67, .035) 1px, transparent 1px); background-size: 34px 34px; content: ''; inset: 0; pointer-events: none; position: fixed; z-index: -1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { background: var(--lime); left: 1rem; padding: .6rem 1rem; position: absolute; top: -4rem; z-index: 20; }
.skip-link:focus { top: 1rem; }
.site-header { align-items: center; background: rgba(16, 16, 16, .94); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 1.15rem 5vw; position: sticky; top: 0; z-index: 10; }
.brand { align-items: center; display: inline-flex; font-size: .95rem; font-weight: 800; gap: .7rem; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { align-items: center; background: var(--forest); border: 1px solid var(--orange); color: var(--lime); display: inline-flex; font-family: 'DM Mono', monospace; height: 2.25rem; justify-content: center; width: 2.25rem; }
.brand small { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .67rem; font-weight: 400; letter-spacing: .08em; }
.site-nav { align-items: center; display: flex; gap: 1.6rem; }
.site-nav a { color: var(--muted); font-size: .84rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current='page'] { color: var(--ink); }
.menu-toggle { background: transparent; border: 1px solid var(--line); color: var(--ink); display: none; font-size: 1.2rem; height: 2.6rem; width: 2.6rem; }
.container { margin: 0 auto; max-width: 1160px; padding: 7rem 5vw; }
.hero { align-items: center; display: grid; gap: 4rem; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); min-height: calc(100vh - 76px); padding-bottom: 6rem; padding-top: 6rem; }
.eyebrow { color: var(--orange); font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { font-size: clamp(3.3rem, 8vw, 7rem); letter-spacing: -.09em; line-height: .95; margin: 1.4rem 0 1.6rem; max-width: 790px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero-visual { display: grid; gap: 1.2rem; }
.hero-portrait { aspect-ratio: 4 / 5; border: 1px solid var(--line); filter: grayscale(.15) contrast(1.05); object-fit: cover; width: 100%; }
.hero-copy { color: var(--muted); font-size: 1.1rem; max-width: 590px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { align-items: center; border: 1px solid var(--orange); display: inline-flex; font-size: .82rem; font-weight: 800; gap: .6rem; justify-content: center; min-height: 3.1rem; padding: .8rem 1.2rem; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { box-shadow: 5px 5px 0 var(--orange); transform: translate(-2px, -2px); }
.button-primary { background: var(--orange); border-color: var(--orange); color: #120d09; }
.button-secondary { background: transparent; color: var(--ink); }
.hero-note { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 1.8rem; transform: rotate(1deg); }
.hero-note::before { color: var(--lime); content: '01 / NOW'; font-family: 'DM Mono', monospace; font-size: .7rem; }
.hero-note h2 { color: var(--lime); font-size: 2rem; letter-spacing: -.06em; line-height: 1; margin: 2rem 0 1rem; }
.hero-note p { color: var(--muted); font-size: .9rem; }
.hero-note .mono { border-top: 1px solid var(--line); color: var(--muted); font-family: 'DM Mono', monospace; font-size: .7rem; margin-top: 2rem; padding-top: 1rem; }
.section-intro { align-items: end; display: flex; justify-content: space-between; margin-bottom: 2.5rem; }
.section-intro h2, .page-heading h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); letter-spacing: -.08em; line-height: 1; margin-top: .6rem; }
.section-intro p { color: var(--muted); max-width: 400px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.about-preview { display: grid; gap: 3rem; grid-template-columns: .8fr 1.2fr; }
.portrait { aspect-ratio: 1 / 1; filter: saturate(.8); object-fit: cover; width: 100%; }
.about-preview h3 { font-size: 1.6rem; letter-spacing: -.05em; margin-bottom: 1rem; }
.about-preview p, .prose p { color: var(--muted); margin-bottom: 1rem; }
.inline-link { color: var(--orange); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.stats { border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3rem; }
.stat { border-right: 1px solid var(--line); padding: 1.2rem 1rem 1.2rem 0; }
.stat:last-child { border-right: 0; padding-left: 1rem; }
.stat strong { display: block; font-size: 1.5rem; letter-spacing: -.06em; }
.stat span { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .66rem; text-transform: uppercase; }
.project-grid, .review-grid, .cert-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project-card, .review-card, .cert-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.project-card { display: flex; flex-direction: column; }
.project-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.project-meta { color: var(--orange); font-family: 'DM Mono', monospace; font-size: .68rem; text-transform: uppercase; }
.project-body h3 { font-size: 1.65rem; letter-spacing: -.06em; margin: .5rem 0; }
.project-body p { color: var(--muted); font-size: .9rem; }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0; }
.tags span { border: 1px solid var(--line); color: var(--lime); font-family: 'DM Mono', monospace; font-size: .65rem; padding: .35rem .55rem; }
.project-links { display: flex; gap: 1rem; margin-top: auto; padding-top: 1rem; }
.project-links a { color: var(--orange); font-size: .78rem; font-weight: 800; text-underline-offset: 4px; }
.project-card.featured { grid-column: span 2; }
.project-card.featured .project-image { aspect-ratio: 2.2 / 1; }
.band { background: #070707; color: var(--ink); }
.band .section-intro p, .band .eyebrow { color: var(--muted); }
.band .section-intro h2 { color: var(--lime); }
.capability-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(4, 1fr); }
.capability { border-left: 1px solid rgba(255,255,255,.24); min-width: 0; padding: 1rem 1.5rem; }
.capability:first-child { padding-left: 0; }
.capability h3 { color: var(--lime); font-size: 1rem; margin-bottom: .5rem; }
.capability p { color: var(--muted); font-size: .83rem; }
.review-card { padding: 1.5rem; }
.review-card blockquote { font-size: 1.05rem; letter-spacing: -.02em; }
.review-card cite { color: var(--muted); display: block; font-family: 'DM Mono', monospace; font-size: .7rem; font-style: normal; margin-top: 1.4rem; text-transform: uppercase; }
.review-note { background: #d7b18f; color: #17110d; padding: 1.5rem; }
.review-note h3 { font-size: 1.7rem; letter-spacing: -.06em; line-height: 1.05; }
.review-note p { color: #3d2a20; font-size: .85rem; margin-top: 1rem; }
.review-note .inline-link { color: #7c2f19; }
.page-heading { max-width: 750px; padding-bottom: 3rem; padding-top: 7rem; }
.page-heading p { color: var(--muted); font-size: 1.1rem; margin-top: 1.3rem; max-width: 620px; }
.about-layout { display: grid; gap: 4rem; grid-template-columns: .75fr 1.25fr; }
.about-layout .portrait { max-height: 520px; }
.timeline { border-left: 1px solid var(--line); display: grid; gap: 2rem; padding-left: 1.5rem; }
.timeline article { padding-bottom: .3rem; }
.timeline article::before { background: var(--orange); content: ''; display: block; height: .6rem; margin-left: -1.8rem; position: absolute; width: .6rem; }
.timeline article { position: relative; }
.timeline h3 { font-size: 1.1rem; letter-spacing: -.03em; }
.timeline span { color: var(--orange); font-family: 'DM Mono', monospace; font-size: .68rem; }
.cert-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cert-card { overflow: hidden; }
.cert-card img { background: #f7f4ee; height: 340px; object-fit: contain; padding: .75rem; width: 100%; }
.cert-card div { padding: 1rem; }
.cert-card h3 { font-size: .95rem; line-height: 1.25; }
.cert-card p { color: var(--muted); font-size: .76rem; margin-top: .35rem; }
.contact-layout { display: grid; gap: 4rem; grid-template-columns: .8fr 1.2fr; }
.contact-details h2 { font-size: 2.4rem; letter-spacing: -.07em; line-height: 1; margin: 1rem 0; }
.contact-details p { color: var(--muted); }
.contact-list { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-list a { font-family: 'DM Mono', monospace; font-size: .75rem; text-underline-offset: 4px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; }
.contact-form label { display: grid; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .68rem; gap: .4rem; margin-bottom: 1rem; text-transform: uppercase; }
.contact-form input, .contact-form textarea { background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: inherit; padding: .85rem; width: 100%; }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--forest); outline: 3px solid rgba(196, 227, 107, .65); }
.feedback-form { background: var(--surface); border: 1px solid var(--line); padding: 1.5rem; }
.feedback-form label { display: grid; color: var(--muted); font-family: 'DM Mono', monospace; font-size: .68rem; gap: .4rem; margin-bottom: 1rem; text-transform: uppercase; }
.feedback-form input, .feedback-form textarea { background: var(--paper); border: 1px solid var(--line); color: var(--ink); font: inherit; padding: .85rem; width: 100%; }
.feedback-form textarea { min-height: 145px; resize: vertical; }
.feedback-form input:focus, .feedback-form textarea:focus { border-color: var(--forest); outline: 3px solid rgba(184, 201, 154, .7); }
.feedback-form small { color: var(--muted); display: block; font-size: .75rem; margin: -0.4rem 0 1rem; }
.guide-shell { display: grid; gap: 1.5rem; grid-template-columns: .75fr 1.25fr; }
.guide-topics { display: grid; gap: .6rem; align-content: start; }
.guide-topic { background: transparent; border: 1px solid var(--line); color: var(--forest); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 800; padding: .9rem 1rem; text-align: left; }
.guide-topic:hover, .guide-topic.active { background: var(--forest); color: var(--lime); }
.guide-chat { background: var(--forest); color: #e9ebe4; min-height: 430px; padding: 1.5rem; }
.guide-chat-head { border-bottom: 1px solid rgba(233, 235, 228, .2); display: flex; justify-content: space-between; padding-bottom: 1rem; }
.guide-chat-head span { color: var(--lime); font-family: 'DM Mono', monospace; font-size: .68rem; }
.guide-messages { display: grid; gap: 1rem; padding: 1.5rem 0; }
.guide-message { font-size: .9rem; max-width: 85%; padding: .85rem 1rem; }
.guide-message.assistant { background: rgba(233, 235, 228, .12); }
.guide-message.user { background: var(--lime); color: var(--ink); justify-self: end; }
.guide-form { display: flex; gap: .6rem; margin-top: auto; }
.guide-form input { background: rgba(233, 235, 228, .1); border: 1px solid rgba(233, 235, 228, .3); color: #e9ebe4; flex: 1; font: inherit; min-width: 0; padding: .8rem; }
.guide-form input::placeholder { color: #bec8c0; }
.guide-form button { background: var(--lime); border: 0; color: var(--ink); cursor: pointer; font-weight: 800; padding: .8rem 1rem; }
.site-assistant { bottom: 1.25rem; position: fixed; right: 1.25rem; z-index: 15; }
.assistant-toggle { align-items: center; background: var(--orange); border: 1px solid var(--orange); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); color: #160d08; cursor: pointer; display: inline-flex; font: inherit; font-size: .78rem; font-weight: 800; gap: .55rem; padding: .85rem 1rem; }
.assistant-toggle-mark { font-size: 1.1rem; }
.assistant-panel { background: var(--surface); border: 1px solid var(--line); bottom: 3.6rem; box-shadow: 0 18px 45px rgba(39, 51, 46, .18); display: grid; gap: 1rem; padding: 1.15rem; position: absolute; right: 0; width: min(360px, calc(100vw - 2rem)); }
.assistant-panel[hidden] { display: none; }
.assistant-header { align-items: start; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding-bottom: .8rem; }
.assistant-kicker { color: var(--orange); font-family: 'DM Mono', monospace; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.assistant-header h2 { font-size: 1.35rem; letter-spacing: -.05em; margin-top: .2rem; }
.assistant-close { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.assistant-messages { display: grid; gap: .7rem; max-height: 220px; overflow-y: auto; }
.assistant-message { font-size: .8rem; line-height: 1.5; margin: 0; padding: .7rem .8rem; }
.assistant-message-bot { background: rgba(48, 72, 61, .09); }
.assistant-message-user { background: var(--lime); justify-self: end; max-width: 85%; }
.assistant-action { color: var(--orange); display: block; font-weight: 800; margin-top: .55rem; text-underline-offset: 3px; }
.assistant-prompts { display: flex; flex-wrap: wrap; gap: .45rem; }
.assistant-prompts button { background: transparent; border: 1px solid var(--line); color: var(--orange); cursor: pointer; font: inherit; font-size: .68rem; padding: .45rem .55rem; }
.assistant-prompts button:hover { background: var(--orange); color: #160d08; }
.assistant-form { display: flex; gap: .45rem; }
.assistant-form input { background: var(--paper); border: 1px solid var(--line); color: var(--ink); flex: 1; font: inherit; font-size: .78rem; min-width: 0; padding: .65rem; }
.assistant-form button { background: var(--forest); border: 0; color: var(--lime); cursor: pointer; font-size: 1rem; padding: .4rem .75rem; }
.assistant-note { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .6rem; margin: 0; }
.resume-page { background: #f7f8f5; box-shadow: var(--shadow); color: #17221d; margin: 4rem auto; max-width: 940px; padding: 3.4rem 4rem; }
.resume-loading { color: var(--muted); }
.resume-header { border-bottom: 2px solid #17221d; padding-bottom: 1.2rem; }
.resume-header h1 { font-size: 2.7rem; letter-spacing: -.07em; line-height: 1; }
.resume-headline { color: #30483d; font-size: .95rem; font-weight: 700; margin-top: .45rem; }
.resume-contact { color: var(--muted); display: flex; flex-wrap: wrap; font-family: 'DM Mono', monospace; font-size: .68rem; gap: .45rem 1rem; margin-top: .8rem; }
.resume-contact a { text-underline-offset: 3px; }
.resume-layout { display: grid; gap: 2rem; grid-template-columns: 1.45fr .75fr; margin-top: 1.8rem; }
.resume-section { margin-bottom: 1.8rem; }
.resume-section h2 { border-bottom: 1px solid #c9cec8; color: #30483d; font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .1em; margin-bottom: .9rem; padding-bottom: .35rem; text-transform: uppercase; }
.resume-summary { color: var(--ink); font-size: .9rem; line-height: 1.65; }
.resume-entry { margin-bottom: 1.25rem; }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry-heading { align-items: baseline; display: flex; gap: 1rem; justify-content: space-between; }
.resume-entry h3 { font-size: .98rem; letter-spacing: -.02em; }
.resume-period { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .65rem; white-space: nowrap; }
.resume-entry-company { color: var(--orange); font-size: .78rem; font-weight: 700; margin: .15rem 0 .35rem; }
.resume-entry p, .resume-project p, .resume-education p { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.resume-skill-group { margin-bottom: .85rem; }
.resume-skill-group h3 { font-size: .78rem; margin-bottom: .25rem; }
.resume-skill-group p { color: var(--muted); font-size: .76rem; line-height: 1.55; }
.resume-project { margin-bottom: 1rem; }
.resume-project h3 { font-size: .88rem; }
.resume-project h3 a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.resume-project-meta { color: var(--orange); font-family: 'DM Mono', monospace; font-size: .62rem; text-transform: uppercase; }
.resume-education h3 { font-size: .84rem; }
.resume-cert-list { color: var(--muted); font-size: .76rem; line-height: 1.6; list-style: none; }
.resume-cert-list li { margin-bottom: .4rem; }
.resume-cert-list span { color: var(--orange); font-family: 'DM Mono', monospace; font-size: .62rem; }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 1.5rem 5vw; }
.site-footer p, .site-footer a { color: var(--muted); font-family: 'DM Mono', monospace; font-size: .66rem; text-decoration: none; text-transform: uppercase; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 760px) {
    .reveal { opacity: 1; transform: none; }
    .site-header { padding: 1rem 5vw; }
    .menu-toggle { display: block; }
    .site-nav { background: var(--surface); border-bottom: 1px solid var(--line); display: none; flex-direction: column; gap: 1.2rem; left: 0; padding: 1.5rem 5vw; position: absolute; right: 0; top: 100%; }
    .site-nav.open { display: flex; }
    .hero, .about-layout, .about-preview, .contact-layout { grid-template-columns: 1fr; }
    .hero { gap: 2.5rem; min-height: auto; padding-bottom: 5rem; padding-top: 5rem; }
    .hero-visual { order: -1; }
    .hero h1 { font-size: clamp(3rem, 16vw, 5rem); }
    .hero-note { max-width: 340px; }
    .guide-shell { grid-template-columns: 1fr; }
    .section-intro { align-items: start; flex-direction: column; gap: 1rem; }
    .project-grid, .review-grid, .cert-grid { grid-template-columns: 1fr; }
    .project-card.featured { grid-column: auto; }
    .project-card.featured .project-image { aspect-ratio: 16 / 9; }
    .capability-grid { gap: 1rem; grid-template-columns: repeat(2, 1fr); }
    .capability { padding: 1rem; }
    .capability:nth-child(odd) { padding-left: 0; }
    .stats { grid-template-columns: 1fr; }
    .stat, .stat:last-child { border-bottom: 1px solid var(--line); border-right: 0; padding: 1rem 0; }
    .stat:last-child { border-bottom: 0; }
    .site-footer { align-items: start; flex-direction: column; gap: .7rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media print { .site-assistant { display: none; } }
@media (max-width: 760px) {
    .resume-page { margin: 1.5rem 5vw; padding: 2rem 1.25rem; }
    .resume-layout { grid-template-columns: 1fr; }
    .resume-entry-heading { align-items: start; flex-direction: column; gap: .15rem; }
    .resume-period { white-space: normal; }
}
@media print {
    @page { margin: .55in; size: A4; }
    body.resume-site { background: #fff; }
    body.resume-site::before, .resume-controls { display: none; }
    .resume-page { box-shadow: none; margin: 0; max-width: none; padding: 0; }
    .resume-page, .resume-page * { color: #17221d !important; }
    .resume-header { border-color: #17221d; }
    .resume-section h2, .resume-project-meta, .resume-entry-company { color: #30483d !important; }
    .resume-entry, .resume-project, .resume-education { break-inside: avoid; }
}