:root {
  /* Typography compliance note: Source Sans 3** for small interface labels */
  --parchment: #F4EBD8;
  --pond-sage: #9AAA86;
  --washed-ink: #343B35;
  --reed-taupe: #B8A98B;
  --pale-water: #BFD0C8;
  --soft-moss: #6F7B5F;
  --tea-stain: #D8BE8A;
  --display: "Bebas Neue", "Arial Narrow", "Impact", sans-serif;
  --serif: "Cormorant Garamond", "Cormorant", "Georgia", serif;
  --sans: "Source Sans 3", "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--washed-ink);
  background: var(--parchment);
  font-family: var(--serif);
  overflow-x: hidden;
}

.pond-field {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 14%, rgba(191, 208, 200, .45), transparent 22rem),
    radial-gradient(circle at 82% 20%, rgba(216, 190, 138, .28), transparent 19rem),
    linear-gradient(115deg, rgba(244, 235, 216, .98), rgba(244, 235, 216, .88));
  isolation: isolate;
}

.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(52, 59, 53, .025) 1px, transparent 1px),
    linear-gradient(0deg, rgba(52, 59, 53, .02) 1px, transparent 1px),
    radial-gradient(circle, rgba(184, 169, 139, .18) 1px, transparent 1.5px);
  background-size: 38px 38px, 42px 42px, 17px 17px;
}

.compass-label {
  position: fixed;
  top: 22px;
  left: 24px;
  right: 24px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--soft-moss);
  border-bottom: 1px solid rgba(154, 170, 134, .32);
  padding-bottom: 10px;
}

.tableau {
  min-height: 100vh;
  position: relative;
  padding: 96px clamp(22px, 5vw, 76px) 72px;
}

.hero-tableau {
  display: grid;
  place-items: center;
  text-align: center;
}

.call-number, .eyebrow, .card-meta, .closing-stamp, .torn-tab, .basin-note {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px;
  color: var(--soft-moss);
}

.call-number {
  position: absolute;
  top: 116px;
  left: clamp(24px, 6vw, 92px);
}

.wordmark {
  position: relative;
  display: flex;
  gap: clamp(3px, .9vw, 14px);
  justify-content: center;
  align-items: center;
  width: min(92vw, 1100px);
  z-index: 2;
}

.letter {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(82px, 19vw, 260px);
  line-height: .82;
  letter-spacing: .045em;
  color: rgba(52, 59, 53, .86);
  text-shadow: 0 10px 0 rgba(191, 208, 200, .22), 0 24px 28px rgba(111, 123, 95, .13);
  transform: translateY(-42px) scale(.98);
  opacity: 0;
}

.letter.entered { animation: dampedLetter 950ms cubic-bezier(.22, 1.42, .48, 1) forwards; }

.letter::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: .55em;
  height: .22em;
  border: 1px solid rgba(191, 208, 200, .58);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
}

.letter.rippling::after { animation: letterRipple 1150ms ease-out forwards; }

.reflection {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, 20%) scaleY(-.32);
  font-family: var(--display);
  font-size: clamp(82px, 19vw, 260px);
  letter-spacing: .09em;
  color: rgba(111, 123, 95, .13);
  filter: blur(1.5px);
  pointer-events: none;
}

.hero-caption {
  max-width: 560px;
  margin: 36px auto 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
  color: rgba(52, 59, 53, .76);
}

.hero-ripple-plate, .afterimage-rings, .large-rings, .ripple-drawing, .oval-plate {
  position: absolute;
  pointer-events: none;
}

.hero-ripple-plate {
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.hero-ripple-plate span, .afterimage-rings span, .large-rings span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(191, 208, 200, .58);
  border-radius: 50%;
  animation: slowRing 8s ease-in-out infinite;
}

.hero-ripple-plate span:nth-child(2), .afterimage-rings span:nth-child(2), .large-rings span:nth-child(2) { inset: 24%; animation-delay: -2s; border-color: rgba(154, 170, 134, .42); }
.hero-ripple-plate span:nth-child(3), .afterimage-rings span:nth-child(3), .large-rings span:nth-child(3) { inset: 36%; animation-delay: -4s; border-color: rgba(216, 190, 138, .45); }
.large-rings span:nth-child(4) { inset: 2%; animation-delay: -6s; border-color: rgba(184, 169, 139, .28); }

.section-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 720px);
  gap: 26px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h1, .afterimage-tableau h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 5.6vw, 84px);
  font-weight: 400;
  line-height: .94;
}

.eyebrow { margin: 0 0 10px; }

.numeral {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 142px);
  line-height: .8;
  color: rgba(111, 123, 95, .35);
  letter-spacing: .05em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 94px;
  gap: 18px;
  max-width: 1220px;
  margin: 0 auto;
}

