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

/* One content rail (~76rem max) for About / Experience / Projects; I dropped a ch cap because it squeezed About. */
:root {
  --vault-content-rail: min(76rem, 92vw);
}

/* Self-hosted Latin WOFF2; no remote font CSS so first paint stays stable. */
@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cinzel-decorative-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/cormorant-garamond-400.woff2") format("woff2");
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700.woff2") format("woff2");
}

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

body {
  /* Blue stack: repeated +10% on B from base violets */
  background: radial-gradient(ellipse at center, #060315 0%, #02020c 100%);
  color: #ddd;
  font-family: "Cormorant Garamond", serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Fills space below the header so the language switcher can sit at the bottom edge */
main.transition-main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: visible;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  /* Soft blobs only — no repeating radial (avoids visible rings on the viewport) */
  background: radial-gradient(
      circle at 30% 60%,
      rgba(62, 58, 160, 0.114) 0,
      transparent 70%
    ),
    radial-gradient(
      circle at 70% 30%,
      rgba(90, 84, 216, 0.097) 0,
      transparent 80%
    );
  opacity: 0.152;
  mix-blend-mode: lighten;
}

canvas#curseAura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: lighten;
}

/* Full rounded card + space below before page end (all pages, including Projects & Experience) */
.vault-box {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 1.5rem;
  box-shadow: 0 0 40px rgba(120, 70, 200, 0.4);
  color: #dad3ff;
  text-align: center;
  max-width: 700px;
  margin: 3rem auto calc(2.58rem + env(safe-area-inset-bottom, 0px)) auto;
  padding: 5rem 2.5rem 4.5rem 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  position: relative;
}

.vault-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.6rem;
  color: #dad3ff;
  margin-top: -0.35rem;
  margin-bottom: 2rem;
  animation: vaultBiolumePulse 3.2s ease-in-out infinite;
  transition: all 0.2s ease-in-out;
}

.vault-intro {
  font-size: 1.45rem;
  line-height: 1.65;
}

.vault-intro + .footer-box {
  margin-top: 4rem;
}

.vault-title:hover {
  color: #ffffff;
  text-shadow: 0 0 36px rgba(250, 230, 255, 0.95),
    0 0 56px rgba(210, 160, 255, 0.8);
}

/* Index home: Cinzel like .vault-title / .site-title; glow = vault biolume + About link white halo (no link hover) */
@keyframes homeWandererCountGlow {
  0%,
  100% {
    color: #dad3ff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.22),
      0 0 18px rgba(235, 215, 255, 0.18),
      0 0 28px rgba(180, 140, 255, 0.14),
      0 0 12px rgba(192, 160, 255, 0.5),
      0 0 22px rgba(160, 120, 255, 0.3);
  }
  50% {
    color: #eee3ff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.38),
      0 0 26px rgba(245, 228, 255, 0.28),
      0 0 40px rgba(200, 160, 255, 0.22),
      0 0 20px rgba(235, 205, 255, 0.7),
      0 0 36px rgba(190, 140, 255, 0.4);
  }
}

.vault-box:has(#home-wanderer-count) .vault-title {
  margin-bottom: 0.32rem;
}

.home-wanderer-count {
  margin: 0 0 1.25rem 0;
  padding: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.27rem;
  line-height: 1.4;
  font-weight: 700;
  color: #dad3ff;
  text-align: center;
  text-decoration: none;
  background-color: transparent;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  transition: color 0.2s ease, text-shadow 0.2s ease;
  animation: homeWandererCountGlow 3.2s ease-in-out infinite;
}

.home-wanderer-count__prefix,
.home-wanderer-count__num {
  font-weight: inherit;
  font-family: inherit;
}

.home-wanderer-count--fallback {
  animation: homeWandererCountGlow 3.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .home-wanderer-count,
  .home-wanderer-count--fallback {
    animation: none;
    color: #dad3ff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2),
      0 0 18px rgba(235, 215, 255, 0.16),
      0 0 12px rgba(192, 160, 255, 0.45),
      0 0 22px rgba(160, 120, 255, 0.28);
  }
}

.vault-deco-top,
.vault-deco-bottom {
  width: 100%;
  max-width: 620px;
  display: block;
  margin: 1rem auto;
  opacity: 0.7;
  pointer-events: none;
}

@keyframes vaultBiolumePulse {
  0%,
  100% {
    color: #dad3ff;
    text-shadow: 0 0 12px rgba(192, 160, 255, 0.5),
      0 0 22px rgba(160, 120, 255, 0.3);
  }
  50% {
    color: #eee3ff;
    text-shadow: 0 0 20px rgba(235, 205, 255, 0.7),
      0 0 36px rgba(190, 140, 255, 0.4);
  }
}

/* Same rhythm and palette as .site-title / vaultBiolumePulse, for social icon frames */
@keyframes footerSocialVaultPulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(192, 160, 255, 0.22),
      0 0 22px rgba(160, 120, 255, 0.16);
  }
  50% {
    box-shadow: 0 0 18px rgba(235, 205, 255, 0.27),
      0 0 28px rgba(190, 140, 255, 0.2);
  }
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}

.site-branding {
  margin-bottom: 0.2rem !important;
  text-align: center;
}

.site-title {
  font-family: "Cinzel Decorative", serif;
  font-size: 6.1rem;
  color: #dad3ff;
  text-shadow: 0 0 12px rgba(192, 160, 255, 0.5),
    0 0 22px rgba(160, 120, 255, 0.3);
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin: 0.06rem 0 0.4rem 0 !important;
  text-align: center;
  animation: vaultBiolumePulse 3.2s ease-in-out infinite;
  transition: all 0.2s ease-in-out;
}
.site-title:hover,
.site-title a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 36px rgba(250, 230, 255, 0.95),
    0 0 56px rgba(210, 160, 255, 0.8);
  transition: all 0.2s ease-in-out;
}

