/* Ramin Sir Khairzad Trading Company — promotional site (v2)
   Navy + gold family of the company's accounting app, rickshaw yellow,
   white number plates, Herat girih pattern. */
@font-face {
  font-family: "Estedad";
  src: url("../assets/fonts/estedad-vf.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Nastaliq";
  src: url("../assets/fonts/nastaliq-sub.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

:root {
  --navy-950: #071228;
  --navy-900: #0a1834;
  --navy-800: #102552;
  --navy-700: #1b3a6b;   /* accounting app primary */
  --line: rgba(160, 190, 240, .16);
  --yellow: #ffc20e;     /* rickshaw yellow */
  --yellow-2: #ffd84d;
  --gold: #d99a1e;       /* accounting app accent */
  --plate: #ffffff;
  --ink: #0f1a2e;
  --mist: #b8c6e3;
  --wa: #25d366;

  --f: "Estedad", Tahoma, system-ui, sans-serif;
  --f-cal: "Nastaliq", "Estedad", serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --girih: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.055' stroke-width='1.2'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3Cpath d='M0 0l20 20M88 0L68 20M0 88l20-20M88 88L68 68M44 0v16M44 72v16M0 44h16M72 44h16'/%3E%3C/g%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--yellow) var(--navy-950); }
body {
  margin: 0; background: var(--navy-900); color: #fff;
  font: 400 17px/1.85 var(--f); overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f); line-height: 1.25; margin: 0; }
p { margin: 0; }
svg { flex: none; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 300; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }
.girih { position: absolute; inset: 0; background: var(--girih); pointer-events: none; }

.nastaliq { font-family: var(--f-cal); font-weight: 700; line-height: 2.1; }
html[lang="en"] .nastaliq { font-family: var(--f); font-weight: 600; line-height: 1.5; letter-spacing: .01em; }

/* ---------- Number plate (every logo) ---------- */
.plate {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(180deg, #fff, #f1f4fa);
  border-radius: 12px; padding: 18px 28px;
  box-shadow: inset 0 0 0 2px rgba(15, 26, 46, .1), inset 0 -3px 0 rgba(15, 26, 46, .06), 0 14px 30px -14px rgba(0, 0, 0, .6);
}
.plate::before, .plate::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #a3acc4 55%, #59627f);
}
.plate::before { inset-inline-start: 9px; }
.plate::after { inset-inline-end: 9px; }
.plate img { width: auto; max-width: 100%; max-height: 74px; object-fit: contain; }
.plate-sm { padding: 4px 16px; height: 44px; border-radius: 8px; }
.plate-sm::before, .plate-sm::after { width: 5px; height: 5px; margin-top: -2.5px; }
.plate-sm::before { inset-inline-start: 5px; }
.plate-sm::after { inset-inline-end: 5px; }
.plate-sm img { height: 36px; max-height: 36px; }
.plate-xl { height: clamp(170px, 18vw, 240px); padding: 24px 52px; }
.plate-xl img { max-height: 170px; }
.plate-dark { background: linear-gradient(180deg, #262626, #121212); }
.plate-text { font: italic 900 44px/1 var(--f); letter-spacing: .03em; color: var(--ink); direction: ltr; }

/* =================== Buttons =================== */
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 700 17px/1 var(--f); text-decoration: none; cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn .arrow { transition: transform .35s var(--spring); }
html[dir="ltr"] .btn .arrow { transform: scaleX(-1); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .arrow { transform: translateX(-5px); }
html[dir="ltr"] .btn:hover .arrow { transform: scaleX(-1) translateX(-5px); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .1s; }
/* sheen that sweeps across on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 48%, transparent 66%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .45); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.btn-gold {
  color: var(--ink);
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow) 50%, #eaa70a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(120, 70, 0, .18), 0 12px 28px -10px rgba(255, 194, 14, .7);
}
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -3px 0 rgba(120, 70, 0, .18), 0 18px 40px -10px rgba(255, 194, 14, .9); }
.btn-glass {
  color: #fff; background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28);
}
.btn-glass:hover { background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6), 0 14px 30px -14px rgba(0, 0, 0, .6); }
.btn-ink { color: var(--yellow); background: linear-gradient(180deg, #1b2c4f, var(--ink)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 14px 28px -12px rgba(15, 26, 46, .8); }
.btn-ink-line { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ink-line:hover { background: rgba(15, 26, 46, .08); }
.btn-ink-line::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .6) 48%, transparent 66%); }
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 16px; margin-top: 20px; }

/* =================== Intro =================== */
.intro { display: none; }
html.intro-on .intro {
  position: fixed; inset: 0; z-index: 400; display: grid; place-content: center; justify-items: center; gap: 10px;
  background: var(--girih), radial-gradient(60% 60% at 50% 45%, var(--navy-700), var(--navy-950));
  transition: opacity .6s var(--ease), visibility .6s;
}
.intro-plate { padding: 14px 30px; animation: introPop .7s var(--spring) both; }
.intro-plate img { max-height: 92px; }
.intro-name {
  font-size: clamp(30px, 5vw, 54px); color: var(--yellow);
  clip-path: inset(0 0 0 100%); animation: introWrite 1s .35s var(--ease) forwards;
}
html.intro-done .intro { opacity: 0; visibility: hidden; }
@keyframes introPop { from { transform: scale(.6) rotate(-6deg); opacity: 0; } }
@keyframes introWrite { to { clip-path: inset(0 0 0 0); } }

/* =================== Curtain between sections =================== */
.curtain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  background: var(--girih), linear-gradient(90deg, var(--yellow), var(--yellow-2));
  transform: translateX(-101%); display: grid; place-items: center;
}
.curtain-rick { width: min(220px, 40vw); }
.curtain.is-in { transition: transform .45s cubic-bezier(.7, 0, .3, 1); transform: translateX(0); }
.curtain.is-out { transition: transform .5s cubic-bezier(.7, 0, .3, 1); transform: translateX(101%); }
.curtain.is-in .curtain-rick { animation: rickIn .45s var(--ease) both; }
.curtain.is-out .curtain-rick { animation: rickOut .5s cubic-bezier(.7, 0, .3, 1) both; }
@keyframes rickIn { from { transform: translateX(-60vw); } }
@keyframes rickOut { to { transform: translateX(40vw); } }

/* =================== Header =================== */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; gap: 22px;
  padding: 12px var(--gutter);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.bar.is-solid {
  background: rgba(10, 24, 52, .82); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .8); padding-block: 8px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .plate { transition: transform .4s var(--spring); }
.brand:hover .plate { transform: rotate(-4deg) scale(1.06); }
.brand-text { display: grid; line-height: 1.2; }
.brand-name { font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand-sub { font-size: 13px; color: var(--yellow); font-weight: 500; }
.nav { position: relative; display: flex; gap: 4px; margin-inline-start: auto; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.nav a { position: relative; z-index: 1; text-decoration: none; color: var(--mist); font-weight: 600; font-size: 15.5px; padding: 8px 18px; border-radius: 999px; transition: color .25s; }
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav-pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; opacity: 0;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 6px 18px -6px rgba(255, 194, 14, .8);
  transition: left .45s var(--spring), width .45s var(--spring), opacity .25s;
}
.lang {
  --i: 0; position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line);
}
.lang[data-on="en"] { --i: 1; }
.lang button { position: relative; z-index: 1; border: 0; background: none; color: var(--mist); font: 700 14px/1 var(--f); padding: 9px 14px; cursor: pointer; border-radius: 999px; transition: color .3s; }
.lang button[aria-pressed="true"] { color: var(--ink); }
.lang-thumb { position: absolute; top: 4px; bottom: 4px; width: calc(50% - 4px); inset-inline-start: calc(4px + var(--i) * (50% - 4px)); border-radius: 999px; background: #fff; transition: inset-inline-start .45s var(--spring); }
.burger { display: none; }

/* phone menu */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--girih), linear-gradient(160deg, var(--navy-800), var(--navy-950)); display: grid; align-content: center; padding: 100px var(--gutter) 40px; }
.menu[hidden] { display: none; }
.menu nav { display: grid; gap: 6px; }
.menu nav a { display: flex; align-items: center; justify-content: space-between; text-decoration: none; font-size: clamp(34px, 9vw, 52px); font-weight: 800; padding: 10px 4px; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; }
.menu nav a::after { content: ""; width: 14px; height: 14px; border-inline-start: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(135deg); }
html[dir="ltr"] .menu nav a::after { transform: rotate(225deg); }
.menu nav a:active { color: var(--yellow); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(2) { transition-delay: .06s; }
.menu.is-open nav a:nth-child(3) { transition-delay: .12s; }
.menu.is-open nav a:nth-child(4) { transition-delay: .18s; }
.menu-addr { margin-top: 32px; color: var(--mist); font-size: 15px; }

/* =========================================================
   HERO — sticky stage; JS writes --a --b --c (0..1)
   ========================================================= */
.hero { height: 320vh; position: relative; }
.stage {
  --a: 0; --b: 0; --c: 0; --bob: 0px;
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; perspective: 1400px;
  background: radial-gradient(110% 70% at 50% 105%, #2450a8 0%, rgba(36, 80, 168, 0) 60%), radial-gradient(60% 50% at 85% 10%, rgba(217, 154, 30, .16), transparent 70%), var(--navy-900);
}
.bg-word {
  position: absolute; top: 16%; left: 0; white-space: nowrap; direction: ltr;
  font: 900 clamp(110px, 21vw, 340px)/1 var(--f); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .08);
  transform: translateX(calc(-30% * var(--a) - 25% * var(--b))); will-change: transform; user-select: none;
}
.road { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, rgba(4, 10, 30, 0), rgba(4, 10, 30, .6)); }
.lanes {
  position: absolute; left: 0; right: 0; top: 38%; height: 6px; direction: ltr; opacity: .75;
  background: repeating-linear-gradient(90deg, rgba(255, 194, 14, .65) 0 70px, transparent 70px 150px);
  background-position: calc(1600px * (var(--a) + var(--b))) 0;
}
.speed {
  position: absolute; left: 0; right: 0; top: -200%; height: 160%; direction: ltr;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 120px, transparent 120px 420px) 0 30% / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .09) 0 80px, transparent 80px 300px) 0 70% / 100% 2px no-repeat;
  opacity: calc((var(--a) - var(--a) * var(--a)) * 4 + (var(--b) - var(--b) * var(--b)) * 4);
  transform: translateX(calc(30% * (var(--a) + var(--b))));
}
.hero-copy {
  position: absolute; z-index: 3; inset-inline-start: var(--gutter); top: clamp(90px, 14vh, 150px);
  max-width: min(660px, 92vw);
  opacity: calc(1 - var(--b) * 1.6); transform: translateY(calc(-60px * var(--b)));
}
.sign { font-size: clamp(22px, 2.4vw, 34px); color: var(--gold); margin-bottom: 2px; animation: rise .9s .2s var(--ease) both; }
.hero-copy h1 {
  font-size: clamp(42px, 6vw, 92px); font-weight: 900; line-height: 1.18; text-wrap: balance;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow) 60%, #f0ab0a); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s .3s var(--ease) both;
}
.hero-copy .lead { margin-top: 18px; font-size: clamp(17px, 1.45vw, 21px); color: var(--mist); max-width: 32em; animation: rise .9s .4s var(--ease) both; }
.hero-copy .ctas { animation: rise .9s .5s var(--ease) both; }
html[dir="ltr"] .hero-copy { inset-inline-start: auto; inset-inline-end: var(--gutter); }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
html.intro-on:not(.intro-done) .hero-copy > * { animation-play-state: paused; }

