/* Cult of Dang — experimental animated art */

:root {
  --color-black: #050308;
  --color-plum: #2a1428;
  --color-plum-deep: #160c16;
  --color-peach: #f0c4a8;
  --color-red: #e31c23;
  --color-white: #f7f2ee;
  --color-muted: rgba(247, 242, 238, 0.5);
  --color-glow: #7a1f68;

  --font-display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --sidebar-width: 240px;
  --page-pad: clamp(1.25rem, 3.5vw, 2.5rem);
  --radius-media: 10px;
}

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

html {
  scroll-behavior: smooth;
}

html:has(.page-home) {
  /* Smooth CSS scroll fights ScrollTrigger scrub on the landing story */
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-red);
  text-align: left;
  background: linear-gradient(
    165deg,
    #000000 0%,
    #050308 12%,
    #160c16 28%,
    #2a1428 42%,
    #5a1828 52%,
    #e31c23 56%,
    #f7f2ee 62%,
    #c8b8b0 72%,
    #1a1018 86%,
    #000000 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

p {
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
}

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

input,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--color-peach);
  color: var(--color-black);
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

/* ── Left rail ── */

.site-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: var(--page-pad);
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  border-right: 1px solid rgba(247, 242, 238, 0.1);
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--color-white);
}

.nav-logo span {
  color: var(--color-red);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.nav-group {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.15rem;
}

.nav-group a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-peach);
  opacity: 0.78;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-group a:hover,
.nav-group a[aria-current="page"],
.nav-group a.is-active {
  opacity: 1;
  color: var(--color-red);
}

.sidebar-footer {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.sidebar-footer a:hover {
  color: var(--color-red);
}

.nav-toggle {
  display: none;
}

/* ── Main stage ── */

.site-main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-stage {
  flex: 1;
  padding: clamp(2.5rem, 6vh, 4.5rem) var(--page-pad) 3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 720px;
}

.page-stage.wide {
  max-width: none;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--color-white);
}

.hero-brand em {
  font-style: normal;
  color: var(--color-red);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-red);
  max-width: 28ch;
}

.hero-lede,
.page-lede,
.prose p {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--color-peach);
  max-width: 44ch;
  opacity: 0.88;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--color-white);
}

/* ── Landing scroll story ── */

.page-home .site-main {
  overflow: visible;
}

.site-shell--home {
  --sidebar-width: 200px;
}

.scroll-story {
  position: relative;
  width: 100%;
}

.scroll-story__pin {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.scroll-story__stage {
  position: relative;
  min-width: 0;
  height: 100%;
  width: 100%;
}

.scroll-story__viewport {
  position: absolute;
  inset: 0;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: clamp(1.5rem, 4vh, 2.75rem) clamp(1.25rem, 3vw, 2rem);
  transform-origin: center center;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.scene__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 28rem;
}

.scene__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-peach);
  opacity: 0.7;
}

.scene__visual {
  position: absolute;
  inset: 6% 6% 16% 6%;
  border: 1px solid rgba(247, 242, 238, 0.14);
  background:
    linear-gradient(160deg, rgba(227, 28, 35, 0.22), transparent 42%),
    linear-gradient(320deg, rgba(240, 196, 168, 0.14), transparent 50%),
    rgba(8, 4, 10, 0.72);
}

.scene__visual--intro {
  inset: 0;
  border: none;
  background:
    radial-gradient(ellipse at 35% 45%, rgba(227, 28, 35, 0.18), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(240, 196, 168, 0.1), transparent 45%),
    transparent;
}

.scene__visual--a {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(227, 28, 35, 0.35), transparent 55%),
    linear-gradient(145deg, #2a1428, #050308 70%);
}

.scene__visual--b {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(240, 196, 168, 0.28), transparent 50%),
    linear-gradient(200deg, #1a0c18, #09060c 75%);
}

.scene__visual--c {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(227, 28, 35, 0.2), transparent 45%),
    radial-gradient(ellipse at 20% 20%, rgba(247, 242, 238, 0.12), transparent 40%),
    linear-gradient(180deg, #160c16, #000 80%);
}

.scene__visual--d {
  background:
    radial-gradient(circle at 60% 50%, rgba(240, 196, 168, 0.2), transparent 40%),
    linear-gradient(125deg, #3f2244, #050308 65%);
}

.scene__visual--e {
  background:
    radial-gradient(ellipse at 40% 70%, rgba(227, 28, 35, 0.28), transparent 50%),
    linear-gradient(30deg, #0c080f, #2a1428 80%);
}

.scene__meta {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.35rem;
}

.scene__meta span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.scene__meta p {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-white);
}

.scroll-story__chrome {
  position: absolute;
  left: clamp(1.25rem, 3vw, 2rem);
  bottom: clamp(1.25rem, 3vh, 2rem);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  pointer-events: none;
}

.scroll-hint {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-peach);
  opacity: 0.65;
}

.scroll-progress {
  width: 72px;
  height: 1px;
  background: rgba(247, 242, 238, 0.18);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-red);
  transform: scaleX(0);
  transform-origin: left center;
}

h1, h2, h3,
.page-title,
.hero-brand,
.hero-headline,
.nav-logo,
.project-takeover__copy h1,
.project-section-copy h2,
.surf-card__cap strong {
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── Surf gallery (front-facing circular Z ring) ── */

.page-gallery {
  overflow-x: clip;
  overflow-y: auto;
  height: auto;
  min-height: 100vh;
  background: #000;
}

.site-shell--gallery {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
  overflow: visible;
  grid-template-columns: none;
}

.gallery-viewport {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  background: #000;
}

.gallery-viewport::before {
  display: none;
}

.gallery-top-fog {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: clamp(12rem, 36vh, 24rem);
  pointer-events: none;
  z-index: 1;
  display: block;
}

.gallery-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(8rem, 24vh, 15rem);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.35) 28%,
    rgba(0, 0, 0, 0.82) 62%,
    #000 100%
  );
}

.gallery-topbar {
  position: relative;
  z-index: 20;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem clamp(1.25rem, 3vw, 2.5rem) 1.85rem;
  background: transparent;
}

.gallery-brand {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.08rem, 2.025vw, 1.53rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-left: 0;
  color: var(--color-peach);
  background-image:
    linear-gradient(
      180deg,
      rgba(247, 242, 238, 0.42) 0%,
      rgba(240, 196, 168, 0.28) 45%,
      rgba(20, 8, 16, 0.22) 100%
    ),
    url("../assets/heart-vortex/card-poster.jpg");
  background-size: auto, 180% auto;
  background-position: center, 35% 40%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.6px rgba(247, 242, 238, 0.28);
  paint-order: stroke fill;
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 10px rgba(0, 0, 0, 0.35));
  mix-blend-mode: normal;
  transition: filter 0.35s ease;
}

.gallery-brand::after {
  content: "Cult of Dang";
  position: absolute;
  left: 0;
  top: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
  background-image:
    linear-gradient(
      180deg,
      rgba(247, 242, 238, 0.38) 0%,
      rgba(240, 196, 168, 0.24) 45%,
      rgba(20, 8, 16, 0.2) 100%
    ),
    url("../assets/what-is-hope/card-poster.jpg");
  background-size: auto, 190% auto;
  background-position: center, 55% 45%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 0.6px rgba(247, 242, 238, 0.28);
  paint-order: stroke fill;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.gallery-brand img {
  display: none;
}

.gallery-brand:hover {
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.65))
    drop-shadow(0 0 14px rgba(122, 31, 104, 0.45));
}

.gallery-brand:hover::after {
  opacity: 1;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.85rem, 2vw, 1.6rem);
}

.gallery-nav a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-peach);
  opacity: 0.82;
  transition: opacity 0.25s ease, color 0.25s ease, text-shadow 0.35s ease;
}

