:root {
  --color-bg: #060606;
  --color-bg-alt: #0d0d0d;
  --color-surface: #141414;
  --color-text: #efefef;
  --color-text-dim: #b5b5b5;
  --color-accent: #ffffff;
  --color-focus: #ffffff;
  --sidebar-width: 220px;
  --color-bg-bright: #181818; /* brighter edge for main linear gradient */
  --nav-link-size: 1.4rem;
  --icon-btn-icon-size: 18px; /* base size for social/email icon */
  --radius-sm: 4px;
  --radius-md: 8px;
  --font-display: "Teko", sans-serif;
  --transition-fast: 140ms cubic-bezier(0.4, 0, 0.2, 1);
  --hero-grad-start: #ffffff;
  --hero-grad-end: #cfcfcf;
  --content-max-width: 80ch; /* readable line length cap */
  --section-underline-start: #ffffff; /* dark mode underline gradient start */
  --section-underline-end: #444444; /* dark mode underline gradient end */
  --launch-fade-duration: 500ms; /* dark mode fade duration */
  --launch-blur-amount: 18px;
  --launch-content-blur: 14px; /* initial blur for site elements*/
  /* Modal animation tuning */
  --modal-anim-duration: 380ms;
  --modal-anim-blur: 12px;
}

/* Light theme */
html.theme-light {
  --color-bg: #f7f7f8;
  --color-bg-alt: #ececec;
  --color-bg-bright: #ffffff;
  --color-surface: #ffffff;
  --color-text: #111111;
  --color-text-dim: #4d4d4f;
  --color-accent: #000000;
  --color-focus: #000000;
  --hero-grad-start: #111111;
  --hero-grad-end: #333333;
  --section-underline-start: #000000; /* light mode underline gradient start */
  --section-underline-end: #777777; /* light mode underline gradient end */
  --launch-fade-duration: 750ms; /* longer fade in light mode */
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: system-ui, "Teko", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans",
    "Droid Sans", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.05) 100%
    ),
    linear-gradient(90deg, #0b0b0b 0%, #0d0d0d 100%) fixed no-repeat;
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  font-weight: 300;
  transition: background 480ms ease, color 320ms ease;
}

