:root {
  --navy-950: #04142f;
  --navy-900: #08224b;
  --navy-800: #123568;
  --turquoise-500: #45e5d1;
  --turquoise-300: #b7f7ee;
  --white: #ffffff;
  --text: #123568;
  --text-soft: #3e5576;
  --surface: #f6fcff;
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;
  --shadow: 0 24px 50px -34px rgba(4, 20, 47, 0.55);
  --parallax-shift: 0px;
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasis: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 12%, rgba(69, 229, 209, 0.25), transparent 35%),
    radial-gradient(circle at 90% 25%, rgba(69, 229, 209, 0.16), transparent 40%),
    linear-gradient(180deg, #f8fdff 0%, #eef5ff 100%);
  line-height: 1.6;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

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

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

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.2rem, 4.2vw, 4rem);
  margin-bottom: 0.85rem;
}

h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  margin-bottom: 0;
}

p {
  margin-top: 0;
}

.container {
  width: min(1120px, calc(100% - 1.6rem));
  margin-inline: auto;
}

.site-header .container {
  width: min(1160px, calc(100% - 0.7rem));
}

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

.background-glow {
  position: fixed;
  z-index: -2;
  pointer-events: none;
  filter: blur(50px);
  opacity: 0.5;
}

.background-glow--left {
  top: -12rem;
  left: -8rem;
  width: 21rem;
  height: 21rem;
  background: radial-gradient(circle, rgba(69, 229, 209, 0.75), rgba(69, 229, 209, 0));
  transform: translateY(calc(var(--parallax-shift) * 0.42));
  transition: transform 120ms linear;
}

.background-glow--right {
  bottom: -8rem;
  right: -9rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, rgba(18, 53, 104, 0.35), rgba(18, 53, 104, 0));
  transform: translateY(calc(var(--parallax-shift) * 0.2));
  transition: transform 120ms linear;
}

section[id] {
  scroll-margin-top: 7rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
  border-bottom: 1px solid rgba(18, 53, 104, 0.1);
  transition: padding-top 220ms ease, background-color 220ms ease, border-color 220ms ease;
}

.topbar {
  min-height: 5.2rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(0.7rem, 2vw, 1.2rem);
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  transition:
    min-height 230ms ease,
    width 230ms ease,
    border-color 230ms ease,
    box-shadow 230ms ease,
    background-color 230ms ease,
    border-radius 230ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.62rem;
  background: transparent;
  border-bottom-color: transparent;
}

.site-header.is-scrolled .topbar {
  width: min(1030px, 90vw);
  min-height: 4.35rem;
  border-radius: 999px;
  border-color: rgba(18, 53, 104, 0.14);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 34px -24px rgba(4, 20, 47, 0.45);
  backdrop-filter: blur(13px);
}

.skill-card,
.logo-card,
.contact-card,
.cv-bullets li,
.cv-item,
.cv-trust-card,
.hero-copy,
.hero-visual,
.cv-phase,
.section-head,
.section-head--row > *,
.cta-row,
.cv-trigger > * {
  min-width: 0;
}

.skill-card h3,
.skill-card p,
.contact-card h3,
.contact-meta,
.contact-note,
.contact-card a:not(.button),
.cv-title,
.cv-phase h3,
.cv-bullets p,
.cv-panel-inner p,
.logo-card figcaption,
.cv-trust-quote,
.cv-values li {
  overflow-wrap: anywhere;
  hyphens: auto;
}

.brand {
  width: clamp(11rem, 21vw, 14rem);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.main-nav a {
  position: relative;
  font-weight: 600;
  color: var(--navy-900);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.28rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--turquoise-500);
  transition: transform 220ms ease;
}

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

.menu-toggle {
  display: none;
  background: var(--white);
  border: 1px solid rgba(18, 53, 104, 0.2);
  border-radius: 0.65rem;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0.45rem;
  gap: 0.25rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 220ms var(--ease-smooth),
    border-color 220ms var(--ease-smooth),
    box-shadow 220ms var(--ease-smooth),
    background-color 220ms var(--ease-smooth);
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--navy-900);
  transition: background-color 220ms var(--ease-smooth);
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(18, 53, 104, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(183, 247, 238, 0.25));
  box-shadow: 0 14px 24px -20px rgba(4, 20, 47, 0.65);
}

