/* Certifiable Media — carried over from the Carrd original */
:root {
  --bg: #f7f7f7;
  --ink: #2b2b2b;
  --muted: #8d8d8d;
  --teal: #15968f;
  --navy: #060119;
  --card: #ffffff;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(#dcdcdc 1.6px, transparent 1.8px);
  background-size: 64px 64px;
  line-height: 1.5;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
  flex-wrap: wrap;
}

.logo img {
  width: min(300px, 62vw);
  height: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav a:hover { background: #000; transform: translateY(-1px); }
.nav a.active { background: var(--teal); }

/* ---------- squiggle divider ---------- */
.squiggle { margin: 2.75rem 0; }
.squiggle svg { display: block; width: 100%; height: 16px; }

/* ---------- section headings ---------- */
.section-title {
  text-align: center;
  color: var(--muted);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.75rem;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  margin: -1rem 0 2rem;
}

/* ---------- latest cards (home) ---------- */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.latest-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.latest-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.latest-card .thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  display: block;
  background: var(--ink);
}

.latest-card .thumb-tile {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
  padding: 1rem;
}

.latest-card .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal);
}

.latest-card h3 { margin: 0; font-size: 1.15rem; line-height: 1.35; }
.latest-card .date { color: var(--muted); font-size: 0.85rem; }
.latest-card p.blurb { margin: 0; color: #555; font-size: 0.95rem; flex: 1; }

.card-link {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.35rem;
  display: inline-block;
}
.card-link:hover { text-decoration: underline; }

/* ---------- film grid ---------- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.6rem;
}

.film-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  aspect-ratio: 2 / 3;
  background: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.film-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.film-card .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 0.9rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.film-card.title-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem;
  text-decoration: none;
}

/* ---------- project cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-card .thumb {
  aspect-ratio: 16 / 8;
  object-fit: cover;
  width: 100%;
  display: block;
}

.project-card .thumb-tile {
  aspect-ratio: 16 / 8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
}

.project-card .body { padding: 1.35rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.project-card h3 { margin: 0; font-size: 1.3rem; }
.project-card p { margin: 0; color: #555; flex: 1; }

/* ---------- social buttons ---------- */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}

.btn-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  padding: 0.65rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn-row a:hover { transform: translateY(-1px); }
.btn-row a.teal { background: var(--teal); }
.btn-row a.navy { background: var(--navy); }
.btn-row a svg { width: 1.1em; height: 1.1em; fill: #fff; }
.btn-row a img.btn-ic { height: 1.25em; width: auto; display: block; }

/* ---------- footer ---------- */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2.5rem 0 3rem;
}

.site-footer nav { margin-bottom: 0.75rem; }
.site-footer nav a { color: var(--muted); text-decoration: none; margin: 0 0.6rem; }
.site-footer nav a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .latest-grid { grid-template-columns: 1fr; max-width: 26rem; margin-left: auto; margin-right: auto; }
  .project-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { justify-content: center; text-align: center; padding-top: 2rem; }
  .nav { justify-content: center; }
  .film-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* ---------- spotlight hero (home) ---------- */
.spotlight {
  background: var(--navy);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 12px 40px rgba(6, 1, 25, 0.35);
  margin-top: 1rem;
}

.spotlight-stage { display: grid; }

.spotlight-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 400px;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.spotlight-slide.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.spot-visual {
  min-height: 400px;
  background-size: cover;
  background-position: center;
}

.spot-visual.tile {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  text-align: center;
  padding: 2rem;
  line-height: 1.3;
}

.spot-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}

.spot-content .kicker { color: #6ee7d8; }

.spot-content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.spot-content .date { color: #b9b9c9; font-size: 0.9rem; }
.spot-content p.blurb { margin: 0; color: #d7d7e0; font-size: 1.05rem; max-width: 30rem; }

.spot-cta {
  align-self: flex-start;
  margin-top: 0.6rem;
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.8rem 1.9rem;
  border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.spot-cta:hover { background: #17a89f; transform: translateY(-1px); }

.spot-tabs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
  flex-wrap: wrap;
}

.spot-tabs button {
  font: inherit;
  cursor: pointer;
  border: 2px solid transparent;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.spot-tabs button[aria-selected="true"] { background: var(--teal); }
.spot-tabs button:hover { border-color: var(--teal); }

@media (max-width: 860px) {
  .spotlight-slide { grid-template-columns: 1fr; }
  .spot-visual { min-height: 0; aspect-ratio: 16 / 9; }
  .spot-visual.tile { font-size: 1.5rem; }
  .spot-content { padding: 2rem 1.5rem; }
  .spot-content h2 { font-size: 1.7rem; }
}

.spot-tabs .spot-toggle {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.spot-tabs .spot-toggle:hover { border-color: var(--teal); }
.spot-tabs .spot-toggle[aria-pressed="true"] { background: var(--teal); }
.spot-tabs .spot-toggle svg { width: 1rem; height: 1rem; fill: #fff; display: block; padding: 0; }
.spot-tabs .spot-toggle svg[hidden] { display: none; }

/* ---------- book page ---------- */
.book-hero { text-align: center; margin-top: 1rem; }
.book-hero .tagline {
  font-size: 1.35rem;
  color: var(--muted);
  font-style: italic;
  margin: 0.4rem 0 0;
}
.book-art {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  display: block;
  margin-top: 1.75rem;
}
.book-blurb {
  max-width: 44rem;
  margin: 2rem auto 1.75rem;
  font-size: 1.12rem;
  text-align: center;
  color: #3d3d3d;
}
.book-world { max-width: 44rem; margin: 0 auto; }
.book-world p { margin: 0 0 1.1rem; color: #444; line-height: 1.65; }
.book-world .signoff { font-weight: 700; color: var(--ink); }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.quote-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  font-style: italic;
  color: #4a4a4a;
  margin: 0;
}
.quote-card footer {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
@media (max-width: 640px) {
  .quote-grid { grid-template-columns: 1fr; }
}

/* ---------- film watch page ---------- */
.trailer {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  margin: 2rem auto 0;
  max-width: 56rem;
  background: #111;
}
.trailer iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.watch-group { margin: 0 0 1.75rem; }
.watch-group h3 {
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
  color: var(--ink);
}
.watch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.watch-card {
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.07);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease;
}
.watch-card:hover { transform: translateY(-2px); }
.watch-card strong { display: block; font-size: 1.05rem; }
.watch-card span { color: var(--muted); font-size: 0.92rem; }
.watch-logo {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin-bottom: 0.85rem;
}
@media (max-width: 640px) {
  .watch-grid { grid-template-columns: 1fr; }
}
