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

:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b6b6b;
  --color-accent: #0d3a52;
  --nav-height: 64px;
  --font: 'BDO Grotesk Medium', 'BDO Grotesk', sans-serif;
  --font-heading: 'BDO Grotesk Medium', 'BDO Grotesk', sans-serif;
}

html {
  font-family: var(--font);
  background-color: #0a0a0a;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background-color: #0a0a0a;
  border-bottom: 1px solid #222222;
  z-index: 100;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
  transition: filter 0.3s;
}

/* Dark mode — lighter blue #89b4d4 */
[data-theme="dark"] .nav__logo-img {
  filter: brightness(0) saturate(100%) invert(72%) sepia(18%) saturate(728%) hue-rotate(169deg) brightness(103%) contrast(88%);
}

/* Light mode — dark so it shows on white background */
[data-theme="light"] .nav__logo-img {
  filter: brightness(0) saturate(100%);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: #aaaaaa;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
}

.nav__link:hover {
  color: #ffffff;
}

.nav__link--resume {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  color: #aaaaaa;
}

.nav__link--resume:hover,
.nav__link.active {
  color: #ffffff;
}

.resume-bubbles {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.bubble {
  display: inline-block;
  border-radius: 999px;
  background: #89b4d4;
  flex-shrink: 0;
}

.bubble--lg {
  width: 9px;
  height: 9px;
}

.bubble--sm {
  width: 5px;
  height: 5px;
  margin-bottom: 1px;
}

/* ── Main content offset ── */

main {
  padding-top: var(--nav-height);
}

/* ── Hero ── */

.hero {
  padding: 140px 200px 80px;
  background-color: #0a0a0a;
}

.hero__content {
  max-width: 960px;
}

.hero__greeting {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 24px;
}

@keyframes textSweep {
  0%   { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

.hero__text-sweep {
  background: linear-gradient(90deg, #ffffff 50%, #444444 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textSweep 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.hero__dot {
  color: #89b4d4;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 500;
  line-height: 1.55;
  color: #aaaaaa;
  margin-bottom: 20px;
}

.hero__emphasis {
  color: #ffffff;
  font-weight: 500;
  font-family: var(--font-heading);
}

.hero__bio {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: #aaaaaa;
}

.hero__highlight {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-weight: 500;
}

.bio-logo {
  height: 1em;
  width: auto;
  object-fit: contain;
  border-radius: 2px;
  vertical-align: middle;
}

.hero__heart {
  display: inline-block;
  width: 1em;
  height: 0.9em;
  vertical-align: middle;
  margin-left: 2px;
  position: relative;
  top: -1px;
}

/* ── Entrance animations ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  opacity: 0;
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ── Work Section ── */

.work {
  padding: 0 200px 80px;
  background-color: #0a0a0a;
}

.work__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 40px;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.project-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: #111111;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
}

.project-card--blue   { background: #d6e8f5; }
.project-card--green  { background: #cce8d4; }
.project-card--navy   { background: #0d2d44; }
.project-card--yellow { background: #f5e6c0; }

/* Stronger text on all colored cards */
.project-card--blue .project-card__title,
.project-card--green .project-card__title,
.project-card--yellow .project-card__title { color: #0f0f0f; font-weight: 500; }

.project-card--blue .project-card__desc,
.project-card--green .project-card__desc,
.project-card--yellow .project-card__desc { color: #3a3a3a; }

.project-card--blue .project-card__client,
.project-card--green .project-card__client,
.project-card--yellow .project-card__client { color: #222222; }

.project-card--blue .project-card__link,
.project-card--green .project-card__link,
.project-card--yellow .project-card__link { color: #0d3a52; }

/* Navy card — flip text to light */
.project-card--navy .project-card__title  { color: #ffffff; font-weight: 500; }
.project-card--navy .project-card__desc   { color: rgba(255,255,255,0.75); }
.project-card--navy .project-card__link   { color: #89b4d4; }
.project-card--navy .project-card__client { color: rgba(255,255,255,0.85); }

/* ── Cursor label ── */

.cursor-label {
  position: fixed;
  pointer-events: none;
  background: #89b4d4;
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translate(12px, -50%);
  transition: opacity 0.15s ease;
  z-index: 9999;
}

.project-card__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.project-card__cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease, transform 0.5s ease;
}

.project-card:hover .project-card__cover {
  filter: blur(14px);
  transform: scale(1.08);
}

.project-card__cover--contain {
  object-fit: contain;
  padding: 16px;
}

.project-card__media--promega {
  background-image: url('assets/CentralDogmaOfBiology_4.jpg');
  background-size: cover;
  background-position: center;
}

.project-card__info {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 36px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-card:hover .project-card__info {
  opacity: 1;
}

.project-card__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.project-card__client {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.project-card__client-logo {
  height: 28px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}

.project-card__tags {
  display: flex;
  gap: 8px;
}

.tag {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-muted);
  background: #ebebeb;
  padding: 3px 10px;
  border-radius: 999px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.project-card__desc {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
}

.project-card__link {
  font-size: 14px;
  font-weight: 500;
  color: #89b4d4;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.18s ease;
}

.project-card__link::before {
  content: '';
  position: absolute;
  inset: 0;
}

.project-card__link:hover {
  gap: 10px;
}

/* ── Animations ── */

.animate--1 { animation-delay: 0.1s; }
.animate--2 { animation-delay: 1.1s; }
.animate--3 { animation-delay: 1.4s; }
.animate--4 { animation-delay: 1.7s; }
.animate--5 { animation-delay: 1.9s; }
.animate--smiley { animation-delay: 1.4s; }

/* ── Theme Toggle ── */

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 62px;
  height: 30px;
  padding: 4px 6px;
  background: transparent;
  border: 2px solid #89b4d4;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
}

.theme-toggle__thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #89b4d4;
  left: 3px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(32px);
}

[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(0);
}

.theme-toggle__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  z-index: 1;
  transition: color 0.2s ease;
}

.theme-toggle__icon--sun { color: #555555; }
.theme-toggle__icon--moon { color: #ffffff; }

[data-theme="light"] .theme-toggle__icon--sun { color: #111111; }
[data-theme="light"] .theme-toggle__icon--moon { color: #aaaaaa; }

/* ── Light Mode ── */

[data-theme="light"] .nav {
  background-color: #ffffff;
  border-bottom: 1px solid #e8e8e8;
}

[data-theme="light"] .nav__link {
  color: #555555;
}

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__link.active {
  color: #111111;
}

[data-theme="light"] .hero {
  background-color: #ffffff;
}

[data-theme="light"] .hero__greeting {
  color: #111111;
}

[data-theme="light"] .hero__text-sweep {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: #111111;
  animation: none;
}

[data-theme="light"] .hero__tagline {
  color: #777777;
}

[data-theme="light"] .hero__emphasis {
  color: #111111;
}

[data-theme="light"] .hero__bio {
  color: #777777;
}

[data-theme="light"] .hero__highlight {
  color: #111111;
}

[data-theme="light"] .work {
  background-color: #ffffff;
}

[data-theme="light"] .work__label {
  color: #111111;
}

html[data-theme="light"] {
  background-color: #ffffff;
}

[data-theme="light"] .nav__logo-img {
  filter: brightness(0) saturate(100%) invert(16%) sepia(61%) saturate(700%) hue-rotate(183deg) brightness(80%);
}

[data-theme="light"] .hero__dot { color: #0d3a52; }
[data-theme="light"] .bubble { background: #0d3a52; }
[data-theme="light"] .hero__heart path { fill: #0d3a52; }
[data-theme="light"] .theme-toggle { border-color: #0d3a52; }
[data-theme="light"] .theme-toggle__thumb { background: #0d3a52; }
[data-theme="light"] .theme-toggle__icon--moon { color: #0d3a52; }
[data-theme="light"] .theme-toggle__icon--sun { color: #111111; }

/* ── About ── */

.about {
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 120px 200px;
  min-height: calc(100vh - var(--nav-height));
}

.about__photo-wrap {
  flex-shrink: 0;
  background: #ffffff;
  padding: 10px 10px 44px 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  transform: rotate(-2deg);
}

.about__photo {
  width: 300px;
  height: auto;
  display: block;
}

.about__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.about__name {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  margin: 0;
}

.about__bio {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: #aaaaaa;
  margin: 0;
}

.about__highlight {
  color: #ffffff;
  font-weight: 500;
}

[data-theme="light"] .about { border-color: #e8e8e8; }
[data-theme="light"] .about__name { color: #0d3a52; }
[data-theme="light"] .about__bio { color: #555555; }
[data-theme="light"] .about__highlight { color: #0d3a52; }

/* ── Experience flip cards ── */

.about-experience {
  padding: 0px 200px 120px;
}

.about-experience__header {
  margin-bottom: 40px;
}

.about-experience__label {
  display: block;
  font-size: 14px;
  color: #aaaaaa;
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-experience__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.about-exp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
}

/* Flip card */
.exp-card {
  height: 180px;
  perspective: 1000px;
  cursor: pointer;
}

.exp-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.exp-card.flipped .exp-card__inner {
  transform: rotateY(180deg);
}

.exp-card__front,
.exp-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 16px;
  background: #161616;
  border: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 28px 0;
  overflow: hidden;
}

.exp-card__back {
  transform: rotateY(180deg);
  padding: 28px 28px 28px 0;
}

.exp-card__accent {
  width: 4px;
  height: 100%;
  flex-shrink: 0;
  border-radius: 0 2px 2px 0;
}

.exp-card__logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.exp-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.exp-card__company {
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.exp-card__role {
  font-size: 13px;
  color: #aaaaaa;
  margin: 0;
}

.exp-card__meta {
  font-size: 12px;
  color: #888888;
  margin: 0;
  margin-top: 2px;
}

.exp-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #aaaaaa;
  margin: 0;
  padding-right: 8px;
}

/* Light mode */
[data-theme="light"] .about-experience__title { color: #0d3a52; }
[data-theme="light"] .about-experience__label { color: #555555; }

/* ── What Shapes Me ── */

.about-shapes {
  padding: 0 200px 120px;
}

.about-shapes__header {
  margin-bottom: 40px;
}

.about-shapes__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.about-shapes__sub {
  font-size: 14px;
  color: #aaaaaa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-shapes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
}

.shape-card {
  background: #161616;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shape-card__img-wrap {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.shape-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shape-card__body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shape-card__title {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  text-decoration: none;
}

a.shape-card__title:hover {
  color: #89b4d4;
}

.shape-card__desc {
  font-size: 13px;
  line-height: 1.7;
  color: #aaaaaa;
  margin: 0;
}

.shape-card__quote {
  display: block;
  margin-top: 8px;
  font-style: italic;
  color: #777777;
  font-size: 12px;
}

[data-theme="light"] .about-shapes__title { color: #0d3a52; }
[data-theme="light"] .about-shapes__sub { color: #555555; }
[data-theme="light"] .shape-card { background: #f5f5f5; border-color: #e8e8e8; }
[data-theme="light"] .shape-card__title { color: #0d3a52; }
[data-theme="light"] .shape-card__desc { color: #555555; }
[data-theme="light"] .shape-card__quote { color: #888888; }
[data-theme="light"] .exp-card__front,
[data-theme="light"] .exp-card__back { background: #f5f5f5; border-color: #e8e8e8; }
[data-theme="light"] .exp-card__company { color: #0d3a52; }
[data-theme="light"] .exp-card__role { color: #555555; }
[data-theme="light"] .exp-card__meta { color: #aaaaaa; }
[data-theme="light"] .exp-card__desc { color: #555555; }


/* ── Interests section ──────────────────────────────────────── */
.about-interests {
  padding: 0 200px 120px;
}

.about-interests__header {
  margin-bottom: 40px;
}

.about-interests__title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.about-interests__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 860px;
}

.interest-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.interest-card__img-wrap {
  height: 180px;
  overflow: hidden;
}

.interest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interest-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.interest-card__title {
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
}

.interest-card__desc {
  font-size: 13px;
  color: #aaaaaa;
  line-height: 1.5;
  margin: 0;
}

[data-theme="light"] .about-interests__title { color: #0d3a52; }
[data-theme="light"] .interest-card { background: #f5f5f5; border-color: #e8e8e8; }
[data-theme="light"] .interest-card__title { color: #0d3a52; }
[data-theme="light"] .interest-card__desc { color: #555555; }

/* ── Polaroid photo-cards ───────────────────────────────────── */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: center;
  max-width: 960px;
  margin: 0 auto;
}

.photo-card {
  --rot: 0deg;
  background: #ffffff;
  padding: 8px 8px 0 8px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
  cursor: pointer;
  perspective: 1200px;
  width: 200px;
  flex-shrink: 0;
  transform: rotate(var(--rot));
  transition: box-shadow 0.3s, transform 0.3s;
}

.photo-card:hover {
  transform: rotate(var(--rot)) translateY(-8px) scale(1.03);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45);
}

/* Stagger rotations and vertical offsets */
.photo-grid .photo-card:nth-child(1) { --rot: -2.5deg; margin-top: 28px; }
.photo-grid .photo-card:nth-child(2) { --rot: 1.8deg;  margin-top: 0px; }
.photo-grid .photo-card:nth-child(3) { --rot: -1.2deg; margin-top: 40px; }
.photo-grid .photo-card:nth-child(4) { --rot: 2.2deg;  margin-top: 12px; }
.photo-grid .photo-card:nth-child(5) { --rot: -1.8deg; margin-top: 32px; }
.photo-grid .photo-card:nth-child(6) { --rot: 1.4deg;  margin-top: 8px; }

.photo-card__inner {
  position: relative;
  height: 260px;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.photo-grid--interests .photo-card__inner {
  height: 220px;
}

.photo-card.flipped .photo-card__inner {
  transform: rotateY(180deg);
}

.photo-card__front,
.photo-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.photo-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card__back {
  transform: rotateY(180deg);
  background: #f7f6f2;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.photo-card__back--imgbg {
  background-size: cover;
  background-position: center;
  position: relative;
}

.photo-card__back--imgbg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.photo-card__back--imgbg .photo-card__back-title,
.photo-card__back--imgbg .photo-card__back-desc {
  position: relative;
  z-index: 1;
  color: #ffffff !important;
}

.photo-card__back-title {
  font-size: 14px;
  font-weight: 600;
  color: #111111;
  margin: 0;
  line-height: 1.3;
}

.photo-card__back-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.photo-card__back-desc {
  font-size: 12px;
  color: #444444;
  line-height: 1.55;
  margin: 0;
}

.photo-card__caption {
  display: block;
  text-align: center;
  padding: 10px 4px 12px;
  font-size: 12px;
  color: #666666;
  font-style: italic;
  line-height: 1.3;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  padding: 80px 200px;
  border-top: 1px solid #222222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer__tagline {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.footer__link {
  font-size: 14px;
  color: #aaaaaa;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.footer__link:hover {
  color: #ffffff;
}

.footer__copy {
  font-size: 12px;
  color: #555555;
  margin: 0;
  margin-top: 6px;
  text-align: right;
}

[data-theme="light"] .footer { border-top-color: #e0e0e0; }
[data-theme="light"] .footer__tagline { color: #0d3a52; }
[data-theme="light"] .footer__link { color: #888888; }
[data-theme="light"] .footer__link:hover { color: #0d3a52; }
[data-theme="light"] .footer__copy { color: #aaaaaa; }

.footer__emoji { color: #89b4d4; }
[data-theme="light"] .footer__emoji { color: #0d3a52; }

/* ══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE  (max-width: 768px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav ── */
  .nav { padding: 0 16px; }
  .nav__links { gap: 14px; }
  .nav__link { font-size: 12px; }
  .resume-bubbles { display: none; }

  /* ── Hero ── */
  .hero { padding: 100px 24px 60px; }
  .hero__greeting { font-size: clamp(30px, 8vw, 48px); }
  .hero__tagline { font-size: clamp(16px, 4vw, 20px); }

  /* ── Work grid ── */
  .work { padding: 0 24px 60px; }
  .work__grid { grid-template-columns: 1fr; }

  /* ── Footer ── */
  .footer {
    flex-direction: column;
    padding: 48px 24px;
    gap: 24px;
  }
  .footer__links { align-items: flex-start; }
  .footer__copy { text-align: left; }

  /* ── About — Bio ── */
  .about {
    flex-direction: column;
    padding: 80px 24px 60px;
    gap: 36px;
    min-height: auto;
  }
  .about__photo-wrap { align-self: center; }
  .about__photo { width: 220px; }

  /* ── About — Experience ── */
  .about-experience { padding: 0 24px 80px; }
  .about-exp-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* ── About — Leadership / Interests ── */
  .about-shapes { padding: 0 24px 80px; }
  .about-shapes__grid { grid-template-columns: 1fr; max-width: 100%; }
  .about-interests { padding: 0 24px 80px; }
  .about-interests__grid { grid-template-columns: 1fr 1fr; }

  /* ── Polaroid photo cards ── */
  .photo-grid { gap: 14px; }
  .photo-card { width: 140px; }
  .photo-card__inner { height: 200px; }
  .photo-grid--interests .photo-card__inner { height: 170px; }
  .photo-grid .photo-card:nth-child(1) { margin-top: 16px; }
  .photo-grid .photo-card:nth-child(3) { margin-top: 24px; }
  .photo-grid .photo-card:nth-child(5) { margin-top: 16px; }
}

/* ── Hamburger button ──────────────────────────────────────── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #aaaaaa;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ───────────────────────────────────── */
.nav__mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #0a0a0a;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.nav__mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  font-size: 32px;
  font-weight: 500;
  color: #aaaaaa;
  text-decoration: none;
  transition: color 0.2s;
}

.nav__mobile-link:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav__hamburger { display: flex; }
  .nav__links { display: none; }
}
