:root {
  color-scheme: light;
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-soft: #f0eee8;
  --ink: #202321;
  --muted: #626860;
  --line: #dedbd2;
  --teal: #2f7d73;
  --teal-dark: #205a52;
  --coral: #d86f51;
  --sage: #a9b89c;
  --gold: #c99b4a;
  --shadow: 0 24px 70px rgba(32, 35, 33, 0.11);
  --radius: 8px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow: hidden;
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 110px;
}

body {
  margin: 0;
  min-width: 320px;
  height: 100dvh;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background:
    radial-gradient(circle at top left, rgba(169, 184, 156, 0.38), transparent 30rem),
    linear-gradient(135deg, #fbfaf7 0%, var(--bg) 54%, #eef2ed 100%);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  margin: 18px 0 26px;
  padding: 12px 14px;
  border: 1px solid rgba(222, 219, 210, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 42px rgba(32, 35, 33, 0.07);
}

.brand,
.nav,
.language-toggle,
.hero-actions,
.contact-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.nav {
  justify-self: end;
  gap: 4px;
}

.nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.language-toggle {
  min-height: 38px;
  gap: 8px;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 125, 115, 0.42);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: rgba(47, 125, 115, 0.12);
  color: var(--teal-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: var(--teal);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
}

.language-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.section {
  padding: 78px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(40px, 5vw, 74px);
  min-height: calc(100svh - 230px);
  padding: clamp(42px, 5vw, 76px) 0 clamp(34px, 4vw, 58px);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 100%;
  font-size: clamp(4.2rem, 6vw, 5.8rem);
  font-weight: 800;
}

h2 {
  max-width: 780px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 800;
}

.lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.28rem);
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 30px rgba(32, 35, 33, 0.18);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.62);
}

.portrait-wrap {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 420px);
  aspect-ratio: 1 / 1.12;
  border: 1px solid rgba(222, 219, 210, 0.94);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(10px, 1.5vw, 16px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 238, 232, 0.72)),
    radial-gradient(circle at 18% 12%, rgba(201, 155, 74, 0.18), transparent 16rem);
  box-shadow: 0 26px 80px rgba(32, 35, 33, 0.16);
}

.portrait-wrap::before {
  position: absolute;
  inset: 34px -18px -18px 40px;
  z-index: -1;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(135deg, rgba(47, 125, 115, 0.13), rgba(216, 111, 81, 0.1));
  content: "";
}

.portrait-wrap::after {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: calc(var(--radius) + 6px);
  content: "";
}

.portrait {
  width: 100%;
  height: 100%;
  border: 1px solid rgba(222, 219, 210, 0.86);
  border-radius: calc(var(--radius) + 4px);
  object-fit: cover;
  box-shadow: 0 16px 46px rgba(32, 35, 33, 0.13);
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: -12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 18px 50px rgba(32, 35, 33, 0.07);
}

.info-strip div {
  min-height: 112px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.74);
}

.info-strip span,
.compact-card > span,
.education-item span,
.interest-top > span:first-child,
.date,
.meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.info-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1fr);
  gap: clamp(28px, 7vw, 84px);
}

.section-heading {
  display: grid;
  gap: 8px;
  align-content: start;
}

.section-heading:not(.centered) {
  margin-bottom: 34px;
}

.section-heading.centered {
  justify-items: center;
  margin: 0 auto 42px;
  text-align: center;
}

.panel,
.feature-card,
.compact-card,
.education-item,
.interest-card,
.contact-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 54px rgba(32, 35, 33, 0.07);
}

.panel {
  padding: clamp(24px, 4vw, 42px);
}

.panel p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.panel p + p {
  margin-top: 18px;
}

.profile-section {
  padding-top: 96px;
}

.profile-infographic {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(28px, 5vw, 54px) 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(240, 238, 232, 0.36)),
    radial-gradient(circle at 16% 18%, rgba(47, 125, 115, 0.1), transparent 22rem),
    radial-gradient(circle at 88% 16%, rgba(216, 111, 81, 0.1), transparent 20rem);
}

