/* A Latin subset of the exact production Inter file, with the original optical-size
   and weight axes. Other glyphs fall through to the existing production font face. */
@font-face {
  font-family: Inter;
  src: url("./inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD;
}
html { scrollbar-gutter: stable; }
.kgc-control-slot { display: block; width: 44px; height: 44px; flex: 0 0 44px; }
@media (prefers-reduced-motion: reduce) { .kgc-control-slot { display: none; } }
/* KiraGen's existing shell supplies the wordmark, typefaces, buttons and chapter rail. */
.hero[data-kg-corridor] {
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: stretch;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  max-height: none;
  background: #09080e;
}
.kgc-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  z-index: -2;
  pointer-events: none;
}
.kgc-camera, .kgc-poster, .kgc-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.kgc-camera { transform-origin: 57% 46%; }
.kgc-film {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 177.68332cqh);
  aspect-ratio: 1672 / 941;
  /* Slide the registered plate right as horizontal cropping increases. The last
     bound leaves the far edge of the cobalt cell inside nearly square viewports. */
  --kgc-crop-offset: max(0px, min(7cqw, calc(39.98cqh - 22.5cqw), calc(46.8cqw - 44.25cqh)));
  transform: translate(calc(-50% + var(--kgc-crop-offset)), -50%);
}
.kgc-poster, .kgc-poster img { display: block; }
.kgc-poster img { object-fit: cover; }
.kgc-life {
  position: absolute;
  left: 35.88517%;
  top: 0;
  width: 54.54545%;
  height: 76.51435%;
  display: block;
  object-fit: fill;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
  --kgc-matte: url("./wide-matte.png?v=3.1");
}
/* Fetch the fitted alpha matte only with playback. A stationary region has no
   video contribution, including the ECM under the T cell and the patch borders. */
