:root {
  --ink: #1b1918;
  --header-offset: 92px;
  --muted: #67605f;
  --soft: #f8f3f1;
  --paper: #fffdfb;
  --line: #e8deda;
  --rose: #bd6676;
  --rose-deep: #8d3f51;
  --sage: #65756a;
  --gold: #a87b42;
  --shadow: 0 12px 34px rgba(69, 46, 45, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fffdfb 0%, #f8f3f1 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0 28px;
  padding: 10px 10px 10px 14px;
  border: 1px solid rgba(232, 222, 218, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.92);
  box-shadow: 0 8px 22px rgba(69, 46, 45, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
}

.brand-text {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a {
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 9px 12px;
  transition: background 120ms ease, color 120ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #f0e8e5;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.section {
  padding: 48px 0;
}

.section,
.split-section,
.skills-section,
.feedback-section,
.contact-section {
  scroll-margin-top: var(--header-offset);
}

.hero-container {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 48vh;
  padding: 56px 0 48px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

#heroSignatureCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 840px;
  padding: 0;
}

.hero-content h1 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 4.5vw, 3.68rem);
  line-height: 1;
  color: var(--ink);
}

.hero-content h2 {
  max-width: 720px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(0.68rem, 1.33vw, 0.89rem);
  font-weight: 600;
  line-height: 1.45;
}

#hero .eyebrow {
   font-size: 0.85rem;
   margin-bottom: 10px;

}

.navlinks ul {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navlinks a {
  color: var(--rose-deep);
  font-weight: 800;
  transition: color 120ms ease;
}

.navlinks a:hover,
.navlinks a:focus-visible {
  color: var(--ink);
}

.navlinks li {
  color: var(--muted);
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: 34px;
  align-items: start;
  min-height: auto;
  padding-top: 42px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(1.5rem, 3.15vw, 2.78rem);
}

h2 {
  max-width: 760px;
  font-size: clamp(0.85rem, 1.67vw, 1.4rem);
}

h3 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.3;
}

.hero-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions,
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 11px 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 20px rgba(22, 20, 20, 0.14);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 253, 251, 0.82);
  color: var(--rose-deep);
}

.impact-panel {
  position: relative;
  min-height: auto;
  border: 1px solid rgba(232, 222, 218, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.72);
  box-shadow: var(--shadow);
  overflow: hidden;
}

#signatureCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

.impact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  min-height: auto;
  padding: 1px;
}

.impact-grid article {
  display: flex;
  min-height: 146px;
  flex-direction: column;
  justify-content: center;
  gap: 9px;
  padding: 22px;
  background: rgba(255, 253, 251, 0.72);
  backdrop-filter: blur(4px);
}

.impact-grid strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 2vw, 1.46rem);
  line-height: 1.04;
}

.impact-grid span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  line-height: 1.35;
}

.intro-band {
  position: relative;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(1.02rem, 1.35vw, 1.22rem);
  font-weight: 500;
  line-height: 1.7;
  padding: 38px 0;
}

.intro-band::before {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rose-deep), var(--gold));
  content: "";
}

.intro-band p {
  max-width: 900px;
  margin: 0;
  padding-left: 26px;
}

.intro-lead {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.18;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.section-heading {
  position: sticky;
  top: 108px;
}

.timeline,
.feedback-grid,
.education-grid,
.activity-list {
  display: grid;
  gap: 14px;
}

.timeline-item,
.feedback-grid article,
.education-grid article,
.activity-list article,
.skills-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 251, 0.78);
  box-shadow: 0 8px 22px rgba(69, 46, 45, 0.045);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.timeline-item.featured {
  border-color: rgba(189, 102, 118, 0.3);
  background: rgba(255, 253, 251, 0.9);
}

.feedback-section {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  border-bottom: 1px solid var(--line);
}

.feedback-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feedback-grid article {
  padding: 22px;
}

.feedback-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.timeline-meta {
  display: grid;
  align-content: start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.company,
.date,
.activity-list span {
  margin: 4px 0 0;
  color: var(--rose-deep);
  font-weight: 800;
}

.timeline-content p {
  margin: 12px 0 0;
  color: var(--muted);
}

ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

li {
  margin: 8px 0;
  color: var(--muted);
}

.tags {
  margin-top: 18px;
}

.tags span {
  border: 1px solid rgba(181, 138, 77, 0.3);
  border-radius: var(--radius);
  background: rgba(181, 138, 77, 0.08);
  color: #6d5232;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 5px 9px;
}

.skills-section {
  border-block: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.skills-grid article,
.education-grid article,
.activity-list article {
  padding: 22px;
}

.skills-grid p,
.education-grid p,
.activity-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.activity-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  max-width: 780px;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .brand-text {
    display: none;
  }

  .hero,
  .feedback-section,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .section-heading {
    position: static;
  }

  .skills-grid,
  .feedback-grid,
  .activity-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 1080px);
  }

  .site-header {
    top: 8px;
    margin-top: 8px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 12px auto;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 253, 251, 0.96);
    box-shadow: var(--shadow);
    padding: 12px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    border-radius: var(--radius);
    padding: 13px;
  }

  .section {
    padding: 38px 0;
  }

  .hero-container {
    min-height: auto;
    padding: 46px 0 38px;
  }

  .hero-content h1,
  h1 {
    font-size: clamp(1.58rem, 8.25vw, 2.59rem);
  }

  .hero-actions,
  .contact-section {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-grid article {
    min-height: 128px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }
}

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