:root {
  --ink: #26332f;
  --muted: #71817b;
  --paper: #f5f7f4;
  --white: #ffffff;
  --sage: #dbe9df;
  --sage-deep: #668679;
  --mist: #e5edf0;
  --lavender: #ece9f0;
  --line: #d8e1dc;
  --serif: "Space Grotesk", sans-serif;
  --sans: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.6 var(--sans); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }

.site-header { height: 82px; padding: 0 clamp(24px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(245, 247, 244, .92); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 20px var(--serif); letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--sage-deep); color: var(--white); border-radius: 50%; font-size: 11px; letter-spacing: 0; }
.brand-dot, .header-link span, .text-link span { color: var(--sage-deep); }
.site-nav { display: flex; gap: 32px; font-size: 13px; color: var(--muted); }
.site-nav a:hover, .site-nav a.active { color: var(--ink); }
.site-nav a.active { font-weight: 700; }
.header-link { font-size: 13px; font-weight: 700; }
.menu-toggle { display: none; border: 0; background: none; font: inherit; color: var(--ink); }

.section-shell { max-width: 1240px; margin: 0 auto; padding-left: clamp(24px, 5vw, 80px); padding-right: clamp(24px, 5vw, 80px); }
.hero { min-height: 680px; padding-top: 100px; padding-bottom: 90px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 60px; }
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 700; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 28px; height: 2px; display: inline-block; background: var(--sage-deep); }
.hero h1 { max-width: 740px; margin: 26px 0; font: 600 clamp(49px, 6.4vw, 92px)/.99 var(--serif); letter-spacing: -.065em; }
.hero h1 em, .display-heading span { color: var(--sage-deep); font-style: normal; }
.hero-intro { max-width: 445px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-top: 38px; }
.button { min-height: 50px; padding: 14px 21px; display: inline-flex; align-items: center; justify-content: space-between; gap: 27px; border-radius: 5px; font-size: 13px; font-weight: 700; transition: background .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-dark:hover { background: var(--sage-deep); color: var(--white); }
.text-link { border-bottom: 1px solid var(--sage-deep); padding-bottom: 3px; font-size: 13px; font-weight: 700; }
.hero-art { min-height: 490px; position: relative; background: var(--sage); overflow: hidden; }
.hero-photo { width: 100%; height: 100%; position: absolute; inset: 0; display: block; object-fit: cover; object-position: 58% 42%; filter: saturate(.78) contrast(.94); }
.hero-art:after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(219, 233, 223, .18), rgba(38, 51, 47, .08)); pointer-events: none; }
.hero-art:before { content: ""; position: absolute; width: 370px; height: 370px; border: 1px solid rgba(38, 51, 47, .18); border-radius: 50%; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.orbit { position: absolute; z-index: 1; border: 1px solid rgba(255, 255, 255, .38); border-radius: 50%; }
.orbit-one { width: 510px; height: 180px; left: -42px; top: 156px; transform: rotate(-32deg); }
.orbit-two { width: 500px; height: 130px; left: -20px; top: 170px; transform: rotate(34deg); }
.hero-stamp { position: absolute; z-index: 2; top: 34px; left: 36px; font: 700 12px/1.2 var(--serif); letter-spacing: .1em; color: var(--white); text-shadow: 0 1px 8px rgba(38, 51, 47, .22); }
.hero-stamp span { color: var(--sage-deep); }
.hero-card { width: 225px; height: 280px; position: absolute; z-index: 2; right: 12%; bottom: 12%; padding: 27px; display: flex; flex-direction: column; justify-content: space-between; background: rgba(255, 255, 255, .78); box-shadow: 0 18px 45px rgba(67, 91, 80, .18); transform: rotate(4deg); }
.card-kicker, .hero-note { font-size: 11px; color: var(--muted); }
.hero-card strong { font: 600 34px/1.05 var(--serif); letter-spacing: -.06em; }
.card-arrow { align-self: end; color: var(--sage-deep); font-size: 25px; }
.hero-note { position: absolute; z-index: 2; right: 30px; top: 35px; text-align: right; color: var(--white); text-shadow: 0 1px 8px rgba(38, 51, 47, .22); }
.hero-note span { color: var(--sage-deep); }
.marquee { width: 100%; overflow-x: clip; padding: 17px 0; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .38); }
.marquee-track { display: flex; justify-content: space-around; gap: 28px; min-width: max-content; font: 500 13px var(--serif); letter-spacing: .04em; }
.marquee i { color: var(--sage-deep); font-style: normal; }

