@font-face {
  font-family: 'Dino Kosmos'; src: url('../fonts/Kosmos129.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Dino Dotective'; src: url('../fonts/Dotective.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
body.page-dinosaurs { background: #170d3e; cursor: default; overflow-x: hidden; overflow-y: auto; }
body.page-dinosaurs .site-header { background: transparent; border: 0; box-shadow: none; }
body.page-dinosaurs .site-header .bio-hover { --bio-ground: transparent; }
body.page-dinosaurs .site-header .bio-face { background: transparent; }
body.page-dinosaurs .mobile-menu-toggle { background: #eaf3ff20; }
body.page-dinosaurs.din-nav-on-dark .site-header .nav a,
body.page-dinosaurs.din-nav-on-dark .site-header .logo,
body.page-dinosaurs.din-nav-on-dark .site-header .logo-anim,
body.page-dinosaurs.din-nav-on-dark .site-header .mobile-menu-toggle { color: #ece9ff; }
body.page-dinosaurs.din-nav-on-dark .site-header .ltr.c1 { color: #ece9ff; }
body.page-dinosaurs.din-nav-on-dark .site-header .ltr.c2,
body.page-dinosaurs.din-nav-on-dark .site-header .ltr.c3 { color: #b7adff; }
body.page-dinosaurs .site-footer { display: none; }
body.page-dinosaurs .din-page { width: 100%; max-width: none; padding: 0; margin: 0; }
body.page-dinosaurs .din-room {
  position: relative; width: 100%; height: 100svh; min-height: 620px;
  margin: 0; padding: 0; isolation: isolate; overflow: hidden;
}
.page-dinosaurs .din-glitter {
  background: linear-gradient(#fcfdff, #d9f0fb 17%, #a5cdeb 36%, #6c65ac 70%, #170d3e);
}
.page-dinosaurs .din-glitter::after { display: none; }
.din-landscape { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.page-dinosaurs .din-quote {
  top: 19%; left: 4%; right: auto; width: 92%; padding: 0; margin: 0;
  transform: none; text-align: left; white-space: nowrap;
  font-size: clamp(16px, 2.7vw, 38px); z-index: 3; color: #77acce;
  font-family: 'Dino Kosmos', sans-serif; font-style: normal;
  font-weight: 400; text-shadow: none; opacity: 1;
}
.din-mascots {
  position: absolute; left: 4%; right: 4%; bottom: 18%; height: min(29vw, 280px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr);
  gap: 3%; z-index: 2;
  pointer-events: none; translate: var(--din-shake-x, 0px) var(--din-shake-y, 0px);
}
.din-mascot {
  display: block; width: 100%; height: 100%; min-width: 0; min-height: 0;
  padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.din-discovered .din-mascot { pointer-events: auto; }
.din-mascot:focus-visible { outline: 2px dashed #c7e9ff; outline-offset: 5px; border-radius: 25%; }
.din-find { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.din-find { transform-origin: 50% 84%; }
.din-mascot:nth-child(1) .din-find { transform: scale(.96); }
.din-mascot:nth-child(2) .din-find { transform: scale(1.03); }
.din-mascot:nth-child(3) .din-find { transform: scale(.92); }
.din-mascot:nth-child(3) .din-find-living { transform: scale(-.92, .92); }
.din-stones {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 10;
  touch-action: pan-y; background: #fcfdff; cursor: default;
}
.din-ready .din-stones { background: transparent; }
.din-unavailable .din-stones, .din-discovered:not(.din-ready) .din-stones { display: none; }
.din-discovered .din-stones { pointer-events: none; }
.din-excavation-ui {
  position: absolute; bottom: max(25px, env(safe-area-inset-bottom));
  left: 20px; right: 20px; z-index: 30; text-align: center;
  color: #f1e7fc; pointer-events: none; font-family: 'Manrope', sans-serif;
}
.din-hint { margin: 0 0 11px; font-size: clamp(11px, 1vw, 13px); letter-spacing: .025em; line-height: 1.6; }
.din-progress { --dig-progress: 0; width: 112px; height: 2px; overflow: hidden; margin: 0 auto 12px; background: #e3d6f430; }
.din-progress::after {
  content: ''; display: block; width: 100%; height: 100%;
  transform: scaleX(var(--dig-progress)); transform-origin: left;
  background: #b7e8fb; transition: transform .2s;
}
.din-discovered .din-hint, .din-discovered .din-progress { display: none; }
.din-excavation-ui button {
  pointer-events: auto; border: 1px solid #e8d8ff55; border-radius: 30px;
  padding: 9px 18px; background: #cbb7e522; color: inherit; font: inherit;
  font-size: 11px; letter-spacing: .02em; cursor: pointer; backdrop-filter: blur(12px);
}
.din-excavation-ui button:hover { background: #d6bce548; }
.din-excavation-ui button:focus-visible { outline: 2px solid #b6ecff; outline-offset: 4px; }
.page-dinosaurs .series-nav-back { color: #354564; text-shadow: 0 0 10px #cdeaff; }
.din-story { position: relative; background: #170d3e; }
.din-story-stage {
  position: relative; min-height: 100svh; isolation: isolate; overflow: hidden;
  background: #bd8855;
}
.din-story-texture {
  position: absolute; inset: 0; z-index: -1;
  background: url('../images/works/dinosaurs-soil-hq.webp') center top / cover no-repeat;
}
.din-story-stage::before, .din-story-stage::after {
  content: ''; position: absolute; left: 0; right: 0; height: clamp(96px, 12svh, 140px);
  background: url('../images/works/dinosaurs-soil-edge.svg?v=clean-cut-17') center / 100% 100% no-repeat;
  pointer-events: none; z-index: 0;
}
.din-story-stage::before { top: -1px; }
.din-story-stage::after { bottom: -1px; rotate: 180deg; }
.din-story-copy { z-index: 1; width: min(1120px, 89%); margin: 0 auto; padding: 36svh 0 28svh; }
.din-story-line {
  margin: 0 0 2em; color: #411c24; font: 600 clamp(27px, 3.15vw, 49px)/1.25 'Caveat', cursive;
  text-align: center; text-wrap: balance; text-shadow: 0 1px 13px #ffe6b455;
}
.din-story-line span { display: block; }
.din-story-line span + span { margin-top: .12em; }
.din-story-line.din-story-final {
  font-family: 'Dino Dotective', sans-serif; font-weight: 400;
  font-size: clamp(43px, 7.2vw, 110px); line-height: 1.12; letter-spacing: .018em; word-spacing: .16em;
}
.din-story--pinned { height: calc(var(--din-story-steps, 8) * 96svh + 100svh); }
.din-story--pinned .din-story-stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.din-story--pinned .din-story-copy {
  position: absolute; top: 58%; left: 50%; transform: translate(-50%, -50%);
  display: grid; align-items: center; padding: 0; margin: 0;
}
.din-story--pinned .din-story-line {
  grid-area: 1 / 1; margin: 0; opacity: 0; pointer-events: none;
  transition: opacity .85s ease;
}
.din-gallery {
  position: relative; isolation: isolate; min-height: 100svh;
  display: grid; align-content: center; padding: 130px 4vw 100px;
  background: #170d3e; color: #cfe9fa;
}
.din-gallery::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--din-grain); opacity: .32; mix-blend-mode: soft-light;
}
.din-series-title {
  position: absolute; left: 1.5%; bottom: 9%; width: 97%; margin: 0; z-index: 4;
  font-family: 'Manrope', sans-serif; font-size: clamp(16px, 5.7vw, 110px);
  font-weight: 500; line-height: 1; letter-spacing: -.04em; white-space: nowrap;
  transform: scaleY(.8); transform-origin: left bottom;
  text-transform: uppercase; color: #d8e5ff; opacity: .72; mix-blend-mode: soft-light;
  pointer-events: none; translate: var(--din-shake-x, 0px) var(--din-shake-y, 0px);
}
.din-artwork { width: min(1100px, 88%); margin: 0 auto; }
.din-artwork img { display: block; width: 100%; height: auto; }
@media (max-width: 600px) {
  body.page-dinosaurs .din-room { min-height: 620px; }
  .page-dinosaurs .din-quote { top: 23%; font-size: clamp(15px, 4.05vw, 22px); }
  .din-mascots { left: 2%; right: 2%; gap: 0; bottom: 18%; height: 31vw; }
  .din-hint { max-width: 290px; margin: 0 auto 10px; }
  .din-excavation-ui { bottom: max(20px, env(safe-area-inset-bottom)); }
  .din-gallery { padding: 85px 4vw 60px; }
  .din-artwork { width: 96%; }
  .din-story-line { font-size: clamp(25px, 6.8vw, 34px); }
  .din-story-line.din-story-final { font-size: clamp(39px, 10vw, 60px); }
  .din-story--pinned .din-story-copy { top: 55%; width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  .din-progress::after, .din-story--pinned .din-story-line { transition: none; }
}
