:root {
  --bg: #eef4fa;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-solid: #ffffff;
  --accent: #6a9fd4;
  --accent-deep: #4a7fb5;
  --accent-light: rgba(184, 214, 240, 0.45);
  --text: #2c3e50;
  --text-muted: #6b8499;
  --border: rgba(180, 210, 235, 0.6);
  --radius: 20px;
  --container: 960px;
  --container-wide: 1140px;
  --section-pad: clamp(4rem, 8vw, 6rem);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #c8dff0 0%, #eef4fa 45%, #f8fbfe 100%);
  min-height: 100vh;
  position: relative;
}

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

a {
  color: var(--accent-deep);
  text-decoration: none;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.container-wide {
  width: min(var(--container-wide), 100% - 2.5rem);
  margin-inline: auto;
}

.narrow {
  max-width: 680px;
}

/* Background blobs */
.aura-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}

.blob-1 { width: 420px; height: 420px; background: radial-gradient(circle, #a8cce8 0%, transparent 70%); top: -8%; right: -5%; }
.blob-2 { width: 360px; height: 360px; background: radial-gradient(circle, #b8daf0 0%, transparent 70%); bottom: 10%; left: -8%; }
.blob-3 { width: 280px; height: 280px; background: radial-gradient(circle, #c5e0f5 0%, transparent 70%); top: 40%; left: 15%; }
.blob-4 { width: 320px; height: 320px; background: radial-gradient(circle, #9ec4e4 0%, transparent 70%); bottom: 25%; right: 10%; }

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.panel-section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title-center {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--text);
}

.section-title-large {
  font-size: clamp(2rem, 5vw, 3rem);
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-logo:hover {
  color: var(--accent-deep);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
}

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

.nav-links a[aria-current="page"] {
  color: var(--accent-deep);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, #7eb3e0 0%, #5a96c8 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(90, 150, 200, 0.25);
}

.btn-primary:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-hero,
.btn-hero-outline {
  background: linear-gradient(135deg, #8ec0ea 0%, #6a9fd4 100%);
  color: #fff;
  border: none;
  box-shadow: 0 6px 20px rgba(106, 159, 212, 0.3);
}

.btn-hero:hover,
.btn-hero-outline:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(106, 159, 212, 0.38);
  text-decoration: none;
  color: #fff;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Section 1: Hero */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 2rem;
  max-width: 28rem;
}

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

.hero-photo-frame {
  border-radius: 2.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(520px, 68vh);
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  box-shadow: 0 20px 50px rgba(44, 62, 80, 0.1);
}

.hero-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, #5a7088 0%, #3d5266 100%);
}

.avatar-photo-hero {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section 2: Welcome — photo left, stacked text right */
.welcome.panel-section {
  padding: clamp(2rem, 4vw, 2.75rem) 0;
}

.welcome .section-title-center {
  color: #1a2a38;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
}

.welcome-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.welcome-photo-frame {
  border-radius: 1.35rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 340px;
  box-shadow: 0 14px 36px rgba(44, 62, 80, 0.12);
}

.welcome-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(160deg, #7a9fbf 0%, #5a7088 100%);
}

.welcome-photo-frame img,
.welcome-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.welcome-columns {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 0;
}

.intro-card--stacked {
  text-align: left;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.intro-card--stacked:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.welcome .intro-heading {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: #1a2a38;
}

.welcome .intro-card--stacked p {
  color: #243547;
  font-size: clamp(0.8125rem, 1.3vw, 0.9375rem);
  font-weight: 400;
  line-height: 1.55;
  margin: 0;
}

.welcome .intro-card-link {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.welcome .intro-card-link:hover {
  text-decoration: underline;
}

.intro-heading {
  font-size: clamp(1.45rem, 2.5vw, 1.625rem);
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: #1a2a38;
}

.intro-card--stacked p {
  color: #243547;
  font-size: clamp(1.0625rem, 1.8vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.75;
  margin: 0;
}

.intro-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.intro-card-link:hover {
  text-decoration: underline;
}

/* Section 3: Experience — horizontal timeline */
.experience-timeline {
  background: linear-gradient(135deg, #2d4a66 0%, #1e3347 100%);
  padding: 3.5rem 0 4.5rem;
}

.timeline-section-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: #fff;
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: 0.04em;
}

.timeline-hint {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.5rem;
  letter-spacing: 0.04em;
}

.timeline-h-scroll {
  overflow-x: auto;
  padding: 0 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.timeline-h-track {
  display: flex;
  align-items: center;
  min-width: max-content;
  min-height: 380px;
  padding: 0 2rem;
  position: relative;
  gap: 0.5rem;
}

.timeline-h-line {
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 50%;
  height: 4px;
  background: #9ec4b0;
  transform: translateY(-50%);
  z-index: 0;
  border-radius: 2px;
}

.timeline-h-year {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #9ec4b0;
  border: 3px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e3347;
  z-index: 2;
  position: relative;
}

.timeline-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 240px;
  flex-shrink: 0;
  height: 340px;
  --col-half: 170px;
  z-index: 1;
}

.timeline-col--top {
  justify-content: flex-end;
  padding-bottom: calc(var(--col-half) - 8px);
}

.timeline-col--bottom {
  justify-content: flex-start;
  padding-top: calc(var(--col-half) - 8px);
}

.timeline-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9ec4b0;
  border: 3px solid #fff;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-connector {
  width: 3px;
  height: 28px;
  background: #9ec4b0;
  flex-shrink: 0;
}

.timeline-h-card {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 1rem 1rem 0.85rem;
  box-shadow: 5px 5px 0 #9ec4b0;
}

.timeline-badge {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  background: #9ec4b0;
  color: #1e3347;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.timeline-role {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #1e2d3d;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  padding-right: 0.5rem;
}

.timeline-org {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: #7aab8a;
  margin: 0 0 1rem;
}

.timeline-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: #6b8499;
}

.timeline-meta span {
  white-space: nowrap;
}

/* Section 4: Featured projects — card grid */
.projects {
  background: #b8d4e8;
}

.project-cards-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  max-width: 1020px;
  margin-inline: auto;
}

.project-card {
  grid-column: span 2;
  background: var(--surface-solid);
  border-radius: 16px;
  padding: 1.4rem 1.25rem;
  box-shadow: 0 6px 18px rgba(60, 100, 140, 0.1);
  display: flex;
  flex-direction: column;
}

.project-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.project-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.project-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.project-card-icon svg {
  width: 19px;
  height: 19px;
}

.project-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--text);
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.55;
  margin: 0 0 0.9rem;
  flex-grow: 1;
}

.project-tags {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.project-tags li {
  display: inline-block;
  width: fit-content;
  padding: 0.32rem 0.8rem;
  background: #eef3f7;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.project-card-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent-deep);
  text-decoration: none;
}

.project-card-link:hover {
  text-decoration: underline;
}

.projects .section-title-center {
  color: var(--text);
}

/* Section 5: Education — paired photo + text rows */
.education-layout {
  display: flex;
  flex-direction: column;
}

.education-heading {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8cb896;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem) 1.25rem;
  background: #f3f6f0;
}

.edu-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: stretch;
}

.edu-row-photo {
  padding: 0.75rem 1.5rem 1.5rem;
  display: flex;
  align-items: center;
}

.edu-row-content {
  background: #f3f6f0;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.edu-photo {
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.edu-row:first-of-type .edu-photo {
  object-position: center 40%;
}

.edu-school {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #2d4a66;
  margin: 0 0 0.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.edu-chevron {
  color: #2d4a66;
  font-weight: 700;
  flex-shrink: 0;
}

.edu-degree {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--text);
}

.edu-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.edu-subhead {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.edu-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.edu-list li {
  margin-bottom: 0.2rem;
}

.projects.panel-section.page-standalone,
.schedule.panel-section.page-standalone,
.panel-section.page-standalone {
  min-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-placeholder-inner {
  text-align: center;
  max-width: 560px;
}

.schedule-lead {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 300;
  margin: 0 0 1.75rem;
}

.contact-links {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
}

.contact-links li {
  margin-bottom: 0.35rem;
}

.contact-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.contact-links a:hover {
  color: var(--accent-deep);
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-photo-frame {
    margin-inline: auto;
  }

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

  .welcome-photo-frame {
    max-width: 280px;
    margin-inline: auto;
  }

  .education-layout {
    gap: 0;
  }

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

  .edu-row-photo {
    padding: 0 1.5rem 0.75rem;
  }

  .edu-row-content {
    padding-top: 0;
  }

  .project-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 680px;
  }

  .project-card,
  .project-card:nth-child(4),
  .project-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .timeline-col {
    width: 220px;
    height: 300px;
    --col-half: 150px;
  }

  .timeline-h-card {
    padding: 0.85rem;
  }

  .project-cards-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0.5rem 0;
  }

  .nav {
    position: relative;
    flex-wrap: wrap;
  }
}

/* Subpages — shared page shell */
.page-about,
.page-experience,
.page-projects,
.page-contact {
  min-height: 100vh;
}

.page-title,
.experience-v-title,
.projects-showcase-title {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
  line-height: 1;
}

/* Experience page — vertical timeline */
.experience-v-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: calc(100vh - 72px);
  background: linear-gradient(180deg, rgba(184, 212, 232, 0.35) 0%, rgba(238, 244, 250, 0) 28%);
}

.experience-v-inner {
  max-width: 920px;
}

.experience-v-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-left: 0.25rem;
}

.experience-v-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.experience-v-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #7eb3e0 0%, #6a9fd4 100%);
  transform: translateX(-50%);
  z-index: 0;
  border-radius: 2px;
}

.experience-v-year-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: center;
  margin: 1.5rem 0 0.75rem;
  z-index: 1;
}

.experience-v-year-row:first-of-type {
  margin-top: 0;
}

.experience-v-marker {
  grid-column: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1.25rem;
}

.experience-v-year-label {
  display: flex;
  align-items: flex-start;
  padding-top: 1rem;
  width: 100%;
  min-width: 0;
}

.experience-v-item--left .experience-v-year-label {
  grid-column: 3;
  justify-content: flex-start;
  padding-left: 0.5rem;
}

.experience-v-item--right .experience-v-year-label {
  grid-column: 1;
  justify-content: flex-end;
  padding-right: 0.5rem;
}

.experience-v-year {
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 2.2vw, 1.375rem);
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.04em;
  line-height: 1;
}

.experience-v-node {
  display: none;
}

.experience-v-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  align-items: start;
  margin-bottom: 1.75rem;
  z-index: 1;
}

