:root {
  --ink: #07111f;
  --ink-soft: #11243b;
  --paper: #f4f2ec;
  --white: #ffffff;
  --accent: #7ce7d2;
  --accent-strong: #3fc9ae;
  --line-dark: rgba(244, 242, 236, 0.18);
  --line-light: rgba(7, 17, 31, 0.16);
  --muted-dark: #aeb9c7;
  --muted-light: #536171;
  --max-width: 1440px;
  --side: clamp(1.25rem, 4vw, 4.5rem);
  --section-space: clamp(5rem, 10vw, 9rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--accent);
  color: var(--ink);
  font-weight: 750;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5.5rem;
  padding: 0 var(--side);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background-color 220ms ease, border-color 220ms ease, height 220ms ease;
}

.site-header.scrolled {
  height: 4.75rem;
  background: rgba(7, 17, 31, 0.9);
  border-color: var(--line-dark);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.84rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}

.wordmark > span:first-child {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  letter-spacing: -0.06em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.4vw, 2.5rem);
  font-size: 0.88rem;
  font-weight: 650;
}

.site-nav a {
  position: relative;
  padding: 0.5rem 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-nav .nav-linkedin {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.5rem;
  height: 1px;
  margin: 0.4rem auto;
  background: var(--white);
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(56rem, 100svh);
  grid-template-columns: minmax(0, 1.04fr) minmax(20rem, 0.96fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(8rem, 13vh, 10rem) var(--side) clamp(4rem, 8vh, 7rem);
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 72% 42%, rgba(49, 105, 141, 0.3), transparent 34%),
    linear-gradient(115deg, var(--ink), #091b2e 65%, #0b2238);
}

body::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  height: min(56rem, 100svh);
  content: "";
  background: var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  animation: rise-in 700ms 80ms both cubic-bezier(0.2, 0.75, 0.22, 1);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.1rem, 8.4vw, 8.75rem);
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--accent);
  font-style: italic;
}

