:root {
  --bg: #111018;
  --bg-soft: #181520;
  --panel: #1b1824;
  --text: #f7f4ff;
  --muted: #b6adc9;
  --line: rgba(179, 156, 255, 0.14);
  --accent: #7d4dff;
  --accent-deep: #6636e7;
  --accent-soft: rgba(125, 77, 255, 0.14);
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
  --radius-lg: 30px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0f0d16 0%, #17131f 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(17, 16, 24, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.brand-restaurant {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-excellence-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand-excellence-inline {
  transform: translateY(0.1rem);
}

.brand-excellence {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.75rem, 3.4vw, 2.3rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
}

.brand-arrow,
.hero-arrow {
  position: relative;
  width: 100%;
  height: 10px;
}

.brand-arrow {
  min-width: 120px;
}

.brand-arrow::before,
.brand-arrow::after,
.hero-arrow::before,
.hero-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
}

.brand-arrow::before,
.hero-arrow::before {
  left: 0;
  right: 0.4rem;
  border-top: 1.5px solid var(--accent);
  transform: translateY(-50%);
}

.brand-arrow::after,
.hero-arrow::after {
  right: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-top: 1.5px solid var(--accent);
  border-right: 1.5px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.nav-links,
.home-card-tag,
.site-footer p,
.footer-note,
.section-heading p,
.episode-placeholder-text {
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.35rem;
  font-size: 0.96rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  padding: 7rem 0 5rem;
}

.hero-minimal {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
}

.hero-fullscreen {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at top center, rgba(125, 77, 255, 0.12), transparent 32%),
    linear-gradient(180deg, #111018 0%, #181520 100%);
}

.hero-centered {
  display: grid;
  gap: 3rem;
  justify-items: center;
  min-height: 100vh;
  align-content: center;
}

.hero-wordmark {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.hero-title-stack {
  display: inline-flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-script {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  filter: blur(2px);
  will-change: clip-path, opacity, filter;
  font-family: "Alex Brush", cursive;
  font-size: clamp(3rem, 6.8vw, 5rem);
  line-height: 0.9;
  color: rgba(247, 244, 255, 0.92);
}

.hero-script-top {
  margin-bottom: 0.15rem;
}

.hero-script-bottom {
  margin-top: 0.45rem;
}

.hero-restaurant,
.hero-excellence {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  filter: blur(2px);
  will-change: clip-path, opacity, filter;
}

.hero-restaurant {
  font-size: clamp(3.25rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-excellence-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateY(0.45rem);
}

.hero-excellence {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.5rem, 9vw, 7.3rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
  color: var(--accent);
}

.hero-arrow {
  min-width: 200px;
  opacity: 0;
  transform: scaleX(0.15);
  transform-origin: left center;
  animation: arrowReveal 8s ease-in-out infinite;
}

.hero-write-restaurant,
.hero-write-excellence,
.hero-write-script {
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.22, 0.8, 0.2, 1);
}

.hero-write-restaurant {
  animation-name: writeRestaurant;
}

.hero-write-excellence {
  animation-name: writeExcellence;
}

.hero-write-script {
  animation-name: writeScript;
}

.homepage-episodes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-card,
.episode-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease;
}

.home-card {
  aspect-ratio: 16 / 10;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, #1a1723 0%, #211d2c 100%);
  overflow: hidden;
  position: relative;
}

.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 35%, rgba(7, 6, 12, 0.28) 100%),
    linear-gradient(135deg, rgba(125, 77, 255, 0.08), rgba(125, 77, 255, 0.02));
  pointer-events: none;
}

.home-card-tag {
  position: relative;
  font-size: 0.92rem;
  font-weight: 700;
}

.home-card:hover,
.home-card:focus-within,
.episode-card:hover,
.episode-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(125, 77, 255, 0.22);
  box-shadow:
    0 22px 52px rgba(77, 54, 153, 0.12),
    0 0 0 1px rgba(125, 77, 255, 0.08),
    0 0 24px rgba(125, 77, 255, 0.12);
}

.section {
  padding: 3.5rem 0 5rem;
}

.featured-home {
  padding-top: 1.5rem;
  background: linear-gradient(180deg, #181520 0%, #12101a 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.featured-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 0.98;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

.episodes-page {
  min-height: calc(100vh - 180px);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: end;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent);
}

.page-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.95;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.filter-button {
  cursor: pointer;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.82rem 1rem;
  font-weight: 800;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.filter-button:hover,
.filter-button:focus-visible {
  transform: translateY(-2px);
}

.filter-button.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.episode-card {
  min-height: 180px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #1a1723 0%, #211d2c 100%);
}

.episode-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.episode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(125, 77, 255, 0.1);
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.episode-placeholder-title {
  margin: 1rem 0 0.55rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.episode-placeholder-text {
  margin: 0;
  line-height: 1.7;
}

.site-footer {
  padding: 0 0 3rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes writeRestaurant {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(2px);
  }

  14% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }

  68% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }

  86% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(1px);
  }

  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes writeExcellence {
  0%,
  14% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(2px);
  }

  28% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }

  68% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }

  88% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(1px);
  }

  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(1px);
  }
}

@keyframes arrowReveal {
  0%,
  22% {
    opacity: 0;
    transform: scaleX(0.15);
  }

  30%,
  68% {
    opacity: 1;
    transform: scaleX(1);
  }

  88%,
  100% {
    opacity: 0;
    transform: scaleX(0.15);
  }
}

@keyframes writeScript {
  0%,
  24% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(2px);
  }

  44% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }

  68% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    filter: blur(0);
  }

  88% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(1px);
  }

  100% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
    filter: blur(1px);
  }
}

@media (max-width: 980px) {
  .section-heading-row,
  .episode-grid,
  .homepage-episodes {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .nav {
    min-height: auto;
    padding: 1rem 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-wordmark {
    justify-items: start;
  }

  .hero-title-stack {
    justify-content: flex-start;
  }

  .hero-centered {
    justify-items: stretch;
  }

  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .hero-fullscreen,
  .hero-centered {
    min-height: calc(100vh - 88px);
  }

  .hero-wordmark {
    gap: 0.45rem;
  }

  .hero-excellence-wrap {
    transform: translateY(0.2rem);
  }

  .hero-arrow {
    min-width: 150px;
  }

  .filter-bar {
    display: grid;
  }

  .filter-button {
    width: 100%;
  }
}
