
/* ==========================================================
   Discover Touchstone
   ========================================================== */
:root {
  --ts-red: #a60013;
  --ts-red-dark: #7d000e;
  --ts-ink: #111111;
  --ts-text: #4a4a4a;
  --ts-muted: #8a8a8a;
  --ts-line: #ececec;
  --ts-bg-soft: #f6f6f7;
  --ts-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

.ts-page {
  color: var(--ts-ink);
  overflow: hidden;
}

.ts-page h1,
.ts-page h2,
.ts-page h3,
.ts-page p {
  margin: 0;
}

.ts-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Reveal on scroll ---------- */
.ts-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ts-ease), transform 0.9s var(--ts-ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.ts-reveal.ts-left { transform: translateX(-60px); }
.ts-reveal.ts-right { transform: translateX(60px); }
.ts-reveal.ts-zoom { transform: scale(0.92); }
.ts-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Buttons ---------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 20px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.35s var(--ts-ease), box-shadow 0.35s var(--ts-ease), background 0.35s;
}
.ts-btn svg { width: 16px; height: 16px; flex: none; }
.ts-btn:hover { transform: translateY(-3px); }

.ts-btn-dark { background: #111; color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18); }
.ts-btn-dark:hover { box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25); color: #fff; }

.ts-btn-light { background: #ececec; color: #111; }
.ts-btn-light:hover { background: #e2e2e2; color: #111; }

.ts-btn-red {
  background: var(--ts-red);
  color: #fff;
  border-radius: 30px;
  padding: 12px 24px;
  box-shadow: 0 10px 24px rgba(166, 0, 19, 0.3);
}
.ts-btn-red:hover { background: var(--ts-red-dark); color: #fff; box-shadow: 0 16px 32px rgba(166, 0, 19, 0.38); }

/* ==========================================================
   1. Hero
   ========================================================== */
.ts-hero {
  padding: 70px 0 90px;
  text-align: center;
  position: relative;
}

.ts-eyebrow {
  font-size: 22px;
  color: var(--ts-muted);
  letter-spacing: 0.02em;
  margin-bottom: 14px !important;
}

.ts-hero h1 {
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.01em;
  max-width: 918px;
  margin: 0 auto !important;
  margin-bottom: 50px !important;
}

.ts-stage {
  position: relative;
  margin: 50px 0 40px;
  height: 560px;
}

/* marquee rows behind the phone */
.ts-rows {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.ts-row {
  display: flex;
  width: max-content;
  gap: 22px;
  align-items: center;
  animation: ts-marquee 48s linear infinite;
}
.ts-row.ts-reverse { animation-direction: reverse; animation-duration: 54s; }
.ts-stage:hover .ts-row { animation-play-state: paused; }

@keyframes ts-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ts-tile {
  flex: none;
  width: 130px;
  height: 130px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #222;
  transition: transform 0.5s var(--ts-ease), box-shadow 0.5s var(--ts-ease);
}
.ts-tile:hover { transform: translateY(-6px) scale(1.04); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.14); }

.ts-tile .ts-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}
.ts-tile .ts-ico svg { width: 20px; height: 20px; }

.ts-tile.ts-photo {
  width: 180px;
  background-size: cover;
  background-position: center;
}

/* fallbacks show when the photo file isn't present yet */
.ts-phone img {
  width: 300px;
}
/* phone mockup */
.ts-phone-holder {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 2;
}
.ts-phone-holder::before {
  content: "";
  position: absolute;
  inset: -60px -110px;
  background: radial-gradient(closest-side, #fff 55%, rgba(255, 255, 255, 0));
  z-index: -1;
}

/* in-phone mini app */

.ts-hero-copy {
  max-width: 923px;
  margin: 0 auto !important;
  font-size: 22px;
  line-height: 1.7;
  color: var(--ts-text);
}

.ts-store {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 48px;
  flex-wrap: wrap;
}

/* ==========================================================
   2. Moment
   ========================================================== */
.ts-moment { padding: 60px 0 100px; }

.ts-moment .ts-wrap {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 60px;
}

.ts-pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 22px;
}

.ts-moment h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.12;
  margin-bottom: 20px !important;
}
.ts-moment h2 span { display: block; }

.ts-moment p.ts-lead {
  font-size: 22px;
  line-height: 1.7;
  color: var(--ts-text);
  max-width: 420px;
  margin-bottom: 28px !important;
}
.mid-img {
  transform: none !important;
}
.mid-img img {
  width: 100%;
}

/* ==========================================================
   3. Features
   ========================================================== */
.ts-features { padding: 20px 0 100px; }

.ts-features .ts-wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.round-icon {
  box-shadow: 0px 10px 15px 0px #F55C5C80;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #A60013;
  transition: transform 0.5s var(--ts-ease);
  margin-bottom: 30px;
}
.round-icon:hover { transform: translateY(-6px) rotate(-6deg); }

.ts-feature h3 {
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 10px !important;
}

.ts-feature p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ts-text);
}