.study-card {
  position: relative;
  background: rgba(244, 235, 216, .82);
  border: 1px solid rgba(184, 169, 139, .76);
  box-shadow: 0 18px 44px rgba(52, 59, 53, .10), inset 0 0 0 1px rgba(255, 255, 255, .23);
  padding: 22px;
  overflow: hidden;
  transition: transform 420ms cubic-bezier(.22, 1.4, .46, 1), box-shadow 420ms ease;
  opacity: 0;
  transform: translateY(32px) rotate(var(--rot, 0deg));
}

.study-card.settled { animation: cardSettle 900ms cubic-bezier(.2, 1.35, .45, 1) forwards; }
.study-card:hover { transform: translateY(-10px) rotate(var(--rot, 0deg)) scale(1.01); box-shadow: 0 26px 56px rgba(52, 59, 53, .15); }
.study-card:hover .marginalia { opacity: 1; transform: translateY(0); }

.study-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(154, 170, 134, .28);
  pointer-events: none;
}

.tall { grid-column: span 3; grid-row: span 5; }
.square { grid-column: span 4; grid-row: span 4; }
.strip { grid-column: span 2; grid-row: span 5; }
.wide { grid-column: span 7; grid-row: span 3; }
.oval-card { grid-column: span 3; grid-row: span 4; border-radius: 44% 56% 48% 52% / 8% 10% 9% 12%; }
.specimen { grid-column: span 2; grid-row: span 4; }
.rotate-left { --rot: -1.35deg; }
.rotate-right { --rot: 1.15deg; }
.rotate-left-soft { --rot: -.65deg; }
.rotate-right-soft { --rot: .75deg; }

.study-card h2 {
  margin: 8px 0 12px;
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 58px);
  line-height: .9;
  letter-spacing: .055em;
  color: var(--washed-ink);
}

.study-card p, .study-card li {
  font-size: 19px;
  line-height: 1.32;
}

.study-card ul { list-style: none; padding: 0; margin: 20px 0; }
.study-card li { border-top: 1px solid rgba(184, 169, 139, .55); padding: 12px 0; }

.marginalia {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  color: var(--soft-moss);
  font-size: 18px;
  opacity: .48;
  transform: translateY(8px);
  transition: 340ms ease;
}

.pin, .library-holes i, .seed-diagram span {
  background: var(--tea-stain);
  border-radius: 50%;
}

.pin { position: absolute; width: 12px; height: 12px; right: 18px; top: 18px; box-shadow: 0 0 0 5px rgba(216, 190, 138, .24); }

.leaf-print {
  width: 128px;
  height: 210px;
  margin: 18px auto;
  opacity: .58;
  background:
    linear-gradient(84deg, transparent 48%, var(--soft-moss) 49%, transparent 51%),
    radial-gradient(ellipse at 47% 18%, var(--pond-sage) 0 8%, transparent 9%),
    radial-gradient(ellipse at 56% 31%, var(--pond-sage) 0 10%, transparent 11%),
    radial-gradient(ellipse at 42% 45%, var(--pond-sage) 0 11%, transparent 12%),
    radial-gradient(ellipse at 58% 60%, var(--pond-sage) 0 10%, transparent 11%),
    radial-gradient(ellipse at 43% 76%, var(--pond-sage) 0 8%, transparent 9%);
  filter: blur(.2px);
}

.ripple-drawing { inset: 48px 20px auto auto; width: 160px; height: 120px; }
.ripple-drawing span { position: absolute; inset: calc(var(--i, 0) * 14px); border: 1px solid rgba(191, 208, 200, .85); border-radius: 50%; }
.ripple-drawing span:nth-child(1) { --i: 0; } .ripple-drawing span:nth-child(2) { --i: 1; } .ripple-drawing span:nth-child(3) { --i: 2; } .ripple-drawing span:nth-child(4) { --i: 3; }

.torn-tab { display: inline-block; padding: 8px 12px; background: rgba(191, 208, 200, .48); color: var(--washed-ink); transform: rotate(-1deg); }

.contour-lines {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 220px;
  height: 110px;
  border-radius: 50%;
  border: 1px solid rgba(111, 123, 95, .34);
  box-shadow: inset 0 0 0 16px rgba(191, 208, 200, .14), inset 0 0 0 31px rgba(216, 190, 138, .12), inset 0 0 0 48px rgba(154, 170, 134, .10);
}

.oval-plate { width: 160px; height: 128px; right: 18px; top: 70px; border: 1px solid rgba(191, 208, 200, .9); border-radius: 50%; background: rgba(191, 208, 200, .20); }
.oval-plate span { position: absolute; inset: 26px; border: 1px solid rgba(111, 123, 95, .32); border-radius: 50%; }

.library-holes { position: absolute; left: 0; top: 30px; display: grid; gap: 24px; }
.library-holes i { width: 10px; height: 10px; display: block; transform: translateX(-5px); background: var(--parchment); border: 1px solid var(--reed-taupe); }

