/* STUDIO v2 — Chambre noire + table lumineuse | st- */
:root {
  --st-void: #050505;
  --st-ink: #0c0c0c;
  --st-silver: #e6e1d6;
  --st-mute: #8a857c;
  --st-safe: #9a2b2b;
  --st-safe-glow: rgba(154, 43, 43, 0.35);
  --st-glass: #d9d3c6;
  --st-serif: "Bodoni Moda", "Times New Roman", serif;
  --st-sans: "Space Grotesk", system-ui, sans-serif;
  --st-max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.st-body {
  margin: 0;
  background: var(--st-void);
  color: var(--st-silver);
  font-family: var(--st-sans);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.st-body--home {
  background:
    radial-gradient(900px 420px at 50% 18%, var(--st-safe-glow), transparent 55%),
    var(--st-void);
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.st-main { min-height: 70vh; }
.st-preview {
  padding: .65rem 1rem;
  background: var(--st-safe);
  color: #fff;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.st-preview a { text-decoration: underline; }
.st-kicker {
  margin: 0 0 .9rem;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-empty { color: var(--st-mute); }
.st-badge {
  display: inline-block;
  margin-bottom: .75rem;
  padding: .25rem .5rem;
  border: 1px solid var(--st-safe);
  color: #f0c2c2;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.st-mark__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: .45rem;
  border-radius: 50%;
  background: var(--st-safe);
  box-shadow: 0 0 0 3px var(--st-safe-glow);
  vertical-align: middle;
}

/* Header */
.st-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  min-height: 64px;
  padding: 0 max(1rem, calc((100% - var(--st-max)) / 2));
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
.st-header.is-scrolled {
  background: rgba(5, 5, 5, 0.82);
  border-bottom-color: rgba(230, 225, 214, 0.08);
  backdrop-filter: blur(14px);
}
.st-mark {
  font-family: var(--st-serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}
.st-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  overflow: auto;
  scrollbar-width: none;
}
.st-nav a {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st-mute);
  white-space: nowrap;
  padding: .3rem 0;
}
.st-nav a:hover,
.st-nav a.is-active { color: var(--st-silver); }
.st-tools { display: flex; align-items: center; gap: .6rem; }
.st-search input {
  width: 90px;
  border: 0;
  border-bottom: 1px solid rgba(230, 225, 214, 0.2);
  background: transparent;
  color: var(--st-silver);
  padding: .3rem 0;
  font: inherit;
  font-size: .72rem;
  outline: none;
}
.st-header .member-nav { display: flex; align-items: center; gap: .3rem; }
.st-header .member-nav-sep {
  width: 1px;
  height: 12px;
  background: var(--st-silver);
  opacity: .35;
}
.st-header .member-nav-link {
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .38rem .5rem;
  border: 1px solid rgba(230, 225, 214, 0.35);
  background: transparent;
  color: var(--st-silver);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.st-header .member-nav-link--in { background: rgba(230, 225, 214, 0.06); }
.st-header .member-nav-link--up,
.st-header .member-nav-link--account {
  background: var(--st-safe);
  border-color: var(--st-safe);
  color: #fff;
}
.st-header .member-nav-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(230, 225, 214, 0.35);
}

/* Chamber — one composition */
.st-chamber {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}
.st-chamber__brand {
  position: absolute;
  top: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-slit {
  position: relative;
  width: min(920px, 92vw);
  margin: 0 auto 2.2rem;
  padding: 1.1rem 0;
}
.st-slit__beam {
  position: absolute;
  inset: 42% -8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 225, 214, 0.55), transparent);
  box-shadow: 0 0 40px 8px var(--st-safe-glow), 0 0 80px 2px rgba(230, 225, 214, 0.15);
  pointer-events: none;
}
.st-slit__frame {
  position: relative;
  height: clamp(140px, 22vh, 220px);
  overflow: hidden;
  border: 1px solid rgba(230, 225, 214, 0.18);
  background: #111;
  clip-path: inset(0 0 0 0);
  transition: transform .35s ease;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 30px 80px rgba(0, 0, 0, 0.65);
}
.st-slit__frame img,
.st-slit__void {
  width: 100%;
  height: 140%;
  margin-top: -12%;
  object-fit: cover;
  filter: contrast(1.08) saturate(.85);
  transform: scale(1.08);
  transition: transform 8s ease-out, filter 2.2s ease;
}
.st-slit__frame img.is-alive {
  transform: scale(1.16) translateY(-2%);
  filter: contrast(1.12) saturate(1);
}
.st-slit__void {
  background:
    linear-gradient(120deg, #1a1515, #2a2222 40%, #0d0d0d);
}
.st-chamber__title {
  margin: 0 0 1rem;
  font-family: var(--st-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: .95;
  letter-spacing: -.03em;
  max-width: 14ch;
}
.st-chamber__title a:hover { color: #f0c2c2; }
.st-chamber__line {
  margin: 0 auto 1.6rem;
  max-width: 36ch;
  color: var(--st-mute);
  font-size: .98rem;
}
.st-expose {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .7rem 1rem;
  border: 1px solid rgba(230, 225, 214, 0.4);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.st-expose:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--st-safe);
  background: rgba(230, 225, 214, 0.04);
}
.st-expose--lite {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.st-chamber__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--st-mute);
  font-size: 1.1rem;
  animation: st-bob 2.4s ease-in-out infinite;
}
@keyframes st-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: .5; }
  50% { transform: translate(-50%, 6px); opacity: 1; }
}

/* Light table */
.st-table,
.st-ruler,
.st-log,
.st-find,
.st-archive,
.st-lab,
.st-contact-sheet,
.st-404 {
  max-width: var(--st-max);
  margin: 0 auto;
  padding: 4rem 1.25rem;
}
.st-table {
  position: relative;
  margin-top: 1rem;
  padding-top: 3.5rem;
}
.st-table::before {
  content: "";
  position: absolute;
  inset: 0 4% auto;
  height: 58%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 225, 214, 0.14), transparent 65%);
  pointer-events: none;
}
.st-table__head {
  display: grid;
  gap: .4rem;
  margin-bottom: 2rem;
}
.st-table__title {
  margin: 0;
  font-family: var(--st-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: .95;
}
.st-table__bed {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem 1.4rem;
  padding: 1.5rem 0 2rem;
  perspective: 900px;
}
.st-plate {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .35s ease, filter .35s ease;
  filter: brightness(.88);
}
.st-plate:hover,
.st-plate.is-lit {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
  filter: brightness(1.05);
  z-index: 2;
}
.st-plate__glass {
  display: block;
  aspect-ratio: 5 / 4;
  padding: 10px;
  background: linear-gradient(160deg, #f2ede3, #cfc8ba);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.st-plate__glass img,
.st-plate__blank {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #222;
  filter: contrast(1.05) saturate(.9);
  transition: transform .6s ease;
}
.st-plate:hover img { transform: scale(1.04); }
.st-plate__blank {
  display: block;
  background: linear-gradient(135deg, #2a2424, #111);
}
.st-plate__caption { display: grid; gap: .25rem; padding: 0 .2rem; }
.st-plate__cat {
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-plate__name {
  font-family: var(--st-serif);
  font-size: 1.25rem;
  line-height: 1.05;
}

/* Ruler */
.st-ruler__scale {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid rgba(230, 225, 214, 0.2);
}
.st-ruler__scale a {
  display: grid;
  gap: .55rem;
  padding: 1rem .5rem 0;
  border-left: 1px solid rgba(230, 225, 214, 0.12);
  min-height: 7rem;
}
.st-ruler__scale li:first-child a { border-left: 0; }
.st-ruler__tick {
  width: 1px;
  height: 12px;
  background: var(--st-silver);
}
.st-ruler__n {
  font-size: .58rem;
  letter-spacing: .14em;
  color: var(--st-mute);
}
.st-ruler__name {
  font-family: var(--st-serif);
  font-size: 1.15rem;
  line-height: 1.1;
}
.st-ruler__scale a:hover .st-ruler__name { color: #f0c2c2; }

/* Exposure log */
.st-log__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(230, 225, 214, 0.14);
}
.st-log__list a {
  display: grid;
  grid-template-columns: 3rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 1.05rem 0;
  border-bottom: 1px solid rgba(230, 225, 214, 0.1);
}
.st-log__iso {
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--st-safe);
}
.st-log__title {
  font-family: var(--st-serif);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  line-height: 1.05;
}
.st-log__meta {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-log__list a:hover .st-log__title { color: #f0c2c2; }

/* Safelight CTA */
.st-safelight {
  margin: 2rem 0 0;
  padding: 4.5rem 1.25rem;
  background:
    radial-gradient(700px 280px at 50% 0%, var(--st-safe-glow), transparent 60%),
    #120909;
  text-align: center;
}
.st-safelight__title {
  margin: 0 auto 1.5rem;
  font-family: var(--st-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: .95;
  max-width: 12ch;
}

/* Article — developing tray */
.st-lab {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
  padding-top: 2.5rem;
}
.st-lab__tray {
  position: sticky;
  top: 88px;
  padding: 1.1rem;
  background: linear-gradient(180deg, #1a1410, #0e0c0a);
  border: 1px solid rgba(230, 225, 214, 0.12);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.45);
}
.st-lab__chem {
  height: 6px;
  margin-bottom: .75rem;
  background: linear-gradient(90deg, transparent, rgba(154, 43, 43, 0.55), transparent);
}
.st-lab__develop {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
  opacity: .35;
  filter: brightness(.4) contrast(1.2);
  transition: opacity 1.4s ease, filter 1.8s ease;
}
.st-lab__develop.is-developed {
  opacity: 1;
  filter: brightness(1) contrast(1.05);
}
.st-lab__develop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 10s ease-out;
}
.st-lab__develop img.is-alive { transform: scale(1.14); }
.st-lab__fog {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 40% 30%, #2a2222, #050505);
}
.st-lab__stamp {
  position: absolute;
  left: .7rem;
  right: .7rem;
  bottom: .7rem;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  margin: 0;
  padding: .4rem .5rem;
  background: rgba(5, 5, 5, 0.72);
  font-size: .58rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--st-silver);
}
.st-lab__notes { min-width: 0; padding-top: .4rem; }
.st-lab__title {
  margin: 0 0 1rem;
  font-family: var(--st-serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .95;
  letter-spacing: -.03em;
}
.st-lab__lede {
  margin: 0 0 1.5rem;
  color: var(--st-mute);
  font-size: 1.05rem;
  max-width: 36ch;
}
.st-lab__data {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem 1.2rem;
  margin: 0 0 2rem;
  padding: 1rem 0;
  border-block: 1px solid rgba(230, 225, 214, 0.12);
}
.st-lab__data dt {
  margin: 0;
  font-size: .58rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-lab__data dd { margin: .2rem 0 0; font-size: .95rem; }
.st-lab__prose {
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 38rem;
  background-image: repeating-linear-gradient(
    transparent,
    transparent 27px,
    rgba(230, 225, 214, 0.05) 28px
  );
  padding-top: .2rem;
}
.st-lab__prose > *:first-child { margin-top: 0; }
.st-lab__prose h2,
.st-lab__prose h3 {
  font-family: var(--st-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.05;
  margin: 2rem 0 .8rem;
}
.st-lab__prose img {
  height: auto;
  margin: 1.4rem 0;
  border: 8px solid #d9d3c6;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}
.st-lab__prose a {
  color: #f0c2c2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.st-lab__src {
  margin-top: 2rem;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Contact sheet related */
.st-contact-sheet[data-st-reveal],
.st-contact-sheet[data-st-reveal].is-in {
  opacity: 1;
  transform: none;
}
.st-contact-sheet__title {
  margin: 0 0 1.5rem;
  font-family: var(--st-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: .95;
}
.st-contact-sheet__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: .75rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.st-contact-sheet__strip--grid {
  grid-auto-flow: dense;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-columns: unset;
  overflow: visible;
}
.st-frame {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .55rem;
  background: #d9d3c6;
  color: #1a1814;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
.st-frame__n {
  font-size: .58rem;
  letter-spacing: .14em;
  color: #6a655c;
}
.st-frame__img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #222;
}
.st-frame__t {
  font-family: var(--st-serif);
  font-size: 1rem;
  line-height: 1.1;
}
.st-frame:hover { transform: translateY(-3px); }

.st-archive__title {
  margin: 0;
  font-family: var(--st-serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
}
.st-find__title {
  margin: 0 0 1.5rem;
  font-family: var(--st-serif);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.st-foot {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem max(1rem, calc((100% - var(--st-max)) / 2));
  border-top: 1px solid rgba(230, 225, 214, 0.1);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--st-mute);
}
.st-foot__mark {
  margin: 0;
  font-family: var(--st-serif);
  font-size: 1rem;
  letter-spacing: .14em;
  color: var(--st-silver);
  text-transform: none;
}
.st-404__title {
  margin: 0 0 1.5rem;
  font-family: var(--st-serif);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: .95;
}

[data-st-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-st-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-st-reveal] { opacity: 1; transform: none; transition: none; }
  .st-chamber__scroll { animation: none; }
  .st-slit__frame img,
  .st-lab__develop img { transform: none !important; transition: none; }
  .st-lab__develop { opacity: 1; filter: none; }
}

@media (max-width: 980px) {
  .st-header { grid-template-columns: 1fr auto; }
  .st-nav { grid-column: 1 / -1; justify-content: flex-start; }
  .st-table__bed { grid-template-columns: repeat(2, 1fr); }
  .st-ruler__scale { grid-template-columns: repeat(3, 1fr); }
  .st-lab { grid-template-columns: 1fr; }
  .st-lab__tray { position: static; }
  .st-log__list a { grid-template-columns: 2.5rem 1fr; }
  .st-log__meta { grid-column: 2; }
  .st-contact-sheet__strip--grid { grid-template-columns: repeat(2, 1fr); }
  .st-foot { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .st-search { display: none; }
  .st-table__bed { grid-template-columns: 1fr; }
  .st-ruler__scale { grid-template-columns: repeat(2, 1fr); }
  .st-lab__data { grid-template-columns: 1fr; }
}