[data-kg-film] .kgc-life {
  -webkit-mask: var(--kgc-matte) center / 100% 100% no-repeat;
  mask: var(--kgc-matte) center / 100% 100% no-repeat;
}
[data-kg-frame] .kgc-life { opacity: 1; }
[data-kg-grade] .kgc-life { filter: url(#kgc-shadow-match); }
.kgc-motes {
  position: absolute;
  left: 48.3%;
  top: 22.1%;
  width: 18.8%;
  height: 25.2%;
  visibility: hidden;
  pointer-events: none;
}
.kgc-motes canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-kg-ambient] .kgc-motes { visibility: visible; }
/* The individual scale composes with the native-scroll transform on the camera.
   The opening move settles at its end. It never cuts back to the first frame. */
[data-kg-ambient] .kgc-camera {
  animation: kgc-approach 10s cubic-bezier(.2,.46,.43,1) both paused;
}
@keyframes kgc-approach { from { scale: 1; } to { scale: 1.01; } }
[data-kg-ambient] .kgc-motes canvas:first-child {
  animation: kgc-far-drift 24s ease-in-out -5s infinite alternate both paused;
}
[data-kg-ambient] .kgc-motes canvas:last-child {
  animation: kgc-near-drift 17s ease-in-out -3s infinite alternate both paused;
}
@keyframes kgc-far-drift {
  from { transform: translate3d(-1.5%,1%,0); }
  to   { transform: translate3d(1.3%,-1.4%,0); }
}
@keyframes kgc-near-drift {
  from { transform: translate3d(-2.8%,.9%,0); }
  to   { transform: translate3d(2%,-2.5%,0); }
}
[data-kg-ambient][data-kg-moving] .kgc-camera,
[data-kg-ambient][data-kg-moving] .kgc-motes canvas { animation-play-state: running; }
[data-kg-moving] .kgc-camera { will-change: transform; }
.hero[data-kg-corridor] .hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg,rgba(5,7,13,.49),rgba(4,6,13,.32) 31%,rgba(4,6,13,.08) 45%,transparent 60%),
    linear-gradient(0deg,rgba(4,6,13,.73),transparent 16%,transparent 78%,rgba(4,6,13,.28));
}
@media (min-aspect-ratio: 10001/10000) and (max-aspect-ratio: 17/10) {
  .hero[data-kg-corridor] .hero-shade {
    background:
      linear-gradient(90deg,rgba(5,8,15,.67),rgba(5,8,15,.55) 25%,rgba(5,8,15,.34) 38%,rgba(5,8,15,.08) 48%,transparent 54%),
      linear-gradient(0deg,rgba(4,6,13,.73),transparent 16%,transparent 78%,rgba(4,6,13,.28));
  }
}
.hero[data-kg-corridor] .hero-main {
  align-items: center;
  padding-block: calc(var(--header) + clamp(18px,3.6svh,40px)) clamp(28px,6svh,60px);
}
.hero[data-kg-corridor] .hero-copy { width: min(43rem,54%); }
.hero[data-kg-corridor] h1 { font-size: clamp(4.25rem,6.35vw,7.1rem); line-height: .97; letter-spacing: -.058em; }
.hero[data-kg-corridor] h1 em { letter-spacing: -.056em; }
.hero[data-kg-corridor] .eyebrow { color: #e3e5ef; margin-bottom: clamp(17px,2.6svh,28px); }
.hero[data-kg-corridor] .hero-copy > p {
  max-width: 33ch;
  margin: clamp(20px,2.8svh,30px) 0 clamp(21px,3svh,32px);
  color: #edf0f5;
}
.kgc-actions { display: flex; flex-wrap: wrap; gap: 8px clamp(16px,1.7vw,28px); align-items: center; }
.kgc-science-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 520;
  color: #f3f5f8;
  text-decoration-line: underline;
  text-decoration-color: #c2c8d2;
  text-decoration-thickness: 1px;
  text-underline-offset: .37em;
}
.kgc-science-link:hover { color: var(--ice); text-decoration-color: currentColor; }
.hero[data-kg-corridor] .hero-foot {
  position: relative;
  inset: auto;
  min-height: clamp(58px,7.4svh,76px);
  padding-bottom: env(safe-area-inset-bottom,0px);
  z-index: 1;
}
.kgc-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 50%;
  color: #dce5ed;
  cursor: pointer;
}
.kgc-toggle[hidden] { display: none; }
.kgc-toggle > span {
  display: grid; place-items: center;
  width: 28px; height: 28px; border: 1px solid #ffffff50; border-radius: 50%;
}
.kgc-toggle > span::before {
  content: ""; width: 7px; height: 8px;
  border-inline: 2px solid currentColor; box-sizing: border-box;
}
.kgc-toggle[data-paused] > span::before {
  margin-left: 2px;
  width: 0; height: 0; border: 0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 7px solid currentColor;
}
.kgc-toggle:hover > span { border-color: var(--ice); color: var(--ice); }
[data-kg-corridor] :focus-visible { outline: 2px solid #bce5ff; outline-offset: 4px; }

@media (max-aspect-ratio: 1/1) {
  .kgc-camera { transform-origin: 57% 63%; }
  .kgc-film { width: max(100cqw,56.27990cqh); aspect-ratio: 941 / 1672; --kgc-crop-offset: 0px; }
  .kgc-motes { left: 28.3%; top: 46.5%; width: 37.2%; height: 14.4%; }
  .kgc-life { left: 0; top: 37.79904%; width: 95.85547%; height: 45.33493%; --kgc-matte: url("./portrait-matte.png?v=3.1"); }
  .hero[data-kg-corridor] .hero-shade {
    background: linear-gradient(180deg,rgba(4,6,12,.19),transparent 18%,transparent 81%,rgba(4,6,12,.65)),
                linear-gradient(110deg,rgba(5,7,13,.3),transparent 65%);
  }
  .hero[data-kg-corridor] .hero-main {
    align-items: flex-start;
    padding-block: calc(var(--header) + clamp(20px,4.2svh,62px)) clamp(12.5rem,38svh,34rem);
  }
  .hero[data-kg-corridor] .hero-copy { width: 100%; max-width: 42rem; }
  .hero[data-kg-corridor] h1 { font-size: clamp(3.05rem,12.6vw,6.55rem); line-height: .98; }
  .hero[data-kg-corridor] .eyebrow { margin-bottom: clamp(12px,1.9svh,23px); }
  .hero[data-kg-corridor] .hero-copy > p {
    max-width: 31ch; margin: clamp(13px,1.9svh,23px) 0 clamp(13px,1.8svh,22px);
    font-size: clamp(1rem,2.9vw,1.25rem); line-height: 1.47;
  }
  .hero[data-kg-corridor] .hero-foot { min-height: 55px; }
}
@media (max-width: 430px) {
  .kgc-actions { gap: 6px 15px; }
  .kgc-actions .button { padding-inline: 17px; }
  .kgc-science-link { font-size: .875rem; }
  .hero[data-kg-corridor] .hero-index { gap: 5px; }
  .hero[data-kg-corridor] .ticks a { width: 10px; }
}
@media (max-height: 590px) and (min-aspect-ratio: 1/1) {
  .hero[data-kg-corridor] .hero-main { padding-block: calc(var(--header) + 12px) 13px; }
  .hero[data-kg-corridor] .eyebrow { margin-bottom: 9px; }
  .hero[data-kg-corridor] h1 { font-size: clamp(3.05rem,6.5vw,4.8rem); }
  .hero[data-kg-corridor] .hero-copy > p { margin: 11px 0; font-size: 1rem; line-height: 1.4; }
  .hero[data-kg-corridor] .hero-foot { min-height: 45px; }
}
@supports not (width: 1cqw) {
  .kgc-film { position: absolute; inset: 0; width: 100%; height: 100%; transform: none; }
  .kgc-life { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .kgc-camera { transform: none !important; scale: none !important; will-change: auto !important; }
  .kgc-life, .kgc-toggle, .kgc-motes { display: none !important; }
}
@media (max-height: 660px) and (max-aspect-ratio: 1/1) {
  .hero[data-kg-corridor] .hero-main {
    padding-block: calc(var(--header) + 12px) clamp(7rem,23svh,9.5rem);
  }
  .hero[data-kg-corridor] h1 { font-size: clamp(2.8rem,11.8vw,3.5rem); }
  .hero[data-kg-corridor] .hero-copy > p { margin: 10px 0 11px; }
}
@media (max-width: 360px) {
  .hero[data-kg-corridor] .kgc-actions { gap: 5px 12px; }
  .hero[data-kg-corridor] .kgc-actions .button { padding-inline: 12px; font-size: .855rem; }
  .hero[data-kg-corridor] .kgc-science-link { font-size: .835rem; }
  .hero[data-kg-corridor] .hero-index { gap: 2px; }
  .hero[data-kg-corridor] .ticks a { width: 7px; }
  .hero[data-kg-corridor] .scroll-cue { gap: 6px; font-size: .73rem; }
}
@media (max-height: 440px) and (min-aspect-ratio: 1/1) {
  .hero[data-kg-corridor] .hero-main { padding-block: calc(var(--header) + 8px) 6px; }
  .hero[data-kg-corridor] h1 { font-size: clamp(2.75rem,5.95vw,3.6rem); }
  .hero[data-kg-corridor] .hero-copy > p { max-width: 43ch; margin: 7px 0 9px; line-height: 1.35; }
}
