:root {
  color-scheme: light;
  --navy: #0f172a;
  --gold: #d4a017;
  --white: #ffffff;
  --ivory: #fafaf9;
  --text: #111827;
  --muted: #5f6876;
  --soft: #f4f1eb;
  --line: rgba(15, 23, 42, 0.12);
  --line-strong: rgba(15, 23, 42, 0.2);
  --gold-soft: rgba(212, 160, 23, 0.14);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.09);
  --shadow-hover: 0 28px 72px rgba(15, 23, 42, 0.13);
  --radius: 12px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--ivory);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(212, 160, 23, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0, rgba(250, 250, 249, 0) 520px);
  pointer-events: none;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(212, 160, 23, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  font-weight: 800;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px max(24px, calc((100vw - var(--container)) / 2));
  background: rgba(212, 160, 23, 0.96);
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
}

.menu-toggle,
.menu-close {
  display: none;
}

.nav-backdrop {
  display: none;
}

.brand {
  display: inline-flex;
  width: 220px;
  height: 58px;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: rgba(15, 23, 42, 0.78);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--navy);
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.section {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(58px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 94px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: calc(100vh - 83px);
  padding: clamp(66px, 8vw, 112px) 0 clamp(54px, 7vw, 88px);
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.74) 50%, rgba(15, 23, 42, 0.34) 100%),
    url("https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=2200&q=85");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.42));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  width: min(var(--container), calc(100% - 48px));
  min-height: calc(100vh - 240px);
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(38px, 6vw, 82px);
  margin: 0 auto;
}

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

.hero-headshot {
  display: block;
  width: clamp(104px, 12vw, 148px);
  aspect-ratio: 1;
  height: auto;
  margin: 0 0 22px;
  border: 3px solid rgba(255, 255, 255, 0.86);
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 20%;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  width: 54px;
  height: 2px;
  background: var(--gold);
}

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

h1,
h2,
h3 {
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

.hero h1,
.hero h3 {
  color: var(--white);
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 0.96;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.6vw, 3.4rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
  line-height: 1.32;
}

.subtitle {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--white);
  font-size: clamp(1.04rem, 1.45vw, 1.24rem);
  font-weight: 800;
}

