/* Base */
:root {
  --cream: #f9f9f7;
  --stone: #e8e6df;
  --sage: #9caf88;
  --sage-deep: #778b72;
  --charcoal: #242523;
  --muted: #686b63;
  --line: rgba(36, 37, 35, 0.16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--charcoal); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 96px)); margin: 0 auto; }
.section { position: relative; padding: 128px 0; overflow: hidden; }
.section--stone { background: var(--stone); }
.section--dark { background: var(--charcoal); color: var(--cream); }

/* Navigation */
.site-header { position: absolute; inset: 0 0 auto; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.brand { font: 600 28px/1 var(--serif); letter-spacing: -1px; }
.brand span { color: var(--sage-deep); }
.nav-menu { display: flex; align-items: center; gap: 36px; font-size: 13px; font-weight: 600; }
.nav-link { color: var(--muted); position: relative; transition: color .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--charcoal); }
.nav-link:not(.nav-link--contact)::after { content: ""; position: absolute; height: 2px; background: var(--sage-deep); left: 0; right: 100%; bottom: -8px; transition: right .25s ease; }
.nav-link.active::after, .nav-link:hover::after { right: 0; }
.nav-link--contact { border-bottom: 1px solid var(--charcoal); padding-bottom: 5px; color: var(--charcoal); }
.nav-link--contact span, .text-link span, .button span, .contact-email span, .social-links span { margin-left: 7px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 10px; }

