:root {
  --bg: #f4efe6;
  --bg-2: #efe7da;
  --surface: rgba(255, 252, 247, 0.76);
  --surface-strong: #fffdf8;
  --ink: #1e2c2e;
  --ink-soft: #536568;
  --line: rgba(34, 58, 58, 0.12);
  --teal: #1d5b5b;
  --teal-2: #2d7777;
  --teal-soft: rgba(29, 91, 91, 0.08);
  --copper: #b76b3b;
  --olive: #6c7f52;
  --shadow: 0 18px 45px rgba(76, 65, 49, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(183, 107, 59, 0.09), transparent 28%),
    radial-gradient(circle at left 20%, rgba(29, 91, 91, 0.12), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #f8f4ed 42%, #f2ecdf 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

.page-glow,
.grid-veil,
.progress-line,
.menu-backdrop {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.page-glow {
  width: 42vw;
  height: 42vw;
  filter: blur(70px);
  opacity: 0.6;
  border-radius: 50%;
}

.page-glow-a {
  top: -12vw;
  right: -8vw;
  background: rgba(29, 91, 91, 0.12);
}

.page-glow-b {
  bottom: 12vh;
  left: -12vw;
  background: rgba(183, 107, 59, 0.1);
}

.grid-veil {
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 44, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 44, 46, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.9), transparent 82%);
}

.progress-line {
  inset: 0 auto auto 0;
  width: 0;
  height: 3px;
  z-index: 20;
  background: linear-gradient(90deg, var(--copper), var(--teal-2));
  box-shadow: 0 0 18px rgba(29, 91, 91, 0.3);
}

.menu-backdrop {
  inset: 0;
  z-index: 8;
  opacity: 0;
  background: rgba(236, 228, 216, 0.3);
  backdrop-filter: blur(0);
  transition: opacity 180ms ease, backdrop-filter 180ms ease, background 180ms ease;
}

body.menu-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
  background: rgba(236, 228, 216, 0.5);
  backdrop-filter: blur(10px) saturate(0.9);
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.content-layer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0 0;
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.nav-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled .nav-shell {
  background: rgba(255, 252, 247, 0.7);
  border-color: rgba(34, 58, 58, 0.08);
  box-shadow: 0 10px 28px rgba(76, 65, 49, 0.08);
  backdrop-filter: blur(16px);
}

.site-header.scrolled::before {
  background: linear-gradient(180deg, rgba(244, 239, 230, 0.96), rgba(244, 239, 230, 0.82) 70%, rgba(244, 239, 230, 0));
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--teal), #244749);
  color: #fbf7f1;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-text {
  font-size: 0.98rem;
}

.site-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(29, 91, 91, 0.12);
  background: rgba(255, 255, 255, 0.56);
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 10px 24px rgba(76, 65, 49, 0.08);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.84);
  border: 1px solid rgba(34, 58, 58, 0.08);
  box-shadow: 0 14px 34px rgba(76, 65, 49, 0.1);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 12;
}

.mobile-menu.is-open {
  display: grid;
  gap: 8px;
}

.mobile-menu a {
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-weight: 800;
  transition: background 180ms ease, color 180ms ease;
}

.mobile-menu a:hover {
  background: rgba(29, 91, 91, 0.08);
  color: var(--teal);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.92rem;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.site-nav a:hover {
  background: rgba(29, 91, 91, 0.08);
  color: var(--teal);
  transform: translateY(-1px);
}

.hero {
  padding: 64px 0 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.hero-side-stack {
  display: grid;
  gap: 18px;
}

.hero-copy,
.hero-panel,
.impact-card,
.system-card,
.tool-band,
.role-card,
.closing-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.85), rgba(255, 250, 242, 0.78));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.hero-copy {
  padding: 36px;
  border-radius: 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(29, 91, 91, 0.08);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.closing-card h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.03em;
  line-height: 1.03;
  margin: 18px 0 0;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.3rem);
  max-width: 10ch;
}

.hero h1 span {
  display: block;
  color: var(--teal);
}

.hero-summary {
  margin: 22px 0 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--teal), var(--teal-2));
  color: #fffaf2;
  box-shadow: 0 16px 28px rgba(29, 91, 91, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1px solid rgba(29, 91, 91, 0.14);
}

.contact-ribbon {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-ribbon a,
.contact-ribbon span {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(29, 91, 91, 0.08);
  background: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-panel {
  border-radius: 32px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -120px -120px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 107, 59, 0.12), transparent 68%);
}

.hero-skills-card {
  display: none;
}

.panel-frame {
  height: 100%;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(160deg, #173f40 0%, #20494a 45%, #234447 100%);
  color: #f9f3eb;
  position: relative;
  overflow: hidden;
}

.panel-topline {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #d6ebe7;
}

.panel-core {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel-stat {
  min-height: 124px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.panel-stat:hover,
.panel-stat:focus-within {
  transform: translateY(-4px) scale(1.015);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 30px rgba(7, 25, 25, 0.18);
}

.panel-stat strong {
  display: block;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.panel-stat span {
  display: block;
  margin-top: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(249, 243, 235, 0.84);
}

.panel-note {
  margin-top: 16px;
  color: rgba(249, 243, 235, 0.84);
  font-size: 0.95rem;
}

.hero-skills-frame::after {
  content: "";
  position: absolute;
  inset: auto -110px -110px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 107, 59, 0.1), transparent 68%);
}

.hero-skills-copy {
  margin: 14px 0 0;
  color: rgba(249, 243, 235, 0.84);
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 42ch;
  position: relative;
  z-index: 1;
}

.hero-skill-cloud {
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.hero-skills-card .hero-skill-cloud span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f9f3eb;
}

.hero-skills-card .hero-skill-cloud span:hover,
.hero-skills-card .hero-skill-cloud span:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 30px rgba(7, 25, 25, 0.18);
  color: #ffffff;
}

.section {
  padding: 44px 0;
}

.section-soft {
  padding-bottom: 72px;
}

.section-head {
  max-width: 740px;
  margin-bottom: 24px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-head p {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.impact-card {
  border-radius: 26px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateY(0) scale(1);
}

.impact-card::after,
.system-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -45% auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 91, 91, 0.1), transparent 70%);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.impact-card:hover,
.impact-card:focus-within,
.system-card:hover,
.system-card:focus-within {
  transform: translateY(-10px) scale(1.02);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 251, 245, 0.88));
  border-color: rgba(29, 91, 91, 0.22);
  box-shadow:
    0 30px 52px rgba(7, 25, 25, 0.18),
    0 10px 24px rgba(29, 91, 91, 0.08);
}

