:root {
  /* Switch background themes by changing `body` class:
     `theme-tech-blue`, `theme-warm-editorial`, or `theme-geo-grid`. */
  --bg-base-start: #edf3f8;
  --bg-base-end: #e2ebf3;
  --bg-accent-1: rgba(47, 95, 142, 0.18);
  --bg-accent-2: rgba(126, 165, 201, 0.16);
  --bg-accent-3: rgba(209, 222, 236, 0.22);
  --bg-pattern: none;
  --surface: #ffffff;
  --surface-soft: #fbfdff;
  --text: #1f2730;
  --muted: #616b75;
  --accent: #2f5f8e;
  --accent-soft: #dbe8f4;
  --border: #dbe2ea;
  --focus: #2f5f8e;
  --shadow-sm: 0 8px 18px rgba(22, 30, 40, 0.08);
  --shadow-lg: 0 20px 42px rgba(22, 30, 40, 0.12);
  --radius-section: 22px;
  --radius-card: 15px;
  --max-width: 1100px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  background:
    var(--bg-pattern),
    radial-gradient(120% 55% at 92% 4%, var(--bg-accent-1) 0%, transparent 58%),
    radial-gradient(100% 56% at 6% -8%, var(--bg-accent-2) 0%, transparent 60%),
    radial-gradient(88% 48% at 50% 112%, var(--bg-accent-3) 0%, transparent 56%),
    linear-gradient(180deg, var(--bg-base-start) 0%, var(--bg-base-end) 100%);
  color: var(--text);
  line-height: 1.65;
}

body.theme-tech-blue {
  --bg-base-start: #edf3f8;
  --bg-base-end: #e2ebf3;
  --bg-accent-1: rgba(47, 95, 142, 0.18);
  --bg-accent-2: rgba(126, 165, 201, 0.16);
  --bg-accent-3: rgba(209, 222, 236, 0.22);
  --bg-pattern: none;
}

body.theme-warm-editorial {
  --bg-base-start: #f6f1e8;
  --bg-base-end: #ece3d4;
  --bg-accent-1: rgba(188, 156, 102, 0.18);
  --bg-accent-2: rgba(132, 156, 174, 0.13);
  --bg-accent-3: rgba(242, 224, 193, 0.2);
  --bg-pattern: radial-gradient(115% 56% at 50% 108%, rgba(160, 128, 86, 0.08) 0%, transparent 52%);
}

body.theme-geo-grid {
  --bg-base-start: #ecf3f8;
  --bg-base-end: #dde8f1;
  --bg-accent-1: rgba(79, 121, 160, 0.2);
  --bg-accent-2: rgba(167, 195, 219, 0.16);
  --bg-accent-3: rgba(212, 230, 242, 0.18);
  --bg-pattern:
    linear-gradient(rgba(54, 92, 125, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(54, 92, 125, 0.07) 1px, transparent 1px);
  background-size: 34px 34px, 34px 34px, auto, auto, auto, auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 1000;
  background: #0f1720;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}

.site-header,
main,
.site-footer {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.08;
  margin: 0;
}

h1 {
  font-size: clamp(2.2rem, 5.5vw, 4.1rem);
  margin-top: 0.45rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.35rem;
}

.site-header {
  margin-top: 1.85rem;
}

.hero-shell {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-lg);
  padding: clamp(1.1rem, 2.3vw, 2rem);
  display: grid;
  grid-template-columns: 1.26fr 0.74fr;
  gap: 1.2rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.hero-title {
  margin: 0.75rem 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #334250;
}

.hero-location {
  margin: 0.3rem 0 0;
  color: var(--muted);
}

.hero-summary {
  margin: 0.92rem 0 0;
  max-width: 72ch;
}

.hero-portrait {
  margin: 0;
  justify-self: center;
  width: min(100%, 320px);
}

.hero-portrait picture,
.hero-portrait img {
  display: block;
  width: 100%;
}

.hero-portrait img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.hero-portrait figcaption {
  margin-top: 0.52rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.cta-group {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.62rem;
}

.btn {
  display: inline-block;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 170ms ease, background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #244f79;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--accent);
  color: #244f79;
}

.btn-secondary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.section {
  margin-top: 1.35rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-sm);
  padding: clamp(1rem, 2.1vw, 1.45rem);
}

.section > h2 {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border);
}

.section p {
  margin: 0.62rem 0 0;
}

.section h3 {
  font-family: "Manrope", sans-serif;
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 700;
  color: #233241;
}

.summary-copy {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.55rem;
  padding: 0.92rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.summary-copy p {
  margin: 0;
}

.spotlight-filters {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.spotlight-btn {
  border: 1px solid var(--border);
  background: #fcfeff;
  color: #2a3744;
  border-radius: 999px;
  padding: 0.46rem 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 160ms ease;
}

.spotlight-btn[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.timeline {
  margin-top: 1rem;
  display: grid;
  gap: 0.9rem;
}

.timeline-card {
  padding: 0.92rem;
  transition: transform 190ms ease, box-shadow 190ms ease, opacity 190ms ease;
}

.timeline-card.relevant {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(25, 34, 45, 0.09);
}

.timeline-card.muted {
  opacity: 0.88;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.timeline-role {
  font-family: "Manrope", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.timeline-company,
.timeline-meta {
  margin: 0;
  color: var(--muted);
}

.timeline-company {
  font-size: 0.95rem;
  font-weight: 700;
}

.timeline-meta {
  font-size: 0.88rem;
}

.timeline-tags {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
}

.tag {
  background: #ebf1f7;
  color: #2c3b49;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.79rem;
}

.achievement-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.achievement-list li {
  margin-bottom: 0.45rem;
}

.tech-row {
  margin-top: 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tech-chip {
  background: #f3f8fc;
  border: 1px solid #d3e1ee;
  color: #324b62;
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 0.16rem 0.5rem;
}

.skills-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.82rem;
}

.skill-card {
  padding: 0.94rem;
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.62rem;
}

.skill-header h3,
.info-columns article h3 {
  margin: 0;
}

.skill-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e9f1f8;
  color: #2d5273;
  border: 1px solid #c9daea;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: #eef4fa;
  color: #2a3a49;
  border-radius: 999px;
  font-size: 0.79rem;
  padding: 0.22rem 0.58rem;
}

.info-columns {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.82rem;
}

.info-columns article {
  padding: 0.92rem;
}

ul {
  margin: 0.54rem 0 0;
  padding-left: 1.04rem;
}

.contact-section {
  text-align: left;
}

.contact-emails {
  margin-top: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.contact-links {
  margin-top: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

a {
  color: #325275;
}

a:hover {
  color: #203c5a;
}

a:focus-visible,
.btn:focus-visible,
.spotlight-btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.site-footer {
  padding: 1.5rem 0 2.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.timeline-card,
.skill-card,
.info-columns article {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    width: min(100%, 290px);
  }
}

@media (max-width: 600px) {
  .hero-shell,
  .section {
    padding: 1rem;
    border-radius: 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact-links {
    flex-wrap: wrap;
  }
}

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