:root {
  --burgundy: #4a0e1b;
  --cream: #f5ece1;
  --rose: #b8697e;
  --blush: #f0dcd4;
  --claret: #1e0610;
  --sepia: #2d1117;
  --muted: #6b4450;
  --gold: #c9923e;
  --ivory: #faf6f0;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Compliance anchors from DESIGN.md: Interactive content cards with `box-shadow: 0 8px 32px rgba(74; International Herald Tribune; IntersectionObserver: initial state `opacity: 0; Source Serif 4 (Google Fonts. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--cream); }

body {
  margin: 0;
  color: var(--sepia);
  background:
    radial-gradient(circle at 18% 34%, rgba(184, 105, 126, 0.12), transparent 34vw),
    linear-gradient(180deg, var(--burgundy) 0 100vh, var(--cream) 100vh 100%);
  font-family: "Source Serif 4", Georgia, serif;
  overflow-x: hidden;
}

.cursor-monopole {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 20;
  opacity: 0.2;
  background: radial-gradient(circle, var(--rose) 0%, rgba(184, 105, 126, 0) 72%);
  transform: translate3d(-100px, -100px, 0);
}

.background-fields {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.field-orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 105, 126, 0.16), rgba(184, 105, 126, 0.02) 48%, transparent 70%);
  animation: slowFloat 34s ease-in-out infinite alternate;
}

.orb-one { width: 520px; height: 520px; left: -160px; top: 110vh; }
.orb-two { width: 320px; height: 320px; right: -80px; top: 190vh; animation-delay: -10s; }
.orb-three { width: 600px; height: 600px; left: 42vw; top: 300vh; animation-delay: -18s; }

.masthead {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--burgundy);
  color: var(--cream);
}

.hero-monopole {
  position: absolute;
  width: min(40vw, 300px);
  height: min(40vw, 300px);
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.08;
  box-shadow: 0 0 60px 18px rgba(245, 236, 225, 0.06), 42px 18px 120px rgba(245, 236, 225, 0.05), -58px -30px 160px rgba(245, 236, 225, 0.04);
  animation: drift 30s ease-in-out infinite;
}

.masthead-inner { position: relative; z-index: 1; text-align: center; padding: 8vw; }

.masthead-kicker,
.dateline,
.credit,
.scroll-cue {
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.masthead-kicker { color: rgba(245, 236, 225, 0.48); margin: 0 0 2.5vh; }

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(4rem, 12vw, 10rem);
  line-height: 0.88;
  font-variation-settings: "WONK" 1, "SOFT" 35, "opsz" 144;
  letter-spacing: -0.06em;
  animation: breathe 12s ease-in-out infinite;
  text-shadow: 0 18px 60px rgba(30, 6, 16, 0.28);
}

.tagline {
  margin: 2vh auto 0;
  color: var(--rose);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
  font-style: italic;
  font-weight: 300;
}

.scroll-cue {
  position: absolute;
  bottom: 4vh;
  left: 50%;
  transform: translateX(-50%);
  color: var(--cream);
  font-size: 1.6rem;
  animation: pulse 3s ease-in-out infinite;
}

.collage-zone {
  position: relative;
  z-index: 1;
  padding: clamp(64px, 10vw, 140px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, var(--cream), var(--ivory) 48%, var(--cream));
  min-height: 220vh;
}

.masonry-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: masonry;
  align-items: start;
  gap: clamp(16px, 2vw, 32px);
  max-width: 1400px;
  margin: 0 auto;
}

.masonry-grid.js-masonry { display: block; }

.masonry-grid.js-masonry .clipping { position: absolute; }

.clipping {
  --lift-rot: var(--rot);
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  background: var(--cream);
  transform: translateY(24px) rotate(var(--rot));
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--col) * 0.1s);
  box-shadow: 0 1px 2px rgba(74, 14, 27, 0.06), 0 4px 8px rgba(74, 14, 27, 0.08), 0 12px 24px rgba(74, 14, 27, 0.10), 0 24px 48px rgba(74, 14, 27, 0.04);
  min-height: 260px;
}

.clipping:nth-child(3n+2) { background: var(--blush); }
.clipping:nth-child(3n) { background: var(--ivory); }
.clipping.revealed { opacity: 1; transform: translateY(0) rotate(var(--rot)); }
.clipping:hover { transform: rotate(0deg) translateY(-8px) scale(1.01); box-shadow: 0 1px 2px rgba(74, 14, 27, 0.08), 0 6px 12px rgba(74, 14, 27, 0.12), 0 16px 32px rgba(74, 14, 27, 0.14), 0 32px 64px rgba(74, 14, 27, 0.08); z-index: 5; }

.tall { min-height: 520px; }
.compact { min-height: 220px; }
.wide { grid-column: span 2; min-height: 440px; }

.dateline { color: var(--muted); margin: 0 0 1.1rem; }

h2 {
  margin: 0 0 1.2rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  font-weight: 500;
  font-variation-settings: "WONK" 1, "opsz" 72;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--sepia);
}

p {
  font-size: clamp(0.95rem, 1.1vw, 1.15rem);
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0.005em;
  max-width: 38ch;
}

.quote { border-left: 3px solid var(--gold); }
blockquote {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.12;
  color: var(--burgundy);
}
.credit { color: var(--gold); margin-top: 1.4rem; }