.menu-toggle:hover span,
.menu-toggle:focus-visible span {
  background: #103462;
}

.menu-toggle:active {
  transform: translateY(0) scale(0.96);
}

.hero {
  --hero-offset: var(--parallax-shift);
  padding: clamp(3rem, 8vw, 6rem) 0 4rem;
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  transform-style: preserve-3d;
}

.hero-copy {
  transform: translateY(calc(var(--hero-offset) * -0.18));
  transition: transform 120ms linear;
}

.kicker {
  margin: 0 0 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy-800);
}

.lead {
  max-width: 56ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.72rem 1.2rem;
  cursor: pointer;
  transform: translateY(0) scale(1);
  will-change: transform;
  transition:
    transform 240ms var(--ease-smooth),
    box-shadow 260ms var(--ease-smooth),
    border-color 220ms var(--ease-smooth),
    background-color 260ms var(--ease-smooth),
    background-position 360ms var(--ease-smooth);
}

.button::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 28%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0) 72%
  );
  transform: translateX(-135%);
  transition: transform 620ms var(--ease-emphasis);
  pointer-events: none;
}

.button:hover::before,
.button:focus-visible::before {
  transform: translateX(135%);
}

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

.button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(69, 229, 209, 0.25),
    0 16px 26px -22px rgba(4, 20, 47, 0.82);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

.button--primary {
  background: linear-gradient(130deg, #0a2a58 0%, var(--navy-800) 48%, #0a2a58 100%);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: var(--white);
  box-shadow: 0 14px 28px -20px rgba(4, 20, 47, 0.95);
}

.button--primary:hover,
.button--primary:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 18px 32px -22px rgba(4, 20, 47, 0.95);
}

.button--ghost {
  color: var(--navy-900);
  border-color: rgba(18, 53, 104, 0.26);
  background: var(--white);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(69, 229, 209, 0.14));
  border-color: rgba(18, 53, 104, 0.38);
  box-shadow: 0 14px 24px -22px rgba(4, 20, 47, 0.72);
}

.button--small {
  padding: 0.62rem 1rem;
  font-size: 0.86rem;
  color: var(--navy-900);
  border-color: rgba(18, 53, 104, 0.18);
  background: var(--white);
  white-space: normal;
  text-align: center;
  line-height: 1.25;
}

.highlights {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.highlights li {
  background: rgba(69, 229, 209, 0.16);
  border: 1px solid rgba(69, 229, 209, 0.35);
  color: var(--navy-900);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  font-weight: 600;
  font-size: 0.88rem;
}

.hero-visual {
  position: relative;
  min-height: clamp(23rem, 52vw, 35rem);
  transform: translateY(var(--hero-offset));
  transition: transform 120ms linear;
}

.portrait-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(8, 34, 75, 0.11);
  background: var(--white);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-card--large {
  width: min(100%, 31rem);
  height: clamp(23rem, 62vw, 31rem);
  margin-left: auto;
  animation: floaty 7s ease-in-out infinite;
}

.portrait-card--small {
  position: absolute;
  width: min(13rem, 45%);
  height: clamp(10rem, 22vw, 13rem);
  bottom: -1.8rem;
  left: 0;
  border: 4px solid var(--white);
}

.section {
  padding: clamp(3.3rem, 8vw, 5.5rem) 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

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

.skill-card {
  padding: 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 53, 104, 0.13);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 252, 255, 0.9));
  box-shadow: 0 20px 34px -32px rgba(4, 20, 47, 0.85);
}

.skill-card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.3rem;
}

.skill-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.section--contrast {
  background:
    radial-gradient(circle at 8% 18%, rgba(69, 229, 209, 0.22), transparent 36%),
    linear-gradient(180deg, #d8e9f5 0%, #e7f2f8 58%, #edf6fb 100%);
  color: var(--text);
  border-top: 1px solid rgba(18, 53, 104, 0.08);
  border-bottom: 1px solid rgba(18, 53, 104, 0.08);
}

.section--contrast .kicker,
.section--contrast h2 {
  color: var(--navy-900);
}

.cv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 24rem);
  gap: 1.35rem;
  align-items: start;
}

