@font-face {
  font-family: K4GTM;
  src: url("../assets/dm-sans-400.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: K4GTM;
  src: url("../assets/dm-sans-500.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}
k4-gtm {
  display: block;
  color: #171819;
  font:
    400 16px/24px K4GTM,
    "Arial",
    sans-serif;
  --paper: #f7f6f2;
  --ink: #171819;
  --blue: #315bff;
}
k4-gtm * {
  box-sizing: border-box;
}
.kg-film {
  height: 100svh;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background-color: var(--paper);
}
.kg-brand {
  position: absolute;
  z-index: 3;
  top: 30px;
  left: 48px;
  width: 120px;
  height: auto;
}
.kg-stage {
  position: absolute;
  inset: 204px 0 96px;
}
.kg-stage > svg {
  height: 100%;
  width: 100%;
  display: block;
  overflow: visible;
  font-family: K4GTM, sans-serif;
}
.kg-title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  text-align: center;
  pointer-events: none;
  padding: 24px;
}
.kg-title h1 {
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.055em;
  margin: 0;
}
.kg-title span {
  display: block;
  color: var(--blue);
}
.kg-narration {
  position: absolute;
  top: 108px;
  left: 24px;
  right: 24px;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.kg-caption {
  max-width: 960px;
  margin: auto;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.035em;
}
.kg-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  color: #494b50;
}
.kg-controls button {
  background: transparent;
  border: 0;
  border-radius: 0;
  width: 48px;
  height: 48px;
  padding: 14px;
  color: inherit;
  cursor: pointer;
}
.kg-controls button svg {
  width: 20px;
  height: 20px;
  display: block;
}
.kg-controls button:focus-visible,
.kg-seek:focus-visible {
  outline: 2px solid #171819;
  outline-offset: 3px;
}
.kg-track {
  position: relative;
  display: flex;
  align-items: center;
}
.kg-seek {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  width: 192px;
  height: 40px;
  cursor: pointer;
  --progress: 0%;
}
.kg-seek::-webkit-slider-runnable-track {
  height: 2px;
  background: linear-gradient(
    to right,
    #171819 var(--progress),
    #cbcdc7 var(--progress)
  );
}
.kg-seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  width: 7px;
  height: 7px;
  background: #171819;
  border-radius: 50%;
  margin-top: -2.5px;
}
.kg-seek::-moz-range-track {
  height: 2px;
  background: #cbcdc7;
}
.kg-seek::-moz-range-progress {
  height: 2px;
  background: #171819;
}
.kg-seek::-moz-range-thumb {
  border: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #171819;
}
.kg-time {
  font:
    400 11px/24px K4GTM,
    sans-serif;
  font-variant-numeric: tabular-nums;
  min-width: 33px;
  opacity: 0.7;
}
.kg-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
@media (hover: hover) {
  .kg-controls button:hover {
    background: #171819;
    color: #f7f6f2;
  }
}
@media (max-width: 820px) {
  .kg-brand {
    left: 24px;
    top: 24px;
    width: 108px;
  }
  .kg-stage {
    inset: 204px 0 84px;
  }
  .kg-title h1 {
    font-size: clamp(40px, 8.5vw, 68px);
  }
  .kg-narration {
    top: 108px;
    left: 24px;
    right: 24px;
  }
  .kg-caption {
    font-size: 26px;
    line-height: 30px;
    max-width: 520px;
  }
  .kg-controls {
    gap: 6px;
    bottom: 18px;
  }
  .kg-seek {
    width: 156px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .kg-film * {
    transition: none !important;
    animation: none !important;
  }
}

.kg-narration .kg-caption span {
  display: block;
  color: var(--blue);
}
.kg-closing .kg-caption {
  line-height: 1.06;
  letter-spacing: -0.05em;
  max-width: 1100px;
}
.kg-cta {
  visibility: hidden;
  opacity: 0;
  display: inline-flex;
  align-items: center;
  gap: 36px;
  margin-top: 36px;
  padding: 0 24px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: var(--blue);
  color: var(--paper);
  font:
    500 16px/24px K4GTM,
    sans-serif;
  pointer-events: auto;
}
.kg-cta {
  text-decoration: none;
  justify-content: center;
  cursor: pointer;
}
.kg-cta:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
k4-gtm[hide-brand] .kg-brand {
  display: none;
}
@media (max-width: 820px) {
  .kg-closing .kg-caption {
    font-size: 46px;
    line-height: 1.06;
  }
  .kg-cta {
    margin-top: 24px;
  }
}

.kg-closing .kg-caption span {
  white-space: nowrap;
}
.kg-closing .kg-caption .kg-final-first {
  color: var(--ink);
}

.kg-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Only the two moving composition layers need compositor promotion. */
.kg-narration,
.kg-stage {
  will-change: transform, opacity;
}

/* Controls recede once the reader has moved into the next section. */
k4-gtm.kg-away .kg-controls {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
