:root {
  --ink: #102a43;
  --ink-soft: #486581;
  --paper: #f7f9fc;
  --white: #ffffff;
  --line: #d9e2ec;
  --accent: #1d7a8c;
  --accent-bright: #43c6ac;
  --accent-pale: #e8f7f4;
  --hero: #0b1f33;
  --shadow: 0 18px 45px rgba(16, 42, 67, 0.08);
  --radius: 18px;
}

* {
  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", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}

a:hover {
  color: #135f6e;
}

a:focus-visible {
  outline: 3px solid var(--accent-bright);
  outline-offset: 4px;
  border-radius: 3px;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: -100px;
  left: 1rem;
  padding: 0.7rem 1rem;
  color: var(--hero);
  background: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(125deg, rgba(11, 31, 51, 0.98), rgba(16, 59, 72, 0.95)),
    var(--hero);
}

.hero::after {
  position: absolute;
  right: -5%;
  bottom: -140px;
  left: -5%;
  height: 210px;
  border-radius: 50% 50% 0 0;
  background: var(--paper);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 8.5rem;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.32;
}

.hero__glow--one {
  top: -150px;
  right: 5%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, #43c6ac 0, transparent 68%);
}

.hero__glow--two {
  right: 30%;
  bottom: -230px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #1d7a8c 0, transparent 68%);
}

.monogram {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  place-items: center;
  color: var(--accent-bright);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-bright);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 0.75rem;
  font-size: clamp(3rem, 9vw, 6.25rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero__summary {
  max-width: 690px;
  margin: 1.5rem 0 2rem;
  color: #d9e8ec;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.5rem;
}

.contact-list a {
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration-color: rgba(67, 198, 172, 0.65);
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(285px, 0.8fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-top: 2rem;
  padding-bottom: 6rem;
}

section + section {
  margin-top: 5.5rem;
}

h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(1.9rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h3 {
  margin-bottom: 0.25rem;
  font-size: 1.18rem;
  line-height: 1.35;
}

.lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 3.5rem 2rem;
  border-left: 1px solid var(--line);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__marker {
  position: absolute;
  top: 0.45rem;
  left: -6px;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.role-heading {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.role-title {
  margin-bottom: 0;
  color: var(--accent);
  font-weight: 700;
}

.role-meta {
  flex: 0 0 auto;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.55;
  text-align: right;
}

.timeline-item ul,
.plain-list {
  margin: 0;
  padding-left: 1.2rem;
}

.timeline-item li + li,
.plain-list li + li {
  margin-top: 0.65rem;
}

.timeline-item li::marker,
.plain-list li::marker {
  color: var(--accent);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

.project-card .award {
  margin-bottom: 0.45rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.secondary-column {
  padding-top: 0.2rem;
}

.secondary-column section + section {
  margin-top: 1.25rem;
}

.side-panel {
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.side-panel h2 {
  margin-bottom: 1.35rem;
  font-size: 1.45rem;
}

.skill-groups > div + div {
  margin-top: 1.6rem;
}

.skill-groups h3 {
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 0.28rem 0.65rem;
  border: 1px solid #c6e6e1;
  border-radius: 999px;
  color: #135f6e;
  background: var(--accent-pale);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.compact-item + .compact-item {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.compact-item h3 {
  font-size: 1rem;
}

.compact-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.plain-list {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

footer {
  color: #bcccdc;
  background: var(--hero);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-content p {
  margin-bottom: 0;
}

.footer-content a {
  color: var(--accent-bright);
  font-weight: 700;
}

@media (max-width: 820px) {
  .hero {
    min-height: 430px;
  }

  .page-layout {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .secondary-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .secondary-column section + section {
    margin-top: 0;
  }

  .side-panel:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 2rem, 1120px);
  }

  .hero__content {
    padding-top: 3rem;
  }

  .contact-list {
    flex-direction: column;
    align-items: flex-start;
  }

  section + section {
    margin-top: 4rem;
  }

  .role-heading {
    display: block;
  }

  .role-meta {
    margin-top: 0.55rem;
    text-align: left;
  }

  .project-grid,
  .secondary-column {
    grid-template-columns: 1fr;
  }

  .side-panel:first-child {
    grid-column: auto;
  }

  .footer-content {
    display: block;
  }

  .footer-content a {
    display: inline-block;
    margin-top: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media print {
  :root {
    --paper: #fff;
  }

  body {
    font-size: 10pt;
  }

  .hero {
    min-height: 0;
    color: var(--ink);
    background: #fff;
  }

  .hero::after,
  .hero__glow,
  .monogram,
  footer {
    display: none;
  }

  .hero__content {
    padding: 0 0 1.5rem;
  }

  .hero .eyebrow,
  .hero__summary,
  .contact-list a {
    color: var(--ink);
  }

  h1 {
    font-size: 34pt;
  }

  .page-layout {
    display: block;
    padding: 0;
  }

  section + section {
    margin-top: 2rem;
  }

  .timeline-item {
    break-inside: avoid;
  }

  .secondary-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
  }

  .side-panel {
    padding: 1rem;
    break-inside: avoid;
    box-shadow: none;
  }

  .project-card {
    break-inside: avoid;
    box-shadow: none;
  }
}
