/* Landing page.

   Two grounds on purpose. The stage at the top is dark in both themes —
   it is the one place the posters should be the brightest thing on
   screen, and a media brand's front door earns a cinema. Everything
   below it returns to the studio's paper identity, so the landing and
   the gallery still read as one site.

   Every class is `ld-`-prefixed: style.css already owns .hero,
   .hero__title, .stat and .panel, and an unprefixed landing silently
   inherits that page's decoration (it did — the dashboard's section
   marker glyph turned up inside the eyebrow). */

.landing-page {
  --bg: #f8f8f6;
  --paper: #ffffff;
  --text: #202420;
  --accent: #2e5543;
  --accent-hover: #203e30;
  --accent-wash: #edf2ee;
  --text-muted: #737971;
  --text-soft: #5f665d;
  --line: #e3e5e0;
  --line-soft: #eeefeb;

  /* The stage keeps its own palette in both themes. */
  --stage: #0c100d;
  --stage-ink: #f2f5f0;
  --stage-soft: #a7b3a8;
  --stage-accent: #8fd3ae;
  --stage-line: rgba(242, 245, 240, .13);

  background: var(--bg);
  /* The glow and the reel both reach past their boxes on purpose;
     neither may put a horizontal scrollbar on the page. `clip` keeps
     the vertical scroll working — `hidden` here would turn the body
     into a scroll container. */
  overflow-x: clip;
}
[data-theme="dark"] .landing-page {
  --bg: #141714;
  --paper: #1b1f1b;
  --text: #edf0e9;
  --accent: #b8d6c4;
  --accent-hover: #d4eadd;
  --accent-wash: #1e2a22;
  --text-muted: #9da79a;
  --text-soft: #b2bbad;
  --line: #2a2f29;
  --line-soft: #232823;
  --stage: #090c0a;
}
.landing-page::before { display: none; }

/* ---- Chrome ---- */

.landing-page .nav {
  position: absolute; inset: 0 0 auto; z-index: 5;
  background: transparent; backdrop-filter: none; border: 0;
}
.landing-page .nav__inner { max-width: 1160px; padding: 24px 32px; }
.landing-page .brand { gap: 12px; font-size: 18px; letter-spacing: -.6px; color: var(--stage-ink); }
.landing-page .gallery-logo { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.landing-page .brand-period { color: var(--stage-accent); }
.landing-page .nav__links { gap: 4px; }
.landing-page .nav__links > a {
  font-size: 14px; font-weight: 500; color: var(--stage-soft);
  padding: 7px 11px; border-radius: 7px;
}
.landing-page .nav__links > a:hover { color: var(--stage-ink); background: rgba(255, 255, 255, .07); }
.landing-page .theme-toggle {
  background: transparent; border-color: var(--stage-line);
  color: var(--stage-soft); border-radius: 50%;
}
.landing-page .theme-toggle:hover { color: var(--stage-ink); border-color: var(--stage-soft); }
.landing-page .container { max-width: 1160px; padding: 0 32px 24px; }
.landing-page .footer { margin-top: 64px; background: transparent; border-top: 1px solid var(--line); }
.landing-page .footer__inner { max-width: 1160px; padding: 26px 32px; }

/* ---- The stage ---- */

.ld-stage {
  position: relative;
  /* Full-bleed out of .container, which is capped and padded. */
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 116px 0 76px;
  background: var(--stage);
  color: var(--stage-ink);
  overflow: hidden;
  isolation: isolate;
}
.ld-stage__glow {
  position: absolute; inset: -30% -10% auto -10%; height: 130%;
  z-index: -1;
  background:
    radial-gradient(48% 46% at 18% 30%, rgba(46, 85, 67, .85) 0%, transparent 70%),
    radial-gradient(42% 44% at 78% 14%, rgba(24, 61, 52, .72) 0%, transparent 72%),
    radial-gradient(36% 40% at 62% 88%, rgba(143, 211, 174, .16) 0%, transparent 70%);
}
.ld-stage::after {
  /* A whisper of grain so the large flat field is not plastic. */
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.ld-stage__inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}

.ld-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 24px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--stage-accent);
  background: rgba(143, 211, 174, .10);
  border: 1px solid rgba(143, 211, 174, .22);
  border-radius: 999px;
  padding: 7px 15px 7px 12px;
}
.ld-pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--stage-accent); flex: none;
  animation: ld-pulse 2.6s ease-out infinite;
}
@keyframes ld-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(143, 211, 174, .5); }
  70%  { box-shadow: 0 0 0 8px rgba(143, 211, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 211, 174, 0); }
}

