/* =====================================================================
   MISSION POSSIBLE 2026 — DEENADAYAL GROUP
   Monochrome Luxury — Black · White · Ivory
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --bg:          #FFFFFF;
  --bg-2:        #F6F1E6;
  --surface:     #FFFFFF;
  --surface-2:   #FBF7EE;
  --border:      #E6DDC7;
  --border-soft: #EFE5CF;

  --gold:        #C9A84C;
  --gold-light:  #F0D080;
  --gold-dark:   #8B6914;

  --white:       #0B0B0B;
  --ivory:       #0B0B0B;
  --cream:       #E8E2D6;
  --silver:      #7A6A3A;
  --muted:       #4D4D4D;
  --faint:       #D6CDB3;

  /* Team accent — still monochrome, just tonal */
  --creators:    #E8E2D6;
  --dominators:  #888888;
  --royals:      #CCCCCC;

  --maxw:        1180px;
  --gut:         clamp(20px, 5vw, 64px);
  --r:           2px;

  --f-display:   "Playfair Display", Georgia, serif;
  --f-serif:     "Cormorant Garamond", Georgia, serif;
  --f-sans:      "Montserrat", system-ui, sans-serif;
  --f-head:      "Playfair Display", Georgia, serif;

  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  -webkit-font-smoothing: antialiased;
}
* { scrollbar-width: thin; scrollbar-color: rgba(201,168,76,0.5) transparent; }
*::-webkit-scrollbar { width: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.35); border-radius: 20px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* Subtle grain */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: 0.03; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }
.section { padding-block: clamp(70px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 90px); }

/* Ornamental rule */
.ornament-line {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.ornament-line::before, .ornament-line::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--faint), transparent);
}
.ornament-line span {
  font-family: var(--f-sans); font-size: 0.58rem; letter-spacing: 0.4em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

.sec-label {
  display: flex; align-items: baseline; gap: 20px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.sec-label .num {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(3rem, 7vw, 6rem); line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--faint);
  letter-spacing: -0.02em;
}
.sec-label .txt {
  font-family: var(--f-sans); font-size: 0.65rem; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.01em; }
h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.9rem); }
.accent { color: var(--gold-light); }
.italic { font-style: italic; }
.eyebrow { font-family: var(--f-sans); font-size: 0.62rem; letter-spacing: 0.36em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 32px;
  font-family: var(--f-sans); font-weight: 600;
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  border-radius: var(--r);
  transition: transform .4s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn--white { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: var(--bg); border: 1px solid var(--gold); font-weight: 700; }
.btn--white { color: var(--white); }
.btn--white:hover { background: linear-gradient(135deg, var(--gold-light), var(--gold)); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,0.35); }
.btn--ghost { border: 1px solid var(--border); color: var(--silver); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-2px); }
.btn .arr { transition: transform .3s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(14px);
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
}
.nav.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: min(1320px, 100%); margin: 0 auto;
  padding: 12px clamp(16px, 3vw, 40px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: nowrap;
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0; min-width: 0;
}
.brand-logo { width: auto; object-fit: contain; display: block; }
.brand-logo--nav { height: 44px; }
.brand-tagline {
  font-family: var(--f-sans); font-size: 0.48rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold); font-weight: 600; line-height: 1.3;
  white-space: nowrap;
}
@media (max-width: 1080px) {
  .brand-tagline { display: none; }
}
@media (max-width: 640px) {
  .brand-logo--nav { height: 40px; }
}
.nav__links {
  display: flex; align-items: center; flex-wrap: nowrap;
  gap: clamp(10px, 1.2vw, 22px);
  flex-shrink: 1; min-width: 0; justify-content: flex-end;
}
.nav__links li { flex-shrink: 0; }
.nav__label-full { display: none; }
.nav__links a {
  font-family: var(--f-sans); font-size: clamp(0.52rem, 0.9vw, 0.62rem); font-weight: 600;
  color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
  position: relative; padding: 4px 0; transition: color .25s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--white); transition: width .3s var(--ease);
}
.nav__links a:hover, .nav__links a.active { color: var(--gold-light); }
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; background: var(--gold); }

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 110; }
.nav__burger span { width: 22px; height: 1px; background: var(--ivory); border-radius: 1px; transition: transform .35s var(--ease), opacity .25s; }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav__inner { padding-block: 10px; }
  .nav__burger { display: flex; }
  .nav__brand { max-width: calc(100% - 56px); }
  .nav__links {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100svh;
    flex-direction: column; align-items: center; justify-content: center;
    gap: 22px; padding: 84px 26px 32px;
    background: rgba(255,255,255,0.99);
    z-index: 109;
    display: none;
    overflow-y: auto;
  }
  .nav__links.open {
    display: flex;
  }
  .nav__label-short { display: none; }
  .nav__label-full { display: inline; }
  .nav__links a {
    font-family: var(--f-display); font-size: 1.4rem; font-weight: 700;
    color: var(--ivory); text-transform: none; letter-spacing: 0;
  }
  .nav__burger { z-index: 111; }
  body.nav-open .nav { background: #FFFFFF; }
}

