:root {
  --paper: #fafaf6;
  --paper-2: #f0ece2;
  --ink: #0a0a0a;
  --mid: #6f6c64;
  --mute: #aaa8a0;

  --serif: "GFS Didot", "Times New Roman", serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;

  --page-x: clamp(24px, 6vw, 88px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  /* paper texture — extremely subtle warm gradient, no color */
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(10,10,10,0.012), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(10,10,10,0.014), transparent 65%);
}

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

/* ------ shared type ------ */

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 400;
}

.italic-serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.slash-light { color: var(--mute); font-weight: 400; }

[data-reveal] { visibility: hidden; }

/* prevent FOUC on title — visibility only */
.hero-title { visibility: hidden; }

/* ------ topbar ------ */

.topbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 28px var(--page-x) 22px;
  border-bottom: 1px solid var(--mute);
}
.topbar .center { text-align: center; }
.topbar .right  { text-align: right; }

/* ------ hero ------ */

.hero {
  display: grid;
  grid-template-columns: 38fr 62fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(64px, 10vh, 140px) var(--page-x) clamp(80px, 14vh, 180px);
  align-items: end;
  min-height: 92vh;
}

.hero-left { padding-bottom: 12px; }

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(96px, 16vw, 220px);
  line-height: 0.88;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title .line-wrap {
  display: block;
  overflow: hidden;
}
.hero-title .hero-word {
  display: inline-block;
  will-change: transform;
}
.hero-title .hero-word.italic { font-style: italic; }
.hero-title .hero-word.slash { color: var(--mute); font-style: italic; font-size: 0.7em; padding: 0 0.05em; }

.hero-rule {
  width: 100%;
  max-width: 420px;
  height: 1px;
  background: transparent;
  margin: 0 0 28px;
  overflow: hidden;
}
.hero-rule span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
}

.hero-sub {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.45;
  color: var(--mid);
  max-width: 32ch;
  margin: 0 0 36px;
}

.hero-meta { margin: 0; }

.hero-right { position: relative; }

.hero-plate {
  margin: 0;
  border: 1px solid var(--mute);
  padding: 14px;
  background: var(--paper);
}
.hero-plate .plate-mask {
  aspect-ratio: 7 / 9;
  overflow: hidden;
}
.hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.98);
}

.plate-mask {
  position: relative;
  overflow: hidden;
  clip-path: inset(0 0 0 0);
}

.plate-cap {
  margin: 18px 0 0;
  text-align: right;
}

/* ------ prelude ------ */

.prelude {
  padding: clamp(60px, 12vh, 160px) var(--page-x) clamp(40px, 8vh, 100px);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: baseline;
  border-top: 1px solid var(--mute);
}
.prelude-mark { margin: 0; }
.prelude-line {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  font-weight: 400;
}

/* ------ pinned plates ------ */

.plates-pin {
  position: relative;
  background: var(--paper);
}

.plates-stage {
  height: 100vh;
  width: 100%;
  padding: clamp(60px, 8vh, 100px) var(--page-x);
  display: grid;
  grid-template-columns: 20fr 60fr 6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  overflow: hidden;
}

.plates-meta { align-self: center; }
.plate-counter {
  font-family: var(--mono);
  font-size: 38px;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-transform: none;
  margin: 0 0 24px;
  line-height: 1;
}
.plate-counter #plateNum { letter-spacing: 0; }
.plate-date {
  margin: 0 0 32px;
  color: var(--mid);
}
.plate-title {
  font-size: clamp(32px, 3.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink);
}
.plate-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--mid);
  max-width: 32ch;
  margin: 0;
}

.plates-frame {
  position: relative;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.plates-stack {
  position: relative;
  height: 100%;
  aspect-ratio: 5 / 7;
  max-width: 70%;
  width: 100%;
}
.plates-stack .plate-card {
  position: absolute;
  inset: 0;
  border: 1px solid var(--mute);
  padding: 10px;
  background: var(--paper);
  opacity: 0;
  will-change: opacity, filter, transform;
}
.plates-stack .plate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) brightness(0.97);
}
.plates-stack .plate-card.is-active { opacity: 1; }

