/* ==========================================================================
   arnaupujol.com — styles
   Palette taken from the LinkedIn banner (deep teal-green to soft green)
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f2227;
  --ink-2: #29434a;
  --muted: #4b6368;

  --g-950: #0b181c;
  --g-900: #0f2227;
  --g-800: #173633;
  --g-700: #214642;
  --g-600: #32685c;
  --g-500: #3c7b69;
  --g-400: #48927a;
  --g-300: #5fd0a5;
  --g-200: #a8ead0;
  --g-100: #dcf3e8;

  --tint: #eef5f2;
  --line: #d7e5df;
  --white: #ffffff;
  --link: #2b7360;

  --radius: 20px;
  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 40px);
  --header-h: 72px;

  --ff-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) - 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--g-300);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--g-300);
  color: var(--g-950);
  font-weight: 600;
  border-radius: 10px;
  transform: translateY(-200%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: none; }

/* Scroll progress ------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  z-index: 120;
  background: linear-gradient(90deg, var(--g-400), var(--g-300));
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
}

/* Header ---------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  color: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 34, 39, .08);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--ff-head);
  font-weight: 700;
  letter-spacing: -.01em;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--g-400), var(--g-600));
  color: #fff;
  transition: transform .4s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
}
.nav__list a {
  position: relative;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  padding: .35rem 0;
}
.nav__list a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--g-300);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s var(--ease);
}
.nav__list a:not(.nav__cta):hover::after,
.nav__list a.is-active::after { transform: scaleX(1); }

.nav__cta {
  padding: .55rem 1.1rem !important;
  border-radius: 999px;
  background: var(--g-300);
  color: var(--g-950);
  font-weight: 600 !important;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(95, 208, 165, .8);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bar {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.nav-toggle__bar:nth-child(1) { top: 15px; }
.nav-toggle__bar:nth-child(2) { top: 21px; }
.nav-toggle__bar:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--g-900);
    color: #fff;
    padding: 1rem var(--pad) 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s, visibility 0s .3s;
  }
  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform .3s var(--ease), opacity .25s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__list li:last-child { border: 0; padding-top: 1rem; }
  .nav__list a { display: block; padding: .95rem 0; font-size: 1.1rem; }
  .nav__list a:not(.nav__cta)::after { display: none; }
  .nav__cta { text-align: center; }
}

/* Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .8rem .85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s, background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-3px); }
.btn__icon {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--g-950);
  color: #fff;
  transition: transform .35s var(--ease);
}
.btn:hover .btn__icon { transform: rotate(45deg); }
.btn__icon--ghost { background: rgba(255, 255, 255, .14); }

.btn--primary { background: var(--g-300); color: var(--g-950); }
.btn--primary:hover { box-shadow: 0 14px 34px -12px rgba(95, 208, 165, .9); }
.btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  padding-right: 1.5rem;
}
.btn--ghost:has(.btn__icon) { padding-right: .8rem; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .7); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) 0 5rem;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 70% at 100% 100%, rgba(72, 146, 122, .55), transparent 60%),
    linear-gradient(135deg, #0b181c 0%, #11262a 40%, #1d4540 100%);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -1;
  opacity: .85;
}
.hero__glow {
  position: absolute;
  right: -10%; top: 5%;
  width: min(60vw, 720px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 208, 165, .22), transparent 65%);
  z-index: -1;
  animation: breathe 9s ease-in-out infinite;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  font-size: .875rem;
  color: rgba(255, 255, 255, .85);
}
.status-pill__dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--g-300);
}
.status-pill__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--g-300);
  animation: ping 2.2s ease-out infinite;
}

.hero__title {
  margin-top: 1.5rem;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(3.2rem, 9.5vw, 7rem);
  line-height: .98;
  letter-spacing: -.035em;
}
.grad {
  background: linear-gradient(90deg, #b6f0d8, var(--g-300) 45%, var(--g-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-dark {
  background: linear-gradient(90deg, var(--g-600), var(--g-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 1.75rem;
  max-width: 30ch;
  font-family: var(--ff-head);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -.01em;
}
.hero__sub {
  margin-top: 1rem;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.25rem;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.6rem;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 20px;
}
.hero__scroll-dot {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--g-300);
  animation: scroll-dot 1.9s ease-in-out infinite;
}

/* Orbit around the portrait */
.hero__visual { container-type: inline-size; min-width: 0; }
.orbit {
  /* ring diameter; leaves room for the tags that sit on the ring */
  --size: min(400px, calc(100cqw - 84px));
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit__pulse {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 208, 165, .45), transparent 70%);
  animation: breathe 5s ease-in-out infinite;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(168, 234, 208, .5);
}
.ring::before {
  content: "";
  position: absolute;
  top: -6.75px; left: 50%;
  width: 12px; height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: var(--g-300);
  box-shadow: 0 0 0 5px rgba(95, 208, 165, .2), 0 0 18px 2px rgba(95, 208, 165, .8);
}
.ring--outer { inset: 0; animation: spin 46s linear infinite; }
.ring--inner {
  inset: 11%;
  border-color: rgba(255, 255, 255, .28);
  animation: spin 32s linear infinite reverse;
}
.ring--inner::before {
  width: 9px; height: 9px;
  margin-left: -4.5px; top: -5.25px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .15), 0 0 14px 2px rgba(255, 255, 255, .6);
}
.ring--outer::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--g-400);
  box-shadow: 0 0 12px 2px rgba(72, 146, 122, .9);
  /* placed exactly on the ring line */
  transform: rotate(130deg) translateY(calc(var(--size) / -2 + .75px));
}