.gallery-nav a:hover,
.gallery-nav a[aria-current="page"],
.gallery-nav a.is-active {
  opacity: 1;
  color: var(--color-white);
  text-shadow:
    0 0 10px rgba(122, 31, 104, 0.9),
    0 0 24px rgba(122, 31, 104, 0.55),
    0 0 40px rgba(122, 31, 104, 0.35);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-main--surf {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.surf-header {
  display: none;
}

.surf {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  user-select: none;
  touch-action: pan-y;
  cursor: grab;
  display: flex;
  flex-direction: column;
}

.surf:active {
  cursor: grabbing;
}

.surf-carousel {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  perspective: 860px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
}

.surf-stack.stack {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transform-style: preserve-3d;
  /* Drop cards so the title sits in the gap above the thumbs */
  transform: translate3d(0, 26%, 0);
}

.surf-stack.stack > * {
  grid-area: 1 / 1;
  justify-self: center;
  align-self: center;
}

.surf-card {
  width: var(--surf-w, 443px);
  will-change: transform, opacity;
  position: relative;
  pointer-events: auto;
  transform-origin: center center;
  transform-style: flat;
  backface-visibility: hidden;
  /* Force billboard — never inherit tilt from older builds */
  rotate: none;
}

.surf-card[hidden] {
  display: none !important;
}

.surf-card__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px solid rgba(247, 242, 238, 0.18);
  background: rgba(8, 4, 10, 0.85);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.45s ease, border-color 0.45s ease;
  transform: none !important;
}

.surf-card.is-active .surf-card__inner {
  border-color: rgba(247, 242, 238, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.surf-card:hover .surf-card__inner,
.surf-card:focus-within .surf-card__inner,
.surf-card.is-hover .surf-card__inner {
  border-color: rgba(247, 242, 238, 0.4);
}

.surf-card.is-active:hover .surf-card__inner,
.surf-card.is-active.is-hover .surf-card__inner {
  border-color: rgba(247, 242, 238, 0.5);
}

.surf-card__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(227, 28, 35, 0.28), transparent 45%),
    linear-gradient(320deg, rgba(240, 196, 168, 0.16), transparent 50%),
    #160c16;
}

.surf-card__media img,
.surf-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.surf-card__media video[data-surf-loop] {
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Only hide the poster when an MP4 loop is stacked on top — GIF loops
   reuse [data-surf-still], so opacity:0 would blank the center card. */
.surf-card__media:has(video[data-surf-loop]) [data-surf-still] {
  opacity: 0;
}

.surf-card__media--a {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(227, 28, 35, 0.45), transparent 55%),
    linear-gradient(145deg, #2a1428, #050308 70%);
}

.surf-card__media--b {
  background:
    radial-gradient(ellipse at 70% 30%, rgba(240, 196, 168, 0.35), transparent 50%),
    linear-gradient(200deg, #1a0c18, #09060c 75%);
}

.surf-card__media--c {
  background:
    radial-gradient(ellipse at 50% 60%, rgba(227, 28, 35, 0.28), transparent 45%),
    radial-gradient(ellipse at 20% 20%, rgba(247, 242, 238, 0.14), transparent 40%),
    linear-gradient(180deg, #160c16, #000 80%);
}

.surf-card__media--d {
  background:
    radial-gradient(circle at 60% 50%, rgba(240, 196, 168, 0.25), transparent 40%),
    linear-gradient(125deg, #3f2244, #050308 65%);
}

.surf-card__media--e {
  background:
    radial-gradient(ellipse at 40% 70%, rgba(227, 28, 35, 0.35), transparent 50%),
    linear-gradient(30deg, #0c080f, #2a1428 80%);
}

.surf-card__media--f {
  background:
    radial-gradient(ellipse at 20% 80%, rgba(240, 196, 168, 0.2), transparent 45%),
    linear-gradient(210deg, #241018, #050308);
}

.surf-card__media--g {
  background:
    linear-gradient(160deg, rgba(227, 28, 35, 0.4), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(247, 242, 238, 0.12), transparent 35%),
    #120910;
}

.surf-card__media--h {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(63, 34, 68, 0.9), transparent 60%),
    linear-gradient(90deg, #1c0f1a, #050308);
}

.surf-card__media--i {
  background:
    radial-gradient(circle at 30% 30%, rgba(227, 28, 35, 0.5), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(240, 196, 168, 0.2), transparent 40%),
    #0a060c;
}

.surf-card__cap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.surf-caption {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 18;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.35rem var(--page-pad);
  text-align: center;
  pointer-events: none;
  opacity: 0;
  top: auto;
  bottom: 5.5rem;
  transform: translateY(-50%);
  will-change: top;
}

.surf-caption span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-peach);
  opacity: 0.65;
}

.surf-caption strong {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-white);
}

.surf-thumbs {
  position: relative;
  z-index: 18;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: safe center;
  gap: 0.55rem;
  width: 100%;
  max-width: 100%;
  padding: 0.15rem clamp(1rem, 3vw, 2rem) clamp(1.35rem, 3.2vh, 2rem);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  cursor: default;
}

.surf-thumbs::-webkit-scrollbar {
  display: none;
}

.surf-thumb {
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1.5px solid rgba(247, 242, 238, 0.22);
  border-radius: 50%;
  background: #120c14;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    transform 0.3s ease;
}

.surf-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.surf-thumb:hover {
  opacity: 0.95;
  border-color: rgba(247, 242, 238, 0.55);
}

.surf-thumb.is-active {
  opacity: 1;
  border-color: rgba(247, 242, 238, 0.85);
  transform: scale(1.08);
}

.surf-thumb.is-active:hover {
  border-color: rgba(247, 242, 238, 0.95);
}

.surf-card[data-href],
.surf-card[data-href] * {
  cursor: pointer;
}

/* ── Gallery about + footer ── */

.gallery-about {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.7fr);
  gap: max(0px, clamp(1.25rem, 2.5vw, 2rem) - 20px);
  align-items: center;
  width: 100%;
  margin: 0;
  padding: clamp(1.25rem, 3.5vh, 2.25rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 4vh, 2.75rem);
  background: #000;
  color: var(--color-white);
  border-top: none;
  position: relative;
  z-index: 2;
}

.gallery-about__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-peach);
  opacity: 0.85;
}

.gallery-about__copy {
  min-width: 0;
}

.gallery-about__copy p {
  margin: 0;
  max-width: none;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.85vw, 1.5rem);
  font-weight: 400;
  line-height: 1.48;
  letter-spacing: 0.01em;
  color: #f3d7c2;
}

.gallery-about__copy p:last-child {
  margin-bottom: 0;
}

.gallery-about__visual {
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1 / 1;
  max-width: min(100%, 26rem);
  margin-left: auto;
  overflow: hidden;
  background: transparent;
  color: inherit;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
}

.gallery-about__visual video,
.gallery-about__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.site-footer,
.gallery-footer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  /* Small fade lives inside the footer only — does not tint page content */
  padding: 2.75rem clamp(1.5rem, 5vw, 4rem) 2.25rem;
  background: linear-gradient(180deg, transparent 0%, #000 2.5rem, #000 100%);
  border-top: none;
}

.site-footer__copy,
.gallery-footer__copy {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--color-peach);
}

.site-footer__socials,
.gallery-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.35rem;
}

.site-footer__socials a,
.gallery-footer__socials a {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-peach);
  transition: color 0.25s ease, text-shadow 0.35s ease, opacity 0.25s ease;
  opacity: 0.9;
}

.site-footer__socials a:hover,
.gallery-footer__socials a:hover {
  color: var(--color-white);
  text-shadow:
    0 0 10px rgba(122, 31, 104, 0.85),
    0 0 22px rgba(122, 31, 104, 0.45);
}

/* ── Project takeover pages ── */

.page-project {
  overflow: auto;
  min-height: 100vh;
}

.project-takeover {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.project-takeover__wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.project-takeover__bar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem var(--page-pad);
}

.project-back,
.project-mark {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.project-back:hover,
.project-mark:hover {
  opacity: 0.7;
}

.project-mark {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  font-size: 0.95rem;
}

.project-takeover__stage {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1rem, 3vh, 2rem) var(--page-pad) clamp(1.25rem, 3vh, 2rem);
  align-items: start;
}

.project-takeover__visual {
  margin: 0;
  width: 100%;
  min-height: min(72vh, 720px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  animation: projectRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.project-takeover__visual img,
.project-takeover__visual video {
  width: 100%;
  height: 100%;
  min-height: min(72vh, 720px);
  object-fit: cover;
  display: block;
}

.project-takeover__copy {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding-bottom: 0.5rem;
  max-width: none;
  width: 100%;
  animation: projectRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.project-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-takeover__copy h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.92;
  margin-bottom: 0.65rem;
}

.project-lede {
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.7;
  max-width: 62ch;
  opacity: 0.9;
  text-align: left;
}

.project-meta {
  list-style: none;
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
}

.project-meta li {
  display: grid;
  gap: 0.15rem;
}

.project-meta span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
}

.project-meta strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
}

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

/* Luna Moth — palette pulled from the gif */
.page-project--luna {
  color: #3a1440;
  background:
    radial-gradient(900px 600px at 80% 10%, rgba(255, 0, 200, 0.28), transparent 55%),
    radial-gradient(700px 500px at 10% 80%, rgba(178, 251, 165, 0.35), transparent 50%),
    linear-gradient(165deg, #fad6e8 0%, #f4c4e0 28%, #e8d4f5 55%, #c8f0d8 78%, #f7b8d8 100%);
}

.page-project--luna .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(255, 0, 170, 0.12), transparent 40%),
    linear-gradient(300deg, rgba(198, 255, 214, 0.18), transparent 45%);
  animation: lunaWash 10s ease-in-out infinite alternate;
}

.page-project--luna .project-back,
.page-project--luna .project-mark,
.page-project--luna .project-kicker,
.page-project--luna .project-lede,
.page-project--luna .project-meta {
  color: #4a1855;
}

.page-project--luna .project-mark span,
.page-project--luna .project-takeover__copy h1 {
  color: #e6007e;
}

.page-project--luna .project-takeover__visual {
  border-color: rgba(230, 0, 126, 0.35);
  box-shadow: 0 24px 80px rgba(230, 0, 126, 0.18);
}

@keyframes lunaWash {
  from { opacity: 0.7; transform: scale(1); }
  to { opacity: 1; transform: scale(1.04); }
}

/* Memory Room — pink / nostalgia palette from header gif */
.page-project--memory {
  color: #3a1430;
  background:
    radial-gradient(900px 520px at 80% 5%, rgba(255, 105, 180, 0.35), transparent 55%),
    radial-gradient(700px 480px at 10% 75%, rgba(255, 182, 193, 0.4), transparent 50%),
    linear-gradient(165deg, #ffe0ef 0%, #ffb6d9 35%, #f48fb1 62%, #2a1024 100%);
}

.page-project--memory .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(255, 64, 160, 0.16), transparent 42%),
    linear-gradient(300deg, rgba(255, 230, 240, 0.35), transparent 50%);
}

.page-project--memory .project-back,
.page-project--memory .project-mark,
.page-project--memory .project-kicker,
.page-project--memory .project-lede,
.page-project--memory .project-section-copy,
.page-project--memory .project-section-label,
.page-project--memory .project-embed__link {
  color: #3a1430;
}