/* Hero */
.hero { min-height: 760px; padding-top: 185px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr); align-items: center; gap: 40px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--sage-deep); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-line { width: 30px; height: 1px; background: var(--sage-deep); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 650px; margin-bottom: 24px; font: 600 clamp(3.7rem, 6vw, 6rem)/1.02 var(--serif); letter-spacing: -3px; }
h1 em, h2 em { color: var(--sage-deep); font-style: italic; font-weight: 500; }
.hero-intro { max-width: 510px; margin-bottom: 34px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 28px; margin-bottom: 72px; }
.button { display: inline-flex; align-items: center; padding: 15px 23px; border-radius: 50px; font-size: 13px; font-weight: 700; transition: transform .25s ease, background .25s ease, color .25s ease; }
.button--dark { background: var(--charcoal); color: var(--cream); }
.button--dark:hover { background: var(--sage-deep); transform: translateY(-3px); }
.text-link { border-bottom: 1px solid var(--charcoal); padding-bottom: 4px; font-size: 13px; font-weight: 700; }
.text-link:hover { color: var(--sage-deep); border-color: var(--sage-deep); }
.hero-meta { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: .03em; }
.meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
.hero-visual { position: relative; width: min(100%, 360px); justify-self: end; }
.portrait-frame { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin-left: auto; overflow: hidden; border-radius: 50%; background: #d8ded0; border: 1px solid rgba(120, 136, 113, 0.25); box-shadow: 0 18px 38px rgba(36, 37, 35, 0.08); }
.portrait-art { width: 100%; height: 100%; background: linear-gradient(138deg, transparent 25%, rgba(255,255,255,.48) 25.2% 41%, transparent 41.2%), radial-gradient(ellipse at 68% 34%, #d9dfd1 0 17%, transparent 17.4%), radial-gradient(ellipse at 67% 38%, #7c8d75 0 28%, transparent 28.5%), linear-gradient(120deg, #a5b49a 0 35%, #c9d1c1 35% 70%, #697d6c 70%); }
.portrait-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(.84); border-radius: 50%; display: block; }
.portrait-glow { position: absolute; inset: 8%; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; z-index: 2; }
.portrait-label { position: absolute; inset: auto 18px 18px; z-index: 3; display: flex; justify-content: space-between; color: white; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.floating-note { position: absolute; right: -12px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 10px; width: 180px; padding: 16px 18px; background: var(--cream); box-shadow: 0 15px 38px rgba(36,37,35,.12); color: var(--charcoal); font: 600 13px/1.2 var(--serif); }
.floating-note > span:last-child { display: block; line-height: 1.25; }
.note-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; color: var(--sage-deep); font-size: 20px; line-height: 1; }
.hero-orbit { position: absolute; border: 1px solid rgba(156, 175, 136, .32); border-radius: 50%; pointer-events: none; }
.hero-orbit--one { width: 620px; height: 620px; right: -190px; top: 100px; }
.hero-orbit--two { width: 400px; height: 400px; left: -260px; bottom: -245px; }
.scroll-cue { position: relative; top: 50px; left: clamp(20px, 2vw, 54px); display: flex; justify-content: center; align-items: center; gap: 17px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-arrow { color: var(--sage-deep); font-size: 18px; }

/* Shared section components */
.statement-grid { display: grid; grid-template-columns: .4fr 1fr; gap: 80px; }
.statement h2 { max-width: 760px; margin-bottom: 22px; font: 500 clamp(2.1rem, 4vw, 3.7rem)/1.15 var(--serif); letter-spacing: -1.5px; }
.statement-copy { max-width: 560px; color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 54px; }
.section-heading h2 { margin: 0; font: 500 clamp(2.4rem, 4vw, 4rem)/1.1 var(--serif); letter-spacing: -1.5px; }
.section-number { color: var(--sage-deep); font-size: 11px; font-weight: 700; letter-spacing: .12em; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.skill-card { min-height: 300px; position: relative; padding: 26px 25px; background: var(--stone); border: 1px solid transparent; transition: transform .3s ease, box-shadow .3s ease; }
.skill-card:hover { transform: translateY(-8px); box-shadow: 0 18px 35px rgba(36,37,35,.09); }
.skill-card--sage { background: var(--sage); }
.skill-card--dark { background: var(--charcoal); color: var(--cream); }
.skill-card--line { background: transparent; border-color: var(--line); }
.skill-number { color: var(--sage-deep); font-size: 11px; font-weight: 700; }
.skill-card--dark .skill-number { color: var(--sage); }
.skill-card h3 { margin: 72px 0 18px; font: 500 25px/1.15 var(--serif); letter-spacing: -.6px; }
.skill-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.skill-card--dark p { color: #bfc2b9; }
.card-arrow { position: absolute; top: 24px; right: 25px; color: var(--sage-deep); font-size: 20px; }
.skill-card--dark .card-arrow { color: var(--sage); }

/* Projects */
.projects-list { display: grid; gap: 22px; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); transition: transform .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 20px 40px rgba(36,37,35,.1); }
.project-card--reverse .project-info { order: 1; }
.project-image { min-height: 385px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.project-image::before, .project-image::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; }
.project-image::before { width: 270px; height: 270px; }
.project-image::after { width: 420px; height: 420px; }
.project-image--aura { background: linear-gradient(135deg, #b9c8a9, #71816c); }
.project-image--macros { background: linear-gradient(135deg, #c2b6a0, #8f9980); }
.project-image--global { background: linear-gradient(135deg, #d3d8d0, #7b8d7b); }
.project-tag { position: absolute; top: 22px; left: 25px; z-index: 1; color: rgba(255,255,255,.85); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.image-mark { position: relative; z-index: 1; color: #f3f1e9; font: 600 clamp(3.4rem, 8vw, 6rem)/1 var(--serif); letter-spacing: -5px; }
.image-mark span { font: 500 2rem var(--sans); letter-spacing: 0; }
.project-info { position: relative; padding: 44px 42px 42px; }
.project-category { color: var(--sage-deep); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-info h3 { max-width: 440px; margin: 20px 0; font: 500 30px/1.18 var(--serif); letter-spacing: -.7px; }
.project-info > p:not(.project-category) { max-width: 430px; color: var(--muted); font-size: 14px; }
.tool-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; }
.tool-list span { padding: 6px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.circle-link { position: absolute; right: 34px; bottom: 28px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--charcoal); border-radius: 50%; font-size: 20px; transition: background .25s ease, color .25s ease; }
.circle-link:hover { background: var(--charcoal); color: var(--cream); }

/* Timeline */
.timeline-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; }
.timeline-label { padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--sage-deep); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.timeline-item { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--muted); font-size: 11px; line-height: 1.45; }
.timeline-item h3 { margin: 0 0 5px; font: 500 21px var(--serif); }
.timeline-item p { margin: 0; color: var(--muted); font-size: 13px; }
.timeline-item p span { color: var(--sage-deep); }

/* Contact/footer */
.contact { padding: 110px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 70px; align-items: end; }
.section-kicker--light { color: var(--sage); }
.contact h2 { margin: 0; font: 500 clamp(2.8rem, 5vw, 5rem)/1.05 var(--serif); letter-spacing: -2px; }
.contact-details { border-top: 1px solid rgba(249,249,247,.28); padding-top: 25px; }
.contact-email { display: inline-block; margin-bottom: 28px; border-bottom: 1px solid var(--sage); color: var(--sage); font: 500 clamp(1.3rem, 2.4vw, 2rem) var(--serif); }
.contact-row, .social-links { display: flex; justify-content: space-between; gap: 18px; color: #b9bcb4; font-size: 13px; }
.contact-row { margin-bottom: 38px; }
.social-links { justify-content: flex-start; gap: 28px; }
.social-links a:hover, .download-link:hover { color: var(--sage); }
.download-link { padding: 0; border: 0; background: none; color: #b9bcb4; font: inherit; cursor: pointer; }
.footer { padding: 23px 0; background: #1b1c1b; color: #a5a79f; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer a { color: var(--cream); }
.footer a span { margin-left: 6px; color: var(--sage); }

/* Motion */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal--delay { transition-delay: .18s; }
.reveal--delay-1 { transition-delay: .1s; }
.reveal--delay-2 { transition-delay: .2s; }
.reveal--delay-3 { transition-delay: .3s; }

@media (max-width: 900px) {
  .container { width: min(100% - 48px, 680px); }
  .section { padding: 90px 0; }
  .hero { min-height: auto; padding: 155px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 65px; }
  .hero-visual { width: min(100%, 260px); justify-self: center; }
  .portrait-frame { margin: 0 auto; }
  .floating-note { position: static; margin-top: 20px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card { grid-template-columns: 1fr; }
  .project-card--reverse .project-image, .project-card--reverse .project-info { order: initial; }
  .project-image { min-height: 300px; }
  .timeline-layout { gap: 45px; }
  .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .scroll-cue { left: 24px; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 40px); }
  .nav { height: 76px; }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; }
  .menu-toggle span { display: block; width: 25px; height: 1px; background: var(--charcoal); transition: transform .2s ease; }
  .nav-menu { position: absolute; top: 76px; left: 20px; right: 20px; display: grid; gap: 0; padding: 8px 20px; background: var(--cream); box-shadow: 0 12px 30px rgba(36,37,35,.12); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
  .nav-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-link--contact { border-bottom: 0; }
  .nav-link:not(.nav-link--contact)::after { display: none; }
  .menu-toggle.is-open span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle.is-open span:last-child { transform: translateY(-3px) rotate(-45deg); }
  h1 { font-size: clamp(3.1rem, 14vw, 4.5rem); letter-spacing: -2px; }
  .hero-intro { font-size: 15px; }
  .hero-actions { margin-bottom: 52px; }
  .hero-meta { flex-wrap: wrap; }
  .floating-note { left: 12px; bottom: -22px; }
  .hero-visual { order: 2; }
  .hero-copy { order: 1; }
  .statement-grid { grid-template-columns: 1fr; gap: 15px; }
  .section-heading { align-items: start; gap: 15px; flex-direction: column; margin-bottom: 35px; }
  .skills-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-card { min-height: 230px; }
  .skill-card h3 { margin-top: 50px; }
  .project-info { padding: 34px 25px 80px; }
  .project-info h3 { font-size: 26px; }
  .circle-link { right: 25px; bottom: 25px; }
  .timeline-layout { grid-template-columns: 1fr; gap: 55px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .contact { padding: 90px 0; }
  .contact-row, .social-links { flex-wrap: wrap; }
  .contact-email { font-size: 1.25rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
