:root {
  /* Light mode base (easier to design/extend) */
  --bg: #eef1f5;
  --surface: #eef1f5;

  /* Classic soft neumorphism shadow pair (light mode) */
  --shadow-dark: rgba(163, 177, 198, 0.55);
  --shadow-light: rgba(255, 255, 255, 0.9);

  --text: #14161a;
  --muted: rgba(20, 22, 26, 0.62);
  --ring: rgba(20, 22, 26, 0.25);
  --font-adjust-display: 0.52;
  --font-adjust-body: 0.5;

  /* Typography (Apple-y San Francisco system stack) */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui,
    "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    system-ui, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

/* --- Hero --- */
.hero {
  --hero-bg-url: none;
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: max(8vh, 92px) 6vw 8vh;
  overflow: hidden;
  padding-bottom: calc(8vh + 90px);
}

.hero-bg {
  position: fixed;
  inset: 0;
  background-image: var(--hero-bg-url);
  background-size: cover;
  background-position: center;
  z-index: -2;
  transform: scale(1.03);
  filter: grayscale(12%) contrast(1.12) brightness(1.02) saturate(1.08);
}

.hero-image-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(255, 255, 255, 0.14) 0%, rgba(238, 241, 245, 0.78) 68%),
    linear-gradient(to bottom, rgba(238, 241, 245, 0.18), rgba(238, 241, 245, 0.86));
}

.hero-content {
  text-align: center;
  /* Was 18ch (super narrow); give it room so title/subtitle stay as two lines */
  max-width: min(52rem, 92vw);
}

.hero-content h1 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -0.03em;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.03;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  text-wrap: balance;
  font-family: var(--font-display);
  position: relative;
  display: inline-block;
  font-variant-east-asian: proportional-width;
  font-feature-settings: "palt";
  font-size-adjust: var(--font-adjust-display);
}

.hero-content p {
  margin: 16px 0 0;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
  letter-spacing: -0.015em;
  text-wrap: balance;
  font-family: var(--font-sans);
  font-weight: 650;
  min-height: 1.6em; /* prevents vertical jump between language lengths */
  transition: opacity 360ms ease;
  font-variant-east-asian: proportional-width; /* keep CJK punctuation from widening */
  font-feature-settings: "palt";
  font-size-adjust: var(--font-adjust-body);
}

.typewriter-text {
  display: inline-block;
}

.caret {
  position: absolute;
  left: 100%;
  bottom: 0.08em;
  width: 2px;
  height: 1.05em;
  background: currentColor;
  margin-left: 6px;
  animation: blink 1s steps(1) infinite;
  vertical-align: text-bottom;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  animation-play-state: paused;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.fade-out {
  opacity: 0;
}

.fade-in {
  opacity: 1;
}

/* --- Intro section (below hero) --- */
.intro {
  max-width: 1100px;
  margin: 0 auto 18px;
}

.intro-paragraph {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  line-height: 1.65;
  color: rgba(20, 22, 26, 0.74);
  text-align: left;
  font-size-adjust: var(--font-adjust-body);
}

/* --- Neumorphic buttons --- */
.neumo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -0.01em;
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  box-shadow:
    10px 10px 20px var(--shadow-dark),
    -10px -10px 20px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(163, 177, 198, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.neumo-button:hover {
  transform: translateY(-1px);
  box-shadow:
    12px 12px 24px var(--shadow-dark),
    -12px -12px 24px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.74),
    inset -1px -1px 2px rgba(163, 177, 198, 0.16);
}

.neumo-button:active {
  transform: translateY(0);
  box-shadow:
    inset 8px 8px 16px var(--shadow-dark),
    inset -8px -8px 16px var(--shadow-light);
}

.neumo-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.neumo-button-secondary {
  color: rgba(20, 22, 26, 0.84);
  filter: saturate(0.98);
}

/* --- Content blocks (two-column neumorphic cards) --- */
.content {
  position: relative;
  z-index: 5;

  /* Pull the body "surface" up over the hero so the hero feels behind it */
  width: min(1240px, calc(100% - 32px));
  margin: -78px auto 52px;
  padding: 56px clamp(18px, 4vw, 44px) 44px;

  border-radius: 36px;
  background: var(--surface);
  box-shadow:
    18px 18px 36px var(--shadow-dark),
    -18px -18px 36px var(--shadow-light);
}

.content-primary {
  /* Make the surface "peek" without showing text at initial load */
  padding-top: 110px;
}

.content-primary::after {
  content: "↓";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: rgba(20, 22, 26, 0.65);
  font-weight: 720;
  letter-spacing: -0.02em;
  font-size: 0.95rem;
}

.content-secondary {
  margin: 0 auto 72px;
  padding-top: 36px;
}

@media (max-width: 520px) {
  .content {
    width: calc(100% - 22px);
    border-radius: 28px;
    margin-top: -64px;
  }

  .content-primary {
    padding-top: 96px;
  }
}

/* --- Footer links (behind surface) --- */
.behind-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 16px 56px;
}