.ld-title {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6.2vw, 78px);
  line-height: 1.015;
  font-weight: 500;
  letter-spacing: -.028em;
  color: var(--stage-ink);
  text-wrap: balance;
}
.ld-title em { font-style: italic; color: var(--stage-accent); }
.ld-sub {
  margin: 0;
  max-width: 33rem;
  font-size: 17px;
  line-height: 1.6;
  color: var(--stage-soft);
}
.ld-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }

.ld-btn {
  display: inline-flex; align-items: center; gap: 9px;
  height: 46px; padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px; font-weight: 560;
  white-space: nowrap;
  background: var(--stage-ink); color: var(--stage);
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}
.ld-btn:hover { background: var(--stage-accent); color: #08110c; transform: translateY(-1px); }
.ld-btn svg { transition: transform .16s ease; }
.ld-btn:hover svg { transform: translateX(3px); }
.ld-btn--ghost {
  background: rgba(255, 255, 255, .05);
  color: var(--stage-ink);
  border-color: var(--stage-line);
}
.ld-btn--ghost:hover {
  background: rgba(255, 255, 255, .1); color: var(--stage-ink);
  border-color: rgba(242, 245, 240, .34); transform: translateY(-1px);
}
.ld-btn--ghost:hover svg { transform: none; }

/* ---- The reel ---- */

.ld-reel {
  position: relative;
  margin-top: 58px;
  /* Fade both ends into the stage rather than cutting the posters off. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 13%, #000 87%, transparent 100%);
}
.ld-reel__track { display: flex; width: max-content; animation: ld-scroll 96s linear infinite; }
.ld-reel__run { display: flex; gap: 16px; padding-right: 16px; }
.ld-reel:hover .ld-reel__track,
.ld-reel:focus-within .ld-reel__track { animation-play-state: paused; }
@keyframes ld-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.ld-reel__tile {
  position: relative;
  display: block;
  width: 168px; flex: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--stage-line);
  background: #111713;
  transition: transform .18s ease, border-color .18s ease;
}
.ld-reel__tile img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover; object-position: center 34%;
}
.ld-reel__slug {
  position: absolute; inset: auto 0 0;
  padding: 26px 10px 8px;
  font-size: 11px; font-weight: 550; line-height: 1.25;
  color: #fff;
  background: linear-gradient(transparent, rgba(6, 10, 8, .92));
  opacity: 0;
  transition: opacity .18s ease;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ld-reel__tile:hover { transform: translateY(-4px); border-color: rgba(143, 211, 174, .5); }
.ld-reel__tile:hover .ld-reel__slug, .ld-reel__tile:focus-visible .ld-reel__slug { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .ld-pulse { animation: none; }
  .ld-reel__track { animation: none; }
  .ld-reel { overflow-x: auto; }
  .ld-reel__tile:hover { transform: none; }
  .ld-btn:hover { transform: none; }
  .ld-btn:hover svg { transform: none; }
}

/* ---- Stat band: straddles the stage's bottom edge ---- */

.ld-stats {
  position: relative;
  z-index: 2;
  margin: -38px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 56px -32px rgba(8, 14, 10, .55);
}
.ld-stat { background: var(--paper); padding: 24px 22px 22px; }
.ld-stat__value {
  margin: 0;
  font-size: clamp(27px, 3.2vw, 35px);
  font-weight: 620;
  letter-spacing: -1.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--text);
}
.ld-stat__label { margin: 7px 0 0; font-size: 13px; font-weight: 560; color: var(--text); }
.ld-stat__note { margin: 3px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-muted); }