.site-title a {
  text-decoration: none;
  color: inherit;
}

.vault-sub {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: #aaa;
  margin-top: 0.2rem;
  margin-bottom: 1.4rem;
  text-align: center;
  letter-spacing: 0.02em;
}

.primary-navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.primary-navigation a,
.primary-menu-container a {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: #fff !important;
  text-decoration: none;
  position: relative;
  padding: 10px 12px;
  margin: 0 0.2em;
  transition: all 0.3s ease;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-stretch: expanded;
  font-variant-ligatures: none;
}

.primary-navigation a::after,
.primary-menu-container a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 0%;
  height: 3px;
  background: #b99eff;
  box-shadow: 0 0 6px #b99eff;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-navigation a:hover,
.primary-menu-container a:hover {
  color: #f0e6ff !important;
  text-shadow: 0 0 6px rgba(240, 230, 255, 0.4);
}

.primary-navigation a:hover::after,
.primary-menu-container a:hover::after {
  width: 100%;
}

.primary-navigation a[aria-current="page"],
.primary-menu-container a[aria-current="page"] {
  color: #f0e6ff !important;
  text-shadow: 0 0 8px rgba(200, 150, 255, 0.45);
}

.primary-navigation a[aria-current="page"]::after,
.primary-menu-container a[aria-current="page"]::after {
  width: 100%;
}

/* -----------------------------------------------------------------
   Mobile (≤768px / ≤560px; desktop unchanged above 768px):
   I cap the header title and subtitle sitewide, stack the main nav vertically,
   then tune the index vault and inner-page wide/contact vaults so everything
   feels consistent when I move between home and subpages.
   ----------------------------------------------------------------- */

/* ≤768px: safe-area header padding, branding rail, title, subtitle, vertical nav */
@media (max-width: 768px) {
  .site-header {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  .site-branding {
    max-width: 100%;
    width: 100%;
    padding: 0 0.5rem;
    box-sizing: border-box;
  }

  .site-title {
    font-size: clamp(2.9rem, 6.62vw + 0.42rem, 3.68rem);
    line-height: 1.08;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0.35rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    letter-spacing: 0.055em;
  }

  .vault-sub {
    font-size: 1.48rem;
    line-height: 1.34;
    margin-top: 0.12rem;
    margin-bottom: 0.52rem;
    max-width: 100%;
    padding: 0 0.45rem;
    box-sizing: border-box;
  }

  .primary-navigation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.16rem;
    width: 100%;
    max-width: min(22rem, calc(100vw - 1.25rem));
    margin-top: 0.28rem;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: nowrap;
  }

  .primary-navigation a {
    font-size: 2.55rem;
    padding: 0.4rem 1rem;
    margin: 0;
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
    line-height: 1.12;
    min-height: 2.75rem;
  }
}

/* ≤560px: slightly tighter title/subtitle and nav for the narrowest phones */
@media (max-width: 560px) {
  .site-title {
    font-size: clamp(2.62rem, 6vw + 0.36rem, 3.34rem);
    letter-spacing: 0.048em;
  }

  .vault-sub {
    font-size: 1.36rem;
    margin-bottom: 0.48rem;
  }

  .primary-navigation {
    max-width: min(100%, calc(100vw - 1.1rem));
    margin-top: 0.24rem;
    gap: 0.14rem;
  }

  .primary-navigation a {
    font-size: 2.4rem;
    padding: 0.38rem 0.85rem;
    line-height: 1.1;
    min-height: 2.75rem;
  }
}

/* Homepage only ≤768px: index vault card (welcome, guest line, intro rhythm) */
@media (max-width: 768px) {
  body.page-home main.transition-main > .vault-box {
    margin-top: 0.88rem;
    margin-bottom: calc(2.2rem + env(safe-area-inset-bottom, 0px));
    padding: 4.35rem 1.55rem 3.25rem;
    max-width: min(700px, calc(100% - 0.75rem));
    margin-left: auto;
    margin-right: auto;
    font-size: 1.06rem;
    line-height: 1.64;
    box-sizing: border-box;
  }

  /* I keep the welcome headline clearly stronger than the intro paragraph */
  body.page-home main.transition-main > .vault-box > .vault-title {
    font-size: clamp(2.1rem, 6.02vw + 0.39rem, 2.88rem);
    line-height: 1.06;
    max-width: 100%;
    overflow-wrap: break-word;
    padding: 0 0.3rem;
    box-sizing: border-box;
  }

  body.page-home .home-wanderer-count {
    font-size: 1.16rem;
    line-height: 1.34;
    margin-bottom: 1.15rem;
  }

  body.page-home .vault-intro + .footer-box {
    margin-top: 3.15rem;
  }
}

/* Homepage only ≤560px: same vault tuning, narrower padding */
@media (max-width: 560px) {
  body.page-home main.transition-main > .vault-box {
    margin-top: 0.68rem;
    margin-bottom: calc(1.95rem + env(safe-area-inset-bottom, 0px));
    padding: 3.5rem 1.05rem 2.55rem;
    max-width: min(700px, calc(100% - 0.5rem));
    margin-left: auto;
    margin-right: auto;
    font-size: 1.04rem;
    line-height: 1.6;
    box-sizing: border-box;
  }

  body.page-home main.transition-main > .vault-box > .vault-title {
    font-size: clamp(1.88rem, 5.42vw + 0.29rem, 2.58rem);
    line-height: 1.05;
  }

  body.page-home .home-wanderer-count {
    font-size: 1.08rem;
    line-height: 1.32;
    margin-bottom: 1.05rem;
  }

  body.page-home .vault-intro + .footer-box {
    margin-top: 2.8rem;
  }
}

