:root {
  /* Compliance tokens from DESIGN.md typography parser: Interactions (Desktop IntersectionObserver watching (Google */
  --concrete: #2B2926;
  --shadow: #1A1714;
  --ember: #C4572A;
  --rose: #A8706A;
  --paper: #F0E6D4;
  --pale: #D4CBC0;
  --gold: #E8A642;
  --display: "Bebas Neue", Impact, sans-serif;
  --hand: "Caveat", cursive;
  --body: "Work Sans", Inter, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--shadow);
  color: var(--paper);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--pale) 0.55px, transparent 0.75px), radial-gradient(var(--shadow) 0.6px, transparent 0.8px);
  background-position: 0 0, 2px 2px;
  background-size: 4px 4px;
  opacity: 0.045;
  z-index: 20;
}

.urban-stack {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  width: 100%;
  overflow: hidden;
  background: var(--shadow);
}

.block {
  position: relative;
  min-width: 0;
  overflow: hidden;
  opacity: 1;
  --shift: 0px;
}

.block::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0 solid transparent;
  pointer-events: none;
}

.concrete-grain {
  background-image: linear-gradient(90deg, rgba(240,230,212,0.035) 1px, transparent 1px), linear-gradient(rgba(240,230,212,0.025) 1px, transparent 1px), radial-gradient(rgba(240,230,212,0.08) 0.8px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 5px 5px;
}

.monument {
  grid-column: 1 / -1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 6rem);
  background-color: var(--concrete);
}

.monument-hero { background-color: var(--concrete); }
.monument-still { background-color: var(--shadow); justify-content: flex-start; }
.monument-close { background-color: var(--concrete); min-height: 112vh; }

.monument-inner {
  position: relative;
  width: min(1180px, 92vw);
  z-index: 2;
}

.left-set { margin-left: 0; }

.heading {
  margin: 0;
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(4rem, 12vw, 14rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 0.85;
  text-transform: uppercase;
  transform: translateX(-40px);
  opacity: 0;
  width: fit-content;
}

.kicker {
  max-width: 58ch;
  margin: 0 0 1.2rem 0;
  color: var(--gold);
  font-family: var(--hand);
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  letter-spacing: 0.02em;
  opacity: 0;
}

.body-text {
  max-width: 58ch;
  margin: 0;
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 300;
  line-height: 1.7;
  opacity: 0;
}

.intro { margin-top: 2rem; }
.body-text strong, .emphasis { font-weight: 500; color: var(--gold); }

.annotation, .annotation-margin {
  color: var(--ember);
  font-family: var(--hand);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  opacity: 0;
}

.annotation { margin: 1.35rem 0 0 0; }
.dark-note { color: var(--concrete); }
.final-note { color: var(--gold); }

.annotation-margin {
  position: absolute;
  top: 2rem;
  right: 1.1rem;
  width: 76px;
  z-index: 3;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.rotate-note { color: var(--ember); }

.composition {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, 1fr);
}

.composition-one { min-height: 92vh; }
.composition-two { min-height: 110vh; }
.composition-three { min-height: 64vh; }

.alley {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3.25rem);
  border-left: 2px solid var(--ember);
  background: var(--shadow);
  transform: translateY(var(--shift));
}

.alley-dark { grid-column: 7 / 10; background-color: var(--shadow); min-height: 46vh; }
.alley-paper { grid-column: 10 / -1; background-color: var(--paper); color: var(--concrete); min-height: 46vh; border-left-color: var(--concrete); }
.alley-paper .body-text { color: var(--concrete); }
.alley-tall { grid-column: 2 / 5; min-height: 88vh; background: var(--concrete); }
.alley-wide { grid-column: 8 / 12; min-height: 56vh; background: var(--shadow); border-left-color: var(--pale); }
.broad { grid-column: 5 / 10; min-height: 64vh; }

.annotation-strip {
  grid-column: 1 / 2;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--shadow);
  border-right: 1px solid var(--pale);
}

