/* ==========================================================================
   Personal Portfolio — modern Frutiger Aero
   Glass, gloss, sky and leaf — kept calm and formal.
   Contents: 1. Tokens  2. Base  3. Shared pieces  4. Header  5. Hero
             6. Marquee 7. About 8. Skills 9. Projects 10. Achievements
             11. Contact 12. Footer 13. Motion
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* EDIT: change these colors to re-theme the whole site */
  --white: #f7fdf4;        /* luminous white */
  --sky: #b5d9e2;          /* glass aqua */
  --sky-soft: #e4f2f5;
  --leaf: #b7d98a;         /* leaf spectrum */
  --meadow: #8fbe6e;       /* soft meadow */
  --green: #6d9e46;        /* aero green */
  --green-deep: #47752b;   /* green dark enough for text */
  --ocean: #05518e;        /* deep ocean blue */
  --ocean-deep: #033a68;
  --ink: #12324a;
  --muted: #486173;

  --font-display: "Instrument Serif", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Lexend", "Frutiger", "Segoe UI", system-ui, sans-serif;

  --hairline: 1px solid rgb(5 81 142 / 0.14);
  --glass-bg: rgb(255 255 255 / 0.55);
  --glass-border: 1px solid rgb(255 255 255 / 0.85);
  --shadow: 0 12px 32px rgb(5 81 142 / 0.12);
  --shadow-soft: 0 4px 14px rgb(5 81 142 / 0.08);
  --radius: 18px;
  --header-h: 68px;

  /* the classic two-step Aero gloss */
  --gloss-green: linear-gradient(180deg, #a5d67c 0%, #7fb556 49%, #639a3c 50%, #74ab4b 100%);
  --gloss-blue: linear-gradient(180deg, #3f8fd0 0%, #1a6cb0 49%, #05518e 50%, #0f62a5 100%);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

h1, h2, h3, h4, p, ul, ol, dl, dd {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--ocean);
  color: #fff;
  border-radius: 999px;
}

.skip-link:focus {
  top: 0.75rem;
}

/* ---------- 3. Shared pieces ---------- */
.wrap {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ocean);
  overflow-wrap: anywhere;
}

.eyebrow {
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.section-title {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.section-title--extrude,
.section-title--huge {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.section-sub {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 1.15rem;
  color: var(--muted);
}

.sub-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: clamp(3rem, 7vw, 5rem) 0 1.75rem;
}

.dot {
  color: var(--green);
}

/* Glass surface */
.card,
.edu__item,
.awards,
.hero__tag,
.filter,
.btn {
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  font: 600 0.98rem/1.2 var(--font-body);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ocean);
  background: var(--glass-bg);
  border: 1px solid rgb(5 81 142 / 0.22);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 0.9);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgb(255 255 255 / 0.85);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #fff;
  text-shadow: 0 1px 1px rgb(40 80 20 / 0.45);
  background: var(--gloss-green);
  border-color: #558a33;
  box-shadow: 0 6px 16px rgb(109 158 70 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.55);
}

.btn--primary:hover {
  background: var(--gloss-green);
  filter: brightness(1.06);
  box-shadow: 0 10px 24px rgb(109 158 70 / 0.42), inset 0 1px 0 rgb(255 255 255 / 0.55);
}

.btn--small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.25rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ocean);
  background: rgb(181 217 226 / 0.35);
  border: var(--hairline);
  border-radius: 999px;
}

.chips--small li {
  padding: 0.1rem 0.65rem;
  font-size: 0.82rem;
}

/* Glass card */
.card {
  padding: 1.5rem 1.6rem 1.7rem;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin-bottom: 0.9rem;
  font: 400 1.6rem/1.1 var(--font-display);
  color: var(--ocean);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: 0 1px 0 rgb(5 81 142 / 0.08);
}

