/* =====================================================================
   SĀTHI feature band + richer scroll motion.
   Loaded after styles.css, so it reuses --f-display, --f-body, --f-mono,
   --wrap, --line, --accent, --glow, --ease-out and the --rgb-* tokens.
   ===================================================================== */

/* ---------- smoother page scrolling ---------- */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* parallax: JS moves [data-parallax] on scroll; this just hints the compositor */
[data-parallax] { will-change: transform; }

/* ---------- Demo Day ribbon on the profile ---------- */
.demo-note {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font: 600 12px/1.3 var(--f-mono); letter-spacing: .06em;
  color: var(--accent);
}
.demo-note .spark {
  width: 9px; height: 9px; flex: none; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 0 var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .demo-note .spark { animation: demo-pulse 2.4s ease-out infinite; }
}
@keyframes demo-pulse {
  0%   { box-shadow: 0 0 0 0 rgb(var(--rgb-channel) / .5); }
  70%  { box-shadow: 0 0 0 12px rgb(var(--rgb-channel) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--rgb-channel) / 0); }
}

/* =====================================================================
   SĀTHI band
   ===================================================================== */
.band.sathi {
  --s-mint: #8CCFC2; --s-teal: #2E6B64; --s-ink: #EAF4F1; --s-muted: #A0C1BA;
  --s-line: #204039; --glow: 46 107 100;
  background:
    radial-gradient(135% 105% at 82% -12%, #173a34 0%, #0b1c1c 54%),
    linear-gradient(180deg, #0b1c1c, #0a1716);
  color: var(--s-ink); overflow: hidden; position: relative; isolation: isolate;
}
.band.sathi::after {
  background: linear-gradient(90deg, var(--s-mint), var(--s-teal), var(--sw-channel));
}
.band.sathi::before { background: radial-gradient(closest-side, rgb(46 107 100 / .5), rgb(46 107 100 / 0)); }

.sathi-wrap {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.band.sathi .eyebrow { color: var(--s-mint); }
.sathi-intro > h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.02; margin-top: 14px; max-width: 15ch; }
.sathi-intro .lead { color: var(--s-muted); margin-top: 18px; max-width: 46ch; }

/* Demo Day badge inside the band */
.demo-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .09em; text-transform: uppercase;
  color: #06201c; background: linear-gradient(100deg, var(--s-mint), #c6efe5);
  padding: 10px 15px; border-radius: 999px; position: relative; overflow: hidden;
  box-shadow: 0 14px 34px -14px rgb(140 207 194 / .7);
}
.demo-badge .pulse { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #06201c; }
@media (prefers-reduced-motion: no-preference) {
  .demo-badge .pulse { animation: demo-pulse2 2.2s ease-out infinite; }
  .demo-badge::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 32%, rgb(255 255 255 / .6) 50%, transparent 68%);
    transform: translateX(-120%); animation: badge-shine 4.2s ease-in-out infinite;
  }
}
@keyframes demo-pulse2 {
  0% { box-shadow: 0 0 0 0 rgb(6 32 28 / .45); } 70% { box-shadow: 0 0 0 10px rgb(6 32 28 / 0); } 100% { box-shadow: 0 0 0 0 rgb(6 32 28 / 0); }
}
@keyframes badge-shine { 60%, 100% { transform: translateX(120%); } }

/* Pillars */
.sathi-pillars { display: grid; gap: 12px; margin-top: 26px; }
.sathi-pillars > div {
  display: grid; grid-template-columns: 34px 1fr; gap: 3px 14px; align-items: start;
  padding: 15px 17px; border: 1px solid var(--s-line); border-radius: 14px;
  background: rgb(255 255 255 / .022); transition: transform .3s var(--ease-out), border-color .3s, background-color .3s;
}
.sathi-pillars > div:hover { transform: translateY(-3px); border-color: rgb(140 207 194 / .5); background: rgb(140 207 194 / .06); }
.sathi-pillars .s-ic {
  grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: var(--s-mint); background: rgb(140 207 194 / .1);
}
.sathi-pillars .s-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sathi-pillars b { font: 650 15.5px/1.25 var(--f-display); letter-spacing: -.01em; }
.sathi-pillars p { color: var(--s-muted); font-size: 14px; margin: 0; }

