/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }

:root {
  --bg: #ffffff;
  --ink: #111111;
  --ink-soft: #4a4a4a;
  --ink-faint: #8e8e8e;
  --rule: #ececec;

  --sans: "JetBrains Mono", "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;

  --page: clamp(22px, 5vw, 64px);
  --max: 1680px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1.7;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }

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

/* ============ Navigation ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 22px var(--page);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-condensed {
  padding: 14px var(--page);
  border-bottom-color: var(--rule);
}
.nav__brand-wrap {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav__brand {
  font-weight: 500;
  font-size: 13px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
}
.nav__sub {
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-top: 4px;
  font-weight: 300;
}
.nav__links {
  display: flex;
  gap: clamp(22px, 3vw, 44px);
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  font-weight: 400;
}
.nav__links a {
  position: relative;
  padding-bottom: 3px;
  color: var(--ink-soft);
  transition: color .25s ease;
}
.nav__links a:hover,
.nav__links a.is-current { color: var(--ink); }
.nav__links a.is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--ink);
}

/* ============ Plates (large stacked images, varied sizing) ============ */
.plates {
  display: flex;
  flex-direction: column;
  gap: clamp(70px, 13vh, 180px);
  padding: 20vh var(--page) 18vh;
  max-width: var(--max);
  margin: 0 auto;
}

.plate {
  position: relative;
  cursor: zoom-in;
  align-self: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.4s ease, transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.plate.is-in { opacity: 1; transform: none; }

.plate img {
  width: 100%;
  height: auto;
  transition: transform 1.4s cubic-bezier(.2,.7,.2,1);
}
.plate:hover img { transform: scale(1.012); }

.plate--sm { width: min(36vw, 460px); }
.plate--md { width: min(54vw, 740px); }
.plate--lg { width: min(70vw, 980px); }
.plate--xl { width: min(86vw, 1280px); }

.plate--landscape.plate--sm { width: min(48vw, 620px); }
.plate--landscape.plate--md { width: min(66vw, 920px); }
.plate--landscape.plate--lg { width: min(82vw, 1180px); }
.plate--landscape.plate--xl { width: min(94vw, 1440px); }

.plate--left  { align-self: flex-start; }
.plate--right { align-self: flex-end; }

/* ============ About page ============ */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16vh var(--page) 8vh;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.about__image {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #f5f5f5;
}
.about__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 2s cubic-bezier(.2,.7,.2,1);
}
.about__image:hover img { transform: scale(1.05); }

.about__text { padding-top: clamp(0px, 2vw, 24px); }
.about__eyebrow {
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 14px;
  font-weight: 500;
}
.about__title {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 28ch;
}
.about__body p {
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.8;
  margin: 0 0 18px;
  color: var(--ink);
  max-width: 56ch;
}
.about__body p:last-child { margin-bottom: 0; }

.about__meta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6vh var(--page) 12vh;
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(40px, 6vw, 88px);
  border-top: 1px solid var(--rule);
}
.about__meta-col h2 {
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 16px;
  font-weight: 500;
}
.about__meta-col ul {
  list-style: none;
  margin: 0; padding: 0;
}
.about__meta-col li {
  font-size: 13px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
}
.about__meta-col li:last-child { border-bottom: 0; }
.about__meta-col li span:first-child {
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.about__contact {
  font-size: clamp(13px, 1vw, 15px);
  margin: 0;
}
.about__contact a { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.about__contact a:hover { color: var(--ink-soft); border-color: var(--ink-soft); }

/* ============ Footer ============ */
.foot {
  padding: 36px var(--page);
  border-top: 1px solid var(--rule);
}
.foot__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  gap: 18px;
  flex-wrap: wrap;
}
.foot a:hover { color: var(--ink); }
.foot__seo {
  flex-basis: 100%;
  margin-top: 22px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-faint);
  line-height: 1.8;
  max-width: var(--max);
}

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6vh 11vw;
}
.lightbox.is-open { display: flex; }
.lightbox__stage { margin: 0; max-width: 100%; max-height: 100%; }
.lightbox__stage img {
  max-height: 88vh;
  max-width: 100%;
  width: auto; height: auto;
  animation: lbIn .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes lbIn {
  from { opacity: 0; transform: translateY(8px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 28px;
  font-size: 11px;
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  padding: 8px 14px;
  border: 1px solid var(--rule);
  transition: background .2s ease, border-color .2s ease;
}
.lightbox__close:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.lightbox__counter {
  position: absolute;
  top: 22px; left: 28px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  text-transform: lowercase;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.9);
  transition: background .2s ease, border-color .2s ease, transform .25s ease;
  z-index: 2;
}
.lightbox__nav svg {
  width: 18px; height: 18px;
  stroke: var(--ink);
  stroke-width: 1.4;
  fill: none;
}
.lightbox__nav:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.lightbox__nav:hover svg { stroke: #fff; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__nav--prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox__nav--next:hover { transform: translateY(-50%) translateX(3px); }

body.no-scroll { overflow: hidden; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .plates { gap: 70px; padding: 16vh 18px 14vh; }
  .plate,
  .plate--sm, .plate--md, .plate--lg, .plate--xl,
  .plate--landscape.plate--sm, .plate--landscape.plate--md,
  .plate--landscape.plate--lg, .plate--landscape.plate--xl {
    width: 100%;
    align-self: center;
  }

  .about { grid-template-columns: 1fr; padding-top: 14vh; gap: 28px; }
  .about__meta { grid-template-columns: 1fr; gap: 28px; }
  .about__meta-col li { grid-template-columns: 1fr; gap: 4px; }

  .foot__inner { flex-direction: column; gap: 12px; align-items: flex-start; }

  .lightbox { padding: 8vh 5vw; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .plate, .plate img, .about__image img { transition: none !important; }
  .plate { opacity: 1; transform: none; }
}