/* Tags that ride the outer ring and stay upright while it turns */
.node {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: rotate(var(--a)) translateY(calc(var(--size) / -2 + .75px));
}
.chip {
  position: absolute;
  left: 0; top: 0;
  padding: .4rem .85rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.3;
  color: var(--g-100);
  border: 1px solid rgba(168, 234, 208, .45);
  border-radius: 999px;
  background: rgba(15, 34, 39, .78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(var(--a) * -1));
  animation: keep-upright 46s linear infinite;
}

.orbit__photo {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, .92);
  background: var(--g-700);
  box-shadow: 0 0 0 8px rgba(95, 208, 165, .18), 0 30px 60px -20px rgba(0, 0, 0, .6);
  transition: transform .6s var(--ease);
}
.orbit:hover .orbit__photo { transform: scale(1.04); }
.orbit__photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; padding-bottom: 6rem; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__visual { order: -1; }
  .orbit { --size: min(280px, calc(100cqw - 84px)); }
  .hero__lead { max-width: none; }
}

/* Sections -------------------------------------------------------------- */
.section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}
.section--light { background: var(--white); }
.section--tint {
  background: var(--tint);
  border-block: 1px solid var(--line);
}
.section--dark {
  color: #fff;
  background: linear-gradient(160deg, #0b181c 0%, #123030 55%, #1d4540 100%);
  overflow: hidden;
  isolation: isolate;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-intro { margin-top: 1rem; color: var(--muted); font-size: 1.15rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-500);
}
.eyebrow::after {
  content: "";
  width: 56px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow__num {
  display: inline-grid;
  place-items: center;
  min-width: 2.2rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--g-100);
  color: var(--g-600);
  letter-spacing: .06em;
}
.eyebrow--light { color: var(--g-200); }
.eyebrow--light .eyebrow__num { background: rgba(255, 255, 255, .1); color: var(--g-200); }

.section-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.section-title--light { color: #fff; }

/* About ----------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__text p + p, .about__text .section-title + p { margin-top: 1.1rem; }
.about__text .section-title { margin-bottom: 1.5rem; }
.about__text p:not(.eyebrow) { color: var(--ink-2); }

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, var(--tint));
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.stat:hover {
  transform: translateY(-5px);
  border-color: var(--g-400);
  box-shadow: 0 22px 40px -26px rgba(33, 70, 66, .55);
}
.stat__value {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--g-600);
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: .6rem; font-size: .92rem; line-height: 1.4; color: var(--muted); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
}

/* Focus cards ----------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card {
  position: relative;
  padding: 2rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(95, 208, 165, .2), transparent 60%);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--g-400);
  box-shadow: 0 28px 50px -30px rgba(33, 70, 66, .6);
}
.card:hover::before { opacity: 1; }
.card__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  margin-bottom: 1.25rem;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(140deg, var(--g-400), var(--g-700));
  transition: transform .5s var(--ease);
}
.card:hover .card__icon { transform: rotate(-6deg) scale(1.08); }
.card__title {
  position: relative;
  font-family: var(--ff-head);
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}
.card p { position: relative; color: var(--muted); font-size: 1rem; }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Timeline -------------------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 54rem;
  padding-left: 2.4rem;
}
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.timeline::before { background: var(--line); }
.timeline::after {
  background: linear-gradient(var(--g-300), var(--g-500));
  transform-origin: 50% 0;
  transform: scaleY(var(--tl, 0));
}
.tl-item { position: relative; padding-bottom: 1.5rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: calc(-2.4rem + 1px);
  top: 1.7rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--g-400);
  box-shadow: 0 0 0 5px #fff;
  transition: background-color .4s, transform .4s var(--ease);
}
.tl-item.is-visible::before { background: var(--g-400); transform: scale(1.1); }

.tl-card {
  padding: 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff 30%, var(--tint));
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.tl-card:hover {
  transform: translateX(6px);
  border-color: var(--g-400);
  box-shadow: 0 22px 40px -28px rgba(33, 70, 66, .6);
}
.tl-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .4rem 1.5rem;
  margin-bottom: 1rem;
}
.tl-card__role {
  font-family: var(--ff-head);
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.tl-card__org { margin-top: .25rem; color: var(--link); font-weight: 600; font-size: .98rem; }
.tl-card__date {
  align-self: flex-start;
  padding: .3rem .8rem;
  border-radius: 999px;
  background: var(--g-100);
  color: var(--g-700);
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}
.tl-card__list { display: grid; gap: .55rem; }
.tl-card__list li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--ink-2);
  font-size: 1rem;
}
.tl-card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .72em;
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--g-400);
  transform: rotate(45deg);
}
.earlier {
  max-width: 54rem;
  margin-top: 2.2rem;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--g-400);
  border-radius: 0 12px 12px 0;
  background: var(--tint);
  color: var(--ink-2);
  font-size: .95rem;
}

@media (max-width: 600px) {
  .timeline { padding-left: 1.9rem; }
  .tl-item::before { left: calc(-1.9rem + 1px); }
  .tl-card { padding: 1.3rem 1.2rem; }
  .tl-card:hover { transform: none; }
}

/* Education & skills ---------------------------------------------------- */
.edu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.edu__item {
  position: relative;
  padding: 1.6rem 1.6rem 1.6rem 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.edu__item::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(var(--g-300), var(--g-600));
}
.edu__item:hover { transform: translateY(-5px); border-color: var(--g-400); box-shadow: 0 22px 40px -28px rgba(33, 70, 66, .55); }
.edu__year { font-size: .82rem; font-weight: 700; letter-spacing: .1em; color: var(--g-500); text-transform: uppercase; }
.edu__title { margin-top: .4rem; font-family: var(--ff-head); font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; }
.edu__school { margin-top: .45rem; color: var(--muted); font-size: .98rem; }

.skills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px dashed var(--g-400);
}
.skills__title {
  margin-bottom: 1rem;
  font-family: var(--ff-head);
  font-size: 1.05rem;
  color: var(--g-600);
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .4rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: .9rem;
  font-weight: 500;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.chips li:hover { transform: translateY(-3px); background: var(--g-600); border-color: var(--g-600); color: #fff; }

.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.facts__item {
  padding: 1.1rem 1.4rem;
  border-radius: 14px;
  background: var(--g-800);
  color: rgba(255, 255, 255, .88);
  font-size: .98rem;
}
.facts__label {
  display: block;
  margin-bottom: .2rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-300);
}

@media (max-width: 900px) {
  .edu { grid-template-columns: 1fr; }
  .skills { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}

/* Contact --------------------------------------------------------------- */
.contact__glow {
  position: absolute;
  left: 50%; top: -30%;
  width: min(110vw, 1000px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 208, 165, .2), transparent 62%);
  z-index: -1;
  animation: breathe 10s ease-in-out infinite;
}
.contact__inner { text-align: left; }
.contact .section-title { max-width: 18ch; }
.contact__text {
  margin-top: 1.5rem;
  max-width: 40rem;
  color: rgba(255, 255, 255, .78);
  font-size: 1.15rem;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }

/* Footer ---------------------------------------------------------------- */
.site-footer {
  background: var(--g-950);
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  padding-block: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--g-300); }

/* Reveal on scroll (only when JS is available) -------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Keyframes ------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes keep-upright {
  from { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1)); }
  to { transform: translate(-50%, -50%) rotate(calc(var(--a) * -1 - 360deg)); }
}
@keyframes breathe { 0%, 100% { opacity: .65; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 80%, 100% { transform: scale(2.2); opacity: 0; } }
@keyframes scroll-dot { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Reduced motion -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* Print ----------------------------------------------------------------- */
@media print {
  .site-header, .scroll-progress, .hero__canvas, .hero__scroll, .nav-toggle { display: none !important; }
  .hero { min-height: auto; padding-top: 2rem; color: var(--ink); background: none; }
  .js .reveal { opacity: 1; transform: none; }
}
