/* LOOMKA immersive layer, Raben / Yuta-inspired studio polish */

:root {
  --studio-header-h: 10.5rem;
  --studio-nav-pill-h: 2.75rem;

  /* Premium LOOMKA palette, deep sage · forest · gold (no flat black) */
  --premium-bg: #1e2a25;
  --premium-bg-elevated: #263530;
  --premium-bg-surface: #2f3d37;
  --premium-bg-alt: #182420;
  --premium-cream: #faf7f2;
  --premium-gold: #d4af37;
  --premium-gold-light: #f0d78c;
  --premium-gold-dim: rgba(212, 175, 55, 0.16);
  --premium-forest: #234035;
  --premium-forest-mid: #3d6b56;
  --premium-forest-light: #5a9078;
  --premium-text: #f5f2eb;
  --premium-text-soft: #e4ddd2;
  --premium-text-muted: rgba(245, 242, 235, 0.72);
  --premium-border: rgba(212, 175, 55, 0.32);
  --premium-border-soft: rgba(212, 175, 55, 0.16);
  --premium-bg-gradient:
    radial-gradient(ellipse 100% 70% at 50% -12%, rgba(61, 107, 86, 0.24), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 85%, rgba(212, 175, 55, 0.07), transparent 48%),
    radial-gradient(ellipse 55% 45% at 0% 55%, rgba(45, 90, 69, 0.14), transparent 42%),
    linear-gradient(168deg, #1e2a25 0%, #243028 38%, #1a2521 100%);

  --studio-green: var(--premium-forest-mid);
  --studio-green-soft: var(--premium-gold-dim);
  --studio-blue: var(--premium-forest-mid);
  --studio-blue-hover: var(--premium-forest-light);
  --studio-landing-bg: var(--premium-bg);
  --studio-card-bg: var(--premium-bg-elevated);
}

html[data-theme="dark"],
body.studio-landing {
  color-scheme: dark;
}

body.studio-landing {
  background: var(--premium-bg-gradient);
  background-attachment: fixed;
  color: var(--premium-text);
}

/* Remap legacy loomka tokens → premium palette (dark) */
html[data-theme="dark"] {
  --void: var(--premium-bg);
  --deep: var(--premium-bg-elevated);
  --stone: var(--premium-bg-surface);
  --mud: var(--premium-bg-surface);
  --bark: var(--premium-bg-elevated);
  --parch: var(--premium-text);
  --parch-dim: var(--premium-text-soft);
  --text-body: var(--premium-text);
  --text-dim: var(--premium-text-soft);
  --text-muted: var(--premium-text-muted);
  --ochre-l: var(--premium-gold-light);
  --ochre: var(--premium-gold);
  --saffron-l: var(--premium-gold);
  --saffron: var(--premium-gold);
  --copper-l: var(--premium-gold);
  --jade-t: #7ec99a;
  --sky: var(--premium-gold-light);
  --crimson: var(--premium-gold);
  --border-p: var(--premium-border);
  --border-j: var(--premium-border-soft);
  --border-s: var(--premium-border-soft);
}

body.has-studio-header {
  padding-top: var(--studio-header-h);
}

/* Hide legacy horizontal nav when using stacked header */
.site-header--stacked .site-nav {
  display: none !important;
}

body.has-studio-header nav.site-nav {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  padding: 0;
  background: transparent !important;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.has-studio-header nav.site-nav::before,
body.has-studio-header nav.site-nav::after {
  display: none !important;
  content: none !important;
  height: 0 !important;
  background: none !important;
}

body.has-studio-header .nav-menu-inner {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

body.has-studio-header .nav-menu-inner::before,
body.has-studio-header .nav-menu-inner::after {
  display: none !important;
  content: none !important;
}

/* ── Stacked header: logo card + blue nav pill ── */
.site-header--stacked {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  padding: 1rem 1.25rem 0.75rem;
  background: linear-gradient(to bottom, var(--studio-landing-bg) 78%, transparent) !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding 0.35s ease;
}

.site-header--stacked.is-scrolled {
  padding: 0.65rem 1rem 0.5rem;
  background: rgba(30, 42, 37, 0.92) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--premium-border);
}

.studio-header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  max-width: 36rem;
  margin: 0 auto;
  position: relative;
}

.studio-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 1.15rem 1.4rem;
  border-radius: 16px;
  background: var(--premium-cream);
  border: 1px solid rgba(198, 167, 94, 0.28);
  text-decoration: none;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.studio-logo-card:hover {
  transform: translateY(-2px);
  border-color: rgba(198, 167, 94, 0.45);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.studio-logo-card-img {
  width: clamp(7rem, 24vw, 10.5rem);
  height: auto;
  display: block;
}

.studio-nav-pill {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: min(100%, 34rem);
  min-height: var(--studio-nav-pill-h);
  padding: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--premium-forest) 0%, var(--premium-forest-mid) 50%, #2d4a3e 100%);
  border: 1px solid rgba(198, 167, 94, 0.28);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  gap: 0;
}

.studio-nav-pill a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.48rem, 1.4vw, 0.58rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(240, 235, 227, 0.78);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.studio-nav-pill a:hover {
  color: var(--premium-gold-light);
  background: rgba(198, 167, 94, 0.12);
}

.studio-nav-pill a.is-active {
  color: var(--premium-gold-light);
  background: rgba(198, 167, 94, 0.2);
}

.site-header--stacked .nav-menu-btn {
  display: none;
  position: absolute;
  right: 0;
  top: 0.35rem;
}

/* Legacy floating pill (fallback) ── */
.site-header--studio:not(.site-header--stacked) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 700;
  padding: 0.75rem 1.25rem;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: padding 0.35s ease;
}