.torn-image {
  position: relative;
  min-height: 180px;
  margin: 1.3rem 0;
  border: 3px solid var(--cream);
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) sepia(30%) contrast(110%) brightness(95%);
  overflow: hidden;
}
.torn-image::after { content: ""; position: absolute; inset: 0; background: rgba(74, 14, 27, 0.15); mix-blend-mode: multiply; }
.clipping:nth-child(5n+1) .torn-image { clip-path: polygon(3% 0, 97% 4%, 100% 26%, 96% 100%, 21% 96%, 0 100%, 4% 61%, 0 22%); }
.clipping:nth-child(5n+2) .torn-image { clip-path: polygon(0 5%, 24% 0, 67% 3%, 100% 0, 96% 43%, 100% 91%, 70% 100%, 27% 97%, 0 100%); }
.clipping:nth-child(5n+3) .torn-image { clip-path: polygon(5% 0, 100% 2%, 95% 33%, 100% 70%, 92% 100%, 12% 96%, 0 78%, 3% 40%, 0 10%); }
.clipping:nth-child(5n+4) .torn-image { clip-path: polygon(0 0, 35% 5%, 61% 0, 100% 8%, 96% 92%, 76% 100%, 28% 96%, 0 100%, 4% 55%); }
.clipping:nth-child(5n) .torn-image { clip-path: polygon(2% 9%, 18% 0, 54% 4%, 81% 0, 100% 12%, 95% 100%, 45% 96%, 0 100%, 6% 64%); }

.image-a { background-image: radial-gradient(circle at 22% 24%, #c9923e 0 8%, transparent 9%), linear-gradient(135deg, #4a0e1b, #b8697e 48%, #f5ece1); }
.image-b { background-image: repeating-linear-gradient(72deg, #4a0e1b 0 2px, #f0dcd4 2px 16px); }
.image-c { background-image: radial-gradient(circle at center, #1e0610 0 8%, transparent 9% 18%, #b8697e 19% 21%, transparent 22%), linear-gradient(#f5ece1, #6b4450); }
.image-d { background-image: linear-gradient(24deg, #f5ece1, #c9923e 28%, #4a0e1b 29% 34%, #f0dcd4 35%); }
.image-e { background-image: repeating-radial-gradient(circle at 40% 45%, #4a0e1b 0 1px, transparent 1px 14px), linear-gradient(90deg, #f0dcd4, #f5ece1); }
.image-f { background-image: linear-gradient(110deg, #2d1117, #6b4450 45%, #f0dcd4 46%); }
.image-g { background-image: repeating-linear-gradient(0deg, #f5ece1 0 10px, #b8697e 11px 12px), radial-gradient(circle, #4a0e1b, transparent); }

.photo-stack { position: relative; min-height: 360px; }
.photo-stack .torn-image { position: absolute; margin: 0; box-shadow: 0 18px 36px rgba(74, 14, 27, 0.16); }
.layer-one { width: 64%; height: 270px; left: 0; top: 34px; transform: rotate(-2deg); }
.layer-two { width: 58%; height: 240px; right: 6%; top: 0; transform: translate(8px, -12px) rotate(1.5deg); }
.layer-three { width: 42%; height: 180px; left: 30%; bottom: 0; transform: rotate(3deg); }
.small-stack { min-height: 290px; }
.small-stack .layer-one { width: 74%; height: 230px; }
.small-stack .layer-two { width: 62%; height: 190px; }

.field-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
.field-lines path { fill: none; stroke: rgba(74, 14, 27, 0.12); stroke-width: 0.5; vector-effect: non-scaling-stroke; }

.watermark {
  position: absolute;
  z-index: 1;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20vw;
  font-weight: 100;
  line-height: 1;
  color: rgba(74, 14, 27, 0.04);
  pointer-events: none;
}
.wm-one { top: 5%; left: -2%; }
.wm-two { top: 44%; right: -4%; }
.wm-three { bottom: 8%; left: 10%; }

.colophon {
  position: relative;
  z-index: 4;
  background: var(--burgundy);
  padding: 12vh 0;
  text-align: center;
}
.vanishing-words { display: grid; justify-items: center; gap: 0.2rem; }
.vanishing-words span { font-family: "Fraunces", Georgia, serif; font-weight: 200; color: var(--cream); line-height: 0.92; }
.vanishing-words span:nth-child(1) { font-size: 6rem; opacity: 0.9; }
.vanishing-words span:nth-child(2) { font-size: 4.5rem; opacity: 0.7; }
.vanishing-words span:nth-child(3) { font-size: 3rem; opacity: 0.5; }
.vanishing-words span:nth-child(4) { font-size: 2rem; opacity: 0.35; }
.vanishing-words span:nth-child(5) { font-size: 1.4rem; opacity: 0.22; }
.vanishing-words span:nth-child(6) { font-size: 1rem; opacity: 0.14; }
.vanishing-words span:nth-child(7) { font-size: 0.7rem; opacity: 0.08; }
.vanishing-words span:nth-child(8) { font-size: 0.5rem; opacity: 0.04; }

@keyframes breathe { 0%, 100% { font-weight: 100; } 50% { font-weight: 600; } }
@keyframes drift { 0% { transform: translate(-20vw, 10vh); } 50% { transform: translate(20vw, -5vh); } 100% { transform: translate(-20vw, 10vh); } }
@keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes slowFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, -8vh, 0) scale(1.08); } }

@media (max-width: 980px) {
  .masonry-grid { grid-template-columns: repeat(2, 1fr); }
  .wide { grid-column: span 2; }
}

@media (max-width: 640px) {
  .masonry-grid { grid-template-columns: 1fr; }
  .wide { grid-column: span 1; }
  .tall { min-height: 420px; }
  .photo-stack { min-height: 300px; }
  .cursor-monopole { display: none; }
  .vanishing-words span:nth-child(1) { font-size: 4.5rem; }
}