.profile-intro {
  display: grid;
  justify-items: center;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.profile-intro h2 {
  max-width: 900px;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
}

.profile-intro p:not(.eyebrow) {
  max-width: 800px;
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.35;
}

.profile-visual-frame {
  --profile-visual-opacity: 0.76;
  --profile-visual-scale: 0.97;
  --profile-visual-y: 26px;
  overflow: hidden;
  max-width: 1100px;
  margin: 42px auto 0;
  border: 1px solid rgba(222, 219, 210, 0.92);
  border-radius: calc(var(--radius) + 10px);
  padding: clamp(8px, 1.4vw, 14px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 72px rgba(32, 35, 33, 0.09);
}

.profile-scroll-visual {
  opacity: var(--profile-visual-opacity);
  transform: translateY(var(--profile-visual-y)) scale(var(--profile-visual-scale));
  transform-origin: center;
  transition: opacity 180ms ease-out, transform 180ms ease-out, box-shadow 180ms ease-out;
  will-change: opacity, transform;
}

.profile-scroll-visual.is-scroll-visible {
  box-shadow: 0 30px 82px rgba(32, 35, 33, 0.12);
}

.profile-visual-frame img,
.profile-visual-frame object,
.profile-visual-frame iframe,
.profile-visual-frame svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: calc(var(--radius) + 4px);
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.profile-topics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.profile-topic {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  min-height: 0;
  border: 1px solid rgba(222, 219, 210, 0.9);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.profile-topic + .profile-topic {
  border-left: 1px solid rgba(222, 219, 210, 0.9);
}

.profile-topic h3,
.profile-pillar h3 {
  max-width: 100%;
  color: #102336;
  font-size: clamp(1.18rem, 1.75vw, 1.72rem);
  line-height: 1.12;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.profile-topic p,
.profile-pillar p {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.profile-graphic {
  position: relative;
  display: grid;
  width: 190px;
  aspect-ratio: 1;
  place-items: center;
  color: #113252;
}

.profile-graphic::before {
  position: absolute;
  inset: 18px;
  z-index: 0;
  border-radius: 50%;
  background: rgba(47, 125, 115, 0.08);
  content: "";
}

.profile-graphic svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4.4;
  filter: drop-shadow(0 12px 18px rgba(32, 35, 33, 0.1));
}

.profile-graphic.degree {
  color: #1f5f8a;
}

.profile-graphic.degree::before {
  background: rgba(31, 95, 138, 0.13);
}

.profile-graphic.network {
  color: var(--teal);
}

.profile-graphic.network::before {
  background: rgba(201, 155, 74, 0.16);
}

.profile-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.profile-pillar {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  min-height: 0;
  border: 1px solid rgba(222, 219, 210, 0.9);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.profile-pillar + .profile-pillar {
  border-left: 1px solid rgba(222, 219, 210, 0.9);
}

.profile-graphic.small {
  width: 132px;
}

.profile-graphic.small svg {
  stroke-width: 5;
}

.profile-graphic.resilience {
  color: var(--coral);
}

.profile-graphic.resilience::before {
  background: rgba(216, 111, 81, 0.12);
}

.profile-graphic.conflict {
  color: #28799b;
}

.profile-graphic.conflict::before {
  background: rgba(47, 125, 115, 0.12);
}

.profile-graphic.paths {
  color: var(--gold);
}

.profile-graphic.paths::before {
  background: rgba(201, 155, 74, 0.13);
}

.profile-topic:hover .profile-graphic,
.profile-pillar:hover .profile-graphic {
  animation: iconLift 1.6s ease-in-out infinite;
}

.timeline {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.timeline-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(32, 35, 33, 0.06);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.institution-badge {
  --badge-glow-opacity: 0;
  --badge-scale: 0.98;
  --badge-shine-x: -150%;
  --badge-y: 12px;
  position: relative;
  isolation: isolate;
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border: 1px solid rgba(47, 125, 115, 0.24);
  border-radius: var(--radius);
  padding: 8px 10px 8px 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(240, 248, 246, 0.54)),
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.96), transparent 38%),
    linear-gradient(135deg, rgba(47, 125, 115, 0.13), rgba(169, 184, 156, 0.18));
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 28px rgba(32, 35, 33, calc(0.05 + var(--badge-glow-opacity) * 0.08));
  transform: translateY(var(--badge-y)) scale(var(--badge-scale));
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px) saturate(1.18);
}

.institution-badge::before,
.institution-badge::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.institution-badge::before {
  z-index: -1;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, calc(0.18 + var(--badge-glow-opacity) * 0.42)), transparent 36%),
    linear-gradient(135deg, rgba(47, 125, 115, calc(0.03 + var(--badge-glow-opacity) * 0.08)), transparent 58%);
  opacity: calc(0.72 + var(--badge-glow-opacity) * 0.28);
}

