/* ---------------------------------------------------------------
   Jigyasa Films — stylesheet
   The whole page sits on one continuous animated wave background
   (see #siteWaves, drawn by js/hero-interactive.js), always in the
   brand's light blue — there's no dark mode.
------------------------------------------------------------------ */

:root {
  /* text and surfaces sitting on top of the wave background */
  --onwave-heading: #FFFFFF;
  --onwave-body: rgba(255, 255, 255, 0.85);
  --onwave-muted: rgba(255, 255, 255, 0.68);
  --onwave-muted-2: rgba(255, 255, 255, 0.5);
  --onwave-border: rgba(255, 255, 255, 0.16);
  --onwave-border-strong: rgba(255, 255, 255, 0.32);
  --onwave-highlight: #FFE9A8;
  --onwave-panel: rgba(255, 255, 255, 0.12);
  --onwave-panel-strong: rgba(255, 255, 255, 0.22);

  --header-text: #FFFFFF;
  --header-btn-border: rgba(255, 255, 255, 0.6);
  --header-btn-hover: rgba(255, 255, 255, 0.18);

  --accent: #4A9AC4;
  --accent-deep: #2E6F95;
  --accent-light: #DCEEF7;

  /* the work-detail modal is a real popover, not part of the ambient
     wave scene, so it keeps its own opaque surface */
  --surface: #FFFFFF;
  --surface-ink: #16222E;
  --surface-ink-soft: #52626E;
  --surface-muted: #7C8B96;
  --surface-border: rgba(27, 39, 51, 0.1);
}

/* ---------- reset & base ---------- */

*, *::before, *::after {
  box-sizing: border-box;
  transition: background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, fill 0.35s ease, stroke 0.35s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* the animated canvas draws on top of this; this solid color is the
     base "water" tone underneath it and the fallback if canvas fails */
  background: var(--accent);
  color: var(--onwave-body);
  font-family: "Work Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

/* the wave canvas is fixed behind the ENTIRE page — it doesn't scroll
   away, so the whole site sits on one continuous animated backdrop */
.site-waves {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  margin: 0;
  color: var(--onwave-heading);
}

p { margin: 0; }

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

ul { list-style: none; margin: 0; padding: 0; }

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

:focus-visible {
  outline: 2px solid #FFFFFF;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent-deep);
  color: #FFFFFF;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 6px 0;
}

.skip-link:focus {
  left: 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 56px;
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--onwave-highlight);
}

.muted { color: var(--onwave-muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: #FFFFFF;
  color: var(--accent-deep);
}

.btn-primary:hover { background: rgba(255, 255, 255, 0.85); }

.text-link {
  font-size: 14px;
  color: var(--onwave-highlight);
  border-bottom: 1px solid var(--onwave-highlight);
  padding-bottom: 2px;
}

/* ---------- swan mark ---------- */

.swan-body {
  fill: #FFFFFF;
  stroke: var(--accent-deep);
  stroke-width: 2.4;
}

.swan-facet {
  fill: var(--accent-light);
  opacity: 0.65;
}

.swan-crease {
  stroke: var(--accent-deep);
  stroke-width: 1;
  opacity: 0.5;
}

.swan-eye {
  fill: var(--accent-deep);
}

.swan-halo {
  fill: var(--accent-light);
  opacity: 0.5;
}

.hero-swan-fallback .swan-body {
  stroke: var(--accent-deep);
  stroke-width: 1.7;
}

.hero-swan-fallback .swan-crease {
  stroke: var(--accent-deep);
}

.hero-swan-fallback .swan-eye {
  fill: var(--accent-deep);
}

.shadow-color {
  flood-color: var(--accent);
}

/* ---------- entrance screen ---------- */

body.is-splash-active {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--accent-deep) 0%, var(--accent) 100%);
  opacity: 1;
  transition: opacity 1.2s ease;
}