/* Index intro: I match inner-page body copy size and cap line length in the vault */
body.page-home main.transition-main > .vault-box > p.vault-intro {
  max-width: min(38rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

/* Inner pages ≤768px / ≤560px: I align wide/contact vault margin and padding with index */
@media (max-width: 768px) {
  main.transition-main .vault-box.vault-box--wide,
  main.transition-main .vault-box.vault-box--contact {
    margin-top: 0.9rem;
    margin-bottom: calc(2.05rem + env(safe-area-inset-bottom, 0px));
    padding-top: 2.65rem;
    padding-bottom: 2.45rem;
  }

  .vault-box.vault-box--wide .vault-title,
  .vault-box.vault-box--contact .vault-title {
    margin-bottom: 1.12rem;
  }
}

@media (max-width: 560px) {
  main.transition-main .vault-box.vault-box--wide,
  main.transition-main .vault-box.vault-box--contact {
    margin-top: 0.76rem;
    margin-bottom: calc(1.88rem + env(safe-area-inset-bottom, 0px));
    padding-top: 2.35rem;
    padding-bottom: 2.15rem;
  }

  .vault-box.vault-box--wide .vault-title,
  .vault-box.vault-box--contact .vault-title {
    margin-bottom: 1rem;
  }
}

.custom-logo-link {
  display: inline-block;
  line-height: 0;
}

.custom-logo {
  width: 110px;
  filter: drop-shadow(0 0 4px #4b3b6b) drop-shadow(0 0 10px #6959a6)
    drop-shadow(0 0 18px #8573c3);
  transition: transform 0.3s ease, filter 0.3s ease;
}
.custom-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 6px #5d4c88) drop-shadow(0 0 14px #7a69c1)
    drop-shadow(0 0 26px #a48fee);
}

.entry-content {
  background: linear-gradient(
    180deg,
    rgba(5, 5, 10, 0.85) 0%,
    rgba(10, 0, 20, 0.75) 100%
  );
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 0 40px rgba(120, 70, 200, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #f3f3f3;
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
  color: #c5a7ff;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(150, 100, 255, 0.4);
  margin-bottom: 1.5rem;
}

.entry-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #dddddd;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

.entry-content strong {
  color: #e6d1ff;
  font-weight: 700;
  text-shadow: 0 0 6px rgba(180, 120, 255, 0.3);
}

.entry-content p:hover,
.entry-content strong:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(200, 150, 255, 0.7);
  transition: all 0.2s ease;
}

.vault-glow {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 2.5rem;
  margin: 2rem auto;
  border-radius: 24px;
  max-width: 720px;
  color: #e0ccff;
  box-shadow: 0 0 20px rgba(147, 100, 255, 0.3);
  text-shadow: 0 0 2px #8a5cff;
  transition: box-shadow 0.3s ease;
  text-align: center;
}
.vault-glow:hover {
  box-shadow: 0 0 28px rgba(186, 140, 255, 0.4);
}

.vault-glow h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #dad3ff;
}

.vault-glow p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #ddd;
}

.glyph-img {
  display: block;
  max-width: 150px;
  margin: 1rem auto 0 auto;
  filter: drop-shadow(0 0 6px #4b3b6b);
}

.vault-footer {
  background: rgba(0, 0, 0, 0.35);
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(140, 100, 220, 0.3);
  font-size: 1rem;
  color: #e8dfff;
}

.footer-box {
  /* One size for social icons + Zoom chip (wide PNGs need more max-width or height collapses below this). */
  --footer-chip-img-height: 3.125rem;
  --footer-chip-img-max-w: min(252px, 100%);
  background: rgba(0, 0, 0, 0.65);
  padding: 1.2rem 2rem;
  border-radius: 16px;
  color: #ccc;
  margin-top: 2.5rem;
  box-shadow: 0 0 14px rgba(192, 160, 255, 0.22),
    0 0 22px rgba(160, 120, 255, 0.16);
  font-size: 0.95rem;
  text-align: center;
  animation: footerSocialVaultPulse 3.2s ease-in-out infinite;
  transition: box-shadow 0.2s ease-in-out;
}

.footer-box:hover,
.footer-box:focus-within {
  animation: none;
  box-shadow: 0 0 16px rgba(120, 70, 200, 0.52),
    0 0 28px rgba(95, 55, 175, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .footer-box {
    animation: none;
    box-shadow: 0 0 20px rgba(140, 110, 200, 0.25);
  }

  .footer-box:hover,
  .footer-box:focus-within {
    box-shadow: 0 0 14px rgba(120, 70, 200, 0.42);
  }
}

.footer-box + .footer-box {
  margin-top: 1.25rem;
}

.footer-social-link {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
}

.footer-social-link:focus-visible {
  outline: 2px solid rgba(250, 230, 255, 0.95);
  outline-offset: 6px;
}

.footer-social-img,
.footer-zoom-img {
  display: block;
  height: var(--footer-chip-img-height);
  width: auto;
  max-width: var(--footer-chip-img-max-w);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.footer-social-img {
  filter: invert(1);
}

/* Zoom banner PNG: hair larger than social icons so small type stays readable */
.footer-zoom-img {
  height: calc(var(--footer-chip-img-height) + 0.15rem);
  max-width: min(278px, 100%);
}

#blackout-overlay,
#image-lightbox-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Welcome blackout: no fade-in — full black on first paint. Updates lightbox keeps a soft open. */
#image-lightbox-overlay {
  animation: fadeIn 0.8s ease-out;
}

#image-lightbox-overlay[hidden] {
  display: none !important;
}

/* `[hidden]` alone loses to `#blackout-overlay { display: flex }` specificity — force off-screen on inner pages until JS removes the node. */
#blackout-overlay[hidden] {
  display: none !important;
}

.blackout-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  padding: 2.25rem 3rem;
  border-radius: 1rem;
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(255, 255, 255, 0.03);
  color: #fff !important;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  text-align: center;
  max-width: min(600px, 92vw);
  width: fit-content;
  animation: vaultBiolumePulse 3.2s ease-in-out infinite;
}

#blackout-overlay h2 {
  font-family: "Cinzel Decorative", serif;
  font-size: 2.6rem;
  margin: 0;
  line-height: 1.15;
  color: #fff !important;
}

