:root {
  --paper: #f7f1df;
  --paper-deep: #eee4ca;
  --ink: #22372b;
  --muted: #596459;
  --green: #3d6b4f;
  --green-dark: #284a37;
  --leaf: #8ea65c;
  --sky: #b9d9df;
  --sun: #dcae52;
  --white: #fffdf6;
  --line: rgba(34, 55, 43, .17);
  --shadow: 0 24px 60px rgba(45, 66, 48, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .18; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.14'/%3E%3C/svg%3E"); mix-blend-mode: multiply; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 6px; }
p, h1, h2, h3 { margin-top: 0; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -80px; padding: 12px 18px; background: var(--ink); color: var(--white); transition: top .2s; }
.skip-link:focus { top: 16px; }

.site-header { position: fixed; z-index: 10; width: 100%; top: 0; background: rgba(247, 241, 223, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(34, 55, 43, .15); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 42% 58%; background: var(--green); color: var(--white); font-family: var(--serif); font-style: italic; transform: rotate(-6deg); }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 3vw, 36px); font-size: .86rem; font-weight: 650; }
.nav-links a { position: relative; }
.nav-links > a:not(.nav-cta)::after { content: ""; position: absolute; height: 1px; width: 0; background: currentColor; left: 0; bottom: -5px; transition: width .25s ease; }
.nav-links > a:hover::after, .nav-links > a.active::after { width: 100%; }
.nav-cta { padding: 9px 15px; border: 1px solid var(--ink); border-radius: 999px; transition: .2s ease; }
.nav-cta:hover { color: var(--white); background: var(--ink); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: var(--ink); transition: transform .2s, opacity .2s; }

.hero { position: relative; min-height: 780px; height: min(900px, 100vh); overflow: hidden; display: flex; align-items: center; isolation: isolate; }
.hero-art { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-wash { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(247,241,223,.98) 0%, rgba(247,241,223,.88) 28%, rgba(247,241,223,.26) 55%, rgba(247,241,223,.04) 78%), linear-gradient(0deg, rgba(247,241,223,.35), transparent 35%); }
.hero-inner { padding-top: 72px; }
.hero-inner > * { max-width: 660px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 800; color: var(--green); }
.eyebrow { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(3.5rem, 7.3vw, 6.8rem); margin-bottom: 30px; }
h1 em { color: var(--green); font-weight: 500; }
.hero-copy { max-width: 590px; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.8; color: #455649; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 22px; border-radius: 999px; font-size: .86rem; font-weight: 750; transition: transform .2s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--green-dark); box-shadow: 0 12px 28px rgba(40,74,55,.22); }
.button-primary:hover { background: #193b29; box-shadow: 0 16px 34px rgba(40,74,55,.3); }
.button-secondary { border: 1px solid rgba(34,55,43,.35); background: rgba(255,253,246,.5); backdrop-filter: blur(7px); }
.resume-link { display: inline-block; margin-top: 22px; border-bottom: 1px solid var(--ink); font-size: .8rem; font-weight: 650; }
.scroll-note { position: absolute; right: max(20px, calc((100vw - 1180px) / 2)); bottom: 30px; display: flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; writing-mode: vertical-rl; }
.scroll-note span { display: block; height: 50px; width: 1px; background: var(--ink); }

.section { padding: 130px 0; }
.section-kicker { margin-bottom: 22px; }
h2 { font-size: clamp(3rem, 6vw, 5.8rem); margin-bottom: 0; }
.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(60px, 10vw, 150px); align-items: start; }
.about-copy { padding-top: 48px; font-size: 1.05rem; color: #4d5b51; }
.about-copy > p:first-child { font-family: var(--serif); font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.55; color: var(--ink); }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 50px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-row strong { display: block; font-family: var(--serif); font-size: 2.3rem; font-weight: 500; color: var(--green); line-height: 1; }
.stat-row span { display: block; margin-top: 9px; font-size: .73rem; line-height: 1.4; }

.work { background: #eaf0df; }
.section-heading { display: grid; grid-template-columns: 1.5fr .5fr; gap: 80px; align-items: end; margin-bottom: 66px; }
.section-heading h2 { max-width: 820px; }
.section-heading > p { margin: 0 0 8px; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 28px; }
.project-card { overflow: hidden; border-radius: 5px 32px 5px 32px; background: var(--white); box-shadow: 0 8px 30px rgba(49,72,49,.08); transition: transform .28s ease, box-shadow .28s ease; }
.project-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.project-image { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #badde0, #e6edcd); }
.project-card:nth-child(2) .project-image { background: linear-gradient(135deg, #1f6b83, #e3a640); }
.project-card:nth-child(3) .project-image { background: linear-gradient(135deg, #b5dbe4, #f3d4c1); }
.project-card:nth-child(4) .project-image { background: linear-gradient(135deg, #26395f, #a4c973); }
.project-card:nth-child(5) .project-image { background: linear-gradient(135deg, #f1d6bd, #d9e9bb); }
.project-card:nth-child(6) .project-image { background: linear-gradient(135deg, #e4cbd5, #b9dce0); }
.project-image img { width: auto; max-width: 78%; height: 100%; object-fit: contain; box-shadow: 0 0 34px rgba(24, 50, 39, .22); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-image img { transform: scale(1.035); }
.store-badge { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 999px; color: var(--ink); background: rgba(255,253,246,.9); backdrop-filter: blur(8px); font-size: .68rem; font-weight: 750; box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.project-body { padding: 28px 30px 30px; }
.project-number { margin-bottom: 13px; color: var(--green); text-transform: uppercase; letter-spacing: .14em; font-size: .67rem; font-weight: 800; }
.project-body h3 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.55rem); line-height: 1.05; font-weight: 500; letter-spacing: -.03em; }
.project-body > p:not(.project-number) { min-height: 84px; color: var(--muted); font-size: .9rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; padding: 0; margin: 23px 0 0; list-style: none; }
.project-meta li { padding: 6px 10px; border-radius: 999px; background: var(--paper); font-size: .64rem; font-weight: 700; }

.skills { background: var(--green-dark); color: var(--white); }
.skills-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(60px, 10vw, 140px); }
.skills .section-kicker { color: #c6d99d; }
.skills-intro { position: sticky; top: 120px; align-self: start; }
.skills-intro h2 { font-size: clamp(3rem, 5vw, 5rem); }
.skills-intro > p:last-child { margin-top: 30px; color: rgba(255,255,255,.66); max-width: 480px; }
.skill-list article { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.skill-list article:first-child { padding-top: 0; }
.skill-list span { color: #c6d99d; font-family: var(--serif); font-style: italic; }
.skill-list h3 { margin-bottom: 7px; font-family: var(--serif); font-size: 1.65rem; font-weight: 500; }
.skill-list p { margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; }

.experience { background: var(--white); }
.experience h2 { max-width: 850px; }
.experience-card { display: grid; grid-template-columns: .55fr .75fr 1.25fr; gap: 50px; margin-top: 70px; padding: 40px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); align-items: start; }
.experience-date { font-size: .8rem; font-weight: 700; color: var(--green); }
.experience-card h3 { margin-bottom: 4px; font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }
.company { margin: 0; font-size: .8rem; color: var(--muted); }
.experience-copy { margin: 0; color: var(--muted); }

.contact { position: relative; overflow: hidden; padding: 145px 0 120px; text-align: center; background: var(--sky); }
.contact::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(0deg, rgba(247,241,223,.6), transparent); }
.contact-inner { position: relative; z-index: 2; max-width: 900px; }
.contact h2 { font-size: clamp(4rem, 9vw, 8rem); }
.contact-inner > p:not(.section-kicker) { max-width: 610px; margin: 30px auto; color: #4d6263; }
.contact .button { margin-top: 8px; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-top: 45px; font-size: .78rem; font-weight: 750; }
.social-links a { border-bottom: 1px solid var(--ink); }
.contact-cloud { position: absolute; width: 260px; height: 75px; border-radius: 50%; background: rgba(255,253,246,.58); filter: blur(1px); }
.contact-cloud::before, .contact-cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.contact-cloud::before { width: 100px; height: 100px; left: 45px; bottom: 0; }
.contact-cloud::after { width: 140px; height: 125px; right: 28px; bottom: 0; }
.cloud-one { top: 16%; left: -50px; transform: scale(.9); }
.cloud-two { right: -75px; top: 42%; transform: scale(1.2); }

.site-footer { padding: 30px 0; background: var(--paper); font-size: .7rem; font-weight: 650; }
.site-footer .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer p { margin: 0; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 900px) {
  :root { --shell: min(100% - 32px, 720px); }
  .hero { min-height: 720px; height: auto; padding: 140px 0 100px; }
  .hero-wash { background: linear-gradient(90deg, rgba(247,241,223,.96), rgba(247,241,223,.68) 70%, rgba(247,241,223,.25)), linear-gradient(0deg, rgba(247,241,223,.52), transparent); }
  .scroll-note { display: none; }
  .section { padding: 95px 0; }
  .about-grid, .skills-grid { grid-template-columns: 1fr; gap: 55px; }
  .about-copy { padding-top: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 25px; }
  .skills-intro { position: static; }
  .experience-card { grid-template-columns: 1fr 1fr; }
  .experience-copy { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 74px; }
  .nav { height: 70px; }
  .js .menu-toggle { display: block; position: relative; z-index: 3; }
  .js .nav-links { position: absolute; top: 10px; right: 16px; left: 16px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 68px 22px 22px; border-radius: 10px 28px 10px 28px; background: rgba(255,253,246,.97); box-shadow: var(--shadow); }
  .js .nav-links[data-open="true"] { display: flex; }
  .js .nav-links a { padding: 10px 0; }
  .js .nav-cta { text-align: center; margin-top: 8px; padding: 9px 15px; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links { flex-wrap: wrap; justify-content: flex-end; }
  .hero { min-height: 760px; padding-top: 120px; align-items: flex-start; }
  .hero-art { object-position: 62% center; }
  .hero-wash { background: linear-gradient(90deg, rgba(247,241,223,.97), rgba(247,241,223,.82) 75%, rgba(247,241,223,.45)), linear-gradient(0deg, rgba(247,241,223,.72), transparent); }
  h1 { font-size: clamp(3.35rem, 16vw, 5rem); }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 330px; }
  .button { width: 100%; }
  .stat-row { gap: 12px; }
  .stat-row strong { font-size: 1.85rem; }
  .project-grid { grid-template-columns: 1fr; }
  .project-body { padding: 24px; }
  .project-body > p:not(.project-number) { min-height: 0; }
  .experience-card { grid-template-columns: 1fr; gap: 20px; }
  .experience-copy { grid-column: auto; }
  .contact { padding: 110px 0 90px; }
  .contact .button { width: auto; max-width: 100%; font-size: .76rem; }
  .site-footer .shell { flex-direction: column; text-align: center; gap: 8px; }
}

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