* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto auto;
  min-block-size: 100vh;
  min-block-size: 100svh;
  margin: 0;
  background: #f5f5f1;
  color: #112236;
  font: 1rem/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
.about:focus-visible {
  outline: 3px solid #b84f1e;
  outline-offset: 4px;
}

.mast a:focus-visible,
.mast button:focus-visible { outline-color: #ff9a66; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 24px;
  padding: 12px 20px;
  background: #112236;
  color: #fff;
  z-index: 1;
}

.skip-link:focus { top: 12px; }

.rail {
  width: min(89%, 1530px);
  margin-inline: auto;
}

.mast {
  display: grid;
  grid-template-rows: auto minmax(min-content, 1fr);
  background: #070e15;
  color: #fff;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-block-size: clamp(3.25rem, 8svh, 4.5rem);
  border-bottom: 1px solid #ffffff22;
}

.brand { display: flex; align-items: center; min-block-size: 44px; }
.brand img { display: block; width: clamp(8rem, 15vw, 11rem); max-width: 100%; }

.login {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-block-size: 44px;
  padding-inline: .25rem;
  color: #f1f4f6;
  font-size: .9375rem;
  font-weight: 600;
}

.login span { color: #ff8546; }
.login:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(.75rem, 2.5vw, 2.5rem);
  padding-block: clamp(.75rem, 2svh, 1.5rem);
}

.copy { align-self: center; }

h1 {
  margin: 0 0 .25em;
  font-size: clamp(2.25rem, min(5.5vw, 8.2svh), 5.25rem);
  font-weight: 570;
  line-height: 1.02;
  letter-spacing: -.055em;
  text-wrap: balance;
}

h1 span { display: block; }
.period { color: #ff793d; font-style: normal; }

.copy p {
  max-inline-size: 39ch;
  margin: 0 0 .8em;
  color: #c4ced5;
  font-size: clamp(.9375rem, min(1.35vw, 2.25svh), 1.25rem);
  line-height: 1.4;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  min-block-size: 44px;
  padding: .4rem .95rem;
  border-radius: 6px;
  background: #ff8248;
  color: #181710;
  font-size: .9375rem;
  font-weight: 650;
}

.cta:hover { background: #ff9a68; }

.media {
  position: relative;
  display: grid;
  min-inline-size: 0;
  padding-inline-end: 3.125rem;
}

.stage {
  position: relative;
  min-block-size: 14rem;
  container-type: size;
}

.stage-frame {
  --frame-ratio: calc(16 / 9);
  position: absolute;
  inset: 0;
}

@supports (width: 1cqw) {
  .stage-frame {
    inset: 50% auto auto 50%;
    inline-size: min(100cqw, 100cqh * var(--frame-ratio));
    block-size: min(100cqh, 100cqw / var(--frame-ratio));
    transform: translate(-50%, -50%);
  }
}

.stage-blend {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@supports (width: 1cqw) {
  .stage-frame { z-index: 1; pointer-events: none; }
  .stage-blend {
    display: block;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
  }
}

.stage picture,
.stage img,
.stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stage video { opacity: 0; transition: opacity .4s; }
.stage video.ready { opacity: 1; }

.control {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: .25rem;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #71818d;
  border-radius: 50%;
  background: #0c161f;
  color: #fff;
}

.control:hover { background: #293641; }
.glyph { width: 10px; height: 13px; border: solid currentColor; border-width: 0 3px; }

.control[data-paused="true"] .glyph {
  width: 0;
  height: 0;
  margin-left: 3px;
  border: 6px solid transparent;
  border-right: none;
  border-left: 10px solid currentColor;
}

.about { padding-block: clamp(.625rem, 2.7svh, 1.75rem); }

.about h2 {
  margin: 0 0 .4em;
  font-size: clamp(1.375rem, min(2.8vw, 4.5svh), 2.5rem);
  font-weight: 560;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(1rem, 3vw, 3rem);
}

.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  column-gap: .55rem;
  padding-block: .375rem;
  border-top: 1px solid #bcc7cc;
}

.feature img { grid-row: span 2; width: 1.375rem; height: 1.375rem; }
.feature h3 { margin: 0; font-size: clamp(1rem, 1.75vw, 1.25rem); line-height: 1.2; font-weight: 600; }
.feature p { grid-column: 2; margin: .12em 0 0; color: #485663; font-size: .9375rem; line-height: 1.3; }

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .2rem .625rem;
  padding-block: clamp(.4rem, 1.5svh, .9rem);
  border-top: 1px solid #c7ced0;
  color: #3d4b55;
  font-size: .8125rem;
}

.foot a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  body,
  .mast { display: block; }

  .bar { min-block-size: 4rem; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    padding-block: 1.5rem 1rem;
  }

  h1 { font-size: clamp(2.35rem, 10vw, 3.6rem); }
  .copy p { margin-block-end: .9em; font-size: 1rem; }
  .media { gap: .5rem; padding-inline: 0; }
  .stage { min-block-size: 0; block-size: min(111.25vw, 68svh, 33rem); }
  .stage-frame { --frame-ratio: calc(4 / 5); }

  .control {
    position: static;
    justify-self: end;
  }

  .about { padding-block: 1.5rem; }
  .about h2 { margin-bottom: .6em; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { padding-block: .75rem; }
  .feature h3 { font-size: 1.0625rem; }
  .feature p { font-size: 1rem; }
  .foot { padding-block: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage video { transition: none; }
}
