/* Studio Vedic — Bermuda Triangle */

:root {
  --ink: #e6f1f4;
  --ink-soft: #a9c1c9;
  --ink-dim: #6f8b95;
  --teal: #5ee6d6;
  --teal-deep: #1a8f99;
  --gold: #f3b53a;
  --gold-hot: #ffd36b;
  --line: rgba(166, 220, 230, .14);
  --panel: rgba(6, 22, 32, .62);
  --abyss-top: #0d4c5e;
  --abyss-bottom: #010307;
  --depth: 0;             /* 0 at the surface, 1 at 1,600 m — set by main.js */
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Cinzel", Georgia, serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--abyss-bottom);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.12; }
h2 {
  font-family: var(--display);
  font-size: clamp(28px, 4.2vw, 48px);
  letter-spacing: .01em;
  margin-bottom: 20px;
  text-wrap: balance;
}
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 16px; }
strong { color: #fff; font-weight: 600; }
em { color: var(--teal); font-style: normal; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); line-height: 1.55; }
.narrow { max-width: 640px; }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }
.section p:not(.eyebrow):not(.lead) { color: var(--ink-soft); }

/* ---------- The descending background ---------- */
.abyss {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(94, 230, 214, calc(.28 * (1 - var(--depth)))), transparent 60%),
    linear-gradient(180deg,
      color-mix(in srgb, var(--abyss-top) calc(100% - var(--depth) * 100%), var(--abyss-bottom)) 0%,
      var(--abyss-bottom) 100%);
  transition: background .2s linear;
}
.snow { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--body);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hot), var(--gold));
  color: #1b1003;
  box-shadow: 0 8px 28px -10px rgba(243, 181, 58, .7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(243, 181, 58, .85); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: rgba(230, 241, 244, .35); color: var(--ink); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal); color: #fff; background: rgba(94, 230, 214, .08); }
