/* ─────────────────────────────────────────────────────
   STARO Design System — Custom Styles
   Tailwind handles layout utilities; this file owns:
   variables · animations · cursor · marquee · complex
   component states · all @keyframes
   ───────────────────────────────────────────────────── */

/* ── CSS Custom Properties ─────────────────────────── */
:root {
  --bg:           #0A0E14;
  --surface:      #0F1620;
  --surface-2:    #131C28;
  --primary:      #1B4D6B;
  --accent:       #3B9BD9;
  --accent-glow:  rgba(59, 155, 217, 0.4);
  --text:         #F2F4F7;
  --text-muted:   #8A95A5;
  --border:       #1A2332;

  --ease-content:  cubic-bezier(0.65, 0, 0.35, 1);
  --ease-entrance: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto; /* Lenis handles scroll */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Hide default cursor only where custom cursor is active */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button, [role="button"], .magnetic, .testimonial-arrow, .testimonial-dot { cursor: none; }
}

/* ── Scroll Progress Bar ──────────────────────────── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 9999;
  box-shadow: 0 0 8px var(--accent-glow);
  pointer-events: none;
  will-change: width;
}

/* ── Custom Cursor ──────────────────────────────────── */
#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: transform;
}

#cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  transition: opacity 0.2s;
}

#cursor-ring {
  width: 34px; height: 34px;
  border: 1.5px solid rgba(59, 155, 217, 0.55);
  border-radius: 50%;
  transition: width 0.35s var(--ease-entrance),
              height 0.35s var(--ease-entrance),
              border-color 0.3s,
              opacity 0.2s;
}

#cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--accent);
}

@media not all and (hover: hover) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── Navbar ─────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding 0.45s var(--ease-content),
              background 0.45s var(--ease-content),
              border-color 0.45s;
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  padding: 0.875rem 0;
  background: rgba(10, 14, 20, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  transition: color 0.3s;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-content);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.nav-cta:hover {
  background: #5baee0;
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Mobile menu */
#mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 100vw);
  background: var(--surface-2);
  z-index: 200;
  padding: 5rem 2rem 2rem;
  border-left: 1px solid var(--border);
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-content);
}
#mobile-menu.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.25rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s;
}
.mobile-nav-link:hover { color: var(--accent); }

#mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.75);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
#mobile-overlay.show { opacity: 1; pointer-events: all; }

/* ── Hero ─────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background glow blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.hero-blob-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle at center, rgba(27,77,107,0.48) 0%, transparent 70%);
  filter: blur(80px);
  top: -15%; left: 5%;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle at center, rgba(59,155,217,0.2) 0%, transparent 70%);
  filter: blur(70px);
  bottom: 5%; right: 8%;
}
.hero-blob-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle at center, rgba(27,77,107,0.3) 0%, transparent 70%);
  filter: blur(60px);
  top: 35%; left: -5%;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
  width: 100%;
}

#hero-logo { will-change: transform, opacity; }

#hero-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--text);
  overflow: hidden;
}

.hero-tagline-dev {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  color: var(--text-muted);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
}

.hero-tagline-en {
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
}

/* Split chars for text reveal */
.split-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* CTA buttons */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 2.25rem;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.cta-primary:hover {
  background: #5baee0;
  box-shadow: 0 0 32px var(--accent-glow);
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9375rem 2.25rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.025em;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.cta-secondary:hover {
  border-color: var(--accent);
  background: rgba(59,155,217,0.07);
  box-shadow: 0 0 20px rgba(59,155,217,0.18);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}
.scroll-indicator-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scroll-line 2s var(--ease-content) infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
  49%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0.3; }
}

/* ── Marquee ─────────────────────────────────────── */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  background: var(--surface);
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.marquee-text {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Intro Pinned ─────────────────────────────────── */
#intro {
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.intro-inner {
  text-align: center;
  position: relative;
  user-select: none;
}
.intro-we {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--text-muted);
  display: block;
}
.intro-verb-wrap {
  position: relative;
  height: 1.15em;
  overflow: visible;
}
.intro-verb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(0px);
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--text);
  white-space: nowrap;
  line-height: 1.15;
  will-change: opacity, transform;
}
.intro-verb:not(:first-child) {
  opacity: 0;
  transform: translateX(-50%) translateY(40px);
}
.intro-period {
  color: var(--accent);
}