/* Stat strip */
.sathi-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 28px;
  border-top: 1px solid var(--s-line); border-bottom: 1px solid var(--s-line);
}
.sathi-stats div { padding: 18px 14px 18px 0; display: grid; gap: 6px; }
.sathi-stats div + div { padding-left: 14px; border-left: 1px solid var(--s-line); }
.sathi-stats b { font: 700 clamp(19px, 2.3vw, 26px)/1 var(--f-display); letter-spacing: -.02em; color: var(--s-ink); white-space: nowrap; }
.sathi-stats span { font: 400 12px/1.35 var(--f-mono); color: var(--s-muted); }

.sathi-tags { margin-top: 24px; }
.sathi-tags .tag { border-color: var(--s-line); color: var(--s-ink); }
.sathi-tags .tag:hover { border-color: var(--s-mint); color: #fff; box-shadow: 0 6px 16px -10px var(--s-mint); }

/* =====================================================================
   SĀTHI phone mockup (self-contained night UI)
   ===================================================================== */
.sathi-demo { display: grid; place-items: center; perspective: 1500px; }
.phone { width: min(300px, 80vw); position: relative; will-change: transform; }
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: phone-float 7.5s ease-in-out infinite; }
}
@keyframes phone-float { 0%, 100% { transform: translateY(6px); } 50% { transform: translateY(-10px); } }
.phone .device {
  background: #090f10; border-radius: 42px; padding: 8px;
  box-shadow: 0 46px 90px -44px rgb(0 0 0 / .85), 0 0 0 1px rgb(255 255 255 / .06) inset, 0 0 70px -24px rgb(140 207 194 / .45);
}
.p-screen {
  --c-bg: #0C1416; --c-ink: #E3ECE9; --c-ink2: #9AAEAA; --c-line: #223135;
  --c-mint: #8CCFC2; --c-u: #2A4550; --c-s: #162226;
  position: relative; border-radius: 35px; overflow: hidden; height: 524px;
  display: flex; flex-direction: column; background: var(--c-bg); color: var(--c-ink);
  font: 13px/1.45 var(--f-body);
}
.p-screen::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 78px; height: 22px; border-radius: 13px; background: #090f10; z-index: 6; }
.p-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 22px 5px; font-size: 11px; font-weight: 600; position: relative; z-index: 4; }
.p-bar i { width: 18px; height: 9px; border: 1.3px solid currentColor; border-radius: 3px; opacity: .8; display: inline-block; }

.p-mark { flex: none; display: block; }
.p-mark .bg { fill: var(--c-mint); }
.p-mark .rg { fill: none; stroke: #06201c; stroke-width: 1.9; }

.p-head { display: flex; align-items: center; gap: 9px; padding: 4px 14px 10px; border-bottom: 1px solid var(--c-line); position: relative; z-index: 3; }
.p-head .who { flex: 1; min-width: 0; line-height: 1.2; }
.p-head .who b { display: block; font-size: 13.5px; font-weight: 600; }
.p-head .who span { font-size: 10.5px; color: var(--c-ink2); }
.p-head .dots { display: flex; gap: 3px; }
.p-head .dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--c-ink2); display: block; }