.experience-v-item--left .experience-v-card {
  grid-column: 1;
  justify-self: end;
  width: min(100%, 380px);
}

.experience-v-item--right .experience-v-card {
  grid-column: 3;
  justify-self: start;
  width: min(100%, 380px);
}

.experience-v-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1rem;
  box-shadow: 5px 5px 0 #a8cce8;
}

.experience-v-badge {
  position: absolute;
  top: -0.55rem;
  right: 1rem;
  padding: 0.2rem 0.65rem;
  background: linear-gradient(135deg, #7eb3e0 0%, #6a9fd4 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.experience-v-role {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.35rem;
  line-height: 1.3;
  padding-right: 0.5rem;
}

.experience-v-org {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-deep);
  margin: 0 0 0.85rem;
}

.experience-v-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.experience-v-meta span {
  white-space: nowrap;
}

.experience-v-list {
  margin: 0;
  padding-left: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #4a6278;
}

.experience-v-list li {
  margin-bottom: 0.35rem;
}

.experience-v-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .experience-v-line {
    left: 18px;
    transform: none;
  }

  .experience-v-year-row,
  .experience-v-item {
    grid-template-columns: 36px 1fr;
  }

  .experience-v-marker {
    grid-column: 1;
    padding-top: 0;
  }

  .experience-v-year-label {
    display: none;
  }

  .experience-v-item--left .experience-v-card,
  .experience-v-item--right .experience-v-card {
    grid-column: 2;
    justify-self: stretch;
    width: 100%;
    max-width: none;
  }

  .experience-v-meta {
    grid-template-columns: 1fr;
  }
}