/* ---- Sections ---- */

.ld-section { margin-top: 64px; }
.ld-rule {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 24px;
}
.ld-rule__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 27px; font-weight: 500; letter-spacing: -.018em;
  color: var(--text);
}
.ld-rule__note { margin: 0; font-size: 13.5px; color: var(--text-muted); }

/* ---- Channels ---- */

.ld-chans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ld-chan {
  position: relative;
  display: flex; flex-direction: column; gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--text);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.ld-chan::before {
  /* Each card carries its platform's colour as a quiet corner wash —
     enough to identify it before the label is read. */
  content: "";
  position: absolute; inset: -40% 40% 55% -20%;
  background: radial-gradient(60% 60% at 30% 30%, var(--brand) 0%, transparent 72%);
  opacity: .1;
  pointer-events: none;
  transition: opacity .16s ease;
}
.ld-chan:hover {
  color: var(--text);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  box-shadow: 0 14px 32px -20px color-mix(in srgb, var(--brand) 75%, transparent);
}
.ld-chan:hover::before { opacity: .2; }
.ld-chan--lead {
  grid-column: span 4;
  flex-direction: row; align-items: center; gap: 20px;
  padding: 24px;
}
.ld-chan--lead::before { inset: -120% 55% -40% -8%; }
.ld-chan__mark {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; flex: none;
  border-radius: 12px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 13%, var(--paper));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
}
.ld-chan--lead .ld-chan__mark { width: 54px; height: 54px; border-radius: 15px; }
.ld-chan__body { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ld-chan__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ld-chan__label { font-size: 15.5px; font-weight: 620; letter-spacing: -.3px; }
.ld-chan--lead .ld-chan__label { font-size: 19px; }
.ld-chan__handle { font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.ld-chan__blurb { font-size: 13px; line-height: 1.55; color: var(--text-soft); }
.ld-chan__count {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-end;
  margin-left: auto; padding-left: 16px;
  font-size: 11.5px; color: var(--text-muted);
  text-align: right;
}
.ld-chan__count strong {
  font-size: 15px; font-weight: 620; letter-spacing: -.2px;
  font-variant-numeric: tabular-nums;
  color: var(--text-soft);
}
.ld-chan:not(.ld-chan--lead) .ld-chan__count {
  /* Sits on the card's floor, so the numbers line up across the row
     however tall the blurbs above them run. */
  flex-direction: row; align-items: baseline; gap: 5px;
  margin: auto 0 0; padding: 0;
}
.ld-chan:not(.ld-chan--lead) .ld-chan__count strong { font-size: 13px; letter-spacing: 0; }
.ld-chan__go {
  position: absolute; top: 18px; right: 18px;
  display: inline-flex;
  color: var(--text-muted); opacity: .45;
  transition: opacity .16s ease, color .16s ease;
}
.ld-chan--lead .ld-chan__go { top: 20px; right: 20px; }
.ld-chan:hover .ld-chan__go { opacity: 1; color: var(--brand); }

/* ---- Steps ---- */

.ld-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.ld-step { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.ld-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 14px;
}
.ld-step__title { margin: 0 0 7px; font-size: 16px; font-weight: 620; letter-spacing: -.3px; color: var(--text); }
.ld-step__body { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--text-soft); }

/* ---- Closer ---- */

.ld-closer {
  margin-top: 64px;
  padding: 44px 32px 46px;
  border-radius: 18px;
  background: var(--stage);
  color: var(--stage-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.ld-closer::before {
  content: "";
  position: absolute; inset: -60% -10% auto -10%; height: 200%;
  background: radial-gradient(40% 50% at 50% 12%, rgba(46, 85, 67, .9) 0%, transparent 70%);
  pointer-events: none;
}
.ld-closer__title {
  position: relative;
  margin: 0 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.08;
  color: var(--stage-ink);
  text-wrap: balance;
}
.ld-closer__sub { position: relative; margin: 0; font-size: 15px; color: var(--stage-soft); }
.ld-closer .ld-cta { position: relative; justify-content: center; margin-top: 26px; }

/* ---- Responsive ---- */

@media (max-width: 1000px) {
  .ld-chans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld-chan--lead { grid-column: span 2; }
  .ld-steps { grid-template-columns: 1fr; }
  .ld-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .landing-page .nav__inner { padding: 16px 20px; }
  .landing-page .nav__links > a { font-size: 13px; padding: 6px 9px; }
  .landing-page .container { padding: 0 20px 20px; }
  .landing-page .footer { margin-top: 44px; }
  .landing-page .footer__inner { padding: 22px 20px; }

  .ld-stage { padding: 84px 0 52px; }
  .ld-stage__inner { padding: 0 20px; }
  .ld-eyebrow { margin-bottom: 18px; font-size: 10px; padding: 6px 12px 6px 10px; letter-spacing: .1em; }
  .ld-title { font-size: 38px; line-height: 1.06; letter-spacing: -.024em; }
  .ld-sub { font-size: 15.5px; }
  .ld-cta { margin-top: 24px; gap: 8px; }
  .ld-btn { height: 48px; flex: 1 1 46%; justify-content: center; font-size: 14.5px; padding: 0 16px; }

  .ld-reel { margin-top: 40px; }
  .ld-reel__tile { width: 124px; border-radius: 10px; }
  .ld-reel__run { gap: 11px; padding-right: 11px; }
  .ld-reel__track { animation-duration: 64s; }

  .ld-stats { margin-top: -30px; border-radius: 14px; }
  .ld-stat { padding: 17px 15px; }
  .ld-stat__value { font-size: 26px; letter-spacing: -1px; }
  .ld-stat__label { font-size: 12.5px; margin-top: 5px; }
  .ld-stat__note { font-size: 11.5px; }

  .ld-section { margin-top: 46px; }
  .ld-rule { margin-bottom: 18px; padding-bottom: 13px; }
  .ld-rule__title { font-size: 23px; }

  .ld-chans { grid-template-columns: 1fr; gap: 9px; }
  .ld-chan, .ld-chan--lead {
    grid-column: span 1;
    flex-direction: row; align-items: center; gap: 14px;
    padding: 15px 15px 15px 15px;
  }
  .ld-chan::before, .ld-chan--lead::before { inset: -100% 45% -60% -25%; opacity: .16; }
  .ld-chan__mark, .ld-chan--lead .ld-chan__mark { width: 44px; height: 44px; border-radius: 13px; }
  .ld-chan__label, .ld-chan--lead .ld-chan__label { font-size: 15.5px; }
  .ld-chan__blurb, .ld-chan--lead .ld-chan__blurb { display: none; }
  .ld-chan__go, .ld-chan--lead .ld-chan__go { display: none; }
  .ld-chan__count,
  .ld-chan:not(.ld-chan--lead) .ld-chan__count {
    flex-direction: column; align-items: flex-end; gap: 0;
    margin-left: auto; padding-left: 12px;
    font-size: 10.5px;
  }
  /* A footnote, not a headline: only some channels have a post count,
     and a big numeral would pull the eye to those rather than to the
     order the cards are actually in. */
  .ld-chan__count strong,
  .ld-chan:not(.ld-chan--lead) .ld-chan__count strong {
    font-size: 13px; font-weight: 600; letter-spacing: 0; color: var(--text-soft);
  }

  .ld-step { padding: 18px; }
  .ld-closer { margin-top: 46px; padding: 34px 22px 36px; border-radius: 16px; }
}
