/* ============================================================
   SUNDAY TALKIES — page-scoped styling
   Liquid-glass surfaces and spatial depth over the Sunday
   Talkies palette. Scoped under body.st so nothing here can
   reach the rest of the site.
   ============================================================ */

.st {
  --turmeric: #F6C945;
  --turmeric-deep: #EEB931;
  --kumkum: #A8231C;
  --kumkum-dark: #86190F;
  --st-ink: #221A14;
  --st-soft: #5A4E44;
  --paper: #FFFCF4;
  --st-line: #E6D9BC;

  --font-st: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-kn: "Baloo Tamma 2", "Noto Sans Kannada", Tunga, sans-serif;

  /* liquid-glass recipe, reused so every pane matches */
  --glass-bg: rgba(255, 252, 244, .58);
  --glass-brd: rgba(255, 255, 255, .55);
  --glass-shadow: 0 18px 50px rgba(34, 26, 20, .14);

  background: var(--paper);
  color: var(--st-soft);
  font-family: var(--font-st);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.st ::selection { background: var(--kumkum); color: #FFF3D6; }
.st a { color: var(--kumkum); }

.st-wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.st-block { padding-block: clamp(56px, 9vw, 104px); position: relative; }

.st h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--st-ink);
  margin: 0 0 1.4rem;
  font-weight: 700;
}
.st h3 { color: var(--st-ink); }
.st .kn {
  font-family: var(--font-kn);
  font-weight: 600;
  color: var(--kumkum);
  line-height: 1.3;
  margin: 0 0 .3rem;
}
.st .kn-label { font-size: 1.3rem; }
.st .statement {
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--st-ink);
  font-weight: 500;
  max-width: 30ch;
  margin: 0 0 1.2rem;
}
.st .body { max-width: 60ch; margin: 0; }

/* ---------- buttons ----------
   Scoped `.st .st-btn` rather than `.st-btn`: the generic `.st a` rule above
   is (0,1,1) and would otherwise win, painting the label kumkum-on-kumkum. */
.st .st-btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  background: var(--kumkum);
  color: #FFF3D6;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: .95rem 1.7rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(168, 35, 28, .3);
  transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s ease, box-shadow .25s ease;
}
.st .st-btn:hover { background: var(--kumkum-dark); transform: translateY(-2px); box-shadow: 0 16px 34px rgba(168,35,28,.36); }
.st .st-btn[disabled] { opacity: .7; cursor: progress; transform: none; }

/* ============================================================
   HERO — the Three.js projector field sits behind this
   ============================================================ */
.st-hero {
  position: relative;
  min-height: min(92svh, 820px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h) + clamp(2rem, 5vw, 4rem)) clamp(3rem, 7vw, 6rem);
  background: var(--turmeric);
  overflow: hidden;
  isolation: isolate;
}
/* fallback wash — also what shows if WebGL never starts */
.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 55% at 72% 18%, rgba(255, 249, 226, .9), transparent 62%),
    radial-gradient(ellipse 60% 50% at 20% 85%, rgba(238, 185, 49, .85), transparent 65%);
}
#st-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#st-canvas.is-live { opacity: 1; }

.st-hero__watermark {
  position: absolute;
  /* Sized and placed to sit whole inside the hero: at the old 36vw it ran
     past the right edge and the word was cut in half. */
  right: clamp(8px, 1.5vw, 28px);
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-kn);
  font-weight: 800;
  font-size: clamp(130px, 21vw, 300px);
  line-height: 1;
  max-width: 48vw;
  pointer-events: none;
  user-select: none;
  z-index: -1;
  opacity: .9;

  /* Glossy red. The gradient is wider than the text and slides across it, so
     the bright band travels over the glyphs as a moving shine. */
  color: transparent;
  background-image: linear-gradient(
    110deg,
    #9E1A10 0%, #C62B1C 18%, #8A1309 32%,
    #FF9A86 46%, #FFD9CF 50%, #FF8A72 54%,
    #A8231C 68%, #C73322 84%, #7C0F07 100%
  );
  background-size: 260% 100%;
  background-position: 180% 0;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 22px rgba(124, 15, 7, .34));
  animation: st-watermark-shine 5.5s linear infinite;
}
/* On a phone the copy fills the width, so a mid-height watermark lands on
   top of it. It drops to the bottom corner and eases off, staying whole but
   reading as background rather than competing with the headline. */