.page-project--memory .project-mark span,
.page-project--memory .project-takeover__copy h1,
.page-project--memory .project-section-copy h2 {
  color: #d81b60;
}

.page-project--memory .project-takeover__visual {
  border-color: rgba(216, 27, 96, 0.28);
  box-shadow: 0 24px 80px rgba(216, 27, 96, 0.2);
}

.page-project--memory .project-embed__frame,
.page-project--memory .project-flat-gallery figure {
  border-color: rgba(58, 20, 48, 0.18);
  background: rgba(255, 255, 255, 0.35);
}

.page-project--memory .project-embed__link:hover {
  color: #d81b60;
}

.page-project--memory .project-flat-gallery--duo.project-flat-gallery--sq figure {
  aspect-ratio: 1 / 1;
}

.page-project--memory .project-flat-gallery--duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-project--memory .project-flat-gallery--trio figure {
  aspect-ratio: 1 / 1;
}

.page-project--memory .project-flat-gallery--duo:not(.project-flat-gallery--sq) figure {
  aspect-ratio: auto;
}

.page-project--memory .project-flat-gallery--duo:not(.project-flat-gallery--sq) img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* What is Hope — palette from header gif (violet / red / cream / black) */
.page-project--hope {
  color: #f3e6d4;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(168, 92, 255, 0.22), transparent 55%),
    radial-gradient(700px 480px at 12% 70%, rgba(214, 48, 58, 0.18), transparent 50%),
    linear-gradient(180deg, #0a070c 0%, #160c16 40%, #1a1014 70%, #0a070c 100%);
}

.page-project--hope .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(214, 48, 58, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(168, 92, 255, 0.1), transparent 48%);
}

.page-project--hope .project-back,
.page-project--hope .project-mark,
.page-project--hope .project-kicker,
.page-project--hope .project-lede,
.page-project--hope .project-meta,
.page-project--hope .project-section-copy,
.page-project--hope .project-section-label,
.page-project--hope .project-embed__link {
  color: #f3e6d4;
}

.page-project--hope .project-mark span,
.page-project--hope .project-takeover__copy h1,
.page-project--hope .project-section-copy h2 {
  color: #ff5a6a;
}

.page-project--hope .project-takeover__visual {
  border-color: rgba(243, 230, 212, 0.22);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.page-project--hope .project-lede {
  opacity: 0.88;
}

/* Still gallery: 2 per row, square crops */
.page-project--hope .project-flat-gallery--duo.project-flat-gallery--sq figure {
  aspect-ratio: 1 / 1;
}

.page-project--hope .project-flat-gallery--duo img,
.page-project--hope .project-flat-gallery--duo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-project--hope .project-section-note {
  margin: 0;
  max-width: 48ch;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.75;
  color: #f3e6d4;
  opacity: 0.88;
}

.page-project--hope .project-storyboard--stack {
  grid-template-columns: 1fr;
}

/* Pyrgi — lime / hot pink / aqua from village patterns */
.page-project--pyrgi {
  color: #1a1420;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(255, 105, 180, 0.28), transparent 55%),
    radial-gradient(700px 480px at 8% 72%, rgba(168, 230, 100, 0.28), transparent 50%),
    linear-gradient(165deg, #e8fff0 0%, #c8f0d8 28%, #f7c6e0 58%, #1e1830 100%);
}

.page-project--pyrgi .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(255, 64, 160, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(120, 220, 90, 0.18), transparent 50%);
}

.page-project--pyrgi .project-back,
.page-project--pyrgi .project-mark,
.page-project--pyrgi .project-kicker,
.page-project--pyrgi .project-lede,
.page-project--pyrgi .project-section-copy,
.page-project--pyrgi .project-section-label,
.page-project--pyrgi .project-embed__link {
  color: #1a1420;
}

.page-project--pyrgi .project-mark span,
.page-project--pyrgi .project-takeover__copy h1,
.page-project--pyrgi .project-section-copy h2 {
  color: #e6007e;
}

.page-project--pyrgi .project-banner__cell,
.page-project--pyrgi .project-embed__frame,
.page-project--pyrgi .project-flat-gallery figure {
  border-color: rgba(26, 20, 32, 0.16);
  background: rgba(255, 255, 255, 0.4);
}

.page-project--pyrgi .project-embed__link:hover {
  color: #e6007e;
}

.page-project--pyrgi .project-gallery-pack {
  display: grid;
  gap: 0.55rem;
}

.page-project--pyrgi .project-flat-gallery--duo.project-flat-gallery--sq figure,
.page-project--pyrgi .project-flat-gallery--trio.project-flat-gallery--sq figure,
.page-project--pyrgi .project-flat-gallery--quad.project-flat-gallery--sq figure {
  aspect-ratio: 1 / 1;
}

.page-project--pyrgi .project-flat-gallery--duo img,
.page-project--pyrgi .project-flat-gallery--trio img,
.page-project--pyrgi .project-flat-gallery--quad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-project--pyrgi .project-flat-gallery--duo:not(.project-flat-gallery--sq) figure {
  aspect-ratio: auto;
}

.page-project--pyrgi .project-flat-gallery--duo:not(.project-flat-gallery--sq) img {
  height: auto;
  object-fit: contain;
}

.page-project--pyrgi .project-flat-gallery--alpha figure {
  background: transparent;
  border-color: transparent;
}

.page-project--pyrgi .project-flat-gallery--alpha img {
  background: transparent;
  mix-blend-mode: normal;
}

.page-project--pyrgi .project-flat-gallery--trio figure {
  aspect-ratio: 1 / 1;
}

.page-project--pyrgi .project-flat-gallery--quad figure {
  aspect-ratio: 1 / 1;
}

.page-project--pyrgi .project-flat-gallery--stack figure {
  aspect-ratio: auto;
  background: transparent;
}

.page-project--pyrgi .project-flat-gallery--stack img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Insect Objects — emerald / gold / cream */
.page-project--insect {
  color: #1a2218;
  background:
    radial-gradient(900px 520px at 80% 8%, rgba(212, 175, 55, 0.22), transparent 55%),
    radial-gradient(700px 480px at 12% 70%, rgba(46, 125, 50, 0.2), transparent 50%),
    linear-gradient(165deg, #f4f0e4 0%, #d8e8c8 40%, #2e4a32 100%);
}

.page-project--insect .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(46, 125, 50, 0.12), transparent 50%);
}

.page-project--insect .project-back,
.page-project--insect .project-mark,
.page-project--insect .project-kicker,
.page-project--insect .project-lede,
.page-project--insect .project-section-copy,
.page-project--insect .project-section-label,
.page-project--insect .project-embed__link {
  color: #1a2218;
}

.page-project--insect .project-mark span,
.page-project--insect .project-takeover__copy h1,
.page-project--insect .project-section-copy h2 {
  color: #2e7d32;
}

.page-project--insect .project-takeover__visual,
.page-project--insect .project-embed__frame,
.page-project--insect .project-flat-gallery figure {
  border-color: rgba(26, 34, 24, 0.16);
  background: rgba(255, 255, 255, 0.38);
}

.page-project--insect .project-embed__link:hover {
  color: #2e7d32;
}

.page-project--insect .project-flat-gallery--trio figure,
.page-project--insect .project-flat-gallery--trio.project-flat-gallery--sq figure,
.page-project--insect .project-flat-gallery--quad.project-flat-gallery--sq figure {
  aspect-ratio: 1 / 1;
}

.page-project--insect .project-flat-gallery--trio img,
.page-project--insect .project-flat-gallery--quad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-project--insect .project-flat-gallery--intro {
  max-width: none;
  width: 100%;
}

.page-project--insect .project-flat-gallery figure:has(img[src$=".png"]) {
  background: transparent;
  border-color: transparent;
}

.page-project--insect .project-flat-gallery--stack.project-flat-gallery--alpha figure {
  aspect-ratio: auto;
  background: transparent;
  border-color: transparent;
}

.page-project--insect .project-flat-gallery--stack.project-flat-gallery--alpha img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.page-project--insect .project-flat-gallery--duo:not(.project-flat-gallery--sq) figure {
  aspect-ratio: auto;
}

.page-project--insect .project-flat-gallery--duo:not(.project-flat-gallery--sq) img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Scroll — indigo / coral night */
.page-project--scroll {
  color: #f3eaf8;
  background:
    radial-gradient(900px 520px at 85% 8%, rgba(255, 112, 67, 0.2), transparent 55%),
    radial-gradient(700px 480px at 10% 75%, rgba(103, 58, 183, 0.28), transparent 50%),
    linear-gradient(180deg, #12081c 0%, #1c1230 45%, #0c0614 100%);
}

.page-project--scroll .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(255, 112, 67, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(103, 58, 183, 0.14), transparent 48%);
}

.page-project--scroll .project-back,
.page-project--scroll .project-mark,
.page-project--scroll .project-kicker,
.page-project--scroll .project-lede,
.page-project--scroll .project-section-copy,
.page-project--scroll .project-section-label,
.page-project--scroll .project-embed__link {
  color: #f3eaf8;
}

.page-project--scroll .project-mark span,
.page-project--scroll .project-takeover__copy h1,
.page-project--scroll .project-section-copy h2 {
  color: #ff8a65;
}

