/* BOGGED landing page. One file, no build step. */

:root {
  --bg: #000;
  --fg: #fff;
  --text: rgba(255, 255, 255, 0.78);
  --soft: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.24);
  --hair: rgba(255, 255, 255, 0.1);
  --pelt: #f2a93b;   /* the caveman's leopard pelt */
  --bone: #efe6cc;   /* the bone in his hair */
  --font: "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --header: 64px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.75 var(--font);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; text-transform: uppercase; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
.defs { position: absolute; }

:focus-visible { outline: 3px solid var(--pelt); outline-offset: 3px; }

.skip {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  background: var(--fg);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ------------------------------------------------------------ type */

/* Landfall-style headline: every wrapped line gets its own thin rule. */
.rule {
  font-size: clamp(2.1rem, 6vw, 4.75rem);
  line-height: 1.34;
  letter-spacing: 0.01em;
  text-wrap: balance;
}
.rule span {
  background: linear-gradient(var(--line), var(--line)) 0 100% / 100% 2px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.04em;
}

.section-head { max-width: 820px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.section-head p { margin: 1.4rem auto 0; max-width: 54ch; color: var(--text); text-wrap: balance; }

/* ------------------------------------------------------------ buttons */

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2.25rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-height: 52px;
  padding: 0 1.9em;
  border: 2px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--fg); color: var(--bg); }
.btn-fill { background: var(--fg); color: var(--bg); }
.btn-fill:hover { background: var(--pelt); border-color: var(--pelt); }
.btn-soon { border-color: rgba(255, 255, 255, 0.4); color: rgba(255, 255, 255, 0.72); cursor: default; }
.btn-soon:hover { background: transparent; color: rgba(255, 255, 255, 0.72); }

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header);
  padding: 0 var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--hair);
}

.nav ul { display: flex; gap: clamp(16px, 2.2vw, 32px); }
.nav a,
.header-cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a {
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.25s;
}
.nav a:hover { background-size: 100% 1px; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border: 0;
  background: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.header-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.header-cta:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }

.wordmark {
  position: relative;
  display: inline-block;
  padding-top: 0.3em;
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
}
.wordmark .bone {
  position: absolute;
  top: -0.08em;
  left: 21%;
  width: 52%;
  height: auto;
  aspect-ratio: 120 / 26;
  color: var(--bone);
  transform: rotate(-7deg);
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav ul {
    position: fixed;
    top: var(--header);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--hair);
  }
  .nav[data-open] ul { display: flex; }
  .nav li a { display: block; padding: 16px 0; font-size: 0.875rem; border-bottom: 1px solid var(--hair); background: none; }
  .wordmark { font-size: 1.35rem; }
}
@media (max-width: 420px) {
  .header-cta { padding: 10px 12px; }
  /* icon-only on small phones; the label stays for screen readers */
  .header-cta span,
  .nav-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ------------------------------------------------------------ video backgrounds */

.media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: #0d1208;
}
.media img,
.media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media video { opacity: 0; transition: opacity 0.6s ease; }
.media video.is-playing { opacity: 1; }
.media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 16%, rgba(0, 0, 0, 0) 84%, #000 100%),
    var(--shade, rgba(0, 0, 0, 0.48));
}

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header));
  padding: 96px var(--gutter);
  text-align: center;
  overflow: hidden;
}
@supports (height: 100svh) {
  .hero { min-height: calc(100svh - var(--header)); }
}
.hero .media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 35%, rgba(0, 0, 0, 0.45) 75%, #000 100%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 70%);
}

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.title {
  position: relative;
  display: inline-block;
  margin-top: 0.15em;
  padding-top: 0.12em;
  font-size: clamp(4.25rem, 17vw, 12.5rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.95;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.title .bone {
  position: absolute;
  top: -0.1em;
  left: 22%;
  width: 50%;
  height: auto;
  aspect-ratio: 120 / 26;
  color: var(--bone);
  transform: rotate(-7deg);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
}

.lede {
  max-width: 30ch;
  margin: 1.1rem auto 0;
  font-size: clamp(1.125rem, 2.1vw, 1.5rem);
  font-weight: 500;
  line-height: 1.45;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------ intro */

.intro {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(88px, 12vw, 168px) var(--gutter);
  text-align: center;
}
.intro p {
  max-width: 62ch;
  margin: 2rem auto 0;
  color: var(--text);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.8;
}

/* ------------------------------------------------------------ feature panels */

.panel {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: max(560px, min(100vh, 56.25vw));
  padding: clamp(96px, 11vw, 160px) var(--gutter);
  text-align: center;
  overflow: hidden;
}
.panel .copy { width: 100%; max-width: 760px; }
.panel .copy p {
  max-width: 54ch;
  margin: 1.6rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}
.panel .rule { text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45); }

@media (min-width: 900px) {
  .panel-start, .panel-end { justify-items: start; text-align: left; }
  .panel-end { justify-items: end; }
  .panel-start .copy, .panel-end .copy { max-width: 600px; }
  .panel-start .copy p, .panel-end .copy p { margin-left: 0; }
  .panel-start { --shade: linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.12) 100%); }
  .panel-end { --shade: linear-gradient(270deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.12) 100%); }
  .panel-start .rule, .panel-end .rule { font-size: clamp(2.1rem, 4.6vw, 4.25rem); }
}