.institution-badge::after {
  z-index: 1;
  width: 46%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.14) 28%,
    rgba(255, 255, 255, calc(0.28 + var(--badge-glow-opacity) * 0.52)) 50%,
    rgba(255, 255, 255, 0.14) 72%,
    transparent 100%
  );
  opacity: var(--badge-glow-opacity);
  transform: translateX(var(--badge-shine-x)) skewX(-18deg);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}

.institution-badge strong {
  position: relative;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 247, 0.82));
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(47, 125, 115, 0.16),
    0 6px 14px rgba(47, 125, 115, calc(0.05 + var(--badge-glow-opacity) * 0.1));
}

.institution-badge span {
  position: relative;
  z-index: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
}

.institution-badge.small {
  margin-bottom: 18px;
}

.institution-badge.is-glass-lit {
  border-color: rgba(47, 125, 115, 0.38);
}

.timeline-card:hover,
.feature-card:hover,
.compact-card:hover,
.education-item:hover,
.interest-card:hover {
  border-color: rgba(47, 125, 115, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 24px 70px rgba(32, 35, 33, 0.1);
}

.card-body {
  display: grid;
  gap: 8px;
  max-width: 820px;
}

.meta {
  margin: 0;
  color: var(--teal-dark);
}

ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

li + li {
  margin-top: 10px;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.experience-carousel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  padding: 4px 0 0;
}

.experience-carousel .compact-card {
  min-width: 0;
  scroll-snap-align: none;
}

.experience-carousel::-webkit-scrollbar {
  height: 10px;
}

.experience-carousel::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(222, 219, 210, 0.52);
}

.experience-carousel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(247, 246, 242, 0.95);
  border-radius: 999px;
  background: rgba(47, 125, 115, 0.5);
}

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

