@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --paper: #f6f5f1;
  --ink: #20211f;
  --muted: #777872;
  --line: #deded7;
  --accent: #c9f06a;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

button { font: inherit; }
.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(5vw, calc((100vw - var(--max-width))/2)); border-bottom: 1px solid var(--line); background: rgba(246,245,241,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); }
.logo { font-family: "Manrope", sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: -2px; }
.logo span { color: #7b9f2e; }
.nav { display: flex; align-items: center; gap: 34px; font-size: .88rem; }
.nav a, .text-link, .social-links a { transition: opacity .2s ease; }
.nav a:hover, .text-link:hover, .social-links a:hover { opacity: .6; }
.nav-contact { border: 1px solid var(--ink); border-radius: 99px; padding: 12px 17px; }
.nav-contact span { margin-left: 12px; }
.menu-toggle { display: none; border: 0; background: none; font-size: 1.5rem; cursor: pointer; }
.section-wrap { width: min(var(--max-width), 90%); margin-inline: auto; }
.hero { padding-top: 65px; }
.eyebrow { font-size: .7rem; letter-spacing: .13em; font-weight: 700; color: var(--muted); }
.status-dot { display: inline-block; width: 7px; height: 7px; background: #80a93c; border-radius: 50%; margin-right: 8px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 7%; align-items: center; padding: 45px 0 55px; }

h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -.065em; font-weight: 600; }
h1 { font-size: clamp(3.8rem, 8vw, 7.7rem); line-height: .98; margin-bottom: 28px; }
h1 span { color: #8c8e85; }

.hero-subtitle { max-width: 430px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 99px; padding: 15px 20px; font-size: .9rem; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #41443d; }
.button span { font-size: 1.1rem; }
.text-link { font-size: .88rem; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.text-link span { margin-left: 8px; }
.portrait-frame { position: relative; padding: 0 0 24px 24px; }
.portrait-frame::before { content: ""; position: absolute; top: -15px; left: 8px; width: 60%; height: 65%; background: var(--accent); z-index: -1; }
.portrait-frame img { width: 100%; height: 440px; object-fit: cover; filter: saturate(.72); }
.portrait-note { position: absolute; bottom: 0; left: 0; background: var(--paper); padding: 13px 15px; font-size: .62rem; letter-spacing: .1em; }
.portrait-number { position: absolute; bottom: 0; right: 0; font-size: .7rem; color: var(--muted); }
.hero-bottom { border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; color: var(--muted); font-size: .65rem; letter-spacing: .1em; }
.hero-bottom a span { margin-left: 9px; color: var(--ink); }
.section-space { padding-top: 125px; padding-bottom: 125px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; border-bottom: 1px solid var(--line); }

h2 { font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.06; margin-bottom: 0; }
h2 em { font-style: normal; color: #8c8e85; }

.about-content { padding-top: 45px; max-width: 480px; }
.about-lead { font-family: "Manrope", sans-serif; font-size: 1.55rem; line-height: 1.45; letter-spacing: -.035em; }
.muted { color: var(--muted); line-height: 1.8; font-size: .94rem; }
.about-content .text-link { display: inline-block; margin-top: 16px; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.title-aside { max-width: 230px; margin-bottom: 7px; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-image { display: block; position: relative; overflow: hidden; background: #e8e7df; aspect-ratio: 4 / 4.5; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; filter: saturate(.7); }
.project-image:hover img { transform: scale(1.045); }
.image-arrow { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); font-size: 1.2rem; }
.project-meta { display: flex; justify-content: space-between; margin-top: 20px; font-size: .65rem; letter-spacing: .1em; color: var(--muted); }
.project-card h3 { font: 600 1.45rem "Manrope", sans-serif; letter-spacing: -.04em; margin: 12px 0 8px; }
.project-card .muted { font-size: .86rem; }
.skills { background: #eae9e2; }
.skills-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12%; }
.skills-intro { max-width: 300px; margin-top: 28px; }
.skill-list { padding-top: 8px; }
.skill { display: grid; grid-template-columns: 38px 1fr 20px; gap: 12px; align-items: center; padding: 22px 0; border-bottom: 1px solid #cecec5; }
.skill:first-child { border-top: 1px solid #cecec5; }
.skill span { font-size: .72rem; color: var(--muted); }
.skill p { margin: 0; font-size: 1.05rem; }
.contact { text-align: center; }
.contact h2 { margin: 26px 0 20px; }
.contact-copy { margin: 0 auto 28px; }
.social-links { display: flex; justify-content: center; gap: 28px; margin-top: 75px; font-size: .85rem; }
.footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 25px; padding-bottom: 30px; }
.footer p { color: var(--muted); font-size: .75rem; margin: 0; }
.back-to-top { position: fixed; bottom: 24px; right: 24px; border: 0; border-radius: 50%; width: 44px; height: 44px; background: var(--ink); color: white; font-size: 1.2rem; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .25s; z-index: 10; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
:focus-visible { outline: 3px solid #789d2d; outline-offset: 4px; }

@media (max-width: 760px) {
  .site-header { height: 72px; }
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 71px; left: 0; right: 0; padding: 22px 5%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; }
  .nav .nav-contact { border: 0; border-radius: 0; border-top: 1px solid var(--line); }
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 45px; padding-top: 28px; }
  h1 { font-size: clamp(3.7rem, 17vw, 6rem); }
  .portrait-frame { max-width: 500px; width: 90%; margin-left: auto; }
  .portrait-frame img { height: 390px; }
  .hero-bottom { gap: 20px; font-size: .58rem; }
  .section-space { padding-top: 85px; padding-bottom: 85px; }
  .about, .skills-grid { grid-template-columns: 1fr; gap: 35px; }
  .about-content { padding-top: 0; }
  .section-title-row { display: block; }
  .title-aside { margin-top: 20px; }
  .project-grid { grid-template-columns: 1fr; gap: 35px; }
  .project-image { aspect-ratio: 5 / 4; }
  .skills-intro { margin-bottom: 10px; }
  .social-links { gap: 17px; flex-wrap: wrap; margin-top: 55px; }
}

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