.p-orb {
  position: absolute; left: 50%; top: 92px; width: 210px; height: 210px; margin-left: -105px; border-radius: 50%; z-index: 0; pointer-events: none;
  background: radial-gradient(circle, rgb(140 207 194 / .32) 0%, rgb(140 207 194 / .1) 44%, rgb(140 207 194 / 0) 68%);
}
@media (prefers-reduced-motion: no-preference) { .p-orb { animation: s-breathe 8s ease-in-out infinite; } }
@keyframes s-breathe { 0%, 100% { transform: scale(.88); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }

.p-wall {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 12px 12px 8px; overflow: hidden; position: relative; z-index: 2;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px); mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.p-wall .day {
  align-self: center; font: 600 10px/1 var(--f-mono); letter-spacing: .05em; color: var(--c-ink2);
  background: rgb(255 255 255 / .05); border: 1px solid var(--c-line); padding: 4px 11px; border-radius: 999px; margin: 2px 0 6px;
}
.bb {
  max-width: 82%; padding: 8px 12px; border-radius: 16px; font-size: 12.4px; line-height: 1.42;
  box-shadow: 0 1px 0 rgb(10 30 30 / .25);
}
.bb.u { align-self: flex-end; background: var(--c-u); border-bottom-right-radius: 5px; }
.bb.s { align-self: flex-start; background: var(--c-s); border-bottom-left-radius: 5px; }
.bb.s + .bb.s { margin-top: -2px; border-top-left-radius: 6px; }
.bb .t { display: block; text-align: right; font-size: 9px; color: var(--c-ink2); margin-top: 2px; }

.p-typing { align-self: flex-start; background: var(--c-s); border-radius: 16px; border-bottom-left-radius: 5px; padding: 10px 13px; display: flex; gap: 4px; }
.p-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--c-ink2); opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .p-typing span { animation: s-dot 1.3s infinite; }
  .p-typing span:nth-child(2) { animation-delay: .18s; }
  .p-typing span:nth-child(3) { animation-delay: .36s; }
}
@keyframes s-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: .9; transform: translateY(-2px); } }

.p-comp { display: flex; gap: 8px; align-items: center; padding: 8px 10px 15px; background: var(--c-bg); border-top: 1px solid var(--c-line); position: relative; z-index: 3; }
.p-field { flex: 1; background: var(--c-s); border: 1px solid var(--c-line); border-radius: 20px; padding: 9px 13px; color: var(--c-ink2); font-size: 12px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-send { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--c-mint); color: #06201c; }
.p-send svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* reveal: SĀTHI chat bubbles pop in staggered */
@media (prefers-reduced-motion: no-preference) {
  .motion .p-wall .bb.rv.in { animation-name: rv-pop; animation-duration: .6s; }
  .motion .sathi-pillars > div.rv.in { animation-name: rv-right; }
  .motion .sathi-stats > div.rv.in { animation-name: rv-flip; animation-duration: 1s; }
}

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 960px) {
  .sathi-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .phone { animation: none; }
  .sathi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sathi-stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .sathi-stats div:nth-child(n+3) { border-top: 1px solid var(--s-line); }
}

@media (prefers-reduced-motion: reduce) {
  .phone, .p-orb, .p-typing span, .demo-badge .pulse, .demo-note .spark { animation: none !important; }
  [data-parallax] { transform: none !important; }
}

/* =====================================================================
   Domain duotone photos — one per specialism track, tinted to its colour
   ===================================================================== */
.track-photo {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: var(--hero-bg); margin-bottom: 20px; isolation: isolate;
  border: 1px solid var(--line); box-shadow: 0 18px 40px -28px rgb(var(--glow) / .5);
}
.track-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(.98) brightness(1.22);
  transform: scale(1.02); transition: transform .7s var(--ease-out), filter .4s;
}
.track:hover .track-photo img { transform: scale(1.06); }
/* colour wash: keeps the photo's light/dark, swaps in the track hue */
.track-photo::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--duo, var(--accent)); mix-blend-mode: color; opacity: .68;
}
/* depth + a soft fade into the page */
.track-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(165deg, rgb(11 14 26 / 0) 62%, rgb(11 14 26 / .3));
}
.track.channel .track-photo { --duo: var(--sw-channel); }
.track.team    .track-photo { --duo: var(--sw-team); }
.track.book    .track-photo { --duo: var(--sw-book); }

@media (prefers-reduced-motion: no-preference) {
  .motion .track-photo.rv.in { animation-name: rv-rise; animation-duration: 1s; }
}
@media (prefers-reduced-motion: reduce) {
  .track-photo img { transform: none !important; }
}