@media (max-width: 760px) {
  .st-hero__watermark {
    top: auto;
    bottom: 2%;
    translate: none;
    font-size: clamp(120px, 38vw, 200px);
    max-width: 76vw;
    opacity: .5;
  }
}
@keyframes st-watermark-shine {
  from { background-position: 180% 0; }
  to   { background-position: -60% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .st-hero__watermark { animation: none; background-position: 60% 0; }
}
/* no background-clip: text — take a flat red rather than invisible glyphs */
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .st-hero__watermark {
    color: var(--kumkum);
    background-image: none;
    animation: none;
  }
}
.st-hero__copy {
  position: relative;
  max-width: 730px;          /* was 720px */
  margin-inline: auto;
  text-align: center;
}
.st-hero .kn { font-size: clamp(1.3rem, 3vw, 1.85rem); }
.st-hero h1 {
  font-size: clamp(2.7rem, 7.6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.035em;
  font-weight: 700;
  margin: .2rem 0 1.3rem;
  color: var(--st-ink);
  font-variation-settings: "opsz" 96;
}
.st-hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: #3A2E24;
  max-width: 38ch;
  /* auto inline margins belong in this rule: a separate centring rule at the
     same specificity loses to this shorthand, which resets them to 0 and
     leaves the lede sitting left of the headline it is meant to sit under. */
  margin: 0 auto 2rem;
}

/* ============================================================
   LIQUID GLASS
   One recipe, reused. Kept to a handful of surfaces on purpose:
   backdrop-filter is composited per frame, and scattering it
   over dozens of elements is what makes pages like this stutter.
   ============================================================ */
.st-glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  border-radius: 24px;
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  overflow: hidden;
}
/* specular edge — the highlight that reads as a curved glass lip */
.st-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(255,255,255,.5), transparent 32%, transparent 68%, rgba(255,255,255,.26));
  mix-blend-mode: normal;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .st-glass { background: rgba(255, 252, 244, .95); }
}

.st-glass--dark {
  background: rgba(34, 26, 20, .58);
  border-color: rgba(255, 255, 255, .16);
  box-shadow: 0 20px 56px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.14);
  color: #FFF3D6;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .st-glass--dark { background: rgba(34, 26, 20, .94); }
}

/* ============================================================
   SPATIAL — depth that responds to the pointer
   ============================================================ */
.st-spatial { perspective: 1200px; }
.st-tilt {
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.st-lift { transform: translateZ(28px); }

/* ---------- stats ---------- */
.st-stats {
  position: relative;
  margin-top: clamp(-70px, -6vw, -40px);
  z-index: 2;
}
.st-stats__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem clamp(28px, 6vw, 68px);
  padding: clamp(22px, 3.4vw, 34px) clamp(22px, 3.6vw, 40px);
  border-radius: 26px;
}
.st-stat strong {
  display: block;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--turmeric);
  font-variant-numeric: tabular-nums;
}
.st-stat span { font-size: .98rem; color: rgba(255, 243, 214, .82); }
.st-stats__link { color: #FFF3D6; font-weight: 700; text-underline-offset: 4px; margin-left: auto; }
@media (max-width: 620px) { .st-stats__link { margin-left: 0; flex-basis: 100%; } }

/* ---------- applause band ---------- */
.st-applause {
  background: var(--kumkum);
  color: #FFF3D6;
  padding-block: clamp(52px, 9vw, 92px);
  overflow: hidden;
}
/* The travel happens inside this, and it is full-bleed rather than the usual
   padded wrap so both lines have the whole screen width to cross. It clips,
   so a line wider than the track still has room to move. */
.st-applause__track {
  position: relative;
  overflow: hidden;
  /* a tighter inset than the usual page gutter: the slack between a line
     and the track is the whole distance it has to travel */
  padding-inline: clamp(10px, 2vw, 28px);
}
.st-applause .big,
.st-applause .en {
  white-space: nowrap;      /* they move sideways, so they stay on one line */
  will-change: transform;
  margin: 0;
  /* the box has to hug the text, not fill the track: as full-width blocks
     there is no measurable difference between line and track, and so nothing
     to travel across */
  display: inline-block;
  width: max-content;
  max-width: none;
}
.st-applause .big {
  font-family: var(--font-kn);
  font-weight: 700;
  color: var(--turmeric);
  font-size: clamp(2rem, 6.6vw, 4.6rem);
  line-height: 1.15;
}
.st-applause .en {
  font-size: clamp(1.4rem, 3.6vw, 2.6rem);   /* was 1.1–1.45rem */
  font-weight: 600;
  line-height: 1.2;
  margin-top: .5rem;
}
/* without GSAP the lines simply sit where they are */

/* ---------- exchange ---------- */
.st-exchange { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(28px, 5vw, 72px); }
@media (max-width: 860px) { .st-exchange { grid-template-columns: 1fr; } }
.st-exchange h3 { font-size: 1.3rem; margin: 0 0 .3rem; font-weight: 700; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-list li {
  border-top: 2px solid var(--st-line);
  padding: 1rem 0;
  transition: padding-left .3s cubic-bezier(.16,1,.3,1);
}
.st-list li:hover { padding-left: .5rem; }
.st-list li:last-child { border-bottom: 2px solid var(--st-line); }
.st-list strong { display: block; color: var(--st-ink); font-size: 1.12rem; }
.st-list span { font-size: .98rem; }
.st-you .st-list li { border-top-color: var(--kumkum); }
.st-you .st-list li:last-child { border-bottom-color: var(--st-line); }

.st-terms {
  margin-top: 1.4rem;
  padding: 1rem 1.3rem;
  background: #FFF3D6;
  border-left: 4px solid var(--kumkum);
  border-radius: 10px;
  color: var(--st-ink);
  font-size: 1rem;
}

/* Soft colour behind a section so the glass panes on top have something to
   refract. Frosted glass over flat paper is just a white box. */
.st-tinted { position: relative; overflow: hidden; }
.st-tinted::before,
.st-tinted::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}
.st-tinted::before {
  width: min(52vw, 620px);
  aspect-ratio: 1;
  top: -14%;
  left: -8%;
  background: radial-gradient(circle, rgba(246, 201, 69, .68), transparent 68%);
}
.st-tinted::after {
  width: min(44vw, 520px);
  aspect-ratio: 1;
  bottom: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(168, 35, 28, .3), transparent 68%);
}
.st-tinted > * { position: relative; z-index: 1; }

