/* ============================================
   jagmindersingh.com — Global Stylesheet
   Warm off-white, ambient orbs, thin sans-serif
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Palette — warm off-white base */
  --bg:            #f8f6f3;
  --bg-dark:       #0a0e1a;
  --text:          #1a1a1a;
  --text-muted:    #6b6560;
  --text-light:    #999;
  --accent:        #d4622a;
  --accent-hover:  #b8501f;
  --accent-soft:   rgba(212,98,42,0.12);
  --border:        rgba(26,26,26,0.08);
  --border-hover:  rgba(26,26,26,0.15);
  --white:         #ffffff;
  --card-bg:       rgba(255,255,255,0.75);
  --card-bg-solid: #ffffff;

  /* Orb colours */
  --orb-peach:     rgba(232,140,80,0.20);
  --orb-lavender:  rgba(220,160,100,0.14);
  --orb-mint:      rgba(245,190,140,0.16);

  /* Typography */
  --font-display:  'Clash Display', sans-serif;
  --font-body:     'Inter', sans-serif;

  /* Spacing scale (8px base) */
  --sp-1:  0.25rem;   /*  4 */
  --sp-2:  0.5rem;    /*  8 */
  --sp-3:  0.75rem;   /* 12 */
  --sp-4:  1rem;      /* 16 */
  --sp-5:  1.5rem;    /* 24 */
  --sp-6:  2rem;      /* 32 */
  --sp-7:  3rem;      /* 48 */
  --sp-8:  4rem;      /* 64 */
  --sp-9:  6rem;      /* 96 */
  --sp-10: 8rem;      /* 128 */

  /* Layout */
  --max-w:         1200px;
  --max-w-narrow:  920px;
  --nav-h:         72px;
  --radius:        12px;
  --radius-lg:     20px;

  /* Transitions */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur:           0.4s;
  --dur-fast:      0.2s;
  --dur-slow:      0.8s;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 70% 10%, rgba(232,140,80,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(220,120,50,0.08) 0%, transparent 50%);
  background-attachment: fixed;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: none;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Typography Scale --- */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.heading-lg {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.heading-md {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.7;
}

.body-md {
  font-size: 1rem;
  line-height: 1.7;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.container--narrow {
  max-width: var(--max-w-narrow);
}

.section {
  padding: var(--sp-10) 0;
}

.section--dark {
  background: #0a0e1a;
  color: var(--white);
  position: relative;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  transition: background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              backdrop-filter var(--dur) var(--ease-out);
}

.nav--scrolled {
  background: rgba(248,246,243,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--dur-fast) var(--ease-out);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--text);
  transition: width var(--dur) var(--ease-out);
}

.nav__link:hover,
.nav__link--active {
  color: var(--text);
}

.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

.nav__cta {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border: 1.5px solid var(--text);
  border-radius: 100px;
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--text);
  color: var(--bg);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 0;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform var(--dur) var(--ease-out),
              opacity var(--dur) var(--ease-out);
}

.nav__toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav__toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  padding: calc(var(--nav-h) + var(--sp-8)) var(--sp-5) var(--sp-8);
  flex-direction: column;
  gap: var(--sp-5);
}

.nav__mobile.active {
  display: flex;
}

.nav__mobile a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* --- Custom Cursor (dot + trailing ring) --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              height 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  mix-blend-mode: normal;
}

.cursor::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(212, 98, 42, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}

.cursor--hover {
  width: 6px;
  height: 6px;
}

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

.cursor--hidden {
  opacity: 0;
}

@media (max-width: 768px) {
  .cursor { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* --- Page Transitions --- */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #0a0e1a;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateY(0%);
}

.page-transition.is-entering {
  animation: revealPage 0.6s cubic-bezier(0.87, 0, 0.13, 1) forwards;
}

.page-transition.is-hidden {
  transform: translateY(-100%);
}

.page-transition.is-leaving {
  animation: coverPage 0.5s cubic-bezier(0.87, 0, 0.13, 1) forwards;
}

@keyframes revealPage {
  from { transform: translateY(0%); }
  to   { transform: translateY(-100%); }
}

@keyframes coverPage {
  from { transform: translateY(100%); }
  to   { transform: translateY(0%); }
}

/* --- Ambient Orbs --- */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
  transition: transform 0.8s var(--ease-out);
}

.orb--peach {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(232,130,70,0.45) 0%, rgba(220,105,45,0.28) 35%, rgba(200,90,30,0.10) 60%, transparent 75%);
  top: -20%;
  right: -12%;
  animation: orbFloat1 18s ease-in-out infinite alternate;
}

.orb--lavender {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,130,60,0.30) 0%, rgba(190,110,45,0.18) 40%, transparent 70%);
  bottom: 5%;
  left: -8%;
  animation: orbFloat2 22s ease-in-out infinite alternate;
}

.orb--mint {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245,175,110,0.28) 0%, rgba(230,155,80,0.16) 40%, transparent 70%);
  top: 30%;
  right: 20%;
  animation: orbFloat3 26s ease-in-out infinite alternate;
}

