/* ==========================================================================
   Kath of Kasheer — Kashmiri Sufi & Folk Music Archive
   Design Aesthetic: 100% Pure Grayscale Archival Field-Note System
   Inspired by: Authentic Kath of Kasheer Instagram Field Recordings & Sufi Philosophy
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Nastaliq+Urdu:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Strict Calibrated Grayscale Palette */
  --g-0: #ffffff;      /* Pure white canvas */
  --g-50: #fafafa;     /* Archival paper / light surface */
  --g-100: #f4f4f5;    /* Field note background */
  --g-200: #e4e4e7;    /* Hairline border */
  --g-300: #d4d4d8;    /* Border active */
  --g-400: #a1a1aa;    /* Subtle metadata & line markers */
  --g-500: #71717a;    /* Muted labels & timestamps */
  --g-600: #52525b;    /* Secondary narrative copy */
  --g-700: #3f3f46;    /* Strong secondary text */
  --g-800: #27272a;    /* Subheadings */
  --g-900: #18181b;    /* Primary text & buttons */
  --g-950: #09090b;    /* Deepest charcoal/black */

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-nastaliq: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', serif;

  /* Layout */
  --max-width: 1120px;
  --header-height: 74px;
  --radius-sm: 3px;
  --radius-md: 6px;
  --transition: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--g-0);
  color: var(--g-950);
}

body {
  font-family: var(--font-sans);
  line-height: 1.65;
  background-color: var(--g-0);
  color: var(--g-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--transition), color var(--transition), border-color var(--transition);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background-color: var(--g-950);
  color: var(--g-0);
}

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

/* ==========================================================================
   Nastaliq / Persian & Kashmiri Script Typography
   ========================================================================== */

.kashmiri-nastaliq,
.nastaliq,
[lang="ks"],
[lang="ur"],
[lang="fa"] {
  font-family: var(--font-nastaliq);
  direction: rtl;
  unicode-bidi: embed;
  line-height: 2.2;
  font-feature-settings: "kern" 1;
}

/* ==========================================================================
   Typographic Name Emphases (Pure Grayscale)
   ========================================================================== */

.name-highlight,
.name-artist,
.name-vocalist,
.name-poet,
.name-instrument,
.name-form {
  color: var(--g-950);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.name-instrument {
  font-weight: 500;
  color: var(--g-900);
}

/* ==========================================================================
   Header & Navigation (Spacious, Elegant & Mobile Responsive)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--g-200);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.25rem 0;
  flex-shrink: 0;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--g-200);
  object-fit: contain;
  display: block;
  background-color: #ffffff;
  transition: transform var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.04);
  border-color: var(--g-950);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--g-950);
  line-height: 1.15;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  color: var(--g-500);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-subtitle .nastaliq {
  font-family: var(--font-nastaliq);
  font-size: 0.85rem;
  letter-spacing: 0;
  margin-right: 0.2rem;
}

/* Desktop Nav */
.desktop-nav {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--g-600);
  padding: 0.45rem 0.15rem;
  position: relative;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--g-950);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--g-950);
  transition: width var(--transition);
}

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

.header-actions,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.ig-link-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--g-950);
  padding: 0.5rem 1rem;
  border: 1px solid var(--g-950);
  border-radius: var(--radius-sm);
  background-color: var(--g-0);
  transition: all var(--transition);
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.ig-link-minimal:hover {
  background-color: var(--g-950);
  color: var(--g-0);
}

.ig-link-minimal svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 38px;
  height: 38px;
  padding: 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--g-200);
  background-color: var(--g-0);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--transition), background-color var(--transition);
}

.mobile-toggle:hover {
  border-color: var(--g-950);
}

.hamburger-bar,
.mobile-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--g-950);
  border-radius: 1px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.mobile-toggle.open .hamburger-bar:nth-child(1),
.mobile-toggle.open .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.open .hamburger-bar:nth-child(2),
.mobile-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.open .hamburger-bar:nth-child(3),
.mobile-toggle.open .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background-color: var(--g-0);
  border-bottom: 1px solid var(--g-200);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.mobile-nav-drawer.open {
  max-height: 540px;
  opacity: 1;
}

.mobile-nav-content {
  padding: 1.5rem 2rem 2rem;
}

.mobile-nav-list {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
}

.mobile-nav-link {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--g-800);
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--g-100);
  letter-spacing: -0.01em;
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-nav-link:hover {
  color: var(--g-950);
  padding-left: 0.35rem;
}

.mobile-drawer-footer {
  padding-top: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  padding: 0.75rem 0 3.25rem;
  border-bottom: 1px solid var(--g-200);
}