/* ---------- steps ---------- */
.st-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  --gap: clamp(18px, 2.6vw, 32px);
  gap: var(--gap);
  counter-reset: s;
}
@media (max-width: 860px) { .st-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .st-steps { grid-template-columns: 1fr; } }
.st-steps li {
  counter-increment: s;
  position: relative;        /* the connector hangs off this, not the card */
}
.st-step { padding: 1.3rem 1.2rem; border-radius: 20px; height: 100%; }
.st-step::before {
  content: counter(s);
  display: block;
  font-size: 3.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--kumkum);
  margin-bottom: .4rem;
}

/* Flow connector: a dashed run with an arrowhead, drawn in the grid gap and
   lined up with the centre of the big number (card padding 1.3rem + half of
   the 3.6rem/1 number). On the li, so the card's overflow cannot clip it and
   the card keeps ::after for its specular edge. */
.st-steps li::after,
.st-steps li::before {
  position: absolute;
  top: calc(1.3rem + 1.8rem);
  opacity: .55;
  pointer-events: none;
}
.st-steps li::after {               /* the dashed run */
  content: "";
  left: 100%;
  width: var(--gap);
  height: 2px;
  background-image: linear-gradient(
    90deg, var(--kumkum) 0 6px, transparent 6px 12px);
  background-size: 12px 2px;
}
.st-steps li::before {              /* the arrowhead */
  content: "";
  left: calc(100% + var(--gap) - 7px);
  width: 0; height: 0;
  translate: 0 -3px;
  border-left: 7px solid var(--kumkum);
  border-block: 5px solid transparent;
}
.st-steps li:last-child::after,
.st-steps li:last-child::before { display: none; }

/* two across: the second card closes each row */
@media (max-width: 860px) {
  .st-steps li:nth-child(even)::after,
  .st-steps li:nth-child(even)::before { display: none; }
}

/* stacked: the flow turns downward into the gap below each card */
@media (max-width: 560px) {
  .st-steps li:nth-child(even)::after,
  .st-steps li:nth-child(even)::before { display: block; }
  .st-steps li:last-child::after,
  .st-steps li:last-child::before { display: none; }

  .st-steps li::after {
    top: 100%;
    left: calc(1.3rem + 1.1rem);
    width: 2px;
    height: var(--gap);
    background-image: linear-gradient(
      180deg, var(--kumkum) 0 6px, transparent 6px 12px);
    background-size: 2px 12px;
  }
  .st-steps li::before {
    top: calc(100% + var(--gap) - 7px);
    left: calc(1.3rem + 1.1rem);
    translate: -3px 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--kumkum);
    border-bottom: 0;
  }
}

.st-step strong { display: block; color: var(--st-ink); font-size: 1.1rem; margin-bottom: .2rem; }
.st-step span { font-size: .98rem; }
.st-note { margin-top: 1.8rem; font-size: 1rem; max-width: 62ch; }
.st-note strong { color: var(--st-ink); }

/* ---------- FAQ ---------- */
.st-faq { max-width: 840px; }
.st-faq details { border-top: 2px solid var(--st-line); }
.st-faq details:last-of-type { border-bottom: 2px solid var(--st-line); }
.st-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.6rem 1.1rem 0;
  position: relative;
  font-weight: 700;
  color: var(--st-ink);
  font-size: 1.12rem;
}
.st-faq summary::-webkit-details-marker { display: none; }
.st-faq summary::after {
  content: "+";
  position: absolute;
  right: .2rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--kumkum);
  transition: rotate .3s cubic-bezier(.16,1,.3,1);
}
.st-faq details[open] summary::after { content: "\2212"; rotate: 180deg; }
.st-faq details p { margin: 0 0 1.2rem; max-width: 64ch; font-size: 1.03rem; }