@media (max-width: 520px) {
  .nav__links { padding: 84px 22px 28px; }
  .nav__links a { font-size: 1.25rem; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--surface-2); border-top: 1px solid var(--border);
  padding-block: clamp(52px, 7vw, 88px); margin-top: 40px;
}
.footer__top { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; align-items: flex-start; }
.footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.brand-logo--footer { height: clamp(72px, 10vw, 96px); }
.brand-tagline--footer { font-size: 0.52rem; color: var(--muted); }
.footer__links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer__links a { font-family: var(--f-sans); font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; transition: color .25s; }
.footer__links a:hover { color: var(--white); }
.footer__base {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.68rem; color: var(--muted); letter-spacing: 0.06em;
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: transform .5s var(--ease), border-color .35s, box-shadow .5s;
}
.card:hover { transform: translateY(-4px); border-color: var(--faint); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.9); }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-sans); font-size: 0.55rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 700;
  padding: 5px 12px; border-radius: var(--r);
  border: 1px solid var(--border); color: var(--muted);
}
.badge--gold { color: var(--gold); border-color: rgba(201,168,76,0.35); background: rgba(201,168,76,0.1); }
.badge--white { color: var(--white); border-color: var(--faint); background: rgba(255,255,255,0.05); }
.badge--live { color: #4ade80; border-color: rgba(74,222,128,0.35); background: rgba(74,222,128,0.1); }
.badge--live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #4ade80; animation: pulse 1.4s infinite; }
.badge--done { color: var(--silver); border-color: var(--faint); background: transparent; }
.badge--sports { color: #2ECC71; background: rgba(39,174,96,0.15); border-color: transparent; }
.badge--cultural { color: #9B59B6; background: rgba(142,68,173,0.15); border-color: transparent; }
.badge--indoor { color: #3498DB; background: rgba(41,128,185,0.15); border-color: transparent; }
.badge--fun { color: #E67E22; background: rgba(230,126,34,0.15); border-color: transparent; }
.badge--finale { color: var(--gold); background: rgba(201,168,76,0.15); border-color: transparent; }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
  70%  { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Team color helpers */
.tc-stripe { border-left: 2px solid var(--tc, var(--white)); }
.tc-top    { border-top:  1px solid var(--tc, var(--white)); }
.tc-text   { color: var(--tc, var(--white)); }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: var(--r); overflow: hidden;
  background: var(--surface); position: relative;
}
.stats::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--faint), transparent);
}
.stats__cell { padding: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 30px); border-right: 1px solid var(--border); }
.stats__cell:last-child { border-right: none; }
.stats__n { font-family: var(--f-display); font-weight: 900; font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1; color: var(--white); }
.stats__l { margin-top: 10px; font-size: 0.58rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); font-family: var(--f-sans); font-weight: 600; }
@media (max-width: 680px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats__cell:nth-child(2) { border-right: none; }
  .stats__cell:nth-child(1), .stats__cell:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .42s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Interior hero ---------- */
.phero { padding-top: clamp(120px, 18vh, 200px); padding-bottom: clamp(40px, 6vw, 80px); }
.phero h1 { max-width: 14ch; }
.phero p { color: var(--muted); max-width: 56ch; margin-top: 20px; font-size: 1.05rem; font-family: var(--f-serif); }

/* ---------- Empty / loading ---------- */
.empty { text-align: center; padding: clamp(40px, 7vw, 80px) 20px; border: 1px solid var(--border); border-radius: var(--r); color: var(--muted); font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; }
.skeleton { color: var(--muted); padding: 40px 0; text-align: center; letter-spacing: 0.08em; font-size: 0.72rem; font-family: var(--f-sans); text-transform: uppercase; }

/* Utilities */
.grid { display: grid; gap: clamp(16px, 2.5vw, 24px); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }
.mono { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