/* ── Core Services (Horizontal Scroll) ───────────── */
#services { overflow: hidden; }

.services-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 5rem 2rem 2.5rem;
}

.services-outer {
  overflow: hidden;
}

.services-track {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 6vw 3rem;
  width: max-content;
  will-change: transform;
}

.service-card {
  flex-shrink: 0;
  width: min(400px, 85vw);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, box-shadow 0.4s;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59,155,217,0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card:hover {
  border-color: rgba(59,155,217,0.28);
  box-shadow: 0 10px 48px rgba(0,0,0,0.45);
}
.service-card:hover::before { opacity: 1; }

.sc-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,155,217,0.1);
  border-radius: 8px;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.sc-number {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.625rem;
  display: block;
}
.sc-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 0.875rem;
}
.sc-desc {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
}

/* ── Specialized Services Grid ─────────────────────── */
#specialized { padding: 6rem 0; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 640px)  { .spec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .spec-grid { grid-template-columns: repeat(5, 1fr); } }

.spec-card {
  background: var(--surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  opacity: 0;
  transform: translateY(28px);
  transition: background 0.3s;
}
.spec-card:hover { background: var(--surface-2); }
.spec-card-icon { color: var(--accent); flex-shrink: 0; }
.spec-card-title {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

/* ── Process Timeline ─────────────────────────────── */
#process { padding: 6rem 0; }

.process-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .process-layout {
    grid-template-columns: 260px 1fr;
    gap: 0;
    align-items: start;
  }
}

.process-sticky-col {
  padding-bottom: 2rem;
}
@media (min-width: 1024px) {
  .process-sticky-col {
    position: sticky;
    top: 35vh;
    padding-right: 3rem;
    padding-bottom: 0;
  }
}

.process-stage-num {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
  transition: opacity 0.35s;
}
.process-stage-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--accent);
  transition: opacity 0.35s;
}
.process-progress-track {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.process-pip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.3s;
  cursor: default;
}
.process-pip.active { color: var(--text); }
.process-pip-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s, transform 0.3s;
}
.process-pip.active .process-pip-dot {
  background: var(--accent);
  transform: scale(1.4);
}

.process-stages-col {}

.process-stage {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
}
.process-stage:last-child { border-bottom: 1px solid var(--border); }

.process-stage-mobile-label {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.875rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
@media (min-width: 1024px) { .process-stage-mobile-label { display: none; } }

.process-stage-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 640px;
}

.process-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.process-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.process-detail-list li::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.process-deliverable {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.125rem;
  background: rgba(59,155,217,0.07);
  border: 1px solid rgba(59,155,217,0.18);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.process-deliverable strong {
  color: var(--accent);
  font-weight: 600;
}

/* ── Testimonials ─────────────────────────────────── */
#work { padding: 6rem 0; overflow: hidden; }

.testimonials-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-slider {
  display: grid;
  position: relative;
  min-height: 260px;
}
.testimonial-card {
  grid-row: 1;
  grid-column: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.75rem;
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.55s var(--ease-content),
              transform 0.55s var(--ease-content);
  pointer-events: none;
}
.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}
.testimonial-card.leaving {
  opacity: 0;
  transform: translateX(-30px);
  pointer-events: none;
}

.t-quote-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.5rem;
  line-height: 0.5;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
  user-select: none;
}
.t-quote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.72;
  color: var(--text);
  margin-bottom: 2rem;
}
.t-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.t-role {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.t-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.t-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.t-dot.active {
  background: var(--accent);
  transform: scale(1.4);
}
.t-arrows { display: flex; gap: 0.625rem; }
.t-arrow {
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.t-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(59,155,217,0.08);
}

/* ── Contact ─────────────────────────────────────── */
#contact { padding: 7rem 0; }

.contact-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}
@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
  }
}

