/* Shelfline-inspired composition, original MSE artwork and interactions. */
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--deep);
  color: var(--paper);
  border-bottom: 1px solid #ffffff14;
}
.brand {
  width: 180px;
  background: var(--paper);
  padding: 7px 12px;
  border-radius: 4px;
}
.brand img {
  width: 100%;
}
.site-header nav {
  display: flex;
  gap: 34px;
}
.site-header nav a {
  font-size: 15px;
  padding: 15px 0;
  position: relative;
  color: #dce6e5;
}
.site-header nav a:after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.site-header nav a:hover:after,
.site-header nav a[aria-current]:after {
  transform: scaleX(1);
}
.login-link {
  border: 1px solid #b7d8d56b;
  border-radius: 99px;
  padding: 12px 18px;
  font-size: 14px;
}
.login-link span {
  margin-left: 20px;
  color: var(--gold);
}
.login-link:hover {
  background: var(--gold);
  color: var(--deep);
}
.login-link:hover span {
  color: var(--deep);
}
.page {
  padding: 80px 5%;
  position: relative;
  scroll-margin-top: 0;
}
.dark {
  color: var(--paper);
  background-color: var(--deep);
  background-image: linear-gradient(
    90deg,
    transparent calc(100% - 1px),
    #d8ece609 1px
  );
  background-size: 12.5% 100%;
}
.light {
  background: var(--paper);
}
.small-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, monospace;
  color: var(--gold);
}
.hero {
  min-height: calc(100svh - 90px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  padding-top: 35px;
  padding-bottom: 70px;
  align-items: end;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 70px 0 25px;
}
.hero h1 {
  font-size: clamp(52px, 5.7vw, 92px);
  letter-spacing: -0.065em;
  line-height: 0.99;
  font-weight: 800;
  margin: 25px 0;
}
.hero h1 span,
.hero h1 em {
  color: var(--gold);
}
.hero .intro {
  font-size: 22px;
  line-height: 1.4;
  margin: 23px 0 15px;
}
.body-copy {
  color: #bbd0d1;
  font-size: 16px;
  line-height: 1.7;
}
.tag-button {
  display: inline-flex;
  align-items: center;
  gap: 35px;
  background: var(--gold);
  color: var(--deep);
  font-weight: 700;
  padding: 13px 12px 13px 26px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  margin-top: 26px;
  transition:
    transform 0.2s,
    background 0.2s;
}
.tag-button:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--deep);
  border-radius: 50%;
  margin-left: -12px;
}
.tag-button span {
  background: var(--deep);
  color: var(--gold);
  padding: 9px 13px;
  font-size: 21px;
}
.tag-button:hover {
  transform: translateY(-4px);
  background: #ffce68;
}
.tag-button:active {
  transform: translateY(0) scale(0.97);
}
.hero-arch {
  height: calc(100svh - 175px);
  min-height: 680px;
  max-height: 950px;
  border-radius: 50% 50% 0 0 / 34% 34% 0 0;
  background: #007f82;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-self: start;
}
.arch-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#c0ebe91a 1px, transparent 1px),
    linear-gradient(90deg, #c0ebe91a 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotate(-18deg) scale(1.4);
  z-index: -1;
}
.arch-caption {
  position: absolute;
  top: 19%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bde3de;
}
.arch-brand {
  position: absolute;
  left: 14%;
  top: 34%;
  width: 72%;
  background: var(--paper);
  padding: 25px 18px;
  transform: rotate(-7deg);
  box-shadow: 14px 18px 0 #004d57;
}
.orbit {
  position: absolute;
  background: var(--paper);
  padding: 16px 20px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  box-shadow: 7px 9px 0 #004d57;
  transition: transform 0.35s;
}
.orbit img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.orbit-one {
  left: 8%;
  top: 59%;
  transform: rotate(7deg);
}
.orbit-two {
  right: 8%;
  top: 73%;
  transform: rotate(-5deg);
}
.orbit-three {
  right: 7%;
  top: 24%;
  transform: rotate(6deg);
}
.hero-arch:hover .orbit-one {
  transform: translateY(-8px) rotate(3deg);
}
.hero-arch:hover .orbit-two {
  transform: translateY(-8px) rotate(-1deg);
}
.hero-arch:hover .orbit-three {
  transform: translateY(-8px) rotate(2deg);
}
.arch-bottom {
  position: absolute;
  bottom: 32px;
  left: 9%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 18px;
}
.arch-bottom strong {
  font-size: 27px;
  letter-spacing: -0.04em;
}
.next-page {
  position: absolute;
  bottom: 24px;
  left: 5%;
  font-size: 12px;
  color: #bdd0cf;
  display: flex;
  gap: 30px;
}
.next-page span {
  color: var(--gold);
}
.section-title {
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: clamp(42px, 5.3vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.06em;
}
.section-title > p {
  font-size: 19px;
  line-height: 1.6;
  margin-top: 23px;
  color: var(--muted);
}
.editorial {
  padding: 25px;
  background: white;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 5%;
  align-items: center;
}
.story-stage {
  min-height: 500px;
  background: var(--petrol);
  border-radius: 10px;
  color: var(--paper);
  position: relative;
  overflow: hidden;
  padding: 35px;
  display: flex;
  align-items: center;
}
.story-label {
  position: absolute;
  top: 30px;
  left: 35px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bdd9d7;
}
.story-label:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 12px;
}
.story-frame {
  width: 100%;
  padding-top: 55px;
}
.story-mark {
  width: 70%;
  padding: 15px;
  background: var(--paper);
  transform: rotate(-5deg);
  margin: 0 0 40px;
}
.story-frame p {
  font-size: clamp(26px, 2.5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.story-frame > span {
  display: block;
  font-size: 16px;
  line-height: 1.5;
  color: #bcd8d5;
  margin-top: 15px;
  max-width: 360px;
}
.story-play {
  position: absolute;
  bottom: 35px;
  left: 35px;
  width: 47px;
  height: 47px;
  border-radius: 50%;
  color: var(--deep);
  background: var(--gold);
  font-size: 17px;
  transition: transform 0.2s;
}
.story-play:hover {
  transform: scale(1.1);
}
.story-controls {
  position: absolute;
  bottom: 40px;
  left: 105px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story-controls input {
  width: 100%;
  accent-color: var(--gold);
}
.story-controls span {
  font-size: 10px;
  font-family: ui-monospace, monospace;
  color: #bdd9d7;
}
.editorial-copy {
  padding: 25px 15px 25px 0;
}
.editorial-copy .small-label {
  color: #687d7c;
}
.editorial-copy h3 {
  font-size: clamp(28px, 3vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1.06;
  margin: 23px 0;
}
.editorial-copy > p:not(.small-label) {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin: 15px 0;
}
.text-link {
  display: inline-flex;
  gap: 30px;
  margin-top: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--turquoise);
  padding-bottom: 8px;
}
.text-link:hover {
  color: #007f82;
}
.text-link span {
  transition: transform 0.2s;
}
.text-link:hover span {
  transform: translate(3px, -3px);
}
.about-note {
  display: flex;
  justify-content: space-between;
  padding-top: 38px;
  font-size: 14px;
}
.about-note span {
  color: var(--muted);
}
.about-note p {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.reveal {
  transition:
    opacity 0.65s,
    transform 0.65s;
}
.reveal.is-waiting {
  opacity: 0;
  transform: translateY(25px);
}
.products {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 7%;
  align-items: start;
  padding-top: 100px;
  padding-bottom: 110px;
}
.tools-copy {
  position: sticky;
  top: 135px;
}
.tools-copy h2 {
  font-size: clamp(40px, 4.4vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.06em;
  margin: 25px 0;
}
.tools-copy h2 em {
  color: var(--gold);
  display: inline-block;
  border-bottom: 5px solid var(--gold);
  padding-bottom: 9px;
}
.tools-copy > p:not(.small-label) {
  font-size: 17px;
  color: #bdd1d1;
  line-height: 1.65;
  max-width: 430px;
}
.tools-copy .shelf-instruction {
  color: var(--gold) !important;
  margin-top: 25px;
  font-size: 13px !important;
}
.shelf-instruction span {
  margin-left: 15px;
}
.school-receipt {
  background: var(--paper);
  color: var(--petrol);
  padding: 23px;
  max-width: 380px;
  margin-top: 40px;
  transform: rotate(-2deg);
  font:
    12px/1.5 ui-monospace,
    monospace;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 96%,
    95% 100%,
    90% 96%,
    85% 100%,
    80% 96%,
    75% 100%,
    70% 96%,
    65% 100%,
    60% 96%,
    55% 100%,
    50% 96%,
    45% 100%,
    40% 96%,
    35% 100%,
    30% 96%,
    25% 100%,
    20% 96%,
    15% 100%,
    10% 96%,
    5% 100%,
    0 96%
  );
}
.school-receipt strong {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px dashed #799395;
}
.school-receipt > div {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
}
.school-receipt p {
  margin-top: 15px;
  border-top: 1px dashed #799395;
  padding: 12px 0;
}
.shelves {
  display: flex;
  flex-direction: column;
  gap: 55px;
  padding-top: 25px;
  min-width: 0;
}
.shelf {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  gap: 25px;
  padding: 0 22px 18px;
  position: relative;
  perspective: 1000px;
  min-height: 220px;
}
.shelf:after {
  content: "";
  height: 18px;
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0;
  background: #164b56;
  box-shadow: 0 13px 14px #001b2499;
  transform: rotateX(18deg);
  z-index: 0;
}
.tool-box {
  position: relative;
  flex: 1;
  max-width: 160px;
  min-width: 0;
  height: 205px;
  color: var(--deep);
  padding: 15px 14px 17px;
  text-align: left;
  background: var(--cover);
  transform: rotateY(-14deg) rotateZ(var(--tilt, -2deg));
  transform-origin: center bottom;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 0.35s;
  box-shadow: 9px 5px 0 var(--spine);
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.tool-box:nth-child(2) {
  height: 240px;
  --tilt: 1deg;
}
.tool-box:nth-child(3) {
  height: 185px;
  --tilt: -1deg;
}
.tool-box img {
  position: absolute;
  width: 105px;
  height: 105px;
  object-fit: contain;
  left: calc(50% - 52.5px);
  top: 40px;
  transition: transform 0.35s;
}
.tool-box:before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid #123e4b25;
  pointer-events: none;
}
.tool-box .box-category {
  font:
    8px ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
  display: block;
  position: absolute;
  top: 14px;
  left: 14px;
  right: 35px;
}
.barcode {
  position: absolute;
  top: 13px;
  right: 12px;
  width: 17px;
  height: 13px;
  background: linear-gradient(
    90deg,
    #123e4b 2px,
    transparent 2px,
    #123e4b 3px,
    transparent 4px,
    #123e4b 6px,
    transparent 7px,
    #123e4b 9px,
    transparent 11px,
    #123e4b 13px,
    transparent 15px,
    #123e4b 16px
  );
}
.tool-box strong {
  font-size: 17px;
  line-height: 1.03;
  letter-spacing: -0.04em;
  position: relative;
  z-index: 2;
}
.tool-box .pick-up {
  position: absolute;
  bottom: -31px;
  left: 50%;
  transform: translate(-50%, 8px);
  white-space: nowrap;
  background: var(--gold);
  padding: 8px 14px;
  border-radius: 99px;
  font-size: 10px;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 5;
}
.tool-box:hover,
.tool-box:focus-visible {
  transform: translateY(-18px) rotateY(0) rotateZ(0);
  filter: brightness(1.05);
  z-index: 4;
}
.tool-box:hover img,
.tool-box:focus-visible img {
  transform: scale(1.08);
}
.tool-box:hover .pick-up,
.tool-box:focus-visible .pick-up {
  opacity: 1;
  transform: translate(-50%, 0);
}
.tool-box:active {
  transform: translateY(-10px) scale(0.97);
}
footer {
  padding: 40px 5%;
  background: var(--paper);
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  flex-wrap: wrap;
}
footer img {
  width: 140px;
}
footer p {
  color: var(--muted);
}
footer a {
  border-bottom: 1px solid var(--turquoise);
  padding: 8px 0;
}
footer > span {
  color: var(--muted);
}
dialog {
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  width: min(1200px, 94vw);
  max-height: 92svh;
  border-radius: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #031b24cc;
}
body.modal-open {
  overflow: hidden;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 25px;
  border-bottom: 1px solid #123e4b22;
  font:
    12px ui-monospace,
    monospace;
}
.dialog-top button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 28px;
}
.dialog-top button:hover {
  background: var(--gold);
}
.tool-detail {
  padding: 35px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}
.detail-preview {
  min-height: 430px;
  padding: 30px;
  position: relative;
  background: var(--petrol);
  color: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.detail-preview > span:first-child {
  font:
    11px ui-monospace,
    monospace;
  color: #b7d4d3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-preview > img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  align-self: center;
  margin: 20px;
  background: var(--cover);
  border-radius: 12px;
  padding: 15px;
  transform: rotate(-5deg);
  transition: transform 0.35s;
}
.detail-preview h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  letter-spacing: -0.05em;
  line-height: 1.04;
  margin: 8px 0 12px;
}
.detail-preview #detail-chapter {
  color: var(--gold);
  font:
    11px ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.detail-preview #detail-caption {
  font-size: 16px;
  line-height: 1.5;
  color: #c2d9d6;
}
.preview-footer {
  display: block;
  border-top: 2px solid var(--gold);
  padding-top: 15px;
  margin-top: 30px;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.04em;
  color: #c2d9d6;
}
.detail-intro {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.chapter {
  background: transparent;
  width: 100%;
  display: grid;
  grid-template-columns: 35px 1fr 20px;
  gap: 16px;
  text-align: left;
  padding: 25px 15px;
  border-top: 1px solid #123e4b30;
  color: var(--ink);
  transition: background 0.2s;
}
.chapter:last-child {
  border-bottom: 1px solid #123e4b30;
}
.chapter[aria-pressed="true"] {
  background: white;
}
.chapter:hover {
  background: #e1eee8;
}
.chapter > span {
  font:
    12px ui-monospace,
    monospace;
  padding-top: 5px;
}
.chapter strong {
  font-size: 23px;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 8px;
}
.chapter p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.chapter i {
  font-style: normal;
  color: #00817d;
}
.chapter[aria-pressed="true"] i {
  color: var(--deep);
  background: var(--gold);
  width: 21px;
  height: 21px;
  line-height: 21px;
  text-align: center;
  border-radius: 50%;
}
.detail-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 25px;
}
.opening {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--paper);
  animation: curtain-open 0.6s 1.35s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  pointer-events: none;
}
.opening-mark {
  width: 190px;
  height: 190px;
  overflow: hidden;
  position: relative;
  animation: mark-drop 1.3s cubic-bezier(0.2, 0.65, 0.25, 1) both;
}
.opening-mark img {
  position: absolute;
  max-width: none;
  width: 590px;
  left: -35px;
  top: -3px;
}
.opening p {
  font-size: 14px;
  margin-top: 28px;
  animation: intro-copy 0.6s 0.6s both;
}
.opening button {
  position: absolute;
  right: 5%;
  bottom: 40px;
  background: transparent;
  color: var(--gold);
  padding: 15px;
  pointer-events: auto;
}
.opening.is-dismissed {
  display: none;
}
.opening.is-active ~ .site-header,
.opening.is-active ~ main {
  pointer-events: none;
}
@keyframes mark-drop {
  0% {
    transform: translateY(-70vh) rotate(-30deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  58% {
    transform: translateY(22px) rotate(9deg);
  }
  78% {
    transform: translateY(-10px) rotate(-4deg);
  }
  100% {
    transform: translateY(0) rotate(0);
  }
}
@keyframes curtain-open {
  to {
    transform: translateY(-100%);
    visibility: hidden;
  }
}
@keyframes intro-copy {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes preview-change {
  from {
    opacity: 0.3;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.detail-preview.is-changing > div {
  animation: preview-change 0.35s both;
}
@media (min-width: 1600px) {
  .page {
    padding-left: max(5%, calc((100vw - 1600px) / 2));
    padding-right: max(5%, calc((100vw - 1600px) / 2));
  }
  .tool-box {
    max-width: 185px;
    height: 230px;
  }
  .tool-box:nth-child(2) {
    height: 260px;
  }
  .tool-box:nth-child(3) {
    height: 215px;
  }
  .tool-box img {
    width: 125px;
    height: 125px;
    left: calc(50% - 62.5px);
  }
}
@media (max-width: 1050px) {
  .site-header {
    padding: 0 4%;
    height: 80px;
  }
  .brand {
    width: 150px;
  }
  .site-header nav {
    gap: 20px;
  }
  .page {
    padding-left: 4%;
    padding-right: 4%;
  }
  .hero {
    gap: 4%;
  }
  .hero h1 {
    font-size: clamp(48px, 6.3vw, 70px);
  }
  .hero-arch {
    min-height: 660px;
  }
  .orbit {
    padding: 12px;
    font-size: 13px;
    gap: 7px;
  }
  .orbit img {
    width: 40px;
    height: 40px;
  }
  .arch-bottom strong {
    font-size: 23px;
  }
  .products {
    grid-template-columns: 0.7fr 1.3fr;
    gap: 5%;
  }
  .shelf {
    gap: 18px;
    padding: 0 15px 18px;
  }
  .tool-box {
    height: 190px;
    padding: 12px 10px;
  }
  .tool-box:nth-child(2) {
    height: 215px;
  }
  .tool-box:nth-child(3) {
    height: 170px;
  }
  .tool-box strong {
    font-size: 14px;
  }
  .tool-box img {
    width: 80px;
    height: 80px;
    left: calc(50% - 40px);
  }
  .story-stage {
    padding: 25px;
    min-height: 480px;
  }
  .story-label {
    left: 25px;
  }
  .editorial {
    gap: 4%;
    padding: 20px;
  }
  .tool-detail {
    gap: 25px;
    padding: 25px;
  }
}
@media (max-width: 760px) {
  html {
    scroll-padding-top: 116px;
  }
  .site-header {
    height: 116px;
    padding: 14px 5% 42px;
    flex-wrap: wrap;
  }
  .brand {
    width: 140px;
  }
  .login-link {
    padding: 9px 12px;
    font-size: 12px;
  }
  .login-link span {
    margin-left: 10px;
  }
  .site-header nav {
    position: absolute;
    bottom: 4px;
    left: 5%;
    right: 5%;
    justify-content: space-between;
    gap: 15px;
  }
  .site-header nav a {
    font-size: 13px;
    padding: 12px 0;
  }
  .page {
    padding: 50px 6%;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 25px;
    gap: 35px;
    padding-bottom: 70px;
    overflow: visible;
  }
  .hero-copy {
    padding: 0;
  }
  .hero h1 {
    font-size: clamp(46px, 10.6vw, 75px);
    margin: 20px 0;
  }
  .hero h1 br:nth-of-type(2) {
    display: none;
  }
  .hero .intro {
    font-size: 20px;
  }
  .body-copy {
    font-size: 15px;
  }
  .body-copy br {
    display: none;
  }
  .hero-arch {
    height: 610px;
    min-height: 0;
    max-width: 550px;
    width: 100%;
    justify-self: center;
  }
  .arch-brand {
    top: 35%;
  }
  .next-page {
    left: 6%;
    bottom: 25px;
    font-size: 11px;
  }
  .section-title h2 {
    font-size: clamp(36px, 8.8vw, 58px);
  }
  .section-title > p {
    font-size: 16px;
  }
  .editorial {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 15px;
  }
  .story-stage {
    min-height: 440px;
  }
  .story-frame p {
    font-size: 30px;
  }
  .editorial-copy {
    padding: 25px 10px;
  }
  .editorial-copy h3 {
    font-size: 32px;
  }
  .editorial-copy > p:not(.small-label) {
    font-size: 16px;
  }
  .about-note {
    gap: 20px;
    flex-direction: column;
  }
  .about-note p {
    font-size: 22px;
  }
  .products {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .tools-copy {
    position: static;
  }
  .tools-copy h2 {
    font-size: clamp(42px, 10vw, 65px);
  }
  .school-receipt {
    display: none;
  }
  .shelves {
    gap: 48px;
    padding: 15px 0;
  }
  .shelf {
    gap: 24px;
    padding: 0 15px 18px;
    min-height: 210px;
  }
  .tool-box {
    height: 200px;
    max-width: 150px;
  }
  .tool-box:nth-child(2) {
    height: 230px;
  }
  .tool-box:nth-child(3) {
    height: 180px;
  }
  .tool-box img {
    width: 90px;
    height: 90px;
    left: calc(50% - 45px);
  }
  .tool-box strong {
    font-size: 15px;
  }
  .tool-box .box-category {
    font-size: 7px;
  }
  .tool-box .pick-up {
    display: none;
  }
  footer {
    padding: 30px 6%;
    gap: 20px;
  }
  footer p {
    width: 100%;
  }
  .tool-detail {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 30px;
  }
  .detail-preview {
    min-height: 400px;
    padding: 24px;
  }
  .detail-preview h2 {
    font-size: 36px;
  }
  .dialog-top {
    padding: 10px 20px;
  }
  .chapter {
    padding: 22px 5px;
    gap: 10px;
    grid-template-columns: 28px 1fr 21px;
  }
  .chapter strong {
    font-size: 22px;
  }
  dialog {
    width: 94vw;
    max-height: 94svh;
  }
  .detail-left > .tag-button {
    margin-top: 15px;
  }
}
@media (max-width: 420px) {
  .shelf {
    gap: 17px;
    padding-left: 4px;
    padding-right: 4px;
  }
  .tool-box {
    height: 175px;
    padding: 10px 8px;
    box-shadow: 6px 4px 0 var(--spine);
  }
  .tool-box:nth-child(2) {
    height: 200px;
  }
  .tool-box:nth-child(3) {
    height: 160px;
  }
  .tool-box strong {
    font-size: 13px;
  }
  .tool-box img {
    width: 73px;
    height: 73px;
    left: calc(50% - 36.5px);
    top: 40px;
  }
  .tool-box .box-category {
    left: 10px;
    font-size: 6px;
  }
  .hero-arch {
    height: 540px;
  }
  .arch-bottom strong {
    font-size: 24px;
  }
  .orbit-one {
    left: 5%;
  }
  .orbit-two {
    right: 5%;
  }
  .story-stage {
    padding: 20px;
    min-height: 430px;
  }
  .story-label {
    left: 20px;
    font-size: 10px;
  }
  .story-mark {
    width: 85%;
  }
  .story-frame p {
    font-size: 28px;
  }
  .story-play {
    left: 20px;
  }
  .story-controls {
    left: 85px;
  }
  .story-frame > span {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .opening {
    display: none !important;
  }
  .reveal.is-waiting {
    opacity: 1;
    transform: none;
  }
  .tool-box:hover,
  .tool-box:focus-visible {
    transform: none;
  }
  .hero-arch:hover .orbit {
    transform: none;
  }
}

/* Hanging labels reveal a book's identity, as in the supplied recording. */
.shelf {
  transform: rotateY(var(--shelf-y, 0deg)) rotateX(var(--shelf-x, 0deg));
  transition: transform 0.25s ease-out;
  transform-style: preserve-3d;
}
.tool-box .pick-up {
  background: var(--paper);
  color: var(--ink);
  border-radius: 0;
  bottom: auto;
  top: -80px;
  left: 70%;
  width: 185px;
  padding: 18px;
  text-align: left;
  white-space: normal;
  box-shadow: 3px 5px 0 #001b2466;
  transform: translate(-50%, 15px) rotate(7deg);
  pointer-events: none;
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px);
}
.tool-box .pick-up:before {
  content: "";
  position: absolute;
  top: 8px;
  left: 9px;
  width: 5px;
  height: 5px;
  background: var(--petrol);
  border-radius: 50%;
}
.pick-up b {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.pick-up small {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  text-transform: uppercase;
  margin: 6px 0 15px;
  color: var(--muted);
}
.pick-up > span {
  display: block;
  background: var(--gold);
  padding: 7px 9px;
  font-size: 10px;
  float: right;
  border-radius: 20px;
}
.tool-box:hover .pick-up,
.tool-box:focus-visible .pick-up {
  transform: translate(-50%, 0) rotate(7deg);
}
@media (max-width: 760px) {
  .shelf {
    transform: none;
  }
  .tool-box .pick-up {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .shelf {
    transform: none !important;
  }
}

.footer-contact {
  font: inherit;
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--turquoise);
  padding: 8px 0;
}
.footer-contact:hover {
  color: #007f82;
}
.contact-layout {
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-layout h2 {
  font-size: 42px;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.contact-layout p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 20px;
}
.contact-layout form {
  display: grid;
  gap: 15px;
}
.contact-layout label {
  font-size: 13px;
  display: grid;
  gap: 7px;
}
.contact-layout input,
.contact-layout textarea {
  font: inherit;
  width: 100%;
  border: 1px solid #89a2a0;
  background: white;
  padding: 12px;
  color: var(--ink);
  border-radius: 5px;
}
.contact-layout form button {
  padding: 13px;
  background: #d8e3df;
  color: #536b70;
  border-radius: 5px;
}
.contact-layout form p {
  font-size: 12px;
  margin: 0;
}
@media (max-width: 760px) {
  .contact-layout {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }
  .contact-layout h2 {
    font-size: 34px;
  }
}
/* Keep the rightmost hanging label within the shelf's available width. */
.tool-box:nth-child(3) .pick-up {
  left: 25%;
}
dialog[open] {
  animation: preview-change 0.25s ease-out both;
}

/* Official MSE platform destinations. */
.ecosystem-platforms {
  padding: 100px max(6vw, 24px);
  background: #eff4f0;
  color: #123e4b;
}
.ecosystem-platforms h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 18px 0;
  letter-spacing: -0.04em;
}
.platforms-intro {
  max-width: 620px;
  line-height: 1.6;
}
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 42px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  background: #fffdf7;
  border: 1px solid #b7c9c3;
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: #009e9a;
}
.platform-card:focus-visible {
  outline: 3px solid #009e9a;
  outline-offset: 5px;
}
.platform-number {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.platform-card h3 {
  font-size: 30px;
  margin: 28px 0 12px;
}
.platform-card p {
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}
.platform-status {
  padding: 6px 10px;
  background: #fff0c9;
  border-radius: 30px;
  font-size: 12px;
  margin-bottom: 16px;
}
.platform-action {
  font-weight: 700;
  margin-top: auto;
}
.contact-layout form button {
  background: #123e4b;
  color: #fffdf7;
  cursor: pointer;
}
.contact-layout a {
  color: #123e4b;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .platform-card {
    padding: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform-card {
    transition: none;
  }
  .platform-card:hover {
    transform: none;
  }
}