.page-project--scroll .project-takeover__visual {
  border-color: rgba(243, 234, 248, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.page-project--scroll .project-embed__link:hover {
  color: #ff8a65;
}

/* Fabergé — cream / gold / rose */
.page-project--faberge {
  color: #3a2a22;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(212, 175, 55, 0.28), transparent 55%),
    radial-gradient(700px 480px at 10% 75%, rgba(244, 143, 177, 0.22), transparent 50%),
    linear-gradient(165deg, #fff8ee 0%, #f5e6c8 40%, #e8c4b0 70%, #2a1c18 100%);
}

.page-project--faberge .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(212, 175, 55, 0.16), transparent 42%),
    linear-gradient(300deg, rgba(244, 143, 177, 0.14), transparent 50%);
}

.page-project--faberge .project-back,
.page-project--faberge .project-mark,
.page-project--faberge .project-kicker,
.page-project--faberge .project-lede,
.page-project--faberge .project-section-copy,
.page-project--faberge .project-section-label,
.page-project--faberge .project-embed__link {
  color: #3a2a22;
}

.page-project--faberge .project-mark span,
.page-project--faberge .project-takeover__copy h1,
.page-project--faberge .project-section-copy h2 {
  color: #b8860b;
}

.page-project--faberge .project-subhead {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8a6410;
}

.page-project--faberge .project-section-copy--tight {
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
}

.page-project--faberge .project-takeover__visual,
.page-project--faberge .project-embed__frame,
.page-project--faberge .project-flat-gallery figure {
  border-color: rgba(58, 42, 34, 0.16);
  background: rgba(255, 255, 255, 0.4);
}

.page-project--faberge .project-flat-gallery--refs figure,
.page-project--faberge .project-flat-gallery--process figure {
  aspect-ratio: auto;
  min-height: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.55);
}

.page-project--faberge .project-flat-gallery--refs img,
.page-project--faberge .project-flat-gallery--process img {
  width: 100%;
  height: auto;
  max-height: min(62vh, 720px);
  object-fit: contain;
}

.page-project--faberge .project-flat-gallery--alpha.project-flat-gallery--trio figure,
.page-project--faberge .project-flat-gallery--alpha figure {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
}

.page-project--faberge .project-flat-gallery--alpha.project-flat-gallery--trio img,
.page-project--faberge .project-flat-gallery--alpha img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.page-project--faberge .project-embed__link:hover {
  color: #b8860b;
}

/* The Fool — violet / teal portal */
.page-project--fool {
  color: #ebe6ff;
  background:
    radial-gradient(900px 520px at 80% 8%, rgba(0, 200, 180, 0.18), transparent 55%),
    radial-gradient(700px 480px at 12% 72%, rgba(126, 87, 194, 0.28), transparent 50%),
    linear-gradient(180deg, #100818 0%, #1a1030 42%, #0a0612 100%);
}

.page-project--fool .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(0, 200, 180, 0.1), transparent 42%),
    linear-gradient(300deg, rgba(126, 87, 194, 0.14), transparent 48%);
}

.page-project--fool .project-back,
.page-project--fool .project-mark,
.page-project--fool .project-kicker,
.page-project--fool .project-lede,
.page-project--fool .project-section-copy,
.page-project--fool .project-section-label,
.page-project--fool .project-subhead,
.page-project--fool .project-embed__link {
  color: #ebe6ff;
}

.page-project--fool .project-mark span,
.page-project--fool .project-takeover__copy h1,
.page-project--fool .project-section-copy h2 {
  color: #64ffda;
}

.page-project--fool .project-takeover__visual {
  border-color: rgba(235, 230, 255, 0.2);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

/* Shared content column — title, video, copy, galleries share one left edge */
.page-project .project-takeover__bar:not(.project-topbar),
.page-project .project-takeover__stage,
.page-project .project-body {
  max-width: 1320px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
  box-sizing: border-box;
}

/* Project pages: same top menu as gallery + Next project (sticky so Next stays visible) */
.page-project .project-takeover__bar.project-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 1.15rem 0 0.35rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  overflow-x: clip;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-project .project-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.page-project .project-topbar__row:not(.project-topbar__row--actions) {
  padding: 0 var(--page-pad) 0.15rem;
}

.page-project .project-topbar .gallery-brand,
.page-project .project-topbar .gallery-nav a,
.page-project--perfumes .project-topbar .gallery-nav a,
.page-project--breathing .project-topbar .gallery-nav a {
  color: var(--color-peach);
}

.page-project .project-topbar .gallery-brand {
  color: var(--color-peach);
  -webkit-text-fill-color: transparent;
  mix-blend-mode: normal;
}

/* Project action bars: ← Main Gallery / Next Project → (top)
   ↑ Back to top / Next Project → (bottom)
   Muted opposite-of-background via difference blend (dusty peach base, not neon) */
.page-project .project-topbar__row--actions,
.project-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  background: transparent;
  padding: 1.15rem var(--page-pad);
  margin: 0;
  isolation: auto;
}

.page-project .project-topbar__row--actions .project-back,
.page-project .project-topbar__row--actions .project-next,
.page-project .project-bottom-nav .project-back-top,
.page-project .project-bottom-nav .project-next {
  color: #c4b4a6;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.45vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.92;
  text-shadow: none;
  mix-blend-mode: difference;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.page-project .project-topbar__row--actions .project-next,
.page-project .project-bottom-nav .project-next {
  margin-left: auto;
  text-align: right;
}

.page-project .project-topbar__row--actions .project-back:hover,
.page-project .project-topbar__row--actions .project-next:hover,
.page-project .project-bottom-nav .project-back-top:hover,
.page-project .project-bottom-nav .project-next:hover {
  color: #c4b4a6;
  opacity: 0.7;
  text-shadow: none;
}

@media (max-width: 720px) {
  .page-project .project-topbar__row:not(.project-topbar__row--actions) {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .page-project .project-topbar__row--actions {
    flex-direction: row;
    justify-content: space-between;
  }
}

.page-project .project-section-copy {
  max-width: none;
  width: 100%;
}

.page-project .project-section-copy p,
.page-project .project-quote {
  max-width: 62ch;
}

.page-project--fool .project-embed__link:hover {
  color: #64ffda;
}

.page-project--fool .project-lede a {
  color: #64ffda;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.page-project--fool .project-lede a:hover {
  color: #ebe6ff;
}

.page-project--fool .project-quote {
  margin: 0 0 1.35rem;
  padding: 0;
  border: 0;
}

.page-project--fool .project-quote p {
  margin: 0 0 0.55rem;
  font-style: italic;
  line-height: 1.55;
}

.page-project--fool .project-quote cite {
  display: block;
  font-style: normal;
  font-size: 0.92em;
  opacity: 0.78;
}

.page-project--fool .project-rights {
  margin-top: 1.35rem;
  opacity: 0.72;
  font-size: 0.92em;
}

.page-project--fool .project-subhead {
  margin: 0.35rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #ebe6ff;
}

.page-project--fool .project-section-copy--tight {
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
}

.page-project--fool .project-section-label {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #ebe6ff;
  max-width: none;
}

.page-project--fool .project-styleframe-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  margin: 0 0 1.5rem;
}

.page-project--fool .project-styleframe-row figure {
  margin: 0;
  aspect-ratio: 1 / 1.2;
  overflow: visible;
  background: transparent;
  border: none;
}

.page-project--fool .project-styleframe-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  display: block;
  background: transparent;
}

.page-project--fool .project-comp-row {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
  margin: 0 0 1.5rem;
}

.page-project--fool .project-comp-row figure {
  margin: 0;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(235, 230, 255, 0.1);
  min-height: clamp(10rem, 22vw, 16rem);
}

.page-project--fool .project-comp-row img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.page-project--fool .project-flat-gallery--ref {
  max-width: 36rem;
  margin-left: 0;
  margin-right: auto;
}

.page-project--fool .project-flat-gallery--portal-gif {
  max-width: 34rem;
}

.page-project--fool .project-crystal {
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  width: 100%;
  margin: 0 0 1.5rem;
}

.page-project--fool .project-crystal__video {
  width: min(100%, 52rem);
  height: auto;
  display: block;
  background: #000;
}

.page-project--fool .project-crystal__caption {
  margin: 0;
  max-width: 48ch;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  color: rgba(235, 230, 255, 0.82);
}