#blackout-overlay p {
  color: #fff !important;
}

/* Welcome blackout ≤768px: I use a safe default h2 size; index gets a larger h2 via body.page-home */
@media (max-width: 768px) {
  #blackout-overlay .blackout-box {
    padding: 2rem 1.4rem;
    max-width: min(600px, calc(100vw - 1.5rem));
    width: 100%;
    box-sizing: border-box;
  }

  #blackout-overlay h2 {
    font-size: clamp(1.68rem, 5vw + 0.45rem, 2.35rem);
    line-height: 1.08;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    padding: 0 0.2rem;
    box-sizing: border-box;
  }

  /* Index: .blackout-title-part spans stay inline above 768px; here I stack them on two lines */
  #blackout-overlay h2 .blackout-title-part {
    display: block;
  }

  body.page-home #blackout-overlay .blackout-box {
    padding: 2.15rem 1.2rem;
  }

  body.page-home #blackout-overlay h2 {
    font-size: clamp(2.58rem, 8.2vw + 0.5rem, 3.48rem);
    line-height: 1.05;
  }
}

@media (max-width: 560px) {
  #blackout-overlay .blackout-box {
    padding: 1.65rem 1.05rem;
    max-width: calc(100vw - 1.25rem);
  }

  #blackout-overlay h2 {
    font-size: clamp(1.48rem, 4.5vw + 0.38rem, 2.05rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
  }

  body.page-home #blackout-overlay .blackout-box {
    padding: 1.75rem 0.9rem;
  }

  body.page-home #blackout-overlay h2 {
    font-size: clamp(2.32rem, 7.25vw + 0.44rem, 3.08rem);
    line-height: 1.03;
  }
}

/* Updates: zoom excerpts — same blackout + vault glow frame as welcome overlay */
.image-lightbox__panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  background: #000;
  padding: 0.55rem 0.65rem 0.7rem;
  border-radius: 1rem;
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(255, 255, 255, 0.03);
  width: min(96vw, 1600px);
  max-width: min(96vw, 1600px);
  max-height: 94vh;
  box-sizing: border-box;
  pointer-events: auto;
  overflow: hidden;
}

.image-lightbox__panel img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 5.25rem);
  object-fit: contain;
  object-position: center top;
  border-radius: 0.35rem;
  flex-shrink: 0;
}

.image-lightbox__hint {
  margin: 0.55rem 0 0;
  padding: 0;
  flex-shrink: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.45rem;
  line-height: 1.65;
  letter-spacing: 0.06em;
  text-align: center;
  animation: vaultBiolumePulse 3.2s ease-in-out infinite;
  transition: all 0.2s ease-in-out;
}

.updates-screenshots img {
  cursor: zoom-in;
}

.updates-screenshots img:focus-visible {
  outline: 2px solid rgba(220, 180, 255, 0.95);
  outline-offset: 4px;
}

@supports (height: 100dvh) {
  .image-lightbox__panel {
    max-height: 94dvh;
  }

  .image-lightbox__panel img {
    max-height: calc(90dvh - 5.25rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  #image-lightbox-overlay {
    animation: none;
  }

  .image-lightbox__hint {
    animation: none;
    color: #dad3ff;
    text-shadow: 0 0 12px rgba(192, 160, 255, 0.5),
      0 0 22px rgba(160, 120, 255, 0.3);
  }
}

/* Index: Zoom scheduler modal (blackout + panel, same family as welcome / image lightbox) */
#zoom-scheduler-modal.zoom-scheduler-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
  animation: fadeIn 0.8s ease-out;
}

#zoom-scheduler-modal.zoom-scheduler-overlay[hidden] {
  display: none !important;
}

.zoom-scheduler-panel {
  position: relative;
  background: #000;
  border-radius: 1rem;
  box-shadow: 0 0 48px rgba(255, 255, 255, 0.06),
    0 0 80px rgba(255, 255, 255, 0.03);
  max-width: min(96vw, 920px);
  width: 100%;
  max-height: 92vh;
  overflow: auto;
  padding: 2rem 1.75rem 1.75rem;
  box-sizing: border-box;
  outline: none;
}

.zoom-scheduler-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #faf6ff;
  border: 1px solid rgba(180, 140, 255, 0.45);
  border-radius: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(40, 25, 70, 0.55);
  cursor: pointer;
  line-height: 1.3;
  transition: color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.zoom-scheduler-close:hover {
  color: #fff;
  background: rgba(60, 40, 100, 0.65);
  box-shadow: 0 0 14px rgba(160, 100, 220, 0.25);
}

.zoom-scheduler-close:focus-visible {
  outline: 2px solid rgba(220, 180, 255, 0.95);
  outline-offset: 3px;
}

.zoom-scheduler-panel__title {
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #dad3ff;
  margin: 0 3.75rem 1rem 0;
  line-height: 1.2;
  text-align: center;
}

.zoom-scheduler-intro {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #fff;
  margin: 0 0 1.25rem 0;
  text-align: center;
}

.zoom-scheduler-iframe-wrap {
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid rgba(120, 70, 200, 0.35);
  background: #141414;
  line-height: 0;
}

.zoom-scheduler-iframe-wrap iframe {
  display: block;
  width: 100%;
  min-height: min(520px, 50vh);
  height: min(58vh, 620px);
  border: 0;
}