/* The blur sits on a pseudo-element so the mobile menu can still cover the screen */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgb(247 253 244 / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font: 600 0.95rem/1 var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 1px rgb(3 58 104 / 0.6);
  background: var(--gloss-blue);
  border: 1px solid var(--ocean-deep);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgb(5 81 142 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.5);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.logo:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

.nav__list {
  display: flex;
  gap: 0.25rem;
}

.nav__list a {
  display: block;
  padding: 0.4rem 0.95rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.nav__list a:hover {
  background: rgb(181 217 226 / 0.4);
}

.nav__list a.is-active {
  color: var(--ocean);
  font-weight: 600;
  background: rgb(255 255 255 / 0.9);
  border-color: rgb(5 81 142 / 0.18);
  box-shadow: var(--shadow-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.95rem;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--ocean);
  background: rgb(255 255 255 / 0.8);
  border: 1px solid rgb(5 81 142 / 0.22);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    padding: 1.5rem 1.25rem 3rem;
    overflow-y: auto;
    background:
      radial-gradient(circle at 90% 10%, rgb(183 217 138 / 0.5), transparent 45%),
      linear-gradient(180deg, #d5ebf0 0%, var(--white) 70%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__list a,
  .nav__list a:hover,
  .nav__list a.is-active {
    padding: 0.6rem 0;
    font: 400 clamp(2.2rem, 10vw, 3.2rem)/1.1 var(--font-display);
    color: var(--ocean);
    background: none;
    border: 0;
    border-bottom: var(--hairline);
    border-radius: 0;
    box-shadow: none;
  }

  .nav__list a.is-active {
    font-style: italic;
    color: var(--green-deep);
  }
}

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(circle at 88% 12%, rgb(183 217 138 / 0.6), transparent 42%),
    radial-gradient(circle at 5% 85%, rgb(181 217 226 / 0.9), transparent 45%),
    linear-gradient(180deg, #cfe7ee 0%, #e9f6ef 60%, var(--white) 100%);
}

/* Two soft glass bubbles — the only decoration on the page */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgb(255 255 255 / 0.95) 0%, rgb(255 255 255 / 0.2) 28%, rgb(181 217 226 / 0.12) 60%, rgb(255 255 255 / 0.35) 100%);
  border: 1px solid rgb(255 255 255 / 0.7);
  box-shadow: inset 0 -10px 30px rgb(143 190 110 / 0.18);
  pointer-events: none;
}

.hero::before {
  width: clamp(120px, 18vw, 240px);
  aspect-ratio: 1;
  left: 46%;
  top: 8%;
}

.hero::after {
  width: clamp(60px, 8vw, 110px);
  aspect-ratio: 1;
  left: 38%;
  bottom: 10%;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__name {
  font-size: clamp(3.8rem, 12.5vw, 9rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.hero__tagline {
  max-width: 30rem;
  margin-top: 1.5rem;
  font: italic 400 clamp(1.4rem, 2.8vw, 1.9rem)/1.2 var(--font-display);
  color: var(--green-deep);
}

.hero__intro {
  max-width: 32rem;
  margin: 1rem 0 2rem;
  color: var(--muted);
}

.hero__visual {
  position: relative;
  width: min(100%, 400px);
  justify-self: center;
}

.hero__frame {
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: rgb(255 255 255 / 0.5);
  border: var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgb(5 81 142 / 0.2), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
}

.sticker {
  position: absolute;
  top: -4%;
  right: -5%;
  display: grid;
  place-items: center;
  width: clamp(80px, 23%, 104px);
  aspect-ratio: 1;
  font: italic 400 clamp(1.2rem, 2.4vw, 1.5rem)/1 var(--font-display);
  color: #fff;
  text-shadow: 0 1px 2px rgb(40 80 20 / 0.5);
  background:
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / 0.85) 0%, rgb(255 255 255 / 0) 38%),
    radial-gradient(circle at 50% 60%, #8fbe6e 0%, #5e9238 100%);
  border: 1px solid #558a33;
  border-radius: 50%;
  box-shadow: 0 10px 24px rgb(109 158 70 / 0.4);
}

.hero__tag {
  position: absolute;
  left: -7%;
  bottom: 8%;
  max-width: 80%;
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ocean);
  background: rgb(255 255 255 / 0.72);
  border: var(--glass-border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.hero__tag span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

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

  .hero__visual {
    width: min(82%, 340px);
    margin-top: 1.5rem;
  }

  .hero::before {
    left: auto;
    right: -8%;
    top: 4%;
  }

  .hero::after {
    display: none;
  }
}

/* ---------- 6. Marquee ---------- */
.marquee {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--ocean) 0%, #1c7c93 55%, var(--green) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), inset 0 18px 18px -12px rgb(255 255 255 / 0.18);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee ul {
  display: flex;
  flex-shrink: 0;
}

.marquee li {
  display: flex;
  align-items: center;
  padding-block: 0.75rem;
  font: italic 400 clamp(1.2rem, 2.6vw, 1.6rem)/1 var(--font-display);
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-transform: capitalize;
}

.marquee li::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-inline: 1.6rem;
  background: var(--leaf);
  border-radius: 50%;
  box-shadow: 0 0 8px rgb(255 255 255 / 0.8);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 7. About ---------- */
.about__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
}

.about__lead {
  font: 400 clamp(1.5rem, 2.8vw, 2.1rem)/1.2 var(--font-display);
  color: var(--ocean);
}

.about__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem clamp(1.5rem, 5vw, 4rem);
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--muted);
  border-top: var(--hairline);
}

.about__facts {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 3rem;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--ocean);
}

.about__facts span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.edu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.edu__item {
  position: relative;
  padding: 2.3rem 1.5rem 1.6rem;
  background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 160%);
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.edu__years {
  position: absolute;
  top: -0.9rem;
  left: 1.2rem;
  padding: 0.2rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 1px 1px rgb(3 58 104 / 0.6);
  background: var(--gloss-blue);
  border: 1px solid var(--ocean-deep);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.edu__item h4 {
  font: 400 1.55rem/1.1 var(--font-display);
  color: var(--ocean);
}

.edu__school {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--green-deep);
}

