@import url("https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700&display=swap");

:root {
  /* Assetstore "unreal" theme tokens */
  --bg: #0e0e0e;
  --bg-gradient: linear-gradient(180deg, #0e0e0e 0%, #101012 100%);
  --surface: #222222;
  --surface-strong: #181818;
  --surface-border: rgba(255, 255, 255, 0.08);
  --block-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.5);
  --block-shadow-hover: 0 5px 15px 0 rgba(0, 0, 0, 1);
  --radius: 2px;
  --radius-lg: 5px;
  --text: #e6e6e6;
  --text-muted: #9a9a9a;
  --accent-primary: #e08821;
  --accent-secondary: #f2b25c;
  --accent-glow: 0 0 0 3px rgba(224, 136, 33, 0.14);
  --accent-rgb: 224, 136, 33;
  --accent-ink: #ffffff;
  --primary: #e08821;
  --primary-hover: #b56d19;
  --success: #77a464;
  --warning: #e08821;
  --danger: #c82e2e;
  --font-family: "Roboto Condensed", "Segoe UI", Tahoma, sans-serif;
  --btn-gradient: linear-gradient(180deg, #e08821 0%, #d87f1c 100%);
  --btn-gradient-hover: linear-gradient(180deg, #f09a39 0%, #e28b25 100%);
  --blur: 10px;

  /* Legacy aliases used by the markup */
  --bg-soft: var(--surface);
  --bg-card: var(--surface-strong);
  --fg: var(--text);
  --fg-muted: var(--text-muted);
  --line: rgba(255, 255, 255, 0.08);
  --accent: var(--accent-primary);
  --accent-2: var(--accent-secondary);
  --accent-contrast: var(--accent-ink);
  --shadow: var(--block-shadow);
  --measure: 34rem;
  --font: var(--font-family);
  --mono: var(--font-family);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: var(--bg-gradient);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--accent-primary);
  color: var(--accent-ink);
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 14, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--btn-gradient);
  color: var(--accent-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav {
  display: none;
  gap: 0.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav a:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  text-decoration: none;
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
}

.progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent-primary);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-block: 2.25rem 1rem;
}

.hero__inner {
  max-width: 62rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  text-align: center;
  background: var(--surface);
  border: 3px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--block-shadow);
}

.hero__title {
  margin: 0;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
  color: var(--accent-primary);
}

.hero__title span {
  display: block;
}

.hero__lede {
  margin: 1rem auto 0;
  font-size: clamp(1rem, 2vw, 1.12rem);
  color: var(--text-muted);
  max-width: 46rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--btn-gradient);
  border-color: var(--accent-primary);
  color: var(--accent-ink);
}

.btn--primary:hover {
  background: var(--btn-gradient-hover);
  box-shadow: var(--block-shadow);
}

.btn--ghost {
  background: var(--surface-strong);
  border-color: var(--surface-border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--block-shadow);
}

.hero__scroll {
  display: none;
}

/* ---------- sections ---------- */

.section {
  padding-block: 2.5rem;
}

.section__head {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.section__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.15;
  color: var(--text);
  border-left: 4px solid var(--accent-primary);
  padding-left: 0.75rem;
}

.section__text {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ---------- scrollytelling chapter ---------- */

.chapter {
  position: relative;
  padding-block: 1.5rem 2.5rem;
}

.chapter__visual {
  margin-bottom: 1.25rem;
}

.chapter__sticky {
  position: relative;
}

.frames {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-strong);
  border: 1px solid var(--surface-border);
  box-shadow: var(--block-shadow);
}

.frame {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.frame.is-active {
  opacity: 1;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.frame--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface-strong);
}

.caption {
  margin: 0.5rem 0 0;
  min-height: 1.3rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chapter__steps {
  display: grid;
  gap: 0.75rem;
}

.step {
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  transition: border-color 0.25s ease, background 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease;
  opacity: 0.6;
}

.step.is-active {
  opacity: 1;
  border-color: rgba(var(--accent-rgb), 0.6);
  background: var(--surface);
  box-shadow: var(--block-shadow);
}

.step__index {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
}

.step__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--text);
}