.cv-main {
  min-width: 0;
  --cv-year-col: 7.6rem;
  --timeline-gutter: 1.2rem;
  --timeline-line-x: 0.46rem;
  --timeline-dot-size: 0.66rem;
}

.cv-intro {
  margin-top: 0;
  margin-bottom: 1.1rem;
  color: var(--text-soft);
  max-width: 70ch;
}

.cv-bullets {
  margin: 0 0 1.2rem 0;
  padding: 0 0 0 var(--timeline-gutter);
  list-style: none;
  display: grid;
  gap: 0.45rem;
  position: relative;
}

.cv-bullets::before {
  content: "";
  position: absolute;
  left: var(--timeline-line-x);
  top: 0.3rem;
  bottom: 0.3rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(18, 53, 104, 0.18), rgba(69, 229, 209, 0.38));
}

.cv-bullets li {
  padding: 0.5rem 0.65rem;
  border: 1px solid rgba(18, 53, 104, 0.13);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.84);
  display: grid;
  grid-template-columns: var(--cv-year-col) 1fr;
  align-items: center;
  gap: 0.55rem;
  position: relative;
}

.cv-bullets li::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-line-x) - var(--timeline-gutter) - (var(--timeline-dot-size) / 2));
  top: 50%;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 999px;
  border: 2px solid #d8e9f5;
  background: rgba(18, 53, 104, 0.55);
  transform: translateY(-50%);
}

.cv-bullets .cv-year {
  width: 100%;
  justify-content: center;
}

.cv-phase h3 {
  margin: 0 0 0.15rem;
  color: var(--navy-900);
  font-size: 0.96rem;
}

.cv-bullets p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.cv-subtitle {
  margin: 1.3rem 0 0.8rem;
  color: var(--navy-900);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
}

.cv-timeline {
  display: grid;
  gap: 0.75rem;
  position: relative;
  padding-left: var(--timeline-gutter);
}

.cv-timeline::before {
  content: "";
  position: absolute;
  left: var(--timeline-line-x);
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(18, 53, 104, 0.16), rgba(18, 53, 104, 0.34));
}

.cv-item {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(18, 53, 104, 0.13);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.cv-item::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-line-x) - var(--timeline-gutter) - (var(--timeline-dot-size) / 2));
  top: 1.35rem;
  width: var(--timeline-dot-size);
  height: var(--timeline-dot-size);
  border-radius: 999px;
  border: 2px solid #d8e9f5;
  background: rgba(18, 53, 104, 0.55);
  transform: translateY(-50%);
}

.cv-trigger {
  width: 100%;
  border: none;
  background: none;
  color: inherit;
  text-align: left;
  padding: 0.95rem 1rem;
  display: grid;
  grid-template-columns: var(--cv-year-col) 1fr auto;
  align-items: center;
  gap: 0.8rem;
  cursor: pointer;
  transition: background-color 220ms var(--ease-smooth), transform 220ms var(--ease-smooth);
}

.cv-trigger:hover,
.cv-trigger:focus-visible {
  background: rgba(69, 229, 209, 0.1);
}

.cv-trigger:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(69, 229, 209, 0.35);
}

.cv-trigger:active {
  transform: scale(0.996);
}

.cv-trigger .cv-year {
  width: 100%;
  justify-content: center;
}

.cv-year {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(69, 229, 209, 0.3);
  border: 1px solid rgba(18, 53, 104, 0.16);
  color: var(--navy-900);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.22rem 0.6rem;
  white-space: nowrap;
}

.cv-title {
  font-weight: 600;
}

.cv-badge-current {
  display: inline-flex;
  margin-left: 0.45rem;
  padding: 0.14rem 0.48rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(69, 229, 209, 0.22);
  border: 1px solid rgba(69, 229, 209, 0.45);
  color: var(--navy-900);
  vertical-align: middle;
}

.cv-icon {
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.cv-item.open .cv-icon {
  transform: rotate(-135deg) translate(-2px, 1px);
}

.cv-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease;
}

.cv-panel-inner {
  padding: 0 1rem 1rem;
  color: var(--text-soft);
}

.cv-panel-inner p:last-child {
  margin-bottom: 0;
}