.impact-card:hover::after,
.impact-card:focus-within::after,
.system-card:hover::after,
.system-card:focus-within::after {
  opacity: 1;
  transform: scale(1);
}

.impact-kicker {
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 800;
}

.impact-number {
  margin-top: 8px;
  font-family: "Fraunces", serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.05;
}

.impact-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.system-card {
  border-radius: 28px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  will-change: transform;
  transform: translateY(0) scale(1);
}

.system-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.65rem;
}

.system-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.tool-band {
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 24px;
}

.tool-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--teal);
}

.tool-list,
.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tool-list span,
.skill-cloud span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(29, 91, 91, 0.06);
  border: 1px solid rgba(29, 91, 91, 0.12);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.93rem;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
  will-change: transform;
}

.tool-list span:hover,
.tool-list span:focus-visible,
.skill-cloud span:hover,
.skill-cloud span:focus-visible {
  transform: translateY(-4px) scale(1.015);
  background: rgba(29, 91, 91, 0.12);
  border-color: rgba(29, 91, 91, 0.18);
  box-shadow: 0 18px 30px rgba(29, 91, 91, 0.1);
  color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-panel,
  .impact-card,
  .system-card,
  .tool-band,
  .role-card,
  .closing-card,
  .panel-stat,
  .tool-list span,
  .skill-cloud span {
    transition: none;
  }

  .impact-card:hover,
  .impact-card:focus-within,
  .system-card:hover,
  .system-card:focus-within,
  .tool-list span:hover,
  .tool-list span:focus-visible,
  .skill-cloud span:hover,
  .skill-cloud span:focus-visible {
    transform: none;
  }
}


.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, rgba(29, 91, 91, 0.42), rgba(183, 107, 59, 0.3));
}

.role-card {
  position: relative;
  margin-left: 54px;
  border-radius: 28px;
  padding: 24px 24px 22px;
}

.role-card::before {
  content: "";
  position: absolute;
  left: -42px;
  top: 26px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--copper));
  box-shadow: 0 0 0 7px rgba(29, 91, 91, 0.09);
}

.role-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.role-date {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(29, 91, 91, 0.08);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.2;
}

.role-track {
  flex: 1;
  min-width: 260px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--copper);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 700;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(183, 107, 59, 0.08);
  border: 1px solid rgba(183, 107, 59, 0.14);
  color: var(--copper);
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.role-card h3 {
  margin: 14px 0 0;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.role-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.role-card li + li {
  margin-top: 8px;
}

.closing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
}

.closing-card {
  border-radius: 30px;
  padding: 28px;
}

.contact-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-stack a,
.contact-stack span {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(29, 91, 91, 0.12);
  font-weight: 700;
}

.education-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(29, 91, 91, 0.92), rgba(35, 73, 74, 0.95));
  color: #fbf7f1;
}

.education-label {
  color: rgba(251, 247, 241, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 800;
}

.education-card strong,
.education-card span {
  display: block;
}

.education-card strong {
  margin-top: 10px;
  font-size: 1.1rem;
}

.education-card span {
  margin-top: 6px;
  color: rgba(251, 247, 241, 0.8);
}

@media (min-width: 781px) {
  .hero-skills-card {
    display: block;
  }

  .hero-skills-frame {
    min-height: 100%;
  }

  .hero-skill-cloud span {
    font-size: 0.88rem;
    padding: 9px 13px;
  }

  .closing-skills {
    display: none;
  }

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

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 80ms;
}

.delay-2 {
  transition-delay: 140ms;
}

.delay-3 {
  transition-delay: 200ms;
}

.delay-4 {
  transition-delay: 260ms;
}

@media (max-width: 1100px) {
  .impact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    overflow: visible;
  }

  .site-header.scrolled::before {
    background: linear-gradient(180deg, rgba(244, 239, 230, 0.98), rgba(244, 239, 230, 0.9) 72%, rgba(244, 239, 230, 0));
  }

  body.menu-open main {
    filter: blur(4px) saturate(0.9);
    transform: scale(0.995);
    transition: filter 180ms ease, transform 180ms ease;
  }

  main {
    transition: filter 180ms ease, transform 180ms ease;
  }

  main {
    padding-top: 126px;
  }

  .nav-shell {
    border-radius: 24px;
    align-items: center;
    overflow: visible;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .hero-copy,
  .hero-panel,
  .role-card,
  .closing-card {
    padding: 24px;
  }

  .timeline::before {
    left: 12px;
  }

  .role-card {
    margin-left: 30px;
  }

  .role-card::before {
    left: -24px;
  }

  .role-card h3 {
    font-size: 1.6rem;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(var(--max), calc(100% - 24px));
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    max-width: none;
  }

  .contact-ribbon {
    display: grid;
    grid-template-columns: 1fr;
  }

  .panel-core {
    grid-template-columns: 1fr;
  }

  .site-nav {
    gap: 8px;
  }
}