.hero-header-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  align-items: center;
  gap: 2.25rem;
  margin-top: 0;
  margin-bottom: 1.75rem;
  position: relative;
}

.hero-title-wrap {
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--g-950);
  margin-top: 0;
  margin-bottom: 0;
}

/* ==========================================================================
   Grand Cinematic Masters Cluster (Directly Beside Heading)
   ========================================================================== */

.heading-masters-cluster {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  user-select: none;
  pointer-events: none;
  width: 100%;
  transform: translateY(-18px);
}

.cluster-track {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  height: 290px;
  width: 100%;
  /* Cinematic gradient mask with higher bottom opacity and subtle base feathering */
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 76%, rgba(0,0,0,0.92) 88%, rgba(0,0,0,0.45) 96%, rgba(0,0,0,0) 100%),
                      linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,1) 76%, rgba(0,0,0,0.92) 88%, rgba(0,0,0,0.45) 96%, rgba(0,0,0,0) 100%),
              linear-gradient(to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 5%, rgba(0,0,0,1) 95%, rgba(0,0,0,0) 100%);
  mask-composite: intersect;
}

.cluster-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease, filter 0.45s ease;
}

.cluster-item img {
  display: block;
  height: auto;
  width: auto;
  object-fit: contain;
}

/* Item 1 (Left / Back - Karakul Master) - Large Scale & Soft Atmospheric Depth */
.cluster-item.item-1 {
  z-index: 1;
  opacity: 0.62;
}
.cluster-item.item-1 img {
  max-height: 245px;
  filter: grayscale(100%) contrast(1.14) brightness(0.94);
}

/* Item 2 (Middle / Sarangi Master) - Deep Overlap (-105px) & Tall Focal Center */
.cluster-item.item-2 {
  z-index: 2;
  margin-left: -105px;
  opacity: 0.92;
}
.cluster-item.item-2 img {
  max-height: 290px;
  filter: grayscale(100%) contrast(1.18) brightness(0.98);
}

/* Item 3 (Right / Foreground / Harmonium Singer) - Deep Overlap (-115px) & High Contrast */
.cluster-item.item-3 {
  z-index: 3;
  margin-left: -115px;
  opacity: 1;
}
.cluster-item.item-3 img {
  max-height: 265px;
  filter: grayscale(100%) contrast(1.24) brightness(1.03);
}

/* Subtle Cinematic Base Blend */
.cluster-cinematic-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38px;
  background: linear-gradient(to top, var(--g-0) 0%, rgba(255, 255, 255, 0.4) 40%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 4;
}

/* Cinematic Hover Dynamics */
.hero-header-cluster:hover .item-1 {
  opacity: 0.78;
  transform: translateX(-8px) translateY(-8px) scale(1.02);
}
.hero-header-cluster:hover .item-2 {
  opacity: 0.98;
  transform: translateY(-12px) scale(1.03);
}
.hero-header-cluster:hover .item-3 {
  opacity: 1;
  transform: translateX(8px) translateY(-6px) scale(1.02);
}

.hero-description {
  font-size: 1.1rem;
  color: var(--g-600);
  line-height: 1.8;
  max-width: 820px;
  margin-bottom: 2.25rem;
}

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

.btn-minimal-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--g-950);
  color: var(--g-0);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--g-950);
  transition: all var(--transition);
}

.btn-minimal-primary:hover {
  background-color: var(--g-700);
  border-color: var(--g-700);
}

.btn-minimal-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--g-950);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--g-200);
  transition: all var(--transition);
}

.btn-minimal-secondary:hover {
  border-color: var(--g-950);
  background-color: var(--g-50);
}

/* ==========================================================================
   Seamless Archival Video Embed (YouTube Video Frame)
   ========================================================================== */

.video-embed-card {
  margin-top: 3rem;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-md);
  background-color: var(--g-0);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.video-embed-card:hover {
  border-color: var(--g-300);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.video-embed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background-color: var(--g-50);
  border-bottom: 1px solid var(--g-200);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-embed-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.video-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--g-950);
  display: inline-block;
}

.video-embed-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--g-700);
  text-transform: uppercase;
}

.video-embed-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--g-600);
  transition: color var(--transition);
  font-weight: 500;
}

.video-embed-link:hover {
  color: var(--g-950);
}

.video-embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background-color: var(--g-950);
  overflow: hidden;
}

.video-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Video Facade (Crystal Clear Full-HD Poster & Error-153 Shield) */
.video-facade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--g-950);
  overflow: hidden;
}