.splash.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.splash[hidden] {
  display: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.splash-swan-stage {
  width: min(46vw, 300px);
  height: min(46vw, 300px);
  cursor: pointer;
  touch-action: none;
}

.splash-swan-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.splash-swan-fallback {
  width: 100%;
  height: 100%;
}

.splash-word {
  font-family: "Nunito", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FFFFFF;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 20, 32, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--onwave-border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 56px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.brand-name {
  font-family: "Fraunces", serif;
  font-size: 18px;
  letter-spacing: 0.05em;
  color: var(--header-text);
}

.site-header .brand-name {
  font-family: "Nunito", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-toggle {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font-family: "Nunito", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--header-text);
  position: relative;
  padding-bottom: 4px;
}

.menu-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #FFFFFF;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu-toggle:hover::after,
.menu-toggle:focus-visible::after {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: linear-gradient(160deg, var(--accent-deep) 0%, var(--accent) 100%);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 1.3s;
}

.mobile-nav.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0s;
}

.mobile-nav-brand,
.mobile-nav-close,
.mobile-nav-link {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mobile-nav.is-open .mobile-nav-brand {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.mobile-nav.is-open .mobile-nav-close {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(1) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.5s;
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.62s;
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.74s;
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(4) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.86s;
}

.mobile-nav.is-open .mobile-nav-links a:nth-child(5) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.98s;
}

.mobile-nav-brand {
  position: absolute;
  top: 22px;
  left: 32px;
  font-family: "Nunito", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.mobile-nav-close {
  position: absolute;
  top: 22px;
  right: 32px;
  border: none;
  background: none;
  padding: 4px 0;
  cursor: pointer;
  font-family: "Nunito", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFFFFF;
}

.mobile-nav-close:hover {
  opacity: 0.75 !important;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-nav-link {
  position: relative;
  z-index: 0;
  overflow: hidden;
  font-family: "Jost", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #FFFFFF;
  padding: 2px 24px;
  border-radius: 6px;
  /* leaving hover: turn white again immediately, before the fill has
     shrunk back down — so text is never dark-on-blue mid-exit */
  transition: color 0.15s ease 0s;
}

.mobile-nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #FFFFFF;
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--accent-deep);
  /* entering hover: don't start changing the text color until the fill
     has FULLY risen and covers the whole word — otherwise the top of
     the text (covered last) briefly sits dark-on-blue and disappears */
  transition: color 0.06s linear 0.45s;
}

.mobile-nav-link:hover::before,
.mobile-nav-link:focus-visible::before {
  transform: scaleY(1);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-copy {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-copy h1 {
  font-size: 68px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  display: inline-block;
  transform-origin: left center;
  transition: transform 0.4s ease, letter-spacing 0.4s ease;
}

.hero-copy h1:hover {
  transform: scale(1.035);
  letter-spacing: 0.005em;
}

.hero-art {
  flex-shrink: 0;
  width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-swan-stage {
  position: relative;
  width: 340px;
  height: 340px;
  cursor: grab;
  touch-action: none;
}

.hero-swan-stage.dragging {
  cursor: grabbing;
}

.hero-swan-stage canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.hero-swan-fallback {
  width: 100%;
  height: 100%;
}

/* ---------- footer ---------- */

.site-footer {
  position: relative;
  border-top: 1px solid var(--onwave-border);
  padding: 40px 0 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.brand-footer .brand-name {
  font-family: "Nunito", "Work Sans", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--onwave-heading);
  font-size: 15px;
}

.footer-social {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--onwave-body);
}

.footer-social a:hover { color: var(--onwave-highlight); }

.footer-copy {
  font-size: 13px;
  color: var(--onwave-muted-2);
  width: 100%;
  order: 10;
  margin-top: 8px;
  text-align: center;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .section-inner,
  .header-inner,
  .hero-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero-inner {
    flex-direction: column-reverse;
    text-align: left;
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .hero-art,
  .hero-swan-stage {
    width: 220px;
    height: 220px;
  }

  .hero-art {
    height: auto;
    align-self: center;
  }

  .hero-copy h1 { font-size: 48px; }
}

@media (max-width: 520px) {
  .header-inner { padding: 14px 16px; }
  .footer-inner { justify-content: flex-start; }

  .mobile-nav-link {
    font-size: 40px;
  }

  .splash-swan-stage {
    width: 62vw;
    height: 62vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