#site-launch-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 1;
  pointer-events: none;
  backdrop-filter: blur(var(--launch-blur-amount));
  -webkit-backdrop-filter: blur(var(--launch-blur-amount));
  transition: opacity var(--launch-fade-duration) ease,
    backdrop-filter var(--launch-fade-duration) ease,
    -webkit-backdrop-filter var(--launch-fade-duration) ease;
  background: radial-gradient(
      circle at 50% 50%,
      rgba(0, 0, 0, 1) 0%,
      rgba(0, 0, 0, 0.98) 55%,
      rgba(0, 0, 0, 0.93) 65%,
      rgba(0, 0, 0, 0.8) 75%,
      rgba(0, 0, 0, 0.55) 85%,
      rgba(0, 0, 0, 0.25) 92%,
      rgba(0, 0, 0, 0) 100%
    ),
    #000;
}
html.theme-light #site-launch-overlay {
  background: radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.97) 52%,
      rgba(255, 255, 255, 0.92) 60%,
      rgba(255, 255, 255, 0.82) 70%,
      rgba(255, 255, 255, 0.55) 82%,
      rgba(255, 255, 255, 0.3) 90%,
      rgba(255, 255, 255, 0.1) 96%,
      rgba(255, 255, 255, 0) 100%
    ),
    #ffffff;
}
html.launch-complete #site-launch-overlay {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
}
html.launch-complete #site-launch-overlay {
  animation: siteOverlayHide var(--launch-fade-duration) forwards;
}
@keyframes siteOverlayHide {
  to {
    visibility: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  #site-launch-overlay {
    transition: opacity 200ms ease !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Blur-in of all site content (excluding overlay) */
body > :not(#site-launch-overlay) {
  filter: blur(var(--launch-content-blur));
  transition: filter var(--launch-fade-duration) ease;
  will-change: filter;
}
html.launch-complete body > :not(#site-launch-overlay) {
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  body > :not(#site-launch-overlay) {
    filter: none !important;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  margin: 0 0 0.4rem;
}

p {
  line-height: 1.55;
  max-width: 80ch;
}

/* Sidebar */
.site-nav {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
  border-right: 1px solid #1e1e1e;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* ensure social links always reachable on short viewports */
  padding: 1.25rem 1rem 1rem;
  gap: 1.5rem;
  transition: background 480ms ease, border-color 480ms ease;
}
.site-nav .nav-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}
.site-nav .nav-stack nav ul {
  margin-top: 0.25rem;
}
.site-nav .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}
.site-nav .logo img {
  width: 130px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.05));
  opacity: 0.95;
  transition: transform var(--transition-fast);
}
.site-nav .logo img:hover {
  transform: scale(1.04);
}
.site-nav nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.site-nav nav a {
  text-decoration: none;
  color: var(--color-text-dim);
  font-family: var(--font-display);
  font-size: var(--nav-link-size);
  padding: 0.1rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast),
    transform var(--transition-fast);
  text-align: center;
  letter-spacing: 0.8px;
  width: 100%;
}
.site-nav nav a:hover,
.site-nav nav a:focus-visible {
  color: var(--color-text);
  background: #1b1b1b;
  outline: none;
}
.site-nav nav a.active {
  background: #262626;
  color: var(--color-text);
}
html.theme-light .site-nav nav a:hover,
html.theme-light .site-nav nav a:focus-visible {
  background: #e4e4e4;
  color: #111;
}
html.theme-light .site-nav nav a.active {
  background: #d9d9d9;
  color: #000;
}
.nav-footer {
  margin-top: auto;
  font-size: 0.7rem;
  color: #555;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: stretch;
  width: 100%;
  padding: 0.25rem 0 0.25rem;
}
.icon-btn {
  --size: 38px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #202020;
  border-radius: 10px;
  color: var(--color-text-dim);
  background: #121212;
  text-decoration: none;
  transition: background 420ms ease, color 320ms ease, border-color 420ms ease,
    transform var(--transition-fast);
  padding: 0.45rem 0.7rem;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  font-size: 0.95rem;
}
.icon-btn:hover,
.icon-btn:focus-visible {
  color: var(--color-text);
  border-color: #2d2d2d;
  background: #1b1b1b;
  outline: none;
  transform: translateY(-2px);
}
html.theme-light .icon-btn {
  background: #ffffff;
  border-color: #d7d7d7;
  color: #444;
}
html.theme-light .icon-btn:hover,
html.theme-light .icon-btn:focus-visible {
  background: #f1f1f1;
  border-color: #bdbdbd;
  color: #111;
}
.icon-btn:active {
  transform: translateY(0);
}
.icon-btn svg {
  display: block;
  flex-shrink: 0;
  width: var(--icon-btn-icon-size);
  height: var(--icon-btn-icon-size);
}
.icon-btn img {
  width: var(--icon-btn-icon-size);
  height: var(--icon-btn-icon-size);
  display: block;
  flex-shrink: 0;
  filter: brightness(0.9);
}
.icon-btn.email {
  --icon-btn-icon-size: 22px;
}
.icon-btn:hover img,
.icon-btn:focus-visible img {
  filter: brightness(1);
}
.icon-btn .label {
  line-height: 1;
}

/* Main content: flex centers inner in remaining space (viewport - sidebar) */
.content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  padding: 2.5rem clamp(1.5rem, 4vw, 4rem) 4rem;
  display: flex;
  justify-content: center;
  position: relative;
  min-height: 100vh;
}

.content::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(var(--content-max-width) + 4rem), 100%);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.015) 45%,
    rgba(255, 255, 255, 0.025)
  );
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.01),
    0 8px 28px -12px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 0;
  transition: background 480ms ease, border-color 480ms ease,
    box-shadow 480ms ease;
}
html.theme-light .content::before {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.08),
    rgba(0, 0, 0, 0.05) 45%,
    rgba(0, 0, 0, 0.09)
  );
  border-left: 1px solid rgba(0, 0, 0, 0.14);
  border-right: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: 0 10px 34px -14px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(0, 0, 0, 0.04);
}
.content > .inner {
  width: 100%;
  max-width: var(--content-max-width);
  position: relative;
  z-index: 1;
  padding: 0 2rem;
}
@media (max-width: 860px) {
  .content > .inner {
    padding: 0 1.25rem;
  }
}
@media (min-width: 1600px) {
  .content > .inner {
    max-width: var(--content-max-width);
  }
}
@media (max-width: 680px) {
  .content {
    margin-left: 0;
    width: 100%;
    display: block;
    min-height: 100vh;
  }
  .content::before {
    width: 100%;
    left: 0;
    transform: none;
    border-left: none;
    border-right: none;
    box-shadow: none;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04),
      rgba(0, 0, 0, 0.02)
    );
  }
  .content > .inner {
    max-width: 100%;
    padding: 0 1.1rem;
  }
}

.hero {
  padding: 2rem 0 2.5rem;
}

.hero h1 {
  position: relative;
  font-size: clamp(2.7rem, 7vw, 5rem);
  line-height: 0.85;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff, #d9d9d9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #1a1a1a, #3a3a3a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transition: opacity 480ms ease;
}
html.theme-light .hero h1::after {
  opacity: 1;
}
html.theme-light .hero h1 {
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.22);
}
.hero .tagline {
  font-size: 1.15rem;
  color: var(--color-text-dim);
  margin-top: 0.75rem;
}

