:root {
  --paper: #000000;
  --paper-deep: rgba(56, 69, 78, 0.28);
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --quiet: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.14);
  --dark: #000000;
  --light: #ffffff;
  --accent: #0E5A8A;
  --font: "Apercu", "Satoshi", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --serif: Baskerville, "Libre Baskerville", "Cormorant Garamond", "Georgia", serif;
  --motion-micro: 180ms;
  --motion-normal: 420ms;
  --motion-cinematic: 900ms;
  --motion-camera: 2200ms;
  --ease-cinematic: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(14, 90, 138, 0.22), transparent 30rem),
    linear-gradient(180deg, #000 0%, #050505 48%, #000 100%);
  color: var(--ink);
  font-family: var(--font);
  text-rendering: geometricPrecision;
}

body.lightbox-open {
  overflow: hidden;
}

body.collection-open {
  overflow: hidden;
}

body.portfolio-page-entering {
  background: #000;
}

body:has(.portfolio-app[data-view="loading"]),
body:has(.portfolio-app[data-view="journey"]) {
  overflow: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

button {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 40;
  transform: translateY(-150%);
  background: var(--dark);
  color: var(--light);
  padding: 10px 14px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.portfolio-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  color: var(--ink);
  mix-blend-mode: difference;
}

.brand {
  display: inline-flex;
  grid-column: 2;
  justify-self: center;
  align-items: center;
  justify-content: center;
  width: clamp(118px, 10vw, 168px);
  min-height: 44px;
  max-width: none;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.brand img,
.journey-intro-brand img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.34));
  transition: opacity var(--motion-cinematic) var(--ease-cinematic), filter var(--motion-cinematic) var(--ease-cinematic), transform var(--motion-cinematic) var(--ease-cinematic);
}

.brand:hover img,
.brand:focus-visible img,
.brand:active img,
.journey-intro-brand:hover img,
.journey-intro-brand:focus-visible img,
.journey-intro-brand:active img {
  animation: brand-logo-fade 1.55s ease both;
}

.portfolio-header nav {
  display: flex;
  grid-column: 3;
  justify-self: end;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-header a {
  text-decoration: none;
}

@keyframes brand-logo-fade {
  0% {
    opacity: 0.9;
    transform: translateY(0) scale(1);
  }
  42% {
    opacity: 0.22;
    transform: translateY(-1px) scale(0.985);
  }
  100% {
    opacity: 0.94;
    transform: translateY(0) scale(1);
  }
}

body:has(.portfolio-app[data-view="detail"]) .portfolio-header {
  color: rgba(255, 250, 242, 0.86);
  mix-blend-mode: normal;
}

body:has(.portfolio-app[data-view="loading"]) .portfolio-header,
body:has(.portfolio-app[data-view="journey"]) .portfolio-header {
  display: none;
}

body:has(.portfolio-app[data-view="detail"]) .brand,
body:has(.portfolio-app[data-view="detail"]) .portfolio-header nav {
  color: rgba(255, 250, 242, 0.82);
}

.portfolio-app {
  min-height: 100vh;
}

.portfolio-journey-intro,
.portfolio-name-step,
.portfolio-journey-loading,
.portfolio-journey-voice,
.portfolio-journey-world {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(56, 69, 78, 0.22), transparent 28rem),
    radial-gradient(circle at 76% 22%, rgba(14, 90, 138, 0.2), transparent 26rem),
    #000;
  isolation: isolate;
}

.portfolio-journey-intro,
.portfolio-name-step,
.portfolio-journey-loading,
.portfolio-journey-voice {
  display: grid;
  place-items: center;
  padding: clamp(84px, 12vh, 140px) 20px 78px;
  text-align: center;
}

.journey-webgl {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.56;
  pointer-events: none;
  mix-blend-mode: screen;
}

.portfolio-journey-loading {
  background:
    radial-gradient(ellipse at 50% 68%, rgba(56, 69, 78, 0.34), transparent 34rem),
    radial-gradient(circle at 74% 24%, rgba(14, 90, 138, 0.14), transparent 32rem),
    radial-gradient(circle at 24% 30%, rgba(34, 58, 72, 0.2), transparent 30rem),
    linear-gradient(180deg, #000 0%, #02090c 48%, #000 100%);
  transition: opacity 2000ms ease, filter 2000ms ease, transform 2000ms ease;
}

.portfolio-journey-loading.is-exiting {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.018);
}

.journey-loading-map {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    repeating-radial-gradient(ellipse at 50% 88%, transparent 0 42px, rgba(255,255,255,0.045) 43px 44px, transparent 45px 92px),
    linear-gradient(116deg, transparent 0 42%, rgba(255,255,255,0.055) 42.1% 42.22%, transparent 42.5%),
    linear-gradient(24deg, transparent 0 56%, rgba(14, 90, 138,0.08) 56.1% 56.24%, transparent 56.5%),
    radial-gradient(circle at 50% 52%, rgba(255,255,255,0.055), transparent 22rem);
  opacity: 0.62;
  animation: journey-atmosphere 28s ease-in-out infinite alternate;
}

.journey-loading-map::before {
  position: absolute;
  inset: -18%;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,0.06) 48.05% 48.14%, transparent 48.3%),
    linear-gradient(0deg, transparent 0 52%, rgba(255,255,255,0.035) 52.05% 52.12%, transparent 52.3%);
  opacity: 0.28;
  transform: rotate(-8deg);
  animation: journey-mist 34s linear infinite;
  content: "";
}

.journey-loading-map::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 30%, rgba(0,0,0,0.78) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.42), transparent 42%, rgba(0,0,0,0.62));
  content: "";
}

.journey-loading-copy {
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translateY(2vh);
}

.journey-loading-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.journey-loading-copy strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  font-weight: 400;
  line-height: 0.96;
  text-shadow: 0 18px 58px rgba(56, 69, 78, 0.32);
}

.portfolio-journey-voice {
  background:
    radial-gradient(circle at 50% 42%, rgba(56, 69, 78, 0.2), transparent 34rem),
    radial-gradient(circle at 76% 24%, rgba(14, 90, 138, 0.16), transparent 30rem),
    #000;
  transition: opacity 2200ms ease, filter 2200ms ease, transform 2200ms ease;
}

.portfolio-journey-voice.is-exiting {
  opacity: 0;
  filter: blur(10px);
  transform: scale(1.015);
}

.journey-voice-words {
  width: min(760px, calc(100vw - 64px));
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.65vw, 3.05rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.16;
  text-wrap: balance;
}

.journey-voice-words span {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translate3d(0, 22px, 0);
  animation: journey-word-in 2300ms cubic-bezier(.16,.84,.22,1) forwards;
  animation-delay: var(--word-delay, 0s);
  transition: opacity 1400ms ease, filter 1400ms ease, transform 1400ms ease;
}

.journey-voice-words.is-part-exiting span {
  opacity: 0;
  filter: blur(14px);
  transform: translate3d(0, -14px, 0);
}

.portfolio-name-step {
  transition: opacity 900ms ease, filter 900ms ease;
}

.portfolio-name-step:not([hidden]) .journey-name-card {
  animation: journey-name-in 1100ms cubic-bezier(.2,.8,.2,1) both;
}

.journey-particles,
.journey-particles span,
.journey-particles::before,
.journey-particles::after,
.journey-world-bg,
.journey-world-bg::before,
.journey-world-bg::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.journey-particles {
  z-index: 2;
  overflow: hidden;
  opacity: 0.78;
}

.journey-particles::before,
.journey-particles::after {
  content: "";
  background:
    radial-gradient(circle, rgba(214, 244, 255, 0.56) 0 1px, transparent 1.7px) 8% 12% / 130px 130px,
    radial-gradient(circle, rgba(154, 213, 244, 0.34) 0 1px, transparent 1.8px) 62% 38% / 180px 180px,
    radial-gradient(circle, rgba(255, 255, 255, 0.42) 0 0.8px, transparent 1.6px) 28% 72% / 220px 220px;
  filter: drop-shadow(0 0 10px rgba(133, 211, 255, 0.34));
  opacity: 0.62;
  transform: translate3d(0, 0, 0) scale(1.06);
  animation: journey-star-drift 26s linear infinite;
  will-change: transform, opacity;
}

.journey-particles::after {
  opacity: 0.42;
  transform: translate3d(-6vw, 4vh, 0) scale(1.18);
  animation-duration: 38s;
  animation-direction: reverse;
}

.journey-particles span {
  width: 1px;
  height: 26vh;
  margin: auto;
  background: linear-gradient(180deg, transparent, rgba(202, 238, 255, 0.28), transparent);
  transform: rotate(24deg) translate3d(var(--px, 0), var(--py, 0), 0);
  animation: journey-particle 24s linear infinite;
  will-change: transform, opacity;
}

.journey-particles span:nth-child(1) { --px: -36vw; --py: -18vh; animation-delay: -2s; }
.journey-particles span:nth-child(2) { --px: 16vw; --py: -28vh; animation-delay: -7s; }
.journey-particles span:nth-child(3) { --px: 38vw; --py: 12vh; animation-delay: -11s; }
.journey-particles span:nth-child(4) { --px: -12vw; --py: 28vh; animation-delay: -15s; }

.journey-intro-brand {
  position: absolute;
  top: clamp(18px, 4vw, 42px);
  left: 50%;
  z-index: 4;
  display: block;
  width: clamp(124px, 11vw, 180px);
  transform: translateX(-50%);
}

.journey-intro-copy,
.journey-name-card {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: min(820px, 100%);
}

.journey-intro-copy h1,
.journey-name-card h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4rem, 10vw, 9.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
}

.journey-intro-copy > p:not(.portfolio-kicker) {
  max-width: 38ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.journey-intro-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 22px;
  margin-top: 12px;
}

.journey-intro-actions button,
.journey-name-card button {
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.88);
  padding: 0 20px;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-intro-actions button:first-child,
.journey-name-card button {
  border-color: rgba(14, 90, 138, 0.95);
  background: #0E5A8A;
  color: #fff;
}

.journey-skip {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: transparent;
  color: var(--quiet);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.journey-name-card {
  text-align: left;
}

.journey-name-card label {
  display: grid;
  gap: 12px;
  width: min(420px, 100%);
}

.journey-name-card label span {
  color: var(--quiet);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-name-card input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: #fff;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 4.2rem);
  outline: none;
}

.portfolio-journey-world {
  cursor: grab;
  background: #010405;
}

.journey-world-webgl {
  z-index: -1;
  opacity: 0.34;
}

.portfolio-journey-world:active {
  cursor: grabbing;
}

.journey-world-bg {
  z-index: -2;
  background:
    radial-gradient(ellipse at 52% 82%, rgba(56, 69, 78, 0.26), transparent 34rem),
    linear-gradient(172deg, transparent 0 58%, rgba(255, 255, 255, 0.035) 58.1% 58.28%, transparent 58.5%),
    linear-gradient(8deg, transparent 0 50%, rgba(255, 255, 255, 0.02) 50.1% 50.22%, transparent 50.4%),
    linear-gradient(125deg, transparent 0 42%, rgba(255, 255, 255, 0.035) 42.2% 42.45%, transparent 42.7%),
    linear-gradient(24deg, transparent 0 58%, rgba(14, 90, 138, 0.08) 58.2% 58.45%, transparent 58.7%),
    radial-gradient(circle at 20% 38%, rgba(56, 69, 78, 0.26), transparent 28rem),
    radial-gradient(circle at 80% 28%, rgba(14, 90, 138, 0.18), transparent 30rem),
    linear-gradient(180deg, #000, #010607 48%, #000);
  animation: journey-atmosphere 22s ease-in-out infinite alternate;
}

.journey-world-bg::before {
  background:
    repeating-radial-gradient(ellipse at 50% 88%, transparent 0 34px, rgba(255,255,255,0.035) 35px 36px, transparent 37px 74px),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 50% 68%, #000, transparent 72%);
  opacity: 0.34;
  content: "";
}

.journey-world-bg::after {
  background:
    radial-gradient(circle at 26% 32%, rgba(255, 255, 255, 0.05), transparent 17rem),
    radial-gradient(circle at 50% 50%, transparent 0 36%, rgba(0, 0, 0, 0.76) 100%);
  animation: journey-mist 18s linear infinite;
  content: "";
}

.journey-world-top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 18px clamp(18px, 4vw, 54px);
  pointer-events: auto;
}

.journey-world-top p,
.journey-world-top nav,
.journey-hint,
.journey-audio-toggle {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.journey-world-top p {
  grid-column: 1;
  justify-self: start;
  margin: 0;
}

.journey-world-top nav {
  display: flex;
  grid-column: 3;
  justify-self: end;
  gap: 20px;
}

.journey-world-top a {
  text-decoration: none;
}

.journey-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  perspective: 1650px;
  perspective-origin: 50% 48%;
}

.journey-space {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  will-change: transform;
}

.journey-frame {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  gap: 10px;
  width: clamp(190px, 22vw, 310px);
  padding: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  transform-style: preserve-3d;
  opacity: var(--depth-opacity, 0.7);
  filter: blur(var(--depth-blur, 0)) brightness(var(--depth-light, 0.86));
  will-change: transform, opacity, filter;
  transition: filter var(--motion-normal) var(--ease-cinematic), opacity var(--motion-normal) var(--ease-cinematic);
}

.journey-frame figure {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.72);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.journey-frame.is-selected {
  width: clamp(270px, 25vw, 390px);
}

.journey-frame figure::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(14, 90, 138, 0);
  transition: border-color 320ms ease, box-shadow 320ms ease;
  content: "";
}

.journey-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  filter: blur(10px) saturate(0.9);
  transform: scale(1.04);
  transition: opacity 620ms var(--ease-cinematic), filter 820ms var(--ease-cinematic), transform var(--motion-cinematic) var(--ease-cinematic);
}

.journey-frame img.is-loaded {
  opacity: 1;
  filter: saturate(var(--depth-sat, 0.92));
  transform: scale(1);
}

.journey-frame > span {
  color: var(--quiet);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 0.9;
}

.journey-frame div {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-normal) var(--ease-cinematic), transform 560ms var(--ease-cinematic);
}

.journey-frame h2,
.journey-frame p {
  margin: 0;
}

.journey-frame h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 3.6rem);
  font-weight: 400;
  line-height: 0.94;
}

.journey-frame p {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-frame:hover,
.journey-frame:focus-visible,
.journey-frame.is-selected {
  z-index: 4;
  opacity: 1;
  filter: blur(0) brightness(1.1);
}

.journey-frame.is-receded {
  opacity: calc(var(--depth-opacity, 0.7) * 0.42);
  filter: blur(calc(var(--depth-blur, 0px) + 0.8px)) brightness(0.62);
}

.journey-frame:hover figure::after,
.journey-frame:focus-visible figure::after,
.journey-frame.is-selected figure::after {
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(14, 90, 138, 0.45), 0 0 44px rgba(14, 90, 138, 0.22);
}

.journey-frame:hover div,
.journey-frame:focus-visible div,
.journey-frame.is-selected div {
  opacity: 0;
  transform: translateY(8px);
}

.journey-frame.is-selected div {
  opacity: 0;
}

.journey-frame.is-selected div {
  position: absolute;
  inset: 50% 18px auto;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  transform: translateY(-50%);
}

.journey-frame.is-selected.is-revealed div {
  opacity: 1;
}

.journey-frame.is-selected h2 {
  max-width: 100%;
  color: #fff;
  font-size: clamp(1.7rem, 2.35vw, 3rem);
  line-height: 0.94;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.72);
}

.journey-frame.is-selected p {
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.72);
}

.journey-focus {
  position: fixed;
  left: 50%;
  bottom: clamp(72px, 8vw, 112px);
  z-index: 7;
  display: grid;
  justify-items: center;
  width: 96px;
  transform: translateX(-50%);
  pointer-events: auto;
}

.journey-focus[hidden] {
  display: none;
}

.journey-focus button {
  position: absolute;
  left: calc(100% + 16px);
  top: -18px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: transparent;
}

.journey-focus button::before,
.journey-focus button::after {
  display: block;
  width: 14px;
  height: 1px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.76);
  content: "";
}

.journey-focus button::before { transform: rotate(45deg); }
.journey-focus button::after { transform: rotate(-45deg); }

.journey-focus p {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.journey-focus h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.journey-focus a {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  animation: journey-pulse 2.4s ease-in-out infinite;
}

.journey-hint {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 5;
  margin: 0;
  transform: translateX(-50%);
  color: var(--quiet);
  animation: journey-hint-fade 7s ease forwards;
}

.journey-audio-toggle {
  position: fixed;
  right: clamp(18px, 4vw, 54px);
  bottom: 18px;
  z-index: 8;
  border: 0;
  background: transparent;
}

.audio-orb {
  display: inline-flex;
  width: 44px;
  height: 24px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(2, 10, 16, 0.34);
  backdrop-filter: blur(8px);
}

.audio-orb span {
  display: block;
  width: 2px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  animation: audio-orb-wave 1.18s ease-in-out infinite;
  transform-origin: center center;
}

.audio-orb span:nth-child(2) {
  animation-delay: 0.14s;
}

.audio-orb span:nth-child(3) {
  animation-delay: 0.28s;
}

.audio-orb.is-muted span {
  height: 3px;
  opacity: 0.45;
  animation: none;
}

.work-audio-toggle {
  z-index: 16;
}

@keyframes audio-orb-wave {
  0%, 100% { transform: scaleY(0.42); opacity: 0.5; }
  50% { transform: scaleY(1.35); opacity: 0.96; }
}

.journey-map {
  position: fixed;
  left: clamp(18px, 4vw, 54px);
  bottom: 18px;
  z-index: 8;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.04), transparent 62%),
    rgba(0, 0, 0, 0.46);
  box-shadow: inset 0 0 0 1px rgba(14, 90, 138, 0.14), 0 18px 54px rgba(0, 0, 0, 0.32);
  pointer-events: none;
}

.journey-map::before,
.journey-map::after {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 78%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  content: "";
}

.journey-map::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.journey-map div {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.journey-map div span {
  position: absolute;
  left: var(--mx);
  top: var(--my);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%);
}

.journey-map div span.is-active {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.42);
}

.journey-map > span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0E5A8A;
  box-shadow: 0 0 22px rgba(14, 90, 138, 0.74);
  transform-origin: center;
}

.journey-empty {
  position: absolute;
  width: max-content;
  transform: translate(-50%, -50%);
  color: var(--muted);
}

@keyframes journey-particle {
  from { transform: rotate(24deg) translate3d(var(--px), calc(var(--py) + 45vh), 0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  to { transform: rotate(24deg) translate3d(var(--px), calc(var(--py) - 45vh), 0); opacity: 0; }
}

@keyframes journey-star-drift {
  0% { transform: translate3d(-4vw, 3vh, 0) scale(1.06); opacity: 0.44; }
  38% { opacity: 0.78; }
  100% { transform: translate3d(4vw, -5vh, 0) scale(1.1); opacity: 0.52; }
}

@keyframes journey-atmosphere {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 120px -80px, -90px 70px, 0 0, 0 0, 0 0; }
}

@keyframes journey-mist {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.86; }
  50% { transform: translate3d(2%, -1%, 0) scale(1.03); opacity: 1; }
  to { transform: translate3d(-2%, 0, 0) scale(1); opacity: 0.86; }
}

@keyframes journey-hint-fade {
  0%, 56% { opacity: 1; }
  100% { opacity: 0.42; }
}

@keyframes journey-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.18); transform: scale(1); }
  50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); transform: scale(1.04); }
}

@keyframes journey-word-in {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes journey-name-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 26px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.portfolio-hero {
  display: grid;
  min-height: min(86vh, 860px);
  align-content: end;
  padding: clamp(120px, 18vh, 190px) clamp(20px, 8vw, 124px) clamp(72px, 14vh, 132px);
}

.portfolio-kicker {
  margin: 0 0 24px;
  color: var(--quiet);
  font-size: clamp(0.74rem, 1.8vw, 0.86rem);
  font-weight: 820;
  letter-spacing: 0.28em;
}

.portfolio-hero h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.1rem, 12vw, 10.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.portfolio-index {
  padding: 0 clamp(16px, 4.6vw, 72px) clamp(80px, 12vw, 150px);
}

.portfolio-index-head {
  display: flex;
  justify-content: end;
  padding: 0 0 clamp(18px, 4vw, 42px);
}

.portfolio-index-head p {
  width: min(360px, 100%);
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 6vw, 96px) clamp(14px, 3vw, 42px);
}