.edu__note {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.edu__note a {
  color: var(--ocean);
  font-weight: 500;
  text-underline-offset: 3px;
}

.edu__note a:hover {
  color: var(--green-deep);
}

@media (max-width: 820px) {
  .about__top,
  .about__body,
  .edu {
    grid-template-columns: 1fr;
  }

  .edu {
    gap: 2rem;
  }
}

/* ---------- 8. Skills ---------- */
.skills {
  background:
    radial-gradient(circle at 100% 0%, rgb(183 217 138 / 0.55), transparent 45%),
    radial-gradient(circle at 0% 100%, rgb(181 217 226 / 0.9), transparent 50%),
    linear-gradient(160deg, #dcedf2 0%, #eef8e8 100%);
}

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

.skills__label {
  margin-bottom: 1.5rem;
  font: 400 1.9rem/1 var(--font-display);
  color: var(--ocean);
}

.skill + .skill {
  margin-top: 1.3rem;
}

.skill__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.skill__row span:last-child {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A nod to the glossy green progress bar */
.meter {
  height: 16px;
  padding: 2px;
  background: rgb(255 255 255 / 0.7);
  border: 1px solid rgb(5 81 142 / 0.2);
  border-radius: 999px;
  box-shadow: inset 0 2px 4px rgb(5 81 142 / 0.12);
}

.meter span {
  display: block;
  width: var(--level, 50%);
  height: 100%;
  background: var(--gloss-green);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
}

.js .skill:not(.is-visible) .meter span {
  width: 0;
}

.skills__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

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

/* ---------- 9. Projects ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--sky-soft);
  border: var(--hairline);
  border-radius: 999px;
}

.filter {
  padding: 0.45rem 1.1rem;
  font: 600 0.9rem/1.2 var(--font-body);
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.filter:hover {
  background: rgb(255 255 255 / 0.8);
}

.filter.is-active {
  color: #fff;
  text-shadow: 0 1px 1px rgb(3 58 104 / 0.6);
  background: var(--gloss-blue);
  border-color: var(--ocean-deep);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.project {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project[hidden] {
  display: none;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgb(5 81 142 / 0.18);
}

.project__media {
  position: relative;
  border-bottom: var(--hairline);
}

.project__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project__media--phones {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4%;
  aspect-ratio: 4 / 3;
  padding: 5% 6%;
  background:
    radial-gradient(circle at 85% 10%, rgb(183 217 138 / 0.7), transparent 50%),
    linear-gradient(160deg, #cfe7ee 0%, #eef8e8 100%);
}

.project__media--shot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 6%;
  background:
    radial-gradient(circle at 85% 10%, rgb(183 217 138 / 0.7), transparent 50%),
    linear-gradient(160deg, #cfe7ee 0%, #eef8e8 100%);
}

.project__media--shot img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 3px solid #fff;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgb(5 81 142 / 0.22);
}

.project__media--phones img {
  width: 26%;
  height: auto;
  aspect-ratio: auto;
  min-width: 0;
  border: 3px solid #fff;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgb(5 81 142 / 0.22);
}

.project__badge {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  padding: 0.15rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  background: rgb(255 255 255 / 0.75);
  border: var(--glass-border);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.project__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.7rem;
  padding: 1.3rem 1.4rem 1.5rem;
}

.project__body h3 {
  font: 400 1.75rem/1.1 var(--font-display);
  color: var(--ocean);
}

.project__body p {
  font-size: 1rem;
  color: var(--muted);
}

.project__body .project__meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.project__points {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted);
  list-style: disc;
}

.project__points li::marker {
  color: var(--green);
}

.other {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
}

.other li {
  padding: 1.2rem 1.4rem 1.3rem;
  background: linear-gradient(180deg, #fff 0%, var(--sky-soft) 180%);
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.other h4 {
  font: 400 1.45rem/1.15 var(--font-display);
  color: var(--ocean);
}

.other p {
  margin-top: 0.4rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.project__body .chips {
  margin-top: auto;
  padding-top: 0.4rem;
}

.project__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0 1.4rem 1.4rem;
}

.project__actions a {
  padding: 0.6rem 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--ocean);
  background: var(--sky-soft);
  border: var(--hairline);
  border-radius: 999px;
  transition: background-color 0.2s ease, filter 0.2s ease;
}

.project__actions a:hover {
  background: var(--sky);
}

.project__actions a.is-primary {
  color: #fff;
  text-shadow: 0 1px 1px rgb(40 80 20 / 0.45);
  background: var(--gloss-green);
  border-color: #558a33;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
}

.project__actions a.is-primary:hover {
  filter: brightness(1.07);
}

.projects__empty {
  padding: 2rem;
  font-weight: 600;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgb(5 81 142 / 0.35);
  border-radius: var(--radius);
}

.projects__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  border-top: var(--hairline);
}

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

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

/* ---------- 10. Achievements ---------- */
.achievements {
  background:
    radial-gradient(circle at 0% 0%, rgb(181 217 226 / 0.8), transparent 45%),
    radial-gradient(circle at 100% 100%, rgb(183 217 138 / 0.6), transparent 50%),
    linear-gradient(200deg, #eef8e8 0%, #e2f1f3 100%);
}

.awards {
  overflow: hidden;
  background: var(--glass-bg);
  border: var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.award {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto auto;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.3rem 1.6rem;
  transition: background-color 0.2s ease;
}

.award + .award {
  border-top: var(--hairline);
}

.award:hover {
  background: rgb(255 255 255 / 0.85);
}

.award__year {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-deep);
}

.award__body h3 {
  font: 400 clamp(1.45rem, 2.6vw, 1.9rem)/1.1 var(--font-display);
  color: var(--ocean);
}

.award__body p {
  margin-top: 0.2rem;
  font-size: 1rem;
  color: var(--muted);
}

.award__type {
  padding: 0.15rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ocean);
  background: rgb(181 217 226 / 0.4);
  border: var(--hairline);
  border-radius: 999px;
}

.award__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ocean);
  text-underline-offset: 4px;
}

@media (max-width: 640px) {
  .award {
    grid-template-columns: 1fr auto;
    padding: 1.2rem 1.1rem;
  }

  .award__body {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .award__type {
    justify-self: end;
  }

  .award__link {
    grid-column: 1 / -1;
  }
}

/* ---------- 11. Contact ---------- */
.contact {
  color: #fff;
  background:
    radial-gradient(ellipse at 15% 0%, rgb(143 190 110 / 0.5), transparent 50%),
    radial-gradient(ellipse at 95% 100%, rgb(181 217 226 / 0.4), transparent 55%),
    linear-gradient(160deg, var(--ocean) 0%, var(--ocean-deep) 100%);
}

.contact .display {
  color: #fff;
}

.contact .dot,
.contact .eyebrow {
  color: var(--leaf);
}

.contact :focus-visible {
  outline-color: var(--leaf);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact__lead {
  max-width: 28rem;
  font: italic 400 clamp(1.4rem, 2.6vw, 1.8rem)/1.25 var(--font-display);
  color: #e6f4d6;
}

.contact__list {
  margin-top: 2rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.22);
}

.contact__list > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgb(255 255 255 / 0.22);
}

.contact__list dt {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 2.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}

.contact__list dd {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact__list a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact__list a:hover {
  color: var(--leaf);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}

.socials a {
  display: block;
  padding: 0.45rem 1.1rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  background: rgb(255 255 255 / 0.12);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.socials a:hover {
  color: var(--ocean);
  background: #fff;
}

.contact__form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: rgb(255 255 255 / 0.14);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgb(0 20 50 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.4);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--ink);
  background: rgb(255 255 255 / 0.92);
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 12px;
  box-shadow: inset 0 2px 4px rgb(5 81 142 / 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 7rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--leaf);
  outline-offset: 1px;
}

.contact__form .btn {
  justify-self: start;
}

.form-status {
  min-height: 1.5em;
  font-size: 0.95rem;
  font-weight: 600;
}

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

/* ---------- 12. Footer ---------- */
.site-footer {
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.5rem;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.stack__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
}

.to-top {
  font-weight: 600;
  color: var(--ocean);
  text-underline-offset: 4px;
}

.to-top:hover {
  color: var(--green-deep);
}

/* ---------- 13. Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee__track {
    animation: none;
  }

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

  .meter span,
  .btn,
  .project {
    transition: none;
  }
}

/* ==========================================================================
   14. Layout v2 — poster hero, "Hello" intro, two-column resume
   ========================================================================== */

/* ---------- Hero ---------- */
.hero2 {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.hero2__word {
  grid-column: 1 / -1;
  position: relative;
  z-index: 2;
  margin-bottom: -0.3em;
  font-size: clamp(3rem, 15vw, 12rem);
  line-height: 0.8;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.hero2__photo {
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 4 / 5;
  padding: 10px;
  background: rgb(255 255 255 / 0.5);
  border: var(--glass-border);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgb(5 81 142 / 0.2), inset 0 1px 0 #fff;
}

.hero2__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 23px;
}

.hero2__side {
  min-width: 0;
}

.hero2__echo {
  overflow: hidden;
  margin-top: 0.5rem;
  font: 400 clamp(2rem, 8.5vw, 6.8rem)/0.86 var(--font-display);
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(5 81 142 / 0.3);
}

.hero2__echo span {
  display: flex;
  justify-content: flex-end;
  white-space: nowrap;
}

.hero2__echo span:nth-child(2) {
  -webkit-text-stroke-color: rgb(109 158 70 / 0.5);
}

.hero2__text {
  margin-top: clamp(1.25rem, 3vw, 2rem);
}

.hero2__name {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.hero2 .hero__tagline {
  margin-top: 0.6rem;
}

.hero2__intro {
  max-width: 34rem;
  margin-top: 0.8rem;
  color: var(--muted);
}

.hero2__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.75rem;
  margin: 1.25rem 0 1.6rem;
  font-weight: 500;
}

.hero2__links span {
  margin-right: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--green-deep);
}

.hero2__links a {
  color: var(--ocean);
  text-decoration: none;
  border-bottom: 1px solid rgb(5 81 142 / 0.3);
}

.hero2__links a:hover {
  color: var(--green-deep);
  border-color: currentColor;
}

/* Glossy orb that straddles the hero and the strip below it */
.scroll-cue {
  position: relative;
  z-index: 5;
  height: 0;
}

.scroll-cue a {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  font: 500 0.92rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 2px rgb(40 80 20 / 0.5);
  background:
    radial-gradient(circle at 32% 24%, rgb(255 255 255 / 0.85) 0%, rgb(255 255 255 / 0) 38%),
    radial-gradient(circle at 50% 60%, #8fbe6e 0%, #5e9238 100%);
  border: 1px solid #558a33;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgb(109 158 70 / 0.45);
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.scroll-cue a:hover {
  filter: brightness(1.07);
  transform: translate(-50%, -44%);
}

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

  .hero2__photo {
    justify-self: center;
    width: min(78%, 320px);
  }

  .hero2__echo {
    display: none;
  }

  .hero {
    padding-bottom: 5.5rem;
  }

  .scroll-cue a {
    width: 88px;
    font-size: 0.85rem;
  }
}

/* ---------- Hello / About ---------- */
.hello__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hello__title {
  margin-bottom: 1.5rem;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
}

.hello__text > p:not(.eyebrow) {
  max-width: 34rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.hello__link {
  display: inline-block;
  margin-top: 0.75rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 1px 1px rgb(3 58 104 / 0.6);
  background: var(--gloss-blue);
  border: 1px solid var(--ocean-deep);
  border-radius: 999px;
  box-shadow: 0 6px 16px rgb(5 81 142 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.45);
  transition: transform 0.2s ease, filter 0.2s ease;
  overflow-wrap: anywhere;
}

.hello__link:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.hello__visual {
  position: relative;
  width: min(100%, 360px);
  margin-inline: auto;
}

.hello__panel {
  overflow: hidden;
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--ocean) 0%, #1c7c93 60%, var(--green) 100%);
  border-radius: 50% 50% 28px 28px;
  box-shadow: 0 24px 60px rgb(5 81 142 / 0.22);
}

.hello__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 12%;
}

.hello__pill {
  position: absolute;
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 1px rgb(40 80 20 / 0.45);
  background: var(--gloss-green);
  border: 1px solid #558a33;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgb(109 158 70 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.5);
  white-space: nowrap;
  z-index: 2;
}

.hello__pill--a {
  left: -14%;
  top: 34%;
}

.hello__pill--b {
  right: -12%;
  top: 14%;
}

.hello__card {
  position: relative;
  width: 92%;
  margin: -2.75rem 0 0 auto;
  padding: 1.3rem 1.5rem 1.4rem;
  color: #fff;
  background: linear-gradient(160deg, var(--ocean) 0%, var(--ocean-deep) 100%);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 22px;
  box-shadow: 0 20px 44px rgb(3 58 104 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.hello__card h3 {
  margin-bottom: 0.7rem;
  font: 400 1.7rem/1 var(--font-display);
}

.hello__card li {
  padding: 0.35rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.hello__card span {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--leaf);
}

.hello__card a {
  text-underline-offset: 3px;
}

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

  .hello__visual {
    width: min(84%, 320px);
  }

  .hello__pill--a {
    left: -8%;
  }

  .hello__pill--b {
    right: -8%;
  }
}

/* ---------- Resume: education + achievements | skills ---------- */
.resume {
  background:
    radial-gradient(circle at 100% 0%, rgb(183 217 138 / 0.55), transparent 45%),
    radial-gradient(circle at 0% 100%, rgb(181 217 226 / 0.9), transparent 50%),
    linear-gradient(160deg, #dcedf2 0%, #eef8e8 100%);
}

.resume__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.resume__title {
  margin-bottom: 1.75rem;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
}

.resume__right {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.resume__right .section-sub {
  margin: -1rem 0 1.75rem;
  font-size: 1.05rem;
}

.resume__right .skills__cards {
  grid-template-columns: 1fr;
  gap: 1rem;
}

.resume__right .card {
  padding: 1.15rem 1.3rem 1.3rem;
}

.resume__right .card h3 {
  margin-bottom: 0.7rem;
  font-size: 1.45rem;
}

/* Timeline */
.tl {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-left: 1.75rem;
}

.tl::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  background: rgb(5 81 142 / 0.18);
}

.tl > li {
  position: relative;
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 0.2rem 1rem;
}

.tl > li::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle at 35% 30%, #c6e6a6 0%, #6d9e46 70%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgb(5 81 142 / 0.3);
}

.tl__when {
  font: 400 1.45rem/1.2 var(--font-display);
  color: var(--ocean);
}

.tl__what h4 {
  font: 500 1.05rem/1.35 var(--font-body);
  color: var(--ink);
}

.tl__what p {
  margin-top: 0.15rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.tl__what a {
  color: var(--ocean);
  text-underline-offset: 3px;
}

.tl__link {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Offset achievements box */
.resume__box {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0 clamp(-2.5rem, -3vw, -1rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: #fff;
  background:
    radial-gradient(ellipse at 10% 0%, rgb(143 190 110 / 0.5), transparent 55%),
    linear-gradient(160deg, var(--ocean) 0%, var(--ocean-deep) 100%);
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgb(3 58 104 / 0.3), inset 0 1px 0 rgb(255 255 255 / 0.25);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.resume__box .display,
.resume__box .tl__when,
.resume__box .tl__what h4 {
  color: #fff;
}

.resume__box .eyebrow,
.resume__box .tl__what a {
  color: var(--leaf);
}

.resume__box .tl__what p {
  color: rgb(255 255 255 / 0.78);
}

.resume__box :focus-visible {
  outline-color: var(--leaf);
}

.tl--light::before {
  background: rgb(255 255 255 / 0.25);
}

.tl--light > li {
  grid-template-columns: 4rem minmax(0, 1fr);
}

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

  .resume__box {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .tl > li,
  .tl--light > li {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   15. Layout polish + liquid-glass hover
   ========================================================================== */

/* Keep the echo text clear of the big word */
.hero2__echo {
  margin-top: clamp(1.75rem, 5.5vw, 4.75rem);
}

.hero2__text {
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
}

/* Bubbles sit in the corners instead of behind the headline */
.hero::before {
  left: auto;
  right: -3%;
  top: 6%;
  width: clamp(110px, 15vw, 210px);
}

.hero::after {
  left: -2%;
  bottom: 6%;
  width: clamp(70px, 9vw, 130px);
}

/* The scroll orb sits just above the strip instead of covering its text */
.scroll-cue a {
  transform: translate(-50%, -78%);
}

.scroll-cue a:hover {
  transform: translate(-50%, -72%);
}

.hero {
  padding-bottom: clamp(6rem, 11vw, 8rem);
}

/* About: facts as a tidy row under the heading */
.hello__facts {
  margin: -0.5rem 0 1.5rem;
}

.hello__visual {
  width: min(100%, 340px);
}

/* The achievements box lines up with the column */
.resume__box {
  margin-left: 0;
}

/* ---------- Liquid-glass hover ----------
   A soft highlight follows the pointer across the surface (see script.js),
   while the surface lifts and its glass edge brightens. */
.glass-hover {
  position: relative;
  isolation: isolate;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.glass-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  background:
    radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.1) 45%, transparent 70%),
    linear-gradient(135deg, rgb(255 255 255 / 0.28) 0%, transparent 35%, transparent 65%, rgb(181 217 226 / 0.25) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 -10px 22px rgb(255 255 255 / 0.14), inset 0 0 0 1px rgb(255 255 255 / 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.glass-hover:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow: 0 22px 48px rgb(5 81 142 / 0.2), 0 2px 6px rgb(5 81 142 / 0.08);
}

.glass-hover:hover::after {
  opacity: 1;
}

.btn.glass-hover:hover,
.hello__link.glass-hover:hover,
.nav__list a.glass-hover:hover {
  transform: translateY(-2px) scale(1.03);
}

.nav__list a.glass-hover:hover {
  box-shadow: 0 6px 16px rgb(5 81 142 / 0.14);
}

@media (hover: none) {
  .glass-hover::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-hover,
  .glass-hover::after {
    transition: none;
  }

  .glass-hover:hover {
    transform: none;
  }
}

/* Contact: photo beside the lead text */
.contact__intro {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact__photo {
  flex: 0 0 auto;
  width: clamp(120px, 34%, 170px);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  padding: 6px;
  background: rgb(255 255 255 / 0.16);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 22px;
  box-shadow: 0 18px 40px rgb(0 20 50 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.35);
}

@media (max-width: 480px) {
  .contact__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact__photo {
    width: 150px;
  }
}

/* Phone: the big word sits above the photo instead of overlapping it */
@media (max-width: 820px) {
  .hero2__word {
    margin-bottom: 0.2em;
  }
}


/* ==========================================================================
   16. Floating bubbles (created in script.js)
   ========================================================================== */
.resume,
.contact {
  position: relative;
  overflow: hidden;
}

.resume > .wrap,
.contact > .wrap {
  position: relative;
  z-index: 1;
}

.bubbles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bubbles span {
  position: absolute;
  bottom: -120px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgb(255 255 255 / 0.9) 0%, rgb(255 255 255 / 0.18) 30%, rgb(181 217 226 / 0.1) 62%, rgb(255 255 255 / 0.32) 100%);
  border: 1px solid rgb(255 255 255 / 0.65);
  box-shadow: inset 0 -6px 14px rgb(143 190 110 / 0.16);
  opacity: 0;
  animation-name: bubble-rise, bubble-sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
  animation-direction: normal, alternate;
  will-change: transform, translate;
}

.contact .bubbles span {
  background: radial-gradient(circle at 30% 28%, rgb(255 255 255 / 0.5) 0%, rgb(255 255 255 / 0.08) 32%, rgb(181 217 226 / 0.06) 62%, rgb(255 255 255 / 0.18) 100%);
  border-color: rgb(255 255 255 / 0.3);
  box-shadow: none;
}

@keyframes bubble-rise {
  0% {
    transform: translateY(0) scale(0.85);
    opacity: 0;
  }
  8% {
    opacity: 0.85;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(calc(-100cqh - 260px)) scale(1.08);
    opacity: 0;
  }
}

@keyframes bubble-sway {
  from {
    translate: -14px 0;
  }
  to {
    translate: 14px 0;
  }
}

.bubbles {
  container-type: size;
}

/* The moving bubbles replace the small static one */
.hero::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .bubbles {
    display: none;
  }
}


/* Photo placement, matched to the file names: hero, second-hero, contact, pfp */
.hello__card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.hello__card-head img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 2px solid rgb(255 255 255 / 0.7);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgb(0 20 50 / 0.35);
}

.hello__card-head h3 {
  margin-bottom: 0;
}

.contact__photo {
  object-position: 50% 20%;
}

.hello__panel {
  aspect-ratio: 4 / 5;
  border-radius: 72px 72px 28px 28px;
}

.hello__panel img {
  object-position: 50% 0%;
}

.hello__card {
  margin-top: -4.5rem;
}


/* ==========================================================================
   17. Dark mode — toggle button + night palette ("Aero at night")
   ========================================================================== */
.site-header__inner {
  gap: 0.6rem;
}

.logo {
  margin-right: auto;
}

.theme-toggle {
  order: 3;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ocean);
  background: rgb(255 255 255 / 0.8);
  border: 1px solid rgb(5 81 142 / 0.22);
  border-radius: 50%;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 0.9);
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.theme-toggle:hover {
  transform: rotate(18deg) scale(1.06);
}

/* Moon drawn in CSS; becomes a sun in dark mode */
.theme-toggle__icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset -5px -3px 0 0 currentColor;
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

[data-theme="dark"] .theme-toggle__icon {
  width: 12px;
  height: 12px;
  background: currentColor;
  box-shadow: 0 -9px 0 -4px currentColor, 0 9px 0 -4px currentColor, 9px 0 0 -4px currentColor, -9px 0 0 -4px currentColor,
    6.5px 6.5px 0 -4px currentColor, -6.5px 6.5px 0 -4px currentColor, 6.5px -6.5px 0 -4px currentColor, -6.5px -6.5px 0 -4px currentColor;
}

@media (max-width: 920px) {
  .theme-toggle {
    order: 0;
  }
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;

  --white: #06182a;
  --sky-soft: rgb(181 217 226 / 0.1);
  --green-deep: #a8d880;
  --ocean: #9fd6f2;
  --ink: #e8f3f6;
  --muted: #a7bfcc;
  --hairline: 1px solid rgb(255 255 255 / 0.14);
  --glass-bg: rgb(255 255 255 / 0.07);
  --glass-border: 1px solid rgb(255 255 255 / 0.18);
  --shadow: 0 14px 36px rgb(0 0 0 / 0.4);
  --shadow-soft: 0 4px 14px rgb(0 0 0 / 0.3);
}

/* Surfaces that were hard-coded light */
[data-theme="dark"] .site-header {
  border-bottom-color: rgb(255 255 255 / 0.1);
}

[data-theme="dark"] .site-header::before {
  background: rgb(6 24 42 / 0.74);
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(circle at 88% 12%, rgb(109 158 70 / 0.38), transparent 42%),
    radial-gradient(circle at 5% 85%, rgb(5 81 142 / 0.65), transparent 48%),
    linear-gradient(180deg, #0a3050 0%, #082238 60%, var(--white) 100%);
}

[data-theme="dark"] .resume,
[data-theme="dark"] .skills,
[data-theme="dark"] .achievements {
  background:
    radial-gradient(circle at 100% 0%, rgb(109 158 70 / 0.3), transparent 45%),
    radial-gradient(circle at 0% 100%, rgb(5 81 142 / 0.6), transparent 50%),
    linear-gradient(160deg, #0a2b47 0%, #07202f 100%);
}

[data-theme="dark"] .marquee {
  background: linear-gradient(90deg, #05518e 0%, #1c7c93 55%, #6d9e46 100%);
}

[data-theme="dark"] .contact {
  background:
    radial-gradient(ellipse at 15% 0%, rgb(143 190 110 / 0.35), transparent 50%),
    radial-gradient(ellipse at 95% 100%, rgb(181 217 226 / 0.22), transparent 55%),
    linear-gradient(160deg, #04406f 0%, #021f3a 100%);
}

[data-theme="dark"] .hello__card,
[data-theme="dark"] .resume__box {
  background:
    radial-gradient(ellipse at 10% 0%, rgb(143 190 110 / 0.4), transparent 55%),
    linear-gradient(160deg, #05518e 0%, #033a68 100%);
}

[data-theme="dark"] .hello__panel {
  background: linear-gradient(160deg, #05518e 0%, #1c7c93 60%, #6d9e46 100%);
}

[data-theme="dark"] .project,
[data-theme="dark"] .other li,
[data-theme="dark"] .edu__item {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.09) 0%, rgb(255 255 255 / 0.04) 100%);
}

[data-theme="dark"] .project__media--phones,
[data-theme="dark"] .project__media--shot {
  background:
    radial-gradient(circle at 85% 10%, rgb(109 158 70 / 0.45), transparent 50%),
    linear-gradient(160deg, #0c3a5e 0%, #0a2b3d 100%);
}

[data-theme="dark"] .project__media--phones img,
[data-theme="dark"] .project__media--shot img {
  border-color: rgb(255 255 255 / 0.35);
}

[data-theme="dark"] .project__badge {
  color: #05518e;
}

[data-theme="dark"] .chips li {
  background: rgb(181 217 226 / 0.14);
}

[data-theme="dark"] .btn:not(.btn--primary) {
  border-color: rgb(255 255 255 / 0.28);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgb(255 255 255 / 0.2);
}

[data-theme="dark"] .btn:not(.btn--primary):hover {
  background: rgb(255 255 255 / 0.16);
}

[data-theme="dark"] .nav__list a:hover {
  background: rgb(255 255 255 / 0.1);
}

[data-theme="dark"] .nav__list a.is-active {
  background: rgb(255 255 255 / 0.14);
  border-color: rgb(255 255 255 / 0.22);
}

[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .theme-toggle {
  background: rgb(255 255 255 / 0.1);
  border-color: rgb(255 255 255 / 0.25);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.2);
}

[data-theme="dark"] .hero2__photo,
[data-theme="dark"] .hero__frame {
  background: rgb(255 255 255 / 0.12);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.3);
}

[data-theme="dark"] .hero2__echo {
  -webkit-text-stroke-color: rgb(159 214 242 / 0.4);
}

[data-theme="dark"] .hero2__echo span:nth-child(2) {
  -webkit-text-stroke-color: rgb(168 216 128 / 0.5);
}

[data-theme="dark"] .hero2__links a {
  border-bottom-color: rgb(159 214 242 / 0.4);
}

[data-theme="dark"] .tl::before {
  background: rgb(255 255 255 / 0.2);
}

[data-theme="dark"] .field input,
[data-theme="dark"] .field textarea {
  color: #12324a;
}

[data-theme="dark"] .bubbles span {
  opacity: 0.5;
  border-color: rgb(255 255 255 / 0.3);
}

[data-theme="dark"] .hero::before {
  opacity: 0.45;
}

[data-theme="dark"] .glass-hover::after {
  background:
    radial-gradient(180px circle at var(--mx, 50%) var(--my, 0%), rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.05) 45%, transparent 70%),
    linear-gradient(135deg, rgb(255 255 255 / 0.1) 0%, transparent 35%, transparent 65%, rgb(181 217 226 / 0.12) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), inset 0 0 0 1px rgb(255 255 255 / 0.2);
}

[data-theme="dark"] .glass-hover:hover {
  box-shadow: 0 22px 48px rgb(0 0 0 / 0.5);
}

@media (max-width: 920px) {
  [data-theme="dark"] .site-nav {
    background:
      radial-gradient(circle at 90% 10%, rgb(109 158 70 / 0.35), transparent 45%),
      linear-gradient(180deg, #0a3050 0%, #06182a 70%);
  }
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
}


/* Scroll-down orb removed: restore the hero's normal bottom spacing */
.hero {
  padding-bottom: clamp(3.5rem, 8vw, 6.5rem);
}


/* ==========================================================================
   18. Certificate viewer — a glass window with a title bar
   ========================================================================== */
.viewer {
  width: min(920px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: rgb(247 253 244 / 0.82);
  border: 1px solid rgb(255 255 255 / 0.85);
  border-radius: 18px;
  box-shadow: 0 40px 100px rgb(3 30 60 / 0.5), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

.viewer[open] {
  display: flex;
  flex-direction: column;
  animation: viewer-in 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.viewer::backdrop {
  background: rgb(3 30 60 / 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

@keyframes viewer-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
  }
}

.viewer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.75rem 0.65rem 1.25rem;
  color: #fff;
  background: var(--gloss-blue);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.viewer__title {
  font: 500 1rem/1.3 var(--font-body);
  text-shadow: 0 1px 1px rgb(3 58 104 / 0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer__close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  font: 400 1.5rem/1 var(--font-body);
  color: #fff;
  background: linear-gradient(180deg, #ef8a7a 0%, #d9523f 49%, #c23a28 50%, #d4513e 100%);
  border: 1px solid #9c2a1c;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.viewer__close:hover {
  filter: brightness(1.12);
}

.viewer__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.viewer__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem;
  overflow: auto;
}

.viewer__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgb(5 81 142 / 0.2);
}

.viewer__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: var(--hairline);
}

.viewer__meta {
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--muted);
}

[data-theme="dark"] .viewer {
  background: rgb(8 30 50 / 0.86);
  border-color: rgb(255 255 255 / 0.2);
  box-shadow: 0 40px 100px rgb(0 0 0 / 0.65), inset 0 1px 0 rgb(255 255 255 / 0.2);
}

@media (prefers-reduced-motion: reduce) {
  .viewer[open] {
    animation: none;
  }
}


/* ==========================================================================
   19. Bubble pop — a quick ring and droplets where a bubble was clicked
   ========================================================================== */
.bubble-pop {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.bubble-pop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--size);
  height: var(--size);
  border: 2px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pop-ring 0.45s ease-out forwards;
}

.bubble-pop i {
  position: absolute;
  left: -3px;
  top: -3px;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle at 35% 30%, #fff 0%, rgb(181 217 226 / 0.9) 70%);
  border-radius: 50%;
  transform: rotate(var(--angle)) translateY(calc(var(--size) * -0.4));
  animation: pop-drop 0.5s ease-out forwards;
}

@keyframes pop-ring {
  to {
    transform: translate(-50%, -50%) scale(1.6);
    opacity: 0;
  }
}

@keyframes pop-drop {
  to {
    transform: rotate(var(--angle)) translateY(calc(var(--size) * -1.1 - 14px)) scale(0.3);
    opacity: 0;
  }
}