.cv-item--current {
  background: linear-gradient(150deg, rgba(8, 34, 75, 0.95), rgba(18, 53, 104, 0.95));
  color: #ebf5ff;
  border-color: rgba(8, 34, 75, 0.85);
  box-shadow: 0 24px 36px -28px rgba(4, 20, 47, 0.9);
}

.cv-item--current::before {
  background: rgba(69, 229, 209, 0.95);
  border-color: rgba(8, 34, 75, 0.7);
}

.cv-item--current .cv-year {
  background: rgba(69, 229, 209, 0.2);
  border-color: rgba(183, 247, 238, 0.45);
  color: #d9fff8;
}

.cv-item--current .cv-badge-current {
  background: rgba(69, 229, 209, 0.28);
  border-color: rgba(183, 247, 238, 0.62);
  color: #f4fffd;
}

.cv-item--current .cv-panel-inner {
  color: #d6e8ff;
}

.cv-item--current .cv-trigger:hover,
.cv-item--current .cv-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.js .cv-bullets li,
.js .cv-item {
  opacity: 0.8;
  transform: translateX(10px);
  transition:
    transform 420ms ease,
    opacity 420ms ease,
    border-color 300ms ease,
    box-shadow 300ms ease;
}

.js .cv-bullets li.is-active,
.js .cv-item.is-active {
  opacity: 1;
  transform: translateX(0);
}

.js .cv-bullets li::before,
.js .cv-item::before {
  opacity: 0.58;
  transform: translateY(-50%) scale(0.74);
  transition:
    transform 340ms ease,
    opacity 340ms ease,
    background-color 340ms ease,
    box-shadow 340ms ease;
}

.js .cv-bullets li.is-active::before,
.js .cv-item.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  box-shadow: 0 0 0 4px rgba(69, 229, 209, 0.22);
}

.js .cv-item--current.is-active::before {
  box-shadow: 0 0 0 5px rgba(69, 229, 209, 0.3);
}

.cv-aside {
  position: sticky;
  top: 6.4rem;
}

.cv-portrait {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(18, 53, 104, 0.13);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 34px -30px rgba(4, 20, 47, 0.6);
}

.cv-portrait img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.cv-portrait figcaption {
  padding: 0.7rem 0.85rem 0.85rem;
  font-size: 0.86rem;
  color: var(--text-soft);
}

.cv-trust-card {
  margin-top: 0.75rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(18, 53, 104, 0.15);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 30px -28px rgba(4, 20, 47, 0.65);
}

.cv-trust-quote {
  margin: 0 0 0.65rem;
  font-weight: 600;
  color: var(--navy-900);
}

.cv-values {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}