.section {
  padding: 2.25rem 0 2rem;
}
.section:first-of-type {
  border-top: none;
}
.section-header h2 {
  font-size: 2.1rem;
  position: relative;
  display: inline-block;
}
.section-header h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 42%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--section-underline-start),
    var(--section-underline-end)
  );
  transition: background 480ms ease;
}
.section-body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ul.feature-list,
ul.creator-opps {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 1rem;
  max-width: 80ch; /* match paragraph measure for consistent line break */
  display: grid;
  gap: 0.4rem;

  transition: all 1.3s ease;
}
ul.feature-list li,
ul.creator-opps li {
  padding: 0.55rem 0.7rem;
  border: 2px solid #1e1e1e;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 500;
  transition: border-color var(--transition-fast);
}
ul.feature-list li:hover,
ul.creator-opps li:hover {
  border-color: #2a2a2a;
}

.cta-block {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.button {
  --btn-bg: #181818;
  --btn-border: #2a2a2a;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: background 420ms ease, border-color 420ms ease,
    transform var(--transition-fast), color 320ms ease;
}
.button.primary {
  background: linear-gradient(145deg, #1d1d1d, #101010);
}
.button.outline {
  background: transparent;
  border: 1px solid var(--color-text-dim);
  color: var(--color-text-dim);
}
.button.outline:hover,
.button.outline:focus-visible {
  color: var(--color-text);
  border-color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}
.button:hover,
.button:focus-visible {
  background: #222;
  border-color: #3a3a3a;
  transform: translateY(-2px);
}
html.theme-light .button {
  --btn-bg: #ffffff;
  --btn-border: #d2d2d2;
}
html.theme-light .button.primary {
  background: linear-gradient(145deg, #ffffff, #e7e7e7);
  color: #111;
}
html.theme-light .button:hover,
html.theme-light .button:focus-visible {
  background: #ededed;
}
html.theme-light .button.outline {
  background: transparent;
  border-color: #bcbcbc;
  color: #444;
}
html.theme-light .button.outline:hover,
html.theme-light .button.outline:focus-visible {
  background: #f5f5f5;
  color: #000;
  border-color: #000;
}
.button:active {
  transform: translateY(0);
}
.button.cta-large {
  font-size: 1.5rem;
  padding: 0.8rem 0.8rem;
  letter-spacing: 0.75px;
}
.button.cta-large.primary {
  background: linear-gradient(145deg, #242424, #202020);
}
.button.cta-large:hover,
.button.cta-large:focus-visible {
  background: #272727;
}

.inline-link {
  color: var(--color-text);
  font-weight: 700;
  text-decoration: none;
  position: relative;
}
.inline-link:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, #fff, #555);
  opacity: 0.55;
  transition: opacity var(--transition-fast);
}
.inline-link:hover:after,
.inline-link:focus-visible:after {
  opacity: 1;
}

html {
  scroll-behavior: smooth;
}

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

@media (max-width: 860px) {
  :root {
    --sidebar-width: 170px;
  }
  .button {
    font-size: 1rem;
  }
  .site-nav nav a {
    font-size: 1.2rem;
  }
}
@media (max-width: 680px) {
  .site-nav {
    position: static;
    width: 100%;
    flex-direction: row;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #1e1e1e;
    padding: 0.75rem 0.85rem;
  }
  .site-nav .nav-stack {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
  }
  .site-nav nav ul {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
  }
  .social-links {
    flex-direction: row;
    width: auto;
    padding: 0;
  }
  .icon-btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
  }
  .nav-footer {
    display: none;
  }
  .site-nav .logo {
    order: -1;
    margin-top: 0;
  }
  .content {
    margin-left: 0;
    padding: 1.25rem 1.1rem 3rem;
  }
  .hero {
    padding-top: 1rem;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }
  ul.feature-list li,
  ul.creator-opps li {
    font-size: 0.85rem;
  }
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
      circle at 14% 18%,
      rgba(255, 255, 255, 0.07) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 78% 26%,
      rgba(255, 255, 255, 0.05) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 52% 72%,
      rgba(255, 255, 255, 0.06) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 32% 54%,
      rgba(255, 255, 255, 0.04) 0 2px,
      transparent 3px
    );
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  mix-blend-mode: screen;
  opacity: 0.28;
  filter: blur(0.15px);
  transition: opacity 450ms ease;
  z-index: 0;
}
html.theme-light body:before {
  opacity: 0.12;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0) 100%
    ),
    linear-gradient(90deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  opacity: 0;
  transition: opacity 480ms ease;
  z-index: -2;
}
html.theme-light body::after {
  opacity: 1;
}