.rick { position: absolute; margin: 0; bottom: 11%; z-index: 2; will-change: transform; }
.rick img { width: 100%; filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .5)); }
.rick figcaption {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); direction: ltr; white-space: nowrap;
  font: 800 clamp(20px, 2.2vw, 32px)/1 var(--f); opacity: var(--c);
}
.rick figcaption b { font-weight: 800; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 194, 14, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.rick-tvs {
  width: clamp(300px, 46vw, 760px); left: 50%; transform-origin: 50% 100%;
  transform: translate3d(calc(-118% + 18% * var(--a) + 72% * var(--b)), var(--bob), 0) scale(calc(1.18 - .32 * var(--a) - .06 * var(--b))) rotateY(calc(-14deg + 14deg * var(--a)));
}
.rick-bajaj {
  width: clamp(320px, 50vw, 820px); left: 50%; z-index: 1; transform-origin: 50% 100%;
  transform: translate3d(calc(-260% + 172% * var(--b)), calc(var(--bob) * -1), 0) scale(.78) rotateY(calc(-18deg + 18deg * var(--b)));
}
.hero-end {
  position: absolute; z-index: 3; left: 50%; top: 17%; width: min(900px, 90vw); text-align: center;
  transform: translate(-50%, calc(30px - 30px * var(--c)));
  font: 800 clamp(26px, 3.4vw, 52px)/1.35 var(--f); opacity: var(--c); text-wrap: balance;
}
.scroll-hint {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: grid; justify-items: center; gap: 6px; text-decoration: none;
  font-size: 13px; color: var(--mist); opacity: calc(1 - var(--a) * 4);
}
.mouse { width: 24px; height: 38px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); position: relative; transition: box-shadow .2s; }
.mouse::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--yellow); animation: wheel 1.6s var(--ease) infinite; }
.scroll-hint:hover .mouse { box-shadow: inset 0 0 0 2px var(--yellow); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* =================== Section heads =================== */
.sec-head { display: grid; gap: 6px; max-width: 760px; }
.kicker { font-size: clamp(22px, 2.2vw, 32px); color: var(--gold); }
.sec-head h2, .about h2 { font-size: clamp(34px, 4.4vw, 62px); font-weight: 850; text-wrap: balance; }
.sec-head > p:not(.kicker) { color: var(--mist); font-size: clamp(16px, 1.4vw, 19px); }

/* =================== About + route =================== */
.about { position: relative; padding: clamp(90px, 12vw, 160px) 0 clamp(70px, 9vw, 120px); background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: end; }
.about h2 { color: var(--yellow); }
.about-text p { font-size: clamp(17px, 1.5vw, 21px); color: #e2e9f8; max-width: 36em; }
.about-text p + p { margin-top: 16px; }
.route { list-style: none; padding: 0; margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.route::before {
  content: ""; position: absolute; top: 27px; inset-inline: 27px calc(33.33% - 27px); height: 3px; border-radius: 3px;
  background: repeating-linear-gradient(to left, var(--yellow) 0 18px, transparent 18px 30px);
  animation: march 1.6s linear infinite;
}
@keyframes march { to { background-position: -30px 0; } }
.route li { position: relative; display: grid; gap: 2px; padding-inline-end: 16px; }
.stop { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 16px; background: var(--navy-800); box-shadow: inset 0 0 0 2px var(--line), 0 10px 24px -12px rgba(0, 0, 0, .8); position: relative; transition: transform .4s var(--spring); }
.stop svg { width: 26px; height: 26px; fill: none; stroke: var(--yellow); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.stop-main { background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); box-shadow: 0 0 0 8px rgba(255, 194, 14, .16), 0 14px 30px -10px rgba(255, 194, 14, .7); }
.stop-main svg { stroke: var(--ink); }
.route li:hover .stop { transform: translateY(-6px) rotate(-6deg); }
.route b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; }
.route small { font-size: 15px; color: var(--mist); }

/* =================== Models =================== */
.model { height: 280vh; position: relative; }
.model-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; padding: 100px var(--gutter) 28px; perspective: 1600px;
  background: radial-gradient(80% 60% at 50% 72%, #28509f 0%, var(--navy-800) 55%, var(--navy-900) 100%);
}
.model[data-model="bajaj"] .model-stage { background: radial-gradient(80% 60% at 50% 72%, #22468f 0%, var(--navy-900) 60%, var(--navy-950) 100%); }
.model-word {
  position: absolute; inset: 50% 0 auto 0; transform: translateY(-50%); direction: ltr; text-align: center; white-space: nowrap;
  font: 900 clamp(120px, 23vw, 380px)/1 var(--f); letter-spacing: -.03em;
  background: linear-gradient(180deg, rgba(255, 194, 14, .16), rgba(255, 194, 14, 0) 80%); -webkit-background-clip: text; background-clip: text; color: transparent;
  pointer-events: none;
}
.model-head { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: end; gap: 8px 40px; }
.model-head h2 { direction: ltr; font-size: clamp(46px, 5.6vw, 88px); font-weight: 900; color: var(--yellow); line-height: 1.1; }
.model-head p { max-width: 30em; color: var(--mist); font-size: clamp(15px, 1.3vw, 18px); }
.views { position: relative; z-index: 1; display: grid; place-items: center; min-height: 0; transform-style: preserve-3d; }
.view {
  grid-area: 1 / 1; max-height: min(56svh, 590px); max-width: min(100%, 860px); width: auto; object-fit: contain;
  opacity: 0; transform: rotateY(60deg) translateZ(-200px) scale(.9);
  transition: opacity .3s ease-out, transform .9s var(--ease);
  filter: drop-shadow(0 34px 26px rgba(0, 0, 0, .5));
}
.view.is-left { transform: rotateY(-60deg) translateZ(-200px) scale(.9); }
.view.is-on { opacity: 1; transform: none; transition: opacity .5s ease-in .18s, transform .9s var(--ease); }
.view[data-view="rear"] { max-width: min(70%, 460px); }
.floor { position: absolute; bottom: 3%; left: 50%; width: min(70%, 700px); height: 46px; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .5), transparent 70%); z-index: -1; }
.model-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }

.seg {
  --i: 0; --n: 3; position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; color: var(--mist); font: 700 15px/1 var(--f); padding: 11px 22px; border-radius: 999px; transition: color .3s; }
.seg button:hover { color: #fff; }
.seg button[aria-pressed="true"] { color: var(--ink); }
.seg-thumb {
  position: absolute; top: 5px; bottom: 5px; width: calc((100% - 10px) / var(--n)); inset-inline-start: calc(5px + var(--i) * (100% - 10px) / var(--n));
  border-radius: 999px; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); box-shadow: 0 6px 18px -6px rgba(255, 194, 14, .9);
  transition: inset-inline-start .5s var(--spring);
}
.swatches { display: flex; gap: 14px; }
.sw {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: linear-gradient(135deg, var(--c2) 0 50%, var(--c) 50% 100%);
  box-shadow: inset 0 2px 4px rgba(255, 255, 255, .35), inset 0 -3px 6px rgba(0, 0, 0, .3), 0 0 0 2px var(--navy-900), 0 0 0 3px rgba(255, 255, 255, .3);
  transition: box-shadow .25s, transform .35s var(--spring);
}
.sw:hover { transform: translateY(-4px) scale(1.08); }
.sw[aria-pressed="true"] { box-shadow: inset 0 2px 4px rgba(255, 255, 255, .35), inset 0 -3px 6px rgba(0, 0, 0, .3), 0 0 0 3px var(--navy-900), 0 0 0 5px var(--yellow); transform: scale(1.1); }
.sw::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translate(-50%, 6px); white-space: nowrap;
  background: #fff; color: var(--ink); font: 700 13px/1 var(--f); padding: 8px 12px; border-radius: 8px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s var(--spring); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
}
.sw:hover::after, .sw:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* =================== Tilt (brand plates, cards) =================== */
.tilt { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease); transform-style: preserve-3d; position: relative; }
.tilt.is-tilting { transition: transform .08s linear; }
.tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(255, 255, 255, .22), transparent 45%); opacity: 0; transition: opacity .3s; }
.tilt:hover::after { opacity: 1; }