.cv-values li {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.logo-card {
  margin: 0;
  padding: 0.9rem;
  background: var(--white);
  border: 1px solid rgba(18, 53, 104, 0.12);
  border-radius: var(--radius-md);
  min-height: 10rem;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 17px 30px -28px rgba(4, 20, 47, 0.7);
}

.logo-card a {
  border-radius: 0.75rem;
  border: 1px solid transparent;
  min-height: 5.2rem;
  display: grid;
  place-items: center;
  transition: border-color 170ms ease, background-color 170ms ease, transform 170ms ease;
}

.logo-card a:hover,
.logo-card a:focus-visible {
  border-color: rgba(69, 229, 209, 0.55);
  background: rgba(69, 229, 209, 0.13);
  transform: translateY(-1px);
}

.logo-card img {
  margin-inline: auto;
  width: auto;
  height: 4.5rem;
  object-fit: contain;
}

.logo-card figcaption {
  text-align: center;
  color: var(--text-soft);
  font-size: 0.83rem;
  font-weight: 600;
}

.section--quote {
  background: linear-gradient(180deg, rgba(183, 247, 238, 0.34), rgba(255, 255, 255, 0.92));
}

.quote-wrap blockquote {
  margin: 0;
  max-width: 64ch;
  border-left: 4px solid var(--turquoise-500);
  padding: 1rem 0 0.8rem 1.2rem;
  color: var(--navy-900);
  font-size: clamp(1.03rem, 2vw, 1.24rem);
}

.quote-wrap cite {
  margin-top: 0.8rem;
  display: inline-block;
  font-size: 0.95rem;
  color: var(--text-soft);
  font-style: normal;
  font-weight: 700;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.contact-card {
  background: var(--white);
  border: 1px solid rgba(18, 53, 104, 0.14);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  box-shadow: 0 17px 30px -28px rgba(4, 20, 47, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(69, 229, 209, 0.22);
  color: var(--navy-900);
  flex: 0 0 auto;
}

.contact-icon svg {
  width: 1.14rem;
  height: 1.14rem;
  fill: currentColor;
}

.contact-card h3 {
  margin: 0;
  font-size: 1.3rem;
}

.contact-meta,
.contact-note {
  margin: 0;
  color: var(--text-soft);
}

.contact-note {
  font-size: 0.88rem;
}

.contact-card a:not(.button) {
  color: var(--navy-900);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-card--cta {
  grid-column: span 1;
  background: linear-gradient(140deg, var(--navy-900), #0f3a74);
  color: #eff8ff;
}

.contact-card--cta h3,
.contact-card--cta p,
.contact-card--cta .contact-meta,
.contact-card--cta .contact-note {
  color: inherit;
}

.contact-card--cta .contact-icon {
  background: rgba(183, 247, 238, 0.2);
  color: var(--white);
}

.contact-card--cta .button--primary {
  background: linear-gradient(130deg, #38d5c2, #27bbaa);
}

.contact-card--cta .button--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.contact-card--cta .button--ghost:hover,
.contact-card--cta .button--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 24px -22px rgba(4, 20, 47, 0.9);
}

.site-footer {
  border-top: 1px solid rgba(18, 53, 104, 0.12);
  background: var(--white);
}

.footer-inner {
  min-height: 4.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.footer-inner a {
  font-weight: 700;
}

.footer-links a {
  color: var(--navy-900);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.scroll-top {
  position: fixed;
  right: clamp(0.9rem, 2.2vw, 1.4rem);
  bottom: clamp(1rem, 2.6vw, 1.8rem);
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(69, 229, 209, 0.55);
  border-radius: 999px;
  background: linear-gradient(140deg, var(--navy-900), var(--navy-800), #1b4e88);
  background-size: 180% 180%;
  background-position: 0% 50%;
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 18px 30px -24px rgba(4, 20, 47, 0.9);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease-smooth),
    box-shadow 220ms var(--ease-smooth),
    background-position 320ms var(--ease-smooth),
    border-color 220ms var(--ease-smooth);
  z-index: 40;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background-position: 100% 50%;
  border-color: rgba(69, 229, 209, 0.75);
  box-shadow: 0 22px 34px -23px rgba(4, 20, 47, 0.95);
  transform: translateY(-1px) scale(1);
}

.scroll-top:active {
  transform: translateY(0) scale(0.96);
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal] {
  opacity: 1;
  filter: saturate(0.9);
  transform: translateY(20px);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.js [data-reveal].is-visible {
  filter: none;
  transform: translateY(0);
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .hero-visual {
    min-height: unset;
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 0.85rem;
    align-items: stretch;
  }

  .portrait-card--large,
  .portrait-card--small {
    position: static;
    width: 100%;
    height: 20rem;
    margin-left: 0;
    animation: none;
    border-width: 1px;
  }

  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-aside {
    position: static;
  }

  .cv-portrait img {
    aspect-ratio: 16 / 8;
  }

  .skills-grid,
  .contact-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-header.is-scrolled .topbar {
    width: min(94vw, 760px);
  }
}

@media (max-width: 760px) {
  .site-header .container {
    width: calc(100% - 0.55rem);
  }

  .topbar {
    padding-inline: 0.62rem;
  }

  .brand {
    width: clamp(9.6rem, 44vw, 11.2rem);
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .portrait-card--small {
    display: none;
  }

  .portrait-card--large {
    height: 18rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.2rem;
    width: min(17rem, calc(100vw - 1.4rem));
    background: var(--white);
    border-radius: 0.8rem;
    border: 1px solid rgba(18, 53, 104, 0.12);
    box-shadow: 0 18px 26px -24px rgba(4, 20, 47, 0.95);
    padding: 0.8rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .main-nav.is-open {
    display: flex;
  }

  .site-header {
    padding-top: 0;
  }

  .site-header.is-scrolled .topbar {
    width: min(calc(100% - 0.35rem), 520px);
    min-height: 4.55rem;
    border-radius: 1rem;
  }

  .site-header.is-scrolled {
    padding-top: 0.35rem;
  }

  .section-head--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .skills-grid,
  .logo-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .cv-main {
    --cv-year-col: 5.9rem;
    --timeline-gutter: 1.04rem;
    --timeline-line-x: 0.34rem;
    --timeline-dot-size: 0.56rem;
  }

  .cv-bullets li {
    grid-template-columns: var(--cv-year-col) 1fr;
  }

  .cv-trigger {
    grid-template-columns: var(--cv-year-col) 1fr auto;
  }

  .cv-bullets .cv-year,
  .cv-trigger .cv-year {
    grid-column: auto;
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.85rem 0;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .scroll-top {
    right: 0.85rem;
    bottom: 0.85rem;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(1.9rem, 9.4vw, 2.45rem);
    line-height: 1.06;
  }

  .container {
    width: min(1120px, calc(100% - 1rem));
  }

  .topbar {
    min-height: 4.7rem;
  }

  .hero {
    padding-top: 2.2rem;
  }

  .lead {
    font-size: 0.97rem;
  }

  .cta-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.58rem;
  }

  .cta-row .button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .highlights li {
    font-size: 0.82rem;
  }

  .cv-main {
    --cv-year-col: 5.55rem;
  }

  .cv-bullets li {
    padding: 0.46rem 0.56rem;
    gap: 0.45rem;
  }

  .cv-phase h3 {
    font-size: 0.91rem;
  }

  .cv-bullets p {
    font-size: 0.82rem;
  }

  .cv-trigger {
    gap: 0.54rem;
    padding: 0.85rem 0.8rem;
  }

  .cv-trigger .cv-year {
    font-size: 0.76rem;
    padding: 0.2rem 0.46rem;
  }

  .contact-card {
    padding: 0.95rem;
  }

  .logo-card figcaption {
    font-size: 0.8rem;
  }
}

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

  .hero-copy,
  .hero-visual,
  .background-glow--left,
  .background-glow--right {
    transform: none !important;
    transition: none !important;
  }

  .portrait-card--large {
    animation: none !important;
  }

  .button,
  .button::before,
  .menu-toggle,
  .menu-toggle span,
  .cv-trigger,
  .scroll-top {
    transition: none !important;
  }

  .button::before {
    display: none;
  }

  .button:hover,
  .button:focus-visible,
  .button:active,
  .menu-toggle:hover,
  .menu-toggle:focus-visible,
  .menu-toggle:active,
  .cv-trigger:hover,
  .cv-trigger:focus-visible,
  .cv-trigger:active,
  .scroll-top:hover,
  .scroll-top:focus-visible,
  .scroll-top:active {
    transform: none !important;
  }

  .js .cv-bullets li,
  .js .cv-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .cv-bullets li::before,
  .js .cv-item::before {
    opacity: 1;
    transform: translateY(-50%);
    transition: none;
  }
}

@media print {
  .site-header,
  .menu-toggle,
  .button,
  .background-glow,
  .hero-visual,
  .site-footer {
    display: none !important;
  }

  .scroll-top {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11.5pt;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .section,
  .hero {
    padding: 0 0 1.1rem;
  }

  .section--contrast,
  .section--quote,
  .contact-card--cta {
    background: transparent;
    color: #000;
  }

  .cv-panel {
    max-height: none !important;
  }

  .cv-panel-inner {
    color: #111;
  }
}

.legal-main {
  padding: 2.4rem 0 3.2rem;
}

.legal-content {
  width: min(900px, 92vw);
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 53, 104, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 45px -34px rgba(4, 20, 47, 0.55);
  padding: clamp(1.1rem, 2vw, 1.8rem);
}

.legal-content h1 {
  margin-bottom: 0.8rem;
}

.legal-content h2 {
  margin-top: 1.4rem;
  margin-bottom: 0.45rem;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
}

.legal-content ul {
  margin-top: 0.35rem;
}

.legal-note {
  background: rgba(69, 229, 209, 0.17);
  border: 1px solid rgba(69, 229, 209, 0.35);
  border-radius: 0.7rem;
  padding: 0.75rem 0.85rem;
}