.page-project--fool .project-section-label--italic {
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

.project-flat-gallery.project-flat-gallery--trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.project-flat-gallery.project-flat-gallery--trio figure {
  aspect-ratio: 3 / 4;
}

.project-flat-gallery.project-flat-gallery--trio img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-project--fool .project-vr {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
}

.page-project--fool .project-vr__still {
  margin: 0;
  background: #000;
  border: 1px solid rgba(235, 230, 255, 0.12);
  overflow: hidden;
}

.page-project--fool .project-vr__still img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.page-project--fool .project-vr__media {
  margin: 0;
  width: 100%;
  background: #000;
  border: 1px solid rgba(235, 230, 255, 0.12);
  overflow: hidden;
}

.page-project--fool .project-vr__media video {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  vertical-align: top;
}

.page-project--fool .project-end {
  display: grid;
  justify-items: center;
  width: 100%;
  margin: clamp(1rem, 3vh, 2rem) 0 clamp(3rem, 8vh, 5rem);
}

.page-project--fool .project-end figure {
  margin: 0;
  width: min(100%, 28rem);
}

.page-project--fool .project-end img {
  width: 100%;
  height: auto;
  display: block;
}

.project-section-sep {
  display: grid;
  place-items: center;
  padding: clamp(0.375rem, 1.05vh, 0.75rem) 0;
  pointer-events: none;
}

.project-section-sep img {
  width: 90px;
  height: 160px;
  object-fit: contain;
  display: block;
}

/* Stills: equal 16:9 tiles in a 3-col grid (example layout) */
.project-flat-gallery--widescreen {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.project-flat-gallery--widescreen figure {
  aspect-ratio: 16 / 9;
}

.project-flat-gallery--widescreen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* If the last row has a single leftover, let it span full width */
.project-flat-gallery--widescreen figure:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

/* Behance-style stills / pairs: 2 larger images per row */
.project-flat-gallery--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.project-flat-gallery--duo figure {
  aspect-ratio: 16 / 9;
}

.project-flat-gallery--duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-flat-gallery--duo.project-flat-gallery--pair {
  margin-bottom: 1.1rem;
}

/* Uniform portrait tiles for tarot research cards */
.project-card-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  margin: 0 0 clamp(0.5rem, 2vh, 1.25rem);
}

.project-card-row figure {
  margin: 0;
  aspect-ratio: 2 / 3.15;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(235, 230, 255, 0.12);
}

.project-card-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Pre-prod / stack: one image per row */
.project-flat-gallery.project-flat-gallery--stack {
  grid-template-columns: 1fr !important;
  gap: 0.85rem;
}

.project-flat-gallery.project-flat-gallery--stack figure {
  aspect-ratio: auto;
  width: 100%;
}

.project-flat-gallery.project-flat-gallery--stack img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Delete Yourself — charcoal / glitch mint */
.page-project--delete {
  color: #e8f0ec;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(0, 230, 180, 0.14), transparent 55%),
    radial-gradient(700px 480px at 12% 70%, rgba(255, 80, 120, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0c0b 0%, #141816 45%, #070908 100%);
}

.page-project--delete .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(0, 230, 180, 0.08), transparent 42%),
    linear-gradient(300deg, rgba(255, 80, 120, 0.08), transparent 48%);
}

.page-project--delete .project-back,
.page-project--delete .project-mark,
.page-project--delete .project-kicker,
.page-project--delete .project-lede,
.page-project--delete .project-section-copy,
.page-project--delete .project-embed__link {
  color: #e8f0ec;
}

.page-project--delete .project-mark span,
.page-project--delete .project-takeover__copy h1,
.page-project--delete .project-section-copy h2 {
  color: #5effc5;
}

.page-project--delete .project-takeover__visual,
.page-project--delete .project-flat-gallery figure,
.page-project--delete .project-embed__frame {
  border-color: rgba(232, 240, 236, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.page-project--delete .project-embed__link:hover {
  color: #5effc5;
}

/* Vicarious — cold subway cyan / bruise violet */
.page-project--vicarious {
  color: #e8eef8;
  background:
    radial-gradient(900px 520px at 80% 6%, rgba(90, 180, 255, 0.16), transparent 55%),
    radial-gradient(700px 480px at 12% 78%, rgba(140, 80, 220, 0.14), transparent 50%),
    linear-gradient(180deg, #070910 0%, #121620 45%, #06070c 100%);
}

.page-project--vicarious .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(90, 180, 255, 0.08), transparent 42%),
    linear-gradient(300deg, rgba(140, 80, 220, 0.08), transparent 48%);
}

.page-project--vicarious .project-back,
.page-project--vicarious .project-mark,
.page-project--vicarious .project-kicker,
.page-project--vicarious .project-lede,
.page-project--vicarious .project-section-copy,
.page-project--vicarious .project-embed__link {
  color: #e8eef8;
}

.page-project--vicarious .project-mark span,
.page-project--vicarious .project-takeover__copy h1,
.page-project--vicarious .project-section-copy h2 {
  color: #7ec8ff;
}

.page-project--vicarious .project-section-copy a {
  color: #7ec8ff;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.page-project--vicarious .project-section-copy a:hover {
  color: #e8eef8;
}

.page-project--vicarious .project-embed__frame {
  border-color: rgba(232, 238, 248, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.page-project--vicarious .project-embed__link:hover {
  color: #7ec8ff;
}

/* SHALVA — warm amber / soft dusk */
.page-project--shalva {
  color: #f4ebe0;
  background:
    radial-gradient(900px 520px at 78% 10%, rgba(220, 140, 70, 0.22), transparent 55%),
    radial-gradient(700px 480px at 12% 78%, rgba(180, 90, 50, 0.16), transparent 50%),
    linear-gradient(180deg, #140c0a 0%, #1c1210 42%, #0a0706 100%);
}

.page-project--shalva .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(220, 140, 70, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(160, 70, 40, 0.1), transparent 48%);
}

.page-project--shalva .project-back,
.page-project--shalva .project-mark,
.page-project--shalva .project-kicker,
.page-project--shalva .project-lede,
.page-project--shalva .project-section-copy,
.page-project--shalva .project-embed__link {
  color: #f4ebe0;
}

.page-project--shalva .project-mark span,
.page-project--shalva .project-takeover__copy h1 {
  color: #f0b87a;
}

.page-project--shalva .project-section-copy a {
  color: #f0b87a;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.page-project--shalva .project-section-copy a:hover {
  color: #f4ebe0;
}

.page-project--shalva .project-takeover__visual {
  border-color: rgba(244, 235, 224, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.page-project--shalva .project-embed__link:hover {
  color: #f0b87a;
}

/* Early Internet Digital Ideas — sharp web-era lime / magenta on ink */
.page-project--early-net {
  color: #f2f2f0;
  background:
    radial-gradient(900px 520px at 86% 0%, rgba(255, 60, 140, 0.18), transparent 52%),
    radial-gradient(700px 480px at 8% 80%, rgba(180, 255, 70, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0a0c 0%, #121218 48%, #070709 100%);
}

.page-project--early-net .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(255, 60, 140, 0.08), transparent 40%),
    linear-gradient(300deg, rgba(180, 255, 70, 0.06), transparent 48%);
}

.page-project--early-net .project-back,
.page-project--early-net .project-mark,
.page-project--early-net .project-kicker,
.page-project--early-net .project-lede {
  color: #f2f2f0;
}

.page-project--early-net .project-mark span,
.page-project--early-net .project-takeover__copy h1 {
  color: #d8ff4a;
}

.page-project--early-net .project-lede {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  opacity: 0.8;
}

/* Sketchbook — paper / graphite / warm ink */
/* Palette sampled from the Lucid Dream frames */
.page-project--lucid {
  color: #efe8ff;
  background:
    radial-gradient(880px 520px at 16% 6%, rgba(155, 55, 221, 0.24), transparent 56%),
    radial-gradient(760px 540px at 86% 66%, rgba(44, 57, 243, 0.24), transparent 54%),
    linear-gradient(180deg, #170a2b 0%, #1d1038 46%, #0a0616 100%);
}

.page-project--lucid .project-takeover__wash {
  background:
    linear-gradient(150deg, rgba(157, 4, 238, 0.12), transparent 44%),
    linear-gradient(320deg, rgba(44, 57, 243, 0.26), transparent 50%);
}

.page-project--lucid .project-kicker,
.page-project--lucid .project-lede {
  color: rgba(239, 232, 255, 0.78);
}

.page-project--lucid .project-takeover__copy h1 {
  color: #cf76b5;
}

.page-project--lucid .project-lede {
  max-width: 54ch;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  opacity: 1;
}

/* Vertical source: 4-up then 5-up, all kept at 9:16 */
.page-project--lucid .project-flat-gallery--vert4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.page-project--lucid .project-flat-gallery--vert5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
}

.page-project--lucid .project-flat-gallery--vert4 figure,
.page-project--lucid .project-flat-gallery--vert5 figure {
  aspect-ratio: 9 / 16;
  overflow: hidden;
}

.page-project--lucid .project-flat-gallery--vert4 img,
.page-project--lucid .project-flat-gallery--vert5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 720px) {
  .page-project--lucid .project-flat-gallery--vert4,
  .page-project--lucid .project-flat-gallery--vert5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Portrait embeds would be absurdly tall at full width.
   Double class needed: the base .project-embed__frame rule is declared later. */
.project-embed__frame.project-embed__frame--portrait {
  aspect-ratio: 9 / 16;
  max-width: 420px;
  margin-inline: auto;
}

/* A 9:16 hero gets cover-cropped into a band by the base max-height,
   so narrow the column instead and let it keep its full height. */
.project-hero.project-hero--portrait {
  max-width: 420px;
  margin-inline: auto;
}

.project-hero.project-hero--portrait video,
.project-hero.project-hero--portrait img {
  max-height: none;
  height: auto;
  object-fit: contain;
}

/* Palette sampled from the Hoenly You key art */
.page-project--hoenly-you {
  color: #f0e9f3;
  background:
    radial-gradient(860px 500px at 14% 6%, rgba(96, 105, 169, 0.22), transparent 56%),
    radial-gradient(720px 540px at 88% 68%, rgba(122, 47, 68, 0.26), transparent 52%),
    linear-gradient(180deg, #1a1028 0%, #241734 44%, #0d0814 100%);
}

.page-project--hoenly-you .project-takeover__wash {
  background:
    linear-gradient(150deg, rgba(96, 105, 169, 0.12), transparent 44%),
    linear-gradient(320deg, rgba(77, 62, 123, 0.32), transparent 50%);
}

.page-project--hoenly-you .project-kicker,
.page-project--hoenly-you .project-lede {
  color: rgba(240, 233, 243, 0.78);
}

.page-project--hoenly-you .project-takeover__copy h1 {
  color: #d9b78f;
}

.page-project--hoenly-you .project-lede {
  max-width: 54ch;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  opacity: 1;
}

.page-project--sketchbook {
  color: #f3ebe3;
  background:
    radial-gradient(820px 480px at 12% 8%, rgba(240, 196, 168, 0.1), transparent 55%),
    radial-gradient(700px 520px at 90% 70%, rgba(90, 70, 55, 0.28), transparent 52%),
    linear-gradient(180deg, #14110f 0%, #1c1815 46%, #0d0b0a 100%);
}

.page-project--sketchbook .project-takeover__wash {
  background:
    linear-gradient(150deg, rgba(240, 196, 168, 0.06), transparent 42%),
    linear-gradient(320deg, rgba(60, 48, 40, 0.35), transparent 50%);
}

.page-project--sketchbook .project-kicker,
.page-project--sketchbook .project-lede {
  color: rgba(243, 235, 227, 0.78);
}

.page-project--sketchbook .project-takeover__copy h1 {
  color: #f0c4a8;
}

.page-project--sketchbook .project-lede {
  max-width: 52ch;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: clamp(0.98rem, 1.5vw, 1.12rem);
  line-height: 1.55;
  opacity: 1;
}

.page-project--sketchbook .project-flat-gallery--stack {
  margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
}

.page-project--sketchbook .illu-deck__title,
.page-project--sketchbook .illu-deck__count,
.page-project--sketchbook .illu-deck__hint {
  color: rgba(243, 235, 227, 0.72);
}

/* Illustration toggle deck */
.illu-deck {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.illu-deck__stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.illu-deck__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 820px);
  width: 100%;
  margin: 0 auto;
  border: 1px solid rgba(242, 242, 240, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
    #050508;
  overflow: hidden;
  touch-action: pan-y;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.illu-deck__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  user-select: none;
  background: #050508;
}

.illu-deck__frame img.is-enter-left {
  transform: translateX(-18px);
}

.illu-deck__frame img.is-enter-right {
  transform: translateX(18px);
}

.illu-deck__frame img.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.illu-deck__nav {
  appearance: none;
  border: 1px solid rgba(242, 242, 240, 0.35);
  background: rgba(8, 8, 10, 0.72);
  color: #f2f2f0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.illu-deck__nav:hover {
  background: #d8ff4a;
  border-color: #d8ff4a;
  color: #0a0a0c;
  transform: scale(1.04);
}

.illu-deck__nav:active {
  transform: scale(0.97);
}

.illu-deck__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.15rem;
}

.illu-deck__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.illu-deck__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.7;
  white-space: nowrap;
}

.illu-deck__rail {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.2rem 0.1rem 0.55rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 255, 74, 0.45) transparent;
}

.illu-deck__thumb {
  appearance: none;
  border: 1px solid rgba(242, 242, 240, 0.2);
  background: #0c0c10;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
  width: 4.4rem;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  opacity: 0.55;
  transition:
    opacity 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.illu-deck__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.illu-deck__thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.illu-deck__thumb.is-active {
  opacity: 1;
  border-color: #d8ff4a;
  box-shadow: 0 0 0 1px #d8ff4a;
}

.illu-deck__hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.45;
}

@media (max-width: 720px) {
  .illu-deck__stage {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .illu-deck__nav {
    width: 100%;
    height: 2.4rem;
  }

  .illu-deck__stage {
    grid-template-areas:
      "frame"
      "prevnext";
  }

  .illu-deck__frame {
    grid-area: frame;
    aspect-ratio: 3 / 4;
    max-height: 62vh;
  }

  .illu-deck__nav--prev,
  .illu-deck__nav--next {
    grid-area: prevnext;
  }

  .illu-deck__stage {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .illu-deck__frame {
    flex: 1 1 100%;
    order: 1;
  }

  .illu-deck__nav {
    flex: 0 0 calc(50% - 0.3rem);
    order: 2;
  }
}

/* SEE — deep blue / dream violet */
.page-project--see {
  color: #e6eefc;
  background:
    radial-gradient(900px 520px at 80% 8%, rgba(120, 160, 255, 0.22), transparent 55%),
    radial-gradient(700px 480px at 10% 75%, rgba(160, 100, 255, 0.18), transparent 50%),
    linear-gradient(180deg, #080e1c 0%, #121a30 42%, #060a14 100%);
}

.page-project--see .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(120, 160, 255, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(160, 100, 255, 0.1), transparent 48%);
}

.page-project--see .project-back,
.page-project--see .project-mark,
.page-project--see .project-kicker,
.page-project--see .project-lede,
.page-project--see .project-section-copy,
.page-project--see .project-section-label,
.page-project--see .project-embed__link {
  color: #e6eefc;
}

.page-project--see .project-mark span,
.page-project--see .project-takeover__copy h1,
.page-project--see .project-section-copy h2 {
  color: #9ec5ff;
}

.page-project--see .project-takeover__visual {
  border-color: rgba(230, 238, 252, 0.18);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.page-project--see .project-embed__link:hover {
  color: #9ec5ff;
}

/* Abstract Perfumes — glass lavender / peach (legacy theme kept) */
.page-project--perfumes {
  color: #2a2030;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(200, 160, 255, 0.28), transparent 55%),
    radial-gradient(700px 480px at 10% 75%, rgba(255, 180, 160, 0.24), transparent 50%),
    linear-gradient(165deg, #f7f0ff 0%, #efe0f8 40%, #f8d8d0 70%, #1e1424 100%);
}

.page-project--perfumes .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(200, 160, 255, 0.14), transparent 42%),
    linear-gradient(300deg, rgba(255, 180, 160, 0.14), transparent 50%);
}

.page-project--perfumes .project-back,
.page-project--perfumes .project-mark,
.page-project--perfumes .project-kicker,
.page-project--perfumes .project-lede,
.page-project--perfumes .project-section-copy,
.page-project--perfumes .project-embed__link {
  color: #2a2030;
}

.page-project--perfumes .project-mark span,
.page-project--perfumes .project-takeover__copy h1 {
  color: #8e44ad;
}

.page-project--perfumes .project-takeover__visual,
.page-project--perfumes .project-embed__frame,
.page-project--perfumes .project-flat-gallery figure {
  border-color: rgba(42, 32, 48, 0.14);
  background: rgba(255, 255, 255, 0.4);
}

.page-project--perfumes .project-embed__link:hover,
.page-project--perfumes a {
  color: #8e44ad;
}

/* House Plant — botanical night green / coral bloom */
.page-project--house {
  color: #e8f5e9;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(76, 175, 80, 0.22), transparent 55%),
    radial-gradient(700px 480px at 12% 72%, rgba(255, 112, 67, 0.16), transparent 50%),
    linear-gradient(180deg, #0a160c 0%, #122018 45%, #060a08 100%);
}

.page-project--house .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(76, 175, 80, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(255, 112, 67, 0.1), transparent 48%);
}

.page-project--house .project-back,
.page-project--house .project-mark,
.page-project--house .project-kicker,
.page-project--house .project-lede,
.page-project--house .project-section-copy,
.page-project--house .project-section-label,
.page-project--house .project-embed__link {
  color: #e8f5e9;
}

.page-project--house .project-mark span,
.page-project--house .project-takeover__copy h1,
.page-project--house .project-section-copy h2 {
  color: #81c784;
}

.page-project--house .project-embed__link:hover {
  color: #ff8a65;
}

.page-project--house .project-flat-gallery figure {
  border-color: rgba(200, 255, 200, 0.14);
  background: rgba(0, 0, 0, 0.35);
}

.page-project--house .project-flat-gallery + .project-flat-gallery {
  margin-top: 0.55rem;
}

.page-project--house .project-flat-gallery--stack video {
  width: 100%;
  height: auto;
  display: block;
}

.page-project--house .project-flat-gallery--prod-video {
  display: flex;
  justify-content: center;
}

.page-project--house .project-flat-gallery--prod-video figure {
  width: 50%;
  max-width: 50%;
  aspect-ratio: auto;
}

.page-project--house .project-flat-gallery--prod-video video {
  width: 100%;
  height: auto;
  display: block;
}

/* Level Rebirth — neon game green / black */
.page-project--rebirth {
  color: #e8ffe8;
  background:
    radial-gradient(900px 520px at 82% 8%, rgba(80, 255, 120, 0.16), transparent 55%),
    radial-gradient(700px 480px at 12% 70%, rgba(0, 200, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #050805 0%, #0c140e 42%, #030503 100%);
}

.page-project--rebirth .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(80, 255, 120, 0.1), transparent 42%),
    linear-gradient(300deg, rgba(0, 200, 255, 0.08), transparent 48%);
}

.page-project--rebirth .project-back,
.page-project--rebirth .project-mark,
.page-project--rebirth .project-kicker,
.page-project--rebirth .project-lede,
.page-project--rebirth .project-embed__link {
  color: #e8ffe8;
}

.page-project--rebirth .project-mark span,
.page-project--rebirth .project-takeover__copy h1 {
  color: #69f0ae;
}

.page-project--rebirth .project-takeover__visual {
  border-color: rgba(232, 255, 232, 0.16);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.page-project--rebirth .project-embed__link:hover {
  color: #69f0ae;
}

.page-project--rebirth .project-flat-gallery--fetus {
  display: flex;
  justify-content: center;
}

.page-project--rebirth .project-flat-gallery--fetus figure {
  width: 50%;
  max-width: 50%;
  aspect-ratio: auto;
  background: transparent;
  border-color: transparent;
}

.page-project--rebirth .project-flat-gallery--fetus img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}

.page-project--rebirth .project-flat-gallery--duo.project-flat-gallery--sq figure {
  aspect-ratio: 1 / 1;
}

.page-project--rebirth .project-flat-gallery--duo.project-flat-gallery--sq img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-project--rebirth .project-flat-gallery--alpha figure {
  background: transparent;
  border-color: transparent;
}

.page-project--rebirth .project-flat-gallery--alpha img {
  background: transparent;
  object-fit: contain;
}

/* Heart Vortex — crimson / rose / black */
.page-project--heart {
  color: #fce8ee;
  background:
    radial-gradient(900px 520px at 82% 6%, rgba(196, 30, 58, 0.28), transparent 55%),
    radial-gradient(700px 480px at 12% 75%, rgba(120, 20, 50, 0.22), transparent 50%),
    linear-gradient(180deg, #1a060c 0%, #120408 45%, #050203 100%);
}

.page-project--heart .project-takeover__wash {
  background:
    linear-gradient(125deg, rgba(196, 30, 58, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(90, 10, 30, 0.14), transparent 48%);
}

.page-project--heart .project-back,
.page-project--heart .project-mark,
.page-project--heart .project-kicker,
.page-project--heart .project-lede,
.page-project--heart .project-section-copy,
.page-project--heart .project-embed__link {
  color: #fce8ee;
}

.page-project--heart .project-mark span,
.page-project--heart .project-takeover__copy h1,
.page-project--heart .project-section-copy h2 {
  color: #ff6b8a;
}

.page-project--heart .project-embed__link:hover {
  color: #ff6b8a;
}

.page-project--heart .project-flat-gallery figure {
  border-color: rgba(255, 180, 200, 0.16);
  background: rgba(0, 0, 0, 0.35);
}

.page-project--heart .project-flat-gallery--stack img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Breathing Exercise — soft sky / calm blue */
.page-project--breathing {
  color: #1a2a38;
  background:
    radial-gradient(900px 520px at 80% 8%, rgba(120, 200, 255, 0.28), transparent 55%),
    radial-gradient(700px 480px at 12% 72%, rgba(180, 230, 200, 0.22), transparent 50%),
    linear-gradient(165deg, #eef7ff 0%, #d8ecf8 40%, #c8e0e8 70%, #15202a 100%);
}

.page-project--breathing .project-takeover__wash {
  background:
    linear-gradient(120deg, rgba(120, 200, 255, 0.16), transparent 42%),
    linear-gradient(300deg, rgba(180, 230, 200, 0.14), transparent 50%);
}

.page-project--breathing .project-back,
.page-project--breathing .project-mark,
.page-project--breathing .project-kicker,
.page-project--breathing .project-lede,
.page-project--breathing .project-section-copy,
.page-project--breathing .project-embed__link {
  color: #1a2a38;
}

.page-project--breathing .project-mark span,
.page-project--breathing .project-takeover__copy h1,
.page-project--breathing .project-section-copy h2 {
  color: #1565c0;
}

.page-project--breathing .project-takeover__visual,
.page-project--breathing .project-embed__frame,
.page-project--breathing .project-flat-gallery figure {
  border-color: rgba(26, 42, 56, 0.14);
  background: rgba(255, 255, 255, 0.42);
}

.page-project--breathing .project-embed__link:hover,
.page-project--breathing a {
  color: #1565c0;
}

.project-takeover__stage--banner {
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
}

.project-banner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  min-width: 0;
}

.project-banner__cell {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid rgba(243, 230, 212, 0.16);
  background: #050308;
}

.project-banner__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-takeover__stage--hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.75fr);
  align-items: end;
  min-height: calc(100vh - 72px);
  padding-top: 0;
  padding-bottom: clamp(2rem, 5vh, 3.5rem);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}

.project-takeover__stage--hero .project-takeover__copy {
  align-content: end;
}

.project-takeover__stage--copy {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-height: 0;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(1.25rem, 3vh, 2rem);
  margin-bottom: 0;
}

.project-hero {
  margin: 0;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background: #050308;
}

.project-hero img,
.project-hero video {
  width: 100%;
  height: auto;
  max-height: min(70vh, 720px);
  object-fit: cover;
  display: block;
}

.project-body {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--page-pad) clamp(3rem, 8vh, 5rem);
  display: grid;
  gap: clamp(1.75rem, 4vh, 2.75rem);
}

.project-embed {
  display: grid;
  gap: 0.75rem;
}

.project-embed__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(243, 230, 212, 0.18);
  background: #050308;
  overflow: hidden;
}

.project-embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-embed__link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  width: fit-content;
}

.project-embed__link:hover {
  opacity: 1;
  color: #ff5a6a;
}

.project-section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.project-section-copy {
  display: grid;
  gap: 0.65rem;
  max-width: 48ch;
}

.project-section-copy h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.project-section-copy p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.75;
  opacity: 0.88;
}

.project-flat-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.project-flat-gallery.project-flat-gallery--duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.project-flat-gallery.project-flat-gallery--duo figure {
  aspect-ratio: 16 / 9;
}

.project-flat-gallery.project-flat-gallery--duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-flat-gallery.project-flat-gallery--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}

.project-flat-gallery.project-flat-gallery--penta {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
}

.project-flat-gallery.project-flat-gallery--penta figure {
  aspect-ratio: 1 / 1;
}

.project-flat-gallery.project-flat-gallery--penta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-flat-gallery.project-flat-gallery--quad figure {
  aspect-ratio: 16 / 9;
}

.project-flat-gallery.project-flat-gallery--quad img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-flat-gallery--square {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-flat-gallery.project-flat-gallery--trio.project-flat-gallery--square {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-flat-gallery.project-flat-gallery--trio.project-flat-gallery--square figure {
  aspect-ratio: 1 / 1;
}

.project-flat-gallery.project-flat-gallery--quad.project-flat-gallery--square {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-flat-gallery.project-flat-gallery--quad.project-flat-gallery--square figure {
  aspect-ratio: 1 / 1;
}

.page-project--scroll .project-flat-gallery + .project-flat-gallery {
  margin-top: 0.55rem;
}

.project-flat-gallery--ending {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-flat-gallery figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050308;
  border: 1px solid rgba(243, 230, 212, 0.12);
}

.project-flat-gallery--square figure {
  aspect-ratio: 1 / 1;
}

.project-flat-gallery--ending figure {
  aspect-ratio: auto;
}

.project-flat-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-flat-gallery--ending img {
  height: auto;
  object-fit: contain;
}

.project-storyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.project-storyboard figure {
  margin: 0;
  border: 1px solid rgba(243, 230, 212, 0.16);
  background: #050308;
  overflow: hidden;
}

.project-storyboard img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .project-takeover__stage {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-takeover__stage--banner {
    grid-template-columns: 1fr;
  }

  .project-takeover__visual,
  .project-takeover__visual img,
  .project-takeover__visual video {
    min-height: 52vh;
  }

  .project-flat-gallery,
  .project-flat-gallery--square {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-flat-gallery--widescreen {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-flat-gallery--widescreen figure:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .project-flat-gallery--widescreen figure:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
  }

  .project-flat-gallery--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-flat-gallery.project-flat-gallery--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-flat-gallery.project-flat-gallery--quad {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .page-project--fool .project-styleframe-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-project--fool .project-comp-row {
    grid-template-columns: 1fr;
  }

  .page-project--fool .project-vr {
    grid-template-columns: 1fr;
  }

  .project-flat-gallery--stack {
    grid-template-columns: 1fr;
  }

  .project-storyboard {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .project-flat-gallery,
  .project-flat-gallery--square,
  .project-flat-gallery--ending,
  .project-flat-gallery--widescreen,
  .project-flat-gallery--duo,
  .project-flat-gallery.project-flat-gallery--duo,
  .project-flat-gallery.project-flat-gallery--quad {
    grid-template-columns: 1fr;
  }

  .project-flat-gallery--widescreen figure:last-child:nth-child(2n + 1),
  .project-flat-gallery--widescreen figure:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  .project-card-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-project--fool .project-styleframe-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-flat-gallery.project-flat-gallery--trio {
    grid-template-columns: 1fr;
  }
}

/* ── About / Contact ── */

.page-contact {
  background: #000;
}

.page-contact .gallery-viewport.contact-viewport,
.contact-viewport {
  background: #000;
  overflow: hidden;
}

.page-contact .gallery-viewport.contact-viewport::after {
  display: none;
}

.contact-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  align-items: center;
  width: min(100%, 64rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vh, 2.25rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.75rem, 4vh, 2.75rem);
}

.contact-stage__copy {
  min-width: 0;
  display: grid;
  justify-items: start;
  gap: 0.85rem;
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--color-white);
}

.contact-lede {
  margin: 0.15rem 0 0.2rem;
  max-width: 28ch;
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.5;
  color: var(--color-white);
  opacity: 0.92;
}

.contact-email {
  margin-top: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  letter-spacing: 0.02em;
  color: var(--color-white);
  transition: color 0.25s ease, text-shadow 0.35s ease;
}

.contact-email:hover {
  color: var(--color-peach);
  text-shadow:
    0 0 12px rgba(122, 31, 104, 0.85),
    0 0 28px rgba(122, 31, 104, 0.45);
}

.contact-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
  margin-top: 0.85rem;
}

.contact-socials a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-peach);
  opacity: 0.9;
  transition: opacity 0.25s ease, color 0.25s ease, text-shadow 0.35s ease;
}

.contact-socials a:hover {
  opacity: 1;
  color: var(--color-white);
  text-shadow:
    0 0 10px rgba(122, 31, 104, 0.85),
    0 0 22px rgba(122, 31, 104, 0.45);
}

.contact-stage__visual {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  max-width: min(100%, 24rem);
  margin-left: 0;
  justify-self: end;
  overflow: hidden;
  background: transparent;
}

.contact-stage__visual video,
.contact-stage__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-kicker {
  display: none;
}

.content-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 520px;
}

.prose {
  display: grid;
  gap: 1rem;
}

.prose strong {
  color: var(--color-red);
  font-weight: 500;
}

.about-panel {
  width: 100%;
  min-height: 220px;
  border: 1px solid rgba(247, 242, 238, 0.12);
  background: rgba(0, 0, 0, 0.3);
  display: grid;
  align-content: end;
  gap: 0.35rem;
  padding: 1.1rem;
}

.about-panel span {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.about-panel strong {
  font-size: 1.05rem;
  color: var(--color-white);
}

.contact-form {
  width: 100%;
  display: grid;
  gap: 0.95rem;
}

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

.field label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-peach);
  opacity: 0.75;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(247, 242, 238, 0.18);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.75rem 0.85rem;
  color: var(--color-red);
  outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(240, 196, 168, 0.3);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-red);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-meta {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(247, 242, 238, 0.12);
}

.contact-meta li {
  display: grid;
  gap: 0.15rem;
}

.contact-meta span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-meta strong,
.contact-meta a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-peach);
}

