:root {
  --bg: #0f0e1a;
  --bg-elevated: #1a1828;
  --accent: #f9b873;
  --accent2: #6b8fd4;
  --text: #f3f0f8;
  --muted: #a39eb5;
  --stripe-warm: rgba(249, 184, 115, 0.12);
  --stripe-cool: rgba(107, 143, 212, 0.14);
  --stripe-neutral: rgba(163, 158, 181, 0.1);
  --dock-h: 4.25rem;
  --edge: clamp(1.25rem, 4vw, 2.5rem);
  --max: 68rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, #2a2540 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
  padding-bottom: calc(var(--dock-h) + 1.5rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #1a1020;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: var(--edge);
  top: 0.5rem;
}

.masthead {
  text-align: center;
  padding: 2.5rem var(--edge) 1rem;
  max-width: var(--max);
  margin: 0 auto;
}

.masthead__kicker {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--accent2);
  margin: 0 0 0.5rem;
}

.masthead__title {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}

.masthead__tag {
  color: var(--muted);
  margin: 0.35rem 0 0;
  font-size: 1.15rem;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--edge) 3rem;
}

/* Hero — window_frame + staggered intros */
.hero--window {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .hero--window {
    grid-template-columns: 1fr 1.15fr;
    grid-template-areas:
      "introL frame"
      "introR frame";
    align-items: start;
  }

  .hero__intro--left {
    grid-area: introL;
  }

  .window-frame {
    grid-area: frame;
  }

  .hero__intro--right {
    grid-area: introR;
  }
}

.hero__lede {
  font-size: 1.2rem;
  margin: 0;
}

.hero__cta {
  display: inline-block;
  margin-top: 1rem;
  color: #1a1020;
  background: var(--accent);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero__cta:hover {
  filter: brightness(1.08);
}

.window-frame {
  margin: 0;
  background: var(--bg-elevated);
  border-radius: 14px;
  padding: 0.65rem 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.window-frame__chrome {
  display: flex;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem 0.75rem;
}

.window-frame__chrome span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.window-frame__chrome span:first-child {
  background: #e8847a;
}

.window-frame__chrome span:nth-child(2) {
  background: #e8c47a;
}

.window-frame__chrome span:nth-child(3) {
  background: #7bc97b;
}

.window-frame__shot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.window-frame__cap {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  margin: 0.75rem 0 0;
}

/* Section intros — staggered_mixed */
.section-intro {
  margin-bottom: 1.75rem;
}

.section-intro h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  margin: 0 0 0.35rem;
}

.section-intro__sub {
  color: var(--muted);
  margin: 0;
}

.section-intro--stagger-a {
  text-align: left;
}

.section-intro--stagger-b {
  text-align: right;
  max-width: 22rem;
  margin-left: auto;
}

.section-intro--stagger-c {
  text-align: left;
  transform: translateX(1.5rem);
}

/* stripe_list */
.stripe-list {
  margin-bottom: 4.5rem;
}

.stripe-list__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stripe {
  padding: 1.35rem 1.5rem;
  border-left: 4px solid transparent;
}

.stripe h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.stripe p {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
}

.stripe--warm {
  background: var(--stripe-warm);
  border-left-color: var(--accent);
}

.stripe--cool {
  background: var(--stripe-cool);
  border-left-color: var(--accent2);
}

.stripe--neutral {
  background: var(--stripe-neutral);
  border-left-color: var(--muted);
}

/* film_strip */
.film-strip {
  margin-bottom: 4rem;
  overflow: hidden;
}

.film-strip__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.film-strip__cell {
  flex: 0 0 min(72vw, 280px);
  margin: 0;
  scroll-snap-align: start;
  background: var(--bg-elevated);
  border-radius: 6px;
  padding: 0.5rem 0.5rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.film-strip__cell img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.film-strip__cell figcaption {
  font-size: 0.82rem;
  color: var(--accent);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* About */
.about {
  margin-bottom: 3.5rem;
}

.about__prose p {
  max-width: 40rem;
}

.about__prose p + p {
  margin-top: 1rem;
}

/* legal — single_column_dropcap */
.legal {
  margin-bottom: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal h2 {
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.legal__effective {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal__body > p:first-child::first-letter {
  float: left;
  font-size: 3.2rem;
  line-height: 0.85;
  padding-right: 0.12em;
  color: var(--accent);
  font-weight: 600;
}

.legal a {
  color: var(--accent2);
}

/* Footer */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 2rem var(--edge) 1rem;
}

/* bottom_dock */
.bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--dock-h);
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: rgba(15, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 50;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-dock__link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem;
}

.bottom-dock__link:hover,
.bottom-dock__link:focus-visible {
  color: var(--accent);
}

.bottom-dock__link.is-active {
  color: var(--accent);
  font-weight: 600;
}