.btn.is-disabled { opacity: .55; cursor: default; filter: saturate(.6); }
.btn.is-disabled:hover { transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  padding: 0 var(--gutter);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(2, 10, 16, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; color: var(--teal); }
.brand-name { font: 700 15px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-soft);
  position: relative; padding: 6px 0;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--teal);
  transition: right .25s;
}
.nav-links a:not(.btn):hover, .nav-links a.is-current { color: #fff; }
.nav-links a:not(.btn):hover::after, .nav-links a.is-current::after { right: 0; }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(2, 10, 16, .96); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-links.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-links a:not(.btn) { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 18px; justify-content: center; }
  .nav.menu-open { background: rgba(2, 10, 16, .96); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(1,6,10,.55) 0%, rgba(1,6,10,0) 22%),
    linear-gradient(90deg, rgba(1,6,10,.85) 0%, rgba(1,6,10,.35) 55%, rgba(1,6,10,0) 80%),
    linear-gradient(0deg, var(--abyss-top) 0%, rgba(13,76,94,0) 32%);
}
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter) clamp(90px, 14vh, 150px); }
.title {
  font-family: var(--display);
  font-size: clamp(54px, 10vw, 132px);
  line-height: .92;
  letter-spacing: .015em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3cf 0%, var(--gold-hot) 38%, var(--gold) 70%, #b97717 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 30px rgba(0,0,0,.55));
  margin-bottom: 22px;
}
.tagline { font-size: clamp(20px, 2.3vw, 28px); color: #fff; max-width: 560px; margin-bottom: 10px; }
.hero-meta { font: 500 13px/1.5 var(--mono); letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 24px; height: 40px; border: 1.5px solid rgba(230,241,244,.5); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  background: var(--ink); border-radius: 2px; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Depth gauge ---------- */
.gauge {
  position: fixed; right: 22px; top: 50%; translate: 0 -50%; z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-family: var(--mono);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.gauge.is-on { opacity: 1; }
.gauge-read { font-size: 15px; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.gauge-read small { font-size: 11px; margin-left: 3px; color: var(--ink-dim); }
.gauge-rail { width: 2px; height: 38vh; background: var(--line); border-radius: 2px; position: relative; overflow: hidden; }
.gauge-fill { position: absolute; left: 0; right: 0; top: 0; height: 0; background: linear-gradient(var(--teal), var(--gold)); }
.gauge-layer {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim);
  max-height: 200px;
}
@media (max-width: 1260px) { .gauge { display: none; } }

/* ---------- Story ---------- */
.story-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.story-text h2 { font-size: clamp(28px, 3.6vw, 42px); }
.story-stills { position: relative; aspect-ratio: 1 / 1.05; }
.still { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.still img { width: 100%; height: 100%; object-fit: cover; }
.still.s1 { inset: 0 18% 52% 0; }
.still.s2 { inset: 30% 0 26% 26%; z-index: 1; }
.still.s3 { inset: 66% 30% 0 6%; z-index: 2; }
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-stills { aspect-ratio: 1 / 1; }
}

/* ---------- Depths ---------- */
.layers { list-style: none; margin: 56px 0 0; padding: 0; }
.layer {
  position: relative;
  padding: clamp(46px, 7vw, 80px) 0;
  background: linear-gradient(180deg, hsl(var(--hue) 70% var(--l) / .55), hsl(var(--hue) 70% calc(var(--l) * .6) / .35));
  border-top: 1px solid hsl(var(--hue) 80% 60% / .18);
  overflow: hidden;
}
.layer::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 120% at 85% 50%, hsl(var(--hue) 90% 60% / .16), transparent 70%);
  pointer-events: none;
}
.layer-inner { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.layer-depth {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  font: 600 14px/1 var(--mono); color: hsl(var(--hue) 80% 72%);
}
.layer-depth i { display: block; width: 2px; height: 70px; margin-left: 10px; background: linear-gradient(currentColor, transparent); opacity: .7; }
.layer-num { font: 600 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-dim) !important; margin-bottom: 10px !important; }
.layer h3 { font-family: var(--display); font-size: clamp(30px, 4.5vw, 54px); font-weight: 700; margin-bottom: 18px; color: #fff; }
.lore { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; color: var(--ink) !important; max-width: 720px; font-style: italic; }
.layer-find { color: var(--ink-soft); max-width: 640px; margin: 0 !important; }
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer:last-child h3 { color: var(--gold-hot); text-shadow: 0 0 40px rgba(243, 181, 58, .35); }
@media (max-width: 700px) {
  .layer-inner { grid-template-columns: 1fr; gap: 18px; }
  .layer-depth { flex-direction: row; align-items: center; }
  .layer-depth i { width: 40px; height: 2px; margin: 0; background: linear-gradient(90deg, currentColor, transparent); }
}

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: transform .3s, border-color .3s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(94, 230, 214, .4); }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature-body { padding: 22px 24px 26px; }
.feature h3 { margin-bottom: 10px; color: #fff; }
.feature p { font-size: 15.5px; margin: 0; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Media ---------- */
.film-card {
  position: relative; display: block; width: 100%; margin: 40px 0 22px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 21 / 9; cursor: pointer; background: #000; color: var(--ink); text-align: left;
}
.film-card img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: transform .6s, opacity .3s; }
.film-card:hover img { transform: scale(1.03); opacity: .95; }
.film-play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center;
  width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(243, 181, 58, .92); color: #1b1003;
  box-shadow: 0 0 0 10px rgba(243, 181, 58, .18);
  transition: transform .25s;
}
.film-card:hover .film-play { transform: scale(1.08); }
.film-play svg { width: 40%; margin-left: 6%; }
.film-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 2px;
  padding: 40px 26px 20px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
}
.film-label strong { font-family: var(--display); font-size: 22px; }
.film-label small { font: 500 12px/1.4 var(--mono); letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }
@media (max-width: 620px) { .film-card { aspect-ratio: 16 / 10; } }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shot {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #000; cursor: zoom-in; aspect-ratio: 16 / 9;
}
.shot.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; filter: saturate(.9); }
.shot:hover img { transform: scale(1.05); filter: none; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot.wide { grid-row: span 1; aspect-ratio: 16 / 9; }
}

/* ---------- Wishlist ---------- */
.wishlist { padding-top: 0; }
.wishlist-inner {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.wishlist-art { width: 100%; border-radius: var(--radius); border: 1px solid rgba(243,181,58,.3); box-shadow: 0 30px 80px -30px rgba(243,181,58,.35); }
@media (max-width: 860px) { .wishlist-inner { grid-template-columns: 1fr; } }

/* ---------- Studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.facts { list-style: none; margin: 0; padding: 8px 28px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.facts li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts span { color: var(--ink-dim); font: 500 12px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.facts strong { text-align: right; }
@media (max-width: 860px) { .studio-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: rgba(0,0,0,.35); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer p { margin: 0; font-size: 13px; color: var(--ink-dim); max-width: 620px; }

/* ---------- Viewer ---------- */
.viewer {
  width: min(1280px, 94vw); max-width: none; max-height: 92vh; padding: 0;
  background: #000; border: 1px solid var(--line); border-radius: 12px; overflow: visible; color: var(--ink);
}
.viewer::backdrop { background: rgba(0, 4, 8, .88); backdrop-filter: blur(6px); }
.viewer-stage img, .viewer-stage video { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #000; }
.viewer-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,.06); color: #fff;
  font-size: 26px; line-height: 1; cursor: pointer;
}
.viewer-close:hover { border-color: var(--teal); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
  .snow { display: none; }
}
