.route-hatching {
  background: #050707;
}

.route-hatching #main-content {
  padding-top: 78px;
}

.hatching-page {
  --hatching-ink: #070909;
  --hatching-panel: #111414;
  --hatching-bone: #eee8df;
  --hatching-muted: #aaa49a;
  --hatching-brass: #c0a273;
  --hatching-line: rgba(210, 188, 149, .24);
  min-height: calc(100svh - 78px);
  padding: 0 !important;
  background:
    radial-gradient(circle at 50% 0%, rgba(95, 103, 96, .12), transparent 44%),
    #050707;
  color: var(--hatching-bone);
  font-family: var(--body);
}

.hatching-app,
.hatching-stage {
  min-height: calc(100svh - 78px);
}

.hatching-stage {
  position: relative;
  display: grid;
  align-items: center;
  opacity: 1;
  transition: opacity .52s ease;
}

.hatching-stage.is-entering,
.hatching-stage.is-leaving,
.hatching-video-stage.is-fading {
  opacity: 0;
}

.hatching-opening {
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hatching-opening::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0 65%, rgba(4, 5, 5, .84)),
    radial-gradient(ellipse at 50% 62%, rgba(155, 133, 94, .12), transparent 42%);
  pointer-events: none;
}

.hatching-opening-copy {
  position: relative;
  z-index: 1;
  width: min(840px, calc(100% - 40px));
}

.hatching-opening h1,
.hatching-question-panel h1,
.hatching-name-form h1,
.hatching-ack h1,
.hatching-record-copy h1,
.hatching-bridge h2,
.hatching-modal-card h2 {
  margin: 0;
  font-family: var(--roman);
  font-weight: 500;
}

.hatching-opening h1 {
  color: var(--hatching-brass);
  font-size: clamp(3rem, 8.6vw, 7.6rem);
  letter-spacing: .13em;
  line-height: .9;
}

.hatching-opening p {
  margin: 32px 0 0;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3.6vw, 3.2rem);
  line-height: 1.1;
}

.hatching-opening-reveal,
.hatching-begin {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 1.45s ease, transform 1.45s ease;
}

.hatching-opening.is-revealed .hatching-opening-reveal,
.hatching-opening.is-begin-ready .hatching-begin {
  opacity: 1;
  transform: none;
}

.hatching-opening.is-begin-ready .hatching-begin {
  transition-duration: .82s;
}

.hatching-begin:disabled {
  pointer-events: none;
}

.hatching-narrative {
  place-items: center;
  padding: clamp(40px, 8vw, 96px);
  background: #050707;
  text-align: center;
}

.hatching-narrative > div {
  width: min(880px, 100%);
}

.hatching-narrative-line {
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  color: var(--hatching-bone);
  font-family: var(--display);
  font-size: clamp(1.8rem, 4.2vw, 3.65rem);
  line-height: 1.12;
  transition: opacity .82s ease, transform .82s ease;
}

.hatching-narrative-line + .hatching-narrative-line {
  margin-top: clamp(20px, 3vh, 34px);
}

.hatching-narrative.is-first-visible .hatching-narrative-line-1,
.hatching-narrative.is-second-visible .hatching-narrative-line-2 {
  opacity: 1;
  transform: none;
}

.hatching-primary,
.hatching-secondary,
.hatching-choice,
.hatching-bridge a,
.hatching-sound,
.hatching-play {
  min-height: 48px;
  border-radius: 0;
  font: 500 .76rem/1.2 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .24s ease, background .24s ease, color .24s ease, transform .24s ease;
}

.hatching-primary,
.hatching-secondary,
.hatching-bridge a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid var(--hatching-brass);
  text-decoration: none;
}

.hatching-primary,
.hatching-bridge a:first-child {
  background: var(--hatching-brass);
  color: #11110f;
}

.hatching-secondary,
.hatching-bridge a:last-child {
  background: transparent;
  color: var(--hatching-bone);
}

.hatching-begin {
  margin-top: 42px;
  min-width: 150px;
}

.hatching-primary:hover,
.hatching-primary:focus-visible,
.hatching-bridge a:first-child:hover,
.hatching-bridge a:first-child:focus-visible {
  background: #dec695;
  transform: translateY(-1px);
}

.hatching-secondary:hover,
.hatching-secondary:focus-visible,
.hatching-bridge a:last-child:hover,
.hatching-bridge a:last-child:focus-visible,
.hatching-choice:hover,
.hatching-choice:focus-visible {
  border-color: rgba(222, 198, 149, .88);
  background: rgba(222, 198, 149, .08);
  color: #fff;
}

.hatching-primary:focus-visible,
.hatching-secondary:focus-visible,
.hatching-choice:focus-visible,
.hatching-bridge a:focus-visible,
.hatching-sound:focus-visible,
.hatching-play:focus-visible,
.hatching-name-form input:focus-visible {
  outline: 3px solid rgba(240, 207, 145, .72);
  outline-offset: 4px;
}

.hatching-question-stage {
  grid-template-columns: minmax(0, 1.32fr) minmax(360px, .68fr);
  min-height: 100svh;
}