.site-header--studio.is-scrolled {
  padding: 0.5rem 1rem;
}

.site-header--studio .site-nav {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-height: var(--studio-nav-pill-h);
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.35rem 0.55rem 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.site-header--studio .site-nav::before,
.site-header--studio .site-nav::after {
  display: none !important;
  content: none !important;
}

.site-header--studio.is-scrolled .site-nav {
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.11) !important;
}

.site-header--studio .nav-logo {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.site-header--studio .nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.site-header--studio .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.site-header--studio .nav-logo-sub {
  display: none;
}

.site-header--studio .nav-links a {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.site-header--studio .nav-links a.is-active {
  color: var(--studio-green);
}

/* ── Mobile menu ── */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nav-menu-bar {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  margin: 0 auto;
  background: #111111;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-menu-btn.is-open .nav-menu-bar:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-menu-btn.is-open .nav-menu-bar:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.nav-menu {
  position: fixed;
  inset: 0;
  z-index: 690;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-menu[hidden] {
  display: none !important;
}

.nav-menu-inner {
  width: min(100%, 22rem);
  padding: 2rem;
  text-align: center;
}

.nav-menu-links {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.nav-menu-links li + li {
  margin-top: 0.35rem;
}

.nav-menu-links a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 600;
  color: #111111;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.nav-menu-links a.is-active,
.nav-menu-links a:hover {
  color: var(--studio-green);
}

.nav-menu-cta {
  width: 100%;
}

body.nav-menu-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .site-header--studio {
    padding: 0.65rem 0.75rem;
  }

  .site-header--studio .site-nav {
    max-width: none;
    padding: 0.35rem 0.45rem 0.35rem 0.75rem;
  }

  .nav-menu-btn {
    display: inline-flex;
  }
}

/* ── Anna Vidyā case-study strip ── */
.anna-vidya-case {
  margin: 0 0 2.5rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid rgba(0, 96, 45, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 96, 45, 0.05) 0%, #ffffff 60%);
}

.anna-vidya-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.anna-vidya-metrics li {
  text-align: center;
}

.anna-vidya-metrics strong {
  display: block;
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--studio-green);
  margin-bottom: 0.25rem;
}

.anna-vidya-metrics span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #333333;
  font-weight: 600;
}

.anna-vidya-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.anna-vidya-quicklinks .studio-btn {
  min-height: 2.5rem;
  padding: 0.55rem 1.1rem;
  font-size: 0.56rem;
}

@media (max-width: 720px) {
  .anna-vidya-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero--studio .hero-grid,
.hero--studio .data-streams,
.hero--studio #vedic-canvas {
  display: none !important;
}

.hero--studio {
  position: relative;
  min-height: calc(100vh - var(--studio-header-h));
  min-height: calc(100dvh - var(--studio-header-h));
  padding: 1.5rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(212, 175, 55, 0.1), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(61, 107, 86, 0.18), transparent 50%),
    radial-gradient(ellipse 50% 35% at 10% 70%, rgba(45, 90, 69, 0.12), transparent 45%),
    transparent;
  overflow: hidden;
}