.work-card {
  position: relative;
  display: grid;
  grid-column: span 5;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.work-card:nth-child(6n + 1),
.work-card:nth-child(6n + 4) {
  grid-column: span 7;
}

.work-card:nth-child(6n + 2) {
  margin-top: clamp(62px, 12vw, 180px);
}

.work-card:nth-child(6n + 3) {
  grid-column: 2 / span 5;
}

.work-card:nth-child(6n + 5) {
  grid-column: 8 / span 4;
  margin-top: clamp(34px, 8vw, 120px);
}

.work-card:nth-child(6n) {
  grid-column: 3 / span 8;
}

.work-card figure,
.work-hero-media,
.gallery-item figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.42);
}

.work-card figure {
  aspect-ratio: var(--ratio, 4 / 5);
}

.work-card:nth-child(3n + 2) figure {
  --ratio: 16 / 10;
}

.work-card:nth-child(4n) figure {
  --ratio: 3 / 4;
}

.work-card img,
.work-hero-media img,
.work-hero-media video,
.gallery-item img,
.gallery-item video,
.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card img,
.gallery-item img,
.gallery-item video,
.work-hero-media img,
.work-hero-media video {
  opacity: 0;
  filter: blur(18px);
  transform: scale(1.025);
  transition: opacity 560ms ease, filter 720ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}

.work-card img.is-loaded,
.gallery-item img.is-loaded,
.gallery-item video,
.work-hero-media img.is-loaded,
.work-hero-media video {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.work-hero-media img.is-loaded {
  transform: scale(1.04);
}

.work-card:hover img {
  transform: scale(1.045);
}

.work-card-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: end;
}

.work-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.6vw, 4.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.88;
}

.work-card p,
.work-card span {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  line-height: 1.45;
  text-transform: uppercase;
}

.work-card span {
  justify-self: end;
  color: var(--quiet);
}

.work-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(56, 69, 78, 0.18), transparent 34rem),
    radial-gradient(circle at 84% 38%, rgba(14, 90, 138, 0.18), transparent 30rem),
    linear-gradient(180deg, #020506 0%, #071012 42%, #020303 100%);
  color: var(--light);
}

.portfolio-route-leaving .portfolio-app {
  opacity: 0;
  transform: scale(0.988);
  transition: opacity 360ms ease, transform 360ms ease;
}

.work-hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.work-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #13100c;
}

.work-hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.08) 0%, rgba(8, 7, 6, 0.1) 46%, rgba(8, 7, 6, 0.78) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.74), transparent 56%),
    radial-gradient(circle at 80% 20%, rgba(14, 90, 138, 0.2), transparent 28rem);
  content: "";
}

.work-hero-copy {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(116px, 18vh, 170px) clamp(20px, 7vw, 108px) clamp(96px, 16vh, 150px);
  text-align: center;
}

.back-link,
.work-cta {
  display: inline-flex;
  width: max-content;
  color: rgba(255, 250, 242, 0.74);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link {
  margin-bottom: clamp(16px, 4vh, 40px);
}

.work-hero-copy p {
  margin: 0;
  color: rgba(255, 250, 242, 0.72);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-hero-copy h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(4.2rem, 15vw, 12rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.82;
  text-wrap: balance;
}

.work-hero-copy dl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px 46px;
  margin: clamp(28px, 6vh, 58px) 0 30px;
}

.work-hero-copy dt {
  color: rgba(255, 250, 242, 0.42);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.work-hero-copy dd {
  margin: 6px 0 0;
  color: rgba(255, 250, 242, 0.86);
  font-size: 0.96rem;
}

.work-cta {
  border-bottom: 1px solid rgba(255, 250, 242, 0.5);
  padding-bottom: 8px;
}

.work-story {
  min-height: 72svh;
  display: grid;
  align-items: center;
  padding: clamp(86px, 13vw, 180px) clamp(20px, 8vw, 128px) clamp(48px, 8vw, 108px);
}

.work-story p {
  width: min(920px, 100%);
  margin: 0 auto 0 0;
  color: rgba(255, 250, 242, 0.72);
  font-family: var(--serif);
  font-size: clamp(2.4rem, 7vw, 6.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.work-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(18px, 3.8vw, 64px);
  padding: clamp(28px, 5vw, 72px) clamp(12px, 3vw, 54px) clamp(90px, 14vw, 180px);
  perspective: 1200px;
}

.gallery-item {
  display: block;
  grid-column: span 6;
  padding: 0;
  background: transparent;
  color: inherit;
  opacity: calc(0.62 + var(--scroll-focus, 0.42) * 0.38);
  filter:
    saturate(calc(0.76 + var(--scroll-focus, 0.42) * 0.34))
    brightness(calc(0.72 + var(--scroll-focus, 0.42) * 0.3));
  transform: translate3d(var(--drift-x, 0), var(--drift, 0), 0) scale(1);
  transition: opacity 700ms ease, filter 700ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}

.gallery-item[data-reveal] {
  opacity: 0;
  transform: translate3d(var(--drift-x, 0), calc(var(--drift, 0) + 26px), 0) scale(0.985);
}

.gallery-item[data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(var(--drift-x, 0), var(--drift, 0), 0) scale(1);
}

.gallery-item:nth-child(7n + 1),
.gallery-item:nth-child(7n + 5) {
  grid-column: span 12;
}

.gallery-item:nth-child(7n + 2) {
  grid-column: span 5;
  margin-top: clamp(32px, 8vw, 120px);
}

.gallery-item:nth-child(7n + 3) {
  grid-column: 7 / span 5;
}

.gallery-item:nth-child(7n + 4) {
  grid-column: 2 / span 4;
}

.gallery-item:nth-child(7n + 6) {
  grid-column: 8 / span 4;
}

.gallery-item figure {
  aspect-ratio: var(--gallery-ratio, 4 / 5);
  transform: translate3d(0, var(--media-y, 0), 0) scale(var(--media-scale, 1));
  transform-origin: center center;
  transition: transform 900ms cubic-bezier(.2,.8,.2,1), box-shadow 700ms ease, filter 700ms ease;
}

.gallery-item figure::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 50% 30%, transparent 0 46%, rgba(0, 0, 0, 0.2) 100%);
  content: "";
  pointer-events: none;
}

.gallery-item:hover figure,
.gallery-item:focus-visible figure {
  transform: translate3d(0, var(--media-y, 0), 0) scale(calc(var(--media-scale, 1) + 0.018));
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.58);
}

.gallery-item:nth-child(7n + 1) figure,
.gallery-item:nth-child(7n + 5) figure {
  --gallery-ratio: 16 / 9;
}

.gallery-item:nth-child(3n) figure {
  --gallery-ratio: 3 / 4;
}

.gallery-item:nth-child(5n) figure {
  --gallery-ratio: 1 / 1;
}

.gallery-video {
  grid-column: 1 / -1;
  cursor: default;
}

.gallery-video figure {
  --gallery-ratio: 16 / 9;
  position: relative;
  width: min(980px, 88vw);
  min-height: clamp(220px, 42vw, 560px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: rgba(8, 18, 24, 0.68);
}

.gallery-video figure::before {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.74);
  padding: 7px 10px;
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  content: "filme";
}

.gallery-video figure::after {
  background:
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(0, 0, 0, 0.32) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.gallery-video video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: min(72svh, 680px);
  object-fit: contain;
  opacity: 0;
  transition: opacity 520ms ease, filter 520ms ease;
}

.gallery-video-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  filter: saturate(0.86) contrast(0.92) brightness(0.72);
  transform: scale(1.012);
  transition: opacity 620ms ease, filter 620ms ease, transform 900ms cubic-bezier(.2,.8,.2,1);
}

.gallery-video.is-previewing .gallery-video-poster,
.gallery-video.is-playing-full .gallery-video-poster {
  opacity: 0;
  filter: saturate(1) contrast(1) brightness(1);
  transform: scale(1);
  pointer-events: none;
}

.gallery-video.is-previewing video,
.gallery-video.is-playing-full video {
  opacity: 1;
  filter: none;
}

.gallery-video.is-buffering .gallery-video-poster {
  opacity: 0.9;
  filter: saturate(0.82) contrast(0.9) brightness(0.54) blur(1px);
  transform: scale(1.018);
}

.gallery-video.has-no-poster video {
  opacity: 0.72;
}

.gallery-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  width: clamp(86px, 10vw, 118px);
  height: clamp(86px, 10vw, 118px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(2, 8, 12, 0.54);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.58rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: background 320ms ease, border-color 320ms ease, opacity 420ms ease, transform 520ms cubic-bezier(.2,.8,.2,1);
}

.gallery-video-play:hover,
.gallery-video-play:focus-visible {
  border-color: rgba(255, 255, 255, 0.54);
  background: rgba(14, 90, 138, 0.68);
  transform: translate(-50%, -50%) scale(1.04);
}

.gallery-video.is-buffering .gallery-video-play {
  overflow: hidden;
  width: clamp(108px, 12vw, 142px);
  height: clamp(108px, 12vw, 142px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(2, 8, 12, 0.66);
  color: rgba(255, 255, 255, 0.96);
  pointer-events: none;
}

.gallery-video.is-buffering .gallery-video-play::after {
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.14), rgba(118, 200, 255, 0.92), rgba(255, 255, 255, 0.14));
  content: "";
  animation: gallery-video-buffer 1.2s linear infinite;
}

.gallery-video.is-playing-full .gallery-video-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.94);
}

@keyframes gallery-video-buffer {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.work-journey-hud {
  position: fixed;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 18px;
  z-index: 45;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 54px;
  gap: 18px;
  align-items: center;
  pointer-events: none;
}

.work-journey-hud[hidden] {
  display: none;
}

.work-progress-line {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.work-progress-line span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.84);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 120ms linear;
}

.work-progress-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: min(460px, 52vw);
  border-radius: 999px;
  background: rgba(245, 242, 235, 0.92);
  color: #090909;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  padding: 9px 14px;
  backdrop-filter: blur(12px);
}

.work-progress-card span,
.work-progress-card small,
.work-progress-percent {
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-progress-card span,
.work-progress-card small {
  color: rgba(0, 0, 0, 0.54);
}

.work-progress-card strong {
  min-width: 0;
  overflow: hidden;
  color: #090909;
  font-family: var(--serif);
  font-size: clamp(0.98rem, 1.45vw, 1.35rem);
  font-weight: 400;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-progress-percent {
  min-width: 44px;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.work-progress-card.is-collected {
  animation: card-collected 1.5s cubic-bezier(.2,.8,.2,1);
}

.collection-peek {
  position: fixed;
  right: clamp(18px, 4vw, 54px);
  top: 50%;
  bottom: auto;
  z-index: 89;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  height: 30px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  color: rgba(255, 255, 255, 0.86);
  padding: 0 7px;
  text-align: center;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transform: translateY(-50%);
  transition: border-color 240ms ease, transform 240ms ease, background 240ms ease;
}

.collection-peek:hover,
.collection-peek:focus-visible,
.collection-peek.is-receiving {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(18, 10, 10, 0.62);
  transform: translateY(-50%) scale(1.03);
}

.collection-peek i {
  position: relative;
  display: block;
  width: 12px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 3px;
  transform: rotate(-4deg);
}

.collection-peek i::before,
.collection-peek i::after {
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 3px;
  content: "";
}

.collection-peek i::before {
  transform: translate(3px, 1px) rotate(8deg);
}

.collection-peek i::after {
  transform: translate(5px, 3px) rotate(13deg);
}

.collection-peek span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.collection-peek strong {
  font-family: var(--sans);
  font-size: 0.42rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1;
  transform: translateY(1px);
  text-transform: uppercase;
}

.portfolio-app[data-view="journey"] .collection-peek strong {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  min-width: 22px;
  min-height: 14px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.38rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.collection-toast {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 112;
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  width: min(720px, calc(100vw - 42px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 74% 18%, rgba(14, 90, 138, 0.18), transparent 20rem),
    rgba(5, 5, 5, 0.88);
  box-shadow: 0 36px 120px rgba(0, 0, 0, 0.58), 0 0 80px rgba(86, 164, 214, 0.12);
  padding: clamp(24px, 3.6vw, 38px);
  backdrop-filter: blur(22px);
  pointer-events: auto;
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.965);
  transition: opacity 820ms cubic-bezier(0.22, 1, 0.36, 1), transform 920ms cubic-bezier(0.16, 1, 0.3, 1), filter 920ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(10px);
}

.collection-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: blur(0);
}

.collection-toast p,
.collection-toast strong {
  margin: 0;
}

.collection-toast p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-toast strong {
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 400;
  line-height: 1.03;
}

.collection-toast div {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 2px;
}

.collection-toast button,
.collection-toast a {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  min-height: 58px;
  padding: 0 24px;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  display: inline-grid;
  align-items: center;
}

.collection-toast button:first-child {
  border-color: rgba(14, 90, 138, 0.92);
  background: #0E5A8A;
  color: #fff;
}

.collection-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
}

.collection-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.collection-drawer-panel {
  position: absolute;
  inset: clamp(16px, 3vw, 34px);
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(14, 90, 138, 0.18), transparent 22rem),
    rgba(4, 4, 4, 0.96);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.56);
  padding: clamp(22px, 5vw, 36px);
  animation: collection-drawer-in 520ms cubic-bezier(.2,.8,.2,1);
}

.collection-drawer-panel header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.collection-drawer-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.collection-drawer-panel h2 {
  max-width: 900px;
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 8.5rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
}

.collection-drawer-panel header strong {
  display: block;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: 0;
}

.collection-drawer-panel header span {
  display: block;
  max-width: 44ch;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.96rem;
  line-height: 1.55;
}

.collection-drawer-panel header button {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.collection-drawer-panel header button::before,
.collection-drawer-panel header button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.78);
  content: "";
}

.collection-drawer-panel header button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.collection-drawer-panel header button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.collection-progress {
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.collection-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  transform: scaleX(var(--collection-progress, 0));
  transform-origin: left center;
}

.collection-tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
}

.collection-tabs button {
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  padding: 10px 14px;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-tabs button[aria-pressed="true"] {
  background: rgba(245, 242, 235, 0.9);
  color: #090909;
}

.collection-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: min(760px, 100%);
}

.collection-category-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.58);
  padding: 0 11px;
  font-size: 0.52rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.collection-category-tabs button[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.collection-category-tabs button:disabled {
  cursor: default;
  opacity: 0.34;
}

.collection-category-tabs small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.5rem;
  letter-spacing: 0.04em;
}

.collection-empty {
  display: grid;
  place-items: start;
  gap: 16px;
  align-content: center;
  min-height: 260px;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(102, 179, 226, 0.12), transparent 42%),
    rgba(255, 255, 255, 0.035);
  padding: clamp(28px, 4vw, 46px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.collection-empty p {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
  text-transform: none;
}

.collection-empty a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.86);
  padding: 0 18px;
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 260ms var(--ease-cinematic),
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.collection-empty a:hover,
.collection-empty a:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  overflow: auto;
  padding: 4px 8px 12px 0;
}

.collection-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: auto;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  color: inherit;
  padding: 9px;
  text-decoration: none;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 320px 410px;
  transition:
    border-color var(--motion-normal) var(--ease-cinematic),
    filter var(--motion-normal) var(--ease-cinematic),
    opacity var(--motion-normal) var(--ease-cinematic),
    transform 560ms var(--ease-cinematic);
}

.collection-card figure {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.04);
}

.collection-card figure::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  content: "";
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter var(--motion-normal) var(--ease-cinematic), transform 680ms var(--ease-cinematic);
}

.collection-card div {
  min-width: 0;
  overflow: hidden;
  padding: 10px 2px 0;
}

.collection-card span,
.collection-card small {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.48rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.collection-card h3 {
  display: block;
  max-width: 100%;
  margin: 6px 0 5px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.45vw, 1.44rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card p {
  max-width: 100%;
  margin: 0 0 6px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.5rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.collection-card.is-locked {
  opacity: 0.72;
}

.collection-card.is-locked img {
  filter: grayscale(1) saturate(0.4) contrast(0.9) brightness(0.72);
}

.collection-card:hover,
.collection-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  transform: translate3d(0, -3px, 0);
}

.collection-card:hover img,
.collection-card:focus-visible img {
  transform: scale(1.035);
}

.collection-card.is-collected::after,
.collection-card.is-locked::after {
  position: absolute;
  top: 16px;
  right: 16px;
  max-width: calc(100% - 32px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 8px;
  font-size: 0.48rem;
  font-weight: 820;
  letter-spacing: 0.1em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  content: "a descobrir";
}

.collection-card.is-collected::after {
  background: rgba(14, 90, 138, 0.72);
  content: "coletado";
}

.collection-reset {
  justify-self: start;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  padding: 0;
  font-size: 0.62rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.collection-flight-card {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(245, 242, 235, 0.3);
  border-radius: 18px;
  background: rgba(7, 7, 7, 0.96);
  color: #fff;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.58), 0 0 90px rgba(14, 90, 138, 0.22);
  padding: 9px;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

.collection-flight-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 36%),
    radial-gradient(circle at 50% 20%, rgba(14, 90, 138, 0.22), transparent 42%);
  mix-blend-mode: screen;
  content: "";
  pointer-events: none;
}

.collection-flight-card figure {
  position: relative;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.collection-flight-card figure::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  content: "";
}

.collection-flight-card img {
  width: 100%;
  height: 100%;
  filter: grayscale(1) saturate(0.18) brightness(0.58);
  object-fit: cover;
  will-change: filter;
}

.collection-flight-card div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 5px 4px;
}

.collection-flight-card span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.5rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.collection-flight-card strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.62rem);
  font-weight: 400;
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-flight-card small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.5rem;
  font-weight: 820;
  letter-spacing: 0.12em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes card-collected {
  0%, 100% { box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34); transform: translateY(0) scale(1); }
  42% { box-shadow: 0 24px 76px rgba(14, 90, 138, 0.32); transform: translateY(-8px) scale(1.035); }
}

@keyframes collection-toast-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes collection-drawer-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes collection-sheet-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes collection-peek-pulse {
  0%, 100% { box-shadow: 0 18px 54px rgba(0, 0, 0, 0.28); }
  50% { box-shadow: 0 22px 72px rgba(14, 90, 138, 0.3); }
}

.portfolio-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
}

.portfolio-state p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(48px, 1fr) minmax(0, 78vw) minmax(48px, 1fr);
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.96);
  color: var(--light);
  padding: 22px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  display: grid;
  max-height: 92vh;
  margin: 0;
  gap: 12px;
}

.lightbox img {
  max-height: 86vh;
  object-fit: contain;
}

.lightbox figcaption {
  color: rgba(255, 250, 242, 0.62);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lightbox-actions a,
.lightbox-actions button {
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.84);
  padding: 0 16px;
  font-size: 0.62rem;
  font-weight: 860;
  letter-spacing: 0.16em;
  line-height: 36px;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 260ms var(--ease-cinematic),
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease;
}

.lightbox-actions button {
  line-height: 1;
}

.lightbox-actions a:hover,
.lightbox-actions a:focus-visible,
.lightbox-actions button:hover,
.lightbox-actions button:focus-visible,
.lightbox-actions button.is-copied {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: translateY(-2px);
}