.hatching-still {
  position: relative;
  align-self: stretch;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  background: #0a0c0b;
}

.hatching-still::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset -80px 0 100px rgba(5, 7, 7, .42);
  pointer-events: none;
}

.hatching-still img {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: contain;
  object-position: center;
  background: #090b0a;
}

.hatching-still-motion img {
  animation: hatching-forward 13s ease-out both;
}

@keyframes hatching-forward {
  from { transform: scale(1); }
  to { transform: scale(1.025); }
}

.hatching-question-panel {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

.hatching-question-panel h1,
.hatching-name-form h1 {
  font-family: var(--display);
  font-size: clamp(2.45rem, 4vw, 4.75rem);
  letter-spacing: -.015em;
  line-height: .98;
}

.hatching-choices {
  display: grid;
  gap: 12px;
  margin-top: 38px;
}

.hatching-choice {
  width: 100%;
  min-height: 64px;
  padding: 16px 18px;
  border: 1px solid var(--hatching-line);
  background: rgba(17, 20, 20, .7);
  color: var(--hatching-bone);
  font-size: .86rem;
  letter-spacing: .04em;
  line-height: 1.42;
  text-align: left;
  text-transform: none;
}

.hatching-choice-only {
  place-items: center;
  background:
    linear-gradient(rgba(5, 7, 7, .78), rgba(5, 7, 7, .96)),
    radial-gradient(circle at 50% 35%, rgba(178, 154, 112, .18), transparent 44%);
}

.hatching-choice-only .hatching-question-panel {
  width: min(760px, calc(100% - 40px));
  text-align: center;
}

.hatching-choice-only .hatching-choices {
  max-width: 620px;
  margin-inline: auto;
  margin-top: 42px;
}

.hatching-video-stage {
  min-height: 100svh;
  place-items: center;
  background: #020303;
}

.hatching-video-wrap {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  background: #020303;
}

.hatching-video {
  display: block;
  width: 100%;
  height: 100svh;
  object-fit: contain;
  background: #020303;
}

.hatching-sound {
  position: absolute;
  top: max(18px, env(safe-area-inset-top));
  right: max(18px, env(safe-area-inset-right));
  z-index: 4;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(239, 231, 218, .34);
  background: rgba(3, 4, 4, .7);
  color: #f3eee7;
  backdrop-filter: blur(8px);
}

.hatching-play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 68px;
  height: 68px;
  min-height: 68px;
  border: 1px solid rgba(239, 231, 218, .52);
  border-radius: 50%;
  background: rgba(3, 4, 4, .76);
  color: #fff;
  transform: translate(-50%, -50%);
}

.hatching-play[hidden] {
  display: none;
}

.hatching-video-stage.is-holding .hatching-sound {
  opacity: 0;
  pointer-events: none;
}

.hatching-naming,
.hatching-ack {
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(177, 151, 107, .12), transparent 36%),
    #050707;
}

.hatching-name-form {
  width: min(650px, calc(100% - 40px));
  text-align: center;
}

.hatching-name-form input {
  display: block;
  width: 100%;
  height: 64px;
  margin: 42px 0 0;
  padding: 0 18px;
  border: 0;
  border-bottom: 1px solid rgba(222, 198, 149, .52);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 500 clamp(1.45rem, 3vw, 2rem)/1 var(--display);
  text-align: center;
}

.hatching-name-form input::placeholder {
  color: rgba(229, 222, 210, .48);
}

.hatching-name-form input[aria-invalid="true"] {
  border-color: #d69385;
}

.hatching-name-form .hatching-primary {
  margin-top: 24px;
}

.hatching-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #e2a99d;
  font-size: .84rem;
}

.hatching-ack {
  text-align: center;
}

.hatching-ack h1 {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: .85;
}

.hatching-ack p {
  margin: 28px 0 0;
  color: var(--hatching-muted);
  font-family: var(--display);
  font-size: clamp(1.65rem, 3.4vw, 2.8rem);
}

.hatching-ack-continuity {
  opacity: 0;
  transform: translateY(7px);
  transition: opacity .8s ease, transform .8s ease;
}

.hatching-ack.is-continuing .hatching-ack-continuity {
  opacity: 1;
  transform: none;
}

.hatching-record-stage {
  display: block;
  min-height: 100svh;
  background: #090b0b;
}

.hatching-record {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(430px, 2fr);
  min-height: 100svh;
  opacity: 0;
  transition: opacity .9s ease;
}

.hatching-record.is-visible {
  opacity: 1;
}

.hatching-record-image {
  display: grid;
  min-height: 100svh;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background: #050707;
}

.hatching-record-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100svh;
  object-fit: contain;
  object-position: center;
  background: #050707;
}