.contact-headline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
}
.contact-headline .accent { color: var(--accent); }

.contact-sub {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 1.25rem;
}

.contact-info {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.contact-info-item a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.contact-info-item a:hover { color: var(--accent); }
.contact-info-icon { color: var(--accent); flex-shrink: 0; }

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}
@media (min-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  appearance: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(138,149,165,0.45); }

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A95A5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}
.form-select option { background: var(--surface-2); color: var(--text); }

.form-textarea { resize: vertical; min-height: 110px; }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--accent);
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s, box-shadow 0.3s, transform 0.15s;
  will-change: transform;
}
.form-submit:hover {
  background: #5baee0;
  box-shadow: 0 0 32px var(--accent-glow);
}
.form-submit:active { transform: scale(0.98); }

/* ── Toast ───────────────────────────────────────── */
#toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--surface-2);
  border: 1px solid rgba(59,155,217,0.5);
  color: var(--text);
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease-entrance),
              opacity 0.45s var(--ease-entrance);
  box-shadow: 0 0 24px rgba(59,155,217,0.25);
  white-space: nowrap;
}
#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── Floating WhatsApp ───────────────────────────── */
#whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 500;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.32);
  transition: transform 0.35s var(--ease-entrance),
              box-shadow 0.35s;
}
#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37,211,102,0.5);
}
#whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: wa-pulse 2.8s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
@media (max-width: 639px) {
  #whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
}

/* ── Footer ─────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 4.5rem 0 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; } }

.footer-brand-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.footer-tagline-dev {
  font-family: 'Tiro Devanagari Sanskrit', serif;
  font-size: 1rem;
  color: var(--text-muted);
  display: block;
}
.footer-tagline-en {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}
.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 1rem;
}
.footer-col-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.125rem;
  display: block;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links li a:hover { color: var(--text); }

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.footer-contact-row a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-contact-row a:hover { color: var(--accent); }
.footer-contact-icon { color: var(--accent); flex-shrink: 0; width: 16px; height: 16px; margin-top: 1px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8125rem;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-legal a:hover { color: var(--text); }

/* ── Section Shared Utilities ─────────────────────── */
.section-label-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}
.section-title-text {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text);
}
.section-desc-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 0.875rem;
  max-width: 560px;
}

/* ── Prefers Reduced Motion ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .marquee-track { animation: none; }
  #cursor-dot, #cursor-ring { display: none !important; }
  .scroll-indicator-line { animation: none; }
  #whatsapp-float::before { animation: none; }
}

/* ── reCAPTCHA widget ────────────────────────────── */
.recaptcha-wrap {
  min-height: 78px;          /* reserves space before widget loads */
  display: flex;
  align-items: center;
}

/* reCAPTCHA itself renders inside an iframe so we can't
   style its internals; we just control the container.
   The dark theme (set via JS data-theme="dark") handles
   the widget colours automatically. */
.recaptcha-wrap .g-recaptcha,
.recaptcha-wrap > div { /* Google injects a div wrapper */
  transform-origin: left center;
}

/* Scale down slightly on very narrow screens */
@media (max-width: 360px) {
  .recaptcha-wrap {
    overflow: hidden;
  }
  .recaptcha-wrap > div {
    transform: scale(0.88);
    transform-origin: left center;
  }
}

/* Skeleton shimmer shown while widget loads */
.recaptcha-wrap.loading::before {
  content: '';
  display: block;
  width: 304px;
  height: 78px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--surface) 25%,
    var(--surface-2) 50%,
    var(--surface) 75%
  );
  background-size: 200% 100%;
  animation: rc-shimmer 1.4s infinite;
}
@keyframes rc-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Honeypot (bot trap) ─────────────────────────── */
/* Positioned way off-screen. NOT display:none — bots
   detect and skip those. Real users never reach it. */
.hp-wrapper {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* ── Accessibility ───────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

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