/* ==========================================================================
   SATYA STUDIO WORKS — crystal brand (light)
   Shared foundation for every page. Page-specific rules live in each file.
   ========================================================================== */

:root {
  /* ---- ground ---- */
  --ground:     #f7f6fb;
  --ground-2:   #f1eff6;
  --haze:       #e9e5f2;
  --surface:    #ffffff;
  --surface-2:  #fbfafd;
  --hairline:   rgba(29, 28, 46, 0.11);
  --hairline-2: rgba(29, 28, 46, 0.065);

  /* ---- ink ---- */
  --ink:   #1d1c2e;
  --ink-2: #4a4757;
  --ink-3: #7f7b8a;
  --ink-4: #a5a1b0;

  /* ---- refracted pastels (from the crystal) ---- */
  --c-cyan:   #b4e9f7;
  --c-peach:  #ffb7a9;
  --c-pink:   #fd8edb;
  --c-violet: #b787fd;
  --c-lav:    #d78fff;
  --c-blue:   #9a94f8;
  --c-mint:   #c7ece5;
  --c-violet-soft: #dcc9ff;   /* light purple for blocks */
  --prism: linear-gradient(90deg, #b4e9f7 0%, #b787fd 34%, #fd8edb 68%, #ffb7a9 100%);

  /* ---- readable accents (the pastels, deepened for type) ---- */
  --a-violet: #7a5cf0;
  --a-pink:   #e0489f;
  --a-rose:   #e04e6e;
  --a-amber:  #d9822b;
  --a-mint:   #2aa884;
  --a-sky:    #2f9fc9;

  /* ---- type ---- */
  --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --body: 'Jost', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --logo: 'Raleway', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- measure ---- */
  --max: 1120px;
  --reading: 46rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---- depth ---- */
  --shadow-soft: 0 24px 50px -30px rgba(62, 50, 96, 0.28), 0 4px 12px -6px rgba(62, 50, 96, 0.08);
  --shadow-lift: 0 34px 64px -30px rgba(62, 50, 96, 0.36), 0 8px 18px -8px rgba(62, 50, 96, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--ground);
  background-image:
    radial-gradient(110% 80% at 80% -10%, #ffffff 0%, rgba(255,255,255,0) 60%),
    radial-gradient(90% 70% at 0% 100%, #ece8f4 0%, rgba(236,232,244,0) 65%);
  background-attachment: fixed;
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
img { display: block; }

:focus-visible {
  outline: 2px solid var(--a-violet);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(183, 135, 253, 0.35); color: var(--ink); }

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-narrow {
  max-width: calc(var(--reading) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section {
  position: relative;
  padding: clamp(4.5rem, 10vh, 7.5rem) 0;
  scroll-margin-top: 88px;
}

/* A section lifted a half-step off the ground, feathered top and bottom. */
.band {
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.6) 10%,
      rgba(255, 255, 255, 0.6) 90%,
      rgba(255, 255, 255, 0) 100%);
}

/* ==========================================================================
   TYPE
   ========================================================================== */

h1, h2, h3, h4 {
  text-wrap: balance;
  font-family: var(--display);
  color: var(--ink);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.005em;
}

h1 {
  font-size: clamp(2.75rem, 6.6vw, 5rem);
  line-height: 1.02;
}
h2 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem);
  line-height: 1.08;
  margin-bottom: 1.25rem;
  max-width: 24ch;
}
h3 {
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.22;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--a-violet);
}

p { margin: 0 0 1.25rem; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 500; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.5rem;
}

.lead {
  text-wrap: pretty;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 38rem;
  margin: 0 0 2rem;
}

.prose p {
  color: var(--ink-2);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.75;
}
.prose { max-width: var(--reading); }

.hairline {
  height: 1px;
  border: 0;
  background: var(--hairline-2);
  margin: 0;
}
.rule-prism {
  height: 2px;
  border: 0;
  background: var(--prism);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

/* ==========================================================================
   THE MARK
   ========================================================================== */

.crystal { display: block; overflow: visible; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand .crystal { width: 38px; height: 38px; flex-shrink: 0; }
.brand-name {
  font-family: var(--logo);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1;
}
.brand-name small {
  display: block;
  font-family: var(--logo);
  font-size: 0.5rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  color: var(--ink-3);
  margin-top: 0.45rem;
}

/* Confetti — the light brand's refracted flecks. Decorative only. */
.shards {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.shards.soft { filter: blur(1.2px); }

/* ==========================================================================
   NAV
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 251, 0.78);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--hairline-2);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.nav-links a { transition: color 0.25s ease; }
.nav-links a:hover { color: var(--a-violet); }
.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.nav-pill {
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(29, 28, 46, 0.35);
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s ease;
}
.nav-links a.nav-pill:hover {
  background: var(--c-violet);
  border-color: var(--c-violet);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  margin: -0.5rem -0.6rem -0.5rem 0;
  padding: 0; border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: '';
  display: block;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.28s var(--ease), opacity 0.2s ease;
}
.nav-toggle .bars { position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after  { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .site-nav .container { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    flex-basis: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.85rem;
    transition: max-height 0.35s var(--ease), opacity 0.25s ease, margin-top 0.25s ease;
  }
  .nav-links.open { max-height: 80vh; opacity: 1; margin-top: 0.75rem; }
  .nav-links a {
    padding: 0.95rem 0.15rem;
    border-top: 1px solid var(--hairline-2);
  }
  .nav-links a.nav-pill {
    border: 1px solid rgba(29, 28, 46, 0.35);
    border-radius: 999px;
    text-align: center;
    margin: 0.9rem 0 0.2rem;
    padding: 0.85rem 1.4rem;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--c-violet);
  background: var(--c-violet);
  color: var(--ink);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.btn:hover {
  transform: translateY(-2px);
  background: #c6a2ff;
  border-color: #c6a2ff;
  box-shadow: 0 16px 34px -14px rgba(122, 92, 240, 0.55),
              0 6px 16px -8px rgba(29, 28, 46, 0.18);
}
.btn .arrow { font-size: 0.95rem; letter-spacing: 0; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(29, 28, 46, 0.35);
}
.btn-ghost:hover {
  background: var(--c-violet);
  color: var(--ink);
  border-color: var(--c-violet);
  box-shadow: 0 14px 30px -16px rgba(122, 92, 240, 0.5);
}

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
.btn-quiet:hover { background: transparent; border-color: transparent; box-shadow: none; color: var(--a-violet); transform: none; }

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--hairline-2);
  background: var(--surface);
  padding: 2rem 1.9rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
/* refracted light along the top edge: a slow-moving spectrum with a soft glow beneath it */
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg,
    #b4e9f7 0%, #b787fd 12.5%, #fd8edb 25%, #ffb7a9 37.5%,
    #b4e9f7 50%, #b787fd 62.5%, #fd8edb 75%, #ffb7a9 87.5%, #b4e9f7 100%);
  background-size: 300% 100%;
  animation: prismFlow 28s linear infinite;
}
.card::after {
  content: '';
  position: absolute;
  left: 6%; right: 6%; top: -6px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg,
    #b4e9f7 0%, #b787fd 12.5%, #fd8edb 25%, #ffb7a9 37.5%,
    #b4e9f7 50%, #b787fd 62.5%, #fd8edb 75%, #ffb7a9 87.5%, #b4e9f7 100%);
  background-size: 300% 100%;
  filter: blur(12px);
  opacity: 0.3;
  pointer-events: none;
  animation: prismFlow 28s linear infinite, prismGlow 10s ease-in-out infinite;
}
.card > * { position: relative; }
@keyframes prismFlow {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}
@keyframes prismGlow {
  0%, 100% { opacity: 0.22; }
  50%      { opacity: 0.42; }
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline);
  box-shadow: var(--shadow-lift);
}
.card.is-static:hover { transform: none; box-shadow: var(--shadow-soft); border-color: var(--hairline-2); }

.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.97rem; line-height: 1.65; color: var(--ink-2); }

/* Deep card — the light-purple emphasis surface */
.card.deep {
  background: linear-gradient(180deg, #e6d8ff 0%, var(--c-violet-soft) 100%);
  border-color: rgba(122, 92, 240, 0.25);
  color: var(--ink-2);
}
.card.deep h3, .card.deep strong { color: var(--ink); }
.card.deep h3 em { color: var(--a-violet); }
.card.deep p { color: var(--ink-2); }
.card.deep::before { height: 3px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--hairline-2);
  padding: 3rem 0 2.5rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.site-footer a { color: var(--ink-2); transition: color 0.25s ease; }
.site-footer a:hover { color: var(--a-violet); }
.site-footer .footer-note {
  flex-basis: 100%;
  text-align: center;
  font-style: italic;
  color: var(--ink-3);
  padding-top: 0.5rem;
}

/* ==========================================================================
   MOTION
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(2%, -2.5%, 0) scale(1.06); }
}
/* NB: animate opacity only in keyframes scoped to one element. */

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