:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #ece8df;
  --ink: #17201e;
  --muted: #626b67;
  --line: rgba(23, 32, 30, 0.13);
  --accent: #0b7a75;
  --accent-strong: #095d59;
  --gold: #d28b28;
  --rose: #bd4f5c;
  --shadow: 0 24px 70px rgba(25, 32, 30, 0.14);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111513;
  --surface: #1a211e;
  --surface-soft: #222a26;
  --ink: #f4f0e8;
  --muted: #b5bdb6;
  --line: rgba(244, 240, 232, 0.14);
  --accent: #55c9bf;
  --accent-strong: #83ded6;
  --gold: #eba948;
  --rose: #e27884;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  background:
    linear-gradient(120deg, rgba(11, 122, 117, 0.08), transparent 34%),
    linear-gradient(260deg, rgba(210, 139, 40, 0.11), transparent 38%),
    var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  background: color-mix(in srgb, var(--gold) 42%, transparent);
}

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

.flow-lines {
  position: absolute;
  inset: 76px 0 0;
  z-index: 0;
  min-height: calc(100% - 76px);
  overflow: hidden;
  pointer-events: none;
}

.flow-lines svg {
  width: 100%;
  height: 100%;
}

.flow-path {
  fill: none;
  stroke-linecap: round;
  stroke-width: 2.4;
  opacity: 0.32;
  vector-effect: non-scaling-stroke;
}

.flow-thin {
  stroke-width: 1.6;
  opacity: 0.24;
}

.flow-teal {
  stroke: var(--accent);
}

.flow-gold {
  stroke: var(--gold);
}

.flow-rose {
  stroke: var(--rose);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.contact-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
}

.theme-toggle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(48px, 8vw, 96px) clamp(20px, 4vw, 64px) 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6.6vw, 86px);
  line-height: 1;
  letter-spacing: 0;
}

.accent-word {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.12em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4.8vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

.hero-summary {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 78%, var(--gold)));
  color: #ffffff;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}

.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

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

.hero-visual {
  position: relative;
  min-height: 520px;
  transform: perspective(1200px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 180ms ease, filter 180ms ease;
  transform-style: preserve-3d;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait-visual {
  isolation: isolate;
  border-radius: 8px;
}

.portrait-visual::before {
  position: absolute;
  inset: 28px -16px -18px 30px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold), var(--rose));
  opacity: 0.42;
  filter: blur(28px);
  content: "";
}

.portrait-visual::after {
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, #ffffff 40%, transparent);
  border-radius: 8px;
  content: "";
  pointer-events: none;
}

.portrait-photo {
  aspect-ratio: 4 / 5;
  object-position: center 34%;
  filter: saturate(0.96) contrast(1.04);
  transform: translateZ(24px);
}

.signal-card {
  position: absolute;
  display: grid;
  gap: 4px;
  width: min(210px, 46%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(12px);
  transform: translateZ(42px);
}

.signal-card strong {
  font-size: 24px;
}

.signal-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.signal-top {
  top: 24px;
  left: -20px;
}

.signal-bottom {
  right: -18px;
  bottom: 42px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 4vw, 64px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics article,
.focus-item,
.quote-panel {
  background: var(--surface);
}

.metrics article {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
}

.metrics article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--accent);
  content: "";
}

.metrics article:nth-child(2)::before {
  background: var(--gold);
}

.metrics article:nth-child(3)::before {
  background: var(--rose);
}

.metrics span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.metrics strong {
  display: block;
  margin: 16px 0 10px;
  font-size: 20px;
}

.metrics p,
.focus-item p,
.timeline-card p,
.leadership-copy p,
.bio-card p,
.project-card p,
.contact-section p {
  color: var(--muted);
  line-height: 1.65;
}

.section {
  padding: clamp(72px, 11vw, 138px) clamp(20px, 4vw, 64px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(30px, 6vw, 84px);
}

.about-section {
  padding-bottom: clamp(62px, 9vw, 112px);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: clamp(22px, 5vw, 70px);
}

.bio-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bio-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--gold), var(--rose));
  content: "";
}

.bio-card p {
  font-size: clamp(17px, 1.7vw, 21px);
}

.bio-card p:last-child,
.profile-notes div:last-child,
.project-card li:last-child {
  margin-bottom: 0;
}