.hero--studio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(198, 167, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 167, 94, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.8) 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0.8) 100%);
  pointer-events: none;
}

.hero--studio .hero-glow {
  display: none;
}

.studio-mantra {
  position: relative;
  z-index: 2;
  margin: 0 auto 2rem;
  max-width: 52rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(0.58rem, 1.5vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.85;
  text-transform: uppercase;
  color: var(--premium-text-muted);
  opacity: 0;
}

.studio-preview-card[data-hero-in] {
  opacity: 0;
}

.studio-preview-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: min(100%, 72rem);
  margin: 0 auto;
}

.studio-preview-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--premium-bg-elevated);
  border: 1px solid var(--premium-border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.studio-preview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 167, 94, 0.42);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.studio-preview-visual {
  min-height: 9.5rem;
  border-radius: 12px;
  background: var(--premium-bg-surface);
  border: 1px solid rgba(198, 167, 94, 0.1);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.studio-preview-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.studio-preview-visual--domains {
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 1rem;
  align-content: center;
}

.studio-domain-pill {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--premium-gold-light);
  background: var(--premium-gold-dim);
  border: 1px solid rgba(198, 167, 94, 0.32);
}

.studio-preview-visual--contact {
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.1rem;
  align-items: flex-start;
}

.studio-contact-line {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.72);
}

.studio-contact-line strong {
  color: #ffffff;
  font-weight: 700;
}

.studio-contact-badge {
  margin-top: 0.25rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--premium-gold-light);
  background: rgba(198, 167, 94, 0.12);
  border: 1px solid rgba(198, 167, 94, 0.3);
}

.studio-preview-title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--premium-text);
}

.studio-preview-desc {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.52rem;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: var(--premium-text-muted);
}

@media (max-width: 960px) {
  :root {
    --studio-header-h: 9.5rem;
  }

  .site-header--stacked .studio-nav-pill {
    display: none;
  }

  .site-header--stacked .nav-menu-btn {
    display: inline-flex;
  }

  .studio-preview-grid {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}

@media (max-width: 720px) {
  :root {
    --studio-header-h: 9.75rem;
  }

  .studio-logo-card {
    padding: 0.9rem 1.1rem;
  }

  .studio-logo-card-img {
    width: clamp(5.5rem, 32vw, 7.5rem);
  }
}

/* ── Studio hero (legacy text styles) ── */
.hero--studio .hero-studio {
  position: relative;
  z-index: 2;
  width: min(100%, 54rem);
  margin: 0 auto;
  text-align: center;
}

.hero-display {
  margin: 0 0 1.25rem;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #0a0a0a;
}

.hero-display-line {
  display: block;
}

.hero-display-accent {
  color: var(--studio-green);
}

.hero-lead {
  margin: 0 auto 1.35rem;
  max-width: 38rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.65;
  color: #2a2a2a;
  opacity: 0;
}

.hero--studio .hero-badge {
  margin-bottom: 1.25rem;
  animation: none;
  opacity: 1;
  border-color: rgba(0, 96, 45, 0.25);
  background: var(--studio-green-soft);
}

.hero--studio .hero-system {
  margin-top: 0;
  margin-bottom: 1.5rem;
  animation: none;
  opacity: 1;
}

.hero--studio .sys-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(6px);
}

.hero-cta--studio {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 0;
  animation: none;
  opacity: 1;
}

.studio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.studio-btn--primary {
  background: linear-gradient(135deg, var(--premium-forest) 0%, var(--premium-forest-mid) 100%);
  color: var(--premium-gold-light);
  border: 1px solid rgba(198, 167, 94, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.studio-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.42);
  border-color: rgba(198, 167, 94, 0.5);
}

