/* Samrajya.io: Ancient India · game page
   Palette and fonts follow the game: Ajanta-mural colours, parchment and gold UI,
   Cinzel for titles, Alegreya for text. Mobile first. */

@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/Alegreya.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Alegreya"; src: url("../fonts/AlegreyaItalic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  --ink: #2a1a10;
  --ink-2: #4a2a14;
  --parch: #f3e6c4;
  --parch-2: #e8d6a8;
  --parch-3: #d9c08a;
  --gold: #d9a441;
  --gold-2: #f2c867;
  --gold-d: #9c6b1e;
  --terra: #b8452a;
  --terra-d: #8a2c18;
  --lapis: #27407e;
  --malachite: #3e7d4f;
  --night: #1d1838;
  --night-2: #2b1f48;
  --plum: #3a1f3a;
  --dark: #1b120c;
  --dark-2: #2a1c12;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --text: "Alegreya", Georgia, "Times New Roman", serif;
  --r: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--dark); color: var(--parch);
  font: 400 18px/1.55 var(--text);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: .01em; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------------------------------------------------------------- curtain */
.curtain {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 45%, #3a2650 0%, var(--night) 60%, #0f0c1e 100%);
  transition: opacity .7s ease, visibility .7s;
}
.curtain-chakra { width: 120px; height: auto; animation: spin 2.4s linear infinite, pulse 1.2s ease-in-out infinite alternate; filter: drop-shadow(0 0 30px rgba(242, 200, 103, .45)); }
body.is-ready .curtain { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { opacity: .75; } to { opacity: 1; } }