@keyframes orbFloat1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, 30px) scale(1.08); }
}

@keyframes orbFloat2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(1.05); }
}

@keyframes orbFloat3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 40px) scale(1.1); }
}

/* --- Grain Overlay --- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* --- Ghost Watermark Section --- */
.watermark-section {
  padding: var(--sp-6) 0 0;
  overflow: visible;
  text-align: center;
  position: relative;
}

.watermark__text {
  font-family: 'Clash Display', sans-serif;
  /* Scale to always fit viewport width — 9 chars needs ~10.5vw per char */
  font-size: clamp(3rem, 10.5vw, 16rem);
  font-weight: 700;
  color: rgba(26,26,26,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  line-height: 0.85;
  width: 100%;
  display: block;
}

/* --- Footer --- */
.footer {
  position: relative;
  overflow: hidden;
}

.footer--gradient {
  background: linear-gradient(165deg, #080c18 0%, #0d1228 40%, #111838 70%, #080c18 100%);
  color: rgba(255,255,255,0.85);
  padding: var(--sp-8) 0 var(--sp-6);
}

.footer--gradient::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212,160,42,0.18) 0%, rgba(212,98,42,0.08) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.footer--gradient::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(230,170,60,0.12) 0%, rgba(200,120,40,0.06) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
}

.footer__top {
  text-align: center;
  margin-bottom: var(--sp-7);
  position: relative;
  z-index: 1;
}

.footer__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  margin-bottom: var(--sp-2);
  color: #ffffff;
}

.footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  padding: var(--sp-5) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__links a {
  font-size: 0.8125rem;
  font-weight: 400;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover {
  color: #ffffff;
}

.footer__divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.footer__bottom {
  text-align: center;
  margin-top: var(--sp-5);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .footer__links {
    gap: var(--sp-4);
  }
  .footer__divider {
    display: none;
  }
}

/* --- Button Arrow --- */
.btn__arrow {
  display: inline-block;
  margin-left: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* --- Utilities --- */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-accent { color: var(--accent); }

.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mt-8 { margin-top: var(--sp-8); }

.mb-1 { margin-bottom: var(--sp-1); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4       { gap: var(--sp-4); }
.gap-6       { gap: var(--sp-6); }

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

/* --- Text Split Reveal --- */
.word-wrap {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  padding-bottom: 0.05em;
}

.word {
  display: inline-block;
  will-change: transform;
}

/* --- Ticker Strip (hero → manifesto) --- */
.ticker {
  overflow: hidden;
  padding: var(--sp-5) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 25s linear infinite;
}

.ticker__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 300;
  color: var(--text-muted);
  white-space: nowrap;
  padding-right: 2rem;
}

@keyframes tickerScroll {
  to { transform: translateX(-50%); }
}

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

/* --- Loading Screen --- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0a0e1a;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.6s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader__inner {
  text-align: center;
  padding: 2rem;
}

.loader__name {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  animation: loaderNameIn 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.loader__counter {
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.loader__bar {
  width: 280px;
  height: 1.5px;
  background: rgba(255,255,255,0.12);
  margin: 0 auto 1.5rem;
  overflow: hidden;
  border-radius: 2px;
}

.loader__bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d4622a, #e6a832);
  border-radius: 2px;
}

.loader__msg {
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: loaderMsgIn 0.6s 0.6s ease forwards;
}

@keyframes loaderNameIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes loaderMsgIn {
  to { opacity: 1; }
}

/* --- LinkedIn Floating Button --- */
.linkedin-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 8000;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1.125rem 0.625rem 0.875rem;
  background: #0077b5;
  color: white;
  border-radius: 100px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,119,181,0.35);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s ease,
              background 0.2s ease;
  cursor: none;
}

.linkedin-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 30px rgba(0,119,181,0.45);
  background: #005a8c;
}

.linkedin-float svg {
  width: 16px;
  height: 16px;
  fill: white;
  flex-shrink: 0;
}

.linkedin-float__text {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .linkedin-float {
    bottom: 1.25rem;
    right: 1.25rem;
    padding: 0.75rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    justify-content: center;
  }
  .linkedin-float__text {
    display: none;
  }
}

.nav__mobile.active ~ .linkedin-float {
  opacity: 0;
  pointer-events: none;
}

/* --- 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;
  }
  .orb { display: none; }
  .grain { display: none; }
  .cursor { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .word {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Manifesto: force all beliefs visible */
  .manifesto__belief {
    opacity: 1 !important;
    transform: none !important;
  }
  .manifesto__belief-line {
    width: 60px !important;
  }
  /* Dual: force all words visible */
  .dual__word {
    opacity: 1 !important;
    transform: none !important;
  }
  .dual__word--highlight::after {
    width: 100% !important;
  }
  /* Panels: force first panel open */
  .panels__item:first-child {
    /* Already active by default */
  }
  /* Bento: force visible */
  .teaser__bento-card {
    opacity: 1 !important;
    transform: none !important;
  }
}