/* =================== Brands =================== */
.brands { position: relative; background: var(--navy-950); padding: clamp(90px, 11vw, 150px) 0; }
.amra {
  margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 3vw, 44px); border-radius: 28px;
  background: linear-gradient(var(--navy-900), var(--navy-900)) padding-box, conic-gradient(from var(--ang, 0deg), var(--yellow), transparent 25%, var(--gold) 50%, transparent 75%, var(--yellow)) border-box;
  border: 2px solid transparent; animation: spinBorder 6s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spinBorder { to { --ang: 360deg; } }
.amra .plate-xl { transform: translateZ(40px); }
.badge { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); color: var(--ink); font-weight: 800; font-size: 14.5px; padding: 6px 14px; border-radius: 999px; }
.badge svg { width: 16px; height: 16px; fill: var(--ink); }
.amra h3 { font: 900 clamp(46px, 5.4vw, 80px)/1.1 var(--f); letter-spacing: .02em; margin-top: 10px; direction: ltr; text-align: start; }
.amra-body > p:not(.badge) { color: var(--mist); font-size: clamp(16px, 1.4vw, 19px); margin-top: 6px; max-width: 30em; }
.plates { list-style: none; padding: 0; margin: clamp(28px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 18px; }
.plates li { display: grid; gap: 10px; border-radius: 14px; cursor: default; }
.plates .plate { height: 112px; transition: box-shadow .3s; }
.plates li:hover .plate { box-shadow: inset 0 0 0 2px var(--yellow), 0 22px 40px -16px rgba(255, 194, 14, .45); }
.plates b { font-weight: 600; font-size: 14px; color: var(--mist); text-align: center; transition: color .25s; }
.plates li:hover b { color: var(--yellow); }

/* =================== Parts =================== */
.parts { position: relative; padding: clamp(90px, 11vw, 150px) 0; background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.part-list { list-style: none; padding: 0; margin: clamp(40px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.part {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: start; gap: 4px; height: 100%;
  padding: 30px 28px 34px; border-radius: 22px; text-decoration: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .45s var(--spring), box-shadow .35s, color .35s;
}
.part::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--yellow-2), var(--yellow)); transform: translateY(101%); transition: transform .5s var(--ease); }
.part svg { width: 56px; height: 56px; fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 220; stroke-dashoffset: 0; transition: stroke .35s; margin-bottom: 12px; }
.part h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 800; }
.part p { color: var(--mist); transition: color .35s; }
.part-go {
  position: absolute; inset-inline-end: 20px; top: 24px; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; font-size: 14px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: var(--yellow);
  opacity: 0; transform: translateY(-8px) scale(.9); transition: opacity .3s, transform .4s var(--spring);
}
.part:hover, .part:focus-visible { transform: translateY(-8px); color: var(--ink); box-shadow: 0 26px 50px -20px rgba(255, 194, 14, .55); }
.part:hover::before, .part:focus-visible::before { transform: translateY(0); }
.part:hover svg, .part:focus-visible svg { stroke: var(--ink); animation: draw 1s var(--ease); }
.part:hover p, .part:focus-visible p { color: #3b4660; }
.part:hover .part-go, .part:focus-visible .part-go { opacity: 1; transform: none; }
.part:active { transform: translateY(-3px) scale(.98); }
@keyframes draw { from { stroke-dashoffset: 220; } }

/* =================== Why =================== */
.why { position: relative; background: var(--navy-950); padding: clamp(90px, 11vw, 150px) 0; }
.why-list { list-style: none; padding: 0; margin: clamp(40px, 5vw, 60px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-list li { padding: 28px 24px; border-radius: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0)); box-shadow: inset 0 0 0 1px var(--line); transition: transform .45s var(--spring), box-shadow .3s; }
.why-list li:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255, 194, 14, .5); }
.why-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; margin-bottom: 18px; background: conic-gradient(from 200deg, var(--yellow), var(--gold), var(--yellow)); box-shadow: 0 12px 26px -10px rgba(255, 194, 14, .7); transition: transform .5s var(--spring); }
.why-ic svg { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.why-list li:hover .why-ic { transform: rotate(-10deg) scale(1.08); }
.why-list h3 { font-size: clamp(20px, 1.8vw, 25px); font-weight: 800; color: var(--yellow); }
.why-list p { margin-top: 8px; color: #dfe6f6; font-size: 16px; }

/* =================== Contact =================== */
.contact { position: relative; color: var(--ink); padding: clamp(80px, 10vw, 130px) 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%230f1a2e' stroke-opacity='.07' stroke-width='1.2'%3E%3Crect x='24' y='24' width='40' height='40'/%3E%3Crect x='24' y='24' width='40' height='40' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3C/g%3E%3C/svg%3E"), linear-gradient(160deg, var(--yellow-2), var(--yellow) 50%, #f2b00a); }
.contact-head { max-width: 760px; }
.contact h2 { font-size: clamp(36px, 4.8vw, 72px); font-weight: 900; text-wrap: balance; }
.contact-head p { margin-top: 12px; font-size: clamp(17px, 1.45vw, 20px); max-width: 34em; color: #3a3220; }
.people { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr minmax(240px, .8fr); gap: 20px; align-items: stretch; }
.qr-card[hidden] { display: none; }
.person, .qr-card {
  background: #fff; border-radius: 26px; padding: 28px; display: grid; align-content: start; justify-items: start; gap: 2px;
  box-shadow: 0 30px 60px -30px rgba(15, 26, 46, .55), inset 0 0 0 1px rgba(15, 26, 46, .06);
}
.avatar {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px;
  font: 900 30px/1 var(--f); color: var(--yellow); background: linear-gradient(160deg, var(--navy-700), var(--navy-900));
  box-shadow: 0 12px 24px -10px rgba(15, 26, 46, .7); transition: transform .5s var(--spring);
}
.person:hover .avatar { transform: rotate(-8deg) scale(1.06); }
.person h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 900; }
.role { display: inline-block; font-size: 13.5px; font-weight: 700; color: #7a5a00; background: #fff3c4; padding: 3px 12px; border-radius: 999px; margin-top: 4px; }
.num { margin-top: 14px; font: 800 clamp(22px, 2vw, 27px)/1.2 var(--f); letter-spacing: .03em; text-decoration: none; color: var(--ink); transition: color .2s; }
.num:hover { color: var(--navy-700); }
.person-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; width: 100%; }
.person-btns .btn { min-height: 48px; padding: 0 20px; font-size: 16px; flex: 1 1 auto; }
.btn-wa { color: #fff; background: linear-gradient(180deg, #34e07a, var(--wa) 55%, #1aa851); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 12px 24px -10px rgba(37, 211, 102, .8); }
.btn-wa:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 18px 34px -10px rgba(37, 211, 102, .95); }
.qr-card { justify-items: center; text-align: center; }
.qr { display: block; padding: 10px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 2px #e6eaf2; transition: transform .45s var(--spring), box-shadow .3s; }
.qr img { width: 170px; height: 170px; }
.qr:hover { transform: scale(1.05); box-shadow: inset 0 0 0 2px var(--wa), 0 16px 30px -14px rgba(37, 211, 102, .8); }
.qr-card h3 { margin-top: 14px; font-size: 22px; font-weight: 900; }
.qr-card p { font-size: 15px; color: #4a5470; max-width: 24em; }
.card-addr {
  font-style: normal; margin-top: 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  background: var(--ink); color: #fff; padding: 22px 26px; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(15, 26, 46, .8);
}
.addr-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--yellow); flex: none; }
.addr-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 2; }
.addr-row { display: grid; gap: 2px; flex: 1 1 320px; }
.addr-row b { font-size: 13.5px; color: var(--mist); font-weight: 600; }
.addr-row span { font-size: 18px; font-weight: 800; }
.map-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; padding: 13px 22px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); transition: background .25s, color .25s, transform .35s var(--spring);
}
.map-link:hover { background: var(--yellow); color: var(--ink); transform: translateY(-3px); }

