:root {
  --paper: #fbf8f1;
  --navy: #041421;
  --sea-glass: #a9d7c2;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--paper);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
}
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
::selection { background: var(--sea-glass); color: var(--navy); }

.lab-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  background: var(--navy);
}
.lab-main {
  min-height: calc(100svh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(340px, .72fr);
  align-items: stretch;
}
.lab-visual {
  position: relative;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
}
.pearl-oyster-animation {
  position: absolute;
  inset: 0;
  isolation: isolate;
}
.pearl-oyster-animation::before,
.pearl-oyster-animation::after {
  position: absolute;
  inset: 0;
  transform: scale(.985);
  transform-origin: center;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  pointer-events: none;
}
.pearl-oyster-animation::before {
  z-index: 0;
  background-image: url("/pearl-oyster-shell-plate.png");
}
.pearl-oyster-animation::after {
  z-index: 1;
  background-image: linear-gradient(112deg, rgba(104, 224, 231, .1) 18%, rgba(169, 215, 194, .7) 48%, rgba(246, 155, 182, .5) 67%, rgba(255, 242, 207, .08) 82%);
  -webkit-mask: url("/pearl-oyster-shell-shimmer-mask.png") center / contain no-repeat;
  mask: url("/pearl-oyster-shell-shimmer-mask.png") center / contain no-repeat;
  opacity: .055;
  animation: pearl-shell-shimmer 7.8s ease-in-out infinite alternate;
  will-change: opacity;
}
.pearl-oyster-animation canvas {
  position: absolute;
  z-index: 2;
  display: block;
  pointer-events: none;
}
@keyframes pearl-shell-shimmer {
  0%, 12% { opacity: .045; }
  58% { opacity: .13; }
  100% { opacity: .07; }
}
.lab-statement {
  position: relative;
  align-self: center;
  margin: 0 clamp(34px, 5vw, 78px);
  padding: clamp(32px, 4vw, 58px) 0 clamp(36px, 4.4vw, 64px);
}
.lab-terminal-label {
  margin: 0 0 clamp(30px, 3.5vw, 50px);
  color: rgba(169, 215, 194, .66);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: lowercase;
}
.lab-statement h1 { max-width: 520px; margin: 0; font-weight: 500; }
.lab-statement h1 > span {
  display: block;
  color: var(--sea-glass);
  font-size: clamp(42px, 4.15vw, 66px);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: .94;
}
.lab-statement h1 em {
  display: block;
  max-width: 440px;
  margin-top: clamp(25px, 2.6vw, 38px);
  color: rgba(244, 240, 230, .78);
  font-size: clamp(14px, 1.25vw, 18px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.62;
}
.lab-statement h1 em > span:first-child { color: var(--sea-glass); }
.lab-cursor {
  margin-left: .12em;
  color: var(--sea-glass);
  animation: lab-cursor-blink 1.1s steps(1, end) infinite;
}
@keyframes lab-cursor-blink { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }
.lab-footer {
  min-height: 72px;
  padding: 24px clamp(24px, 3vw, 48px);
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(244, 240, 230, .1);
  color: rgba(244, 240, 230, .42);
  font-size: 10px;
  letter-spacing: .035em;
}

@media (max-width: 900px) {
  .lab-shell { overflow: visible; }
  .lab-main { min-height: auto; grid-template-columns: 1fr; }
  .lab-visual { min-height: clamp(390px, 70vw, 580px); }
  .lab-statement { margin: 0 20px; padding: 54px 0 62px; }
  .lab-statement h1 { max-width: 620px; }
  .lab-statement h1 > span { font-size: clamp(46px, 9vw, 68px); }
  .lab-statement h1 em { max-width: 540px; font-size: clamp(15px, 2.5vw, 18px); }
  .lab-footer { min-height: 64px; padding: 22px 20px; }
}

@media (max-width: 520px) {
  .lab-visual { min-height: 360px; }
  .pearl-oyster-animation::after { animation-duration: 10.5s; }
  .lab-statement { padding: 44px 0 52px; }
  .lab-terminal-label { margin-bottom: 28px; font-size: 10px; }
  .lab-statement h1 > span { font-size: clamp(40px, 12vw, 54px); }
  .lab-statement h1 em { margin-top: 24px; font-size: 14px; line-height: 1.55; }
}

@media (prefers-reduced-motion: reduce) {
  .pearl-oyster-animation::after { animation: none; opacity: .06; }
  .lab-cursor { animation: none; }
}