.contact-meta a:hover {
  color: var(--color-red);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}

/* ── Responsive ── */

@media (max-width: 800px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid rgba(247, 242, 238, 0.1);
    gap: 1.25rem;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
  }

  .page-stage {
    max-width: none;
  }

  .page-gallery,
  .site-shell--gallery {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .gallery-viewport {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .site-shell--gallery {
    overflow: visible;
  }

  .gallery-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-bottom: 1.25rem;
  }

  .gallery-nav {
    justify-content: flex-start;
  }

  .site-main--surf {
    height: auto;
    min-height: 0;
    flex: 1;
  }

  .surf-stack.stack {
    transform: translate3d(0, 18%, 0);
  }

  .surf-thumb {
    width: 2.25rem;
    height: 2.25rem;
  }

  .gallery-about {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    padding: 2rem var(--page-pad) 2.25rem;
  }

  .gallery-about__copy p {
    font-size: clamp(1.05rem, 3.8vw, 1.25rem);
  }

  .gallery-about__visual {
    aspect-ratio: 1 / 1;
    max-width: min(100%, 20rem);
    margin-left: 0;
    order: -1;
  }

  .contact-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: min(100%, 28rem);
    margin: 0 auto;
    padding: 2rem var(--page-pad) 2.25rem;
    align-content: start;
  }

  .contact-stage__visual {
    max-width: min(100%, 20rem);
    margin-left: 0;
    justify-self: start;
    order: -1;
  }

  .site-footer,
  .gallery-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .illu-deck__caption {
    transition: none !important;
  }
}