.zoom-scheduler-fallback {
  margin: 1.15rem 0 0 0;
  text-align: center;
  font-size: 1.45rem;
  line-height: 1.65;
}

.footer-box .footer-zoom-trigger {
  display: inline-block;
  line-height: 0;
  border: none;
  border-radius: 12px;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  vertical-align: middle;
}

.footer-box .footer-zoom-trigger:focus-visible {
  outline: 2px solid rgba(250, 230, 255, 0.95);
  outline-offset: 6px;
}

@supports (height: 100dvh) {
  .zoom-scheduler-panel {
    max-height: 92dvh;
  }

  .zoom-scheduler-iframe-wrap iframe {
    height: min(58dvh, 620px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #zoom-scheduler-modal.zoom-scheduler-overlay {
    animation: none;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.vault-box p {
  color: #fff !important;
}

/* —— Wide vault: full-viewport bleed (Hartic-style edge-to-edge band) —— */
.vault-box.vault-box--wide {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  position: relative;
  left: auto;
  transform: none;
  box-sizing: border-box;
  border-radius: 0;
  padding-left: calc(clamp(1.25rem, 4vw, 4rem) + env(safe-area-inset-left, 0px));
  padding-right: calc(clamp(1.25rem, 4vw, 4rem) + env(safe-area-inset-right, 0px));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55),
    0 10px 44px rgba(120, 70, 200, 0.32);
}

/* One width for title, intro, about body, status, and project list — matches About.
 * (.about-avatar is excluded: it has its own fixed size; width:100% here made it rail-wide.) */
.vault-box.vault-box--wide > .vault-title,
.vault-box.vault-box--wide > .vault-intro,
.vault-box.vault-box--wide > .about-preview-image,
.vault-box.vault-box--wide .about-body,
.vault-box.vault-box--wide .experience-body,
.vault-box.vault-box--wide .updates-intro,
.vault-box.vault-box--wide .vault-section-sep,
.vault-box.vault-box--wide .updates-archive,
.vault-box.vault-box--wide .projects-status,
.vault-box.vault-box--wide .projects-grid {
  max-width: var(--vault-content-rail);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.vault-box.vault-box--wide > .about-avatar-wrap {
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* —— About: long-form body + cross-page links —— */
.vault-box--about {
  text-align: left;
}

.vault-box--about .vault-title {
  text-align: center;
}

/* —— Experience (LIA / internships): long-form + host logos —— */
.vault-box--experience {
  text-align: left;
}

.vault-box--experience .vault-title {
  text-align: center;
}

.vault-box--experience > .vault-intro {
  text-align: center;
  margin-bottom: 1.35rem;
}

/* Glow bar (.vault-section-sep) carries most of the gap before LIA list */
.vault-box--experience .experience-body {
  padding-top: 0.35rem;
}

/* Per-LIA logo (transparent PNG sits on vault background — no boxed frame) */
.experience-block__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 2.1rem 0;
  padding: 0.35rem 0 0.15rem;
}

.experience-block__logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 0.3rem;
}

.experience-block__logo-link:focus-visible {
  outline: 2px solid rgba(220, 180, 255, 0.95);
  outline-offset: 4px;
}

.experience-block__logo {
  max-width: min(360px, 92%);
  max-height: 132px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Dala mark: slightly larger than default LIA logo cap */
.experience-block__logo--dala {
  max-width: min(430px, 95%);
  max-height: 162px;
}

.experience-body {
  width: 100%;
}

.experience-body .vault-intro {
  margin: 0 0 1.2rem 0;
}

.experience-body .vault-intro:last-child {
  margin-bottom: 0;
}

.experience-block + .experience-block {
  margin-top: 2.35rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(120, 70, 200, 0.28);
}

.experience-block__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 0.35rem 0;
  line-height: 1.25;
  letter-spacing: 0.04em;
}

.experience-meta {
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.45;
  color: #c9b8e8;
  margin: 0 0 1.35rem 0;
}

.experience-block .vault-intro {
  text-align: left;
}

/* Prior career block after LIA summary (same divider rhythm as between LIA sections) */
.experience-body > .experience-block--foundation {
  margin-top: 2.35rem;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(120, 70, 200, 0.28);
}

.experience-body > p.vault-intro.experience-summary {
  margin-bottom: 1.75rem;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  justify-content: center;
  margin: 1.35rem 0 0 0;
  padding: 0;
  list-style: none;
}

.experience-tags > li {
  margin: 0;
  padding: 0;
}

.experience-tag {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.98rem;
  line-height: 1.3;
  color: #d4c8f0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 140, 255, 0.28);
  background: rgba(40, 25, 70, 0.22);
  display: inline-block;
}

/* —— Updates / writing archive (editorial list, no tag chips) —— */
.vault-box--updates {
  text-align: left;
}

/* Opaque intro: blocks canvas/particles; distinct from semi-transparent vault card */
.updates-intro {
  background: #000;
  padding: 2.35rem clamp(1.25rem, 4vw, 2rem) 2.55rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(100, 70, 160, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.45);
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.vault-box--updates .updates-intro .vault-title {
  text-align: center;
  margin-bottom: 1.45rem;
}

.vault-box--updates .updates-intro .vault-intro {
  text-align: center;
  margin-bottom: 0;
}

.vault-box--updates .updates-intro + .updates-archive {
  margin-top: 2rem;
}

/* Glowing gradient section break (Experience intro→placements, Projects intro→status) */
.vault-section-sep {
  margin: 4.5rem auto 4.75rem;
  width: 100%;
  max-width: min(320px, 72%);
  height: 5px;
  border-radius: 3px;
  border: none;
  color: transparent;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(140, 95, 220, 0.15) 15%,
    rgba(175, 135, 255, 0.55) 50%,
    rgba(140, 95, 220, 0.15) 85%,
    transparent 100%
  );
  box-shadow: 0 0 22px rgba(120, 70, 200, 0.35),
    0 0 42px rgba(80, 40, 140, 0.2);
}

.updates-archive {
  width: 100%;
}

.updates-entry {
  margin: 0;
  padding: 2.85rem 0 3.05rem;
  border-bottom: 1px solid rgba(120, 70, 200, 0.28);
}

.updates-entry:last-of-type {
  border-bottom: none;
  padding-bottom: 0.35rem;
}

.updates-entry__meta {
  font-size: 1.05rem;
  line-height: 1.45;
  color: #c9b8e8;
  text-align: center;
  margin: 0 0 0.65rem 0;
}

.updates-entry__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin: 0 0 1rem 0;
  line-height: 1.28;
  letter-spacing: 0.03em;
}

.updates-entry__body {
  margin-bottom: 1.15rem !important;
}

.updates-entry__body:last-of-type {
  margin-bottom: 1.15rem !important;
}

.updates-entry__link-wrap {
  text-align: center;
  margin: 0.25rem 0 0 0;
}

.updates-excerpt {
  margin: 1.25rem 0 1rem 0;
  padding: 1.15rem 1.25rem 1.2rem;
  border-left: 3px solid rgba(180, 140, 255, 0.45);
  background: rgba(40, 25, 70, 0.32);
  border-radius: 0 0.65rem 0.65rem 0;
}

.updates-excerpt__label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  line-height: 1.65;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c9b8e8;
  margin: 0 0 0.65rem 0;
}