.hatching-record-copy {
  align-self: center;
  width: min(560px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
}

.hatching-kicker {
  margin: 0 0 12px;
  color: var(--hatching-brass);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
}

.hatching-record-copy h1 {
  color: var(--hatching-muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: .2em;
}

.hatching-record-name {
  margin: 34px 0 0;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(4.1rem, 7.2vw, 7.6rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: .76;
}

.hatching-record-element {
  margin: 22px 0 0;
  color: #d9c7a7;
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
}

.hatching-record-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 42px 0 0;
  padding: 26px 0;
  border-top: 1px solid var(--hatching-line);
  border-bottom: 1px solid var(--hatching-line);
}

.hatching-record-details dt {
  color: var(--hatching-muted);
  font-size: .64rem;
  letter-spacing: .18em;
}

.hatching-record-details dd {
  margin: 9px 0 0;
  font-family: var(--display);
  font-size: 1.28rem;
  line-height: 1.1;
}

.hatching-observation {
  margin: 32px 0 0;
  color: #ddd5ca;
  font-family: var(--display);
  font-size: clamp(1.32rem, 1.9vw, 1.7rem);
  line-height: 1.42;
}

.hatching-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hatching-status {
  min-height: 20px;
  margin: 16px 0 0;
  color: #cbbda6;
  font-size: .78rem;
}

.hatching-bridge {
  padding: clamp(84px, 10vw, 150px) 24px;
  border-top: 1px solid rgba(210, 188, 149, .18);
  background:
    radial-gradient(circle at 50% 0%, rgba(161, 126, 77, .1), transparent 46%),
    #030404;
  text-align: center;
}

.hatching-bridge > p:first-child {
  margin: 0;
  color: var(--hatching-brass);
  font-size: .72rem;
  letter-spacing: .23em;
}

.hatching-bridge h2 {
  margin-top: 22px;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .9;
}

.hatching-bridge h2 + p {
  margin: 26px 0 0;
  color: var(--hatching-muted);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.hatching-bridge > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 38px;
}

.hatching-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(10px);
}

.hatching-modal[hidden] {
  display: none;
}

.hatching-modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100svh - 48px);
  overflow: auto;
  padding: clamp(30px, 5vw, 52px);
  border: 1px solid var(--hatching-line);
  background: #111414;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .54);
  text-align: center;
}

.hatching-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--hatching-muted);
  font: 300 2rem/1 var(--body);
  cursor: pointer;
}

.hatching-modal-close:hover,
.hatching-modal-close:focus-visible {
  color: #fff;
}

.hatching-modal-close:focus-visible {
  outline: 3px solid rgba(240, 207, 145, .72);
  outline-offset: 2px;
}

.hatching-modal-card h2 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1;
}

.hatching-modal-card > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.hatching-share-modal .hatching-modal-card {
  width: min(480px, 100%);
}

.hatching-share-modal img {
  display: block;
  width: min(300px, 100%);
  aspect-ratio: 4 / 5;
  margin: 24px auto 0;
  object-fit: contain;
  background: #050606;
  box-shadow: 0 14px 48px rgba(0, 0, 0, .42);
}

@media (max-width: 960px) {
  .hatching-question-stage {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .hatching-still {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hatching-still::after {
    box-shadow: inset 0 -54px 70px rgba(5, 7, 7, .38);
  }

  .hatching-still img {
    min-height: 0;
    object-fit: contain;
  }

  .hatching-question-panel {
    width: min(680px, calc(100% - 40px));
    padding: 44px 0 64px;
  }

  .hatching-record {
    grid-template-columns: 1fr;
  }

  .hatching-record-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .hatching-record-image img {
    max-height: none;
    object-fit: contain;
  }

  .hatching-record-copy {
    width: min(680px, calc(100% - 40px));
    padding: 54px 0 72px;
  }
}

@media (max-width: 600px) {
  .hatching-opening h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
    letter-spacing: .1em;
  }

  .hatching-opening p {
    margin-top: 24px;
  }

  .hatching-question-panel h1,
  .hatching-name-form h1 {
    font-size: clamp(2.35rem, 11vw, 3.4rem);
  }

  .hatching-question-panel {
    padding-top: 34px;
  }

  .hatching-choice {
    min-height: 60px;
  }

  .hatching-choice-only .hatching-question-panel {
    width: calc(100% - 34px);
  }

  .hatching-video-wrap,
  .hatching-video {
    min-height: 100svh;
    height: auto;
  }

  .hatching-video {
    max-height: 100svh;
    object-fit: contain;
  }

  .hatching-still,
  .hatching-record-image {
    aspect-ratio: auto;
  }

  .hatching-still img,
  .hatching-record-image img {
    height: auto;
    min-height: 0;
  }

  .hatching-record-copy {
    padding-top: 46px;
  }

  .hatching-record-name {
    font-size: clamp(3.6rem, 18vw, 5.8rem);
  }

  .hatching-record-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hatching-record-actions,
  .hatching-record-actions button,
  .hatching-bridge > div,
  .hatching-bridge a,
  .hatching-modal-card > div,
  .hatching-modal-card button {
    width: 100%;
  }

  .hatching-modal {
    padding: 16px;
  }

  .hatching-modal-card {
    max-height: calc(100svh - 32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hatching-stage,
  .hatching-opening-reveal,
  .hatching-begin,
  .hatching-record {
    transition-duration: .01ms;
  }

  .hatching-still-motion img {
    animation: none;
  }
}