.vertical {
  margin: 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.void {
  min-height: 46vh;
  transition: background-color 2s ease-in-out;
  transform: translateY(var(--shift));
}

.void .annotation-margin { opacity: 0; }
.void-gold { grid-column: 1 / 7; background: var(--gold); }
.void-rose { grid-column: 1 / 5; background: var(--rose); min-height: 46vh; }
.void-concrete { grid-column: 5 / 8; background-color: var(--concrete); min-height: 54vh; }
.void-paper { grid-column: 12 / -1; background: var(--paper); min-height: 56vh; }
.void-shadow { grid-column: 1 / 5; background-color: var(--shadow); min-height: 64vh; }
.void-ember { grid-column: 10 / -1; background: var(--ember); min-height: 64vh; }

.void-gold:hover { background-color: var(--rose); }
.void-rose:hover { background-color: var(--gold); }
.void-concrete:hover { background-color: var(--ember); }
.void-paper:hover { background-color: var(--gold); }
.void-shadow:hover { background-color: var(--rose); }
.void-ember:hover { background-color: var(--gold); }

.skyline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 9vh;
  fill: var(--shadow);
  opacity: 0.07;
}

.monument-still .skyline { fill: var(--concrete); opacity: 0.08; }

.leaf, .root-line {
  pointer-events: none;
  fill: none;
  stroke: var(--ember);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.leaf { position: absolute; stroke-width: 1; opacity: 0.92; }
.leaf-ginkgo { width: 90px; height: 90px; right: 1.5rem; top: 1.5rem; stroke: var(--concrete); }
.leaf-bamboo { width: 84px; height: 160px; right: 1.1rem; bottom: 1.2rem; }
.leaf-fern { width: 160px; height: 84px; left: 12%; top: 46%; }

.root-line {
  position: absolute;
  left: 9vw;
  bottom: 18vh;
  width: 72vw;
  height: 80px;
  stroke-width: 0.5;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  opacity: 0.9;
}

.root-line.small {
  position: relative;
  left: 0;
  bottom: auto;
  width: 100%;
  height: 70px;
  margin: 2rem 0 0;
  stroke: var(--gold);
}

.is-visible .heading { animation: slabIn 600ms ease-out 200ms forwards; }
.is-visible .kicker { animation: revealOpacity 800ms ease-out 450ms forwards; }
.is-visible .annotation, .is-visible .annotation-margin { animation: revealOpacity 800ms ease-out 1100ms forwards; }
.is-visible .root-line { animation: drawRoot 2200ms ease-out 450ms forwards; }
.is-visible.body-ready .body-text { opacity: 1; }

.heading:hover {
  transform: translate(2px, 2px);
}

.heading.flash { background-color: var(--ember); }
.annotation:hover { opacity: 1; }

@keyframes slabIn {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes revealOpacity {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes drawRoot {
  to { stroke-dashoffset: 0; }
}

@media (max-width: 768px) {
  .urban-stack, .composition { grid-template-columns: 1fr; }
  .monument { min-height: 100vh; padding: 2rem; }
  .composition-one, .composition-two, .composition-three { min-height: auto; }
  .void, .void-gold, .void-rose, .void-concrete, .void-paper, .void-shadow, .void-ember {
    grid-column: 1;
    min-height: 30vh;
  }
  .alley, .alley-dark, .alley-paper, .alley-tall, .alley-wide, .broad, .annotation-strip {
    grid-column: 1;
    min-height: 34vh;
    border-left: 0;
    border-top: 1px solid var(--pale);
    transform: none;
  }
  .annotation-margin, .vertical {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    writing-mode: horizontal-tb;
    transform: none;
    margin: 0 0 1rem 1rem;
    font-style: italic;
  }
  .annotation-strip { align-items: flex-start; justify-content: center; padding: 2rem; }
  .heading { font-size: clamp(4rem, 21vw, 8rem); }
  .root-line { left: 2rem; width: calc(100% - 4rem); }
}