.updates-excerpt__quote {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #ece6ff;
  font-style: italic;
}

.updates-excerpt__quote > p {
  margin: 0;
}

.updates-entry__note {
  font-size: 1.45rem;
  line-height: 1.65;
  color: #a898d4;
  margin: 0 0 1.25rem 0;
  text-align: left;
}

.updates-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}

.updates-screenshots__slot {
  min-height: 180px;
  border-radius: 0.5rem;
  border: 1px dashed rgba(180, 140, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
  overflow: hidden;
}

/* Shared frame: row height follows the taller screenshot; stretched slots stay equal (default grid align). */
.updates-screenshots__slot:has(img) {
  min-height: 0;
  padding: 0;
  border-style: solid;
  border-color: rgba(120, 70, 200, 0.35);
  background: #000;
}

.updates-screenshots__slot:has(img) > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
}

/* Sunscreen draft only: first capture is shorter — give img a real box (100%×100%) so cover fills the shared row slot. */
.updates-screenshots__slot--fill-top {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  min-height: 0;
}

.updates-screenshots__slot--fill-top > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* Avatar row: optional side frames (same height as circular avatar). */
.about-avatar-wrap {
  --about-avatar-size: min(200px, 88vw);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 3.25rem auto;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.about-avatar__side {
  display: block;
  height: var(--about-avatar-size);
  width: auto;
  max-height: var(--about-avatar-size);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

/* Round portrait + frame overlay (same layering idea as project-card obsidian frame).
 * Fixed 200×200 on desktop; scales down only on narrow viewports (never above 200px). */
.about-avatar {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  width: var(--about-avatar-size, min(200px, 88vw));
  height: var(--about-avatar-size, min(200px, 88vw));
  max-width: 200px;
  max-height: 200px;
  border-radius: 50%;
  isolation: isolate;
  flex-shrink: 0;
  /* Tune if the photo peeks outside the frame opening */
  --about-avatar-inset: 10.5%;
}

.about-avatar__shot {
  position: absolute;
  z-index: 1;
  top: var(--about-avatar-inset);
  right: var(--about-avatar-inset);
  bottom: var(--about-avatar-inset);
  left: var(--about-avatar-inset);
  border-radius: 50%;
  overflow: hidden;
  background: #1a1228;
}

.about-avatar__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

.about-avatar__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
  user-select: none;
  border-radius: 50%;
}

.about-body {
  /* max-width: var(--vault-content-rail) when inside .vault-box--wide (rule above) */
  width: 100%;
}

.vault-box--about .about-body p {
  margin: 0 0 1.2rem 0;
}

.vault-box--about .about-body p:last-child {
  margin-bottom: 0;
}

.vault-box.vault-box--wide > .about-preview-image {
  display: block;
  width: 100%;
  max-width: var(--vault-content-rail);
  margin: -0.65rem auto 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
  text-align: center;
}

.about-preview-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 0.35rem;
}

/* Decorative footer band under About body (all locales). Half content-rail width. */
.vault-box.vault-box--wide > .about-bottom-closure {
  display: block;
  width: auto;
  max-width: min(38rem, 46vw);
  height: auto;
  margin: 0.2rem auto 0 auto;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
}

@keyframes aboutInlineLinkBreath {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.22),
      0 0 18px rgba(235, 215, 255, 0.18),
      0 0 28px rgba(180, 140, 255, 0.14);
  }
  50% {
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.38),
      0 0 26px rgba(245, 228, 255, 0.28),
      0 0 40px rgba(200, 160, 255, 0.22);
  }
}

/* Glow + breathing links: About cross-links and project “visit” live links (all locales). */
.about-inline-link,
.project-card__link {
  color: #faf6ff;
  font-size: 1.45rem;
  line-height: 1.65;
  font-weight: 700;
  text-decoration: none;
  border-bottom: none;
  padding: 0.1em 0.22em;
  margin: 0 -0.06em;
  border-radius: 0.12em;
  background-color: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease,
    text-shadow 0.35s ease;
  animation: aboutInlineLinkBreath 3.2s ease-in-out infinite;
}

