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

:root {
  --ink: #15221d;
  --muted: #64716b;
  --paper: #f6f5ef;
  --card: #fffef9;
  --line: #dcded5;
  --green: #176b4d;
  --lime: #d9ee70;
  --orange: #f47545;
  --shadow: 0 24px 70px rgba(30, 49, 40, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.55;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: radial-gradient(rgba(21,34,29,.12) .55px, transparent .55px);
  background-size: 6px 6px;
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: auto; }
.site-nav { height: 82px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; }
.brand { font: 800 1rem 'Manrope'; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 9px; border-radius: 50%; background: var(--ink); color: white; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.mode-link { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 99px; color: var(--ink) !important; transition: .2s; }
.mode-link:hover { color: white !important; background: var(--ink); transform: translateY(-2px); }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: 38px; padding: 38px 0 28px; align-items: start; }
.eyebrow { margin: 0 0 18px; color: var(--green); font: 700 .76rem 'Manrope'; letter-spacing: .15em; text-transform: uppercase; }
h1 { max-width: 680px; margin: 0; font: 800 clamp(3.5rem, 8vw, 7rem)/.93 'Manrope'; letter-spacing: -.075em; }
.accent-word { color: var(--green); position: relative; white-space: nowrap; }
.accent-word::after { content: ''; position: absolute; left: 1%; right: -3%; bottom: -6px; height: 12px; border-radius: 50%; border-top: 3px solid var(--green); transform: rotate(-1.4deg); opacity: .95; }
.hero-aside { padding: 34px 0 6px; max-width: 420px; }
.hero-aside p { margin: 0 0 20px; color: var(--muted); font-size: 1.08rem; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a { padding: 9px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; font-weight: 600; text-decoration: none; }
.contact-links a:hover { border-color: var(--green); color: var(--green); }

.section-head { display: flex; justify-content: space-between; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-head h2 { margin: 0; font: 800 clamp(2rem,4vw,3.5rem) 'Manrope'; letter-spacing: -.055em; }
.section-head span { color: var(--muted); font-size: .84rem; }
.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; padding: 24px 0 110px; }
.project-card { grid-column: span 6; display: flex; flex-direction: column; gap: 18px; min-height: 412px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: var(--card); text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.project-card:first-child { grid-column: span 7; }
.project-card:nth-child(2) { grid-column: span 5; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-top { display: flex; justify-content: space-between; align-items: start; gap: 18px; }
.card-index { color: var(--muted); font: 700 .7rem 'Manrope'; letter-spacing: .12em; }
.project-card h3 { margin: 14px 0 8px; font: 750 clamp(1.5rem,3vw,2.35rem)/1.06 'Manrope'; letter-spacing: -.045em; }
.project-card p { max-width: 500px; margin: 0; color: var(--muted); }
.arrow { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: white; font-size: 1.15rem; transition: transform .3s; }
.project-card:hover .arrow { transform: rotate(45deg); }
.visual { margin-top: auto; height: 180px; display: grid; place-items: center; border-radius: 20px; overflow: hidden; background: #e7ece7; border: 1px solid rgba(21,34,29,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .45s; }
.project-card:hover img { transform: scale(1.025); }
.project-card.research .visual { background: #dce8e1; }
.project-card.racing .visual { background: #fee1d6; }
.project-card.finance .visual { background: #dceae4; }
.project-card.tennis .visual { background: #eef3ce; }

.resume { padding-bottom: 100px; }
.resume-grid { display: grid; grid-template-columns: 230px 1fr; gap: 70px; padding-top: 34px; }
.resume-label { color: var(--green); font: 700 .76rem 'Manrope'; letter-spacing: .12em; text-transform: uppercase; }
.resume-row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.resume-row h3 { margin: 0 0 5px; font: 700 1.12rem 'Manrope'; letter-spacing: -.02em; }
.resume-row p { margin: 0; color: var(--muted); }
.resume-row time { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.skill-list { display: flex; flex-wrap: wrap; gap: 9px; }
.skill-list span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); font-size: .84rem; }
footer { padding: 34px 0 42px; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; } * { transition: none !important; } }
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .site-nav { height: 70px; }
  .nav-links > a:not(.mode-link) { display: none; }
  .mode-link { padding: 8px 12px; font-size: .78rem !important; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 42px 0 34px; }
  h1 { font-size: clamp(3.2rem, 16vw, 5.2rem); }
  .section-head span { display: none; }
  .work-grid { display: block; padding-bottom: 78px; }
  .project-card, .project-card:first-child, .project-card:nth-child(2) { display: flex; min-height: 372px; margin-bottom: 16px; }
  .visual { height: 172px; }
  .resume-grid { grid-template-columns: 1fr; gap: 25px; }
  .resume-row { grid-template-columns: 1fr; gap: 8px; }
  footer { gap: 20px; }
}
