:root {
  --ink: #101728;
  --navy: #071a3d;
  --navy-soft: #0d2858;
  --paper: #f4f1e9;
  --white: #fffefb;
  --aqua: #9ce1d2;
  --aqua-soft: #d9f2eb;
  --line: rgba(16, 23, 40, 0.18);
  --max-width: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
  --radius: 0.35rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

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

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-160%);
}

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

.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 10;
  display: flex;
  width: min(100%, var(--max-width));
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--gutter);
  color: var(--white);
  transform: translateX(-50%);
}

.monogram {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:not(.nav-contact) {
  opacity: 0.7;
  transition: opacity 180ms ease;
}

.main-nav a:not(.nav-contact):hover,
.main-nav a:not(.nav-contact):focus-visible {
  opacity: 1;
}

.nav-contact {
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero::before {
  position: absolute;
  right: 10%;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(156, 225, 210, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 760px;
  flex-direction: column;
  justify-content: center;
  padding: 9rem var(--gutter) 6rem max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
}

.eyebrow,
.section-index,
.detail-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: clamp(2.5rem, 5vw, 5rem);
  color: var(--aqua);
}

.eyebrow span {
  margin-inline: 0.55rem;
  opacity: 0.45;
}

h1 {
  margin-bottom: 1.6rem;
  font-size: clamp(4.3rem, 9.8vw, 9.2rem);
  font-weight: 750;
  letter-spacing: -0.07em;
  line-height: 0.79;
  text-transform: uppercase;
}

.hero-role {
  max-width: 38rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
  font-weight: 630;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero-intro {
  max-width: 36rem;
  margin-bottom: 2.25rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  color: var(--navy);
  background: var(--aqua);
}

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

.button-secondary {
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.hero-portrait {
  position: relative;
  min-height: 38rem;
  overflow: hidden;
  background: #e7eced;
}

.hero-portrait::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(7, 26, 61, 0.22), transparent 22%, transparent 65%, rgba(7, 26, 61, 0.72));
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 34%;
  filter: saturate(0.82) contrast(1.03);
}

.availability {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.availability span {
  color: var(--aqua);
  font-size: 0.72rem;
  line-height: 1;
  animation: pulse 2.4s ease-out infinite;
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.section {
  padding: clamp(5rem, 10vw, 9rem) max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
}

.section-heading {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 0.8fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(3.5rem, 7vw, 6rem);
}

.section-index {
  color: #476057;
}

.section-heading h2,
.contact h2 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.4vw, 5.3rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.section-heading > p:last-child {
  max-width: 24rem;
  color: #526059;
  font-size: 1.02rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric {
  min-height: 20rem;
  padding: 2rem;
  border-right: 1px solid var(--line);
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border-right: 0;
}

.metric-value {
  margin-bottom: 4.2rem;
  color: var(--navy-soft);
  font-size: clamp(3.6rem, 6vw, 6.2rem);
  font-weight: 720;
  letter-spacing: -0.07em;
  line-height: 1;
}

.metric h3 {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
}

.metric > p:last-child {
  margin-bottom: 0;
  color: #59645f;
  font-size: 0.92rem;
}

.recognition {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding-top: 2rem;
}

.recognition p {
  margin: 0;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.experience {
  color: var(--white);
  background: var(--navy);
}

.section-heading-light {
  grid-template-columns: 0.55fr 2.1fr;
}

.section-heading-light .section-index {
  color: var(--aqua);
}

.timeline {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.role {
  display: grid;
  grid-template-columns: 0.55fr 2.1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.role-meta {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.8rem;
}

.role-meta p {
  margin-bottom: 0.2rem;
}

.role-meta .role-date {
  color: var(--aqua);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.role-company {
  margin-bottom: 0.25rem;
  color: var(--aqua);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.role-content h3 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.role-summary {
  max-width: 49rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.08rem;
}

.role-content ul {
  display: grid;
  max-width: 55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem 2.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.role-content li {
  position: relative;
  padding-left: 1.2rem;
  color: rgba(255, 255, 255, 0.77);
  font-size: 0.9rem;
}

.role-content li::before {
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.expertise-card {
  min-height: 21rem;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  background: var(--white);
}

.expertise-card.featured {
  color: var(--white);
  background: var(--navy-soft);
}

.card-number {
  margin-bottom: 5rem;
  color: #698078;
  font-size: 0.75rem;
  font-weight: 800;
}

.featured .card-number {
  color: var(--aqua);
}

.expertise-card h3 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.55rem, 2.6vw, 2.65rem);
  font-weight: 640;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.expertise-card > p:last-child {
  max-width: 32rem;
  margin-bottom: 0;
  color: #687069;
}

.expertise-card.featured > p:last-child {
  color: rgba(255, 255, 255, 0.68);
}

.details-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: clamp(3rem, 8vw, 8rem);
  padding-top: clamp(4rem, 8vw, 7rem);
}

.detail-label {
  margin-bottom: 2rem;
  color: #476057;
}

.education ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.education li {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.education li > span {
  color: #66716c;
  font-size: 0.84rem;
  font-weight: 750;
}

.education strong {
  display: block;
  font-size: 1rem;
}

.education li p,
.personal p {
  margin-bottom: 0;
  color: #66716c;
  font-size: 0.9rem;
}

.personal {
  display: grid;
  align-content: start;
  gap: 3.5rem;
}

.personal div > p:not(.detail-label) {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

.contact {
  color: var(--white);
  background: var(--navy-soft);
}

.contact .section-index {
  margin-bottom: 4rem;
  color: var(--aqua);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(25rem, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}

.contact-copy {
  display: flex;
  flex-direction: column;
}

.contact-copy p {
  max-width: 34rem;
  margin: 2rem 0;
  color: rgba(255, 255, 255, 0.62);
}

.linkedin-link {
  display: flex;
  max-width: 24rem;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 700;
  text-decoration: none;
}

.linkedin-link:hover,
.linkedin-link:focus-visible {
  color: var(--aqua);
}

.location {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.88rem;
}

.contact-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.55rem;
}

.form-field label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  outline: none;
  color: var(--white);
  background: transparent;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

.form-field input {
  min-height: 3rem;
}

.form-field textarea {
  min-height: 8rem;
  padding: 0.8rem 0;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--aqua);
  background: rgba(255, 255, 255, 0.025);
}

.form-submit {
  display: inline-flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.85rem 1.2rem;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: var(--aqua);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.form-submit:hover,
.form-submit:focus-visible {
  background: var(--white);
  transform: translateY(-2px);
}

.form-note {
  margin: -0.35rem 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.75rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem max(var(--gutter), calc((100vw - var(--max-width)) / 2 + var(--gutter)));
  color: rgba(255, 255, 255, 0.55);
  background: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
  45% {
    opacity: 1;
    transform: scale(1.18);
  }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: reveal linear both;
    animation-range: entry 8% cover 34%;
    animation-timeline: view();
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(2.5rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 46rem;
  }

  .hero-portrait {
    min-height: 70svh;
  }

  .scroll-cue {
    display: none;
  }

  .section-heading,
  .section-heading-light {
    grid-template-columns: 1fr;
  }

  .section-heading h2 {
    max-width: 44rem;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(3) {
    padding-left: 0;
  }

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

@media (max-width: 640px) {
  html {
    scroll-padding-top: 2rem;
  }

  .site-header {
    padding-top: 1rem;
  }

  .main-nav a:not(.nav-contact) {
    display: none;
  }

  .hero-copy {
    min-height: 44rem;
    padding-top: 8.5rem;
  }

  h1 {
    font-size: clamp(3.8rem, 20vw, 5.8rem);
  }

  .hero-role {
    font-size: 1.45rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-portrait {
    min-height: 72svh;
  }

  .availability {
    right: 1.25rem;
    bottom: 1.25rem;
  }

  .metrics,
  .expertise-grid,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .metric,
  .metric:first-child,
  .metric:nth-child(3) {
    min-height: auto;
    padding: 2rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .metric-value {
    margin-bottom: 2rem;
  }

  .role {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .role-content ul {
    grid-template-columns: 1fr;
  }

  .expertise-card {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 3rem;
  }

  .contact-grid {
    gap: 3rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact h2 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .site-footer {
    flex-direction: column;
    gap: 0.6rem;
  }
}

@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;
  }
}

@media print {
  body {
    color: #111;
    background: #fff;
    font-size: 10pt;
  }

  .site-header,
  .hero-actions,
  .scroll-cue,
  .site-footer {
    display: none;
  }

  .hero,
  .experience,
  .contact {
    color: #111;
    background: #fff;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr 12rem;
    border-bottom: 2px solid #111;
  }

  .hero-copy {
    padding: 2rem;
  }

  .hero-portrait {
    min-height: 16rem;
  }

  .eyebrow,
  .role-company,
  .role-meta .role-date,
  .section-heading-light .section-index,
  .contact .section-index {
    color: #2c5a54;
  }

  h1 {
    font-size: 52pt;
  }

  .section {
    padding: 2.5rem 2rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .section-heading h2,
  .contact h2 {
    font-size: 28pt;
  }

  .metric {
    min-height: auto;
  }

  .metric-value,
  .card-number {
    margin-bottom: 1rem;
  }

  .role,
  .expertise-card {
    break-inside: avoid;
  }

  .role-meta,
  .role-summary,
  .role-content li,
  .contact-copy p,
  .location,
  .form-field label,
  .form-note {
    color: #333;
  }

  .contact-form {
    border-color: #bbb;
    background: #fff;
  }

  .form-field input,
  .form-field textarea {
    border-color: #777;
    color: #111;
  }

  .role,
  .timeline {
    border-color: #bbb;
  }
}