/* Projects page — showcase cards */
.projects-showcase-page {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: calc(100vh - 72px);
  background: linear-gradient(180deg, rgba(184, 212, 232, 0.35) 0%, rgba(238, 244, 250, 0) 28%);
}

.projects-showcase-inner {
  max-width: 980px;
}

.projects-showcase-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  padding-left: 0.25rem;
}

.projects-showcase-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
}

.project-showcase-frame {
  position: relative;
  background: linear-gradient(145deg, #4a7fb5 0%, #3a6894 55%, #345f88 100%);
  border-radius: clamp(28px, 4vw, 40px);
  padding: clamp(2.75rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: 0 18px 48px rgba(58, 104, 148, 0.22);
}

.project-showcase-tag {
  position: absolute;
  top: clamp(1rem, 2.5vw, 1.5rem);
  left: clamp(1.25rem, 3vw, 2rem);
  z-index: 2;
  display: inline-block;
  padding: 0.55rem 1.15rem;
  background: #8ec0ea;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.8vw, 0.9375rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(74, 127, 181, 0.35);
}

.project-showcase-tag--left {
  transform: rotate(-4deg);
}

.project-showcase-tag--right {
  left: auto;
  right: clamp(1.25rem, 3vw, 2rem);
  transform: rotate(4deg);
}

.project-showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 260px);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
  background: #f4faff;
  border-radius: clamp(24px, 3.5vw, 36px);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.project-showcase-main {
  min-width: 0;
}

.project-showcase-name {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.8vw, 1.625rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5a9fd0;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.project-showcase-detail {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  margin-bottom: 1.25rem;
}

.project-showcase-block {
  margin: 0;
}

.project-showcase-label {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 0.4rem;
}

.project-showcase-text {
  margin: 0;
  font-size: clamp(0.9375rem, 1.8vw, 1rem);
  font-weight: 400;
  line-height: 1.75;
  color: #3a5068;
}

.project-showcase-link {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-deep);
  transition: color 0.2s ease;
}

.project-showcase-link:hover {
  color: #3a6894;
}

.project-showcase-skills {
  background: linear-gradient(160deg, #4a7fb5 0%, #3a6894 100%);
  border-radius: clamp(16px, 2.5vw, 22px);
  padding: clamp(1.25rem, 2.5vw, 1.5rem) clamp(1.15rem, 2.5vw, 1.35rem);
  color: #fff;
  align-self: start;
}

.project-showcase-skills-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0 0 0.85rem;
  color: #fff;
}

.project-showcase-skills ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.875rem;
  line-height: 1.65;
}