.behind-footer .neumorphic-circle {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-icon-link {
  overflow: hidden;
}

.footer-icon-image {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.project-hero-compact {
  min-height: auto;
  place-items: stretch;
  padding: 86px 6vw 132px;
  padding-bottom: calc(86px + 132px);
}

.project-hero-panel {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}

.project-page-top {
  margin: -92px auto 52px;
  padding-top: 34px;
}

.project-page-shell {
  padding-bottom: 52px;
}

.project-page-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.project-floating-back,
.creative-floating-back {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 100;
  text-decoration: none;
}

.site-nav-shell {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav-shell.has-back-button {
  left: 78px;
}

.site-nav-trigger {
  position: relative;
  z-index: 1;
  background: rgba(248, 250, 252, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 12px 26px rgba(117, 131, 151, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.site-nav-trigger-lines {
  display: grid;
  gap: 4px;
}

.site-nav-trigger-lines span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.site-nav-panel {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  max-width: min(calc(100vw - 110px), 760px);
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-6px);
  opacity: 0;
  pointer-events: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-nav-panel::-webkit-scrollbar {
  display: none;
}

.site-nav-shell.is-open .site-nav-panel {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.site-nav-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(20, 22, 26, 0.78);
  font-weight: 680;
  letter-spacing: -0.01em;
  background: rgba(248, 250, 252, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 10px 22px rgba(117, 131, 151, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--text);
  transform: translateY(-1px);
  box-shadow:
    0 12px 26px rgba(117, 131, 151, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.site-nav-link[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 10px 22px rgba(117, 131, 151, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.project-kicker,
.project-results-kicker {
  margin: 0 0 8px;
  color: rgba(20, 22, 26, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

.project-page-heading h1,
.project-results-header h2,
.project-gallery-copy h2 {
  margin: 0;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
}

.project-subtitle {
  margin: 12px 0 0;
  color: rgba(20, 22, 26, 0.68);
  max-width: 62ch;
  line-height: 1.6;
}

.project-search-shell,
.project-results-header {
  max-width: 1100px;
  margin: 0 auto;
}

.project-search-shell {
  width: min(920px, 100%);
  max-width: min(920px, 100%);
  justify-self: start;
  margin-top: 8px;
}

.project-search-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.project-search-input {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 16px 22px;
  font: inherit;
  color: var(--text);
  background: linear-gradient(145deg, #e1e6ee, #f6f8fb);
  box-shadow:
    inset 8px 8px 16px var(--shadow-dark),
    inset -8px -8px 16px var(--shadow-light);
}

.project-search-button {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 0;
  color: var(--text);
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  box-shadow:
    9px 9px 18px var(--shadow-dark),
    -9px -9px 18px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(163, 177, 198, 0.18);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.project-search-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.project-suggestion-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.project-suggestion-pill {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  color: rgba(20, 22, 26, 0.78);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    8px 8px 16px rgba(163, 177, 198, 0.26),
    -8px -8px 16px rgba(255, 255, 255, 0.75);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
  white-space: nowrap;
}

.project-suggestion-pill:hover {
  transform: translateY(-1px);
  color: var(--text);
  box-shadow:
    10px 10px 18px rgba(163, 177, 198, 0.28),
    -10px -10px 18px rgba(255, 255, 255, 0.82);
}

.project-suggestion-pill:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.project-search-input:focus {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.project-results-header {
  margin-top: 30px;
  margin-bottom: 22px;
}

.project-results-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.project-results-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-results-filter {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: rgba(20, 22, 26, 0.76);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    8px 8px 16px rgba(163, 177, 198, 0.24),
    -8px -8px 16px rgba(255, 255, 255, 0.75);
  text-transform: none;
}

.project-results-header .project-results-kicker {
  margin: 0;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(20, 22, 26, 0.78);
  font-weight: 720;
}

.project-gallery-card {
  max-width: 1100px;
  margin: 34px auto 0;
  padding: 24px;
}

.project-gallery-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.project-view-all-button {
  min-width: 160px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 680;
  color: rgba(20, 22, 26, 0.78);
  background: linear-gradient(145deg, #e1e6ee, #f6f8fb);
  box-shadow:
    inset 8px 8px 16px var(--shadow-dark),
    inset -8px -8px 16px var(--shadow-light);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.project-view-all-button:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.project-view-all-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.creative-gallery-card {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px;
}

.creative-gallery-copy {
  margin-bottom: 18px;
}

.creative-gallery-hint {
  margin: 10px 0 0;
  color: rgba(20, 22, 26, 0.6);
  line-height: 1.6;
}

.creative-slider-shell {
  position: relative;
  perspective: 1800px;
  padding: 8px 52px 4px;
}

.creative-slider {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: none;
  padding: 24px calc(50% - 210px) 40px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.creative-slider::-webkit-scrollbar {
  display: none;
}

.creative-slider-arrow {
  position: absolute;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  transform: translateY(-50%);
  background: transparent;
  color: rgba(20, 22, 26, 0.62);
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease;
}

.creative-slider-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(20, 22, 26, 0.12);
  color: rgba(20, 22, 26, 0.84);
}

.creative-slider-arrow-prev {
  left: 0;
}

.creative-slider-arrow-next {
  right: 0;
}

.creative-slider-track {
  display: flex;
  gap: 26px;
  align-items: stretch;
  width: max-content;
}

.creative-slider-card {
  --creative-offset: 0;
  --creative-depth: 1;
  width: min(420px, 84vw);
  flex: 0 0 auto;
  border-radius: 28px;
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  box-shadow:
    16px 16px 30px rgba(163, 177, 198, 0.3),
    -16px -16px 30px rgba(255, 255, 255, 0.82);
  overflow: hidden;
  transform:
    translateY(calc((1 - var(--creative-depth)) * 18px))
    rotateY(calc(var(--creative-offset) * -24deg))
    scale(calc(0.96 + (var(--creative-depth) * 0.04)));
  transition: transform 220ms ease, box-shadow 220ms ease;
  backface-visibility: hidden;
}

.creative-slider-card:hover {
  box-shadow:
    20px 20px 34px rgba(163, 177, 198, 0.34),
    -20px -20px 34px rgba(255, 255, 255, 0.86);
}

.creative-card-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background:
    radial-gradient(700px 220px at 78% 18%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0) 56%),
    linear-gradient(145deg, rgba(198, 221, 243, 0.85), rgba(245, 248, 252, 0.96));
  box-shadow:
    inset 8px 8px 16px rgba(163, 177, 198, 0.18),
    inset -8px -8px 16px rgba(255, 255, 255, 0.45);
}

.creative-card-image,
.creative-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-media-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: inherit;
  overflow: hidden;
}

.project-media-link img {
  transition: transform 180ms ease, filter 180ms ease;
}

.project-media-link:hover img {
  transform: scale(1.02);
  filter: saturate(1.04);
}

.creative-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 22px 22px 24px;
}

.creative-card-body h2 {
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  line-height: 1.06;
}

.creative-tag-list {
  margin-top: 0;
  margin-bottom: 22px;
}

.creative-tag-list .pill {
  color: rgba(20, 22, 26, 0.78);
}

.creative-card-body p {
  margin: 0;
  color: rgba(20, 22, 26, 0.72);
  line-height: 1.65;
}

.creative-card-body .project-action-row {
  margin-top: 24px;
}

.about-card {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.about-copy {
  padding: 8px 4px;
}

.about-copy h2 {
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.about-copy p {
  margin: 0 0 16px;
  color: rgba(20, 22, 26, 0.74);
  line-height: 1.7;
}

.about-portrait-shell {
  display: grid;
  width: 100%;
  place-items: center;
}

.about-portrait-image {
  width: min(100%, 320px);
  max-height: 480px;
  object-fit: contain;
  object-position: bottom center;
  -webkit-mask-image:
    linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%),
    radial-gradient(42% 32% at 10% 100%, transparent 0%, #000 62%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, #000 0%, #000 75%, transparent 100%),
    radial-gradient(42% 32% at 10% 100%, transparent 0%, #000 62%);
  mask-composite: intersect;
  filter:
    drop-shadow(0 0 1px rgba(238, 241, 245, 0.95))
    drop-shadow(0 0 2px rgba(238, 241, 245, 0.88))
    drop-shadow(0 18px 30px rgba(20, 22, 26, 0.16));
}

.project-gallery-copy {
  margin-bottom: 16px;
}

.project-slider-window {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 12px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}

.project-slider-window::-webkit-scrollbar {
  display: none;
}

.project-slider-window.is-dragging {
  cursor: grabbing;
}

.project-slider-track {
  display: flex;
  gap: 18px;
  width: max-content;
}

.project-slider-card {
  width: min(280px, 76vw);
  flex: 0 0 auto;
  border-radius: 24px;
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  box-shadow:
    14px 14px 28px var(--shadow-dark),
    -14px -14px 28px var(--shadow-light);
  overflow: hidden;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.project-slider-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow:
    18px 18px 34px rgba(163, 177, 198, 0.34),
    -18px -18px 34px rgba(255, 255, 255, 0.84);
  filter: saturate(1.04);
}

.project-slider-card:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 4px;
}

.project-slider-card:hover .project-slider-body h3 {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.14em;
}

.project-slider-image,
.project-slider-card .media-placeholder {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.project-slider-card .media-placeholder {
  border-radius: 0;
  box-shadow: none;
}

.project-slider-body {
  padding: 18px;
}

.project-slider-body h3 {
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.project-slider-tags {
  margin: 0;
  color: rgba(20, 22, 26, 0.6);
  line-height: 1.5;
}

.project-blocks {
  margin-top: 0;
}

.project-card .card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.project-card .card-text p {
  max-width: 58ch;
}

.coursework-card .card-text p {
  max-width: none;
}

.project-tag-list {
  margin-top: 2px;
  margin-bottom: 36px;
}

.project-tag-list li {
  display: contents;
}

.project-tag-button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  color: rgba(20, 22, 26, 0.78);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.project-tag-button:hover {
  transform: translateY(-1px);
  color: var(--text);
  box-shadow:
    10px 10px 18px rgba(163, 177, 198, 0.28),
    -10px -10px 18px rgba(255, 255, 255, 0.82);
}

.project-tag-button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.project-card .project-tag-list + p {
  margin-top: 20px;
}

.project-action-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.project-action-row[data-count="1"] {
  justify-content: center;
}

.project-action-row[data-count="1"] .neumo-button {
  margin-top: 0;
  flex: 0 1 calc(50% - 6px);
  max-width: 320px;
}

.project-action-row[data-count="2"] .neumo-button {
  flex: 1 1 0;
  text-align: center;
}

.project-action-row .neumo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
}

.project-action-icon {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex: 0 0 auto;
}

.project-action-icon-svg {
  display: block;
}

.project-empty-state .card-text {
  padding: 28px;
}

.project-image-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 5 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    inset 9px 9px 18px var(--shadow-dark),
    inset -9px -9px 18px var(--shadow-light);
  background: linear-gradient(145deg, rgba(210, 222, 240, 0.9), rgba(245, 248, 252, 0.95));
}

.project-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.project-placeholder {
  background:
    radial-gradient(700px 240px at 75% 18%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, rgba(198, 221, 243, 0.85), rgba(245, 248, 252, 0.96));
}

.project-card .card-media .project-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 5 / 3;
  height: auto;
  border-radius: 20px;
  box-shadow:
    inset 9px 9px 18px var(--shadow-dark),
    inset -9px -9px 18px var(--shadow-light);
}

@media (max-width: 860px) {
  .project-page-heading {
    grid-template-columns: 1fr;
  }

  .project-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .project-hero-compact {
    padding-top: 82px;
    padding-bottom: calc(82px + 110px);
  }

  .project-page-top {
    margin-top: -84px;
    padding-top: 26px;
  }

  .project-search-shell {
    max-width: 100%;
  }

  .project-search-row {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .project-search-button {
    width: 48px;
    height: 48px;
  }

  .project-gallery-card {
    padding: 18px;
  }

  .project-slider-card {
    width: min(248px, 82vw);
  }

  .site-nav-shell.has-back-button {
    left: 72px;
  }

  .site-nav-panel {
    max-width: calc(100vw - 96px);
  }

  .creative-gallery-card {
    padding: 18px;
  }

  .creative-slider {
    padding: 18px 18px 32px;
  }

  .creative-slider-card {
    width: min(340px, 88vw);
  }

  .creative-slider-shell {
    padding-inline: 42px;
  }

  .creative-slider-arrow {
    width: 34px;
    height: 34px;
  }
}

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

.neumo-card {
  border-radius: 28px;
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  box-shadow:
    14px 14px 28px var(--shadow-dark),
    -14px -14px 28px var(--shadow-light);
  overflow: hidden;
}

.card-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  align-items: stretch;
}

.card-text {
  padding: 26px 26px 24px;
  text-align: left;
}

.card-text h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-size-adjust: var(--font-adjust-display);
}

.card-text p {
  margin: 0 0 16px;
  color: rgba(20, 22, 26, 0.72);
  line-height: 1.55;
  font-size-adjust: var(--font-adjust-body);
}

.card-media {
  padding: 18px;
  display: grid;
  place-items: center;
}

.card-media-image {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  box-shadow:
    inset 9px 9px 18px var(--shadow-dark),
    inset -9px -9px 18px var(--shadow-light);
}

.media-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: rgba(20, 22, 26, 0.55);
  font-weight: 650;
  letter-spacing: -0.01em;
  background:
    radial-gradient(800px 240px at 20% 20%, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, rgba(210, 222, 240, 0.9), rgba(245, 248, 252, 0.95));
  box-shadow:
    inset 9px 9px 18px var(--shadow-dark),
    inset -9px -9px 18px var(--shadow-light);
}

.media-placeholder-alt {
  background:
    radial-gradient(700px 240px at 70% 15%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 55%),
    linear-gradient(145deg, rgba(232, 216, 255, 0.7), rgba(245, 248, 252, 0.96));
}

.media-placeholder span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    6px 6px 14px rgba(163, 177, 198, 0.28),
    -6px -6px 14px rgba(255, 255, 255, 0.8);
}

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

  .card-media {
    padding-top: 0;
  }

  .media-placeholder {
    height: 200px;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.skills-col {
  padding: 26px 26px 24px;
  text-align: left;
}

.skills-col + .skills-col {
  border-left: 1px solid rgba(20, 22, 26, 0.06);
}

.skills-group + .skills-group {
  margin-top: 14px;
}

.skills-note {
  margin: 8px 0 14px;
  color: rgba(20, 22, 26, 0.62);
  line-height: 1.5;
  font-size-adjust: var(--font-adjust-body);
}

.skill-pill {
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.skill-pill-link {
  cursor: pointer;
}

.skill-pill-link:hover {
  transform: translateY(-1px);
  color: var(--text);
  box-shadow:
    10px 10px 18px rgba(163, 177, 198, 0.28),
    -10px -10px 18px rgba(255, 255, 255, 0.82);
}

.skill-pill-link:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.skill-pill-inset {
  background: linear-gradient(145deg, #e1e6ee, #f6f8fb);
  box-shadow:
    inset 8px 8px 16px rgba(163, 177, 198, 0.24),
    inset -8px -8px 16px rgba(255, 255, 255, 0.78);
  color: rgba(20, 22, 26, 0.66);
}

.pill.skill-pill-inset {
  box-shadow:
    inset 8px 8px 16px rgba(163, 177, 198, 0.24),
    inset -8px -8px 16px rgba(255, 255, 255, 0.78);
}

.skill-pill:not(.skill-pill-link) {
  cursor: default;
  transition: none;
}

.skill-pill:not(.skill-pill-link):hover {
  transform: none;
  color: rgba(20, 22, 26, 0.78);
  box-shadow:
    inset 8px 8px 16px rgba(163, 177, 198, 0.24),
    inset -8px -8px 16px rgba(255, 255, 255, 0.78);
}

.pill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 650;
  color: rgba(20, 22, 26, 0.78);
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    8px 8px 16px rgba(163, 177, 198, 0.26),
    -8px -8px 16px rgba(255, 255, 255, 0.75);
  font-size-adjust: var(--font-adjust-body);
}

.edu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.edu-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
}

.edu-icon {
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  box-shadow:
    8px 8px 16px var(--shadow-dark),
    -8px -8px 16px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(163, 177, 198, 0.16);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
  padding: 0;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.edu-icon:hover {
  transform: translateY(-1px);
  box-shadow:
    10px 10px 18px var(--shadow-dark),
    -10px -10px 18px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.72),
    inset -1px -1px 2px rgba(163, 177, 198, 0.16);
}

.edu-icon:active {
  transform: translateY(0);
  box-shadow:
    inset 7px 7px 14px var(--shadow-dark),
    inset -7px -7px 14px var(--shadow-light);
}

.edu-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

.edu-title {
  font-weight: 750;
  letter-spacing: -0.01em;
  font-size-adjust: var(--font-adjust-display);
}

.edu-meta {
  margin-top: 2px;
  color: rgba(20, 22, 26, 0.62);
  font-size-adjust: var(--font-adjust-body);
}

.edu-courses-title {
  margin: 18px 0 10px;
  font-size: 1rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  color: rgba(20, 22, 26, 0.82);
  font-size-adjust: var(--font-adjust-display);
}

.course-list {
  gap: 8px;
}

.coursework-code {
  margin: 0 0 12px;
  color: rgba(20, 22, 26, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

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

  .skills-col + .skills-col {
    border-left: 0;
    border-top: 1px solid rgba(20, 22, 26, 0.06);
  }
}

/* --- Language picker --- */
.lang-picker {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lang-picker-trigger {
  display: none !important;
}

.lang-picker-panel {
  display: flex;
  gap: 12px;
}

.neumorphic-circle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 0;
  /* Slight gradient removes the "cylinder" look and feels more like a soft pill */
  background: linear-gradient(145deg, #f6f8fb, #e1e6ee);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;

  /* Outer + tiny inner highlights = smoother “raised” shape */
  box-shadow:
    9px 9px 18px var(--shadow-dark),
    -9px -9px 18px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.7),
    inset -1px -1px 2px rgba(163, 177, 198, 0.18);
  display: grid;
  place-items: center;
  transition: transform 140ms ease, box-shadow 140ms ease, color 140ms ease;
}

.neumorphic-circle:hover {
  color: var(--text);
  box-shadow:
    11px 11px 22px var(--shadow-dark),
    -11px -11px 22px var(--shadow-light),
    inset 1px 1px 2px rgba(255, 255, 255, 0.75),
    inset -1px -1px 2px rgba(163, 177, 198, 0.18);
}

.neumorphic-circle:active {
  transform: scale(0.96);
  background: linear-gradient(145deg, #e1e6ee, #f6f8fb);
  box-shadow:
    inset 7px 7px 14px var(--shadow-dark),
    inset -7px -7px 14px var(--shadow-light);
  color: var(--text);
}

.neumorphic-circle[aria-pressed="true"] {
  color: var(--text);
  background: linear-gradient(145deg, #e1e6ee, #f6f8fb);
  box-shadow:
    inset 7px 7px 14px var(--shadow-dark),
    inset -7px -7px 14px var(--shadow-light);
}

.neumorphic-circle:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .neumorphic-circle {
    transition: none;
  }
}

@media (max-width: 860px) {
  .site-nav-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-width: 220px;
    max-width: min(calc(100vw - 36px), 280px);
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(246, 248, 251, 0.96), rgba(225, 230, 238, 0.96));
    box-shadow:
      16px 16px 32px rgba(163, 177, 198, 0.28),
      -16px -16px 32px rgba(255, 255, 255, 0.84);
    overflow: visible;
  }

  .site-nav-link {
    width: 100%;
    justify-content: center;
    padding-inline: 14px;
    font-size: 0.94rem;
  }

  .lang-picker {
    flex-direction: column;
    align-items: flex-end;
  }

  .lang-picker-trigger {
    display: grid !important;
  }

  .lang-picker-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(246, 248, 251, 0.96), rgba(225, 230, 238, 0.96));
    box-shadow:
      16px 16px 32px rgba(163, 177, 198, 0.28),
      -16px -16px 32px rgba(255, 255, 255, 0.84);
  }

  .lang-picker:not(.is-open) .lang-picker-panel {
    display: none;
  }
}

/* --- Placeholder for your future draggable schematic --- */
#viewport {
  height: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}

#map {
  display: none;
}

@media (max-width: 640px) {
  .project-search-shell {
    width: 100%;
    max-width: 100%;
  }

  .project-search-label {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .project-search-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .project-search-input {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .project-search-button {
    width: 100%;
    height: 46px;
    border-radius: 999px;
  }

  .project-suggestion-row {
    gap: 8px;
    flex-wrap: wrap;
    overflow: visible;
    padding-bottom: 0;
    align-items: flex-start;
  }

  .project-suggestion-row::-webkit-scrollbar {
    display: none;
  }

  .project-suggestion-pill {
    max-width: 100%;
    font-size: 0.88rem;
    padding: 8px 12px;
    white-space: normal;
    text-align: center;
  }

}