/* Kill any leftover crystal loader / cursor from cached builds */
.crystal-cursor,
#crystal-cursor,
.site-loader,
#site-loader {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}

body.has-crystal-cursor,
body.has-crystal-cursor *,
body.is-loading {
  cursor: auto !important;
}

body.is-loading .site-shell--gallery {
  visibility: visible !important;
}

/* Hover reveal cursor — random art disc on interactive elements */
body.dang-cursor-on a[href],
body.dang-cursor-on a[href] *,
body.dang-cursor-on button,
body.dang-cursor-on button *,
body.dang-cursor-on [role="button"],
body.dang-cursor-on summary,
body.dang-cursor-on label[for],
body.dang-cursor-on input[type="submit"],
body.dang-cursor-on .surf-card[data-href],
body.dang-cursor-on .surf-card[data-href] *,
body.dang-cursor-on .illu-deck__thumb,
body.dang-cursor-on .illu-deck__nav,
body.dang-cursor-on [data-cursor-hover],
body.dang-cursor-on [data-cursor-hover] * {
  cursor: none;
}

/* Peek targets float their preview away from the pointer, so keep a real cursor */
body.dang-cursor-on .surf-thumb,
body.dang-cursor-on .surf-thumb *,
body.dang-cursor-on .illu-deck__thumb,
body.dang-cursor-on .illu-deck__thumb * {
  cursor: pointer;
}