.project-showcase-skills li {
  margin-bottom: 0.35rem;
}

.project-showcase-skills li:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .project-showcase-card {
    grid-template-columns: 1fr;
  }

  .project-showcase-skills {
    width: 100%;
  }

  .project-showcase-tag--right {
    left: clamp(1.25rem, 3vw, 2rem);
    right: auto;
    transform: rotate(-4deg);
  }
}

/* Contact page */
.contact-page {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 8vw, 6rem);
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
}

.contact-page-inner {
  max-width: 920px;
  text-align: center;
}

.contact-page-header {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  text-align: left;
  padding-left: 0.25rem;
}

.contact-intro {
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
  max-width: 720px;
  font-size: clamp(1rem, 2vw, 1.0625rem);
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
}

.contact-intro strong {
  font-weight: 600;
  color: var(--accent-deep);
}

.contact-actions {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.contact-btn-resume {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8ec0ea 0%, #6a9fd4 100%);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(106, 159, 212, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-btn-resume:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(106, 159, 212, 0.4);
  text-decoration: none;
  color: #fff;
}

.contact-btn-icon {
  width: 1.125rem;
  height: 1.125rem;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: clamp(1.5rem, 3vw, 2rem) 1.25rem;
  background: var(--surface-solid);
  border-radius: var(--radius);
  box-shadow: 0 10px 32px rgba(74, 127, 181, 0.1);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(74, 127, 181, 0.16);
  text-decoration: none;
}

.contact-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8d6f0 0%, #8ec0ea 100%);
  color: #fff;
}

.contact-card-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.contact-card-label {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text-muted);
}

.contact-card-value {
  font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
  word-break: break-word;
}

.contact-card:hover .contact-card-value {
  color: var(--accent-deep);
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-inline: auto;
  }
}