.theme-transition,
.theme-transition body,
.theme-transition .site-nav,
.theme-transition .icon-btn,
.theme-transition .button,
.theme-transition body:before {
  transition: background 480ms ease, color 320ms ease, border-color 420ms ease,
    opacity 450ms ease, box-shadow 420ms ease;
}

.theme-toggle {
  margin: 0 auto 0;
  background: #181818;
  color: var(--color-text-dim);
  border: 1px solid #222;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast), transform var(--transition-fast);
}
.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--color-text);
  background: #222;
  border-color: #333;
  transform: translateY(-2px);
}
.theme-toggle:active {
  transform: translateY(0);
}
html.theme-light .theme-toggle {
  background: #ffffff;
  border-color: #d2d2d2;
  color: #444;
}
html.theme-light .theme-toggle:hover,
html.theme-light .theme-toggle:focus-visible {
  background: #f1f1f1;
  color: #000;
}

.theme-alt body {
  --color-bg: #050505;
}

/* =============================
   Modal: Campaign Entry Dialog
   Shown when utm_source=qr-twitchcon
   ============================= */
.sc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000; /* above site content; launch overlay is 9999 */
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--modal-anim-duration) ease;
}
.sc-modal-backdrop.is-visible {
  opacity: 1;
}
html.theme-light .sc-modal-backdrop {
  background: rgba(255, 255, 255, 0.65);
}
.sc-modal {
  background: var(--color-surface);
  color: var(--color-text);
  width: min(960px, 100%);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  /* horizontal offset for visual centering considering fixed sidebar */
  --modal-x-offset: 0px;
  transform: translate(var(--modal-x-offset), 0) scale(1);
  opacity: 0; /* start hidden for open animation */
  filter: blur(var(--modal-anim-blur));
  transition: opacity var(--modal-anim-duration) ease,
    filter var(--modal-anim-duration) ease, background 480ms ease,
    color 480ms ease, border-color 480ms ease;
  max-height: calc(100vh - 4rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}
html.theme-light .sc-modal {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.25);
}
.sc-modal.is-visible {
  opacity: 1;
  filter: blur(0);
}
.sc-modal header {
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left spacer, title, close */
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html.theme-light .sc-modal header {
  border-bottom-color: rgba(0, 0, 0, 0.12);
}
.sc-modal header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  grid-column: 2;
  justify-self: center;
  text-align: center;
}
.sc-modal header .close-btn {
  grid-column: 3;
  justify-self: end; /* avoid stretching across the column */
  align-self: center;
}
.sc-modal .close-btn {
  appearance: none;
  border: 1px solid #2a2a2a;
  background: #141414;
  color: var(--color-text);
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: background var(--transition-fast),
    border-color var(--transition-fast), color var(--transition-fast),
    transform var(--transition-fast), opacity var(--modal-anim-duration) ease,
    filter var(--modal-anim-duration) ease;
}
.sc-modal .close-btn:hover,
.sc-modal .close-btn:focus-visible {
  background: #1b1b1b;
  border-color: #3a3a3a;
  outline: none;
}
html.theme-light .sc-modal .close-btn {
  background: #ffffff;
  border-color: #d7d7d7;
  color: #111;
}
html.theme-light .sc-modal .close-btn:hover,
html.theme-light .sc-modal .close-btn:focus-visible {
  background: #f1f1f1;
  border-color: #bdbdbd;
  color: #000;
}
.sc-modal .body {
  padding: 1rem 1.25rem 1.25rem;
  overflow: auto;
  display: grid;
  gap: 1rem;
  text-align: center; /* center text within modal */
}
.sc-modal .intro {
  font-size: 1rem;
  color: var(--color-text-dim);
  max-width: 80ch;
  margin: 0 auto;
}
.sc-modal .cta {
  display: flex;
  justify-content: center;
}

.is-closing {
  animation: closeAnimation var(--modal-anim-duration);
}

.backdrop-close {
  animation: backdropClose var(--modal-anim-duration);
}

@keyframes backdropClose {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes closeAnimation {
  from {
    opacity: 1;
    filter: blur(0);
  }
  to {
    opacity: 0;
    filter: blur(var(--modal-anim-blur));
  }
}

/* On desktop, offset the modal to visually center it relative to the content area (sidebar present) */
@media (min-width: 681px) {
  .sc-modal {
    --modal-x-offset: calc(var(--sidebar-width) / 2);
  }
}
.sc-modal .video-wrapper {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  /* 16:9 aspect ratio */
  aspect-ratio: 16 / 9;
}
.sc-modal .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 680px) {
  .sc-modal-backdrop {
    padding: 1rem;
  }
  .sc-modal header {
    padding: 0.75rem 0.9rem;
  }
  .sc-modal .body {
    padding: 0.75rem 0.9rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-modal-backdrop,
  .sc-modal {
    transition: none !important;
  }
}