.step__body > *:first-child {
  margin-top: 0;
}

.step__body > *:last-child {
  margin-bottom: 0;
}

.step__body p {
  color: var(--text-muted);
  margin: 0.5rem 0;
}

.step__body strong {
  color: var(--text);
}

.step__body ul {
  padding-left: 1.1rem;
  color: var(--text-muted);
}

.step__body li {
  margin-bottom: 0.25rem;
}

.step__body figure {
  margin: 0.9rem 0 0;
}

.step__body figure img {
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  width: 100%;
}

.step__body figcaption {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.strip img {
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quote {
  margin: 0;
  padding: 0;
  border: 0;
}

.quote blockquote {
  margin: 0;
  padding-left: 0.9rem;
  border-left: 3px solid var(--accent-primary);
  font-size: 1.02rem;
  color: var(--text);
}

.quote cite {
  display: block;
  margin-top: 0.4rem;
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.video-embed {
  position: relative;
  padding-top: 56.25%;
  margin: 1rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 900px) {
  .chapter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
    padding-block: 2rem 3rem;
  }

  .chapter__visual {
    margin-bottom: 0;
  }

  .chapter__sticky {
    position: sticky;
    top: 4.75rem;
  }

  .chapter__steps {
    gap: 0.9rem;
    padding-block: 0;
  }

  .step {
    max-width: var(--measure);
  }
}

/* ---------- cards ---------- */

.cards {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 0;
  margin: 0.9rem 0 0;
  list-style: none;
}

.card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow: var(--block-shadow);
}

.card h3,
.card h4 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.stat {
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface);
  text-align: center;
}

.stat__value {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--accent-primary);
}

.stat__label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- legal ---------- */

.legal {
  display: grid;
  gap: 0.75rem;
}

.legal details {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
  padding: 0.1rem 1.1rem;
}

.legal summary {
  cursor: pointer;
  padding: 0.75rem 0;
  font-weight: 600;
  color: var(--text);
}

.legal .legal__body {
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal .legal__body h2 {
  font-size: 1.05rem;
  color: var(--text);
  margin: 1.1rem 0 0.4rem;
}

.legal .legal__body h3,
.legal .legal__body h4 {
  font-size: 1rem;
  color: var(--text);
  margin: 0.9rem 0 0.3rem;
}

.legal .legal__body p {
  margin: 0.5rem 0;
}

.legal .legal__body code {
  padding: 0.1rem 0.3rem;
  border-radius: var(--radius);
  background: rgba(224, 136, 33, 0.12);
  color: var(--accent-secondary);
  font-size: 0.9em;
}

/* ---------- cta + footer ---------- */

.cta {
  margin-block: 2rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: var(--radius-lg);
  border: 3px solid var(--surface-border);
  background: var(--surface);
  box-shadow: var(--block-shadow);
  text-align: center;
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--text);
}

.cta p {
  margin: 0.75rem auto 1.5rem;
  max-width: 40rem;
  color: var(--text-muted);
}

.footer {
  margin-top: 1.5rem;
  padding-block: 2.25rem 1.5rem;
  border-top: 3px solid var(--surface-border);
  background: var(--surface);
  color: var(--text-muted);
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer h4 {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
}

.footer a {
  color: var(--text);
  font-size: 0.95rem;
}

.footer a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.social {
  display: flex;
  gap: 1rem;
}

.social a {
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.social a:hover {
  color: var(--accent-primary);
  text-decoration: none;
}

/* ---------- reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.no-js [data-reveal] {
  opacity: 1;
  transform: none;
}

/* Fallback without JavaScript: show every frame as a plain gallery. */
.no-js .frames {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.5rem;
  aspect-ratio: auto;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.no-js .frame {
  position: static;
  opacity: 1;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.no-js .frame img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- layout helpers ---------- */

.hero__actions--center {
  justify-content: center;
}

.footer__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}