/* Hover opens an answer (see initFaqHover). <details> still does the real
   work, so click, tap and keyboard keep working — hover is only a shortcut
   for pointer users, and the animation is the one <details> cannot do alone. */
.st-faq details[open] > p {
  animation: st-faq-in .32s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes st-faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.st-faq details.is-hovered summary { color: var(--kumkum); }
@media (prefers-reduced-motion: reduce) {
  .st-faq details[open] > p { animation: none; }
}

/* ============================================================
   FORM
   ============================================================ */
.st-submit {
  background: var(--turmeric);
  color: var(--st-ink);
  padding-block: clamp(56px, 9vw, 104px);
  position: relative;
  overflow: hidden;
}
.st-submit::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 10%, rgba(255,249,226,.75), transparent 60%);
  pointer-events: none;
}
.st-submit > * { position: relative; }
.st-submit .kn { color: var(--kumkum); }

.st-form-card { padding: clamp(24px, 4.6vw, 52px); max-width: 820px; margin-top: 2rem; border-radius: 28px; }
.st fieldset { border: 0; padding: 0; margin: 0 0 1.9rem; }
.st legend { font-weight: 700; color: var(--st-ink); font-size: 1.25rem; margin-bottom: 1rem; padding: 0; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.25rem; }
@media (max-width: 620px) { .st-grid { grid-template-columns: 1fr; } }
.st-full { grid-column: 1 / -1; }
.st label { display: block; font-weight: 600; color: var(--st-ink); font-size: 1rem; margin-bottom: .35rem; }
.st .opt { font-weight: 400; color: var(--st-soft); }

.st input[type=text],
.st input[type=url],
.st input[type=email],
.st input[type=tel],
.st textarea {
  width: 100%;
  font: inherit;
  font-size: 1.03rem;
  color: var(--st-ink);
  background: rgba(255, 255, 255, .78);
  border: 2px solid var(--st-line);
  border-radius: 12px;
  padding: .75rem .9rem;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.st input:focus, .st textarea:focus {
  outline: none;
  border-color: var(--kumkum);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168, 35, 28, .13);
}
.st textarea { min-height: 96px; resize: vertical; }
.st .hint { font-size: .9rem; margin-top: .3rem; }
.st .q { font-weight: 600; color: var(--st-ink); font-size: 1rem; margin: 0 0 .35rem; }

.st-radio-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: .25rem; }
.st-radio-row label { display: flex; align-items: center; gap: .5rem; font-weight: 400; margin: 0; cursor: pointer; }
.st-radio-row input { width: 20px; height: 20px; accent-color: var(--kumkum); margin: 0; }

.st-check { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400; color: var(--st-ink); line-height: 1.5; }
.st-check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--kumkum); flex: none; }

/* honeypot: off-screen, never shown to a person */
.st-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.5rem; }
.st .small { font-size: .94rem; }
.st .error { color: var(--kumkum); font-weight: 600; margin: 1rem 0 0; }

.st-thanks { padding: clamp(8px, 2vw, 16px) 0; }
.st-thanks .clap {
  font-family: var(--font-kn);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  color: var(--kumkum);
  line-height: 1.1;
  margin: 0;
}
.st-thanks h3 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: .5rem 0 .75rem; letter-spacing: -.02em; }

/* ============================================================
   MOTION — all of it opt-in via .js, so a JS or CDN failure
   leaves the page fully readable rather than blank.
   ============================================================ */
.js .st-rise { opacity: 0; transform: translateY(26px); }
.js .st-rise.is-in { opacity: 1; transform: none; }
/* Only used when GSAP never arrives: CSS carries the reveal instead. */
.js .st-rise {
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  .js .st-rise { opacity: 1 !important; transform: none !important; transition: none !important; }
  .st-hero__watermark { animation: none !important; }
  #st-canvas { display: none; }
  .st-tilt { transition: none !important; }
}

/* ============================================================
   SEND BUTTON — glow + pulse
   ============================================================ */
@keyframes st-glow {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(168, 35, 28, .3),
                0 0 0 0 rgba(246, 201, 69, .5);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 12px 32px rgba(168, 35, 28, .45),
                0 0 28px 7px rgba(246, 201, 69, .72);
    filter: brightness(1.14);
  }
}
.st .st-btn--glow { animation: st-glow 1.5s ease-in-out infinite; }

/* stop drawing attention once it has been pressed, or while it is working */
.st .st-btn--glow:hover,
.st .st-btn--glow:focus-visible,
.st .st-btn--glow[disabled] { animation: none; }

@media (prefers-reduced-motion: reduce) {
  .st .st-btn--glow { animation: none; }
}