/* ---------------------------------------------------------------- top bar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 12px max(16px, env(safe-area-inset-left)) 12px max(16px, env(safe-area-inset-right));
  transition: background .35s, box-shadow .35s, padding .35s;
}
.topbar.is-solid { background: rgba(27, 18, 12, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(217, 164, 65, .35); padding-top: 8px; padding-bottom: 8px; }
.topbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 20px/1 var(--display); color: var(--gold-2); }
.topbar-brand img { width: 34px; height: 34px; }
.topbar-brand em { font-family: var(--text); font-style: italic; color: var(--terra); color: #e0623f; }
.topbar-nav { display: none; margin-left: auto; gap: 26px; }
.topbar-nav a { text-decoration: none; font: 600 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--parch); opacity: .82; transition: opacity .2s, color .2s; }
.topbar-nav a:hover { opacity: 1; color: var(--gold-2); }
.topbar .btn-sm { margin-left: auto; }
@media (min-width: 900px) { .topbar-nav { display: flex; } .topbar .btn-sm { margin-left: 10px; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--gold);
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 0; border-radius: 14px; text-decoration: none; font: 700 16px/1 var(--display); letter-spacing: .06em;
  padding: 14px 22px; transition: transform .25s var(--ease), box-shadow .25s, background .25s, filter .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 10px 16px; font-size: 13px; border-radius: 11px; }
.btn-gold { color: var(--dark); background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #b9852c); box-shadow: 0 0 0 2px #6b4513 inset, 0 0 0 3px rgba(255, 240, 200, .35) inset, 0 6px 18px rgba(0, 0, 0, .35); }
.btn-gold:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-store {
  color: var(--parch); padding: 12px 22px 12px 18px; text-align: left;
  background: linear-gradient(180deg, #c8553a, var(--terra) 50%, var(--terra-d));
  box-shadow: 0 0 0 2px var(--gold) inset, 0 0 0 4px rgba(42, 26, 16, .6) inset, 0 10px 30px rgba(184, 69, 42, .45);
}
.btn-store small { display: block; font: italic 500 13px/1.1 var(--text); letter-spacing: 0; opacity: .9; }
.btn-store b { display: block; font: 700 20px/1.15 var(--display); letter-spacing: .04em; }
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--gold-2) inset, 0 0 0 4px rgba(42, 26, 16, .6) inset, 0 16px 40px rgba(184, 69, 42, .6); }
.btn-store.is-soon { cursor: default; }
.btn-lg { padding: 16px 30px 16px 24px; }
.btn-lg b { font-size: 24px; }
.btn-ghost { color: var(--parch); background: rgba(243, 230, 196, .08); box-shadow: 0 0 0 1.5px rgba(243, 230, 196, .45) inset; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(243, 230, 196, .16); box-shadow: 0 0 0 1.5px var(--gold-2) inset; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, #141133 0%, #2a2058 24%, #5a3468 46%, #b4535a 64%, #ee8f45 78%, #f6c260 90%);
  padding: 96px 0 140px;
}
.hero-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.hero-sun {
  position: absolute; z-index: -2; left: 50%; bottom: 13%; width: min(520px, 80vw); aspect-ratio: 1; transform: translate(-50%, 30%);
  border-radius: 50%; background: radial-gradient(circle, #fff6d0 0%, #ffe08a 38%, #ffc35c 60%, rgba(255, 170, 70, 0) 72%);
  filter: blur(1px); animation: sunrise 2.6s var(--ease) .5s both;
}
.hero-sun::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, .45), rgba(255, 140, 60, 0) 60%); animation: breathe 6s ease-in-out infinite alternate; }
@keyframes sunrise { from { transform: translate(-50%, 70%); opacity: .3; } to { transform: translate(-50%, 30%); opacity: 1; } }
@keyframes breathe { from { transform: scale(.92); opacity: .7; } to { transform: scale(1.08); opacity: 1; } }
.hero-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 58%; z-index: -1; }
.hero-hills .hill { will-change: transform; }
.hero-embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ember { position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 8px 2px rgba(255, 190, 90, .8); opacity: 0; animation: ember linear infinite; }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 80% { opacity: .6; } 100% { transform: translate(var(--dx, 30px), -70vh); opacity: 0; } }

.hero-inner { position: relative; display: grid; gap: 34px; align-items: center; width: min(1180px, 100% - 36px); margin-inline: auto; }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero-emblem { position: relative; width: 112px; margin-bottom: 4px; }
.hero-emblem img { width: 100%; height: auto; animation: spin 40s linear infinite; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .45)) drop-shadow(0 0 24px rgba(242, 200, 103, .35)); }
.hero-emblem::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 120, .35), transparent 65%); animation: breathe 4s ease-in-out infinite alternate; z-index: -1; }
.hero-emblem.small { width: 92px; margin-inline: auto; margin-bottom: 14px; }
.hero-logo { width: min(560px, 92vw); margin: 4px 0 14px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .5)); }
.hero-logo img { width: 100%; height: auto; }
.hero-tag { font: 700 clamp(22px, 5.4vw, 34px)/1.2 var(--display); color: #fff3d6; text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.hero-tag span { color: var(--gold-2); }
.hero-sub { max-width: 34em; margin-top: 12px; font-size: clamp(17px, 2.2vw, 20px); color: #f8ead0; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-sub strong { color: var(--gold-2); font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 24px; }
.hero-note { margin-top: 14px; font: italic 500 15px/1 var(--text); color: rgba(255, 240, 210, .78); letter-spacing: .04em; }

.hero-phone { position: relative; justify-self: center; perspective: 1200px; }
.phone-glow { position: absolute; inset: 10% -20%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 92, .55), transparent); filter: blur(20px); animation: breathe 5s ease-in-out infinite alternate; }
.float-chip {
  position: absolute; z-index: 2; padding: 8px 14px; border-radius: 10px; white-space: nowrap;
  font: 700 13px/1 var(--display); letter-spacing: .05em; color: var(--ink);
  background: linear-gradient(180deg, #fbf1d6, var(--parch-2)); box-shadow: 0 0 0 2px var(--gold) inset, 0 10px 24px rgba(0, 0, 0, .35);
  animation: bob 4.5s ease-in-out infinite;
}
.chip-a { left: -26px; top: 22%; color: #fff; background: linear-gradient(180deg, #4f9a63, var(--malachite)); box-shadow: 0 0 0 2px var(--gold) inset, 0 10px 24px rgba(0, 0, 0, .35); }
.chip-b { right: -22px; top: 58%; animation-delay: -2s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 960px) {
  .hero { padding: 110px 0 120px; display: flex; align-items: center; }
  .hero-inner { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .hero-copy { text-align: left; justify-items: start; }
  .hero-ctas { justify-content: flex-start; }
  .hero-emblem { width: 120px; }
}

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 28px; height: 46px; border-radius: 16px; box-shadow: 0 0 0 2px rgba(255, 240, 210, .7) inset; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 2px; background: var(--gold-2); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ---------------------------------------------------------------- phone frame */
.phone {
  position: relative; width: min(290px, 72vw); aspect-ratio: 1080 / 2340; border-radius: 42px; padding: 11px;
  background: linear-gradient(145deg, #3a2a1c, #120b07 55%, #2c1f15);
  box-shadow: 0 0 0 2px #6b4a24, 0 0 0 4px rgba(217, 164, 65, .55), 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  transform-style: preserve-3d; transition: transform .5s var(--ease);
}
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #2a1c12; }
.phone-video, .phone-screen video { width: 100%; height: 100%; object-fit: cover; }
.phone-notch { position: absolute; top: 18px; left: 50%; width: 30%; height: 20px; margin-left: -15%; border-radius: 12px; background: #0b0705; }
.phone-lg { width: min(330px, 78vw); }
.phone-sm { width: min(250px, 64vw); border-radius: 36px; padding: 9px; }
.phone-sm .phone-screen { border-radius: 28px; }
.phone-sm .phone-notch { top: 15px; height: 16px; }
@media (min-width: 960px) { .hero-phone .phone { width: 300px; } }

.sound-btn {
  position: absolute; right: 18px; bottom: 96px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 13px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--parch);
  background: rgba(27, 18, 12, .78); box-shadow: 0 0 0 1.5px var(--gold) inset; backdrop-filter: blur(4px);
}
.sound-btn .ico-on { display: none; }
.sound-btn.is-on .ico-on { display: block; }
.sound-btn.is-on .ico-off { display: none; }

/* ---------------------------------------------------------------- ribbon */
.ribbon { position: relative; z-index: 3; overflow: hidden; background: linear-gradient(180deg, #c3523a, var(--terra) 50%, var(--terra-d)); box-shadow: 0 2px 0 var(--gold) inset, 0 -2px 0 var(--gold) inset, 0 10px 30px rgba(0, 0, 0, .35); padding: 14px 0; }
.ribbon-track { display: flex; align-items: center; gap: 26px; width: max-content; animation: marquee 38s linear infinite; }
.ribbon span { font: 700 15px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: #fff1d2; white-space: nowrap; }
.ribbon i { width: 10px; height: 10px; transform: rotate(45deg); background: var(--gold-2); box-shadow: 0 0 0 2px var(--terra-d); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: 88px 0; overflow: hidden; overflow: clip; }   /* glows and tilted shots never widen the page */
.sec-parch {
  color: var(--ink);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 250, 230, .65), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(196, 150, 80, .25), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .08 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    var(--parch);
}
.sec-dark { background: radial-gradient(ellipse at 50% 0%, #3a2618, var(--dark) 70%); }
.sec-dusk { background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, var(--plum) 100%); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.sec-head.left { text-align: left; margin-left: 0; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.kicker::before, .kicker::after { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .7; }
.sec-head.left .kicker::before { display: none; }
@media (max-width: 480px) { .kicker { font-size: 11.5px; letter-spacing: .15em; gap: 8px; } .kicker::before, .kicker::after { width: 14px; } }
.sec-parch .kicker { color: var(--gold-d); }
.sec h2 { font-size: clamp(30px, 6vw, 50px); color: var(--gold-2); text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.sec-parch h2 { color: var(--terra-d); text-shadow: none; }
.lede { margin-top: 14px; font-size: clamp(17px, 2.2vw, 20px); color: rgba(243, 230, 196, .86); }
.sec-parch .lede { color: var(--ink-2); }
.fine { margin: 26px auto 0; max-width: 760px; text-align: center; font: italic 15px/1.5 var(--text); color: #6a4a2a; }
.fine-dark { color: rgba(243, 230, 196, .6); }

.mural-border { position: absolute; left: 0; right: 0; top: 0; height: 14px; background:
  linear-gradient(90deg, transparent 0 8px, var(--gold) 8px 10px, transparent 10px) 0 0 / 18px 100%,
  linear-gradient(180deg, var(--terra) 0 4px, var(--gold) 4px 6px, var(--terra-d) 6px 14px); opacity: .9; }

/* ---------------------------------------------------------------- how to play */
.how { display: grid; gap: 30px; align-items: center; }
.how-stage {
  position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 3.2;
  background: #e9d39c; box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px #6b4a24, 0 24px 50px rgba(74, 42, 20, .35);
}
.how-stage canvas { width: 100%; height: 100%; }
.how-hud { position: absolute; left: 14px; top: 14px; padding: 10px 16px; border-radius: 12px; background: linear-gradient(180deg, #fbf1d6, var(--parch-2)); box-shadow: 0 0 0 2px var(--gold) inset, 0 6px 16px rgba(0, 0, 0, .2); }
.how-hud-name { font: 700 13px/1 var(--display); letter-spacing: .12em; color: var(--ink); }
.how-hud-pct { font: 700 28px/1.1 var(--display); color: var(--terra); }
.how-hud-pct small { font: italic 500 14px/1 var(--text); color: var(--ink-2); }
.how-toast { position: absolute; left: 50%; top: 18px; transform: translate(-50%, -12px); opacity: 0; padding: 8px 14px; border-radius: 10px; background: linear-gradient(180deg, #4f9a63, var(--malachite)); color: #fff; font: 700 14px/1 var(--display); letter-spacing: .06em; box-shadow: 0 0 0 2px var(--gold) inset, 0 8px 18px rgba(0, 0, 0, .25); transition: opacity .3s, transform .4s var(--ease); white-space: nowrap; }
.how-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 560px) { .how-toast { left: auto; right: 14px; transform: translateY(-12px); } .how-toast.is-on { transform: none; } }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-step { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: rgba(255, 250, 235, .5); box-shadow: 0 0 0 1.5px rgba(156, 107, 30, .25) inset; transition: background .4s, box-shadow .4s, transform .4s var(--ease); }
.how-step.is-active { background: #fff8e4; box-shadow: 0 0 0 2px var(--gold) inset, 0 10px 24px rgba(74, 42, 20, .15); transform: translateX(6px); }
.how-num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 700 20px/1 var(--display); color: var(--parch); background: radial-gradient(circle at 35% 30%, #d9644a, var(--terra-d)); box-shadow: 0 0 0 2px var(--gold), 0 0 0 4px #6b4a24; }
.how-step h3 { font-size: 21px; color: var(--terra-d); margin: 2px 0 4px; }
.how-step p { font-size: 17px; color: var(--ink-2); }
@media (min-width: 900px) { .how { grid-template-columns: 1.35fr 1fr; gap: 48px; } }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 56px; }
.stat { text-align: center; padding: 22px 10px; border-radius: 18px; background: linear-gradient(180deg, #2f2016, var(--dark)); box-shadow: 0 0 0 2px var(--gold) inset, 0 0 0 5px rgba(74, 42, 20, .25); }
.stat b { display: block; font: 700 clamp(40px, 8vw, 58px)/1 var(--display); color: var(--gold-2); }
.stat span { display: block; margin-top: 8px; font: 600 13px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--parch); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- gameplay */
.gameplay { display: grid; gap: 40px; align-items: center; }
.gameplay-phone { justify-self: center; position: relative; }
.gameplay-phone::before { content: ""; position: absolute; inset: 8% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(184, 69, 42, .45), transparent); filter: blur(10px); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 16px; padding: 16px 18px; border-radius: 16px; background: rgba(243, 230, 196, .05); box-shadow: 0 0 0 1px rgba(217, 164, 65, .25) inset; transition: background .3s, transform .3s var(--ease); }
.feature-list li:hover { background: rgba(243, 230, 196, .09); transform: translateY(-2px); }
.fi { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; color: var(--gold-2); background: linear-gradient(180deg, #3a2618, #24170e); box-shadow: 0 0 0 1.5px var(--gold) inset; }
.feature-list h3 { font-size: 19px; color: var(--gold-2); margin-bottom: 4px; }
.feature-list p { font-size: 17px; color: rgba(243, 230, 196, .82); }
@media (min-width: 960px) { .gameplay { grid-template-columns: 1.2fr 1fr; gap: 60px; } }

/* ---------------------------------------------------------------- army */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.unit {
  position: relative; text-align: center; padding: 14px 14px 20px; border-radius: 22px; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, rgba(242, 200, 103, .22), transparent 60%), linear-gradient(180deg, #3b2a55, #261a3a);
  box-shadow: 0 0 0 1.5px rgba(217, 164, 65, .55) inset, 0 18px 40px rgba(0, 0, 0, .35);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.unit:hover { box-shadow: 0 0 0 2px var(--gold-2) inset, 0 24px 50px rgba(0, 0, 0, .45); }
.unit-art { position: relative; aspect-ratio: 1; margin: -6px auto 2px; width: 100%; }
.unit-art::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 8%; height: 9%; border-radius: 50%; background: rgba(0, 0, 0, .35); filter: blur(6px); z-index: 0; animation: shadow 3.6s ease-in-out infinite; }
.unit-art img { position: relative; z-index: 1; width: 100%; height: auto; animation: float 3.6s ease-in-out infinite; }
.unit:nth-child(2) .unit-art img, .unit:nth-child(2) .unit-art::after { animation-delay: -.9s; }
.unit:nth-child(3) .unit-art img, .unit:nth-child(3) .unit-art::after { animation-delay: -1.8s; }
.unit:nth-child(4) .unit-art img, .unit:nth-child(4) .unit-art::after { animation-delay: -2.7s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .55; } }
.unit h3 { font-size: 24px; color: var(--gold-2); }
.unit-en { font: italic 600 16px/1.2 var(--text); color: #e0a07a; margin: 2px 0 8px; }
.unit p:last-child { font-size: 15.5px; color: rgba(243, 230, 196, .8); }
@media (min-width: 900px) { .units { grid-template-columns: repeat(4, 1fr); gap: 20px; } .unit { padding: 18px 18px 24px; } }

/* ---------------------------------------------------------------- map */
.map-frame { padding: 10px; border-radius: 22px; background: linear-gradient(180deg, #6b4a24, #3e2a14); box-shadow: 0 0 0 2px var(--gold) inset, 0 24px 60px rgba(74, 42, 20, .4); }
.map-inner { position: relative; overflow: hidden; border-radius: 14px; }
.map-inner img { width: 100%; height: auto; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.map-inner.is-zoom img { transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(1.4); }
.map-pins { position: absolute; inset: 0; transition: transform 1.2s var(--ease); transform: scale(1.06); }
.map-inner.is-zoom .map-pins { transform-origin: var(--ox, 50%) var(--oy, 50%); transform: scale(1.4); }
.pin { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.pin::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 2px var(--terra-d); }
.pin::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold-2); animation: ping 2.2s ease-out infinite; }
.pin.is-on::before { background: #fff; box-shadow: 0 0 0 3px var(--terra); }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.map-tip { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; max-width: calc(100% - 24px); padding: 10px 16px; border-radius: 12px; text-align: center; color: var(--ink); background: linear-gradient(180deg, #fbf1d6, var(--parch-2)); box-shadow: 0 0 0 2px var(--gold) inset, 0 10px 24px rgba(0, 0, 0, .35); transition: opacity .3s, transform .4s var(--ease); }
.map-tip.is-on { opacity: 1; transform: translate(-50%, 0); }
.map-tip b { display: block; font: 700 18px/1.2 var(--display); color: var(--terra-d); }
.map-tip span { font: italic 15px/1.3 var(--text); }
.kingdoms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.kchip { padding: 9px 14px; border: 0; border-radius: 999px; cursor: pointer; font: 700 13px/1 var(--display); letter-spacing: .08em; color: var(--ink); background: rgba(255, 250, 235, .7); box-shadow: 0 0 0 1.5px rgba(156, 107, 30, .45) inset; transition: background .2s, color .2s, transform .2s; }
.kchip:hover { transform: translateY(-1px); background: #fff8e4; }
.kchip.is-on { color: var(--parch); background: var(--terra); box-shadow: 0 0 0 2px var(--gold) inset; }

/* ---------------------------------------------------------------- campaign */
.campaign { display: grid; gap: 40px; align-items: center; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; display: grid; gap: 16px; }
.timeline::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(217, 164, 65, .15)); }
.tl { position: relative; padding: 14px 18px; border-radius: 14px; background: rgba(243, 230, 196, .04); box-shadow: 0 0 0 1px rgba(217, 164, 65, .2) inset; }
.tl-dot { position: absolute; left: -26px; top: 20px; width: 14px; height: 14px; border-radius: 50%; background: #3a2618; box-shadow: 0 0 0 2px var(--gold); }
.tl-n { font: 700 12px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: rgba(217, 164, 65, .75); margin-bottom: 6px; }
.tl h3 { font-size: 18px; color: rgba(243, 230, 196, .72); }
.tl p:not(.tl-n) { margin-top: 8px; font-size: 17px; color: rgba(243, 230, 196, .85); }
.tl-open { background: linear-gradient(180deg, rgba(184, 69, 42, .35), rgba(138, 44, 24, .25)); box-shadow: 0 0 0 2px var(--gold) inset, 0 14px 30px rgba(0, 0, 0, .3); }
.tl-open .tl-dot { background: var(--terra); box-shadow: 0 0 0 2px var(--gold-2), 0 0 14px 4px rgba(242, 200, 103, .6); }
.tl-open .tl-n { color: var(--gold-2); }
.tl-open h3 { font-size: 22px; color: var(--gold-2); }
.campaign-shots { position: relative; height: 560px; max-width: 420px; width: 100%; justify-self: center; }
.shot { position: absolute; width: 230px; height: auto; border-radius: 22px; box-shadow: 0 0 0 3px var(--gold), 0 0 0 6px #2a1c12, 0 30px 60px rgba(0, 0, 0, .55); transition: transform .6s var(--ease); }
.shot-back { left: 6%; top: 0; transform: rotate(-7deg); }
.shot-front { right: 4%; top: 60px; transform: rotate(5deg); }
.campaign-shots:hover .shot-back { transform: rotate(-10deg) translateX(-14px); }
.campaign-shots:hover .shot-front { transform: rotate(7deg) translateX(14px); }
@media (min-width: 960px) { .campaign { grid-template-columns: 1.2fr 1fr; gap: 60px; } .shot { width: 250px; } }
@media (max-width: 420px) { .campaign-shots { height: 470px; } .shot { width: 190px; } }

/* ---------------------------------------------------------------- itihaas cards */
.cards { display: grid; gap: 34px; justify-items: center; padding-top: 24px; }
.icard {
  position: relative; width: min(360px, 100%); padding: 44px 26px 22px; text-align: center; border-radius: 10px;
  background: radial-gradient(ellipse at 50% 0%, #fff8e2, #f3e3b8 70%, #e7d09a);
  box-shadow: 0 0 0 2px #b88a3a inset, 0 0 0 6px #f5e7c2 inset, 0 0 0 7.5px #b88a3a inset, 0 0 0 2px #6b4a24, 0 24px 50px rgba(74, 42, 20, .35);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.icard-crest { position: absolute; left: 50%; top: -28px; width: 56px; height: 56px; margin-left: -28px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3)); }
.icard-crest img { width: 100%; height: 100%; }
.icard-k { font: 700 11.5px/1 var(--display); letter-spacing: .24em; text-transform: uppercase; color: #b48a3c; }
.icard h3 { margin-top: 10px; font-size: 32px; color: #a1311a; letter-spacing: .03em; }
.icard-land { font: italic 17px/1.3 var(--text); color: #5a3a1c; }
.icard-div { position: relative; height: 12px; margin: 12px auto 12px; width: 70%; background: linear-gradient(90deg, transparent, #b48a3c 20%, #b48a3c 80%, transparent) center / 100% 1.5px no-repeat; }
.icard-div::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; transform: rotate(45deg); background: #b8452a; box-shadow: 0 0 0 2px #f3e3b8; }
.icard-fact { font-size: 17.5px; line-height: 1.5; color: var(--ink); }
.icard-src { margin-top: 14px; font: italic 13.5px/1.35 var(--text); color: #7a5a3a; }
@media (min-width: 960px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
  .icard:nth-child(1) { transform: rotate(-3deg) translateY(18px); }
  .icard:nth-child(3) { transform: rotate(3deg) translateY(18px); }
  .icard:hover { transform: rotate(0) translateY(-8px) scale(1.02); }
}

/* ---------------------------------------------------------------- looks */
.look-tabs { display: flex; justify-content: center; gap: 6px; margin: -18px auto 30px; padding: 5px; width: max-content; border-radius: 999px; background: rgba(0, 0, 0, .3); box-shadow: 0 0 0 1px rgba(217, 164, 65, .4) inset; }
.look-tab { padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; font: 700 14px/1 var(--display); letter-spacing: .08em; color: var(--parch); transition: background .3s, color .3s; }
.look-tab.is-on { color: var(--dark); background: linear-gradient(180deg, var(--gold-2), var(--gold)); }
.looks { position: relative; display: grid; justify-items: center; }
.look { grid-area: 1 / 1; margin: 0; text-align: center; opacity: 0; transform: scale(.94); pointer-events: none; transition: opacity .5s, transform .6s var(--ease); }
.look.is-on { opacity: 1; transform: none; pointer-events: auto; }
.look figcaption { margin-top: 18px; font-size: 17px; color: rgba(243, 230, 196, .82); }
.look figcaption b { display: block; font: 700 22px/1.2 var(--display); color: var(--gold-2); }
@media (min-width: 960px) {
  .look-tabs { display: none; }
  .looks { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .look { grid-area: auto; opacity: 1; transform: none; pointer-events: auto; }
  .look:nth-child(2) { transform: translateY(-24px); }
}

/* ---------------------------------------------------------------- final */
.final { position: relative; overflow: hidden; min-height: 86svh; display: grid; place-items: center; padding: 100px 20px 180px; text-align: center; isolation: isolate;
  background: linear-gradient(180deg, #120f2c 0%, #2a2058 28%, #5a3468 52%, #b4535a 70%, #ee8f45 84%, #f6c260 96%); }
.final-sky { position: absolute; inset: 0; z-index: -1; }
.final-sky::before { content: ""; position: absolute; inset: 0 0 45% 0; opacity: .8;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff6dc 99%, transparent), radial-gradient(1px 1px at 27% 8%, #fff6dc 99%, transparent), radial-gradient(1.4px 1.4px at 44% 26%, #fff6dc 99%, transparent), radial-gradient(1px 1px at 61% 12%, #fff6dc 99%, transparent), radial-gradient(1.3px 1.3px at 78% 22%, #fff6dc 99%, transparent), radial-gradient(1px 1px at 90% 6%, #fff6dc 99%, transparent), radial-gradient(1px 1px at 6% 40%, #fff6dc 99%, transparent), radial-gradient(1.2px 1.2px at 35% 44%, #fff6dc 99%, transparent), radial-gradient(1px 1px at 70% 38%, #fff6dc 99%, transparent), radial-gradient(1.2px 1.2px at 94% 46%, #fff6dc 99%, transparent);
  animation: pulse 3s ease-in-out infinite alternate; }
.final-sun { position: absolute; z-index: -2; left: 50%; bottom: 30%; width: min(340px, 62vw); aspect-ratio: 1; transform: translate(-50%, 45%); border-radius: 50%;
  background: radial-gradient(circle, #fff6d0 0%, #ffe08a 38%, #ffc35c 60%, rgba(255, 170, 70, 0) 72%); }
.final-sun::after { content: ""; position: absolute; inset: -60%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 92, .45), rgba(255, 140, 60, 0) 60%); animation: breathe 6s ease-in-out infinite alternate; }
.final-sky .hero-hills { height: 42%; z-index: 0; }
.fi svg { width: 26px; height: 26px; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(18, 15, 44, .55), transparent 62%); }
.final h2 { font-size: clamp(34px, 7vw, 62px); color: #fff3d6; text-shadow: 0 4px 24px rgba(0, 0, 0, .6); }
.final p { margin: 14px auto 28px; max-width: 30em; font-size: 20px; color: #f8ead0; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }

/* ---------------------------------------------------------------- footer */
.foot { padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); background: #120c08; box-shadow: 0 1px 0 rgba(217, 164, 65, .3) inset; text-align: center; font-size: 15px; color: rgba(243, 230, 196, .7); }
.foot-in { display: grid; gap: 10px; justify-items: center; }
.foot-brand { display: grid; gap: 6px; justify-items: center; text-decoration: none; margin-bottom: 6px; }
.foot-brand small { font: italic 14px/1 var(--text); }
.foot-brand img { width: 200px; height: auto; }
.foot-small { max-width: 46em; font-size: 13.5px; opacity: .75; }

/* ---------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(12, 8, 6, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox-in { position: relative; animation: pop .5s var(--ease); }
.lightbox .phone { width: min(360px, 80vw, calc((100svh - 60px) * 1080 / 2340)); }
.lightbox video { width: 100%; height: 100%; object-fit: cover; }
.lightbox-x { position: absolute; right: -14px; top: -14px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; font: 700 26px/1 var(--text); color: var(--parch); background: var(--terra); box-shadow: 0 0 0 2px var(--gold) inset, 0 6px 16px rgba(0, 0, 0, .4); }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------- reveal on scroll */
.js .reveal, .js .reveal-up { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal { transform: translateY(18px); }
.js .reveal-up { transform: translateY(46px) scale(.97); }
.js .is-in.reveal, .js .is-in.reveal-up { opacity: 1; transform: none; }
.js .how-step.is-active.is-in { transform: translateX(6px); }
@media (min-width: 960px) {
  .js .icard.is-in:nth-child(1) { transform: rotate(-3deg) translateY(18px); }
  .js .icard.is-in:nth-child(3) { transform: rotate(3deg) translateY(18px); }
  .js .icard.is-in:hover { transform: rotate(0) translateY(-8px) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-up { opacity: 1; transform: none; }
}
