/* Niki Rose, minimal variant. White ground, Inter, the work does the talking. */

:root {
  --ink: #111111;
  --ink-soft: #444444;
  --ink-faint: #8a8a8a;
  --line: #e8e8e8;
  --page-x: clamp(1.25rem, 4vw, 3.5rem);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── Masthead ─────────────────────────────────────────────── */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem var(--page-x);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wordmark {
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.nav a:hover {
  color: var(--ink);
}

.pill {
  background: var(--ink);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.pill:hover {
  opacity: 0.8;
}

/* ── Hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: max(88vh, 40rem);
  overflow: hidden;
}

.hero-title {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 2;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.7rem, 6.4vw, 5.2rem);
  line-height: 1.06;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.hero-note {
  position: absolute;
  bottom: 1.6rem;
  margin: 0;
  z-index: 2;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.hero-note.left {
  left: var(--page-x);
}

.hero-note.right {
  right: var(--page-x);
  text-align: right;
}

/* Scattered works. Percent-positioned; sizes vary so the field breathes. */
.hero-field {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.float {
  position: absolute;
  width: 10vw;
  min-width: 90px;
  max-width: 190px;
  height: auto;
  animation: drift 9s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateY(-6px); }
  to { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .float { animation: none; }
}

.f1  { left: 8%;  top: 8%;   width: 11vw; animation-delay: -1s; }
.f2  { left: 4%;  top: 42%;  width: 10vw; animation-delay: -4s; }
.f3  { left: 16%; top: 68%;  width: 9vw;  animation-delay: -7s; }
.f4  { left: 26%; top: 15%;  width: 8vw;  animation-delay: -2s; }
.f5  { left: 38%; top: 68%;  width: 9vw;  animation-delay: -5s; }
.f6  { left: 47%; top: 8%;   width: 8vw;  animation-delay: -8s; }
.f7  { left: 58%; top: 64%;  width: 8vw;  animation-delay: -3s; }
.f8  { left: 68.5%; top: 8%; width: 10vw; animation-delay: -6s; }
.f9  { left: 79%; top: 55%;  width: 10vw; animation-delay: -1.5s; }
.f10 { left: 90%; top: 30%;  width: 9vw;  animation-delay: -4.5s; }
.f11 { left: 82%; top: 6%;   width: 7vw;  animation-delay: -7.5s; }
.f12 { left: 21%; top: 38%;  width: 6vw;  animation-delay: -2.5s; }

/* ── Rooms ────────────────────────────────────────────────── */

.room {
  padding: clamp(3.5rem, 8vw, 7rem) var(--page-x) 0;
  max-width: 90rem;
  margin: 0 auto;
  scroll-margin-top: 3.5rem;
}

.room-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.room-head h2 {
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
}

.room-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-faint);
}

/* Masonry-ish grid via columns */
.grid {
  columns: 3 18rem;
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

.work {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 clamp(1.75rem, 3.5vw, 3rem);
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  text-align: left;
  font: inherit;
  color: inherit;
}

.work img {
  width: 100%;
  height: auto;
  transition: opacity 0.25s ease;
}

.work:hover img {
  opacity: 0.92;
}

.work figcaption,
.caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-size: 0.88rem;
}

.caption .t {
  font-weight: 500;
}

.caption .m {
  color: var(--ink-faint);
  text-align: right;
}

/* Studio strip */
.strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
}

.strip .work {
  margin: 0;
  cursor: zoom-in;
}

.strip .work img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* ── About ────────────────────────────────────────────────── */

.about-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.about-lede {
  margin: 0;
  font-family: "Inter Tight", "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.about-facts div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.about-facts div:first-child {
  border-top: 1px solid var(--line);
}

.about-facts span {
  color: var(--ink-faint);
}

/* ── Contact ──────────────────────────────────────────────── */

.contact-lines {
  max-width: 44rem;
}

.contact-lines a {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
  font-weight: 500;
  transition: padding-left 0.25s ease;
}

.contact-lines a:first-child {
  border-top: 1px solid var(--line);
}

.contact-lines a:hover {
  padding-left: 0.5rem;
}

.contact-lines span {
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ── Footer ───────────────────────────────────────────────── */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: clamp(3rem, 6vw, 5rem) var(--page-x) 2rem;
  max-width: 90rem;
  margin: 0 auto;
  font-size: 0.88rem;
  color: var(--ink-faint);
}

.footer p {
  margin: 0;
}

/* ── Lightbox ─────────────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #ffffff;
  padding: 3.5rem var(--page-x);
}

.lightbox[hidden] {
  display: none;
}

.lightbox figure {
  margin: 0;
  max-width: min(88vw, 60rem);
  text-align: center;
}

.lightbox img {
  max-height: 76vh;
  max-width: 100%;
  width: auto;
  margin: 0 auto;
}

.lightbox figcaption {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.92rem;
}

#lb-title {
  font-weight: 500;
}

#lb-materials {
  color: var(--ink-faint);
}

.lb-close,
.lb-nav {
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.5rem;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 0.5rem 0.75rem;
}

.lb-close {
  position: absolute;
  top: 1rem;
  right: var(--page-x);
  font-size: 2rem;
}

.lb-close:hover,
.lb-nav:hover {
  color: var(--ink);
}

/* ── Reveal on scroll ─────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Small screens ────────────────────────────────────────── */

@media (max-width: 760px) {
  .nav {
    display: none;
  }

  .hero {
    height: max(76vh, 34rem);
  }

  .hero-title {
    white-space: normal;
    width: 90%;
  }

  .float {
    width: 20vw !important;
    min-width: 0;
    max-width: 110px;
  }

  /* Keep a sparse field on small screens */
  .f4, .f6, .f7, .f9, .f10, .f11, .f12 {
    display: none;
  }

  .f1 { left: 8%;  top: 7%; }
  .f2 { left: 70%; top: 5%; }
  .f3 { left: 14%; top: 58%; }
  .f5 { left: 62%; top: 56%; }
  .f8 { left: 41%; top: 4%; }

  .hero-note.right {
    display: none;
  }

  .strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .strip .work:last-child {
    grid-column: span 2;
  }

  .about-body {
    grid-template-columns: 1fr;
  }
}