.video-facade-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.video-facade:hover .video-facade-img {
  transform: scale(1.02);
  filter: brightness(1.04);
}

.video-facade-play-badge {
  position: absolute;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(9, 9, 11, 0.88);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
  pointer-events: none;
}

.video-facade-play-badge svg {
  margin-left: 3px; /* visual optical alignment for play triangle */
}

.video-facade:hover .video-facade-play-badge {
  transform: scale(1.12);
  background: rgba(0, 0, 0, 0.96);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.video-embed-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  background-color: var(--g-50);
  border-top: 1px solid var(--g-200);
  font-size: 0.825rem;
  color: var(--g-600);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-embed-caption a {
  color: var(--g-950);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-embed-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--g-400);
  letter-spacing: 0.08em;
}

/* ==========================================================================
   Catalog Meta Bar
   ========================================================================== */

.archive-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--g-200);
  background-color: var(--g-50);
}

.stat-box {
  padding: 1.75rem;
  border-right: 1px solid var(--g-200);
}

.stat-box:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--g-950);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.825rem;
  color: var(--g-600);
}

/* ==========================================================================
   Section Layouts
   ========================================================================== */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--g-200);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--g-500);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-heading {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--g-950);
}

.section-subtext {
  font-size: 0.95rem;
  color: var(--g-600);
  max-width: 500px;
  line-height: 1.6;
}

/* ==========================================================================
   Philosophy of Self & Manifesto Grid
   ========================================================================== */

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.manifesto-prose p {
  font-size: 1.05rem;
  color: var(--g-600);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.fieldnote-box {
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  padding: 2rem;
  background-color: var(--g-50);
}

.fieldnote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--g-200);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--g-500);
}

.fieldnote-quote {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--g-950);
  margin-bottom: 1rem;
}

.fieldnote-desc {
  font-size: 0.875rem;
  color: var(--g-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.fieldnote-footer {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--g-400);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   Musical Traditions Grid
   ========================================================================== */

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

.form-card {
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  background-color: var(--g-0);
  transition: border-color var(--transition);
}

.form-card:hover {
  border-color: var(--g-950);
}

.form-card-index {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--g-400);
  margin-bottom: 1.25rem;
}

.form-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--g-950);
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.form-card-body {
  font-size: 0.925rem;
  color: var(--g-600);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.form-card-instruments {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--g-500);
  border-top: 1px solid var(--g-100);
  padding-top: 1rem;
}

/* ==========================================================================
   Sufi Poets & Master Index Catalog Table
   ========================================================================== */

.maestri-list {
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  background-color: var(--g-0);
}

.maestri-row {
  display: grid;
  grid-template-columns: 80px 1.4fr 1.2fr 1.2fr;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--g-100);
  align-items: center;
  font-size: 0.9rem;
  transition: background-color var(--transition);
}

.maestri-row:last-child {
  border-bottom: none;
}

.maestri-row:hover {
  background-color: var(--g-50);
}

.maestri-row.header-row {
  background-color: var(--g-50);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-500);
  font-weight: 600;
  border-bottom: 1px solid var(--g-200);
}

.maestri-row.header-row:hover {
  background-color: var(--g-50);
}

.maestri-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--g-400);
}

.maestri-tradition {
  color: var(--g-600);
}

.maestri-note {
  color: var(--g-500);
  font-size: 0.85rem;
}

/* ==========================================================================
   Instagram Field Dispatches Section
   ========================================================================== */

.instagram-dispatch-box {
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  background-color: var(--g-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.dispatch-info h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--g-950);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.dispatch-info p {
  font-size: 0.95rem;
  color: var(--g-600);
  max-width: 600px;
}

.dispatch-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.instagram-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ig-post-card {
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  background-color: var(--g-0);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition);
}

.ig-post-card:hover {
  border-color: var(--g-950);
}

.ig-post-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--g-400);
  margin-bottom: 1rem;
}

.ig-post-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--g-950);
  margin-bottom: 0.75rem;
}

.ig-post-desc {
  font-size: 0.875rem;
  color: var(--g-600);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.ig-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--g-100);
  padding-top: 1rem;
  font-size: 0.825rem;
}

.ig-post-link {
  font-weight: 600;
  color: var(--g-950);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.ig-post-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Liner Notes & Verse Bilingual Section
   ========================================================================== */

.liner-section {
  background-color: var(--g-50);
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  padding: 2.5rem;
  margin-top: 3rem;
}

.liner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--g-200);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--g-500);
}