.compact-card,
.feature-card,
.interest-card {
  padding: 24px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-bubble {
  --icon-tilt: 0deg;
  --icon-lift: 0px;
  --icon-glow: 0;
  --icon-scale: 1;
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border: 1px solid rgba(47, 125, 115, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, calc(0.35 + var(--icon-glow) * 0.25)), transparent 38%),
    rgba(47, 125, 115, calc(0.08 + var(--icon-glow) * 0.1));
  color: var(--teal-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 8px 20px rgba(47, 125, 115, calc(var(--icon-glow) * 0.14));
  transform: translateY(var(--icon-lift)) rotate(var(--icon-tilt)) scale(var(--icon-scale));
  transition: transform 180ms ease-out, background 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
  will-change: transform;
}

.icon-bubble svg,
.skills-board h3 svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.feature-card:hover .icon-bubble,
.interest-card:hover .icon-bubble {
  background: var(--teal);
  color: #fff;
  transform: translateY(-3px) rotate(-4deg) scale(1.04);
}

@supports (animation-timeline: view()) {
  .feature-card .icon-bubble,
  .interest-card .icon-bubble {
    animation-duration: 1ms;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-timeline: view();
    animation-range: entry 0% cover 58%;
  }

  .feature-card:nth-child(odd) .icon-bubble,
  .interest-card:nth-child(odd) .icon-bubble {
    animation-name: iconScrollTiltLeft;
  }

  .feature-card:nth-child(even) .icon-bubble,
  .interest-card:nth-child(even) .icon-bubble {
    animation-name: iconScrollTiltRight;
  }
}

@keyframes iconScrollTiltLeft {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 20px rgba(47, 125, 115, 0);
    transform: translateY(6px) rotate(0deg) scale(0.98);
  }

  48% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 30px rgba(47, 125, 115, 0.14);
    transform: translateY(-5px) rotate(-9deg) scale(1.035);
  }

  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 20px rgba(47, 125, 115, 0);
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes iconScrollTiltRight {
  0% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 20px rgba(47, 125, 115, 0);
    transform: translateY(6px) rotate(0deg) scale(0.98);
  }

  48% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 14px 30px rgba(47, 125, 115, 0.14);
    transform: translateY(-5px) rotate(9deg) scale(1.035);
  }

  100% {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 20px rgba(47, 125, 115, 0);
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.compact-card h3,
.interest-card h3 {
  margin-top: 10px;
}

.card-head h3 {
  margin-top: 0;
}

.compact-card p,
.feature-card p,
.interest-card p,
.education-item p,
.contact-section p {
  margin: 12px 0 0;
  color: var(--muted);
}

.education-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.education-item {
  min-height: 170px;
  padding: 20px;
}

.education-item strong {
  display: block;
  margin-top: 14px;
  line-height: 1.25;
}

.skills-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 34px);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.skills-board h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.skills-board h3 svg {
  color: var(--sage);
}

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

.tags span {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
}

.interest-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.interests {
  padding-top: 64px;
}

.interest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.interest-top > span:first-child {
  color: var(--coral);
}

.interest-card .icon-bubble {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  background: rgba(216, 111, 81, 0.08);
  color: var(--coral);
}

.interest-card .icon-bubble svg {
  width: 22px;
  height: 22px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 72px;
  padding: clamp(28px, 5vw, 48px);
}

.contact-section h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.js-enabled.reveal-ready .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

.delay-1 {
  transition-delay: 90ms;
}

.delay-2 {
  transition-delay: 160ms;
}

.delay-3 {
  transition-delay: 230ms;
}

@keyframes iconLift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

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

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 10ch;
    font-size: 5.2rem;
  }

  .info-strip,
  .cards-3,
  .education-grid,
  .profile-topics,
  .interest-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(100% - 22px, var(--max));
  }

  .topbar {
    position: static;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .section {
    padding: 62px 0;
  }

  .hero {
    gap: 34px;
    padding-top: 14px;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: clamp(1.82rem, 9vw, 2.55rem);
  }

  .portrait-wrap {
    width: min(100%, 390px);
  }

  .info-strip,
  .experience-carousel,
  .timeline-card,
  .cards-2,
  .cards-3,
  .education-grid,
  .profile-topics,
  .profile-pillars,
  .skills-board,
  .interest-row {
    grid-template-columns: 1fr;
  }

  .profile-topic + .profile-topic,
  .profile-pillar + .profile-pillar {
    border-left: 1px solid rgba(222, 219, 210, 0.9);
  }

  .profile-topic,
  .profile-pillar {
    min-height: auto;
  }

  .timeline-card {
    gap: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .profile-scroll-visual {
    opacity: 1;
    transform: none;
  }

  .institution-badge {
    --badge-glow-opacity: 0.28;
    --badge-scale: 1;
    --badge-y: 0px;
  }

  .institution-badge::after {
    display: none;
  }

  .icon-bubble {
    --icon-tilt: 0deg;
    --icon-lift: 0px;
    --icon-glow: 0.2;
    --icon-scale: 1;
    animation: none !important;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .language-toggle,
  .hero-actions,
  .contact-actions,
  .portrait-wrap::before {
    display: none;
  }

  .section,
  .hero {
    min-height: auto;
    padding: 24px 0;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .timeline-card,
  .panel,
  .feature-card,
  .compact-card,
  .education-item,
  .interest-card,
  .contact-section {
    box-shadow: none;
  }
}