.plates-dots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-self: end;
}
.plates-dots li {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mute);
  transition: background 0.35s ease, transform 0.35s ease;
}
.plates-dots li.is-active {
  background: var(--ink);
  transform: scale(1.6);
}

/* ------ contact sheet ------ */

.contact {
  padding: clamp(80px, 14vh, 180px) var(--page-x) clamp(80px, 12vh, 160px);
  border-top: 1px solid var(--mute);
}
.contact-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(48px, 6vh, 80px);
}
.contact-title {
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 1;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}
.contact-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--mid);
  margin: 0 0 6px;
  line-height: 1.5;
  grid-column: 1;
  max-width: 36ch;
}
.contact-head .contact-sub { grid-row: 2; }
.contact-head .contact-title { grid-row: 1; }
.contact-filters {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.filter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mute);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  position: relative;
  transition: color 0.4s ease;
}
.filter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.filter.is-active { color: var(--ink); }
.filter.is-active::after { transform: scaleX(1); }
.filter:hover { color: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 36px);
}
.contact-grid .thumb {
  position: relative;
  margin: 0;
  background: var(--paper);
}
.thumb-mask {
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid var(--mute);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) brightness(0.98) grayscale(1);
  transition: filter 0.6s ease;
}
.thumb:hover img { filter: contrast(1.1) brightness(1) grayscale(1); }
.thumb-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--paper);
  letter-spacing: 0.12em;
  mix-blend-mode: difference;
  z-index: 2;
}
.thumb-title {
  margin: 10px 2px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--mid);
  line-height: 1.3;
}

/* ------ about ------ */

.about {
  display: grid;
  grid-template-columns: 40fr 60fr;
  gap: clamp(40px, 6vw, 96px);
  padding: clamp(80px, 14vh, 180px) var(--page-x);
  border-top: 1px solid var(--mute);
  align-items: start;
}
.about-left .portrait {
  margin: 0;
  border: 1px solid var(--mute);
  padding: 10px;
  background: var(--paper);
}
.about-left .portrait .plate-mask {
  aspect-ratio: 7 / 9;
}
.about-left .portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.04) brightness(0.98);
}
.small-label { margin: 0 0 22px; }
.about-name {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.9;
  margin: 0 0 36px;
  color: var(--ink);
}
.about-bio {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  max-width: 50ch;
  margin: 0 0 48px;
}
.about-bio em {
  font-family: var(--serif);
  font-style: italic;
}
.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 0 0 48px;
}
.about-meta dt { margin-bottom: 10px; }
.about-meta dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}

.about-rule {
  height: 1px;
  background: var(--mute);
  margin: 8px 0 32px;
}
.about-closing {
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
}

/* ------ colophon ------ */

.colophon {
  padding: 30px var(--page-x);
  border-top: 1px solid var(--mute);
  text-align: center;
}
.colophon .mono { color: var(--mid); }

/* ------ responsive ------ */

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr; gap: 6px; padding: 18px var(--page-x); }
  .topbar .center, .topbar .right { text-align: left; }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 80px;
    gap: 40px;
    min-height: auto;
  }
  .hero-title { font-size: clamp(64px, 22vw, 140px); margin-bottom: 24px; }
  .hero-rule { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 24px; }

  .prelude { grid-template-columns: 1fr; gap: 20px; padding: 60px var(--page-x) 40px; }

  .plates-pin { padding: 60px 0; }
  .plates-stage {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 var(--page-x);
  }
  .plates-meta { order: 2; }
  .plates-frame { order: 1; width: 100%; height: auto; }
  .plates-stack { max-width: 100%; aspect-ratio: 5 / 7; }
  .plates-dots { display: none; }
  .plate-counter { font-size: 30px; }

  .contact-head { grid-template-columns: 1fr; }
  .contact-filters {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    gap: 18px;
    margin-top: 16px;
  }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }

  .about { grid-template-columns: 1fr; gap: 40px; }
  .about-meta { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { visibility: visible !important; }
  .hero-title { visibility: visible !important; }
  .hero-rule span { transform: scaleX(1) !important; }
}
