:root {
  --ink: #17211a;
  --muted: #5f6f62;
  --cream: #fffaf0;
  --soft: #f4ead0;
  --yellow: #f7ca38;
  --gold: #d6991d;
  --green: #31543d;
  --deep: #0f271b;
  --white: #ffffff;
  --line: rgba(23, 33, 26, 0.12);
  --shadow: 0 22px 70px rgba(29, 52, 37, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(255, 250, 240, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--deep);
  color: var(--yellow);
  font-size: 0.85rem;
}

.nav-links { display: flex; align-items: center; gap: 24px; color: var(--muted); font-weight: 700; font-size: 0.94rem; }
.nav-links a:hover { color: var(--ink); }
.nav-button { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--white) !important; }
.menu-toggle { display: none; border: 0; background: transparent; font-size: 1.8rem; }

.section-pad { padding: clamp(70px, 9vw, 128px) clamp(20px, 6vw, 86px); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.9fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
  min-height: calc(100vh - 76px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,202,56,0.42), transparent 68%);
  left: -140px;
  top: 10%;
  z-index: -1;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.hero h1, .section-heading h2, .contact-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero h1 { margin: 0; font-size: clamp(3.7rem, 8.8vw, 7.8rem); max-width: 920px; }
.hero-text { margin: 26px 0 0; max-width: 680px; font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.75; color: var(--muted); }
.hero-actions, .contact-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.primary-btn, .secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.primary-btn { background: var(--deep); color: var(--white); box-shadow: 0 12px 28px rgba(15,39,27,0.18); }
.secondary-btn { border: 1px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.52); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-2px); }