.studio-btn--ghost {
  background: rgba(198, 167, 94, 0.08);
  color: var(--premium-text);
  border: 1px solid var(--premium-border);
}

.studio-btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--premium-gold);
  color: var(--premium-gold-light);
}

.hero-verse {
  margin: 1.35rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--ochre-l, #b8860b);
  opacity: 0.85;
}

.hero--studio .scroll-hint {
  display: none;
}

.hero-explore {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #111111;
  opacity: 0;
  animation: fadeup 1s ease 1.4s forwards;
}

.hero-explore span:first-child {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-explore-line {
  display: block;
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(to bottom, var(--studio-green), transparent);
  animation: explore-pulse 2s ease-in-out infinite;
}

@keyframes explore-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.55); opacity: 0.45; }
}

/* ── Section polish ── */
.studio-section {
  scroll-margin-top: calc(var(--studio-header-h) + 1rem);
}

.fslider.studio-section .fslider-hdr,
.anna-vidya-section.studio-section .anna-vidya-header,
.projects-section.studio-section .projects-header {
  text-align: center;
}

.studio-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--premium-gold);
  font-weight: 700;
}

@media (max-width: 900px) {
  :root {
    --studio-header-h: 4.75rem;
  }

  .site-header--studio .site-nav {
    padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  }

  .hero--studio {
    padding: 1.5rem 1rem 4.5rem;
  }

  .hero-explore {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-explore-line {
    animation: none;
  }

  .studio-btn:hover {
    transform: none;
  }

  .pcard--studio {
    transform: none !important;
  }
}

/* ── Project case-study cards ── */
.projects-grid--studio {
  gap: 1.15rem !important;
  grid-template-columns: repeat(2, 1fr);
}

.pcard--studio {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

a.pcard--studio:hover {
  color: inherit;
}

.pcard--studio:hover {
  box-shadow: 0 22px 50px rgba(0, 96, 45, 0.14);
  border-color: rgba(0, 96, 45, 0.28) !important;
}

.pcard--featured {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(198, 167, 94, 0.08) 0%, #ffffff 55%);
  border-color: rgba(198, 167, 94, 0.25) !important;
}

.pcard-cta {
  display: inline-block;
  margin-top: 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--premium-gold);
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.pcard--featured:hover .pcard-cta {
  opacity: 1;
  transform: translateY(0);
}

/* ── Theme toggle (Yuta-style Shift) ── */
.theme-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 650;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #111111;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.theme-toggle-icon {
  font-size: 0.85rem;
  line-height: 1;
}

.theme-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 651;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.82);
  color: #ffffff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.theme-toast.is-visible {
  opacity: 1;
}

/* ── Dark mode ── */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background: var(--premium-bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--premium-text);
}

html[data-theme="dark"] .site-header--studio {
  background: transparent !important;
}

