:root {
  --bg-canvas: #160f2e;
  --bg-surface: #2b1c46;
  --bg-surface-hover: #37235a;
  --text-primary: #ffffff;
  --text-muted: #b8accf;
  --accent-primary: #e0409b;
  --accent-secondary: #22d3ee;
  --border-subtle: rgba(224, 64, 155, 0.25);
  --border-cyan: rgba(34, 211, 238, 0.35);
  --shadow-lift: 0 16px 36px rgba(10, 5, 24, 0.55);
  --radius-badge: 9999px;
  --radius-card: 0px;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, .brand, .nav-link, .tag, .btn {
  font-family: "Arial Narrow", "Helvetica Neue", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  overflow-wrap: anywhere;
  hyphens: auto;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
  color: #ffffff;
  text-shadow: 0 0 24px rgba(224, 64, 155, 0.45);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  margin-top: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent-secondary);
}

p {
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 1.025rem;
}

p strong {
  color: #ffffff;
}

a {
  color: var(--accent-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

a:hover, a:focus-visible {
  color: #ffffff;
  text-decoration-color: var(--accent-primary);
}

:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 3px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--accent-primary);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  text-decoration: none;
  font-weight: bold;
}
.skip-link:focus {
  top: 1rem;
}

/* Header & Nav */
.site-header {
  position: relative;
  width: 100%;
  background: rgba(22, 15, 46, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 1.5rem;
  z-index: 100;
}

.header-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-wrapper {
  flex-shrink: 0;
  text-align: left;
}

.brand {
  font-size: 1.25rem;
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-badge);
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 2rem;
}

.nav-group-left, .nav-group-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.35rem 0.2rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-secondary);
  transition: width 0.25s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-secondary);
}

.btn-cta {
  background: var(--accent-primary);
  color: #ffffff;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
  display: inline-block;
  box-shadow: 0 0 14px rgba(224, 64, 155, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cta:hover {
  background: #f152af;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(224, 64, 155, 0.7);
  color: #ffffff;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.4rem 0.75rem;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 1.5rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

/* Hero Section */
.hero-salon {
  position: relative;
  padding: clamp(3rem, 7vw, 6rem) 1.5rem;
  background: radial-gradient(circle at 20% 30%, rgba(224, 64, 155, 0.35) 0%, rgba(34, 211, 238, 0.15) 35%, rgba(22, 15, 46, 0.98) 75%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid var(--accent-secondary);
  color: var(--accent-secondary);
  font-size: 0.75rem;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-badge);
  display: inline-block;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.hero-lead {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #e5daf3;
  max-width: 68ch;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.link-secondary {
  color: var(--accent-secondary);
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 6px;
  font-weight: bold;
}
.link-secondary:hover {
  color: #ffffff;
  text-decoration-color: var(--accent-primary);
}

/* Layout Containers */
.page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.5rem;
  width: 100%;
}

.reading-container {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 1.5rem;
}

/* Alternating Splits */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4.5rem;
  position: relative;
}

.split-row.reverse {
  direction: rtl;
}

.split-row.reverse > * {
  direction: ltr;
}

.split-media {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 10;
  background-color: var(--bg-surface);
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.split-row:hover .split-media img {
  transform: scale(1.03);
}

.media-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 0.9rem;
  background: rgba(22, 15, 46, 0.85);
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Editorial Cards & Bento Grids */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.card-editorial {
  background: var(--bg-surface);
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(10, 5, 24, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-editorial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  background: var(--bg-surface-hover);
}

.card-header-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-year {
  font-size: 0.8rem;
  color: var(--accent-secondary);
  font-family: monospace;
}

/* Director Filmography Rows */
.director-row {
  background: var(--bg-surface);
  border-left: 4px solid var(--accent-primary);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  box-shadow: 0 4px 18px rgba(10, 5, 24, 0.3);
}

.director-aside {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.director-name {
  font-size: 1.4rem;
  color: #ffffff;
}

.director-era {
  font-size: 0.85rem;
  color: var(--accent-secondary);
}

/* Reception Timelines */
.timeline {
  position: relative;
  border-left: 2px solid var(--accent-primary);
  margin: 2rem 0 3rem 1rem;
  padding-left: 1.75rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.35rem;
  top: 0.25rem;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-badge);
  background: var(--accent-secondary);
  box-shadow: 0 0 10px var(--accent-secondary);
}

.timeline-year {
  font-family: monospace;
  color: var(--accent-secondary);
  font-weight: bold;
}

/* Table Wrapper */
.table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  min-width: 600px;
}

th, td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(224, 64, 155, 0.15);
}

th {
  background: rgba(10, 5, 24, 0.6);
  color: #ffffff;
  font-family: "Arial Narrow", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:hover td {
  background: rgba(224, 64, 155, 0.06);
}

/* Interactive Message Tool */
.tool-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-cyan);
  padding: 2rem;
  margin: 2rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-control {
  width: 100%;
  background: rgba(10, 5, 24, 0.8);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
}

.form-control:focus {
  border-color: var(--accent-secondary);
  outline: none;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn-secondary {
  background: transparent;
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--accent-secondary);
  color: #160f2e;
}

.btn-primary-action {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  padding: 0.55rem 1.25rem;
  cursor: pointer;
  font-family: "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.btn-primary-action:hover {
  background: #f152af;
}

.feedback-msg {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--accent-secondary);
  min-height: 1.4rem;
}

/* FAQ Accordion / Grid */
.faq-block {
  margin-bottom: 2rem;
  background: var(--bg-surface);
  padding: 1.75rem;
  border-left: 3px solid var(--accent-secondary);
}

.faq-block h3 {
  color: #ffffff;
  margin-bottom: 0.8rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #0f0a20;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 1.5rem 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-legal-note {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.825rem;
}

/* Animation utilities */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .split-row {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .split-row.reverse {
    direction: ltr;
  }
  .director-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