.liner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.liner-koshur {
  font-size: 1.15rem;
  line-height: 1.9;
  color: var(--g-950);
  font-weight: 500;
}

.liner-english {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--g-600);
  border-left: 2px solid var(--g-200);
  padding-left: 1.5rem;
}

/* ==========================================================================
   Contribute / Tape Submission Section
   ========================================================================== */

.tape-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  padding: 3rem;
  background-color: var(--g-0);
}

.tape-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--g-950);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.tape-text p {
  font-size: 0.95rem;
  color: var(--g-600);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.tape-contact-item {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--g-800);
  margin-bottom: 0.5rem;
}

.tape-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.tape-input, .tape-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid var(--g-200);
  border-radius: var(--radius-sm);
  background-color: var(--g-50);
  color: var(--g-950);
  transition: border-color var(--transition), background-color var(--transition);
}

.tape-input:focus, .tape-textarea:focus {
  outline: none;
  border-color: var(--g-950);
  background-color: var(--g-0);
}

.tape-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 4rem 0 3rem;
  background-color: var(--g-0);
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--g-200);
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--g-950);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--g-600);
  max-width: 380px;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--g-600);
}

.footer-links a:hover {
  color: var(--g-950);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  color: var(--g-400);
  flex-wrap: wrap;
  gap: 1rem;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  pointer-events: none;
}

.toast {
  background-color: var(--g-950);
  color: var(--g-0);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-family: var(--font-mono);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints & Phone Optimizations
   ========================================================================== */

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-nav-drawer {
    display: block;
  }

  .hero-header-cluster {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .heading-masters-cluster {
    width: 100%;
    max-width: 480px;
    justify-content: flex-start;
    transform: translateY(-8px);
  }

  .cluster-track {
    height: 280px;
    justify-content: flex-start;
  }

  .cluster-item.item-1 img {
    max-height: 220px;
  }

  .cluster-item.item-2 img {
    max-height: 270px;
  }

  .cluster-item.item-3 img {
    max-height: 240px;
  }

  .cluster-item.item-2 {
    margin-left: -95px;
  }

  .cluster-item.item-3 {
    margin-left: -105px;
  }

  .archive-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-box:nth-child(2) {
    border-right: none;
  }

  .stat-box:nth-child(3) {
    border-top: 1px solid var(--g-200);
  }

  .stat-box:nth-child(4) {
    border-top: 1px solid var(--g-200);
    border-right: none;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .forms-grid {
    grid-template-columns: 1fr;
  }

  .maestri-row {
    grid-template-columns: 60px 1fr 1fr;
  }

  .maestri-row .maestri-note {
    display: none;
  }

  .instagram-posts-grid {
    grid-template-columns: 1fr;
  }

  .liner-grid {
    grid-template-columns: 1fr;
  }

  .tape-box {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 66px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .site-header {
    height: var(--header-height);
  }

  .brand-logo-img {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .brand-subtitle {
    font-size: 0.6rem;
  }

  .ig-link-minimal {
    padding: 0.45rem 0.75rem;
    font-size: 0.775rem;
  }

  .mobile-toggle {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .mobile-nav-content {
    padding: 1.25rem 1.25rem 1.75rem;
  }

  .masters-canvas {
    max-width: 320px;
    height: 250px;
  }

  .figure-back {
    height: 180px;
  }

  .figure-mid {
    height: 200px;
  }

  .figure-front {
    height: 190px;
  }

  .archive-stats-bar {
    grid-template-columns: 1fr;
  }

  .stat-box {
    border-right: none;
    border-top: 1px solid var(--g-200);
    padding: 1.25rem;
  }

  .stat-box:first-child {
    border-top: none;
  }

  .hero {
    padding: 0.85rem 0 2rem;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .heading-masters-cluster {
    transform: translateY(-4px);
  }

  .cluster-track {
    height: 220px;
    justify-content: flex-start;
  }

  .cluster-item.item-1 img {
    max-height: 175px;
  }

  .cluster-item.item-2 img {
    max-height: 215px;
  }

  .cluster-item.item-3 img {
    max-height: 190px;
  }

  .cluster-item.item-2 {
    margin-left: -75px;
  }

  .cluster-item.item-3 {
    margin-left: -80px;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-minimal-primary,
  .hero-actions .btn-minimal-secondary {
    justify-content: center;
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .video-embed-header,
  .video-embed-caption {
    padding: 0.75rem 1rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 1.75rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.85rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

@media (max-width: 420px) {
  .ig-btn-label {
    display: none;
  }

  .ig-link-minimal {
    padding: 0.45rem 0.55rem;
  }
}