.hero-summary {
  max-width: 650px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.contact-strip a,
.contact-card a {
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-strip a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  padding: 0 15px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.contact-strip a:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.contact-strip svg,
.contact-card svg {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 800;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

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

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

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

.button.primary:hover {
  background: #bd8d12;
}

.button.secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.profile-card {
  align-self: center;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(14px);
}

.snapshot-list {
  display: grid;
  gap: 20px;
  margin: 0;
}

.snapshot-list div {
  min-height: 0;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.snapshot-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.snapshot-list dt {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snapshot-list dd {
  margin: 6px 0 0;
  color: var(--white);
  font-weight: 800;
  line-height: 1.45;
}

.summary-section,
.two-column,
.contact-section {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}

.section-label,
.compact-heading {
  position: sticky;
  top: 104px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.summary-card,
.highlight-card,
.skill-group,
.timeline-card,
.credential-card,
.education-list article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: clamp(26px, 4vw, 42px);
  background: #ffffff;
}

.summary-card p {
  max-width: 780px;
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.03rem;
}

.summary-card p:last-child {
  margin-bottom: 0;
}

.highlight-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.highlight-card,
.skill-group,
.timeline-card,
.credential-card,
.education-list article {
  transition: box-shadow 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.highlight-card {
  min-height: 220px;
  padding: 24px;
}

.highlight-card:hover,
.skill-group:hover,
.timeline-card:hover,
.credential-card:hover,
.education-list article:hover {
  border-color: rgba(212, 160, 23, 0.42);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.marker {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.highlight-card p,
.skill-group p,
.timeline-card li,
.credential-card li,
.education-list p {
  color: var(--muted);
}

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

.skill-group {
  padding: 24px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(212, 160, 23, 0.28);
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.08);
  padding: 0 12px;
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin-left: 10px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(15, 23, 42, 0.12));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  margin-top: 30px;
  border: 5px solid #f7ecd0;
  border-radius: 50%;
  background: var(--gold);
}

.timeline-card {
  padding: clamp(24px, 4vw, 32px);
}

.role-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 14px;
}

.company-logo {
  display: block;
  width: auto;
  max-width: 136px;
  height: 42px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 12px;
  opacity: 0.88;
  filter: saturate(0.86);
}

.company,
.duration {
  margin: 0;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
}

.duration {
  flex: 0 0 auto;
  border: 1px solid rgba(212, 160, 23, 0.26);
  border-radius: 999px;
  background: rgba(212, 160, 23, 0.08);
  padding: 6px 11px;
  color: var(--navy);
  text-align: right;
}

.timeline-card ul,
.credential-card ul {
  margin: 0;
  padding-left: 20px;
}

.timeline-card li + li,
.credential-card li + li {
  margin-top: 8px;
}

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

.credential-card,
.education-list article {
  padding: 26px;
}

.education-list p {
  margin-bottom: 0;
}

.contact-section {
  align-items: center;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(74px, 9vw, 116px) max(24px, calc((100vw - var(--container)) / 2));
  border-top: 0;
  background-image:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.48)),
    url("https://images.unsplash.com/photo-1552152370-fb05b25ff17d?auto=format&fit=crop&w=2200&q=85");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.contact-section h2 {
  color: var(--white);
}

.contact-section .eyebrow {
  color: var(--gold);
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.86);
  color: var(--navy);
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.contact-card a {
  display: inline-flex;
  align-items: center;
}

.contact-card a:hover {
  color: var(--gold);
}

.site-footer {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-top: 0;
  padding: 34px max(24px, calc((100vw - var(--container)) / 2));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #28396c;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: max(18px, calc((100vw - var(--container)) / 2 + 18px));
  bottom: 22px;
  z-index: 45;
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(15, 23, 42, 0.18);
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, background 160ms ease;
}

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

.back-to-top:hover {
  background: #bd8d12;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

@media (max-width: 1180px) {
  .highlight-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-inner,
  .summary-section,
  .two-column,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

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

  .section-label,
  .compact-heading {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    z-index: 80;
    padding: 12px 16px;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    width: 170px;
    height: 48px;
  }

  .menu-toggle {
    display: inline-grid;
    width: 44px;
    height: 44px;
    grid-column: 3;
    align-items: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.26);
    padding: 10px;
    color: var(--navy);
    cursor: pointer;
    position: relative;
    z-index: 65;
    touch-action: manipulation;
  }

  .menu-toggle span:not(.sr-only) {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 90;
    display: none;
    width: min(82vw, 320px);
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
    padding: 24px;
    background: var(--white);
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.24);
    color: var(--navy);
    font-size: 1rem;
    pointer-events: none;
  }

  .nav-links a {
    border-bottom: 1px solid rgba(15, 23, 42, 0.1);
    padding: 14px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .menu-close {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: var(--radius);
    background: var(--gold);
    padding: 0 14px;
    color: var(--navy);
    font-weight: 800;
  }

  .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    background: rgba(15, 23, 42, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .nav-links {
    display: flex;
    pointer-events: auto;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .section {
    width: min(100% - 32px, var(--container));
  }

  .contact-section {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-inner {
    width: min(100% - 32px, var(--container));
  }

  .site-footer {
    width: 100%;
    padding-right: 16px;
    padding-left: 16px;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
  }

  h1 {
    font-size: clamp(3rem, 13vw, 4.8rem);
  }

  h2 {
    font-size: clamp(1.85rem, 9vw, 2.7rem);
  }

  .highlight-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .role-header {
    display: grid;
    gap: 10px;
  }

  .duration {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .snapshot-list {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 480px) {
  .contact-strip,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-strip a,
  .button {
    width: 100%;
    justify-content: center;
  }

  .summary-card,
  .highlight-card,
  .skill-group,
  .timeline-card,
  .credential-card,
  .education-list article,
  .contact-card {
    padding: 20px;
  }

  .timeline {
    margin-left: 0;
  }

  .timeline-item {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .timeline::before {
    left: 9px;
  }

  .timeline-dot {
    width: 20px;
    height: 20px;
    border-width: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