.hero-visual { position: relative; max-width: 520px; justify-self: center; transform: translateY(-34px); }
.image-frame {
  border: 12px solid var(--white);
  border-radius: 42% 42% 28px 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  transform: rotate(1.3deg);
}
.image-frame img { width: 100%; height: min(68vh, 650px); object-fit: cover; object-position: center top; }
.floating-card {
  position: absolute;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255,255,255,0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.13);
}
.floating-card span { display: block; font-weight: 900; font-size: 1.55rem; color: var(--green); }
.floating-card p { margin: 2px 0 0; color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.card-one { left: -32px; top: 18%; }
.card-two { right: -30px; bottom: 12%; }

.intro-strip {
  margin: 0 clamp(20px, 6vw, 86px);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  background: var(--deep);
  color: var(--white);
  border-radius: 32px;
  box-shadow: var(--shadow);
}
.strip-label { color: var(--yellow); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 900; }
.intro-strip p { margin: 9px 0 0; line-height: 1.55; color: rgba(255,255,255,0.83); }

.section-heading { max-width: 740px; margin-bottom: 36px; }
.wide-heading { max-width: 980px; }
.section-heading h2 { margin: 0; font-size: clamp(2.5rem, 5.2vw, 5rem); }
.section-heading p:not(.eyebrow) { margin: 18px 0 0; color: var(--muted); line-height: 1.75; font-size: 1.06rem; }

.impact-grid, .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.impact-grid article, .skills-grid div, .project-card, .timeline article, .process-item {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(29,52,37,0.06);
}
.impact-number { font-size: 3rem; font-weight: 900; color: var(--green); letter-spacing: -0.06em; }
h3 { margin: 12px 0 10px; font-size: 1.24rem; letter-spacing: -0.03em; }
p { line-height: 1.68; }
.impact-grid p, .skills-grid p, .project-card p, .timeline p, .process-item p { color: var(--muted); margin-bottom: 0; }

.projects-section { background: linear-gradient(180deg, transparent, rgba(244,234,208,0.8)); }
.project-list { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: stretch; }
.project-card { min-height: 100%; }
.featured-card { grid-row: span 2; background: var(--white); }
.project-meta { color: var(--gold); font-weight: 900; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.project-card h3 { font-size: clamp(1.6rem, 3vw, 2.8rem); margin-top: 16px; }
.case-grid { margin-top: 26px; display: grid; gap: 12px; }
.case-grid div { padding: 16px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.case-grid strong { display: block; margin-bottom: 6px; color: var(--green); }
.case-grid span { color: var(--muted); line-height: 1.55; }
.compact { grid-template-columns: 1fr; }

.split-section { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 54px; align-items: start; }
.sticky-heading { position: sticky; top: 110px; }
.process-list { display: grid; gap: 16px; }
.process-item { display: grid; grid-template-columns: 58px 1fr; gap: 18px; }
.process-item > span { color: var(--gold); font-weight: 900; font-size: 1.1rem; }
.process-item h3 { margin-top: 0; }

.experience-section { background: var(--deep); color: var(--white); }
.experience-section .section-heading p:not(.eyebrow), .experience-section .timeline p { color: rgba(255,255,255,0.7); }
.timeline { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.timeline article { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.13); box-shadow: none; }
.date { color: var(--yellow); font-weight: 900; font-size: 0.86rem; }

.skills-grid { grid-template-columns: repeat(4, 1fr); }
.skills-grid div { background: var(--white); }

.contact-section { padding-top: 40px; }
.contact-card {
  border-radius: 38px;
  padding: clamp(34px, 7vw, 72px);
  background: linear-gradient(135deg, var(--green), var(--deep));
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contact-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(247,202,56,0.25);
  right: -90px;
  bottom: -140px;
}
.contact-card h2 { margin: 0; max-width: 900px; font-size: clamp(2.4rem, 5vw, 5rem); }
.contact-card p:not(.eyebrow) { max-width: 740px; color: rgba(255,255,255,0.78); }
.light { color: var(--white); border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.09); }

.site-footer {
  padding: 26px clamp(20px, 6vw, 86px);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero, .split-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-visual { order: -1; width: min(86vw, 470px); transform: translateY(-12px); }
  .image-frame img { height: 560px; }
  .project-list, .timeline, .skills-grid, .impact-grid { grid-template-columns: 1fr; }
  .intro-strip { grid-template-columns: 1fr; }
  .sticky-heading { position: static; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 18px;
    border-radius: 22px;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-button { text-align: center; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 4.6rem); }
  .image-frame { border-width: 8px; border-radius: 32px; transform: none; }
  .image-frame img { height: 480px; }
  .floating-card { display: none; }
  .intro-strip { margin-inline: 20px; }
  .process-item { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 8px; }
}

/* Project archive and certification additions */
.archive-heading {
  margin-top: 46px;
  max-width: 760px;
}
.archive-heading h3 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.05em;
  line-height: 1.05;
}
.archive-grid, .cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}
.archive-card, .cert-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(29,52,37,0.06);
}
.archive-card span, .cert-card span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(247,202,56,0.22);
  color: var(--green);
  font-weight: 900;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.archive-card p, .cert-card p {
  color: var(--muted);
  margin-bottom: 0;
}
.archive-card a {
  display: inline-flex;
  margin-top: 18px;
  font-weight: 900;
  color: var(--green);
  border-bottom: 2px solid rgba(49,84,61,0.24);
}
.certifications-section {
  background: linear-gradient(180deg, rgba(244,234,208,0.55), transparent);
}
.cert-card {
  background: var(--white);
}
.cert-card h3 {
  font-size: 1.4rem;
}
@media (max-width: 980px) {
  .archive-grid, .cert-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .archive-grid, .cert-grid { grid-template-columns: 1fr; }
}

/* Final hero adjustments */
.hero h1 {
  font-size: clamp(2.8rem, 6.4vw, 5.6rem);
  line-height: 1.03;
  max-width: 760px;
}

.hero-visual {
  transform: translateY(-90px);
}

/* Tablet */
@media (max-width: 980px) {
  .hero-visual {
    transform: translateY(-32px);
  }

  .hero h1 {
    font-size: clamp(2.7rem, 10vw, 4.8rem);
    max-width: 720px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.8rem);
    line-height: 1.05;
  }

  .hero-visual {
    transform: translateY(-22px);
  }
}