.seed-diagram { position: relative; height: 130px; margin: 18px 0; }
.seed-diagram span { position: absolute; width: 13px; height: 13px; background: var(--soft-moss); opacity: .58; }
.seed-diagram span:nth-child(1) { left: 22%; top: 14%; } .seed-diagram span:nth-child(2) { left: 65%; top: 23%; } .seed-diagram span:nth-child(3) { left: 44%; top: 48%; } .seed-diagram span:nth-child(4) { left: 20%; top: 73%; } .seed-diagram span:nth-child(5) { left: 76%; top: 70%; }

.basin-tableau { display: grid; align-content: center; }
.compact { margin-bottom: 12px; }
.basin-composition {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}
.basin-composition p {
  max-width: 620px;
  text-align: center;
  font-size: clamp(27px, 4vw, 54px);
  line-height: 1.03;
  z-index: 2;
}
.large-rings { width: min(78vw, 760px); height: min(78vw, 760px); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.basin-note { position: absolute; padding: 12px 14px; border: 1px solid rgba(184, 169, 139, .7); background: rgba(244, 235, 216, .7); }
.note-a { left: 10%; top: 22%; transform: rotate(-2deg); }
.note-b { right: 12%; top: 34%; transform: rotate(1.2deg); color: var(--tea-stain); }
.note-c { left: 22%; bottom: 18%; transform: rotate(.8deg); color: var(--soft-moss); }

.afterimage-tableau {
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
}
.afterimage-tableau h1 { max-width: 930px; color: rgba(52, 59, 53, .82); }
.afterimage-rings { width: 86vw; height: 86vw; max-width: 900px; max-height: 900px; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: -1; }
.closing-stamp { align-self: end; border: 1px solid rgba(111, 123, 95, .35); padding: 12px 18px; }

.floating-shape, .botanical-shadow { position: fixed; pointer-events: none; z-index: -1; }
.floating-shape { border: 1px solid rgba(191, 208, 200, .7); background: rgba(191, 208, 200, .18); filter: blur(.1px); animation: drift 18s ease-in-out infinite; }
.oval-a { width: 210px; height: 96px; border-radius: 50%; left: 7vw; top: 23vh; transform: rotate(-19deg); }
.oval-b { width: 310px; height: 138px; border-radius: 50%; right: 4vw; bottom: 14vh; animation-delay: -7s; transform: rotate(16deg); }
.ring-map { width: 190px; height: 190px; border-radius: 50%; right: 13vw; top: 19vh; background: transparent; box-shadow: inset 0 0 0 26px rgba(216, 190, 138, .11), inset 0 0 0 54px rgba(191, 208, 200, .14); animation-delay: -12s; }
.botanical-shadow { width: 260px; height: 360px; opacity: .09; background: repeating-linear-gradient(74deg, transparent 0 14px, var(--soft-moss) 15px 17px, transparent 18px 32px); mask-image: radial-gradient(ellipse, black 20%, transparent 68%); }
.fern-one { left: -70px; bottom: 4vh; transform: rotate(-18deg); }
.fern-two { right: -80px; top: 42vh; transform: rotate(20deg); }

.page-markers {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: grid;
  gap: 12px;
}
.page-markers a {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--soft-moss);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 1px solid rgba(154, 170, 134, .35);
}

.pointer-ripple {
  position: fixed;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(111, 123, 95, .34);
  border-radius: 50%;
  pointer-events: none;
  z-index: 15;
  transform: translate(-50%, -50%) scale(.2);
  animation: pointerRipple 1200ms ease-out forwards;
}

@keyframes dampedLetter {
  0% { opacity: 0; transform: translateY(-42px) scale(.98); }
  48% { opacity: 1; transform: translateY(7px) scale(1.015); }
  68% { transform: translateY(-4px) scale(.997); }
  84% { transform: translateY(2px) scale(1.004); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes letterRipple {
  0% { opacity: .65; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.6); }
}

@keyframes cardSettle {
  0% { opacity: 0; transform: translateY(32px) rotate(var(--rot, 0deg)) scale(.985); }
  62% { opacity: 1; transform: translateY(-5px) rotate(var(--rot, 0deg)) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)) scale(1); }
}

@keyframes slowRing { 0%, 100% { transform: scale(.96); opacity: .38; } 50% { transform: scale(1.06); opacity: .72; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 18px -24px; } }
@keyframes pointerRipple { to { opacity: 0; transform: translate(-50%, -50%) scale(7); } }

@media (max-width: 900px) {
  .compass-label { left: 16px; right: 16px; }
  .card-grid { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 86px; }
  .tall, .square, .wide, .oval-card, .specimen { grid-column: span 6; grid-row: span 4; }
  .strip { grid-column: span 6; grid-row: span 3; }
  .section-heading { grid-template-columns: 1fr; }
  .page-markers { display: none; }
}

@media (max-width: 560px) {
  .wordmark { gap: 0; }
  .tableau { padding-left: 18px; padding-right: 18px; }
  .card-grid { display: block; }
  .study-card { min-height: 310px; margin-bottom: 18px; }
}