.lightbox-actions button.is-copied::after {
  content: " copiado";
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  background: transparent;
  color: rgba(255, 250, 242, 0.78);
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-prev,
.lightbox-next {
  width: 44px;
  height: 44px;
  justify-self: center;
  border: 1px solid rgba(255, 250, 242, 0.25);
  border-radius: 50%;
  background: transparent;
  color: var(--light);
}

.lightbox-prev::before,
.lightbox-next::before {
  display: block;
  font-size: 1.4rem;
}

.lightbox-prev::before {
  content: "<";
}

.lightbox-next::before {
  content: ">";
}

[data-reveal] {
  opacity: 0;
  filter: blur(6px);
  transform: translate3d(0, 22px, 0);
  transition:
    opacity var(--motion-cinematic) var(--ease-cinematic),
    filter var(--motion-cinematic) var(--ease-cinematic),
    transform 1100ms var(--ease-cinematic);
}

[data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.portfolio-journey-intro .journey-intro-copy[data-reveal],
.portfolio-header[data-reveal] {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

@media (max-width: 760px) {
  .portfolio-header {
    padding: 14px 16px;
    mix-blend-mode: normal;
  }

  .portfolio-header nav {
    display: none;
  }

  .brand {
    width: 122px;
    min-height: 38px;
  }

  .portfolio-journey-intro,
  .portfolio-name-step {
    padding: 96px 18px 74px;
  }

  .journey-intro-brand {
    top: 18px;
    left: 50%;
    width: 124px;
  }

  .journey-intro-copy,
  .journey-name-card {
    gap: 18px;
  }

  .journey-intro-copy h1,
  .journey-name-card h1 {
    font-size: clamp(3.8rem, 18vw, 5.4rem);
    line-height: 0.9;
  }

  .journey-intro-actions {
    display: grid;
    width: min(100%, 280px);
  }

  .journey-intro-actions button,
  .journey-name-card button {
    width: 100%;
  }

  .journey-world-top {
    align-items: start;
    padding: 14px 16px;
  }

  .journey-world-top nav {
    display: none;
  }

  .journey-world-top p {
    max-width: 140px;
    text-align: right;
  }

  .journey-viewport {
    overflow: hidden;
    touch-action: none;
    perspective: 1300px;
  }

  .journey-space {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
  }

  .journey-frame,
  .journey-frame:hover,
  .journey-frame:focus-visible,
  .journey-frame.is-selected {
    position: absolute;
    width: min(56vw, 200px);
  }

  .journey-frame div,
  .journey-frame:hover div,
  .journey-frame:focus-visible div,
  .journey-frame.is-selected div {
    opacity: 0;
  }

  .journey-frame h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .journey-focus {
    left: 50%;
    right: auto;
    bottom: 72px;
    width: 68px;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: translateX(-50%);
    backdrop-filter: none;
  }

  .journey-focus h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .journey-focus p {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .journey-focus button {
    left: calc(100% + 10px);
    top: -10px;
    width: 26px;
    height: 26px;
  }

  .journey-focus a {
    width: 68px;
    height: 68px;
  }

  .journey-hint {
    left: 18px;
    transform: none;
  }

  .journey-map {
    left: 16px;
    bottom: 154px;
    width: 74px;
    height: 74px;
  }

  .portfolio-hero {
    min-height: 68svh;
    padding: 120px 18px 58px;
  }

  .portfolio-hero h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 11.8vw, 3rem);
    line-height: 0.95;
  }

  .portfolio-index {
    padding-inline: 12px;
  }

  .portfolio-index-head {
    justify-content: start;
    padding-inline: 6px;
  }

  .portfolio-grid,
  .work-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .work-card,
  .work-card:nth-child(n),
  .gallery-item,
  .gallery-item:nth-child(n) {
    grid-column: 1;
    margin-top: 0;
  }

  .work-card {
    gap: 12px;
  }

  .work-card figure {
    aspect-ratio: 4 / 5;
  }

  .work-card:nth-child(even) figure {
    aspect-ratio: 16 / 11;
  }

  .work-card-copy {
    grid-template-columns: 1fr;
    padding-inline: 4px;
  }

  .work-card span {
    justify-self: start;
  }

  .work-card h2 {
    font-size: clamp(2.2rem, 12vw, 4rem);
  }

  .work-hero {
    min-height: 92svh;
  }

  .work-hero-copy {
    padding: 104px 18px 110px;
  }

  .work-hero-copy h1 {
    font-size: clamp(4rem, 18vw, 6.2rem);
  }

  .work-story {
    padding: 72px 18px 28px;
  }

  .work-story p {
    font-size: clamp(2rem, 10vw, 3.6rem);
  }

  .work-gallery {
    padding-inline: 12px;
    gap: 38px;
  }

  .gallery-item figure,
  .gallery-item:nth-child(n) figure {
    aspect-ratio: 4 / 5;
  }

  .gallery-item:nth-child(3n) figure {
    aspect-ratio: 16 / 11;
  }

  .gallery-video figure,
  .gallery-video:nth-child(n) figure {
    aspect-ratio: 16 / 10;
  }

  .work-journey-hud {
    left: 12px;
    right: 12px;
    bottom: 12px;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    justify-items: center;
  }

  .work-progress-line {
    grid-column: 1 / -1;
    order: 2;
    width: 100%;
  }

  .work-progress-card {
    width: min(276px, calc(100vw - 82px));
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px;
    justify-self: center;
    padding: 8px 11px;
  }

  .work-progress-card small {
    display: none;
  }

  .work-progress-card strong {
    font-size: 1rem;
    text-align: left;
  }

  .work-progress-percent {
    position: absolute;
    top: 50%;
    right: 0;
    min-width: 38px;
    transform: translateY(-50%);
  }

  .collection-peek {
    top: 50%;
    right: 10px;
    bottom: auto;
    left: auto;
    width: 34px;
    height: 34px;
    min-width: 0;
    padding: 0;
    transform: translateY(-50%);
  }

  .collection-peek strong {
    font-size: 0.44rem;
  }

  .collection-toast {
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: min(420px, calc(100vw - 24px));
    padding: 18px 14px;
  }

  .collection-toast strong {
    font-size: 1.12rem;
  }

  .collection-toast div {
    display: grid;
  }

  .collection-toast button,
  .collection-toast a {
    width: 100%;
    text-align: center;
  }

  .collection-drawer-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(92svh, 760px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    padding: 22px 16px 18px;
    animation-name: collection-sheet-in;
  }

  .collection-drawer-panel h2 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .collection-drawer-panel header strong {
    font-size: 1.2rem;
  }

  .collection-drawer-panel header span {
    font-size: 0.86rem;
  }

  .collection-tabs {
    width: 100%;
  }

  .collection-tabs button {
    flex: 1;
    padding-inline: 8px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collection-card {
    height: 340px;
    min-height: 0;
    gap: 0;
    padding: 8px;
  }

  .collection-card figure {
    height: 220px;
    min-height: 0;
  }

  .collection-card span,
  .collection-card small {
    font-size: 0.5rem;
  }

  .collection-card h3 {
    font-size: 0.96rem;
  }

  .collection-card p {
    font-size: 0.54rem;
  }

  .collection-card::after {
    top: 13px;
    right: 13px;
    padding: 5px 7px;
    font-size: 0.48rem;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    background: rgba(5, 5, 4, 0.32);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  body:has(.portfolio-app[data-view="journey"]) {
    overflow: auto;
  }

  .portfolio-journey-world {
    overflow: auto;
  }

  .journey-viewport {
    overflow-y: auto;
    touch-action: pan-y;
  }

  .journey-space {
    position: relative;
    top: auto;
    left: auto;
    display: grid;
    gap: 42px;
    width: auto;
    height: auto;
    padding: 120px clamp(18px, 6vw, 72px) 140px;
    transform: none !important;
  }

  .journey-frame,
  .journey-frame:hover,
  .journey-frame:focus-visible,
  .journey-frame.is-selected {
    position: relative;
    width: min(420px, 88vw);
    transform: none;
  }

  .journey-frame div {
    opacity: 1;
    transform: none;
  }
}

/* Global portfolio audit: quieter museum density and compact controls */
:root {
  --audit-label: 0.56rem;
  --audit-copy: clamp(0.84rem, 1vw, 0.98rem);
  --audit-hero: clamp(3.35rem, 8.8vw, 8.8rem);
  --audit-section: clamp(2.6rem, 6.2vw, 6.8rem);
  --audit-card: clamp(1.5rem, 3.2vw, 3.4rem);
  --audit-page-x: clamp(16px, 4.8vw, 72px);
}

.portfolio-header {
  padding: clamp(12px, 1.8vw, 22px) var(--audit-page-x);
  opacity: 0.62;
}

.brand,
.portfolio-header nav,
.portfolio-kicker,
.journey-intro-brand,
.journey-world-top p,
.journey-world-top nav,
.journey-hint,
.journey-audio-toggle,
.work-progress-card span,
.work-progress-card small,
.work-progress-percent,
.collection-tabs button,
.collection-toast p,
.collection-toast button,
.collection-toast a,
.collection-card span,
.collection-card small,
.collection-reset {
  font-size: var(--audit-label);
  letter-spacing: 0.16em;
}

.portfolio-journey-intro,
.portfolio-name-step,
.portfolio-journey-loading,
.portfolio-journey-voice {
  padding: clamp(82px, 11vh, 126px) 18px 66px;
}

.journey-intro-copy,
.journey-name-card {
  gap: 18px;
  width: min(700px, 100%);
}

.journey-intro-copy h1,
.journey-name-card h1 {
  font-size: clamp(3.5rem, 8.4vw, 8rem);
  line-height: 0.9;
}

.journey-intro-copy > p:not(.portfolio-kicker) {
  max-width: 31ch;
  font-size: var(--audit-copy);
  line-height: 1.52;
}

.journey-intro-actions {
  gap: 9px 16px;
  margin-top: 6px;
}

.journey-intro-actions button,
.journey-name-card button {
  min-height: 38px;
  padding: 0 14px;
  font-size: var(--audit-label);
  font-weight: 760;
}

.journey-intro-actions button:first-child,
.journey-name-card button,
.collection-toast button:first-child {
  background: rgba(14, 90, 138, 0.76);
}

.journey-voice-words {
  width: min(760px, calc(100vw - 64px));
  font-size: clamp(1.25rem, 2.65vw, 3.05rem);
  line-height: 1.16;
}

.journey-name-card label {
  width: min(360px, 100%);
}

.journey-name-card input {
  padding: 10px 0;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
}

.journey-frame {
  width: clamp(176px, 19vw, 270px);
}

.journey-frame.is-selected {
  width: clamp(240px, 23vw, 340px);
}

.journey-frame h2 {
  font-size: clamp(1.45rem, 2.7vw, 2.9rem);
  line-height: 0.98;
}

.journey-frame > span {
  font-size: 1.18rem;
}

.journey-focus {
  bottom: clamp(64px, 7vw, 96px);
}

.journey-focus a {
  width: 78px;
  height: 78px;
  font-size: var(--audit-label);
}

.journey-map {
  width: 80px;
  height: 80px;
}

.portfolio-hero {
  min-height: min(76vh, 720px);
  padding: clamp(112px, 16vh, 168px) var(--audit-page-x) clamp(58px, 10vh, 104px);
}

.portfolio-hero h1 {
  max-width: 780px;
  font-size: var(--audit-hero);
  line-height: 0.9;
}

.portfolio-index {
  padding: 0 var(--audit-page-x) clamp(76px, 10vw, 128px);
}

.portfolio-index-head p {
  width: min(300px, 100%);
  font-size: var(--audit-copy);
  line-height: 1.48;
}

.portfolio-grid {
  gap: clamp(24px, 4.8vw, 72px) clamp(14px, 2.8vw, 34px);
}

.work-card {
  gap: 10px;
}

.work-card figure,
.work-hero-media,
.gallery-item figure {
  box-shadow: 0 26px 86px rgba(0, 0, 0, 0.38);
}

.work-card h2 {
  font-size: var(--audit-card);
  line-height: 0.94;
}

.work-card p,
.work-card span {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
}

.work-hero-copy {
  gap: 12px;
  width: min(820px, 100%);
}

.work-hero-copy h1 {
  max-width: 760px;
  font-size: var(--audit-hero);
  line-height: 0.86;
}

.work-hero-copy dl {
  gap: 14px 32px;
  margin: clamp(18px, 4vh, 38px) 0 20px;
}

.work-hero-copy p,
.work-hero-copy dt,
.work-hero-copy dd {
  font-size: var(--audit-label);
}

.work-story {
  min-height: 58svh;
  padding: clamp(70px, 10vw, 132px) var(--audit-page-x) clamp(36px, 6vw, 82px);
}

.work-story p {
  width: min(760px, 100%);
  font-size: var(--audit-section);
  line-height: 1;
}

.work-gallery {
  gap: clamp(16px, 3.2vw, 48px);
  padding: clamp(24px, 4vw, 58px) clamp(12px, 2.7vw, 44px) clamp(84px, 12vw, 148px);
}

.work-progress-card {
  width: min(390px, 46vw);
  gap: 8px;
  padding: 7px 12px;
}

.work-progress-card strong {
  font-size: clamp(0.88rem, 1.2vw, 1.12rem);
}

.collection-peek {
  width: 54px;
  height: 54px;
}

.collection-peek strong {
  font-size: 1rem;
}

.collection-toast {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  width: min(520px, calc(100vw - 32px));
  border-radius: 12px;
  padding: 18px 14px;
}

.collection-toast strong {
  font-size: 1.12rem;
}

.collection-drawer-panel {
  inset: clamp(14px, 2.4vw, 28px);
  gap: 14px;
  border-radius: 18px;
  padding: clamp(18px, 3.6vw, 28px);
}

.collection-drawer-panel h2 {
  max-width: 760px;
  font-size: clamp(2.35rem, 5vw, 5.4rem);
  line-height: 0.94;
}

.collection-empty {
  align-content: start;
  min-height: 180px;
  padding-top: clamp(18px, 4vh, 42px);
}

.collection-empty p {
  max-width: 28ch;
  font-size: clamp(1.35rem, 2.6vw, 2.6rem);
  line-height: 1.04;
}

.collection-drawer-panel header strong {
  margin-top: 10px;
  font-size: clamp(1.05rem, 1.6vw, 1.55rem);
}

.collection-drawer-panel header span {
  max-width: 36ch;
  font-size: 0.86rem;
  line-height: 1.42;
}

.collection-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}

.collection-card {
  height: 354px;
  min-height: 0;
  border-radius: 12px;
  padding: 8px;
}

.collection-card figure {
  height: clamp(186px, 20vw, 260px);
  border-radius: 8px;
}

.collection-card h3 {
  font-size: clamp(1.08rem, 1.45vw, 1.45rem);
  line-height: 1.02;
}

.collection-card p {
  margin-top: 3px;
  font-size: 0.54rem;
}

.lightbox {
  grid-template-columns: minmax(40px, 1fr) minmax(0, 74vw) minmax(40px, 1fr);
}

@media (max-width: 760px) {
  :root {
    --audit-hero: clamp(3.25rem, 14.2vw, 5.2rem);
    --audit-section: clamp(2rem, 9vw, 3.35rem);
    --audit-card: clamp(1.85rem, 9vw, 3.1rem);
  }

  .portfolio-journey-intro,
  .portfolio-name-step {
    padding: 88px 18px 68px;
  }

  .journey-intro-copy h1,
  .journey-name-card h1 {
    font-size: clamp(3.1rem, 15vw, 4.65rem);
  }

  .journey-intro-actions {
    width: min(100%, 238px);
  }

  .journey-intro-actions button,
  .journey-name-card button {
    min-height: 40px;
    white-space: nowrap;
  }

  .journey-voice-words {
    font-size: clamp(1.1rem, 5.8vw, 1.7rem);
  }

  .journey-frame,
  .journey-frame:hover,
  .journey-frame:focus-visible,
  .journey-frame.is-selected {
    width: min(52vw, 186px);
  }

  .portfolio-hero {
    min-height: 60svh;
    padding: 104px 18px 52px;
  }

  .portfolio-index {
    padding-inline: 16px;
  }

  .portfolio-grid,
  .work-gallery {
    gap: 42px;
  }

  .work-card h2 {
    font-size: clamp(1.85rem, 9.2vw, 3.1rem);
  }

  .work-hero-copy h1 {
    font-size: clamp(3.35rem, 15.5vw, 5.35rem);
  }

  .work-progress-card {
    width: min(246px, calc(100vw - 86px));
  }

  .collection-drawer-panel {
    height: min(90svh, 720px);
    border-radius: 18px 18px 0 0;
  }

  .collection-drawer-panel h2 {
    font-size: clamp(2rem, 9.4vw, 3rem);
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .collection-card {
    height: 274px;
  }

  .collection-card figure {
    height: 172px;
  }

  .collection-card h3 {
    font-size: 0.94rem;
  }
}

/* Portfolio world correction: clean 3D exhibition, image-only until click */
.portfolio-journey-world {
  background: #010303;
}

.journey-world-webgl {
  opacity: 0.24;
}

.journey-world-bg::before {
  opacity: 0.18;
}

.journey-world-bg::after {
  opacity: 0.64;
}

.journey-frame {
  gap: 0;
  width: clamp(180px, 17vw, 260px);
  contain: layout paint;
  filter: blur(var(--depth-blur, 0)) brightness(var(--depth-light, 0.86)) saturate(var(--depth-sat, 0.92));
  transition: opacity 240ms ease, filter 280ms ease;
  will-change: transform, opacity;
}

.journey-frame.is-selected {
  width: clamp(260px, 22vw, 350px);
  will-change: transform;
}

.journey-frame figure {
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
}

.journey-frame figure::after {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.journey-frame img {
  filter: blur(8px) saturate(0.88);
  transform: scale(1.018);
  transition: opacity 360ms ease, filter 420ms ease, transform 620ms cubic-bezier(.2,.8,.2,1);
}

.journey-frame img.is-loaded {
  filter: none;
  transform: scale(1);
}

.journey-frame > span {
  display: none;
}

.journey-frame div,
.journey-frame:hover div,
.journey-frame:focus-visible div {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.journey-frame:hover,
.journey-frame:focus-visible {
  filter: blur(var(--depth-blur, 0)) brightness(calc(var(--depth-light, 0.86) + 0.06)) saturate(var(--depth-sat, 0.92));
}

.journey-frame:hover figure::after,
.journey-frame:focus-visible figure::after {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.journey-frame.is-selected {
  opacity: 1;
  filter: blur(0) brightness(1.08) saturate(1.04);
}

.journey-frame.is-selected figure {
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
}

.journey-frame.is-selected figure::after {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(14, 90, 138, 0.28);
}

.journey-frame.is-receded {
  opacity: calc(var(--depth-opacity, 0.7) * 0.36);
  filter: blur(calc(var(--depth-blur, 0px) + 0.6px)) brightness(0.58) saturate(0.76);
}

.journey-frame.is-selected div,
.journey-frame.is-selected:hover div,
.journey-frame.is-selected:focus-visible div {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}

.journey-frame.is-selected.is-revealed div,
.journey-frame.is-selected.is-revealed:hover div,
.journey-frame.is-selected.is-revealed:focus-visible div {
  opacity: 1;
}

.journey-frame.is-selected h2 {
  font-size: clamp(1.35rem, 2vw, 2.35rem);
  line-height: 0.98;
}

.journey-frame.is-selected p {
  font-size: 0.54rem;
  letter-spacing: 0.14em;
}

.journey-focus a {
  width: 76px;
  height: 76px;
  background: rgba(0, 0, 0, 0.34);
  animation-duration: 3.2s;
}

.journey-map {
  width: 72px;
  height: 72px;
  box-shadow: none;
}

.journey-map > span {
  box-shadow: 0 0 12px rgba(14, 90, 138, 0.44);
}

/* Spatial gallery: brighter blue atmosphere, denser particles and stronger front depth */
.portfolio-journey-world {
  background:
    radial-gradient(circle at 50% 56%, rgba(29, 78, 112, 0.38), transparent 42rem),
    radial-gradient(circle at 18% 34%, rgba(55, 112, 152, 0.28), transparent 34rem),
    radial-gradient(circle at 82% 22%, rgba(14, 90, 138, 0.12), transparent 30rem),
    linear-gradient(180deg, #02090f 0%, #04131b 48%, #010508 100%);
}

.journey-world-webgl {
  opacity: 0.58;
  mix-blend-mode: screen;
}

.journey-world-bg {
  background:
    radial-gradient(ellipse at 52% 82%, rgba(63, 126, 166, 0.42), transparent 34rem),
    radial-gradient(circle at 22% 32%, rgba(47, 107, 148, 0.36), transparent 30rem),
    radial-gradient(circle at 78% 28%, rgba(34, 80, 118, 0.3), transparent 34rem),
    repeating-radial-gradient(ellipse at 50% 88%, transparent 0 42px, rgba(190, 225, 255, 0.035) 43px 44px, transparent 45px 92px),
    linear-gradient(180deg, #02090f, #061722 48%, #010508);
}

.journey-world-bg::before {
  opacity: 0.34;
  background:
    radial-gradient(circle at 20% 40%, rgba(220, 244, 255, 0.08), transparent 22rem),
    linear-gradient(rgba(210, 238, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210, 238, 255, 0.026) 1px, transparent 1px);
  background-size: 76px 76px;
}

.journey-world-bg::after {
  opacity: 0.82;
  background:
    radial-gradient(circle at 30% 34%, rgba(215, 240, 255, 0.08), transparent 18rem),
    radial-gradient(circle at 50% 50%, transparent 0 42%, rgba(0, 8, 14, 0.5) 100%);
}

.journey-frame {
  width: clamp(210px, 20vw, 330px);
}

.journey-frame.is-selected {
  width: clamp(390px, 34vw, 610px);
}

.journey-frame figure {
  box-shadow: 0 32px 90px rgba(0, 8, 14, 0.55), 0 0 48px rgba(75, 142, 180, 0.14);
}

.journey-frame.is-selected figure {
  box-shadow: 0 44px 130px rgba(0, 8, 14, 0.68), 0 0 86px rgba(119, 184, 218, 0.2);
}

.journey-frame.is-selected figure::after {
  border-color: rgba(224, 244, 255, 0.38);
  box-shadow: inset 0 0 0 1px rgba(160, 218, 255, 0.22), 0 0 58px rgba(82, 157, 198, 0.2);
}

.journey-frame.is-receded {
  opacity: calc(var(--depth-opacity, 0.72) * 0.52);
  filter: blur(calc(var(--depth-blur, 0px) + 0.35px)) brightness(0.72) saturate(0.88);
}

@media (max-width: 760px) {
  .journey-world-webgl {
    opacity: 0.48;
  }

  .journey-frame,
  .journey-frame:hover,
  .journey-frame:focus-visible {
    width: min(62vw, 230px);
  }

  .journey-frame.is-selected,
  .journey-frame.is-selected:hover,
  .journey-frame.is-selected:focus-visible {
    width: min(82vw, 360px);
  }
}

@media (max-width: 760px) {
  .journey-frame,
  .journey-frame:hover,
  .journey-frame:focus-visible,
  .journey-frame.is-selected {
    width: min(52vw, 190px);
  }

  .journey-frame.is-selected {
    width: min(68vw, 250px);
  }

  .journey-focus a {
    width: 70px;
    height: 70px;
  }

  .journey-map {
    width: 64px;
    height: 64px;
  }

  .collection-peek,
  .portfolio-app[data-view="journey"] .collection-peek {
    width: 34px;
    height: 34px;
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: none;
  }

  .collection-peek strong,
  .portfolio-app[data-view="journey"] .collection-peek strong {
    font-size: 0.44rem;
  }

  .portfolio-app[data-view="journey"] .journey-hint {
    left: 50%;
    bottom: 42px;
    width: min(68vw, 280px);
    transform: translateX(-50%);
    text-align: center;
    font-size: 0.5rem;
    line-height: 1.35;
    letter-spacing: 0.13em;
  }

  .portfolio-app[data-view="journey"] .journey-audio-toggle {
    right: 16px;
    bottom: 18px;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
  }
}

/* Gallery proportion correction: preserve the photographer's original framing */
.work-hero-media {
  display: grid;
  place-items: center;
  padding: clamp(22px, 5vw, 72px);
}

.work-hero-media img,
.work-hero-media video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.work-hero-media img.is-loaded {
  transform: none;
}

.gallery-item,
.gallery-item:nth-child(n) {
  grid-column: span 5;
}

.gallery-item.is-landscape,
.gallery-item.is-landscape:nth-child(n) {
  grid-column: span 10;
}

.gallery-item.is-portrait,
.gallery-item.is-portrait:nth-child(n) {
  grid-column: span 4;
}

.gallery-item.is-square,
.gallery-item.is-square:nth-child(n) {
  grid-column: span 5;
}

.gallery-item figure,
.gallery-item:nth-child(n) figure,
.gallery-item.is-landscape figure,
.gallery-item.is-portrait figure,
.gallery-item.is-square figure {
  display: grid;
  min-height: 0;
  aspect-ratio: auto;
  place-items: center;
  padding: clamp(8px, 1.4vw, 18px);
  overflow: visible;
}

.gallery-item img,
.gallery-item video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(88svh, 1080px);
  object-fit: contain;
}

.gallery-item.is-portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(92svh, 1180px);
}

.gallery-video video {
  width: 100%;
}

.lightbox figure {
  place-items: center;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

@media (max-width: 760px) {
  .work-hero-media {
    padding: 18px;
  }

  .gallery-item,
  .gallery-item:nth-child(n),
  .gallery-item.is-landscape,
  .gallery-item.is-portrait,
  .gallery-item.is-square {
    grid-column: 1;
  }

  .gallery-item figure,
  .gallery-item:nth-child(n) figure {
    padding: 8px;
  }

  .gallery-item img,
  .gallery-item.is-portrait img,
  .gallery-item video {
    width: 100%;
    height: auto;
    max-height: none;
  }
}

.portfolio-journey-intro[hidden],
.portfolio-name-step[hidden],
.portfolio-journey-loading[hidden],
.portfolio-journey-voice[hidden],
.portfolio-journey-world[hidden],
.collection-peek[hidden],
.collection-toast[hidden],
.collection-drawer[hidden],
.lightbox[hidden],
[hidden] {
  display: none !important;
}

.collection-peek {
  width: auto;
  height: 42px;
  border-radius: 8px;
}

/* Portfolio intro title: quiet, single-line cinematic entry */
.portfolio-journey-intro .journey-intro-copy {
  width: min(980px, calc(100vw - 48px));
}

.portfolio-journey-intro .journey-intro-copy h1 {
  max-width: 96vw;
  overflow: hidden;
  font-size: clamp(2.35rem, 4.5vw, 4.8rem);
  line-height: 0.96;
  text-overflow: clip;
  white-space: nowrap;
}

.portfolio-journey-voice .journey-voice-words {
  width: min(760px, calc(100vw - 64px));
  font-size: clamp(1.25rem, 2.65vw, 3.05rem);
  line-height: 1.16;
}

.portfolio-name-step .journey-name-card h1 {
  max-width: 96vw;
  overflow: hidden;
  font-size: clamp(2rem, 3.8vw, 4rem);
  line-height: 1;
  text-overflow: clip;
  white-space: nowrap;
}

.portfolio-name-step .journey-name-card {
  width: min(1120px, calc(100vw - 48px));
}

.portfolio-journey-intro .portfolio-kicker,
.portfolio-name-step .portfolio-kicker,
.journey-intro-copy > p:not(.portfolio-kicker),
.journey-name-card label span {
  max-width: calc(100vw - 48px);
  overflow: hidden;
  font-size: 0.54rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.journey-intro-copy > p:not(.portfolio-kicker) {
  width: min(520px, calc(100vw - 48px));
  font-size: clamp(0.76rem, 0.9vw, 0.9rem);
  line-height: 1.35;
}

@media (max-width: 760px) {
  .portfolio-journey-intro .journey-intro-copy {
    width: min(100%, calc(100vw - 28px));
  }

  .portfolio-journey-intro .journey-intro-copy h1 {
    max-width: calc(100vw - 28px);
    font-size: clamp(1.9rem, 8.8vw, 2.85rem);
    line-height: 1;
  }

  .portfolio-journey-voice .journey-voice-words {
    width: min(100%, calc(100vw - 44px));
    font-size: clamp(1.1rem, 5.8vw, 1.7rem);
    line-height: 1.18;
  }

  .portfolio-name-step .journey-name-card h1 {
    max-width: calc(100vw - 28px);
    font-size: clamp(1.65rem, 7.2vw, 2.45rem);
    line-height: 1;
  }

  .portfolio-name-step .journey-name-card {
    width: min(100%, calc(100vw - 28px));
  }

  .portfolio-journey-intro .portfolio-kicker,
  .portfolio-name-step .portfolio-kicker,
  .journey-intro-copy > p:not(.portfolio-kicker),
  .journey-name-card label span {
    max-width: calc(100vw - 32px);
    font-size: 0.5rem;
    white-space: nowrap;
  }

  .journey-intro-copy > p:not(.portfolio-kicker) {
    width: min(330px, calc(100vw - 32px));
    font-size: 0.72rem;
  }

  .journey-loading-copy strong {
    font-size: clamp(1.9rem, 12vw, 3rem);
  }

  .collection-peek,
  .portfolio-app[data-view="journey"] .collection-peek {
    width: auto;
    height: 42px;
  }
}

/* Gallery title system: variable names must never dominate the photograph */
.gallery-title {
  max-width: min(88vw, 1100px);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: var(--fit-title-size, clamp(42px, 6vw, 96px));
  line-height: 0.92;
  text-wrap: balance;
}

@media (max-width: 768px) {
  .gallery-title {
    max-width: 92vw;
    font-size: var(--fit-title-size, clamp(32px, 12vw, 58px));
    line-height: 0.95;
  }
}

.gallery-title--hero {
  display: -webkit-box;
  max-width: min(82vw, 1040px);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-hero {
  align-items: end;
}

.work-hero-copy {
  align-self: end;
  padding-top: clamp(96px, 14vh, 140px);
  padding-bottom: clamp(88px, 12vh, 132px);
}

.work-hero-copy h1.gallery-title {
  max-width: min(82vw, 1040px);
  font-size: var(--fit-title-size, clamp(42px, 6vw, 96px));
  line-height: 0.92;
}

.work-hero-media::after {
  background:
    linear-gradient(180deg, rgba(8, 7, 6, 0.04) 0%, rgba(8, 7, 6, 0.16) 42%, rgba(8, 7, 6, 0.84) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 56%),
    radial-gradient(circle at 80% 20%, rgba(14, 90, 138, 0.16), transparent 28rem);
}

.gallery-title--journey {
  display: -webkit-box;
  max-width: min(72vw, 560px);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--fit-title-size, clamp(1.45rem, 2.2vw, 2.25rem));
  line-height: 0.96;
}

.journey-frame.is-selected div {
  inset: auto 20px 18%;
  transform: none;
}

.journey-frame.is-selected.is-revealed div,
.journey-frame.is-selected.is-revealed:hover div,
.journey-frame.is-selected.is-revealed:focus-visible div {
  transform: none;
}

.journey-frame.is-selected h2.gallery-title--journey {
  max-width: min(72vw, 560px);
  font-size: var(--fit-title-size, clamp(1.45rem, 2.2vw, 2.25rem));
  line-height: 0.96;
}

/* Final Journey scale lock: large foreground photographs like a cinematic room */
.portfolio-app[data-view="journey"] .journey-frame,
.portfolio-app[data-view="journey"] .journey-frame:hover,
.portfolio-app[data-view="journey"] .journey-frame:focus-visible {
  width: clamp(300px, 27vw, 520px);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:hover,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible {
  width: clamp(520px, 42vw, 760px);
}

.portfolio-app[data-view="journey"] .journey-frame figure {
  aspect-ratio: 4 / 5;
}

.portfolio-app[data-view="journey"] .journey-frame img {
  object-fit: cover;
}

@media (max-width: 760px) {
  .portfolio-app[data-view="journey"] .journey-frame,
  .portfolio-app[data-view="journey"] .journey-frame:hover,
  .portfolio-app[data-view="journey"] .journey-frame:focus-visible {
    width: min(70vw, 300px);
  }

  .portfolio-app[data-view="journey"] .journey-frame.is-selected,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:hover,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible {
    width: min(88vw, 420px);
  }
}

.gallery-title--card,
.gallery-title--collection {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: inherit;
  line-height: inherit;
  text-overflow: ellipsis;
  text-wrap: nowrap;
  white-space: nowrap;
}

.work-card h2.gallery-title--card {
  font-size: clamp(1.45rem, 3.1vw, 3.4rem);
  line-height: 0.96;
}

.collection-card h3.gallery-title--collection {
  font-size: clamp(1.05rem, 1.45vw, 1.34rem);
  line-height: 1.02;
}

@media (max-width: 760px) {
  .work-hero {
    min-height: 88svh;
  }

  .work-hero-copy {
    padding-top: 104px;
    padding-bottom: 86px;
  }

  .work-hero-copy h1.gallery-title {
    max-width: 92vw;
    font-size: var(--fit-title-size, clamp(32px, 12vw, 58px));
    line-height: 0.95;
    margin-top: clamp(118px, 18svh, 172px);
  }

  .journey-frame.is-selected div {
    inset: auto 14px 16%;
  }

  .journey-frame.is-selected h2.gallery-title--journey {
    max-width: min(74vw, 330px);
    font-size: var(--fit-title-size, clamp(1.24rem, 7vw, 2rem));
  }

  .work-card h2.gallery-title--card {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }
}

/* Reference-inspired spatial portfolio: blue galaxy depth, denser stars, larger front frames. */
.portfolio-app[data-view="journey"] .portfolio-journey-world {
  background:
    radial-gradient(circle at 48% 62%, rgba(70, 150, 202, 0.5), transparent 36rem),
    radial-gradient(circle at 20% 26%, rgba(83, 160, 216, 0.34), transparent 32rem),
    radial-gradient(circle at 82% 20%, rgba(42, 96, 146, 0.36), transparent 38rem),
    linear-gradient(180deg, #07131e 0%, #0b1b27 48%, #03080d 100%);
}

.portfolio-app[data-view="journey"] .journey-world-webgl {
  opacity: 0.88;
  mix-blend-mode: screen;
}

.portfolio-app[data-view="journey"] .journey-world-bg {
  background:
    radial-gradient(ellipse at 50% 82%, rgba(92, 172, 222, 0.46), transparent 36rem),
    radial-gradient(circle at 26% 38%, rgba(118, 190, 238, 0.18), transparent 22rem),
    radial-gradient(circle at 72% 36%, rgba(90, 159, 212, 0.22), transparent 30rem),
    repeating-radial-gradient(ellipse at 50% 90%, transparent 0 34px, rgba(203, 235, 255, 0.05) 35px 36px, transparent 37px 82px),
    linear-gradient(180deg, #07131e, #0d202f 54%, #02070c);
}

.portfolio-app[data-view="journey"] .journey-world-bg::before {
  opacity: 0.48;
  background:
    radial-gradient(circle at 18% 42%, rgba(230, 248, 255, 0.12), transparent 20rem),
    radial-gradient(circle at 58% 24%, rgba(230, 248, 255, 0.08), transparent 18rem),
    linear-gradient(rgba(220, 242, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 242, 255, 0.036) 1px, transparent 1px);
  background-size: auto, auto, 64px 64px, 64px 64px;
}

.portfolio-app[data-view="journey"] .journey-world-bg::after {
  opacity: 0.64;
  background:
    radial-gradient(circle at 52% 54%, transparent 0 38%, rgba(2, 10, 16, 0.4) 100%),
    linear-gradient(90deg, rgba(3, 10, 16, 0.32), transparent 34%, transparent 66%, rgba(3, 10, 16, 0.32));
}

.portfolio-app[data-view="journey"] .journey-frame,
.portfolio-app[data-view="journey"] .journey-frame:hover,
.portfolio-app[data-view="journey"] .journey-frame:focus-visible {
  width: clamp(150px, 13vw, 230px);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:hover,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible {
  width: clamp(260px, 21vw, 360px);
}

.portfolio-app[data-view="journey"] .journey-frame figure {
  box-shadow: 0 42px 110px rgba(0, 10, 18, 0.58), 0 0 72px rgba(116, 193, 238, 0.16);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected figure {
  box-shadow: 0 58px 150px rgba(0, 8, 14, 0.72), 0 0 110px rgba(143, 211, 250, 0.24);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected figure::after {
  border-color: rgba(236, 249, 255, 0.46);
  box-shadow: inset 0 0 0 1px rgba(170, 224, 255, 0.28), 0 0 70px rgba(103, 180, 226, 0.24);
}

@media (max-width: 760px) {
  .portfolio-app[data-view="journey"] .journey-world-webgl {
    opacity: 0.76;
  }

  .portfolio-app[data-view="journey"] .journey-frame,
  .portfolio-app[data-view="journey"] .journey-frame:hover,
  .portfolio-app[data-view="journey"] .journey-frame:focus-visible {
    width: min(42vw, 180px);
  }

  .portfolio-app[data-view="journey"] .journey-frame.is-selected,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:hover,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible {
    width: min(60vw, 280px);
  }
}

/* Intro video overlay: local lightweight space loop inspired by night-orbit footage. */
.portfolio-journey-intro .journey-space-video {
  position: absolute;
  inset: -2%;
  z-index: 0;
  width: 104%;
  height: 104%;
  object-fit: cover;
  opacity: 0.58;
  filter: saturate(1.18) contrast(1.08) brightness(0.74);
  mix-blend-mode: screen;
  pointer-events: none;
}

.portfolio-journey-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 58%, rgba(0, 0, 0, 0.1), transparent 18rem),
    radial-gradient(circle at 78% 24%, rgba(14, 90, 138, 0.18), transparent 30rem),
    linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.34) 44%, rgba(0, 0, 0, 0.72));
}

.portfolio-journey-intro .journey-webgl,
.portfolio-journey-intro .journey-particles {
  z-index: 2;
}

.portfolio-journey-intro .journey-webgl {
  opacity: 0.86;
  mix-blend-mode: screen;
}

.portfolio-journey-intro .journey-intro-copy {
  position: relative;
  z-index: 3;
}

.portfolio-journey-intro .journey-intro-brand {
  position: absolute;
  z-index: 3;
}

.portfolio-journey-intro .journey-skip {
  z-index: 3;
}

body.portfolio-page-entering .portfolio-journey-intro {
  animation: portfolio-intro-page-enter 1100ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.portfolio-page-entering .portfolio-journey-intro .journey-space-video,
body.portfolio-page-entering .portfolio-journey-intro .journey-webgl,
body.portfolio-page-entering .portfolio-journey-intro .journey-particles {
  animation: portfolio-intro-atmosphere-enter 1500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.portfolio-page-entering .portfolio-journey-intro .journey-intro-brand,
body.portfolio-page-entering .portfolio-journey-intro .journey-intro-copy,
body.portfolio-page-entering .portfolio-journey-intro .journey-skip {
  animation: portfolio-intro-content-enter 1050ms cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: 120ms;
}

@media (max-width: 760px) {
  .portfolio-journey-intro .journey-space-video {
    inset: -8%;
    width: 116%;
    height: 116%;
    opacity: 0.5;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-journey-intro .journey-space-video {
    display: none;
  }
}

/* Journey overlay stack repair: keep atmosphere continuous behind the HUD. */
.portfolio-app[data-view="journey"] .portfolio-journey-world {
  background:
    radial-gradient(circle at 50% 70%, rgba(78, 153, 205, 0.5), transparent 40rem),
    radial-gradient(circle at 50% 34%, rgba(84, 151, 198, 0.28), transparent 34rem),
    linear-gradient(180deg, #07131e 0%, #0b1d2b 58%, #04101a 100%);
  isolation: isolate;
}

.portfolio-app[data-view="journey"] .journey-world-bg {
  z-index: 0;
}

.journey-atmosphere-layers {
  position: absolute;
  inset: -12vh -10vw;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0);
}

.journey-fog,
.journey-light {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.journey-fog {
  width: 72vw;
  height: 34vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(204, 236, 255, 0.2), rgba(88, 164, 215, 0.09) 38%, transparent 72%);
  filter: blur(28px);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.journey-fog--near {
  left: -16vw;
  bottom: 4vh;
  animation: journey-fog-near 24s ease-in-out infinite alternate;
}

.journey-fog--mid {
  right: -20vw;
  top: 26vh;
  width: 66vw;
  height: 28vh;
  opacity: 0.42;
  filter: blur(38px);
  animation: journey-fog-mid 34s ease-in-out infinite alternate;
}

.journey-fog--far {
  left: 18vw;
  top: -4vh;
  width: 84vw;
  height: 24vh;
  opacity: 0.28;
  filter: blur(46px);
  animation: journey-fog-far 46s ease-in-out infinite alternate;
}

.journey-light {
  width: clamp(220px, 24vw, 520px);
  height: clamp(220px, 24vw, 520px);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(174, 224, 255, 0.28), rgba(80, 169, 226, 0.14) 36%, transparent 68%);
  filter: blur(18px);
  mix-blend-mode: screen;
  opacity: 0.34;
}

.journey-light--one {
  left: 8vw;
  top: 10vh;
  animation: journey-light-one 18s ease-in-out infinite;
}

.journey-light--two {
  right: 6vw;
  bottom: 14vh;
  background:
    radial-gradient(circle, rgba(255, 248, 218, 0.22), rgba(97, 185, 234, 0.11) 38%, transparent 70%);
  animation: journey-light-two 21s ease-in-out infinite;
}

.journey-light--three {
  left: 42vw;
  bottom: -6vh;
  width: clamp(280px, 34vw, 680px);
  height: clamp(220px, 26vw, 520px);
  opacity: 0.24;
  animation: journey-light-three 28s ease-in-out infinite;
}

.portfolio-app[data-view="journey"] .journey-world-webgl {
  z-index: 2;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-world-bg {
  animation: journey-world-bg-open 2400ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-world-webgl {
  animation: journey-world-stars-open 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-atmosphere-layers {
  animation: journey-atmosphere-open 2600ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-frame figure {
  animation: journey-frame-photo-open 1550ms cubic-bezier(0.19, 1, 0.22, 1) both;
  animation-delay: calc(min(var(--frame-i), 8) * 56ms + 160ms);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-world-top,
.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-map,
.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-hint,
.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-audio-toggle,
.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .collection-peek {
  animation: journey-hud-open 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-map {
  animation-delay: 420ms;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-hint,
.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-audio-toggle,
.portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .collection-peek {
  animation-delay: 620ms;
}

.portfolio-app[data-view="journey"] .journey-viewport {
  z-index: 3;
}

.portfolio-app[data-view="journey"] .journey-world-top {
  z-index: 12;
}

.portfolio-app[data-view="journey"] .journey-map,
.portfolio-app[data-view="journey"] .journey-hint,
.portfolio-app[data-view="journey"] .journey-audio-toggle {
  z-index: 14;
}

.portfolio-app[data-view="journey"] .journey-hint {
  padding: 0;
  background: transparent;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.52);
}

.portfolio-app[data-view="journey"] .journey-map {
  background:
    radial-gradient(circle, rgba(210, 238, 255, 0.08), transparent 62%),
    rgba(2, 12, 20, 0.24);
  box-shadow: inset 0 0 0 1px rgba(210, 238, 255, 0.1);
}

.portfolio-app[data-view="journey"] .journey-world-bg::after {
  opacity: 0.48;
  background:
    radial-gradient(circle at 50% 62%, transparent 0 46%, rgba(2, 10, 16, 0.28) 100%),
    linear-gradient(180deg, transparent 0%, rgba(2, 10, 16, 0.08) 72%, rgba(2, 10, 16, 0.18) 100%);
}

/* Collection cards density pass: compact text, stable cards and lighter scrolling. */
.collection-drawer-panel {
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  gap: 14px;
}

.collection-drawer-panel h2 {
  max-width: 680px;
  font-size: clamp(2.8rem, 5.8vw, 6.4rem);
  line-height: 0.88;
}

.collection-drawer-panel header strong {
  margin-top: 12px;
  font-size: clamp(1rem, 1.45vw, 1.45rem);
}

.collection-drawer-panel header span {
  max-width: 34ch;
  font-size: 0.8rem;
  line-height: 1.45;
}

.collection-tabs {
  padding: 3px;
}

.collection-tabs button {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.54rem;
  line-height: 1;
  white-space: nowrap;
}

.collection-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.collection-category-tabs button {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.58);
  padding: 0 10px;
  font-size: 0.5rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.collection-category-tabs button[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.collection-category-tabs button:disabled {
  opacity: 0.3;
}

.collection-category-tabs small {
  margin-left: 7px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.48rem;
  letter-spacing: 0.04em;
}

.collection-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
  overscroll-behavior: contain;
}

.collection-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: auto;
  min-height: 0;
  border-radius: 14px;
  padding: 9px;
  contain: content;
  content-visibility: auto;
  contain-intrinsic-size: 188px 340px;
}

.collection-card figure {
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
}

.collection-card div {
  min-width: 0;
  overflow: hidden;
  padding: 9px 2px 0;
}

.collection-card span,
.collection-card small,
.collection-card p,
.collection-card h3.gallery-title--collection {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collection-card span,
.collection-card small {
  display: block;
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  line-height: 1.2;
}

.collection-card h3.gallery-title--collection {
  margin: 6px 0 4px;
  font-size: clamp(1.02rem, 1.34vw, 1.26rem);
  line-height: 1;
}

.collection-card p {
  margin: 0 0 6px;
  font-size: 0.48rem;
  font-weight: 820;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.collection-card.is-collected::after,
.collection-card.is-locked::after {
  top: 16px;
  right: 16px;
  max-width: calc(100% - 32px);
  padding: 6px 8px;
  overflow: hidden;
  font-size: 0.46rem;
  letter-spacing: 0.1em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .collection-drawer-panel {
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 14px 16px;
  }

  .collection-drawer-panel h2 {
    max-width: 82vw;
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .collection-drawer-panel header strong {
    font-size: 1rem;
  }

  .collection-drawer-panel header span {
    display: none;
  }

  .collection-tabs,
  .collection-category-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .collection-tabs::-webkit-scrollbar,
  .collection-category-tabs::-webkit-scrollbar {
    display: none;
  }

  .collection-tabs button,
  .collection-category-tabs button {
    flex: 0 0 auto;
  }

  .collection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-right: 0;
  }

  .collection-card {
    padding: 8px;
    contain-intrinsic-size: 160px 300px;
  }

  .collection-card h3.gallery-title--collection {
    font-size: clamp(0.92rem, 4.5vw, 1.18rem);
  }
}

/* Collection drawer editorial typography pass: quieter hierarchy, cinematic reveal and denser card wall. */
.collection-drawer-backdrop {
  background:
    radial-gradient(circle at 50% 18%, rgba(11, 28, 38, 0.34), transparent 34rem),
    rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(0.78);
}

.collection-drawer-panel {
  --collection-line: rgba(255, 255, 255, 0.105);
  --collection-muted: rgba(232, 232, 226, 0.56);
  inset: clamp(18px, 2.4vw, 34px);
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: clamp(18px, 2.2vw, 30px) clamp(26px, 4vw, 72px);
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.14);
  border-radius: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(ellipse at 76% 4%, rgba(75, 150, 190, 0.18), transparent 30rem),
    radial-gradient(ellipse at 18% 20%, rgba(255, 255, 255, 0.052), transparent 24rem),
    radial-gradient(ellipse at 48% 118%, rgba(57, 132, 178, 0.2), transparent 42rem),
    linear-gradient(120deg, rgba(255, 255, 255, 0.052), transparent 34%),
    rgba(2, 5, 7, 0.96);
  box-shadow:
    0 34px 120px rgba(0, 0, 0, 0.68),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding: clamp(26px, 4vw, 52px);
  animation: collection-drawer-refined-in 740ms cubic-bezier(.16,.82,.18,1);
}

.collection-drawer-panel::before,
.collection-drawer-panel::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.collection-drawer-panel::before {
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1.7px),
    radial-gradient(circle at 44% 30%, rgba(134, 199, 235, 0.17) 0 1px, transparent 1.8px),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1.7px),
    radial-gradient(circle at 70% 72%, rgba(135, 205, 246, 0.12) 0 1px, transparent 1.8px),
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(255, 255, 255, 0.045) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 118px);
  background-size:
    180px 220px,
    260px 250px,
    220px 280px,
    310px 300px,
    auto,
    auto;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.2), #000 18%, #000 72%, transparent);
  opacity: 0.34;
  animation: collection-atmosphere-drift 16s linear infinite;
}

.collection-drawer-panel::after {
  right: -16%;
  bottom: -22%;
  z-index: 0;
  width: min(48vw, 780px);
  height: min(42vw, 640px);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(42, 116, 160, 0.18), rgba(42, 116, 160, 0.05) 46%, transparent 70%);
  filter: blur(22px);
}

.collection-drawer-panel > * {
  position: relative;
  z-index: 1;
}

.collection-drawer-panel header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(220px, 0.26fr);
  gap: clamp(22px, 4vw, 64px);
  align-items: start;
  padding-bottom: clamp(12px, 2vw, 20px);
}

.collection-drawer-panel header > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: clamp(16px, 3vw, 42px);
  align-items: end;
}

.collection-drawer-panel p {
  grid-column: 1 / -1;
  color: rgba(230, 231, 226, 0.52);
  font-size: clamp(0.58rem, 0.7vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.22em;
}

.collection-drawer-panel h2 {
  max-width: 11ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(3.6rem, 6.7vw, 8.15rem);
  font-weight: 360;
  letter-spacing: 0.01em;
  line-height: 0.88;
  text-wrap: balance;
  animation: collection-title-in 840ms cubic-bezier(.16,.82,.18,1) both 80ms;
}

.collection-drawer-panel header strong {
  align-self: end;
  max-width: 18ch;
  margin: 0 0 0.2em;
  color: rgba(255, 255, 255, 0.88);
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.55vw, 1.7rem);
  font-weight: 360;
  letter-spacing: 0.006em;
  line-height: 1.14;
  text-wrap: balance;
}

.collection-drawer-panel header span {
  grid-column: 2;
  max-width: 23ch;
  margin: 0;
  color: var(--collection-muted);
  font-size: clamp(0.78rem, 0.88vw, 0.94rem);
  font-weight: 420;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.collection-drawer-panel header button {
  justify-self: end;
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.055);
  transition:
    background 260ms ease,
    border-color 260ms ease,
    transform 420ms cubic-bezier(.16,.82,.18,1);
}

.collection-drawer-panel header button:hover,
.collection-drawer-panel header button:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.11);
  transform: rotate(90deg);
}

.collection-tabs,
.collection-category-tabs,
.collection-progress,
.collection-grid,
.collection-reset {
  animation: collection-control-in 640ms cubic-bezier(.16,.82,.18,1) both;
}

.collection-tabs {
  grid-column: 1;
  width: fit-content;
  align-self: start;
  border-color: var(--collection-line);
  background: rgba(255, 255, 255, 0.026);
  padding: 5px;
  animation-delay: 120ms;
}

.collection-tabs button {
  min-height: 38px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.collection-tabs button[aria-pressed="true"] {
  background: rgba(242, 240, 231, 0.92);
  color: #050607;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.collection-category-tabs {
  grid-column: 2;
  justify-self: end;
  justify-content: flex-end;
  max-width: min(720px, 100%);
  gap: 9px;
  animation-delay: 170ms;
}

.collection-category-tabs button {
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.105);
  background: rgba(255, 255, 255, 0.024);
  color: rgba(255, 255, 255, 0.56);
  padding: 0 12px;
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.collection-category-tabs button[aria-pressed="true"] {
  border-color: rgba(132, 191, 226, 0.42);
  background: rgba(17, 74, 108, 0.2);
  color: rgba(255, 255, 255, 0.92);
}

.collection-category-tabs small {
  font-variant-numeric: tabular-nums;
}

.collection-progress {
  grid-column: 1 / -1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  animation-delay: 220ms;
}

.collection-progress span {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(105, 184, 232, 0.84));
  box-shadow: 0 0 18px rgba(105, 184, 232, 0.34);
}

.collection-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(clamp(168px, 11vw, 224px), 1fr));
  gap: clamp(16px, 1.65vw, 28px);
  align-items: start;
  padding: 14px 10px 22px 0;
  align-content: start;
  animation-delay: 270ms;
  perspective: 1000px;
  scrollbar-color: rgba(117, 184, 224, 0.42) rgba(255, 255, 255, 0.045);
}

.collection-grid:has(.collection-card:only-child) {
  grid-template-columns: minmax(210px, 310px);
}

.collection-card {
  --card-depth: 0 26px 70px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: clamp(336px, 27vw, 430px);
  contain: none;
  content-visibility: visible;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(137, 204, 244, 0.13), transparent 16rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.028);
  padding: 11px;
  contain-intrinsic-size: 220px 390px;
  box-shadow:
    var(--card-depth),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transform: translate3d(0, 0, calc(var(--collection-card-index, 0) * -1px));
  animation: collection-card-materialize 700ms cubic-bezier(.16,.82,.18,1) both;
  animation-delay: calc(300ms + (var(--collection-card-index, 0) * 24ms));
  transform-style: preserve-3d;
}

.collection-card figure {
  flex: 0 0 auto;
  height: auto;
  min-height: clamp(224px, 21vw, 326px);
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.26),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.collection-card figure::after {
  inset: 10px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 0 36px rgba(255, 255, 255, 0.035);
}

.collection-card div {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  align-content: start;
  min-height: 88px;
  padding: 12px 4px 1px;
}

.collection-card span,
.collection-card small {
  color: rgba(235, 235, 228, 0.48);
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.collection-card h3.gallery-title--collection {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.93);
  font-size: clamp(1.14rem, 1.4vw, 1.48rem);
  font-weight: 360;
  letter-spacing: 0.008em;
  line-height: 1.04;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.collection-card p {
  margin: 0 0 2px;
  color: rgba(235, 235, 228, 0.62);
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.collection-card.is-locked {
  opacity: 0.82;
}

.collection-card.is-locked figure {
  background:
    radial-gradient(ellipse at 50% 16%, rgba(255, 255, 255, 0.12), transparent 8rem),
    linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.045);
}

.collection-card.is-locked img {
  filter: grayscale(1) saturate(0.42) contrast(1.06) brightness(0.55) blur(0.45px);
  transform: scale(1.015);
}

.collection-card::before {
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 46%, transparent 58%),
    radial-gradient(ellipse at 50% 0%, rgba(117, 196, 244, 0.12), transparent 48%);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-18%);
  transition:
    opacity 420ms var(--ease-cinematic),
    transform 760ms var(--ease-cinematic);
}

.collection-card > * {
  position: relative;
  z-index: 1;
}

.collection-card.is-collected::after,
.collection-card.is-locked::after {
  z-index: 3;
  top: 18px;
  right: 18px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(2, 6, 8, 0.54);
  backdrop-filter: blur(10px);
}

.collection-card.is-collected::after {
  border-color: rgba(126, 202, 246, 0.34);
  background: rgba(16, 93, 139, 0.76);
}

.collection-card:hover,
.collection-card:focus-visible {
  border-color: rgba(139, 205, 244, 0.42);
  box-shadow:
    0 30px 76px rgba(0, 0, 0, 0.43),
    0 0 46px rgba(82, 169, 222, 0.12);
  opacity: 1;
  transform: translate3d(0, -7px, 28px) rotateX(1.2deg);
}

.collection-card:hover::before,
.collection-card:focus-visible::before {
  opacity: 1;
  transform: translateX(12%);
}

.collection-reset {
  grid-column: 1 / -1;
  color: rgba(235, 235, 228, 0.46);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  animation-delay: 320ms;
}

@keyframes collection-drawer-refined-in {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(0, 22px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes collection-title-in {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(-18px, 18px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes collection-control-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes collection-card-materialize {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 18px, -80px) scale(0.965);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, calc(var(--collection-card-index, 0) * -1px)) scale(1);
  }
}

@keyframes collection-atmosphere-drift {
  from {
    background-position:
      0 0,
      0 0,
      0 0,
      0 0,
      0 0,
      0 0;
  }

  to {
    background-position:
      36px 54px,
      -42px 34px,
      28px -44px,
      -34px -28px,
      0 0,
      0 0;
  }
}

@media (max-width: 980px) {
  .collection-drawer-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
    gap: 14px;
  }

  .collection-drawer-panel header,
  .collection-drawer-panel header > div {
    grid-template-columns: 1fr auto;
    gap: 14px;
  }

  .collection-drawer-panel p,
  .collection-drawer-panel h2,
  .collection-drawer-panel header strong,
  .collection-drawer-panel header span,
  .collection-tabs,
  .collection-category-tabs,
  .collection-progress,
  .collection-grid,
  .collection-reset {
    grid-column: 1 / -1;
  }

  .collection-drawer-panel h2 {
    max-width: 10ch;
    font-size: clamp(2.7rem, 11vw, 5rem);
  }

  .collection-drawer-panel header strong {
    max-width: 28ch;
  }

  .collection-drawer-panel header span {
    max-width: 34ch;
  }

  .collection-category-tabs {
    justify-self: start;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .collection-drawer-panel {
    inset: 10px;
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .collection-drawer-panel header {
    padding-bottom: 4px;
  }

  .collection-drawer-panel header > div {
    display: block;
  }

  .collection-drawer-panel h2 {
    max-width: 8ch;
    margin-top: 6px;
    font-size: clamp(2.38rem, 13vw, 3.7rem);
    line-height: 0.9;
  }

  .collection-drawer-panel header strong {
    margin-top: 10px;
    font-size: 1.05rem;
    line-height: 1.18;
  }

  .collection-drawer-panel header span {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
  }

  .collection-grid,
  .collection-grid:has(.collection-card:only-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .collection-card {
    border-radius: 14px;
    min-height: 0;
    padding: 8px;
  }

  .collection-card figure {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .collection-card h3.gallery-title--collection {
    font-size: clamp(0.96rem, 4.8vw, 1.18rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-drawer-panel::before,
  .collection-card {
    animation: none;
  }
}

/* Collection completion modal: cinematic card handoff with calmer hierarchy. */
.collection-toast {
  isolation: isolate;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 28px);
  width: min(760px, calc(100vw - 48px));
  min-height: min(430px, calc(100vh - 64px));
  overflow: hidden;
  border-color: rgba(214, 234, 246, 0.22);
  border-radius: clamp(22px, 2vw, 30px);
  background:
    radial-gradient(ellipse at 14% 12%, rgba(255, 255, 255, 0.12), transparent 15rem),
    radial-gradient(ellipse at 84% 18%, rgba(86, 173, 224, 0.2), transparent 21rem),
    radial-gradient(ellipse at 50% 112%, rgba(38, 116, 164, 0.2), transparent 23rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.025) 40%, rgba(255, 255, 255, 0.055)),
    rgba(2, 5, 7, 0.94);
  box-shadow:
    0 0 0 100vmax rgba(0, 0, 0, 0.62),
    0 46px 140px rgba(0, 0, 0, 0.72),
    0 0 92px rgba(72, 158, 211, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: clamp(30px, 4.2vw, 54px);
  transform: translate(-50%, -44%) scale(0.955) rotateX(3deg);
  transition:
    opacity 760ms cubic-bezier(.16,.82,.18,1),
    transform 980ms cubic-bezier(.16,.82,.18,1),
    filter 980ms cubic-bezier(.16,.82,.18,1);
}

.collection-toast::before,
.collection-toast::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.collection-toast::before {
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(clamp(22px, 2vw, 30px) - 8px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 76px);
  mask-image: linear-gradient(180deg, transparent, #000 16%, #000 78%, transparent);
  opacity: 0.64;
}

.collection-toast::after {
  right: -18%;
  top: -30%;
  z-index: -1;
  width: min(48vw, 460px);
  height: min(48vw, 460px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125, 207, 255, 0.18), rgba(125, 207, 255, 0.05) 44%, transparent 68%);
  filter: blur(18px);
  transform: translate3d(0, 0, 0);
}

.collection-toast.is-visible {
  transform: translate(-50%, -50%) scale(1) rotateX(0deg);
}

.collection-toast p {
  max-width: 42ch;
  color: rgba(235, 239, 240, 0.62);
  font-size: clamp(0.62rem, 0.7vw, 0.76rem);
  font-weight: 900;
  letter-spacing: 0.2em;
}

.collection-toast strong {
  max-width: 13ch;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(2.05rem, 4.2vw, 4.1rem);
  font-weight: 360;
  letter-spacing: 0.006em;
  line-height: 0.96;
  text-wrap: balance;
}

.collection-toast div {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  justify-items: stretch;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.collection-toast button,
.collection-toast a {
  justify-content: center;
  min-height: 64px;
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.035);
  color: rgba(244, 244, 238, 0.78);
  padding: 0 18px;
  font-size: clamp(0.56rem, 0.72vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-align: center;
  transition:
    border-color 280ms ease,
    background 280ms ease,
    color 280ms ease,
    transform 420ms cubic-bezier(.16,.82,.18,1),
    box-shadow 420ms cubic-bezier(.16,.82,.18,1);
}

.collection-toast button:first-child {
  border-color: rgba(127, 204, 249, 0.54);
  background:
    linear-gradient(180deg, rgba(30, 117, 169, 0.98), rgba(12, 70, 106, 0.98));
  color: #fff;
  box-shadow: 0 16px 42px rgba(16, 101, 153, 0.3);
}

.collection-toast button:hover,
.collection-toast button:focus-visible,
.collection-toast a:hover,
.collection-toast a:focus-visible {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  transform: translate3d(0, -3px, 0);
}

.collection-toast.is-visible p {
  animation: toast-kicker-in 620ms cubic-bezier(.22,.72,.16,1) both 120ms;
}

.collection-toast.is-visible strong {
  animation: toast-title-in 980ms cubic-bezier(.16,.82,.18,1) both 220ms;
}

.collection-toast.is-visible div {
  animation: toast-actions-in 760ms cubic-bezier(.16,.82,.18,1) both 420ms;
}

@keyframes toast-kicker-in {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(-16px, 0, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes toast-title-in {
  from {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(22px, 18px, 0) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-actions-in {
  from {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(0, 18px, 0);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 760px) {
  .collection-toast {
    width: min(440px, calc(100vw - 24px));
    min-height: 0;
    padding: 24px 16px 18px;
  }

  .collection-toast::before {
    inset: 10px;
  }

  .collection-toast strong {
    max-width: 14ch;
    font-size: clamp(1.55rem, 8vw, 2.28rem);
  }

  .collection-toast div {
    grid-template-columns: 1fr;
  }

  .collection-toast button,
  .collection-toast a {
    width: 100%;
    min-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collection-toast.is-visible p,
  .collection-toast.is-visible strong,
  .collection-toast.is-visible div {
    animation: none;
  }
}

/* Final 3D room tuning: closer frames and continuous bottom atmosphere. */
.portfolio-app[data-view="journey"] .journey-world-bg,
.portfolio-app[data-view="journey"] .journey-world-webgl {
  inset: -7vh -5vw;
  width: auto;
  height: auto;
}

.portfolio-app[data-view="journey"] .journey-world-bg {
  background:
    radial-gradient(ellipse at 50% 78%, rgba(98, 181, 232, 0.44), transparent 38rem),
    radial-gradient(circle at 34% 34%, rgba(116, 190, 238, 0.16), transparent 28rem),
    radial-gradient(circle at 74% 38%, rgba(73, 143, 195, 0.18), transparent 32rem),
    repeating-radial-gradient(ellipse at 50% 90%, transparent 0 34px, rgba(203, 235, 255, 0.05) 35px 36px, transparent 37px 82px),
    linear-gradient(180deg, #07131e 0%, #0d2333 58%, #071725 100%);
}

.portfolio-app[data-view="journey"] .journey-world-bg::after {
  opacity: 0.58;
  background:
    radial-gradient(ellipse at 50% 70%, transparent 0 50%, rgba(2, 10, 16, 0.22) 100%),
    radial-gradient(ellipse at 50% 112%, rgba(86, 164, 214, 0.22), transparent 34rem);
}

.portfolio-app[data-view="journey"] .journey-viewport {
  inset: -7vh -5vw;
}

.portfolio-app[data-view="journey"] .journey-frame,
.portfolio-app[data-view="journey"] .journey-frame:hover,
.portfolio-app[data-view="journey"] .journey-frame:focus-visible {
  width: clamp(190px, 16vw, 310px);
  overflow: visible;
  contain: layout;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:hover,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible {
  width: clamp(340px, 28vw, 500px);
}

.portfolio-app[data-view="journey"] .journey-frame::before,
.portfolio-app[data-view="journey"] .journey-frame::after {
  position: absolute;
  pointer-events: none;
  content: "";
}

.portfolio-app[data-view="journey"] .journey-frame::before {
  left: 12%;
  right: 12%;
  top: calc(100% - 12px);
  z-index: 0;
  height: clamp(26px, 4.6vh, 54px);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 8, 14, 0.32), rgba(0, 8, 14, 0.14) 42%, transparent 76%);
  filter: blur(16px);
  opacity: 0.54;
  transform: translate3d(0, 14px, 0) scaleX(0.88);
}

.portfolio-app[data-view="journey"] .journey-frame::after {
  left: 4%;
  right: 4%;
  top: calc(100% - 2px);
  z-index: 0;
  height: clamp(58px, 13vh, 138px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(130, 209, 255, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(27, 92, 128, 0.2), rgba(27, 92, 128, 0.06) 42%, transparent 82%);
  filter: blur(12px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.18) 58%, transparent);
  opacity: 0.34;
  transform: translate3d(0, 0, -1px) scaleY(0.92);
}

.portfolio-app[data-view="journey"] .journey-frame figure {
  z-index: 2;
  overflow: hidden;
  box-shadow:
    0 18px 48px rgba(0, 8, 14, 0.34),
    0 0 44px rgba(116, 193, 238, 0.12);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected::before {
  left: 14%;
  right: 14%;
  height: clamp(34px, 5.6vh, 68px);
  opacity: 0.46;
  filter: blur(20px);
  transform: translate3d(0, 18px, 0) scaleX(0.82);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected::after {
  left: 5%;
  right: 5%;
  height: clamp(72px, 15vh, 156px);
  opacity: 0.42;
  filter: blur(14px);
  transform: translate3d(0, 0, -1px) scaleY(0.86);
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected figure {
  box-shadow:
    0 22px 62px rgba(0, 8, 14, 0.42),
    0 0 76px rgba(143, 211, 250, 0.18);
}

/* Reference room pass: dark editorial gallery, soft floor and stronger central hierarchy. */
.portfolio-app[data-view="journey"] .portfolio-journey-world {
  background:
    radial-gradient(ellipse at 50% 24%, rgba(37, 48, 58, 0.34), transparent 42rem),
    radial-gradient(circle at 78% 30%, rgba(22, 31, 40, 0.38), transparent 30rem),
    linear-gradient(180deg, #080d12 0%, #0a1016 52%, #060a0e 100%);
}

.portfolio-app[data-view="journey"] .journey-world-bg {
  background:
    radial-gradient(ellipse at 50% 76%, rgba(30, 42, 50, 0.46), transparent 48rem),
    radial-gradient(circle at 18% 36%, rgba(38, 51, 60, 0.28), transparent 32rem),
    radial-gradient(circle at 80% 24%, rgba(24, 35, 44, 0.42), transparent 34rem),
    linear-gradient(180deg, #080d12 0%, #0a1117 56%, #05090d 100%);
  animation-duration: 36s;
}

.portfolio-app[data-view="journey"] .journey-world-bg::before {
  opacity: 0.13;
  background:
    linear-gradient(104deg, transparent 0 43%, rgba(178, 205, 220, 0.08) 43.08% 43.14%, transparent 43.28%),
    linear-gradient(24deg, transparent 0 61%, rgba(178, 205, 220, 0.052) 61.08% 61.16%, transparent 61.28%);
  background-size: auto;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 82%, transparent 100%);
}

.portfolio-app[data-view="journey"] .journey-world-bg::after {
  opacity: 0.74;
  background:
    radial-gradient(ellipse at 50% 42%, transparent 0 34%, rgba(4, 8, 12, 0.48) 100%),
    linear-gradient(90deg, rgba(2, 5, 8, 0.62), transparent 28%, transparent 72%, rgba(2, 5, 8, 0.62));
  animation: none;
}

.journey-floor-plane {
  position: absolute;
  left: -10vw;
  right: -10vw;
  bottom: -8vh;
  z-index: 1;
  height: min(44vh, 420px);
  overflow: hidden;
  opacity: 0.74;
  perspective: 900px;
  transform: translateZ(0);
}

.journey-floor-plane::before,
.journey-floor-plane::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.journey-floor-plane::before {
  background:
    repeating-radial-gradient(ellipse at 49% 88%, transparent 0 18px, rgba(175, 202, 216, 0.08) 19px 20px, transparent 21px 44px),
    radial-gradient(ellipse at 50% 18%, rgba(130, 161, 176, 0.08), transparent 38rem);
  filter: blur(0.2px);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.22) 16%, #000 58%, transparent 100%);
  opacity: 0.5;
  transform: rotateX(68deg) translate3d(0, -12vh, 0) scale(1.32);
  transform-origin: 50% 100%;
}

.journey-floor-plane::after {
  background:
    linear-gradient(92deg, transparent 0 22%, rgba(206, 230, 240, 0.08) 22.08% 22.18%, transparent 22.32% 100%),
    linear-gradient(83deg, transparent 0 47%, rgba(206, 230, 240, 0.06) 47.08% 47.16%, transparent 47.3% 100%),
    linear-gradient(101deg, transparent 0 68%, rgba(206, 230, 240, 0.055) 68.08% 68.16%, transparent 68.3% 100%);
  filter: blur(1.4px);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.28) 20%, #000 60%, transparent 100%);
  opacity: 0.36;
  transform: rotateX(66deg) translate3d(0, -9vh, 0) scale(1.18);
  transform-origin: 50% 100%;
}

.portfolio-app[data-view="journey"] .journey-atmosphere-layers {
  z-index: 1;
}

.portfolio-app[data-view="journey"] .journey-fog {
  background:
    radial-gradient(ellipse at 50% 50%, rgba(162, 190, 204, 0.1), rgba(84, 111, 128, 0.045) 42%, transparent 74%);
  opacity: 0.28;
}

.portfolio-app[data-view="journey"] .journey-light {
  background:
    radial-gradient(circle, rgba(168, 201, 218, 0.12), rgba(82, 112, 132, 0.055) 38%, transparent 70%);
  opacity: 0.18;
}

.portfolio-app[data-view="journey"] .journey-world-webgl {
  opacity: 0.36;
}

.portfolio-app[data-view="journey"] .journey-frame,
.portfolio-app[data-view="journey"] .journey-frame:hover,
.portfolio-app[data-view="journey"] .journey-frame:focus-visible {
  width: clamp(168px, 14.5vw, 286px);
}

.portfolio-app[data-view="journey"] .journey-frame.is-front {
  opacity: 1;
  filter: blur(0) brightness(1.08) saturate(1.04);
}

.portfolio-app[data-view="journey"] .journey-frame.is-front figure {
  box-shadow:
    0 28px 86px rgba(0, 0, 0, 0.56),
    0 0 72px rgba(156, 179, 190, 0.12);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-world-bg,
.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-world-webgl,
.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-atmosphere-layers {
  filter: brightness(0.72) saturate(0.82);
  opacity: 0.82;
  transition:
    filter 1200ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-world-bg::after {
  opacity: 0.86;
  background:
    radial-gradient(ellipse at 50% 44%, transparent 0 24%, rgba(2, 5, 8, 0.66) 100%),
    linear-gradient(90deg, rgba(0, 3, 6, 0.74), transparent 27%, transparent 70%, rgba(0, 3, 6, 0.7));
}

.portfolio-app[data-view="journey"] .journey-frame:not(.is-front):not(.is-selected) figure {
  filter: brightness(0.72) saturate(0.82);
}

.portfolio-app[data-view="journey"] .journey-frame.is-receded,
.portfolio-app[data-view="journey"] .journey-frame:not(.is-front):not(.is-selected) {
  filter: blur(calc(var(--depth-blur, 0px) + 0.65px)) brightness(0.58) saturate(0.7);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-frame.is-receded {
  opacity: 0.22 !important;
  filter: blur(calc(var(--depth-blur, 0px) + 1.2px)) brightness(0.38) saturate(0.58);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-frame.is-selected {
  filter: blur(0) brightness(1.13) saturate(1.08);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-frame.is-selected figure {
  box-shadow:
    0 24px 74px rgba(0, 0, 0, 0.7),
    0 0 92px rgba(210, 225, 232, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-frame.is-selected img {
  filter: brightness(1.08) contrast(1.03) saturate(1.05);
}

.portfolio-app[data-view="journey"] .journey-frame::before {
  opacity: 0.36;
}

.portfolio-app[data-view="journey"] .journey-frame::after {
  opacity: 0.22;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(164, 193, 206, 0.08), transparent 64%),
    linear-gradient(180deg, rgba(45, 61, 72, 0.12), rgba(45, 61, 72, 0.035) 42%, transparent 82%);
}

.portfolio-app[data-view="journey"] .journey-frame.is-front::after,
.portfolio-app[data-view="journey"] .journey-frame.is-selected::after {
  opacity: 0.3;
}

.portfolio-app[data-view="journey"] .journey-map {
  background:
    radial-gradient(circle, rgba(220, 236, 244, 0.1), transparent 62%),
    rgba(2, 6, 10, 0.38);
}

@media (max-width: 760px) {
  .portfolio-app[data-view="journey"] .journey-space {
    will-change: transform;
  }

  .portfolio-app[data-view="journey"] .journey-frame,
  .portfolio-app[data-view="journey"] .journey-frame:hover,
  .portfolio-app[data-view="journey"] .journey-frame:focus-visible {
    width: min(50vw, 210px);
    contain: layout paint style;
    backface-visibility: hidden;
    will-change: transform, opacity;
  }

  .portfolio-app[data-view="journey"] .journey-frame.is-selected,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:hover,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible {
    width: min(72vw, 320px);
  }

  .portfolio-app[data-view="journey"] .journey-frame::before,
  .portfolio-app[data-view="journey"] .journey-frame::after {
    display: none;
  }

  .portfolio-app[data-view="journey"] .journey-frame figure,
  .portfolio-app[data-view="journey"] .journey-frame.is-front figure,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected figure {
    box-shadow:
      0 16px 42px rgba(0, 8, 14, 0.44),
      0 0 28px rgba(126, 188, 220, 0.1);
  }

  .portfolio-app[data-view="journey"] .portfolio-journey-world.is-opening .journey-frame figure {
    animation-duration: 1120ms;
  }
}

/* Collection peek: separated stacked-card icon and circular counter. */
.collection-peek,
.portfolio-app[data-view="journey"] .collection-peek {
  right: clamp(22px, 4vw, 64px);
  top: 50%;
  display: flex;
  align-items: center;
  gap: 18px;
  width: auto;
  height: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  transform: translateY(-50%);
}

.collection-peek:hover,
.collection-peek:focus-visible,
.collection-peek.is-receiving,
.portfolio-app[data-view="journey"] .collection-peek:hover,
.portfolio-app[data-view="journey"] .collection-peek:focus-visible,
.portfolio-app[data-view="journey"] .collection-peek.is-receiving {
  border: 0;
  background: transparent;
  transform: translateY(-50%) scale(1.02);
}

.collection-peek i,
.portfolio-app[data-view="journey"] .collection-peek i {
  position: relative;
  display: block;
  width: 20px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  background: transparent;
  transform: rotate(-8deg);
}

.collection-peek i::before,
.collection-peek i::after,
.portfolio-app[data-view="journey"] .collection-peek i::before,
.portfolio-app[data-view="journey"] .collection-peek i::after {
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(255, 255, 255, 0.72);
  border-radius: 2px;
  content: "";
}

.collection-peek i::before,
.portfolio-app[data-view="journey"] .collection-peek i::before {
  transform: translate(5px, 2px) rotate(10deg);
}

.collection-peek i::after,
.portfolio-app[data-view="journey"] .collection-peek i::after {
  display: none;
}

.collection-peek strong,
.portfolio-app[data-view="journey"] .collection-peek strong {
  position: static;
  display: grid;
  width: 58px;
  height: 58px;
  min-width: 58px;
  min-height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 12, 20, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: none;
  transform: none;
}

@media (max-width: 760px) {
  .collection-peek,
  .portfolio-app[data-view="journey"] .collection-peek {
    position: fixed;
    top: 50dvh;
    right: max(14px, env(safe-area-inset-right));
    gap: 12px;
    transform: translate3d(0, -50%, 0);
    z-index: 95;
  }

  .collection-peek:hover,
  .collection-peek:focus-visible,
  .collection-peek.is-receiving,
  .portfolio-app[data-view="journey"] .collection-peek:hover,
  .portfolio-app[data-view="journey"] .collection-peek:focus-visible,
  .portfolio-app[data-view="journey"] .collection-peek.is-receiving {
    transform: translate3d(0, -50%, 0) scale(1.02);
  }

  .collection-peek i,
  .portfolio-app[data-view="journey"] .collection-peek i {
    width: 16px;
    height: 22px;
  }

  .collection-peek strong,
  .portfolio-app[data-view="journey"] .collection-peek strong {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    font-size: 0.88rem;
  }
}

@keyframes journey-loading-mobile-drift {
  from {
    transform: translate3d(-4vw, -2dvh, 0) scale(1.08);
  }

  50% {
    transform: translate3d(2vw, 3dvh, 0) scale(1.14);
  }

  to {
    transform: translate3d(5vw, -1dvh, 0) scale(1.1);
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .portfolio-app {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }

  .portfolio-journey-intro,
  .portfolio-name-step,
  .portfolio-journey-loading,
  .portfolio-journey-voice {
    width: 100%;
    max-width: 100vw;
    min-height: 100dvh;
    overflow: hidden;
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .portfolio-journey-intro .journey-space-video {
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    opacity: 0.56;
    transform: scale(1.18);
    transform-origin: center center;
  }

  .journey-webgl {
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
  }

  .portfolio-journey-intro .journey-intro-copy {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .portfolio-journey-loading {
    background:
      radial-gradient(ellipse at 50% 58%, rgba(72, 122, 158, 0.3), transparent 62dvh),
      radial-gradient(circle at 78% 16%, rgba(14, 90, 138, 0.18), transparent 44dvh),
      radial-gradient(circle at 24% 28%, rgba(255, 255, 255, 0.08), transparent 38dvh),
      linear-gradient(180deg, #000 0%, #041018 52%, #000 100%);
  }

  .portfolio-journey-loading .journey-webgl {
    opacity: 0.88;
    transform: scale(1.08);
  }

  .journey-loading-map {
    inset: -18dvh -34vw;
    background:
      repeating-radial-gradient(ellipse at 50% 82%, transparent 0 34px, rgba(255, 255, 255, 0.055) 35px 36px, transparent 37px 78px),
      linear-gradient(112deg, transparent 0 36%, rgba(255, 255, 255, 0.06) 36.1% 36.24%, transparent 36.5%),
      linear-gradient(28deg, transparent 0 60%, rgba(14, 90, 138, 0.1) 60.1% 60.24%, transparent 60.5%),
      radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.07), transparent 42dvh);
    opacity: 0.72;
    animation: journey-loading-mobile-drift 18s ease-in-out infinite alternate;
  }

  .journey-loading-map::before {
    inset: -12%;
    opacity: 0.34;
    animation-duration: 24s;
  }

  .journey-loading-map::after {
    background:
      radial-gradient(circle at 50% 48%, transparent 0 24%, rgba(0, 0, 0, 0.72) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.34), transparent 38%, rgba(0, 0, 0, 0.68));
  }
}

/* Journey-to-gallery transition and fullscreen opening photograph. */
.portfolio-journey-world.is-opening-gallery {
  cursor: progress;
}

.portfolio-journey-world.is-opening-gallery::after {
  position: fixed;
  inset: 0;
  z-index: 82;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(234, 248, 255, 0.1), transparent 22rem),
    linear-gradient(180deg, rgba(5, 11, 15, 0.04), rgba(2, 6, 9, 0.82));
  animation: journey-gallery-veil 1400ms var(--ease-cinematic) both;
  content: "";
}

.portfolio-journey-world.is-opening-gallery .journey-frame.is-receded {
  opacity: 0.08 !important;
  filter: blur(3px) brightness(0.32) !important;
  transition-duration: 1200ms;
}

.portfolio-journey-world.is-opening-gallery .journey-frame.is-selected figure {
  animation: journey-selected-open 1400ms var(--ease-cinematic) both;
}

.portfolio-journey-world.is-opening-gallery .journey-frame.is-selected img {
  filter: saturate(1.08) brightness(1.08);
}

@keyframes journey-selected-open {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }
  56% {
    transform: scale(1.045);
    filter: brightness(1.08);
  }
  100% {
    transform: scale(1.12);
    filter: brightness(0.82);
  }
}

@keyframes journey-gallery-veil {
  0% {
    opacity: 0;
    backdrop-filter: blur(0);
  }
  48% {
    opacity: 0.55;
    backdrop-filter: blur(3px);
  }
  100% {
    opacity: 1;
    backdrop-filter: blur(7px);
  }
}

.portfolio-app[data-view="detail"] .work-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(52, 95, 116, 0.2), transparent 36rem),
    linear-gradient(180deg, #0b1c24 0%, #09171d 38%, #020507 100%);
}

.portfolio-app[data-view="detail"] .work-page.is-entering .work-hero-media {
  animation: work-gallery-arrive 1200ms cubic-bezier(.2,.8,.2,1) both;
}

.portfolio-app[data-view="detail"] .work-hero {
  display: block;
  min-height: 142svh;
  overflow: clip;
  background: #071119;
}

.portfolio-app[data-view="detail"] .work-hero-media {
  position: sticky;
  top: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100svh;
  padding: 0;
  background: #071119;
  box-shadow: none;
}

.portfolio-app[data-view="detail"] .work-hero-media::after {
  background:
    linear-gradient(180deg, rgba(4, 9, 12, 0.1) 0%, rgba(4, 9, 12, 0.12) 46%, rgba(4, 9, 12, 0.78) 100%),
    radial-gradient(circle at 50% 45%, transparent 0 42%, rgba(3, 7, 10, 0.5) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.52), transparent 36%, transparent 64%, rgba(0, 0, 0, 0.44));
}

.portfolio-app[data-view="detail"] .work-hero-media img,
.portfolio-app[data-view="detail"] .work-hero-media video,
.portfolio-app[data-view="detail"] .work-hero-media img.is-loaded,
.portfolio-app[data-view="detail"] .work-hero-media video {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform: translate3d(0, calc(var(--hero-scroll, 0) * -58px), 0) scale(calc(1.045 + var(--hero-scroll, 0) * 0.16));
  transform-origin: center center;
  transition: opacity 720ms ease, filter 900ms ease;
}

.portfolio-app[data-view="detail"] .work-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100svh;
  padding: clamp(96px, 14vh, 148px) clamp(20px, 7vw, 108px);
  opacity: var(--hero-copy-opacity, 1);
  transform: translate3d(0, calc(var(--hero-scroll, 0) * -34px), 0);
  transition: opacity 160ms linear;
}

.portfolio-app[data-view="detail"] .work-story {
  margin-top: -8svh;
}

.portfolio-app[data-view="detail"] .gallery-item img,
.portfolio-app[data-view="detail"] .gallery-item video,
.portfolio-app[data-view="detail"] .lightbox img {
  object-fit: contain;
}

@keyframes work-gallery-arrive {
  0% {
    opacity: 0;
    filter: blur(10px) brightness(0.62);
    transform: scale(1.018);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

@media (max-width: 760px) {
  .portfolio-app[data-view="detail"] .work-hero {
    min-height: 132svh;
  }

  .portfolio-app[data-view="detail"] .work-hero-copy {
    padding: 96px 18px 72px;
  }

  .portfolio-app[data-view="detail"] .work-hero-copy h1.gallery-title {
    margin-top: 0;
  }
}

/* Gallery detail typography: quieter editorial scale, closer to the story reference. */
.portfolio-app[data-view="detail"] .work-hero-copy h1.gallery-title {
  max-width: min(82vw, 1080px);
  font-size: var(--fit-title-size, clamp(2.75rem, 7vw, 6.1rem));
  line-height: 0.94;
}

.portfolio-app[data-view="detail"] .work-story {
  min-height: auto;
  margin-top: 0;
  align-items: start;
  padding: clamp(72px, 9vw, 126px) clamp(24px, 8vw, 132px) clamp(54px, 8vw, 96px);
}

.portfolio-app[data-view="detail"] .work-story p {
  width: min(1040px, 82vw);
  margin: 0 auto 0 0;
  color: rgba(255, 250, 242, 0.86);
  font-size: clamp(1.55rem, 3.15vw, 3.25rem);
  line-height: 1.18;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .portfolio-app[data-view="detail"] .work-hero-copy h1.gallery-title {
    max-width: 92vw;
    font-size: var(--fit-title-size, clamp(2.15rem, 10vw, 4.2rem));
    line-height: 0.98;
  }

  .portfolio-app[data-view="detail"] .work-story {
    padding: 58px 20px 72px;
  }

  .portfolio-app[data-view="detail"] .work-story p {
    width: 100%;
    font-size: clamp(1.35rem, 6.4vw, 2.25rem);
    line-height: 1.22;
  }
}

/* Gallery video preview: centered, lightweight and opt-in for full playback. */
.portfolio-app[data-view="detail"] .gallery-video,
.portfolio-app[data-view="detail"] .gallery-video:nth-child(n) {
  grid-column: 1 / -1;
  width: 100%;
}

.portfolio-app[data-view="detail"] .gallery-video figure,
.portfolio-app[data-view="detail"] .gallery-video:nth-child(n) figure {
  position: relative;
  display: grid;
  width: min(980px, 88vw);
  min-height: clamp(220px, 42vw, 560px);
  margin: clamp(12px, 3vw, 42px) auto;
  overflow: hidden;
  place-items: center;
  padding: 0;
}

.portfolio-app[data-view="detail"] .gallery-video video {
  width: 100%;
  height: 100%;
  max-height: min(72svh, 680px);
  object-fit: contain;
}

.portfolio-app[data-view="detail"] .gallery-video-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .portfolio-app[data-view="detail"] .gallery-video figure,
  .portfolio-app[data-view="detail"] .gallery-video:nth-child(n) figure {
    width: min(100%, calc(100vw - 28px));
    min-height: clamp(190px, 58vw, 380px);
  }

  .portfolio-app[data-view="detail"] .gallery-video-play {
    width: 82px;
    height: 82px;
    font-size: 0.52rem;
  }

  .portfolio-app[data-view="detail"] .work-audio-toggle {
    right: 14px;
    bottom: 72px;
  }

  .portfolio-app[data-view="detail"] .work-progress-percent {
    min-width: 34px;
    padding-right: 0;
    font-size: 0.52rem;
    text-align: right;
  }
}

.portfolio-app .audio-orb,
.portfolio-app[data-view="journey"] .audio-orb {
  width: 44px;
  height: 24px;
  padding: 0;
  font-size: 0;
  letter-spacing: 0;
}

.portfolio-app[data-view="detail"] .work-audio-toggle {
  right: clamp(18px, 4vw, 54px);
  bottom: 68px;
  z-index: 50;
}

.portfolio-app[data-view="detail"] .work-progress-percent {
  min-width: 46px;
  padding-right: 4px;
}

/* Subtle floating particles in the reference room: present, but not a blue radar grid. */
.portfolio-app[data-view="journey"] .journey-world-webgl {
  opacity: 0.34;
  filter: brightness(0.78) contrast(0.94);
}

.portfolio-app[data-view="journey"] .journey-world-bg::before {
  opacity: 0.22;
  background:
    radial-gradient(circle, rgba(225, 240, 246, 0.34) 0 0.9px, transparent 1.7px) 8% 12% / 168px 146px,
    radial-gradient(circle, rgba(185, 210, 222, 0.22) 0 1px, transparent 2px) 35% 26% / 232px 188px,
    radial-gradient(circle, rgba(255, 255, 255, 0.2) 0 0.8px, transparent 1.6px) 70% 38% / 144px 124px;
  background-size: 168px 146px, 232px 188px, 144px 124px;
  animation: journey-star-drift-a 36s linear infinite;
  will-change: transform, opacity;
}

.portfolio-app[data-view="journey"] .journey-world-bg::after {
  opacity: 0.74;
  background:
    radial-gradient(circle, rgba(220, 238, 246, 0.28) 0 1px, transparent 2.4px) 16% 42% / 260px 210px,
    radial-gradient(circle, rgba(148, 176, 190, 0.18) 0 0.9px, transparent 2px) 78% 24% / 198px 158px,
    radial-gradient(circle at 52% 54%, transparent 0 34%, rgba(3, 8, 12, 0.5) 100%),
    linear-gradient(90deg, rgba(2, 5, 8, 0.58), transparent 29%, transparent 71%, rgba(2, 5, 8, 0.58));
  animation: journey-star-drift-b 52s linear infinite;
  will-change: transform, opacity;
}

@keyframes journey-star-drift-a {
  0% {
    transform: translate3d(-1.4vw, -1vh, 0);
  }
  100% {
    transform: translate3d(1.4vw, 1vh, 0);
  }
}

@keyframes journey-star-drift-b {
  0% {
    transform: translate3d(1vw, 0.8vh, 0) scale(1.01);
  }
  100% {
    transform: translate3d(-1vw, -0.8vh, 0) scale(1.01);
  }
}

@keyframes journey-world-bg-open {
  0% {
    opacity: 0;
    filter: blur(18px) brightness(0.55);
    transform: scale(1.08) translate3d(0, 3vh, 0);
  }
  48% {
    opacity: 0.86;
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes portfolio-intro-page-enter {
  0% {
    opacity: 0;
    filter: blur(18px) brightness(0.62);
    transform: scale(1.028) translate3d(0, 12px, 0);
  }
  54% {
    opacity: 1;
    filter: blur(5px) brightness(0.88);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes portfolio-intro-atmosphere-enter {
  0% {
    opacity: 0;
    filter: blur(14px) brightness(0.7);
    transform: scale(1.08) translate3d(0, -1.6vh, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes portfolio-intro-content-enter {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes journey-world-stars-open {
  0% {
    opacity: 0;
    filter: blur(10px) brightness(0.7);
    transform: scale(1.04);
  }
  58% {
    opacity: 0.52;
  }
  100% {
    opacity: 0.88;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

@keyframes journey-atmosphere-open {
  0% {
    opacity: 0;
    filter: blur(18px) brightness(0.68);
    transform: scale(1.06) translate3d(0, 4vh, 0);
  }
  46% {
    opacity: 0.52;
  }
  100% {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1) translate3d(0, 0, 0);
  }
}

@keyframes journey-fog-near {
  0% {
    opacity: 0.36;
    transform: translate3d(-6vw, 2.8vh, 0) scale(1.05) rotate(-2deg);
  }
  44% {
    opacity: 0.58;
  }
  100% {
    opacity: 0.46;
    transform: translate3d(12vw, -3vh, 0) scale(1.18) rotate(3deg);
  }
}

@keyframes journey-fog-mid {
  0% {
    opacity: 0.28;
    transform: translate3d(10vw, -1.5vh, 0) scale(0.96) rotate(2deg);
  }
  52% {
    opacity: 0.5;
  }
  100% {
    opacity: 0.34;
    transform: translate3d(-14vw, 4vh, 0) scale(1.14) rotate(-3deg);
  }
}

@keyframes journey-fog-far {
  0% {
    opacity: 0.2;
    transform: translate3d(-4vw, -1vh, 0) scale(1) rotate(-1deg);
  }
  100% {
    opacity: 0.34;
    transform: translate3d(8vw, 3vh, 0) scale(1.08) rotate(2deg);
  }
}

@keyframes journey-light-one {
  0%, 100% {
    opacity: 0.2;
    transform: translate3d(-4vw, 0, 0) scale(0.88);
  }
  38% {
    opacity: 0.46;
    transform: translate3d(6vw, 5vh, 0) scale(1.16);
  }
  68% {
    opacity: 0.28;
    transform: translate3d(16vw, -2vh, 0) scale(0.98);
  }
}

@keyframes journey-light-two {
  0%, 100% {
    opacity: 0.12;
    transform: translate3d(5vw, 3vh, 0) scale(0.92);
  }
  34% {
    opacity: 0.38;
    transform: translate3d(-7vw, -5vh, 0) scale(1.18);
  }
  72% {
    opacity: 0.22;
    transform: translate3d(-17vw, 1vh, 0) scale(1);
  }
}

@keyframes journey-light-three {
  0%, 100% {
    opacity: 0.16;
    transform: translate3d(-6vw, 4vh, 0) scale(1);
  }
  45% {
    opacity: 0.34;
    transform: translate3d(7vw, -4vh, 0) scale(1.2);
  }
}

@keyframes journey-frame-photo-open {
  0% {
    opacity: 0;
    filter: blur(12px) saturate(0.58) brightness(0.62);
    clip-path: inset(12% 10% 16% 10%);
    transform: translate3d(0, 18px, 0) scale(0.94);
  }
  62% {
    opacity: 1;
    filter: blur(1.6px) saturate(0.88) brightness(0.9);
  }
  100% {
    opacity: 1;
    filter: blur(0) saturate(1) brightness(1);
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes journey-hud-open {
  0% {
    opacity: 0;
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 760px) {
  .portfolio-app[data-view="journey"] .journey-world-webgl {
    opacity: 0.22;
  }

  .portfolio-app[data-view="journey"] .journey-world-bg::before {
    opacity: 0.14;
    background-size: 210px 172px, 286px 224px, 178px 136px;
    animation-duration: 72s;
  }

  .portfolio-app[data-view="journey"] .journey-world-bg::after {
    opacity: 0.56;
    animation-duration: 86s;
  }
}

/* Title reveal and lighter immersive journey atmosphere. */
.portfolio-app[data-view="journey"] .portfolio-journey-world {
  background:
    radial-gradient(ellipse at 54% 44%, rgba(12, 58, 84, 0.46), transparent 42rem),
    radial-gradient(circle at 18% 24%, rgba(5, 21, 33, 0.7), transparent 34rem),
    linear-gradient(180deg, #02070c 0%, #061722 58%, #02070b 100%);
}

.portfolio-app[data-view="journey"] .journey-world-bg {
  background:
    radial-gradient(ellipse at 57% 42%, rgba(18, 75, 107, 0.42), transparent 42rem),
    radial-gradient(ellipse at 52% 74%, rgba(20, 61, 82, 0.3), transparent 50rem),
    linear-gradient(112deg, transparent 0 42%, rgba(156, 211, 236, 0.055) 42.05% 42.18%, transparent 42.32%),
    linear-gradient(290deg, transparent 0 62%, rgba(120, 180, 210, 0.045) 62.04% 62.16%, transparent 62.34%),
    linear-gradient(180deg, #02070c 0%, #061823 60%, #010509 100%);
  animation: journey-atmosphere 48s ease-in-out infinite alternate;
}

.portfolio-app[data-view="journey"] .journey-world-webgl {
  opacity: 0.2;
  filter: none;
}

.portfolio-app[data-view="journey"] .journey-world-bg::before {
  opacity: 0.42;
  background:
    radial-gradient(circle, rgba(232, 246, 255, 0.5) 0 0.8px, transparent 1.9px) 8% 9% / 152px 126px,
    radial-gradient(circle, rgba(150, 201, 226, 0.32) 0 1px, transparent 2.2px) 34% 22% / 226px 178px,
    radial-gradient(circle, rgba(255, 255, 255, 0.28) 0 0.7px, transparent 1.8px) 66% 36% / 126px 112px;
  animation: journey-star-drift-a 58s linear infinite;
  mask-image: radial-gradient(ellipse at 52% 46%, #000 0 66%, transparent 100%);
}

.portfolio-app[data-view="journey"] .journey-world-bg::after {
  opacity: 0.72;
  background:
    radial-gradient(circle, rgba(220, 240, 250, 0.28) 0 1px, transparent 2.4px) 14% 38% / 284px 236px,
    radial-gradient(circle, rgba(140, 184, 206, 0.2) 0 0.9px, transparent 2px) 78% 20% / 214px 166px,
    radial-gradient(ellipse at 50% 48%, transparent 0 38%, rgba(2, 8, 12, 0.48) 100%),
    linear-gradient(90deg, rgba(1, 4, 8, 0.62), transparent 28%, transparent 72%, rgba(1, 4, 8, 0.62));
  animation: journey-star-drift-b 74s linear infinite;
}

.portfolio-app[data-view="journey"] .journey-atmosphere-layers {
  opacity: 0.74;
  transform: translateZ(0);
}

.portfolio-app[data-view="journey"] .journey-fog {
  opacity: 0.18;
  filter: none;
}

.portfolio-app[data-view="journey"] .journey-light {
  opacity: 0.12;
  filter: none;
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-world-bg,
.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-world-webgl,
.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-atmosphere-layers {
  filter: none;
  opacity: 0.64;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-app[data-view="journey"] .portfolio-journey-world.has-selected-card .journey-world-bg::after {
  opacity: 0.84;
  background:
    radial-gradient(circle, rgba(220, 240, 250, 0.2) 0 1px, transparent 2.4px) 14% 38% / 284px 236px,
    radial-gradient(ellipse at 50% 46%, transparent 0 24%, rgba(1, 5, 8, 0.66) 100%),
    linear-gradient(90deg, rgba(0, 3, 6, 0.74), transparent 28%, transparent 70%, rgba(0, 3, 6, 0.72));
}

.portfolio-app[data-view="journey"] .journey-frame,
.portfolio-app[data-view="journey"] .journey-frame:hover,
.portfolio-app[data-view="journey"] .journey-frame:focus-visible {
  overflow: visible;
  contain: layout;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected div,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:hover div,
.portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible div {
  position: absolute;
  top: 50%;
  right: auto;
  bottom: auto;
  left: calc(100% + clamp(22px, 3.2vw, 54px));
  z-index: 6;
  display: grid;
  width: clamp(230px, 25vw, 430px);
  justify-items: start;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  text-align: left;
  transform: translate3d(-58px, -50%, -12px) scale(0.985);
  transform-origin: 0 50%;
  filter: blur(18px);
  clip-path: inset(-18% 100% -18% 0);
  transition: none;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div,
.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed:hover div,
.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed:focus-visible div {
  animation: journey-title-side-reveal 1100ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected div p,
.portfolio-app[data-view="journey"] .journey-frame.is-selected div h2 {
  transform: translate3d(-12px, 0, 0);
  opacity: 0;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div p {
  animation: journey-title-line-reveal 720ms cubic-bezier(0.22, 1, 0.36, 1) 250ms both;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div h2 {
  animation: journey-title-line-reveal 920ms cubic-bezier(0.16, 1, 0.3, 1) 340ms both;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected h2.gallery-title--journey {
  display: block;
  max-width: min(30vw, 430px);
  overflow: visible;
  color: rgba(255, 255, 255, 0.96);
  -webkit-line-clamp: initial;
  font-family: var(--serif);
  font-size: clamp(2.3rem, 4.1vw, 5.7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 20px 52px rgba(0, 0, 0, 0.74),
    0 0 36px rgba(190, 224, 240, 0.12);
  text-wrap: balance;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected p {
  color: rgba(220, 235, 242, 0.68);
  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.2em;
  line-height: 1.2;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}

@keyframes journey-title-side-reveal {
  0% {
    opacity: 0;
    filter: blur(18px);
    clip-path: inset(-18% 100% -18% 0);
    transform: translate3d(-58px, -50%, -12px) scale(0.985);
  }
  58% {
    opacity: 0.86;
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(-18% 0 -18% 0);
    transform: translate3d(0, -50%, 0) scale(1);
  }
}

@keyframes journey-title-line-reveal {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translate3d(-16px, 0, 0);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 900px) {
  .portfolio-app[data-view="journey"] .journey-frame.is-selected div,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:hover div,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected:focus-visible div {
    top: auto;
    right: 18px;
    bottom: 13%;
    left: 18px;
    width: auto;
    transform: translate3d(-26px, 0, 0) scale(0.99);
  }

  .portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed:hover div,
  .portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed:focus-visible div {
    animation-name: journey-title-mobile-reveal;
  }

  .portfolio-app[data-view="journey"] .journey-frame.is-selected h2.gallery-title--journey {
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 3.1rem);
  }
}

@keyframes journey-title-mobile-reveal {
  0% {
    opacity: 0;
    filter: blur(16px);
    clip-path: inset(0 100% 0 0);
    transform: translate3d(-26px, 0, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    clip-path: inset(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Final collection and journey atmosphere pass: open vertical scroll, taller cards and moving light blocks. */
.collection-drawer-panel {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: clamp(70px, 9vw, 130px);
  scrollbar-color: rgba(140, 194, 224, 0.42) transparent;
}

.collection-drawer-panel header {
  margin-bottom: clamp(26px, 4vw, 58px);
}

.collection-tabs {
  margin-right: clamp(16px, 2vw, 28px);
  margin-bottom: 16px;
}

.collection-category-tabs {
  display: inline-flex;
  vertical-align: middle;
  margin-bottom: 18px;
}

.collection-progress {
  margin: clamp(14px, 2vw, 28px) 0 clamp(30px, 4.5vw, 64px);
}

.collection-grid,
.collection-grid:has(.collection-card:only-child) {
  grid-template-columns: repeat(auto-fill, minmax(clamp(220px, 15.6vw, 310px), 1fr));
  gap: clamp(34px, 4vw, 74px) clamp(22px, 2.8vw, 46px);
  overflow: visible;
  padding: clamp(14px, 2.2vw, 34px) 0 clamp(80px, 10vw, 160px);
}

.collection-card {
  min-height: clamp(440px, 36vw, 650px);
  border-radius: 22px;
  padding: clamp(10px, 1vw, 14px);
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 260px 560px;
  animation-name: collection-card-materialize-lite;
  animation-duration: 420ms;
  animation-delay: calc(80ms + (var(--collection-card-index, 0) * 12ms));
}

.collection-card figure {
  min-height: 0;
  aspect-ratio: 3 / 4.18;
  border-radius: 16px;
}

.collection-card div {
  min-height: 118px;
  gap: 7px;
  padding: 16px 5px 4px;
}

.collection-card h3.gallery-title--collection {
  font-size: clamp(1.34rem, 1.72vw, 2.06rem);
  line-height: 1;
}

.collection-card p {
  font-size: 0.56rem;
}

.collection-card.is-collected::after,
.collection-card.is-locked::after {
  backdrop-filter: none;
}

.collection-card.is-locked img {
  filter: grayscale(1) saturate(0.28) contrast(1.02) brightness(0.58);
}

@keyframes collection-card-materialize-lite {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, calc(var(--collection-card-index, 0) * -1px)) scale(1);
  }
}

.collection-reset {
  display: block;
  margin-top: clamp(18px, 3vw, 50px);
}

.portfolio-app[data-view="journey"] .journey-light--one {
  display: none;
}

.journey-light-block {
  position: absolute;
  display: block;
  width: clamp(72px, 9vw, 170px);
  height: clamp(14px, 2vw, 32px);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent, rgba(223, 246, 255, 0.46) 28%, rgba(255, 255, 255, 0.22) 52%, transparent),
    radial-gradient(ellipse at 50% 50%, rgba(148, 213, 246, 0.42), transparent 68%);
  filter: blur(8px);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.journey-light-block--one {
  left: 12vw;
  top: 27vh;
  animation: journey-light-block-a 13s cubic-bezier(.4, 0, .2, 1) infinite;
}

.journey-light-block--two {
  right: 8vw;
  top: 42vh;
  width: clamp(96px, 12vw, 230px);
  animation: journey-light-block-b 16s cubic-bezier(.4, 0, .2, 1) 2s infinite;
}

.journey-light-block--three {
  left: 42vw;
  top: 18vh;
  width: clamp(54px, 7vw, 130px);
  animation: journey-light-block-c 11s cubic-bezier(.4, 0, .2, 1) 4.5s infinite;
}

.journey-light-block--four {
  left: 22vw;
  bottom: 24vh;
  width: clamp(86px, 10vw, 200px);
  animation: journey-light-block-b 18s cubic-bezier(.4, 0, .2, 1) 6s infinite reverse;
}

.journey-light-block--five {
  right: 24vw;
  bottom: 18vh;
  width: clamp(60px, 8vw, 150px);
  animation: journey-light-block-a 15s cubic-bezier(.4, 0, .2, 1) 8s infinite reverse;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div,
.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed:hover div,
.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed:focus-visible div {
  animation-duration: 680ms;
  animation-delay: 0ms;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div p {
  animation-duration: 420ms;
  animation-delay: 120ms;
}

.portfolio-app[data-view="journey"] .journey-frame.is-selected.is-revealed div h2 {
  animation-duration: 560ms;
  animation-delay: 170ms;
}

@keyframes journey-light-block-a {
  0%, 18% {
    opacity: 0;
    filter: blur(13px);
    transform: translate3d(-12vw, 4vh, 0) scaleX(0.62) rotate(-2deg);
  }
  36%, 58% {
    opacity: 0.68;
    filter: blur(7px);
  }
  82%, 100% {
    opacity: 0;
    filter: blur(16px);
    transform: translate3d(24vw, -5vh, 0) scaleX(1.32) rotate(2deg);
  }
}

@keyframes journey-light-block-b {
  0%, 16% {
    opacity: 0;
    filter: blur(15px);
    transform: translate3d(18vw, -3vh, 0) scaleX(0.7) rotate(3deg);
  }
  42%, 62% {
    opacity: 0.54;
    filter: blur(8px);
  }
  84%, 100% {
    opacity: 0;
    filter: blur(18px);
    transform: translate3d(-28vw, 5vh, 0) scaleX(1.22) rotate(-3deg);
  }
}

@keyframes journey-light-block-c {
  0%, 20% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(2vw, -8vh, 0) scale(0.72);
  }
  44%, 64% {
    opacity: 0.46;
    filter: blur(6px);
  }
  86%, 100% {
    opacity: 0;
    filter: blur(15px);
    transform: translate3d(-8vw, 12vh, 0) scale(1.18);
  }
}

@media (max-width: 760px) {
  .journey-light-block {
    width: clamp(60px, 24vw, 118px);
    height: clamp(10px, 3vw, 18px);
    filter: blur(6px);
    opacity: 0;
  }

  .journey-light-block--four,
  .journey-light-block--five {
    display: none;
  }

  .journey-light-block--one {
    animation-duration: 18s;
  }

  .journey-light-block--two {
    animation-duration: 22s;
  }

  .journey-light-block--three {
    animation-duration: 19s;
  }

  .collection-grid,
  .collection-grid:has(.collection-card:only-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
    padding-bottom: 96px;
  }

  .collection-card {
    min-height: clamp(310px, 72vw, 430px);
  }
}

.journey-focus {
  left: var(--journey-focus-x, 50%);
  top: var(--journey-focus-y, auto);
  bottom: auto;
  transform: translate(-50%, -50%);
}

.journey-focus a {
  width: 76px;
  height: 76px;
}

.journey-focus button {
  left: calc(50% + 58px);
  top: -42px;
}

@media (max-width: 760px) {
  .journey-focus a {
    width: 70px;
    height: 70px;
  }

  .journey-focus button {
    left: calc(50% + 48px);
    top: -38px;
  }
}

/* Minimal collection completion modal: lighter surface, calmer type and tactile button motion. */
.collection-toast {
  width: min(560px, calc(100vw - 56px));
  min-height: 0;
  gap: 22px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 72% 18%, rgba(110, 176, 210, 0.105), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.018)),
    rgba(5, 8, 10, 0.9);
  box-shadow:
    0 0 0 100vmax rgba(0, 0, 0, 0.66),
    0 28px 92px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  padding: clamp(28px, 3.4vw, 42px);
  transform: translate(-50%, -46%) scale(0.975);
  backdrop-filter: blur(18px) saturate(0.82);
}

.collection-toast::before {
  inset: 0;
  border: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 18% 82%, rgba(255, 255, 255, 0.05)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%);
  mask-image: none;
  opacity: 0.56;
}

.collection-toast::after {
  right: -26%;
  top: -42%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(145, 212, 245, 0.12), transparent 68%);
  filter: blur(24px);
}

.collection-toast.is-visible {
  transform: translate(-50%, -50%) scale(1);
}

.collection-toast p {
  max-width: none;
  color: rgba(236, 239, 238, 0.52);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
}

.collection-toast strong {
  max-width: 11ch;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(2rem, 3.65vw, 3.9rem);
  font-weight: 350;
  line-height: 0.96;
}

.collection-toast div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: min(100%, 360px);
  margin-top: 12px;
}

.collection-toast button,
.collection-toast a {
  position: relative;
  min-height: 46px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.034);
  color: rgba(245, 245, 240, 0.78);
  padding: 0 18px;
  font-size: 0.58rem;
  letter-spacing: 0.17em;
  box-shadow: none;
  transform: translate3d(0, 0, 0);
  transition:
    border-color 260ms ease,
    background 260ms ease,
    color 260ms ease,
    transform 520ms cubic-bezier(.16,.82,.18,1),
    box-shadow 520ms cubic-bezier(.16,.82,.18,1);
}

.collection-toast button::before,
.collection-toast a::before {
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  content: "";
  opacity: 0;
  transform: translateX(-70%);
  transition: opacity 320ms ease, transform 760ms cubic-bezier(.16,.82,.18,1);
}

.collection-toast button:first-child {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(242, 240, 232, 0.91);
  color: #050708;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.26);
}

.collection-toast button:hover,
.collection-toast button:focus-visible,
.collection-toast a:hover,
.collection-toast a:focus-visible {
  animation: none;
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transform: translate3d(8px, 0, 0);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.collection-toast button:first-child:hover,
.collection-toast button:first-child:focus-visible {
  animation: none;
  background: #fff;
  color: #030506;
  transform: translate3d(10px, 0, 0) scale(1.012);
}

.collection-toast button:hover::before,
.collection-toast button:focus-visible::before,
.collection-toast a:hover::before,
.collection-toast a:focus-visible::before {
  opacity: 1;
  transform: translateX(72%);
}

.collection-toast.is-visible p {
  animation: toast-kicker-in 460ms cubic-bezier(.22,.72,.16,1) both 90ms;
}

.collection-toast.is-visible strong {
  animation: toast-title-in-minimal 720ms cubic-bezier(.16,.82,.18,1) both 150ms;
}

.collection-toast.is-visible div {
  animation: toast-actions-in-minimal 560ms cubic-bezier(.16,.82,.18,1) both 320ms;
}

.collection-toast.is-visible button,
.collection-toast.is-visible a {
  animation: toast-button-rise 620ms cubic-bezier(.16,.82,.18,1) both;
}

.collection-toast.is-visible button:nth-child(1) {
  animation-delay: 390ms;
}

.collection-toast.is-visible a:nth-child(2) {
  animation-delay: 460ms;
}

.collection-toast.is-visible button:nth-child(3) {
  animation-delay: 530ms;
}

.collection-toast.is-visible button:hover,
.collection-toast.is-visible button:focus-visible,
.collection-toast.is-visible a:hover,
.collection-toast.is-visible a:focus-visible {
  animation: none;
  transform: translate3d(8px, 0, 0);
}

.collection-toast.is-visible button:first-child:hover,
.collection-toast.is-visible button:first-child:focus-visible {
  transform: translate3d(10px, 0, 0) scale(1.012);
}

@keyframes toast-title-in-minimal {
  from {
    opacity: 0;
    filter: blur(14px);
    transform: translate3d(-18px, 10px, 0) scale(0.99);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes toast-actions-in-minimal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 12px, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@keyframes toast-button-rise {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translate3d(-12px, 8px, 0);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 760px) {
  .collection-toast {
    width: min(390px, calc(100vw - 24px));
    padding: 24px 18px 18px;
  }

  .collection-toast strong {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .collection-toast div {
    width: 100%;
  }
}

/* Mobile audit pass: keep cards/video inside the viewport and reduce hidden-tab work. */
@media (max-width: 760px) {
  .portfolio-app[data-view="detail"] .work-gallery {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100vw;
    gap: clamp(18px, 6vw, 36px);
    padding-inline: 14px;
    overflow-x: clip;
  }

  .portfolio-app[data-view="detail"] .gallery-item,
  .portfolio-app[data-view="detail"] .gallery-video,
  .portfolio-app[data-view="detail"] .gallery-video:nth-child(n) {
    width: 100%;
    max-width: 100%;
    touch-action: manipulation;
  }

  .portfolio-app[data-view="detail"] .gallery-item figure {
    width: 100%;
    max-width: calc(100vw - 28px);
    margin-inline: auto;
  }

  .portfolio-app[data-view="detail"] .gallery-video figure,
  .portfolio-app[data-view="detail"] .gallery-video:nth-child(n) figure {
    width: 100%;
    max-width: calc(100vw - 28px);
    min-height: 0;
    aspect-ratio: 4 / 5;
    margin: clamp(12px, 5vw, 24px) auto;
  }

  .portfolio-app[data-view="detail"] .gallery-video.is-playing-full figure,
  .portfolio-app[data-view="detail"] .gallery-video.is-buffering figure {
    min-height: 0;
  }

  .portfolio-app[data-view="detail"] .gallery-video video {
    width: 100%;
    height: 100%;
    max-height: min(64svh, 430px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #000;
  }

  .portfolio-app[data-view="detail"] .gallery-video-poster {
    height: 100%;
  }

  .lightbox {
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 0;
    padding: max(16px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .lightbox figure {
    width: 100%;
    max-width: 100vw;
    max-height: none;
    gap: 12px;
    place-items: center;
  }

  .lightbox img,
  .portfolio-app[data-view="detail"] .lightbox img {
    width: auto;
    height: auto;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 164px);
    object-fit: contain;
  }

  .lightbox figcaption {
    max-width: calc(100vw - 36px);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .lightbox-actions {
    width: 100%;
    gap: 8px;
  }

  .lightbox-actions a,
  .lightbox-actions button {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.54rem;
    letter-spacing: 0.12em;
    line-height: 34px;
  }

  .lightbox-prev,
  .lightbox-next {
    position: fixed;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .collection-drawer-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .collection-grid,
  .collection-grid:has(.collection-card:only-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
    overflow: visible;
    padding: 18px 0 116px;
  }

  .collection-card {
    min-height: 0;
    border-radius: 16px;
    padding: 8px;
  }

  .collection-card figure {
    min-height: 0;
    aspect-ratio: 3 / 4.35;
    border-radius: 12px;
  }

  .collection-card div {
    min-height: 84px;
    padding: 10px 2px 2px;
  }

  .collection-card h3.gallery-title--collection {
    font-size: clamp(0.98rem, 4.4vw, 1.22rem);
    line-height: 1.03;
  }

  .collection-card span,
  .collection-card small,
  .collection-card p {
    font-size: 0.46rem;
  }

  .collection-empty {
    place-items: center;
    width: 100%;
    min-height: 260px;
    margin: 20px 0 80px;
    padding: 28px 18px;
    border-radius: 22px;
    text-align: center;
  }

  .collection-empty p {
    max-width: 17ch;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(2rem, 9.2vw, 3.2rem);
    line-height: 0.96;
  }

  .collection-empty a {
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.58rem;
    letter-spacing: 0.14em;
  }
}

@media (max-width: 360px) {
  .collection-grid,
  .collection-grid:has(.collection-card:only-child) {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .collection-card {
    width: min(100%, 286px);
  }
}

.portfolio-menu-toggle {
  position: fixed;
  top: max(18px, calc(env(safe-area-inset-top) + 14px));
  right: max(18px, calc(env(safe-area-inset-right) + 14px));
  z-index: 260;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.18), transparent 34px),
    rgba(255, 255, 255, 0.075);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 0 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  cursor: pointer;
  transition:
    transform 360ms var(--ease-cinematic),
    border-color 360ms ease,
    background 360ms ease,
    box-shadow 360ms ease;
}

.portfolio-menu-toggle span,
.portfolio-menu-toggle span::before,
.portfolio-menu-toggle span::after {
  display: block;
  width: 23px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  content: "";
  transition:
    transform 320ms var(--ease-cinematic),
    opacity 220ms ease,
    width 320ms var(--ease-cinematic);
}

.portfolio-menu-toggle span {
  position: relative;
}

.portfolio-menu-toggle span::before,
.portfolio-menu-toggle span::after {
  position: absolute;
  left: 0;
}

.portfolio-menu-toggle span::before {
  top: -7px;
}

.portfolio-menu-toggle span::after {
  top: 7px;
}

.portfolio-menu-toggle:hover,
.portfolio-menu-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.25);
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.22), transparent 34px),
    rgba(255, 255, 255, 0.11);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.32), 0 0 24px rgba(126, 205, 255, 0.1);
  transform: translate3d(0, -1px, 0) scale(1.025);
}

body.portfolio-menu-open {
  overflow: hidden;
}

body.portfolio-menu-open .portfolio-menu-toggle span {
  background: transparent;
}

body.portfolio-menu-open .portfolio-menu-toggle span::before {
  transform: translate3d(0, 7px, 0) rotate(38deg);
}

body.portfolio-menu-open .portfolio-menu-toggle span::after {
  transform: translate3d(0, -7px, 0) rotate(-38deg);
}

.portfolio-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center start;
  min-height: 100dvh;
  padding: clamp(78px, 12vh, 128px) clamp(24px, 12vw, 168px);
  background:
    radial-gradient(circle at 84% 18%, rgba(114, 154, 174, 0.18), transparent 28rem),
    radial-gradient(circle at 22% 52%, rgba(14, 90, 138, 0.14), transparent 26rem),
    rgba(4, 8, 10, 0.86);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transition: opacity 360ms var(--ease-cinematic);
}

.portfolio-menu-overlay[hidden] {
  display: none;
}

.portfolio-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.portfolio-menu-atmosphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.portfolio-menu-atmosphere::before,
.portfolio-menu-atmosphere::after {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(108deg, transparent 0 32%, rgba(255, 255, 255, 0.055) 33%, transparent 34% 100%),
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.18) 0 1px, transparent 2px),
    radial-gradient(circle at 24% 72%, rgba(126, 205, 255, 0.22) 0 1px, transparent 2px);
  background-size: 420px 420px, 120px 120px, 190px 190px;
  opacity: 0.36;
  content: "";
  animation: portfolio-menu-drift 16s linear infinite;
}

.portfolio-menu-atmosphere::after {
  opacity: 0.18;
  animation-duration: 25s;
  animation-direction: reverse;
  filter: blur(1px);
}

.portfolio-menu-close {
  position: fixed;
  top: max(22px, calc(env(safe-area-inset-top) + 18px));
  right: max(22px, calc(env(safe-area-inset-right) + 18px));
  z-index: 262;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.portfolio-menu-close::before,
.portfolio-menu-close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 1.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  content: "";
}

.portfolio-menu-close::before {
  transform: translate(-50%, -50%) rotate(38deg);
}

.portfolio-menu-close::after {
  transform: translate(-50%, -50%) rotate(-38deg);
}

.portfolio-menu-primary {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(920px, 100%);
  gap: clamp(18px, 3.6vh, 34px);
}

.portfolio-menu-primary a {
  display: grid;
  width: fit-content;
  max-width: min(820px, 100%);
  gap: 8px;
  color: rgba(255, 255, 255, 0.54);
  text-decoration: none;
  transform: translate3d(-18px, 0, 0);
  filter: blur(8px);
  opacity: 0;
  transition:
    color 360ms ease,
    filter 620ms var(--ease-cinematic),
    opacity 620ms var(--ease-cinematic),
    transform 620ms var(--ease-cinematic);
}

.portfolio-menu-overlay.is-open .portfolio-menu-primary a {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0);
}

.portfolio-menu-overlay.is-open .portfolio-menu-primary a:nth-child(2) {
  transition-delay: 65ms;
}

.portfolio-menu-overlay.is-open .portfolio-menu-primary a:nth-child(3) {
  transition-delay: 130ms;
}

.portfolio-menu-primary span {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8vw, 8.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.portfolio-menu-primary span img {
  display: block;
  width: clamp(138px, 14vw, 230px);
  height: auto;
  opacity: 0.94;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.28));
}

.portfolio-menu-primary small {
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.7rem;
  font-weight: 820;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 260ms ease, transform 360ms var(--ease-cinematic);
}

.portfolio-menu-primary a:hover,
.portfolio-menu-primary a:focus-visible {
  color: #fff;
  filter: blur(0);
  transform: translate3d(10px, 0, 0);
}

.portfolio-menu-primary a:hover small,
.portfolio-menu-primary a:focus-visible small {
  color: rgba(255, 255, 255, 0.74);
  transform: translate3d(8px, 0, 0);
}

body.lightbox-open .portfolio-menu-toggle {
  z-index: 270;
}

body.lightbox-open .lightbox-close {
  right: 88px;
}

@keyframes portfolio-menu-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-90px, 48px, 0);
  }
}

@media (max-width: 760px) {
  .portfolio-menu-toggle {
    top: max(12px, calc(env(safe-area-inset-top) + 10px));
    right: max(12px, calc(env(safe-area-inset-right) + 10px));
    width: 52px;
    height: 52px;
  }

  .portfolio-menu-toggle span,
  .portfolio-menu-toggle span::before,
  .portfolio-menu-toggle span::after {
    width: 20px;
  }

  .portfolio-menu-toggle span::before {
    top: -6px;
  }

  .portfolio-menu-toggle span::after {
    top: 6px;
  }

  body.portfolio-menu-open .portfolio-menu-toggle span::before {
    transform: translate3d(0, 6px, 0) rotate(38deg);
  }

  body.portfolio-menu-open .portfolio-menu-toggle span::after {
    transform: translate3d(0, -6px, 0) rotate(-38deg);
  }

  .portfolio-menu-overlay {
    align-items: center;
    padding: max(82px, calc(env(safe-area-inset-top) + 74px)) 26px max(40px, calc(env(safe-area-inset-bottom) + 28px));
  }

  .portfolio-menu-primary {
    gap: 22px;
  }

  .portfolio-menu-primary span {
    font-size: clamp(3rem, 14.5vw, 4.7rem);
  }

  .portfolio-menu-primary span img {
    width: min(190px, 48vw);
  }

  .portfolio-menu-primary small {
    max-width: 25ch;
    font-size: 0.56rem;
    letter-spacing: 0.15em;
  }

  body.lightbox-open .lightbox-close {
    right: max(74px, calc(env(safe-area-inset-right) + 72px));
  }
}