/* ------------------------------------------------------------ numbers */

.numbers {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: max(680px, min(100vh, 56.25vw));
  padding: clamp(104px, 12vw, 168px) var(--gutter) clamp(56px, 7vw, 96px);
  overflow: hidden;
  --shade: linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.2) 38%, rgba(0, 0, 0, 0.86) 100%);
}
.numbers-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(64px, 10vw, 160px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}
.numbers-head { text-align: center; }
.numbers-head .rule { text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45); }
.numbers-head p {
  max-width: 46ch;
  text-wrap: balance;
  margin: 1.4rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.7);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}
.stats li { padding: 30px clamp(16px, 2.4vw, 36px) 4px; }
.stats li:first-child { padding-left: 0; }
.stats li + li { border-left: 1px solid rgba(255, 255, 255, 0.2); }
.stat {
  display: flex;
  align-items: baseline;
  font-size: clamp(4rem, 8.6vw, 8.75rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.45);
}
.stat small { margin-left: 0.14em; font-size: 0.3em; font-weight: 700; letter-spacing: 0.02em; }
.stats h3 {
  margin-top: 20px;
  color: var(--pelt);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1.4;
}
.stats p {
  max-width: 30ch;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stats li:nth-child(n + 3) { margin-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
}
@media (max-width: 480px) {
  .stats li { padding: 24px 12px 4px 16px; }
  .stats h3 { font-size: 0.6875rem; letter-spacing: 0.14em; }
  .stats p { font-size: 0.875rem; }
}

/* ------------------------------------------------------------ monsters */

.locals {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) var(--gutter);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3.5vw, 48px) clamp(12px, 2vw, 24px);
}
.card .frame { overflow: hidden; background: #10140c; }
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card:hover img { transform: scale(1.04); }
.tag {
  display: block;
  margin-top: 18px;
  color: var(--soft);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.tag-boss { color: var(--pelt); }
.card h3 { margin-top: 6px; font-size: 1.3rem; letter-spacing: 0.03em; }
.card p { margin-top: 8px; color: var(--text); font-size: 0.9375rem; line-height: 1.6; }

@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) {
  .card h3 { font-size: 1.05rem; }
  .card p { font-size: 0.875rem; }
  .tag { font-size: 0.625rem; letter-spacing: 0.14em; }
}

/* ------------------------------------------------------------ videos */

.watch {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(88px, 11vw, 150px);
}
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #10140c;
  text-decoration: none;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
}
.tile:hover img { transform: scale(1.03); opacity: 1; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  padding-left: 5px;
  border: 2px solid var(--fg);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%);
  transition: background-color 0.2s, color 0.2s;
}
.tile:hover .play { background: var(--fg); color: var(--bg); }
.tile-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 48px 22px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}
.tile-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}
.tile-title small {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tile-time { font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.1em; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .play { width: 68px; height: 68px; }
}

/* ------------------------------------------------------------ faq */

.faq {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(88px, 11vw, 150px) var(--gutter);
  text-align: center;
}
.faq-list { margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); text-align: left; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 24px 48px 24px 0;
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--bone); }
.faq details p { max-width: 68ch; padding: 0 0 28px; color: var(--text); }

/* ------------------------------------------------------------ outro + footer */

.outro {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--gutter) clamp(96px, 12vw, 168px);
  text-align: center;
}
.outro p { max-width: 54ch; margin: 1.8rem auto 0; color: var(--text); }
.outro p a { color: var(--fg); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.outro p a:hover { color: var(--pelt); }

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px 32px;
  padding: 32px var(--gutter);
  border-top: 1px solid var(--hair);
  color: var(--soft);
  font-size: 0.8125rem;
}
.site-footer .wordmark { color: var(--fg); }
.wordmark-sm { font-size: 1.15rem; }
.site-footer ul { display: flex; gap: 24px; }
.site-footer ul a { text-decoration: none; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.6875rem; font-weight: 500; }
.site-footer ul a:hover { color: var(--fg); }

@media (max-width: 700px) {
  .site-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* ------------------------------------------------------------ video player */

.player {
  width: min(1280px, 100vw - 2 * var(--gutter));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  overflow: visible;
}
.player::backdrop { background: rgba(0, 0, 0, 0.9); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; }
.player-title { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.player-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: none;
  cursor: pointer;
}
.player-close:hover { background: var(--fg); color: var(--bg); }
.player video { width: 100%; max-height: calc(100vh - 120px); aspect-ratio: 16 / 9; background: #000; }

/* ------------------------------------------------------------ motion preferences */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .card:hover img, .tile:hover img { transform: none; }
}
