/* ─── Theme tokens ─────────────────────────────────────────────────────── */
:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-alt: #f2efe8;
  --border: #e8e2d6;
  --text: #2d2a26;
  --muted: #7a7066;
  --accent: #7a8b6f;
  --accent-dark: #5c6e54;
  --shadow: 0 1px 2px rgba(45, 42, 38, 0.04),
            0 8px 24px rgba(45, 42, 38, 0.06);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1180px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; }

/* ─── Layout ───────────────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Header / Hero ────────────────────────────────────────────────────── */
.site-header {
  padding: 28px 0 8px;
}

.site-header .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 14;
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.78; }

.brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}

.brand:hover .brand-logo { transform: translateY(-1px) rotate(-3deg); }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent-dark); }

/* ─── Hamburger toggle (hidden on desktop) ─────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links a.nav-youtube {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ff0000;
  font-weight: 500;
}

.nav-links a.nav-youtube:hover { color: #cc0000; }

.yt-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.hero {
  padding: 64px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  gap: 64px;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-image {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(0);
  animation: heroFloat 0.8s ease both;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(45, 42, 38, 0.05);
  border-radius: inherit;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-image:hover img { transform: scale(1.02); }

@keyframes heroFloat {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent-dark);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* ─── Section heading ──────────────────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 24px 0 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0;
}

.section-head .count {
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Video grid ───────────────────────────────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px 24px;
  padding-bottom: 96px;
}

.card {
  background: transparent;
  border-radius: var(--radius);
  text-align: left;
  width: 100%;
  padding: 0;
  transition: transform 0.25s ease;
}

.card:hover { transform: translateY(-2px); }

.thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
  transition: box-shadow 0.25s ease;
}

.card:hover .thumb {
  box-shadow: 0 4px 12px rgba(45, 42, 38, 0.08),
              0 14px 36px rgba(45, 42, 38, 0.10);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .thumb img { transform: scale(1.03); }

.play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(45, 42, 38, 0) 40%,
    rgba(45, 42, 38, 0.35) 100%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card:hover .play-icon,
.card:focus-visible .play-icon { opacity: 1; }

.play-icon span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(250, 248, 243, 0.92);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.play-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-dark);
  margin-left: 3px;
}

.card-body { padding: 16px 4px 0; }

.card-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--text);
  margin: 0 0 6px;
  font-variation-settings: "opsz" 24;
}

.card-desc {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Empty state ──────────────────────────────────────────────────────── */
.empty {
  padding: 48px 24px 96px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.empty code {
  background: var(--surface-alt);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ─── Modal (player) ───────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(45, 42, 38, 0.62);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade 0.25s ease;
}

.modal.open { display: flex; }

.modal-inner {
  width: min(960px, 100%);
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  animation: rise 0.3s ease;
}

.modal-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

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

.modal-meta {
  padding: 18px 22px 22px;
}

.modal-meta h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.modal-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(250, 248, 243, 0.9);
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.2s ease;
}

.modal-close:hover { background: var(--surface); }

.modal-close svg { width: 16px; height: 16px; stroke: var(--text); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

/* ─── About modal ──────────────────────────────────────────────────────── */
.about-inner {
  position: relative;
  max-width: 760px;
  padding: 40px 44px 44px;
  background: var(--surface);
}

.about-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.about-image {
  flex: 0 0 auto;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-alt);
  box-shadow: var(--shadow);
  position: relative;
}

.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--bg);
  pointer-events: none;
}

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

.about-body { flex: 1; min-width: 0; }

.about-eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}

.about-body h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 4px;
  font-variation-settings: "opsz" 72, "SOFT" 50;
}

.about-role {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 18px;
  font-style: italic;
}

.about-body p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text);
}

.about-body p strong {
  font-weight: 500;
  color: var(--accent-dark);
}

.about-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--surface);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

@media (max-width: 620px) {
  .about-inner { padding: 32px 24px 28px; }
  .about-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }
  .about-image { width: 132px; height: 132px; }
  .about-body h2 { font-size: 28px; }
}

/* ─── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--accent-dark);
  text-decoration: none;
}

.site-footer a:hover { text-decoration: underline; }

/* ─── Reduced motion ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ─── Small screens ────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0 40px;
  }
  .hero-image { aspect-ratio: 16 / 10; max-height: 360px; }
}

@media (max-width: 540px) {
  .hero { padding: 40px 0 32px; gap: 28px; }
  .hero-image { aspect-ratio: 4 / 3; }
  .nav-links { gap: 18px; }
  .video-grid { gap: 24px 16px; }
}

/* ─── Mobile header & single-column layout ─────────────────────────────── */
@media (max-width: 600px) {
  .container { padding: 0 18px; }

  .site-header .top {
    flex-wrap: wrap;
    gap: 14px;
  }

  /* Show the hamburger; collapse the nav into a dropdown */
  .nav-toggle { display: inline-flex; }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 6px 2px 4px;
  }
  .nav-links.open { display: flex; }

  /* Let the section heading wrap instead of squeezing */
  .section-head {
    flex-wrap: wrap;
    gap: 12px;
  }

  /* One column — avoids the 300px min-track overflow on narrow phones */
  .video-grid { grid-template-columns: 1fr; }
}
