:root {
  --ink: #172224;
  --muted: #647173;
  --line: #d9e0df;
  --paper: #f4f0e8;
  --panel: #ffffff;
  --soft: #edf4f2;
  --navy: #102f36;
  --teal: #0f6a70;
  --teal-dark: #0b4d53;
  --gold: #bc8438;
  --slate: #2c3e44;
  --shadow: 0 18px 56px rgba(16, 47, 54, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 40;
  transform: translateY(-140%);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  font-weight: 780;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid rgba(217, 224, 223, 0.82);
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: clamp(12px, 2.3vw, 26px);
  align-items: center;
  color: var(--muted);
  font-size: 0.93rem;
}

.nav a {
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  text-decoration: none;
}

.nav a:hover,
.nav a.is-active {
  color: var(--teal);
  border-bottom-color: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 5vw, 66px);
  align-items: center;
  min-height: 640px;
  padding: clamp(46px, 6vw, 78px) clamp(20px, 7vw, 96px);
  background:
    linear-gradient(135deg, rgba(237, 244, 242, 0.97), rgba(244, 240, 232, 0.88) 58%, rgba(188, 132, 56, 0.16)),
    linear-gradient(90deg, rgba(15, 106, 112, 0.09), rgba(15, 106, 112, 0));
}

.hero-copy {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: var(--navy);
  font-size: clamp(3.05rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.85rem, 3.3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.1rem;
  line-height: 1.25;
}

.lead {
  max-width: 720px;
  color: #2f4244;
  font-size: clamp(1.05rem, 1.55vw, 1.24rem);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-highlights span {
  border: 1px solid rgba(15, 106, 112, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  padding: 8px 12px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 720;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  font-weight: 780;
  text-decoration: none;
  white-space: nowrap;
}

.button.primary {
  background: var(--teal);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.48);
  color: var(--teal-dark);
}

.button.light {
  border-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  color: #fff;
}

.profile-card {
  display: grid;
  gap: 22px;
  align-self: center;
  border: 1px solid rgba(16, 47, 54, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  box-shadow: var(--shadow);
}

.portrait {
  width: 100%;
  max-height: 360px;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
}

.profile-card h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.profile-card p {
  color: var(--muted);
}

.profile-facts {
  display: grid;
  gap: 1px;
  margin-bottom: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.profile-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  background: #fff;
  padding: 12px;
}

.profile-facts dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  color: var(--slate);
  font-weight: 760;
}

.summary-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.summary-band div {
  padding: 24px clamp(20px, 4vw, 54px);
  background: var(--navy);
}

.summary-band strong {
  display: block;
  margin-bottom: 5px;
  color: #f2c184;
  font-size: 1.25rem;
}

.summary-band span {
  color: #dbecee;
}

.tabs-section {
  position: sticky;
  top: 72px;
  z-index: 15;
  border-bottom: 1px solid rgba(217, 224, 223, 0.86);
  background: rgba(244, 240, 232, 0.94);
  padding: 14px clamp(20px, 7vw, 96px);
  backdrop-filter: blur(16px);
}

.tab-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.tab-button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(15, 106, 112, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
  padding: 10px 14px;
}

.tab-button:hover,
.tab-button.is-active,
.tab-button[aria-selected="true"] {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.tab-panel[hidden] {
  display: none !important;
}

.section {
  min-height: 520px;
  padding: clamp(52px, 7vw, 82px) clamp(20px, 7vw, 96px);
}

.section.tinted {
  background: #e8efea;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 16px;
}

.feature-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(22px, 3.4vw, 34px);
}

.feature-panel.large {
  grid-row: span 2;
  background: var(--navy);
  color: #eef6f5;
}

.feature-panel.large h3 {
  color: #fff;
}

.feature-panel p:last-child,
.timeline-body p:last-child,
.project-list p:last-child,
.credential-list p:last-child,
.contact-section p:last-child {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 42px);
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(16, 47, 54, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.timeline-item.compact {
  background: rgba(255, 255, 255, 0.56);
}

.timeline-meta {
  border-right: 1px solid var(--line);
  padding-right: 22px;
}

.timeline-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 780;
}

.timeline-meta strong {
  display: block;
  color: #2d3a39;
}

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

.project-list article,
.credential-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: clamp(20px, 2.7vw, 28px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 72px);
  background: #fbf8f1;
}

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

.credential-list span {
  display: block;
  margin-bottom: 9px;
  color: var(--teal);
  font-weight: 800;
}

.credential-list p {
  color: var(--muted);
}

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

.skill-list span {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(15, 106, 112, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  padding: 11px 13px;
  color: #263836;
  font-weight: 680;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(48px, 7vw, 78px) clamp(20px, 7vw, 96px);
  background: var(--navy);
  color: #fff;
}

.contact-section h2 {
  color: #fff;
}

.contact-section p {
  max-width: 640px;
  color: #dbecee;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: #f2c184;
  font-weight: 780;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: clamp(20px, 3vw, 28px);
}

.contact-form label {
  display: grid;
  gap: 7px;
}

.contact-form span {
  color: #dbecee;
  font-size: 0.9rem;
  font-weight: 760;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  padding: 12px 13px;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(242, 193, 132, 0.32);
  border-color: #f2c184;
}

.contact-form .button {
  width: fit-content;
  cursor: pointer;
}

.contact-section .button.primary {
  border-color: #f2c184;
  background: #f2c184;
  color: var(--navy);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 7vw, 96px);
  color: var(--muted);
  background: #fffaf0;
}

.site-footer a {
  color: var(--teal);
  font-weight: 760;
  text-decoration: none;
}

.message-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(237, 244, 242, 0.97), rgba(244, 240, 232, 0.88) 58%, rgba(188, 132, 56, 0.16)),
    linear-gradient(90deg, rgba(15, 106, 112, 0.09), rgba(15, 106, 112, 0));
}

.message-card {
  width: min(100%, 620px);
  border: 1px solid rgba(16, 47, 54, 0.11);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  padding: clamp(26px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.message-card .brand {
  margin-bottom: 34px;
}

.message-card h1 {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
}

.message-card p:not(.eyebrow) {
  color: var(--slate);
  font-size: 1.08rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .content-grid,
  .summary-band,
  .split-section,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .profile-card {
    max-width: 520px;
  }

  .timeline-meta {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 14px;
  }

  .project-list,
  .credential-list,
  .skill-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 14px;
    font-size: 0.88rem;
  }

  .tabs-section {
    position: static;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 2.78rem;
  }

  .profile-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .project-list,
  .credential-list,
  .skill-list {
    grid-template-columns: 1fr;
  }

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

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