/* =================== Footer =================== */
.foot { background: var(--navy-950); padding: 26px 0 30px; color: var(--mist); font-size: 14px; box-shadow: inset 0 1px 0 var(--line); }
.foot-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-inline: 64px; }
.foot-sign { font-size: 22px; color: var(--gold); margin-inline-end: auto; }

/* =================== Floating actions =================== */
.fab, .totop { position: fixed; bottom: 20px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--spring), opacity .3s; }
.fab { inset-inline-end: 20px; background: var(--wa); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); }
.fab svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.4s infinite; }
.fab:hover { transform: scale(1.1) rotate(-8deg); }
@keyframes pulse { 70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
.totop { --sp: 0; inset-inline-start: 20px; background: rgba(10, 24, 52, .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transform: translateY(20px); pointer-events: none; }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { transform: translateY(-4px); }
.totop .ring { position: absolute; inset: 0; transform: rotate(-90deg); }
.totop .ring circle { fill: none; stroke: var(--line); stroke-width: 3; }
.totop .ring .ring-bar { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: calc(132 - 132 * var(--sp)); }
.totop .up { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* =================== Tablet & phone =================== */
@media (max-width: 980px) {
  .people { grid-template-columns: 1fr 1fr; }
  .people .qr-card { grid-column: 1 / -1; }
  .why-list { grid-template-columns: 1fr 1fr; }
  .part-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav, .bar .lang { display: none; }
  .burger { display: grid; gap: 5px; margin-inline-start: auto; width: 48px; height: 48px; place-content: center; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; position: relative; z-index: 2; }
  .burger span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .4s var(--spring), opacity .2s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .menu .lang { display: grid; width: 160px; margin-top: 28px; }
  .brand-name { font-size: 17px; }
  .about-grid, .amra { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .part { padding: 22px 18px 26px; }
  .part-go { display: none; }
  .route { grid-template-columns: 1fr; gap: 22px; }
  .route::before { inset: 28px auto 28px 27px; inset-inline-start: 27px; inset-inline-end: auto; width: 3px; height: auto; background: repeating-linear-gradient(to bottom, var(--yellow) 0 12px, transparent 12px 22px); animation: none; }
  .route li { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .stop { grid-row: span 2; margin: 0; }
  .hero { height: 240vh; }
  .hero-copy { top: 88px; }
  .rick { bottom: 9%; }
  .rick-tvs { width: 74vw; transform: translate3d(calc(-88% + 18% * var(--a) + 20% * var(--b)), calc(var(--bob) - 108% * var(--b)), 0) scale(calc(1.15 - .15 * var(--a))) rotateY(calc(-12deg + 12deg * var(--a))); }
  .rick-bajaj { width: 78vw; transform: translate3d(calc(-230% + 180% * var(--b)), calc(var(--bob) * -1), 0) rotateY(calc(-14deg + 14deg * var(--b))); }
  .hero-end { top: 15%; }
  .model { height: 230vh; }
  .model-stage { padding: 86px var(--gutter) 84px; }
  .model-foot { justify-content: center; }
  .plates { grid-template-columns: 1fr 1fr; gap: 12px; }
  .plates .plate { height: 92px; padding: 14px 22px; }
  .fab, .totop { width: 52px; height: 52px; bottom: 16px; }
  .foot { padding-bottom: 86px; }
}
@media (max-width: 520px) {
  .why-list, .part-list { grid-template-columns: 1fr; }
  .seg button { padding: 10px 16px; }
  .sw { width: 36px; height: 36px; }
  .swatches { gap: 10px; }
}
@media (hover: none) {
  .tilt::after { display: none; }
}

/* =================== Reduced motion =================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero, .model { height: auto; }
  .stage, .model-stage { position: relative; height: auto; min-height: 100svh; }
  .stage { --a: 1; --b: 0; --c: 1; padding-bottom: 40vh; }
  .rick-bajaj, .hero-end, .scroll-hint, .speed { display: none; }
  .bg-word, .lanes { transform: none; }
  .tilt { transform: none !important; }
  html.intro-on .intro { display: none; }
}