/* ==========================================================
   4. Live & In Motion
   ========================================================== */
.ts-motion { padding: 20px 0 110px; }

.ts-motion h2 {
  text-align: center;
  font-size: clamp(26px, 3.4vw, 50px);
  font-weight: 500;
  margin-bottom: 110px !important;
}

.ts-reel {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.ts-reel.is-drag { cursor: grabbing; }

.ts-reel-track {
  display: flex;
  gap: 22px;
  width: max-content;
  will-change: transform;
}

.ts-story {
  flex: none;
  width: 340px;
  height: 390px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  color: #fff;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ts-ease);
}
.ts-story:hover { transform: translateY(-8px); }
.ts-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 30%, transparent 55%, rgba(0, 0, 0, 0.8) 100%);
}
.ts-story > * { position: relative; z-index: 1; }

.ts-story header { padding: 16px; font-size: 12px; }
.ts-story header b { font-weight: 600; }
.ts-story header span { opacity: 0.75; }

.ts-story footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.ts-story footer small { display: block; font-size: 10px; opacity: 0.7; margin-bottom: 4px; }

.ts-st-1 { background: url("../images/touchstone/Badminton.png") center/cover, linear-gradient(160deg, #a60013, #3a0006); }
.ts-st-2 { background: url("../images/touchstone/cricket.jpg") center/cover, linear-gradient(160deg, #6b4a2a, #1f140a); }
.ts-st-3 { background: url("../images/touchstone/Carrom.png") center/cover, linear-gradient(160deg, #e6a31a, #2a1500); }
.ts-st-4 { background: url("../images/touchstone/chess.png") center/cover, linear-gradient(160deg, #4a5a6a, #12181f); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 991px) {
  .ts-moment .ts-wrap { grid-template-columns: 1fr; gap: 40px; }
  .ts-features .ts-wrap { grid-template-columns: repeat(2, 1fr); }

  /* Scene stacks under the copy, centred and fluid */
  .ts-moment { padding: 40px 0 70px; }
  .ts-moment .ts-wrap > div:first-child { text-align: center; }
  .ts-moment p.ts-lead { margin-left: auto !important; margin-right: auto !important; }
  .ts-scene {
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
  }
  .ts-scene .ts-phone {
    position: static;
    width: 100%;
    height: auto;
  }
  .ts-scene .ts-phone img { display: block; width: 100%; height: auto; }
  .ts-reveal.ts-right { transform: translateY(40px); }
  .ts-reveal.ts-right.is-visible { transform: none; }
}

@media (max-width: 600px) {
  .ts-wrap { padding: 0 16px; }
  .ts-hero { padding: 40px 0 60px; }
  .ts-stage { height: 470px; margin: 34px 0 30px; }
  /* .ts-phone { width: 225px; height: 465px; border-radius: 40px; } */
  .ts-tile { width: 104px; height: 104px; font-size: 11px; border-radius: 18px; }
  .ts-tile.ts-photo { width: 140px; }
  .ts-moment { padding: 24px 0 56px; }
  .ts-moment .ts-wrap { gap: 28px; }
  .ts-pill { font-size: 15px; padding: 6px 14px; margin-bottom: 16px; }
  /* All sub text the same size on mobile */
  .ts-eyebrow,
  .ts-hero-copy,
  .ts-moment p.ts-lead,
  .ts-feature p {
    font-size: 16px;
    line-height: 1.6;
  }
  .ts-scene { max-width: 100%; }
  .ts-features .ts-wrap { grid-template-columns: 1fr; gap: 26px; }
  .ts-story { width: 220px; height: 330px; }
}

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

/* Smooth scroll (Lenis) */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