.hero-role {
  margin: clamp(2rem, 5vh, 3.25rem) 0 0;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.hero-intro {
  max-width: 36rem;
  margin: 1.2rem 0 0;
  color: var(--muted-dark);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 760;
  line-height: 1.2;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: var(--ink);
  background: var(--accent);
}

.button-primary:hover {
  background: var(--white);
}

.text-link {
  padding: 0.5rem 0;
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.9rem;
  font-weight: 680;
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero-portrait {
  position: relative;
  z-index: 1;
  margin: 1.8rem 0 0;
  animation: rise-in 800ms 200ms both cubic-bezier(0.2, 0.75, 0.22, 1);
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.86;
  background: var(--ink-soft);
}

.portrait-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -8rem 10rem rgba(7, 17, 31, 0.22);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  filter: saturate(0.88) contrast(1.04);
  transform: scale(1.005);
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  color: var(--muted-dark);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

.hero-portrait figcaption span {
  color: var(--accent);
  font-weight: 740;
  text-transform: uppercase;
}

.hero-portrait figcaption a:hover {
  color: var(--white);
}

.hero-index {
  position: absolute;
  right: var(--side);
  bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.marquee {
  overflow: hidden;
  color: var(--ink);
  background: var(--accent);
  border-bottom: 1px solid var(--ink);
}

.marquee > div {
  display: flex;
  width: max-content;
  min-width: 100%;
  justify-content: space-around;
  gap: 2rem;
  padding: 1.05rem var(--side);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.marquee span {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.marquee span + span::before {
  margin-right: 2rem;
  content: "·";
  font-size: 1.2rem;
}

.section {
  display: grid;
  grid-template-columns: minmax(9rem, 0.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 8rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-space) var(--side);
}

.section-label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-top: 0.7rem;
  color: var(--muted-light);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-label span {
  color: var(--accent-strong);
}

.section-label p {
  margin: 0;
}

.section-label.light {
  color: var(--muted-dark);
}

.section-label.light span {
  color: var(--accent);
}

.about-content h2,
.experience-heading h2,
.credentials-content > h2,
.connect h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5.4vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.about-content h2 {
  max-width: 67rem;
}

.about-content h2 em {
  color: var(--accent-strong);
  font-weight: 400;
}

.about-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 62rem;
  margin-top: clamp(2.6rem, 6vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-light);
}

.about-columns p {
  margin: 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  line-height: 1.8;
}

.focus,
.credentials {
  max-width: var(--max-width);
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 0 0 100vmax var(--ink);
  clip-path: inset(0 -100vmax);
}

.focus {
  grid-template-columns: minmax(9rem, 0.25fr) minmax(0, 1fr);
}

.focus-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 3rem;
}

.focus-heading .eyebrow {
  margin: 0 0 0.55rem;
}

.focus-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.8vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.focus-grid article {
  min-height: 19rem;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 180ms ease;
}

.focus-grid article:hover {
  background: var(--ink-soft);
}

.focus-grid article > span,
.credential-kicker {
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-grid h3 {
  max-width: 22rem;
  margin: 4rem 0 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.focus-grid p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted-dark);
}

.experience {
  padding-bottom: calc(var(--section-space) + 1rem);
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.6fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: end;
  margin-bottom: clamp(3rem, 7vw, 6rem);
}

.experience-heading p {
  margin: 0;
  color: var(--muted-light);
  font-size: 1.04rem;
  line-height: 1.75;
}

.timeline {
  border-top: 1px solid var(--ink);
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(12rem, 0.38fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line-light);
}

.timeline-meta span {
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-meta p {
  margin: 0.45rem 0 0;
  color: var(--muted-light);
  font-size: 0.88rem;
}

.timeline-item h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.timeline-item > div:last-child p {
  max-width: 46rem;
  margin: 0.8rem 0 0;
  color: var(--muted-light);
}

.credentials-content > h2 {
  max-width: 61rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}

.credential-grid article {
  min-height: 22rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: var(--ink);
}

.credential-kicker {
  margin: 0;
}

.credential-grid h3 {
  max-width: 20rem;
  margin: 5rem 0 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.credential-grid article > p:last-child {
  margin: 0;
  color: var(--muted-dark);
}

.connect {
  position: relative;
  display: grid;
  min-height: min(42rem, 78svh);
  place-content: center;
  padding: var(--section-space) var(--side);
  overflow: hidden;
  text-align: center;
  background: var(--accent);
}

.connect .eyebrow {
  margin-bottom: 2rem;
  color: var(--ink);
}

.connect h2 {
  max-width: 57rem;
  margin-inline: auto;
}

.button-light {
  justify-self: center;
  margin-top: 2.6rem;
  color: var(--white);
  background: var(--ink);
}

.button-light:hover {
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--side);
  color: var(--muted-dark);
  background: var(--ink);
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--accent);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .site-header {
    height: 4.75rem;
  }

  .menu-toggle {
    position: relative;
    z-index: 102;
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(2) {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:not(.sr-only):nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.2rem;
    padding: 6rem var(--side);
    opacity: 0;
    background: rgba(7, 17, 31, 0.98);
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .site-nav.open {
    visibility: visible;
    opacity: 1;
  }

  .site-nav a {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 10vw, 4rem);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 8.5rem;
  }

  .hero-copy {
    max-width: 43rem;
  }

  .hero-portrait {
    width: min(100%, 36rem);
    justify-self: end;
    margin-top: 1.5rem;
  }

  .portrait-frame {
    aspect-ratio: 1;
  }

  .section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-label {
    padding-top: 0;
  }

  .focus-heading,
  .experience-heading {
    display: block;
  }

  .experience-heading p {
    max-width: 38rem;
    margin-top: 2rem;
  }

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

  .credential-grid article {
    min-height: auto;
  }

  .credential-grid h3 {
    margin-top: 3rem;
  }
}

@media (max-width: 650px) {
  .wordmark-name {
    display: none;
  }

  .hero {
    gap: 2.25rem;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 17vw, 5.4rem);
  }

  .hero-role br {
    display: none;
  }

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

  .button-primary {
    align-self: flex-start;
  }

  .text-link {
    align-self: flex-start;
  }

  .hero-index {
    display: none;
  }

  .hero-portrait figcaption {
    flex-direction: column;
    gap: 0.25rem;
  }

  .marquee > div {
    justify-content: flex-start;
    overflow: auto;
  }

  .about-columns,
  .focus-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .about-columns {
    gap: 1.5rem;
  }

  .focus-grid article {
    min-height: auto;
  }

  .focus-grid h3 {
    margin-top: 3rem;
  }

  .timeline-item {
    gap: 1.2rem;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

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