.about-inline-link:hover,
.project-card__link:hover {
  color: #fff;
  background: linear-gradient(
    102deg,
    rgba(150, 95, 220, 0.5) 0%,
    rgba(190, 140, 255, 0.42) 48%,
    rgba(130, 80, 200, 0.48) 100%
  );
  box-shadow: 0 0.12em 0 0 rgba(160, 100, 230, 0.35),
    0 0 20px rgba(170, 120, 255, 0.25);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.45),
    0 0 22px rgba(240, 225, 255, 0.3);
  animation: none;
}

.about-inline-link:focus-visible,
.project-card__link:focus-visible {
  outline: 2px solid rgba(220, 180, 255, 0.95);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .about-inline-link,
  .project-card__link {
    animation: none;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2),
      0 0 20px rgba(200, 170, 255, 0.15);
  }

  .about-inline-link:hover,
  .project-card__link:hover {
    animation: none;
  }
}

/* —— Projects: cards driven by JSON + js/projects.js —— */
.projects-section {
  width: 100%;
}

.projects-section .vault-box {
  text-align: center;
  /* Darker fill than the default vault card so Behance embeds do not pick up a purple slab behind the frame. */
  background: rgba(0, 0, 0, 0.94);
}

.projects-section .vault-box > .vault-title,
.projects-section .vault-box > .vault-intro {
  text-align: center;
}

.projects-section .vault-intro {
  margin-bottom: 1.35rem;
}

.projects-section .vault-section-sep + .projects-status {
  margin-top: 0.4rem;
}

.projects-status {
  margin: 1.25rem auto 1.75rem;
  font-size: 1.05rem;
  line-height: 1.5;
}

.projects-grid {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: 0.25rem;
}

.project-card {
  text-align: left;
  padding-top: 2.25rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(120, 70, 200, 0.28);
}

.project-card:first-child {
  padding-top: 0;
}

.project-card:last-child {
  border-bottom: none;
  padding-bottom: 2.75rem;
}

.project-card__figure {
  position: relative;
  margin: 0 0 1.35rem 0;
  max-width: 100%;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
  isolation: isolate;
  /* Opening insets: bottom was too large — shot ended above the frame’s visual bottom → black band */
  --frame-inset-t: 6.5%;
  --frame-inset-r: 5.25%;
  --frame-inset-b: 4.25%;
  --frame-inset-l: 5.25%;
}

/* Screenshot or Behance embed sits in the frame opening */
.project-card__shot {
  position: absolute;
  z-index: 1;
  top: var(--frame-inset-t);
  right: var(--frame-inset-r);
  bottom: var(--frame-inset-b);
  left: var(--frame-inset-l);
  overflow: hidden;
  background: #000;
  border-radius: 0.28rem;
}

.project-card__shot > a.project-card__image-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 1;
}

.project-card__shot > a.project-card__image-link:focus-visible {
  outline: 2px solid rgba(220, 180, 255, 0.95);
  outline-offset: 2px;
  z-index: 3;
}

.project-card__embed-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #000;
  line-height: 0;
}

/*
 * Anchored from top-left (not translate-50%) so growth favors filling the bottom of the opening.
 * display:block removes any inline/baseline gap under the iframe.
 */
.project-card__embed {
  position: absolute;
  display: block;
  top: -4.5%;
  left: -3.5%;
  width: 107%;
  height: 112%;
  max-width: none;
  border: 0;
}

.project-card__image {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  transform: translate(-50%, -50%);
}

/*
 * TechPulse asset is top-heavy with empty space below the UI in the PNG; anchor the crop
 * to the top of the bitmap and sit the layer slightly lower in the shot (same idea as embed
 * negative top / extra height) so the obsidian opening reads full to the bottom edge.
 */
#project-techpulse-group-version .project-card__image {
  top: 53%;
  left: 50%;
  width: 112%;
  height: 115%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transform: translate(-50%, -50%);
}

/* Full-card overlay; pointer-events none → clicks pass through to iframe in the opening */
.project-card__frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.project-card__body {
  padding: 0 0.15rem;
}

.project-card__meta {
  margin: 0 0 2.85rem 0;
  /* Slightly smaller than body — year / type line, left-aligned */
  font-size: 1.05rem;
  line-height: 1.45;
  color: #c9b8e8;
}

.project-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.28;
  margin: 0.35rem 0 1.85rem 0;
  padding: 0 0.25rem;
  text-align: center;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  font-stretch: expanded;
  font-variant-ligatures: none;
}

.project-card__summary {
  margin: 0 0 1rem 0;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #f0f0ff;
}

.project-card__description {
  margin: 0 0 2.5rem 0;
  font-size: 1.45rem;
  line-height: 1.65;
  color: #ddd;
  white-space: pre-line;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1.75rem 0;
  justify-content: center;
}

.project-card__tags + .project-card__tags {
  margin-top: 1.75rem;
  margin-bottom: 2.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.38em 0.75em;
  border-radius: 999px;
  /* Same size as .project-card__meta (year / type line); all locales */
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: 0.02em;
  background: rgba(60, 40, 95, 0.55);
  border: 1px solid rgba(180, 140, 255, 0.22);
  color: #e8e0ff;
}

.project-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-top: 2.25rem;
  justify-content: center;
  text-align: center;
  width: 100%;
}