.about { padding-top: 130px; padding-bottom: 140px; }
.section-label { color: var(--muted); margin-bottom: 54px; }
.about-grid, .skills-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; }
.display-heading { margin: 0; font: 600 clamp(42px, 5vw, 72px)/1.02 var(--serif); letter-spacing: -.065em; }
.about-copy { max-width: 430px; padding-top: 10px; }
.large-copy { font: 500 22px/1.25 var(--serif); letter-spacing: -.03em; }
.about-copy > p:not(.large-copy) { color: var(--muted); margin: 30px 0; }
.skills-section { padding-bottom: 150px; }
.skills-intro p { max-width: 270px; color: var(--muted); margin-top: 30px; }
.skill-list { border-top: 1px solid var(--line); }
.skill-row { min-height: 77px; display: grid; grid-template-columns: 50px 1fr 1fr; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); }
.skill-row strong { font: 500 20px var(--serif); }
.skill-number, .skill-detail { font-size: 11px; color: var(--muted); }
.skill-detail { text-align: right; }
.projects { padding-bottom: 150px; }
.projects-heading { display: flex; justify-content: space-between; align-items: end; gap: 50px; margin-bottom: 56px; }
.projects-intro { max-width: 300px; margin: 0 0 4px; color: var(--muted); }
.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: 1fr 2.1fr 1fr; gap: 30px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.project-year, .project-type { color: var(--muted); font: 700 11px/1.4 var(--serif); letter-spacing: .08em; text-transform: uppercase; }
.project-type { justify-self: end; text-align: right; }
.project-row h3 { margin: 0 0 10px; font: 500 24px/1.15 var(--serif); letter-spacing: -.04em; }
.project-row p { max-width: 500px; margin: 0; color: var(--muted); font-size: 14px; }
.experience { padding-bottom: 150px; }
.experience-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 56px; }
.heading-index { color: var(--muted); font-size: 12px; }
.experience-card { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 30px; padding: 42px 0; border-top: 2px solid var(--sage-deep); border-bottom: 1px solid var(--line); }
.experience-date { font: 700 12px var(--serif); letter-spacing: .08em; }
.experience-date span, .experience-main .eyebrow { color: var(--sage-deep); }
.experience-main .eyebrow { margin: 0 0 16px; }
.experience-main h3 { margin: 0; font: 600 35px var(--serif); letter-spacing: -.05em; }
.experience-main > p:last-child { max-width: 450px; color: var(--muted); }
.experience-tag { justify-self: end; text-align: right; font: 600 44px/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--sage-deep); }
.experience-tag span { display: block; margin-top: 8px; color: var(--muted); -webkit-text-stroke: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.certificates { padding-bottom: 155px; }
.cert-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; }
.cert-intro { margin: 0 0 4px; color: var(--muted); text-align: right; }
.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.certificate-card { display: block; }
.certificate-image { aspect-ratio: 1.35; position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.certificate-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.certificate-card:hover img { transform: scale(1.04); }
.open-icon { width: 34px; height: 34px; position: absolute; right: 13px; top: 13px; display: grid; place-items: center; background: var(--white); color: var(--sage-deep); border-radius: 50%; font-weight: 700; box-shadow: 0 5px 15px rgba(38, 51, 47, .1); }
.certificate-meta { display: flex; justify-content: space-between; gap: 10px; padding-top: 15px; font-size: 13px; }
.certificate-meta span { color: var(--muted); font-size: 11px; text-align: right; }
.paper-preview { height: 100%; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: #dfece3; }
.paper-preview span, .paper-preview small { font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.paper-preview strong { font: 600 36px/1 var(--serif); letter-spacing: -.07em; }
.paper-preview strong i { color: var(--sage-deep); font-style: normal; }
.paper-preview small { align-self: end; }
.document-preview { width: 100%; min-width: 0; height: 100%; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; background: #edf1f0; }
.document-preview strong { font: 600 32px/1 var(--serif); letter-spacing: -.07em; }
.document-type { font: 700 11px var(--serif); letter-spacing: .14em; }
.document-blue { background: var(--mist); }
.document-orange { background: var(--lavender); }

.contact { padding-top: 105px; padding-bottom: 105px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; background: var(--sage); }
.contact.section-shell { max-width: none; padding-left: max(24px, calc((100vw - 1080px) / 2)); padding-right: max(24px, calc((100vw - 1080px) / 2)); }
.contact-copy p { max-width: 350px; color: #5d7469; margin-top: 31px; }
.contact-actions { align-self: end; max-width: 360px; }
.button-wide { width: 100%; }
.contact-note { color: #5d7469; font-size: 12px; }
.contact-email { display: inline-block; padding-top: 35px; border-bottom: 1px solid var(--sage-deep); font: 600 18px var(--serif); }
.contact-email span { color: var(--sage-deep); margin-left: 12px; }
.site-footer { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; color: var(--muted); }
.site-footer a { color: var(--ink); font-weight: 700; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

@media (max-width: 800px) {
  .site-header { height: 70px; }
  .site-nav { display: none; position: absolute; top: 69px; left: 0; right: 0; padding: 20px 24px; flex-direction: column; gap: 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-link { display: none; }
  .hero { min-height: auto; padding-top: 75px; grid-template-columns: 1fr; gap: 60px; }
  .hero h1 { font-size: clamp(47px, 13vw, 73px); }
  .hero-art { min-height: 420px; }
  .about, .skills-section, .projects, .experience, .certificates { padding-top: 90px; padding-bottom: 100px; }
  .about-grid, .skills-layout, .contact { grid-template-columns: 1fr; gap: 45px; }
  .skill-row { grid-template-columns: 38px 1fr; gap: 10px; }
  .skill-detail { grid-column: 2; text-align: left; margin-top: -18px; }
  .projects-heading, .experience-heading, .cert-heading { display: block; }
  .projects-intro { margin-top: 25px; }
  .heading-index, .cert-intro { display: block; text-align: left; margin-top: 25px; }
  .project-row { grid-template-columns: 1fr; gap: 12px; }
  .project-type { justify-self: start; text-align: left; }
  .experience-card { grid-template-columns: 1fr; gap: 20px; }
  .experience-tag { justify-self: start; text-align: left; }
  .certificate-grid { grid-template-columns: 1fr 1fr; }
  .certificate-meta { display: block; }
  .certificate-meta span { display: block; text-align: left; margin-top: 4px; }
  .contact { padding-top: 85px; padding-bottom: 85px; }
  .site-footer { flex-wrap: wrap; padding-top: 25px; padding-bottom: 25px; }
}

@media (max-width: 480px) {
  .certificate-grid { grid-template-columns: 1fr; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-card { width: 190px; height: 240px; }
  .hero-card strong { font-size: 29px; }
}