html[data-theme="dark"] .site-header--studio .site-nav {
  background: rgba(14, 20, 17, 0.94);
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

html[data-theme="dark"] .site-header--studio.is-scrolled .site-nav {
  background: rgba(14, 20, 17, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

html[data-theme="dark"] .nav-logo-name,
html[data-theme="dark"] .nav-links a {
  color: #e8eee9;
}

html[data-theme="dark"] .nav-links a.is-active {
  color: var(--premium-gold-light);
}

html[data-theme="dark"] .hero-display,
html[data-theme="dark"] .hero-lead,
html[data-theme="dark"] .hero-explore {
  color: #eef2ee;
}

html[data-theme="dark"] .hero-display-accent {
  color: var(--premium-gold-light);
}

html[data-theme="dark"] .hero--studio .sys-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #dce5df;
}

html[data-theme="dark"] .studio-btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: #eef2ee;
  border-color: rgba(255, 255, 255, 0.14);
}

html[data-theme="dark"] .projects-section,
html[data-theme="dark"] .anna-vidya-section,
html[data-theme="dark"] .acronym-section,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .method-section,
html[data-theme="dark"] .fslider {
  background: var(--premium-bg-elevated) !important;
}

html[data-theme="dark"] .philosophy-section,
html[data-theme="dark"] .team-section,
html[data-theme="dark"] .partners-section,
html[data-theme="dark"] .stats-bar {
  background: var(--premium-bg-alt) !important;
}

html[data-theme="dark"] .ticker {
  background: var(--premium-bg-alt) !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] .ticker-item {
  color: var(--premium-text) !important;
}

html[data-theme="dark"] footer {
  background: linear-gradient(180deg, var(--premium-bg-alt) 0%, #152019 100%) !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] footer,
html[data-theme="dark"] footer a,
html[data-theme="dark"] .fcopy {
  color: #b8c4bc !important;
}

html[data-theme="dark"] .fslider-label,
html[data-theme="dark"] .fslider-htitle,
html[data-theme="dark"] .fslider-count {
  color: #eef2ee !important;
}

html[data-theme="dark"] .anna-vidya-section {
  border-color: rgba(255, 255, 255, 0.08) !important;
}

html[data-theme="dark"] .anna-vidya-chip,
html[data-theme="dark"] .anna-vidya-lead,
html[data-theme="dark"] .anna-vidya-outcome h3,
html[data-theme="dark"] .anna-vidya-outcome p,
html[data-theme="dark"] .anna-vidya-app-title,
html[data-theme="dark"] .anna-vidya-app-desc,
html[data-theme="dark"] .anna-vidya-research-title,
html[data-theme="dark"] .anna-vidya-research p,
html[data-theme="dark"] .anna-vidya-hero figcaption {
  color: #dce5df !important;
}

html[data-theme="dark"] .anna-vidya-outcome,
html[data-theme="dark"] .anna-vidya-app-card,
html[data-theme="dark"] .anna-vidya-research {
  background: var(--premium-bg-elevated) !important;
}

html[data-theme="dark"] .anna-vidya-case {
  background: linear-gradient(135deg, rgba(198, 167, 94, 0.1) 0%, var(--premium-bg-elevated) 60%) !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] .anna-vidya-metrics strong {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .nav-menu {
  background: rgba(30, 42, 37, 0.98);
}

html[data-theme="dark"] .nav-menu-links a {
  color: #eef2ee;
}

html[data-theme="dark"] .nav-menu-btn {
  background: rgba(18, 25, 22, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .nav-menu-bar {
  background: #eef2ee;
}

html[data-theme="dark"] .phil-mantras,
html[data-theme="dark"] .phil-principle,
html[data-theme="dark"] .phil-quote {
  color: #dce5df !important;
}

html[data-theme="dark"] .pcard--studio {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] .pcard--studio:hover {
  background: var(--premium-bg-surface) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
  border-color: rgba(198, 167, 94, 0.35) !important;
}

html[data-theme="dark"] .pcard--featured {
  background: linear-gradient(135deg, rgba(198, 167, 94, 0.1) 0%, var(--premium-bg-elevated) 55%) !important;
}

html[data-theme="dark"] .pcard-cta,
html[data-theme="dark"] .pcard-label {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .pcard-label,
html[data-theme="dark"] .ptitle,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .pnum,
html[data-theme="dark"] .pdesc {
  color: #eef2ee !important;
}

html[data-theme="dark"] .theme-toggle {
  background: var(--premium-bg-elevated);
  color: var(--premium-text);
  border-color: var(--premium-border);
}

html[data-theme="dark"] .nav-menu-links a.is-active,
html[data-theme="dark"] .nav-menu-links a:hover {
  color: var(--premium-gold-light);
}

@media (max-width: 900px) {
  .pcard--featured {
    grid-column: span 1;
  }

  .projects-grid--studio {
    grid-template-columns: 1fr !important;
  }
}

/* ── Light mode: studio landing ── */
html[data-theme="light"] body.studio-landing {
  background: #f3efe8;
  color: #1a1816;
}

html[data-theme="light"] .site-header--stacked {
  background: linear-gradient(to bottom, #f3efe8 78%, transparent) !important;
}

html[data-theme="light"] .site-header--stacked.is-scrolled {
  background: rgba(243, 239, 232, 0.96) !important;
}

html[data-theme="light"] .hero--studio {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(198, 167, 94, 0.12), transparent 55%),
    #f3efe8;
}

html[data-theme="light"] .hero--studio::before {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

html[data-theme="light"] .studio-nav-pill {
  background: linear-gradient(135deg, #1a3329 0%, #2d5a45 100%);
}

html[data-theme="light"] .studio-mantra {
  color: rgba(26, 24, 22, 0.5);
}

html[data-theme="light"] .studio-preview-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .studio-preview-visual {
  background: #eeeeee;
  border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .studio-preview-title {
  color: #111111 !important;
}

html[data-theme="light"] .studio-preview-desc {
  color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .studio-contact-line {
  color: rgba(0, 0, 0, 0.65);
}

html[data-theme="light"] .studio-contact-line strong {
  color: #111111;
}

/* ══════════════════════════════════════════════
   Premium site-wide, dark mode readability
   Overrides theme-light.css white sections
══════════════════════════════════════════════ */
html[data-theme="dark"] body {
  background: var(--premium-bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--premium-text) !important;
}

html[data-theme="dark"] main,
html[data-theme="dark"] p,
html[data-theme="dark"] .ameaning,
html[data-theme="dark"] .pdesc,
html[data-theme="dark"] .team-bio,
html[data-theme="dark"] .mantra-trans,
html[data-theme="dark"] .phil-right p,
html[data-theme="dark"] .pp-desc,
html[data-theme="dark"] .method-left > p,
html[data-theme="dark"] .mstep p,
html[data-theme="dark"] .about-text > p,
html[data-theme="dark"] .vcard p,
html[data-theme="dark"] .partners-inner p,
html[data-theme="dark"] .projects-header p,
html[data-theme="dark"] .acronym-header p.desc,
html[data-theme="dark"] .contact-left > p {
  color: var(--premium-text-soft) !important;
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .ptitle,
html[data-theme="dark"] .aroman,
html[data-theme="dark"] .team-name,
html[data-theme="dark"] .phil-right h3,
html[data-theme="dark"] .method-left h2,
html[data-theme="dark"] .about-text h2,
html[data-theme="dark"] .contact-left h2,
html[data-theme="dark"] .fslider-htitle,
html[data-theme="dark"] .pcard-label,
html[data-theme="dark"] .pnum {
  color: var(--premium-text) !important;
}

html[data-theme="dark"] .section-chip,
html[data-theme="dark"] .team-role,
html[data-theme="dark"] .fslider-label,
html[data-theme="dark"] .mflow-title,
html[data-theme="dark"] .mdomains-label,
html[data-theme="dark"] .stat-lbl,
html[data-theme="dark"] .pstatus-note {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .aletter {
  color: var(--premium-gold) !important;
}

html[data-theme="dark"] .tag {
  color: var(--premium-text-soft) !important;
  border-color: var(--premium-border-soft) !important;
  background: rgba(212, 175, 55, 0.06) !important;
}

html[data-theme="dark"] .pcard:hover .tag {
  color: var(--premium-gold-light) !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] .acronym-section,
html[data-theme="dark"] .projects-section,
html[data-theme="dark"] .method-section,
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .anna-vidya-section,
html[data-theme="dark"] .fslider {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .philosophy-section,
html[data-theme="dark"] .team-section,
html[data-theme="dark"] .partners-section,
html[data-theme="dark"] .stats-bar {
  background: var(--premium-bg-alt) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .acronym-item {
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .acronym-item::before {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.08), transparent) !important;
}

html[data-theme="dark"] .pcard:not(.pcard--studio) {
  background: var(--premium-bg-surface) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .pcard:not(.pcard--studio):hover {
  background: #364840 !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] .team-card,
html[data-theme="dark"] .pp-item,
html[data-theme="dark"] .vcard,
html[data-theme="dark"] .partner-item,
html[data-theme="dark"] .mstat,
html[data-theme="dark"] .cdetail {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border-soft) !important;
  color: var(--premium-text-soft) !important;
}

html[data-theme="dark"] .team-card:hover,
html[data-theme="dark"] .vcard:hover,
html[data-theme="dark"] .partner-item:hover,
html[data-theme="dark"] .cdetail:hover {
  background: var(--premium-bg-surface) !important;
  border-color: var(--premium-border) !important;
}

html[data-theme="dark"] .ticker,
html[data-theme="dark"] .ticker::before {
  background: var(--premium-bg-alt) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .ticker-item {
  color: var(--premium-text-soft) !important;
}

html[data-theme="dark"] .ticker::before {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .vedic-divider-inner {
  background: var(--premium-bg-elevated) !important;
}

html[data-theme="dark"] .vedic-divider::before {
  opacity: 0.55;
}

html[data-theme="dark"] .fslider-arr {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border) !important;
  color: var(--premium-gold-light) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

html[data-theme="dark"] .fslider-arr:hover {
  background: var(--premium-bg-surface) !important;
}

html[data-theme="dark"] .fslider-count,
html[data-theme="dark"] .mstat-lbl,
html[data-theme="dark"] .mflow-step-sub,
html[data-theme="dark"] .mdtag {
  color: var(--premium-text-muted) !important;
}

html[data-theme="dark"] .fcopy,
html[data-theme="dark"] .footer-sub,
html[data-theme="dark"] .flinks a,
html[data-theme="dark"] .footer-legal a {
  color: var(--premium-text-muted) !important;
}

html[data-theme="dark"] .flinks a:hover {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .fchip {
  color: var(--premium-gold-light) !important;
  background: var(--premium-gold-dim) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .contact-email,
html[data-theme="dark"] .cdetail a.contact-email {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .anna-vidya-chip,
html[data-theme="dark"] .anna-vidya-lead,
html[data-theme="dark"] .anna-vidya-outcome h3,
html[data-theme="dark"] .anna-vidya-outcome p,
html[data-theme="dark"] .anna-vidya-app-title,
html[data-theme="dark"] .anna-vidya-app-desc,
html[data-theme="dark"] .anna-vidya-research-title,
html[data-theme="dark"] .anna-vidya-research p,
html[data-theme="dark"] .anna-vidya-hero figcaption {
  color: var(--premium-text-soft) !important;
}

html[data-theme="dark"] .anna-vidya-outcome,
html[data-theme="dark"] .anna-vidya-app-card,
html[data-theme="dark"] .anna-vidya-research,
html[data-theme="dark"] .anna-vidya-hero img {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: var(--premium-bg-alt);
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: var(--premium-forest-mid);
}

html[data-theme="dark"] .fslider {
  background: var(--premium-bg) !important;
}

html[data-theme="dark"] .field-snapshot-section {
  background: var(--premium-bg-alt) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .field-snapshot-lead,
html[data-theme="dark"] .field-snapshot-card p,
html[data-theme="dark"] .field-snapshot-foot {
  color: var(--premium-text-soft) !important;
}

html[data-theme="dark"] .field-snapshot-card {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .field-snapshot-h3,
html[data-theme="dark"] .field-snapshot-a {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .pdesc,
html[data-theme="dark"] .pcard-dev,
html[data-theme="dark"] .ameaning,
html[data-theme="dark"] .projects-header p,
html[data-theme="dark"] .partner-name,
html[data-theme="dark"] .about-text h2 {
  color: var(--premium-text-soft) !important;
}

html[data-theme="dark"] .stat-num,
html[data-theme="dark"] .stat-dev {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .footer-name {
  color: var(--premium-gold-light) !important;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.35) !important;
}

html[data-theme="dark"] .footer-motto {
  color: var(--premium-gold) !important;
}

html[data-theme="dark"] .mflow-step-name,
html[data-theme="dark"] .mantra-dev,
html[data-theme="dark"] .mquote-verse {
  color: var(--premium-text) !important;
}

html[data-theme="dark"] .anna-vidya-chip {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .anna-vidya-outcomes {
  background: var(--premium-border-soft) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .anna-vidya-preview {
  background: var(--premium-bg-elevated) !important;
  border-color: var(--premium-border-soft) !important;
}

html[data-theme="dark"] .acronym-section .section-title span {
  color: var(--premium-gold-light) !important;
}

html[data-theme="dark"] .aroman span {
  color: var(--premium-text-muted) !important;
}