.dang-cursor {
  --dang-cursor-size: 52px;
  --dang-glow: 232, 160, 120;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--dang-cursor-size);
  height: var(--dang-cursor-size);
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
}

.dang-cursor__art {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: rgba(42, 20, 40, 0.92);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow:
    0 0 0 1px rgba(var(--dang-glow), 0.6),
    0 10px 26px rgba(5, 3, 8, 0.5),
    0 0 18px rgba(var(--dang-glow), 0.35);
  opacity: 0;
  transform: scale(0.35) rotate(var(--tilt, 0deg));
  transition:
    opacity 0.2s ease,
    transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Apricot bloom sampled from the top-fog noise */
.dang-cursor__glow {
  position: absolute;
  inset: -60%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(var(--dang-glow), 0.5) 0%,
    rgba(var(--dang-glow), 0.26) 32%,
    rgba(var(--dang-glow), 0.08) 56%,
    rgba(var(--dang-glow), 0) 72%
  );
  filter: blur(7px);
  opacity: 0;
  transform: scale(0.55);
  transition:
    opacity 0.3s ease,
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dang-cursor.is-visible .dang-cursor__glow {
  opacity: 1;
  transform: scale(1);
  animation: dang-breathe 2.6s ease-in-out infinite;
}

/* Two staggered rings reading as an echo off the disc */
.dang-cursor::before,
.dang-cursor::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--dang-glow), 0.55);
  box-shadow: 0 0 12px rgba(var(--dang-glow), 0.3);
  opacity: 0;
}

.dang-cursor.is-visible::before {
  animation: dang-echo 2.2s ease-out infinite;
}

.dang-cursor.is-visible::after {
  animation: dang-echo 2.2s ease-out 1.1s infinite;
}

.dang-cursor__dust {
  position: absolute;
  inset: -48%;
  border-radius: 50%;
  opacity: 0;
  background-image:
    radial-gradient(circle, rgba(var(--dang-glow), 0.95) 0 1.1px, transparent 1.7px),
    radial-gradient(circle, rgba(255, 246, 238, 0.9) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(var(--dang-glow), 0.8) 0 1.3px, transparent 1.9px),
    radial-gradient(circle, rgba(var(--dang-glow), 0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(255, 246, 238, 0.75) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(var(--dang-glow), 0.85) 0 1.2px, transparent 1.8px);
  background-repeat: no-repeat;
  background-position: 16% 10%, 80% 20%, 90% 64%, 10% 74%, 48% 4%, 60% 92%;
  transition: opacity 0.35s ease;
}

.dang-cursor.is-visible .dang-cursor__dust {
  animation:
    dang-drift 3.6s linear infinite,
    dang-twinkle 1.7s ease-in-out infinite;
}

/* Peek: the thumbnail's own art, blown up and drifting above the strip */
.dang-cursor.is-peek .dang-cursor__art {
  box-shadow:
    0 0 0 1px rgba(var(--dang-glow), 0.7),
    0 16px 42px rgba(5, 3, 8, 0.62),
    0 0 28px rgba(var(--dang-glow), 0.42);
  transition:
    opacity 0.13s ease,
    transform 0.24s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dang-cursor.is-peek .dang-cursor__glow {
  transition:
    opacity 0.16s ease,
    transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.dang-cursor.is-peek .dang-cursor__dust {
  inset: -26%;
}

.dang-cursor.is-peek.is-visible::before {
  animation: dang-echo-soft 2.6s ease-out infinite;
}

.dang-cursor.is-peek.is-visible::after {
  animation: dang-echo-soft 2.6s ease-out 1.3s infinite;
}

@keyframes dang-echo-soft {
  0% {
    opacity: 0.6;
    transform: scale(0.96);
  }
  70% {
    opacity: 0.08;
  }
  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

@keyframes dang-breathe {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

@keyframes dang-echo {
  0% {
    opacity: 0.75;
    transform: scale(0.88);
  }
  70% {
    opacity: 0.1;
  }
  100% {
    opacity: 0;
    transform: scale(2.15);
  }
}

@keyframes dang-drift {
  0% {
    transform: rotate(0deg) scale(1);
  }
  100% {
    transform: rotate(360deg) scale(1.07);
  }
}

@keyframes dang-twinkle {
  0%,
  100% {
    opacity: 0.9;
  }
  50% {
    opacity: 0.35;
  }
}

.dang-cursor.is-visible .dang-cursor__art {
  opacity: 1;
  transform: scale(1) rotate(var(--tilt, 0deg));
}

.dang-cursor.is-press .dang-cursor__art {
  transform: scale(0.86) rotate(var(--tilt, 0deg));
  transition:
    opacity 0.2s ease,
    transform 0.12s ease;
}

@media (prefers-reduced-motion: reduce) {
  .dang-cursor__art {
    transform: scale(1) rotate(0deg);
    transition: opacity 0.18s ease;
  }
  .dang-cursor.is-visible .dang-cursor__art,
  .dang-cursor.is-press .dang-cursor__art {
    transform: scale(1) rotate(0deg);
  }
  .dang-cursor.is-visible::before,
  .dang-cursor.is-visible::after,
  .dang-cursor.is-visible .dang-cursor__dust {
    animation: none;
  }
  .dang-cursor__glow {
    transform: scale(1);
  }
  .dang-cursor.is-visible .dang-cursor__glow {
    animation: none;
  }
  .dang-cursor.is-visible .dang-cursor__dust {
    opacity: 0.7;
  }
}
