:root {
  /* Typography trace: `IBM Plex Mono` for frame counters; `IBM Plex Sans` for professional notes. */
  --darkroom: #2A1B14;
  --paper: #F3E0C2;
  --sepia: #A76538;
  --blush: #D9A27F;
  --mint: #9FE6D0;
  --blue: #7BA7D9;
  --gold: #F2C14E;
  --ink: #3D2A22;
  --depth: 0px;
  --mx: 0;
  --my: 0;
  --open: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 5%, rgba(167, 101, 56, .42), transparent 34vw),
    radial-gradient(circle at 72% 20%, rgba(123, 167, 217, .15), transparent 26vw),
    linear-gradient(145deg, #2A1B14 0%, #1d110c 54%, #3D2A22 100%);
  font-family: "IBM Plex Sans", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

.grain,
.light-leak,
#dust-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.grain {
  opacity: .16;
  mix-blend-mode: overlay;
  background-image:
    repeating-radial-gradient(circle at 18% 20%, rgba(243, 224, 194, .38) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(95deg, transparent 0 8px, rgba(42, 27, 20, .55) 8px 9px);
}

.light-leak {
  z-index: 3;
  mix-blend-mode: screen;
  opacity: .34;
  filter: blur(18px);
}

.leak-one {
  background: linear-gradient(118deg, transparent 10%, rgba(242, 193, 78, .42) 40%, rgba(159, 230, 208, .16) 48%, transparent 68%);
  animation: leakDrift 14s ease-in-out infinite alternate;
}

.leak-two {
  background: linear-gradient(44deg, transparent 28%, rgba(217, 162, 127, .22) 48%, rgba(123, 167, 217, .16) 54%, transparent 70%);
  animation: leakDrift 18s ease-in-out infinite alternate-reverse;
}

.dust {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: #F2C14E;
  opacity: .35;
  animation: dustFloat var(--duration) linear infinite;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 34px;
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 12px;
}

.strap-mark {
  font-family: "Bungee Shade", "IBM Plex Sans", sans-serif;
  font-size: clamp(20px, 2.2vw, 34px);
  letter-spacing: .02em;
  text-transform: none;
  color: var(--paper);
  text-shadow: 0 10px 24px rgba(0, 0, 0, .38);
}

.strap-mark span,
.mark-frame span { color: var(--gold); }

.room-nav { display: flex; gap: 18px; }

.room-nav a {
  color: rgba(243, 224, 194, .72);
  text-decoration: none;
  transition: color .35s ease, text-shadow .35s ease;
}

.room-nav a:hover,
.room-nav a.active { color: var(--mint); text-shadow: 1px 0 var(--blue); }

.chapter {
  position: relative;
  min-height: 100vh;
  padding: 132px 7vw 80px;
  display: grid;
  grid-template-columns: minmax(260px, .78fr) minmax(420px, 1.22fr);
  align-items: center;
  gap: 5vw;
  isolation: isolate;
}

.chapter::before {
  content: "";
  position: absolute;
  inset: 7vh 4vw;
  border: 1px solid rgba(243, 224, 194, .13);
  border-radius: 42px;
  box-shadow: inset 0 0 70px rgba(61, 42, 34, .82), 0 34px 80px rgba(0,0,0,.22);
  z-index: -1;
}

.room-copy { transform: translateY(calc(var(--depth) * -0.12)); }

.frame-code,
.edge-code,
.mono {
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
}

h1,
h2,
h3,
p { margin: 0; }

h1 {
  margin-top: 12px;
  max-width: 780px;
  font-family: "Bungee Shade", "IBM Plex Sans", sans-serif;
  font-size: clamp(72px, 12vw, 176px);
  line-height: .78;
  letter-spacing: -.04em;
  color: var(--paper);
  text-shadow: 0 22px 0 rgba(61, 42, 34, .76), 2px 0 0 var(--mint), -2px 0 0 rgba(123, 167, 217, .5);
}

h2 {
  margin: 12px 0 18px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(54px, 9vw, 128px);
  font-weight: 400;
  color: var(--paper);
  line-height: .86;
}

.ceremony,
.room-copy > p:last-child {
  max-width: 520px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(20px, 2.5vw, 34px);
  line-height: 1.16;
  color: rgba(243, 224, 194, .86);
}

.grid-cluster {
  position: relative;
  min-height: 620px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.photo-card {
  --card-radius: 34px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(170px, 24vw, 340px);
  min-height: 220px;
  padding: 24px;
  border-radius: calc(var(--card-radius) + var(--open) * 44px);
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255,255,255,.32), transparent 42%),
    radial-gradient(circle at calc(40% + var(--mx) * 14%) calc(20% + var(--my) * 12%), color-mix(in srgb, var(--hue), transparent 44%), transparent 36%),
    #F3E0C2;
  border: 1px solid rgba(61, 42, 34, .42);
  box-shadow: inset 0 0 0 7px rgba(167, 101, 56, .08), 0 28px 58px rgba(0,0,0,.32), 0 5px 0 rgba(61, 42, 34, .4);
  transform: translate(calc(-50% + var(--x) * 1vw), calc(-50% + var(--y) * 1vh)) rotate(calc(var(--r) * 1deg)) scale(var(--d)) rotateX(calc(var(--my) * -7deg)) rotateY(calc(var(--mx) * 7deg));
  transition: border-radius .8s cubic-bezier(.2,.8,.2,1), transform .18s ease-out, box-shadow .4s ease;
  overflow: hidden;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(61, 42, 34, .18);
  border-radius: inherit;
  pointer-events: none;
}

