:root {
  --forest: #173f35;
  --forest-deep: #102f29;
  --forest-soft: #285c4e;
  --cream: #f7f5ef;
  --paper: #fffefa;
  --sand: #e9e1d0;
  --gold: #c7a76c;
  --ink: #1b2824;
  --muted: #6c7771;
  --line: rgba(23, 63, 53, .15);
  --font-body: "DM Sans", sans-serif;
  --font-display: "Manrope", sans-serif;
  --container: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--font-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.section { padding: 112px 0; position: relative; overflow: hidden; }
.skip-link { position: absolute; top: -60px; left: 16px; z-index: 1000; background: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,245,239,.92); border-bottom: 1px solid rgba(23,63,53,.08); backdrop-filter: blur(16px); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.12rem var(--font-display); letter-spacing: -.04em; }
.brand-logo { display: block; width: 66px; height: 66px; object-fit: contain; }
.brand-dot { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: .86rem; font-weight: 600; color: #42514a; }
.nav-links > a:not(.nav-cta) { transition: color .2s ease; }
.nav-links > a:hover { color: var(--gold); }
.nav-cta { padding: 11px 17px; border: 1px solid var(--line); border-radius: 3px; color: var(--forest); }
.nav-cta span { margin-left: 8px; color: var(--gold); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); margin: 5px; transition: transform .2s; }
.hero { min-height: 660px; padding: 82px 0 38px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--forest-soft); font-size: .72rem; letter-spacing: .14em; font-weight: 700; margin: 0 0 22px; }
.eyebrow-line { display: inline-block; width: 27px; height: 1px; background: var(--gold); }
.hero h1 { font: 800 clamp(2.8rem, 5.4vw, 5rem)/1.08 var(--font-display); letter-spacing: -.065em; margin: 0; color: var(--forest-deep); }
.hero h1 span, .section-heading h2 span, .contact-copy h2 span { color: #9c8354; }
.hero-description { max-width: 550px; margin: 26px 0 30px; font-size: 1.06rem; color: #65716b; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 49px; padding: 0 21px; border: 1px solid transparent; border-radius: 3px; font-size: .86rem; font-weight: 700; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--forest); color: white; }
.button-primary:hover { background: var(--forest-soft); }
.button-primary span { color: #e3c88f; font-size: 1.1rem; }
.button-secondary { border-color: rgba(23,63,53,.25); color: var(--forest); background: transparent; }
.button-secondary:hover { border-color: var(--forest); }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 32px; color: #78817c; font-size: .78rem; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #76a88b; box-shadow: 0 0 0 4px rgba(118,168,139,.13); margin-right: 2px; }
.meta-divider { color: var(--gold); margin: 0 4px; }
.hero-visual { min-height: 470px; position: relative; display: grid; place-items: center; }
.portrait-frame { width: min(350px, 78%); height: 410px; padding: 12px; border: 1px solid rgba(199,167,108,.65); position: relative; transform: rotate(2deg); background: rgba(255,254,250,.35); }
.profile-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 28%; }
.frame-corner { position: absolute; width: 34px; height: 34px; border-color: var(--gold); border-style: solid; }
.corner-tl { top: -7px; left: -7px; border-width: 2px 0 0 2px; }
.corner-br { bottom: -7px; right: -7px; border-width: 0 2px 2px 0; }
.floating-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 17px; background: var(--paper); box-shadow: 0 14px 40px rgba(16,47,41,.1); border: 1px solid rgba(23,63,53,.07); border-radius: 4px; }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font: 700 .79rem var(--font-display); color: var(--forest); }
.floating-card small { color: #849089; font-size: .67rem; margin-top: 2px; }
.card-top { top: 10px; right: -2px; }
.card-bottom { bottom: 55px; left: -12px; }
.mini-icon, .mini-check { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #f2ead9; color: #9c8354; font-size: 1rem; }
.mini-check { background: #e2eee5; color: var(--forest); }
.visual-caption { position: absolute; right: -1px; bottom: 9px; font-size: .64rem; letter-spacing: .18em; color: #8b938d; }
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.orb-one { width: 460px; height: 460px; right: -180px; top: -200px; border: 1px solid rgba(199,167,108,.18); }
.orb-two { width: 260px; height: 260px; right: -80px; top: -100px; border: 1px solid rgba(199,167,108,.15); }
.hero-bottom { display: flex; align-items: center; gap: 18px; margin-top: 36px; color: #929a94; font-size: .63rem; letter-spacing: .15em; }
.scroll-line { width: 58px; height: 1px; background: var(--gold); }
.hero-bottom span:last-child { margin-left: auto; }
.intro-strip { background: var(--forest); color: #e9e6d9; padding: 19px 0; overflow: hidden; }
.strip-inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; white-space: nowrap; font-size: .68rem; letter-spacing: .15em; font-weight: 600; }
.strip-inner i { color: var(--gold); font-style: normal; font-size: 1rem; }
.section-light { background: var(--paper); }
.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.section-heading h2, .contact-copy h2 { font: 800 clamp(2.2rem, 4vw, 3.7rem)/1.15 var(--font-display); letter-spacing: -.06em; margin: 0; color: var(--forest-deep); }
.about-copy { padding-top: 10px; max-width: 610px; }
.about-copy p { color: #69746e; font-size: .96rem; line-height: 1.9; margin: 0 0 18px; }
.about-copy .lead { font: 600 1.25rem/1.6 var(--font-display); color: var(--forest); letter-spacing: -.025em; }
.text-link { display: inline-flex; align-items: center; gap: 13px; margin-top: 9px; color: var(--forest); font-size: .84rem; font-weight: 700; border-bottom: 1px solid rgba(199,167,108,.65); padding-bottom: 6px; }
.text-link span { color: #a68a56; font-size: 1.05rem; transition: transform .2s; }
.text-link:hover span { transform: translate(3px,-3px); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 74px; }
.value-card { border-top: 1px solid var(--line); padding: 22px 18px 0 0; }
.value-number { color: #aa905e; font: 700 .75rem var(--font-display); letter-spacing: .08em; }
.value-card h3 { margin: 13px 0 8px; font: 700 1.1rem var(--font-display); color: var(--forest); }
.value-card p { color: #737d77; font-size: .86rem; margin: 0; line-height: 1.8; }
.section-dark { background: var(--forest-deep); color: var(--cream); }
.section-heading-light h2 { color: var(--cream); }
.section-heading-light h2 span { color: #d0b57d; }
.section-heading-light .eyebrow { color: #d1bd91; }
.section-intro { max-width: 470px; color: #788a81; margin: 20px 0 0; font-size: .93rem; line-height: 1.8; }
.skills-layout { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 58px; }
.skill-group { padding-top: 24px; border-top: 1px solid rgba(247,245,239,.18); }
.skill-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.skill-icon { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(199,167,108,.45); color: #d0b57d; font-size: 1.15rem; }
.skill-group h3 { font: 700 1.02rem var(--font-display); margin: 0; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span { border: 1px solid rgba(247,245,239,.16); border-radius: 2px; color: #c3cec7; padding: 7px 10px; font-size: .74rem; }
.project-heading { display: flex; justify-content: space-between; align-items: end; gap: 45px; }
.project-heading .section-intro { max-width: 370px; margin: 0 0 6px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 24px; margin-top: 55px; }
.project-card { min-width: 0; }
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.project-art { height: 265px; position: relative; overflow: hidden; padding: 0; }
.project-featured .project-art { height: 345px; }
.art-forest { background: #dce5d9; }
.art-sand { background: #e6dece; }
.art-blue { background: #dce5e5; display: grid; place-items: center; }
.browser-top { position: absolute; top: 0; left: 0; right: 0; height: 31px; background: rgba(255,254,250,.86); display: flex; align-items: center; gap: 5px; padding: 0 12px; z-index: 2; }
.browser-top > span { width: 5px; height: 5px; border-radius: 50%; background: #b3b9af; }
.browser-top small { margin-left: 8px; color: #7c8980; font-size: .57rem; }
.mock-content { position: absolute; left: 12%; top: 28%; color: var(--forest); z-index: 1; }
.mock-kicker { display: block; font-size: .52rem; letter-spacing: .15em; margin-bottom: 13px; }
.mock-content b { display: block; font: 800 clamp(1.7rem, 3vw, 2.7rem)/1.05 var(--font-display); letter-spacing: -.06em; }
.mock-button { width: 82px; height: 21px; background: var(--forest); margin-top: 18px; border-radius: 2px; }
.mock-sun { position: absolute; width: 190px; height: 190px; border-radius: 50%; background: #c5d2bf; left: 245px; top: -75px; z-index: -1; }
.project-index { position: absolute; right: 16px; bottom: 14px; color: rgba(23,63,53,.65); font-size: .6rem; letter-spacing: .14em; }
.villa-layout { position: absolute; inset: 31px 0 0; display: grid; grid-template-columns: 1fr .8fr; align-items: center; padding: 24px; gap: 15px; }
.villa-copy { z-index: 1; color: var(--forest); }
.villa-copy small { font-size: .46rem; letter-spacing: .12em; display: block; margin-bottom: 12px; }
.villa-copy b { font: 800 2rem/1.05 var(--font-display); letter-spacing: -.06em; }
.villa-copy i { display: block; width: 56px; height: 18px; background: var(--forest); margin-top: 16px; border-radius: 2px; }
.villa-photo { height: 165px; background: linear-gradient(150deg, #c6d0bd, #8ea693 50%, #d3bd91); border-radius: 48% 48% 3px 3px; position: relative; }
.villa-photo::after { content: ""; position: absolute; inset: 20% 15% 0; background: rgba(23,63,53,.22); clip-path: polygon(50% 0,100% 35%,85% 35%,85% 100%,15% 100%,15% 35%,0 35%); }
.sheet-window { width: 76%; height: 70%; background: #fffefa; box-shadow: 0 15px 30px rgba(16,47,41,.12); transform: rotate(-3deg); padding: 15px; }
.sheet-toolbar { width: 100%; height: 12px; background: #e3e9e0; margin-bottom: 12px; }
.sheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.sheet-grid span { height: 14px; background: #e5eee6; }
.sheet-grid span:nth-child(4n+1) { background: #c6d8ca; }
.sheet-chart { display: flex; align-items: end; gap: 8px; height: 55px; margin-top: 13px; border-bottom: 1px solid #d7ded7; }
.sheet-chart i { display: block; flex: 1; background: #8daf98; height: 40%; }
.sheet-chart i:nth-child(2) { height: 75%; }.sheet-chart i:nth-child(3) { height: 55%; }.sheet-chart i:nth-child(4) { height: 95%; }.sheet-chart i:nth-child(5) { height: 68%; }
.project-info { padding: 20px 0 0; }
.project-featured .project-info { padding: 0; }
.project-type { color: #9b8357; font-size: .65rem; letter-spacing: .14em; font-weight: 700; }
.project-info h3 { font: 800 1.45rem/1.3 var(--font-display); letter-spacing: -.04em; color: var(--forest); margin: 10px 0 12px; }
.project-info p { color: #737d77; font-size: .87rem; line-height: 1.85; margin: 0 0 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0 12px; }
.project-tags span { color: #5f6d65; background: #eeeee7; padding: 5px 8px; font-size: .67rem; border-radius: 2px; }
.project-status { display: inline-block; margin-top: 8px; font-size: .75rem; color: #737d77; font-style: italic; }
.project-disclaimer { color: #8a938d; font-size: .73rem; margin-top: 35px; }
.section-cream { background: #eeece3; }
.experience-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.experience-grid .section-intro { color: #717c74; }
.timeline { border-left: 1px solid rgba(23,63,53,.2); padding-left: 31px; }
.timeline-item { position: relative; padding: 0 0 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker { position: absolute; width: 11px; height: 11px; background: var(--gold); border: 3px solid #eeece3; outline: 1px solid var(--gold); border-radius: 50%; left: -37px; top: 4px; }
.timeline-date { color: #9a8152; font-size: .66rem; letter-spacing: .13em; font-weight: 700; }
.timeline-item h3 { font: 800 1.25rem var(--font-display); color: var(--forest); margin: 7px 0 4px; }
.timeline-place { color: #455e51 !important; font-weight: 600; margin: 0 0 8px !important; }
.timeline-item p { color: #6e7972; font-size: .86rem; margin: 7px 0 12px; line-height: 1.8; }
.timeline-pill { display: inline-block; color: #68746c; background: rgba(255,254,250,.75); padding: 5px 9px; font-size: .67rem; border: 1px solid rgba(23,63,53,.1); }
.contact-section { background: var(--forest); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 95px; align-items: start; }
.contact-copy .eyebrow { color: #d1bd91; }
.contact-copy h2 { color: var(--cream); }
.contact-copy h2 span { color: #d0b57d; }
.contact-copy > p:not(.eyebrow) { max-width: 470px; color: #bac7be; margin: 22px 0 32px; line-height: 1.85; }
.contact-detail { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.contact-symbol { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid rgba(199,167,108,.5); color: #d0b57d; }
.contact-detail small { display: block; color: #91a298; font-size: .61rem; letter-spacing: .13em; }
.contact-detail a, .contact-detail div > span { color: #f3f0e8; font-size: .88rem; }
.contact-form { background: var(--paper); color: var(--ink); padding: 30px; border-radius: 3px; box-shadow: 0 20px 60px rgba(0,0,0,.1); }
.contact-form h3 { color: var(--forest); font: 800 1.35rem var(--font-display); margin: 0 0 5px; }
.contact-form > p { color: #78827c; font-size: .77rem; line-height: 1.65; margin: 0 0 20px; }
.contact-form label { display: block; font-size: .75rem; font-weight: 700; color: #425149; margin: 15px 0 6px; }
.contact-form input, .contact-form textarea { display: block; width: 100%; padding: 11px 12px; background: #fbfaf6; border: 1px solid #dfe3dc; border-radius: 2px; color: var(--ink); outline: none; font-size: .83rem; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--forest-soft); box-shadow: 0 0 0 3px rgba(40,92,78,.09); }
.form-submit { width: 100%; margin-top: 19px; }
.form-feedback { min-height: 1em; margin: 10px 0 0 !important; color: var(--forest) !important; }
.site-footer { background: #0c2722; color: #dbe1db; }
.footer-main { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(247,245,239,.12); }
.footer-brand { color: var(--cream); }
.footer-main p { color: #8ea096; font-size: .78rem; margin: 0; }
.back-top { color: #d4c092; font-size: .77rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; color: #73857b; font-size: .68rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .section { padding: 84px 0; }
  .hero-grid { gap: 25px; grid-template-columns: 1.1fr .9fr; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
  .hero-visual { min-height: 420px; }
  .portrait-frame { height: 355px; width: 82%; }
  .floating-card { padding: 11px 12px; }
  .card-top { display: none; }
  .card-bottom { left: -3px; bottom: 44px; }
  .two-column, .experience-grid { gap: 50px; }
  .contact-grid { gap: 45px; }
  .skills-layout { gap: 20px; }
}
@media (max-width: 680px) {
  .container { width: min(var(--container), calc(100% - 36px)); }
  .nav { min-height: 68px; }
  .menu-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 18px 22px 22px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 18px 25px rgba(16,47,41,.08); align-items: stretch; gap: 0; flex-direction: column; }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 4px; }
  .nav-links .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding-top: 57px; }
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: clamp(2.65rem, 12vw, 4rem); }
  .hero-description { font-size: .96rem; margin: 20px 0 24px; }
  .hero-visual { min-height: 400px; margin-top: 15px; }
  .portrait-frame { height: 350px; width: min(300px, 75%); }
  .card-bottom { left: 0; bottom: 44px; }
  .hero-bottom { margin-top: 18px; }
  .strip-inner { justify-content: flex-start; overflow: hidden; gap: 14px; font-size: .6rem; }
  .strip-inner span:nth-of-type(n+3), .strip-inner i:nth-of-type(n+2) { display: none; }
  .two-column, .experience-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading h2, .contact-copy h2 { font-size: clamp(2.25rem, 10vw, 3.1rem); }
  .about-copy { padding-top: 0; }
  .values-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 45px; }
  .value-card { padding-top: 17px; }
  .skills-layout { grid-template-columns: 1fr; gap: 30px; margin-top: 40px; }
  .skill-group { padding-top: 20px; }
  .project-heading { display: block; }
  .project-heading .section-intro { margin-top: 20px; }
  .projects-grid { grid-template-columns: 1fr; gap: 35px; margin-top: 35px; }
  .project-featured { grid-column: auto; display: block; }
  .project-featured .project-art { height: 270px; }
  .project-featured .project-info { padding-top: 20px; }
  .project-art { height: 245px; }
  .experience-grid { gap: 45px; }
  .contact-grid { gap: 38px; }
  .contact-form { padding: 23px 19px; }
  .footer-main { padding: 25px 0; flex-wrap: wrap; }
  .footer-main p { order: 3; flex-basis: 100%; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