/* —— Screen reader only (utility) —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* —— Contact: form spacing, contrast, and focus for keyboard/screen-reader use on the vault —— */
.contact-form-surface {
  margin-top: 0;
  max-width: 26.25rem;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.contact-decorative-wrap {
  width: 100%;
  border-radius: 0.35rem;
  /* Natural image height — fixed 8:1 + cover cropped the lower ornament. */
}

.contact-decorative-img {
  width: 100%;
  height: auto;
  display: block;
  /* Invert/lighten so lilac-on-white ornaments read on the dark vault. */
  filter: invert(1) brightness(1.12) contrast(0.92);
}

.contact-decorative-img--upper {
  /* Same as .contact-form__intro margin-bottom → mirrors intro ↔ first label */
  margin-bottom: 2rem;
}

/* Same typographic voice as the old page-level “Contact” vault-title */
.contact-form__heading.vault-title {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0.65rem;
}

/* Typography matches Experience / other vault pages via .vault-intro + .vault-box p */
.contact-form__intro {
  text-align: center;
  max-width: 24rem;
  margin: 0 auto 2rem auto;
}

.contact-decorative-wrap--lower {
  /* Match upper ornament ↔ heading (and intro ↔ fields) */
  margin-top: 2rem;
}

.contact-decorative-img--lower {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.contact-form__fieldset {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form-surface label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #fff;
  padding-left: 0.2rem;
}

.contact-form-surface input,
.contact-form-surface textarea {
  width: 100%;
  margin: 0;
  padding: 0.85rem 0.9rem;
  /* Same size as .vault-intro (“For collaborations…”) */
  font-size: 1.45rem;
  line-height: 1.65;
  font-family: "Cormorant Garamond", serif;
  color: #f5f0ff;
  background: rgba(8, 4, 18, 0.92);
  border: 1px solid rgba(185, 158, 255, 0.5);
  border-radius: 0.5rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
}

.contact-form-surface input::placeholder,
.contact-form-surface textarea::placeholder {
  color: rgba(220, 210, 255, 0.45);
}

.contact-form-surface input:focus,
.contact-form-surface textarea:focus,
.contact-form__submit:focus {
  outline: 3px solid #e0b3ff;
  outline-offset: 2px;
}

.contact-form-surface input:focus-visible,
.contact-form-surface textarea:focus-visible,
.contact-form__submit:focus-visible {
  outline: 3px solid #e0b3ff;
  outline-offset: 2px;
}

.contact-form__submit {
  background: #e0b3ff;
  color: #670e0e;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  font-size: 1.15rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.1rem;
  letter-spacing: 0.04em;
}

.contact-form__submit:hover {
  background: #fff;
  border-color: #e0b3ff;
  color: #4a0a0a;
}

.contact-form__submit:disabled {
  cursor: wait;
  opacity: 0.85;
}

.contact-form__status {
  margin: 1.15rem 0 0 0;
  min-height: 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  line-height: 1.55;
  color: #dcc8ff;
  outline: none;
}

.contact-form__status:empty {
  margin-top: 0;
}

.contact-form__status[data-contact-form-error="true"] {
  color: #ffb8c3;
}

.contact-form__success {
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.contact-form__success[hidden] {
  display: none !important;
}

.contact-form__panel[hidden] {
  display: none !important;
}

.contact-form__success-message {
  margin: 0 0 1.25rem 0;
  max-width: none;
}

.contact-form__success-check {
  display: block;
  margin: 0 auto;
  width: 96px;
  height: auto;
  object-fit: contain;
  filter: invert(1) brightness(1.12) contrast(0.92)
    drop-shadow(0 0 12px rgba(250, 246, 255, 0.14))
    drop-shadow(0 0 28px rgba(238, 232, 252, 0.07));
}

.contact-form-foot {
  margin-top: 1.85rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c9b8e8;
}

.contact-form-foot p {
  margin: 0;
  color: inherit;
}

/* —— Footer language switcher (EN / SV / ES) —— */
@keyframes langSwitcherBreath {
  0%,
  100% {
    text-shadow: 0 0 5px rgba(190, 185, 220, 0.1),
      0 0 12px rgba(150, 145, 190, 0.05);
  }
  50% {
    text-shadow: 0 0 8px rgba(210, 205, 235, 0.16),
      0 0 16px rgba(160, 155, 200, 0.09);
  }
}

.lang-switcher {
  flex-shrink: 0;
  margin-top: auto;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 1.68rem 1rem calc(1.45rem + env(safe-area-inset-bottom, 0px));
  max-width: 700px;
  width: 100%;
  text-align: center;
  opacity: 0.62;
  transition: opacity 0.4s ease;
}

.lang-switcher:hover,
.lang-switcher:focus-within {
  opacity: 0.88;
}

.lang-switcher__inner {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 0.95em;
  row-gap: 0.35em;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(0.91rem, 2.58vw, 1.095rem);
  letter-spacing: 0.085em;
  line-height: 1.5;
  text-transform: none;
  animation: langSwitcherBreath 4.2s ease-in-out infinite;
}

.lang-switcher__current {
  color: #8c8794;
  cursor: default;
}

.lang-switcher__sep {
  color: #4d4a55;
  font-weight: 400;
  user-select: none;
}

.lang-switcher__soon {
  color: #5c5863;
  cursor: default;
  border-bottom: 1px dotted transparent;
}

.lang-switcher__soon[title] {
  border-bottom-color: rgba(92, 88, 99, 0.35);
}

.lang-switcher__link {
  color: #6c6774;
  text-decoration: none;
  border-bottom: 1px dotted rgba(92, 88, 99, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.lang-switcher__link:hover {
  color: #908a9a;
  border-bottom-color: rgba(160, 155, 175, 0.55);
  text-shadow: 0 0 6px rgba(200, 195, 220, 0.12);
}

.lang-switcher__link:focus-visible {
  outline: 2px solid rgba(250, 230, 255, 0.75);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .lang-switcher__inner {
    animation: none;
    text-shadow: 0 0 8px rgba(200, 195, 230, 0.1);
  }
}

@media (max-width: 600px) {
  .contact-form-surface label {
    text-align: center;
    padding-left: 0;
  }

  .contact-form__intro {
    margin-bottom: 1.65rem;
    padding: 0 0.35rem;
    max-width: none;
  }

  .contact-decorative-img--upper {
    margin-bottom: 1.65rem;
  }

  .contact-decorative-wrap--lower {
    margin-top: 1.65rem;
  }
}
