/* ==========================================================
   Schema 01 landing page
   ========================================================== */

@font-face {
  font-family: "Title Font";
  src: url("fonts/test-pitch-light.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Descriptor Font";
  src: url("fonts/test-pitch-sans-light.woff2") format("woff2");
  font-style: normal;
  font-display: swap;
}

:root {
  /* Tune how much of the video shows through (0 = fully clear, 1 = solid black) */
  --overlay-opacity: 0.88;

  --color-bg: #000;
  --color-title: #569eff;
  --color-text: #dce8ff;
  --color-cta-bg: #012169;
  --color-cta-bg-hover: #569eff;
  --color-cta-text: #b9d4ff;
  --font-heading: "Title Font", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-body: "Descriptor Font", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: var(--color-bg);
  font-family: var(--font-heading);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;   /* fallback */
  min-height: 100dvh;  /* handles mobile address bar */
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  /* object-fit: cover; */
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--overlay-opacity);
  z-index: -1;
  opacity: 0.93;
}

/* ---------- Content ---------- */

.hero__content {
  width: 100%;
  max-width: 1100px;
  padding:
    max(2rem, env(safe-area-inset-top))
    max(1.25rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
}

.hero__title {
  margin: 0;
  font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-title);
  /* offset trailing letter-spacing so the text stays visually centered */
  padding-left: 0.12em;
  font-family: var(--font-heading);
}

.hero__descriptor {
  margin: clamp(0.75rem, 2vw, 1.25rem) auto 0;
  margin-top: clamp(0rem, 6vw, 0.15rem);
  max-width: 34ch;
  font-weight: 300;
  /* font-size: clamp(0.95rem, 3.4vw, 1.6rem); */
  font-size: clamp(0.85rem, 2.4vw, 1.3rem);
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--color-text);
  font-family: var(--font-body);
}

.hero__cta {
  display: inline-block;
  margin-top: clamp(2rem, 6vw, 3.5rem);
  padding: 0.95rem 1.2rem;
  /* padding: 0.95rem 1.6rem; */
  min-height: 48px; /* comfortable tap target */
  background: var(--color-cta-bg);
  color: var(--color-cta-text);
  font-family: var(--font-heading);;
  font-weight: 400;
  font-size: clamp(0.8rem, 2.6vw, 1rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.hero__cta:hover {
  background: var(--color-cta-bg-hover);
  color: #000;
}

.hero__cta:focus-visible {
  outline: 2px solid var(--color-title);
  outline-offset: 4px;
}

/* ---------- Larger screens: descriptor on a single line ---------- */

@media (min-width: 900px) {
  .hero__descriptor {
    max-width: none;
    /* font-size: clamp(1.1rem, 1.7vw, 1.6rem); */
  }
}

/* ---------- Small phones ---------- */

@media (max-width: 480px) {
  .hero__title {
    letter-spacing: 0.08em;
    padding-left: 0.08em;
  }

  .hero__descriptor {
    letter-spacing: 0.03em;
  }
}

/* ---------- Reduced motion: hide the moving video ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero__cta {
    transition: none;
  }
}
