:root {
    --cream: #f7f1e8;
    --paper: #fffaf3;
    --ink: #1e1b18;
    --muted: #706b65;
    --coral: #df705c;
    --peach: #f1b49f;
    --sage: #a8b3a3;
    --line: rgba(30, 27, 24, .16);
    --serif: "DM Serif Display", Georgia, serif;
    --sans: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-pad { padding: 130px 0; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 12px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 20px; }

.site-header { position: absolute; width: 100%; top: 0; z-index: 50; }
.nav { height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.03em; font-size: 1.08rem; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--serif); font-weight: 400; font-size: .82rem; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: .9rem; font-weight: 600; }
.nav-links > a:not(.nav-cta) { position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s; }
.nav-links > a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 11px 20px; border: 1px solid var(--ink); border-radius: 999px; transition: .25s; }
.nav-cta:hover { background: var(--ink); color: white; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); margin: 6px auto; transition: .25s; }

.hero { min-height: 100vh; padding-top: 150px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; position: relative; }
.hero-copy { padding: 60px 0 105px; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; text-transform: uppercase; font-size: .72rem; font-weight: 700; letter-spacing: .17em; }
.eyebrow span { width: 25px; height: 1px; background: var(--coral); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-family: var(--serif); font-size: clamp(4.4rem, 8.2vw, 7.7rem); line-height: .82; letter-spacing: -.055em; font-weight: 400; }
h1 em, h2 em { color: var(--coral); font-weight: 400; }
.hero-intro { max-width: 560px; margin-bottom: 34px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 190px; gap: 30px; border: 0; border-radius: 999px; padding: 16px 21px; cursor: pointer; font-weight: 600; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-light { background: white; color: var(--ink); width: 100%; }
.text-link { border-bottom: 1px solid var(--ink); padding-bottom: 4px; font-size: .93rem; font-weight: 600; }
.text-link span { margin-left: 8px; }

.hero-visual { height: 650px; position: relative; display: grid; place-items: center; }
.portrait-card { width: min(430px, 88%); aspect-ratio: .74; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--peach); border-radius: 220px 220px 20px 20px; box-shadow: 0 35px 70px rgba(71, 46, 34, .14); }
.portrait-card::before { content: ""; position: absolute; inset: 11%; border: 1px solid rgba(255,255,255,.48); border-radius: inherit; }
.portrait-card::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--coral); opacity: .34; filter: blur(1px); }
.portrait-initials { z-index: 2; font-family: var(--serif); font-size: 9rem; line-height: 1; color: var(--paper); letter-spacing: -.1em; transform: translateX(-.08em); text-shadow: 0 8px 30px rgba(85, 38, 24, .13); }
.portrait-note { position: absolute; z-index: 3; left: 38px; bottom: 28px; margin: 0; color: rgba(30,27,24,.7); font-size: .75rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.portrait-orbit { position: absolute; z-index: 1; border: 1px solid rgba(255,255,255,.58); border-radius: 50%; }
.orbit-one { width: 420px; height: 155px; transform: rotate(-35deg); }
.orbit-two { width: 330px; height: 480px; transform: rotate(32deg); }
.floating-card { position: absolute; z-index: 4; background: var(--paper); box-shadow: 0 15px 40px rgba(55, 41, 32, .15); border-radius: 12px; padding: 15px 20px; font-size: .78rem; line-height: 1.3; }
.floating-card strong, .floating-card span { display: block; }
.floating-card strong { font-size: .86rem; }
.floating-card span { color: var(--muted); }
.card-experience { left: 0; bottom: 105px; transform: rotate(-5deg); }
.card-focus { right: 0; top: 145px; transform: rotate(5deg); display: flex; align-items: center; gap: 9px; }
.card-focus .spark { color: var(--coral); font-size: 1.1rem; }
.hero-foot { position: absolute; bottom: 27px; left: 0; width: 100%; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: .69rem; text-transform: uppercase; letter-spacing: .13em; }
.scroll-line { height: 1px; width: 54px; background: var(--ink); }
.hero-foot span:last-child { margin-left: auto; }

.section-label { display: flex; align-items: center; gap: 11px; height: max-content; font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.section-label span { color: var(--coral); }
.statement { background: var(--paper); }
.statement-grid, .skills-grid { display: grid; grid-template-columns: 220px 1fr; gap: 80px; }
.statement-copy h2, .journey h2, .contact h2 { max-width: 850px; font-family: var(--serif); font-size: clamp(3rem, 5.6vw, 5.5rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.about-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 55px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.facts span { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; }

.work { background: #e8e1d7; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 55px; }
.section-head > p { max-width: 340px; margin: 0; color: var(--muted); }
.project { background: var(--paper); }
.project-featured { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 560px; }
.project-visual { min-height: 330px; position: relative; overflow: hidden; }
.hostangle-visual { display: grid; place-items: center; background: #bdd2d5; padding: 60px; }
.browser-frame { width: 94%; max-width: 630px; border-radius: 11px; overflow: hidden; transform: rotate(-2deg); box-shadow: 0 30px 65px rgba(29, 55, 59, .2); background: white; }
.browser-bar { height: 30px; padding: 11px; display: flex; gap: 5px; background: #e9eeee; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #aebcbc; }
.browser-content { min-height: 305px; padding: 48px; color: white; background: linear-gradient(145deg, #182c42, #295d80); }
.browser-content strong { display: block; margin-top: 15px; font-family: var(--serif); font-size: 3.1rem; line-height: .95; font-weight: 400; }
.mini-kicker { font-size: .65rem; letter-spacing: .2em; }
.mini-pills { display: flex; gap: 8px; margin-top: 35px; }
.mini-pills span { padding: 6px 10px; border: 1px solid rgba(255,255,255,.4); border-radius: 50px; font-size: .6rem; }
.project-copy { padding: 60px; position: relative; }
.project-number { position: absolute; top: 30px; right: 34px; color: var(--coral); font-family: var(--serif); font-size: 1.1rem; }
.project-type { margin-bottom: 40px; color: var(--coral); font-size: .7rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 700; }
.project-copy h3 { margin-bottom: 18px; font-family: var(--serif); font-size: 3rem; line-height: 1; font-weight: 400; }
.project-copy > p:not(.project-type) { color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 25px 0 40px; list-style: none; }
.tag-list li { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: .67rem; }
.project-link { display: inline-flex; justify-content: space-between; gap: 28px; padding-bottom: 5px; border-bottom: 1px solid var(--ink); font-size: .83rem; font-weight: 700; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.project-small .project-copy { min-height: 320px; }
.anglecloud-visual { display: grid; place-items: center; background: #212e48; }
.cloud-shape { position: absolute; border-radius: 50%; background: #7496d2; filter: blur(1px); }
.cloud-a { width: 270px; height: 270px; top: -120px; right: -30px; opacity: .5; }
.cloud-b { width: 200px; height: 200px; left: -50px; bottom: -100px; background: #7ec1b8; opacity: .35; }
.cloud-panel { z-index: 2; width: 67%; padding: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; color: white; backdrop-filter: blur(8px); background: rgba(255,255,255,.08); }
.cloud-panel span { font-size: .58rem; letter-spacing: .2em; }
.cloud-panel strong { display: block; margin: 15px 0 24px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.server-lines { display: grid; gap: 8px; }
.server-lines i { height: 5px; border-radius: 5px; background: rgba(255,255,255,.25); }
.server-lines i:nth-child(2) { width: 75%; }
.server-lines i:nth-child(3) { width: 45%; }
.modules-visual { display: grid; place-content: center; gap: 40px; text-align: center; background: #d9a695; }
.module-stack { height: 120px; position: relative; display: grid; place-items: center; }
.module-stack span { position: absolute; display: grid; place-items: center; width: 110px; height: 110px; border-radius: 26px; background: var(--ink); color: white; font-family: var(--serif); font-size: 2rem; box-shadow: 0 20px 30px rgba(83,38,30,.2); }
.module-stack span:nth-child(1) { transform: translateX(-82px) rotate(-13deg); opacity: .55; }
.module-stack span:nth-child(2) { transform: translateX(82px) rotate(13deg); opacity: .75; }
.modules-visual p { margin: 0; color: #3b2721; font-family: var(--serif); font-size: 1.3rem; }

.skills { background: var(--ink); color: white; }
.skills .section-label { color: rgba(255,255,255,.7); }
.skill-list { border-top: 1px solid rgba(255,255,255,.2); }
.skill-row { display: grid; grid-template-columns: 55px .8fr 1fr; gap: 30px; align-items: center; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.skill-row > span { color: var(--coral); font-family: var(--serif); }
.skill-row h3 { margin: 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.skill-row p { margin: 0; color: rgba(255,255,255,.58); }

.journey { background: var(--paper); }
.journey .section-head { align-items: flex-start; }
.journey .section-head h2 { margin: 0; width: 70%; }
.timeline { max-width: 930px; margin-left: auto; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 160px 1fr; gap: 30px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.timeline-year { color: var(--coral); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.timeline-item h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.timeline-item p { margin: 0; color: var(--muted); }

.contact { background: var(--coral); color: white; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 100px; }
.section-label.light span { color: white; opacity: .6; }
.contact h2 { margin-top: 80px; color: white; }
.contact h2 em { color: #4b2923; }
.contact-copy > p { max-width: 450px; color: rgba(255,255,255,.75); }
.contact-email { display: inline-flex; gap: 15px; padding-bottom: 6px; margin-top: 30px; border-bottom: 1px solid rgba(255,255,255,.7); font-weight: 600; }
.contact-form { align-self: end; padding-top: 70px; }
.contact-form label { display: block; margin-bottom: 26px; font-size: .72rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 8px; padding: 11px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.5); border-radius: 0; outline: none; resize: vertical; background: transparent; color: white; text-transform: none; letter-spacing: 0; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.55); }
.contact-form input:focus, .contact-form textarea:focus { border-color: white; }
.hp-field { position: absolute; left: -9999px; }
.form-alert { margin-bottom: 25px; padding: 12px 15px; border-radius: 8px; font-size: .82rem; text-transform: none; letter-spacing: 0; }
.form-alert.success { background: rgba(39, 92, 60, .35); }
.form-alert.error { background: rgba(83, 30, 22, .35); }

.footer { padding: 35px 0; background: var(--ink); color: rgba(255,255,255,.62); font-size: .73rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { color: white; }
.footer-brand .brand-mark { border-color: rgba(255,255,255,.55); }
.footer p { margin: 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 900px) {
    .section-pad { padding: 95px 0; }
    .hero { grid-template-columns: 1fr; padding-top: 135px; }
    .hero-copy { padding: 45px 0; }
    .hero-visual { height: 550px; margin-bottom: 90px; }
    .portrait-card { width: min(410px, 75%); }
    .hero-foot { bottom: 20px; }
    .statement-grid, .skills-grid { grid-template-columns: 1fr; gap: 50px; }
    .project-featured { grid-template-columns: 1fr; }
    .project-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 15px; }
    .contact-form { padding-top: 20px; }
}

@media (max-width: 680px) {
    .shell { width: min(100% - 32px, 1180px); }
    .nav { height: 76px; }
    .nav-toggle { display: block; position: relative; z-index: 4; }
    .nav-toggle.active span:first-child { transform: translateY(3.8px) rotate(45deg); }
    .nav-toggle.active span:last-child { transform: translateY(-3.8px) rotate(-45deg); }
    .nav-links { position: fixed; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; visibility: hidden; opacity: 0; background: var(--cream); font-family: var(--serif); font-size: 2.2rem; transition: .25s; }
    .nav-links.open { visibility: visible; opacity: 1; }
    .nav-cta { font-family: var(--sans); font-size: 1rem; }
    h1 { font-size: clamp(4.2rem, 22vw, 6.2rem); }
    .hero { min-height: auto; }
    .hero-actions { align-items: flex-start; flex-direction: column; }
    .hero-visual { height: 470px; margin-bottom: 80px; }
    .portrait-card { width: 85%; }
    .portrait-initials { font-size: 7rem; }
    .card-experience { left: -4px; bottom: 70px; }
    .card-focus { right: -3px; top: 80px; }
    .hero-foot { display: none; }
    .statement-copy h2, .journey h2, .contact h2 { font-size: 3.15rem; }
    .about-columns { grid-template-columns: 1fr; gap: 5px; }
    .facts { grid-template-columns: 1fr; gap: 20px; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 28px; }
    .project-visual { min-height: 290px; }
    .hostangle-visual { padding: 28px 15px; }
    .browser-content { min-height: 260px; padding: 35px 25px; }
    .browser-content strong { font-size: 2.45rem; }
    .project-copy { padding: 48px 25px; }
    .project-copy h3 { font-size: 2.5rem; }
    .skill-row { grid-template-columns: 38px 1fr; gap: 15px; }
    .skill-row p { grid-column: 2; }
    .journey .section-head h2 { width: 100%; }
    .timeline-item { grid-template-columns: 1fr; gap: 12px; }
    .contact h2 { margin-top: 50px; }
    .footer-inner { flex-direction: column; gap: 22px; text-align: center; }
}