.profile-notes {
  display: grid;
  align-content: start;
  gap: 12px;
}

.profile-notes div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.profile-notes span,
.project-kicker {
  display: block;
  margin-bottom: 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-notes strong {
  display: block;
  font-size: 18px;
  line-height: 1.35;
}

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

.focus-item {
  min-height: 210px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--accent-strong);
  font-weight: 800;
}

.leadership-band {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  background: var(--ink);
  color: var(--bg);
}

.leadership-band .eyebrow {
  color: var(--gold);
}

.leadership-copy p {
  color: color-mix(in srgb, var(--bg) 78%, transparent);
  font-size: 18px;
}

.quote-panel {
  padding: clamp(26px, 5vw, 44px);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.quote-panel p {
  margin-bottom: 20px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
}

.quote-panel span {
  color: var(--muted);
  font-weight: 800;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-intro {
  max-width: 740px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.timeline-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 36%),
    var(--surface);
  box-shadow: var(--shadow);
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-legend span {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.scroll-hint {
  margin-left: auto;
  color: var(--accent-strong);
}

.scroll-hint::after {
  content: " ->";
}

.legend-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.education-dot {
  background: var(--gold);
}

.experience-dot {
  background: var(--accent);
}

.timeline-scroll {
  position: relative;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-color: var(--accent) var(--surface-soft);
}

.timeline-scroll:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 4px;
}

.timeline-track {
  --step: 268px;
  position: relative;
  width: calc((15 * var(--step)) + 260px);
  min-height: 590px;
  padding: 40px 120px;
}

.timeline-track::before {
  position: absolute;
  top: 50%;
  left: 96px;
  right: 96px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--rose), var(--accent));
  content: "";
}

.timeline-card {
  position: absolute;
  left: calc(120px + (var(--pos) * var(--step)));
  width: 236px;
  min-height: 196px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: 0 18px 46px rgba(25, 32, 30, 0.1);
  scroll-snap-align: center;
}

.timeline-card::before {
  position: absolute;
  left: 31px;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.timeline-card p {
  margin-bottom: 0;
}

.education-card {
  bottom: calc(50% + 34px);
  border-top: 4px solid var(--gold);
}

.education-card::before {
  bottom: -35px;
  height: 35px;
}

.experience-card {
  top: calc(50% + 34px);
  border-top: 4px solid var(--accent);
}

.experience-card::before {
  top: -35px;
  height: 35px;
}

.timeline-node {
  position: absolute;
  left: 22px;
  width: 20px;
  height: 20px;
  border: 5px solid var(--surface);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line);
}

.education-card .timeline-node {
  bottom: -45px;
  background: var(--gold);
}

.experience-card .timeline-node {
  top: -45px;
  background: var(--accent);
}

.timeline-date {
  color: var(--accent-strong) !important;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.projects-section {
  padding-top: clamp(56px, 9vw, 106px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.project-card::before {
  position: absolute;
  inset: 0;
  border-top: 5px solid var(--accent);
  content: "";
  pointer-events: none;
}

.project-card:nth-child(2)::before {
  border-top-color: var(--gold);
}

.project-card:nth-child(3)::before {
  border-top-color: var(--rose);
}

.project-card h3 {
  font-size: 24px;
  line-height: 1.2;
}

.project-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 22px 0 0;
  list-style: none;
}

.project-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.project-card li::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.contact-section {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin: 0 clamp(20px, 4vw, 64px) clamp(32px, 5vw, 64px);
  padding: clamp(34px, 7vw, 62px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 42%),
    linear-gradient(315deg, color-mix(in srgb, var(--gold) 12%, transparent), transparent 44%),
    var(--surface);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-tags a,
.contact-tags span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.contact-tags a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .flow-lines {
    opacity: 0.55;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .split-section,
  .leadership-band,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .metrics,
  .focus-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    --step: 248px;
    min-height: 560px;
    padding-inline: 84px;
    width: calc((15 * var(--step)) + 180px);
  }

  .timeline-card {
    left: calc(84px + (var(--pos) * var(--step)));
    width: 220px;
  }

  .contact-section,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-visual,
  .portrait-photo,
  .button {
    transition: none;
    transform: none;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .metrics,
  .contact-section {
    margin-inline: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .signal-card {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
}