.photo-card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(105deg, transparent 35%, rgba(159, 230, 208, .24), rgba(123, 167, 217, .2), transparent 60%);
  transform: translateX(calc(var(--mx) * 18%)) translateY(calc(var(--my) * 10%)) rotate(14deg);
  mix-blend-mode: multiply;
}

.card-large { width: clamp(290px, 34vw, 500px); min-height: 390px; }
.tall, .vertical-frame { width: 190px; min-height: 390px; }
.chip-card, .tiny-chip, .droplet-card { width: 150px; min-height: 150px; border-radius: 48px; }

.divider-card p,
.vertical-frame p,
.shard-card p {
  position: relative;
  z-index: 1;
  font-family: "DM Serif Display", serif;
  font-size: 48px;
  line-height: .9;
  color: var(--sepia);
}

.note-card { width: 260px; min-height: 170px; }
.note-card p, .film-card p { position: relative; z-index: 1; font-size: 17px; line-height: 1.35; }

.inflated-camera { position: relative; height: 278px; margin-top: 38px; }
.camera-body {
  position: absolute;
  inset: 48px 18px 30px;
  border-radius: 62px;
  background: linear-gradient(145deg, #D9A27F, #A76538 62%, #3D2A22);
  box-shadow: inset 24px 22px 30px rgba(255,255,255,.18), inset -24px -24px 42px rgba(42,27,20,.42), 0 24px 40px rgba(42,27,20,.34);
}
.camera-body i {
  position: absolute;
  top: -24px;
  left: 34px;
  width: 86px;
  height: 46px;
  border-radius: 32px 32px 14px 14px;
  background: #D9A27F;
}
.lens {
  position: absolute;
  left: 50%; top: 50%;
  width: 156px; height: 156px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #9FE6D0 0 12%, #7BA7D9 18%, #3D2A22 45%, #2A1B14 70%);
  border: 16px solid #F3E0C2;
  box-shadow: 0 0 0 16px #A76538, inset 0 0 40px rgba(159,230,208,.5);
}
.lens span { position: absolute; inset: 44px; border-radius: 50%; border: 1px solid rgba(243,224,194,.7); }

.bead,
.shutter-dot {
  display: block;
  width: 64px; height: 64px;
  margin: 24px auto 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 33% 25%, #F3E0C2 0 14%, #F2C14E 28%, #A76538 70%);
  box-shadow: inset -12px -14px 18px rgba(42,27,20,.24), 0 12px 24px rgba(42,27,20,.25);
}

.aperture-card { width: clamp(300px, 32vw, 450px); min-height: 450px; border-radius: calc(70px + var(--open) * 150px); }
.aperture-iris { position: relative; width: 285px; height: 285px; margin: 42px auto 24px; border-radius: 50%; background: #2A1B14; box-shadow: 0 0 0 22px #A76538, 0 0 0 36px #D9A27F, inset 0 0 40px rgba(123,167,217,.35); overflow: hidden; }
.aperture-iris span { position: absolute; left: 50%; top: 50%; width: 150px; height: 210px; transform-origin: 0 0; background: linear-gradient(150deg, #3D2A22, #A76538); clip-path: polygon(0 0, 100% 26%, 74% 100%, 0 70%); opacity: .95; }
.aperture-iris span:nth-child(1) { transform: rotate(calc(0deg + var(--open) * 10deg)) translate(0, -110px); }
.aperture-iris span:nth-child(2) { transform: rotate(calc(60deg + var(--open) * 10deg)) translate(0, -110px); }
.aperture-iris span:nth-child(3) { transform: rotate(calc(120deg + var(--open) * 10deg)) translate(0, -110px); }
.aperture-iris span:nth-child(4) { transform: rotate(calc(180deg + var(--open) * 10deg)) translate(0, -110px); }
.aperture-iris span:nth-child(5) { transform: rotate(calc(240deg + var(--open) * 10deg)) translate(0, -110px); }
.aperture-iris span:nth-child(6) { transform: rotate(calc(300deg + var(--open) * 10deg)) translate(0, -110px); }

.soft-lens { width: 220px; height: 220px; margin: 54px auto; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #F3E0C2 0 7%, #9FE6D0 12%, #7BA7D9 24%, #2A1B14 68%); border: 18px solid #D9A27F; box-shadow: 0 0 0 24px #A76538, inset 0 0 45px #9FE6D0; }

.prism-card { width: clamp(300px, 35vw, 520px); min-height: 390px; }
.crystal { position: absolute; width: 230px; height: 250px; right: 46px; top: 58px; background: linear-gradient(135deg, rgba(159,230,208,.65), rgba(123,167,217,.38), rgba(242,193,78,.2)); clip-path: polygon(48% 0, 100% 34%, 78% 100%, 20% 88%, 0 30%); box-shadow: inset 24px 20px 30px rgba(255,255,255,.34); }
.botanical-lines { position: absolute; left: 34px; bottom: 34px; width: 240px; height: 210px; border-left: 2px solid rgba(61,42,34,.35); border-bottom: 2px solid rgba(61,42,34,.22); border-radius: 0 0 0 100%; }
.botanical-lines::before, .botanical-lines::after { content: ""; position: absolute; border: 1px solid rgba(61,42,34,.28); border-radius: 70% 8% 70% 8%; transform: rotate(-28deg); }
.botanical-lines::before { width: 92px; height: 42px; left: 58px; top: 34px; }
.botanical-lines::after { width: 116px; height: 50px; left: 84px; top: 92px; }
.split-text { text-shadow: 4px 0 #9FE6D0, -5px 0 #7BA7D9; }
.film-card { width: 390px; min-height: 180px; padding-left: 72px; }
.sprockets { position: absolute; left: 18px; top: 18px; bottom: 18px; width: 30px; background: repeating-linear-gradient(to bottom, #3D2A22 0 14px, transparent 14px 28px); opacity: .55; }
.prism-drop { width: 86px; height: 112px; margin: 10px auto; border-radius: 58% 58% 64% 64%; clip-path: polygon(50% 0, 90% 34%, 76% 100%, 22% 100%, 8% 34%); background: linear-gradient(145deg, #9FE6D0, #7BA7D9 48%, #F2C14E); box-shadow: inset 18px 16px 22px rgba(255,255,255,.45); }

.develop-room { grid-template-columns: .72fr 1.28fr; }
.archive-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: rotate(-1deg); }
.archive-frame { min-height: 150px; padding: 20px; border-radius: 28px; background: #F3E0C2; color: #3D2A22; border: 1px solid rgba(61,42,34,.42); box-shadow: 0 20px 44px rgba(0,0,0,.28), inset 0 0 0 8px rgba(167,101,56,.08); font-family: "IBM Plex Sans", sans-serif; }
.mark-frame { grid-column: 1 / -1; min-height: 340px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.mark-frame h3 { font-family: "Bungee Shade", sans-serif; font-size: clamp(58px, 9vw, 142px); line-height: .82; color: #2A1B14; text-shadow: 4px 0 #9FE6D0, -4px 0 #7BA7D9; }
.mark-frame p:last-child { max-width: 620px; font-family: "DM Serif Display", serif; font-size: 30px; color: #A76538; }
.archive-frame.small { font-family: "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .08em; color: #A76538; }
.archive-frame.small span { display: block; font-family: "DM Serif Display", serif; font-size: 46px; color: #3D2A22; letter-spacing: 0; }

.is-visible .photo-card { animation: settle .9s cubic-bezier(.2,.9,.2,1) both; }
.is-visible h2, .is-visible h1 { animation: splitPulse 1.4s ease both; }

@keyframes leakDrift { from { transform: translate(-8%, -4%) rotate(-5deg); } to { transform: translate(8%, 6%) rotate(6deg); } }
@keyframes dustFloat { from { transform: translate3d(0, 110vh, 0); } to { transform: translate3d(16vw, -10vh, 0); } }
@keyframes settle { from { opacity: .25; transform: translate(calc(-50% + var(--x) * 1.25vw), calc(-50% + var(--y) * 1.25vh + 52px)) rotate(calc(var(--r) * 1.4deg)) scale(calc(var(--d) * .92)); } }
@keyframes splitPulse { 0% { filter: blur(8px); text-shadow: 0 0 transparent; } 70% { filter: blur(0); text-shadow: 5px 0 #9FE6D0, -5px 0 #7BA7D9; } 100% { filter: blur(0); } }

@media (max-width: 900px) {
  .site-header { padding: 18px; align-items: flex-start; }
  .room-nav { flex-wrap: wrap; justify-content: flex-end; gap: 10px; max-width: 210px; }
  .chapter { grid-template-columns: 1fr; padding: 112px 22px 58px; gap: 20px; }
  .grid-cluster { min-height: 620px; }
  .photo-card { transform: translate(calc(-50% + var(--x) * .78vw), calc(-50% + var(--y) * .7vh)) rotate(calc(var(--r) * 1deg)) scale(calc(var(--d) * .82)); }
  .archive-wall { grid-template-columns: 1fr 1fr; }
  .mark-frame { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .room-nav { display: none; }
  h1 { font-size: 70px; }
  .photo-card { width: 250px; }
  .card-large, .aperture-card, .prism-card { width: 310px; }
  .film-card { width: 300px; }
  .archive-wall { grid-template-columns: 1fr; }
}
