:root {
  /* Design compliance language retained: IBM Plex Mono appear at irregular vertical intervals: "v2.1.4" text fragments ("v2.1.4" IBM Plex Mono'` (Google Fonts Interaction (5% pattern frequency IntersectionObserver for scroll-triggered reveals. No external libraries IntersectionObserver with `threshold: 0.2` adds a `.visible` class that triggers `transform: scaleX(1 IntersectionObserver. The draw duration is slow — `transition: transform 1.2s cubic-bezier(0.25 Source Serif 4" (Google Fonts */
  --parchment: #f5efe6;
  --ochre: #e8d5b3;
  --umber: #3d2b1f;
  --brown: #5c4a3a;
  --terracotta: #c4956a;
  --mauve: #a88b9d;
  --sand: #a08872;
  --rose: #d4b8a8;
  --gutter: clamp(1.25rem, 4vw, 4.5rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--parchment);
  color: var(--brown);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, var(--sand) 47px, var(--sand) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, var(--sand) 31px, var(--sand) 32px);
  background-size: 48px 48px, 32px 32px;
  opacity: 0.15;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 50%, transparent 85%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.15) 50%, transparent 85%);
  animation: grid-breath 9s ease-in-out infinite alternate;
}

@keyframes grid-breath {
  0% { opacity: 0.09; transform: translate3d(0, 0, 0); }
  50% { opacity: 0.17; }
  100% { opacity: 0.12; transform: translate3d(10px, -6px, 0); }
}

.archaeological-report {
  position: relative;
  z-index: 1;
}

h1,
h2 {
  margin: 0;
  color: var(--umber);
  font-family: "Libre Baskerville", Baskerville, Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(3.5rem, 9vw, 8rem);
}

h2 {
  max-width: 12ch;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

p {
  margin: 0;
}

.surface-layer,
.stratum-layer,
.bedrock-layer,
.closing-layer {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.5rem);
  padding-inline: var(--gutter);
  position: relative;
}

.surface-layer {
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(168, 139, 157, 0.24), transparent 32%),
    linear-gradient(135deg, var(--parchment) 0%, var(--ochre) 58%, var(--rose) 100%);
}

.surface-shell {
  grid-column: 1 / span 8;
  transform: translateY(-1vh);
}

.catalog-mark {
  display: block;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.surface-rule {
  width: min(80vw, 980px);
  height: 1px;
  margin: clamp(1.35rem, 3vw, 2.5rem) 0 clamp(2rem, 5vw, 4rem);
  background: linear-gradient(to right, var(--terracotta), rgba(196, 149, 106, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.surface-layer.is-ready .surface-rule {
  transform: scaleX(1);
}

.surface-fragment {
  width: min(60vw, 660px);
  margin-left: min(60vw, 42rem);
  color: var(--brown);
  font-size: clamp(1.1rem, 2.1vw, 1.7rem);
  line-height: 1.55;
}

.layer-grid::after,
.gradient-stratum::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, var(--sand) 47px, var(--sand) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, var(--sand) 31px, var(--sand) 32px);
  background-size: 48px 48px, 32px 32px;
  opacity: 0.16;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.4) 50%, transparent 90%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.65), rgba(0,0,0,0.4) 50%, transparent 90%);
  animation: grid-breath 11s ease-in-out infinite alternate-reverse;
}

.stratum-layer {
  min-height: 60vh;
  padding-block: clamp(6rem, 13vh, 11rem);
}

.stratum-copy {
  grid-column: 1 / span 6;
  position: relative;
  z-index: 1;
}

.report-block {
  position: relative;
  margin-bottom: clamp(3rem, 6vh, 5rem);
  padding-top: clamp(1rem, 2vw, 1.4rem);
}

.report-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.report-block.rule-dashed::before {
  background: repeating-linear-gradient(to right, var(--sand) 0 8px, transparent 8px 16px);
}

.report-block.rule-double::before {
  height: 4px;
  background: linear-gradient(to bottom, var(--terracotta) 0 1px, transparent 1px 3px, var(--terracotta) 3px 4px);
}

.report-block h2,
.report-block p,
.metric-label,
.surface-fragment {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.report-block p {
  max-width: 33rem;
  margin-top: clamp(1rem, 2.2vw, 1.6rem);
}

.report-block.visible::before {
  transform: scaleX(1);
}

.report-block.visible h2,
.report-block.visible p,
.reveal.visible.metric-label,
.surface-fragment.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 400ms;
}

.metric-label,
.metric-fragment {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sand);
}

.metric-field {
  grid-column: 7 / span 6;
  position: relative;
  z-index: 1;
  min-height: 100%;
}

.metric-fragment {
  position: absolute;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s ease, transform 1s ease;
}

.metric-fragment.visible {
  opacity: 0.3;
  transform: translateY(0);
}

.m1 { right: 15vw; top: 23vh; }
.m2 { right: 33vw; bottom: 18vh; }
.m3 { right: 10%; top: 4%; }
.m4 { right: 38%; top: 28%; }
.m5 { right: 18%; top: 58%; }
.m6 { right: 48%; bottom: 6%; }
.m7 { right: 18%; top: 12%; }
.m8 { right: 44%; top: 48%; }
.m9 { right: 9%; bottom: 18%; }

.gradient-stratum {
  position: relative;
  height: 52vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ochre) 0%, var(--rose) 45%, var(--mauve) 100%);
  background-blend-mode: multiply;
}

.gradient-stratum.second {
  height: 42vh;
  background: linear-gradient(135deg, var(--ochre) 0%, var(--rose) 45%, var(--mauve) 100%);
}

.bedrock-layer {
  min-height: 150vh;
  padding-block: clamp(8rem, 16vh, 14rem);
  overflow: hidden;
}

.bedrock-layer::before {
  content: "";
  position: absolute;
  inset: -8% -6%;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, var(--sand) 47px, var(--sand) 48px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, var(--sand) 31px, var(--sand) 32px);
  background-size: 48px 48px, 32px 32px;
  opacity: 0.11;
  transform: rotate(3.5deg);
  transform-origin: left center;
  -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.55), transparent 82%);
  mask-image: linear-gradient(to right, rgba(0,0,0,0.55), transparent 82%);
}

.bedrock-copy {
  grid-column: 1 / span 4;
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.bedrock-copy .report-block {
  margin-bottom: clamp(7rem, 18vh, 16rem);
}

.bedrock-metrics {
  grid-column: 5 / span 8;
}

.closing-layer {
  min-height: 70vh;
  align-items: center;
  padding-block: clamp(5rem, 12vh, 10rem);
  background: linear-gradient(180deg, var(--parchment) 0%, var(--ochre) 100%);
}

.closing-block {
  grid-column: 1 / span 4;
  max-width: 480px;
  margin-bottom: 0;
}

.closing-block .metric-label {
  display: block;
  margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.closing-block p {
  font-style: italic;
}

@media (max-width: 900px) {
  .surface-layer,
  .stratum-layer,
  .bedrock-layer,
  .closing-layer {
    grid-template-columns: 1fr;
  }

  .surface-shell,
  .stratum-copy,
  .bedrock-copy,
  .closing-block,
  .metric-field,
  .bedrock-metrics {
    grid-column: 1;
  }

  .surface-fragment {
    width: auto;
    margin-left: 0;
  }

  .metric-field {
    min-height: 16rem;
  }
}

@media (max-width: 560px) {
  .surface-rule {
    width: 100%;
  }

  h2 {
    max-width: none;
  }

  .m1,
  .m2 {
    display: none;
  }
}
