/* ==========================================================================
   Гайхалтай төсөл — дизайн систем
   Гүн индиго суурь, лайм + ягаан-хөх (violet) өнгө, duotone halftone хээ.
   Гарчиг: Montserrat, текст: Onest (хоёулаа Ө, Ү зэрэг монгол кирилл үсэгтэй).
   ========================================================================== */

:root {
  --ink: #0b0b1a;
  --ink-2: #14142b;
  --ink-3: #1d1d3c;
  --ink-4: #2a2a52;
  --line-d: rgba(255, 255, 255, 0.1);
  --line-d2: rgba(255, 255, 255, 0.16);
  --on-d: #f4f2ff;
  --on-d-muted: rgba(244, 242, 255, 0.64);

  --paper: #f7f5f0;
  --paper-2: #edeae2;
  --line-l: #dfdbd0;
  --text: #0b0b1a;
  --muted: #55546a;
  --faint: #b4b1c2;

  --accent: #d4ff3a;
  --accent-2: #7b61ff;
  --accent-deep: #5a3ff0;
  --accent-3: #ff6b4a;

  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: var(--ink); }

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

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typography ---------- */
.display {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.12;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 500; letter-spacing: -0.015em; }
.lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); max-width: 620px; }
.is-dark .lead { color: var(--on-d-muted); }
.dim { color: var(--faint); }
.is-dark .dim { color: rgba(238, 243, 242, 0.34); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  font-size: 12.5px; line-height: 1.4; font-weight: 500; letter-spacing: 0.01em;
  color: var(--muted);
  border: 1px solid var(--line-l);
  border-radius: 999px;
  background: var(--paper);
  justify-self: start; align-self: start; width: fit-content;
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.is-dark .pill, .hero .pill { color: var(--on-d-muted); border-color: var(--line-d2); background: transparent; }
.is-dark .pill::before, .hero .pill::before { background: var(--accent); }

/* Scroll-ээр тод болох гарчиг */
.reveal-text .w { color: var(--faint); transition: color 0.5s var(--ease); }
.reveal-text .w.on { color: var(--text); }
.is-dark .reveal-text .w { color: rgba(238, 243, 242, 0.28); }
.is-dark .reveal-text .w.on { color: var(--on-d); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 20px;
  font-size: 14.5px; font-weight: 600; letter-spacing: 0.005em;
  border-radius: 10px; border: 1px solid transparent;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--dark { background: var(--ink); color: var(--on-d); }
.btn--dark:hover { background: var(--accent-deep); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--accent); }
.btn--ghost { border-color: var(--line-l); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }
.is-dark .btn--ghost, .hero .btn--ghost { border-color: var(--line-d2); color: var(--on-d); }
.is-dark .btn--ghost:hover, .hero .btn--ghost:hover { border-color: var(--on-d); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow svg { width: 14px; height: 14px; }

/* ---------- Header ---------- */
.header {
  position: absolute; inset: 0 0 auto 0; z-index: 30;
  color: var(--on-d);
}
.header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo__text { display: grid; line-height: 1.05; }
.logo__name { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.logo__sub { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }

.nav { display: flex; gap: 4px; }
.nav a {
  position: relative; padding: 8px 14px; font-size: 14.5px; font-weight: 500;
  color: rgba(238, 243, 242, 0.72); border-radius: 8px; transition: color 0.2s;
}
.nav a:hover, .nav a[aria-current='page'] { color: var(--on-d); }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--accent);
}
.header__cta { height: 42px; border-color: rgba(238, 243, 242, 0.32); color: var(--on-d); }
.header__cta:hover { border-color: var(--on-d); background: rgba(255, 255, 255, 0.06); }

.menu-btn {
  display: none; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px; background: transparent; border: 1px solid rgba(238, 243, 242, 0.32); border-radius: 10px;
  font-size: 14px; font-weight: 600;
}
.menu-btn span { display: grid; gap: 4px; }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease); }
.menu-open .menu-btn i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 25;
  background: var(--ink);
  padding: 110px var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
  color: var(--on-d);
}
.menu-open .drawer { opacity: 1; visibility: visible; }
.menu-open { overflow: hidden; }
.drawer nav { display: grid; gap: 4px; }
.drawer nav a {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(30px, 8vw, 44px); letter-spacing: -0.03em; line-height: 1.3;
  color: rgba(238, 243, 242, 0.5);
}
.drawer nav a small { font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.drawer nav a[aria-current='page'], .drawer nav a:hover { color: var(--on-d); }
.drawer__foot { display: grid; gap: 6px; font-size: 14px; color: var(--on-d-muted); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink);
  color: var(--on-d);
  min-height: 560px;
  display: flex; align-items: flex-end;
}
.hero--home { min-height: min(86vh, 760px); }
.hero--page { min-height: 440px; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 19, 20, 0.7) 0%, rgba(11, 19, 20, 0) 26%),
    linear-gradient(0deg, rgba(11, 19, 20, 0.85) 0%, rgba(11, 19, 20, 0) 45%);
}
.hero__inner {
  width: 100%;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-top: 140px; padding-bottom: clamp(32px, 5vw, 56px);
}
.hero__title {
  font-size: clamp(30px, 4.2vw, 54px); line-height: 1.1; font-weight: 300; letter-spacing: -0.035em;
  max-width: 760px;
}
.hero__title b { font-weight: 500; }
.hero__eyebrow { display: block; margin-bottom: 18px; }
.hero__quick { display: grid; gap: 10px; justify-items: end; text-align: right; font-size: 13.5px; color: var(--on-d-muted); }
.hero__quick-row { display: flex; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-d2);
  backdrop-filter: blur(8px); transition: background 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.18); }
.icon-btn svg { width: 17px; height: 17px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--on-d-muted); margin-bottom: 18px; }
.crumbs a:hover { color: var(--on-d); }
.crumbs span[aria-hidden] { opacity: 0.5; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; background: var(--paper); color: var(--text); }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--soft { background: var(--paper-2); }
.is-dark { background: var(--ink); color: var(--on-d); }
.is-dark.section--soft { background: var(--ink-2); }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { justify-items: center; text-align: center; }
.section-head--center .lead { margin: 0 auto; }
.section-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; }

/* Intro */
.intro { display: grid; gap: 28px; }
.intro__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line-d); border-radius: var(--radius-lg);
  overflow: hidden; min-height: 460px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.pcard:hover { border-color: var(--line-d2); transform: translateY(-4px); }
.pcard__art { position: relative; height: 230px; }
.pcard__art canvas { width: 100%; height: 100%; }
.pcard__art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 60%; background: linear-gradient(0deg, var(--ink-2), transparent); }
.pcard__num { position: absolute; top: 18px; right: 20px; z-index: 1; font-size: 12px; letter-spacing: 0.08em; color: var(--on-d-muted); }
.pcard__body { display: flex; flex-direction: column; gap: 12px; padding: 0 24px 24px; flex: 1; }
.pcard__cat { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.pcard__title { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.pcard__title svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.pcard:hover .pcard__title svg { transform: translate(3px, -3px); }
.pcard__text { font-size: 14.5px; color: var(--on-d-muted); }
.pcard__foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-d); font-size: 13.5px; font-weight: 600; display: flex; justify-content: space-between; color: var(--on-d-muted); }
.pcard__link::after { content: ''; position: absolute; inset: 0; }

/* ---------- About band + stats ---------- */
.about-band { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-band__text { display: grid; gap: 20px; }
.about-band__text p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-l); }
.stat { padding: 28px 0 28px; border-bottom: 1px solid var(--line-l); }
.stat:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line-l); }
.stat:nth-child(even) { padding-left: 28px; }
.stat__v { font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 300; letter-spacing: -0.04em; }
.stat__l { margin-top: 10px; font-size: 14px; color: var(--muted); }
.is-dark .stats, .is-dark .stat { border-color: var(--line-d); }
.is-dark .stat__l { color: var(--on-d-muted); }

/* ---------- Expertise (interactive list) ---------- */
.xp { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.xp__left { display: flex; flex-direction: column; gap: 28px; }
.xp__meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-d-muted); }
.xp__list { display: grid; gap: 6px; }
.xp__item {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 12px 14px; text-align: left;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  font-size: 16px; color: var(--on-d-muted);
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.xp__item:hover { color: var(--on-d); }
.xp__item[aria-selected='true'] { background: var(--ink-3); border-color: var(--line-d2); color: var(--on-d); }
.xp__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--ink-4); flex: none; }
.xp__ico svg { width: 18px; height: 18px; color: var(--accent); }
.xp__item .dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 0.25s; }
.xp__item[aria-selected='true'] .dot { opacity: 1; }
.xp__panel {
  position: relative; overflow: hidden; min-height: 420px;
  border-radius: var(--radius-lg); border: 1px solid var(--line-d); background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px;
}
.xp__panel canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.xp__panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink-2) 15%, transparent 70%); }
.xp__num { position: absolute; top: 22px; left: 26px; z-index: 1; font-size: 12px; letter-spacing: 0.08em; color: var(--on-d-muted); }
.xp__content { position: relative; z-index: 1; display: grid; gap: 10px; max-width: 440px; }
.xp__content p { color: var(--on-d-muted); font-size: 15px; }
.xp__content[hidden] { display: none; }

/* ---------- Partners marquee ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-size: clamp(18px, 2vw, 24px); font-weight: 600; letter-spacing: -0.02em; color: var(--faint); white-space: nowrap; display: flex; align-items: center; gap: 56px; }
.marquee__item::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--line-l); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-l); font-size: 13.5px; color: var(--muted); background: var(--paper); }
.is-dark .tag { border-color: var(--line-d2); color: var(--on-d-muted); background: transparent; }

/* ---------- Features (numbered cards) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; min-height: 230px;
  padding: 24px; border-radius: var(--radius-lg);
  background: var(--ink-2); border: 1px solid var(--line-d);
}
.feature__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink-4); color: var(--accent); }
.feature__ico svg { width: 16px; height: 16px; }
.feature h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.015em; margin-top: 6px; }
.feature p { font-size: 14.5px; color: var(--on-d-muted); max-width: 30ch; }
.feature__n {
  position: absolute; right: 18px; bottom: -14px;
  font-size: 84px; line-height: 1; font-weight: 200; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(238, 243, 242, 0.16);
}

/* ---------- FAQ ---------- */
.faq-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tab {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 500;
  background: transparent; border: 1px solid var(--line-d2); color: var(--on-d-muted);
  transition: all 0.2s;
}
.tab:hover { color: var(--on-d); }
.tab[aria-selected='true'] { background: var(--on-d); color: var(--ink); border-color: var(--on-d); }
.faq { border-top: 1px solid var(--line-d); }
.faq[hidden] { display: none; }
.faq details { border-bottom: 1px solid var(--line-d); }
.faq summary {
  display: grid; grid-template-columns: 44px 1fr 24px; gap: 8px; align-items: center;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { font-size: 12.5px; color: var(--on-d-muted); font-weight: 500; }
.faq summary .pm { position: relative; width: 16px; height: 16px; justify-self: end; }
.faq summary .pm::before, .faq summary .pm::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -0.75px; background: currentColor; transition: transform 0.3s var(--ease); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm::after { transform: rotate(0); }
.faq .ans { padding: 0 40px 24px 52px; color: var(--on-d-muted); max-width: 820px; }
.section:not(.is-dark) .faq, .section:not(.is-dark) .faq details { border-color: var(--line-l); }
.section:not(.is-dark) .faq summary .n, .section:not(.is-dark) .faq .ans { color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; }
.contact__info { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; justify-content: start; margin: 28px 0 44px; }
.contact__info dt { font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-d-muted); margin-bottom: 6px; }
.contact__info dd { margin: 0; font-size: 14.5px; max-width: 26ch; }
.contact__info a:hover { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; }
.form h3 { grid-column: 1 / -1; font-size: 18px; font-weight: 500; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--on-d-muted); }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 0; font: inherit; font-size: 15.5px; color: var(--on-d);
  background: transparent; border: 0; border-bottom: 1px solid var(--line-d2); border-radius: 0;
  transition: border-color 0.2s;
}
.field select option { color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--accent); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__note { font-size: 13px; color: var(--on-d-muted); }
.form__status { grid-column: 1 / -1; font-size: 14px; color: var(--accent); min-height: 1em; }

.contact__visual {
  position: relative; overflow: hidden; min-height: 460px;
  border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-d);
  display: flex; flex-direction: column; justify-content: space-between; padding: 28px;
}
.contact__visual canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.contact__visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink-2) 8%, rgba(17, 28, 30, 0.2) 55%, rgba(17, 28, 30, 0.6)); }
.contact__visual > *:not(canvas) { position: relative; z-index: 1; }
.contact__visual p { max-width: 34ch; font-size: 15px; color: var(--on-d); }
.contact__quick {
  align-self: flex-end; display: grid; gap: 10px; justify-items: end;
  padding: 14px 16px; border-radius: 14px; background: rgba(11, 19, 20, 0.55); backdrop-filter: blur(12px);
  border: 1px solid var(--line-d); font-size: 13px; color: var(--on-d-muted);
}

.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-l); height: 380px; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.member { display: grid; gap: 14px; }
.member__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  background: var(--ink-2); display: grid; place-items: center;
}
.member__photo canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.member__mono { position: relative; z-index: 1; font-size: 56px; font-weight: 200; letter-spacing: -0.04em; color: var(--on-d); }
.member__role { position: absolute; top: 14px; left: 16px; z-index: 1; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-d-muted); }
.member h3 { font-size: 18px; font-weight: 500; }
.member p { font-size: 14px; color: var(--muted); margin-top: -10px; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-l); }
.value { padding: 32px 28px 8px 0; display: grid; gap: 12px; align-content: start; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--line-l); }
.value__n { font-size: 12.5px; letter-spacing: 0.08em; color: var(--accent-2); font-weight: 600; }
.value h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.value p { color: var(--muted); font-size: 15px; }

/* ---------- Projects list (projects page) ---------- */
.plist { display: grid; gap: 14px; }
.prow {
  position: relative; display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--ink-2); border: 1px solid var(--line-d);
  min-height: 380px; transition: border-color 0.3s;
}
.prow:hover { border-color: var(--line-d2); }
.prow__body { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 4vw, 44px); }
.prow__top { display: flex; justify-content: space-between; font-size: 12.5px; letter-spacing: 0.08em; color: var(--on-d-muted); }
.prow__top b { color: var(--accent); font-weight: 600; text-transform: uppercase; }
.prow h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.1; }
.prow h2 em { display: block; font-style: normal; color: var(--on-d-muted); font-size: 0.55em; letter-spacing: -0.02em; margin-top: 8px; }
.prow p { color: var(--on-d-muted); max-width: 46ch; }
.prow__actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.prow__art { position: relative; min-height: 280px; }
.prow__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.prow:nth-child(even) .prow__body { order: 2; }

/* ---------- Project detail ---------- */
.overview { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 96px); }
.overview__text { display: grid; gap: 18px; font-size: 17px; color: var(--muted); }
.overview__text p:first-child { color: var(--text); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; letter-spacing: -0.015em; }
.facts { display: grid; align-content: start; border-top: 1px solid var(--line-l); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-l); font-size: 14.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.facts a { border-bottom: 1px solid currentColor; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line-d); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__poster { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; background: none; border: 0; padding: 0; }
.video__poster canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.video__play { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14.5px; font-weight: 600; }
.video__play i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); }
.video__play svg { width: 14px; height: 14px; margin-left: 2px; }

.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-l); border-left: 1px solid var(--line-l); }
.partner-grid div { display: grid; place-items: center; min-height: 110px; padding: 16px; border-right: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--muted); text-align: center; }

.next-projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.next-projects .pcard { min-height: 340px; }
.next-projects .pcard__art { height: 160px; }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px);
  background: var(--ink-2); border: 1px solid var(--line-d); color: var(--on-d);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
}
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.cta::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink-2) 25%, rgba(17, 28, 30, 0.2)); }
.cta h2 { max-width: 16ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-d); padding: clamp(64px, 8vw, 96px) 0 28px; border-top: 1px solid var(--line-d); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__about { display: grid; gap: 18px; align-content: start; }
.footer__about p { color: var(--on-d-muted); font-size: 14.5px; max-width: 34ch; }
.footer h4 { font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--on-d-muted); margin-bottom: 16px; }
.footer li + li { margin-top: 8px; }
.footer li a, .footer address a { font-size: 14.5px; color: rgba(238, 243, 242, 0.82); transition: color 0.2s; }
.footer li a:hover, .footer address a:hover { color: var(--accent); }
.footer address { font-style: normal; display: grid; gap: 8px; font-size: 14.5px; color: rgba(238, 243, 242, 0.82); }
.footer__word {
  margin: clamp(48px, 7vw, 88px) 0 24px;
  font-size: clamp(44px, 10.5vw, 150px); line-height: 0.9; font-weight: 600; letter-spacing: -0.055em;
  color: rgba(238, 243, 242, 0.06);
  white-space: nowrap; overflow: hidden;
}
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-d); font-size: 12.5px; color: var(--on-d-muted); }
.footer__bottom a { display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__bottom a:hover { color: var(--on-d); }
.footer__bottom svg { width: 13px; height: 13px; }

/* ---------- Entrance animation ---------- */
.fx { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.fx.in { opacity: 1; transform: none; }
.no-js .fx { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fx { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .menu-btn { display: inline-flex; }
  .about-band, .xp, .contact, .overview, .prow { grid-template-columns: 1fr; }
  .prow:nth-child(even) .prow__body { order: 0; }
  .prow__art { min-height: 220px; order: -1; }
  .xp__panel { min-height: 320px; }
  .contact__visual { min-height: 320px; }
  .values { grid-template-columns: 1fr; }
  .value + .value { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-l); }
  .next-projects { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head--split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .products, .features, .footer__grid { grid-template-columns: 1fr; }
  .pcard { min-height: 0; }
  .hero__inner { flex-direction: column; align-items: flex-start; }
  .hero__quick { justify-items: start; text-align: left; }
  .contact__info { grid-template-columns: 1fr; gap: 18px; }
  .form { grid-template-columns: 1fr; }
  .faq summary { grid-template-columns: 34px 1fr 20px; font-size: 16px; }
  .faq .ans { padding: 0 0 22px 42px; }
  .stat:nth-child(odd) { padding-right: 14px; }
  .stat:nth-child(even) { padding-left: 16px; }
  .team { gap: 18px 12px; }
  .member__mono { font-size: 40px; }
  .logo__sub { display: none; }
}


/* ==========================================================================
   Theme v2 — илүү тод өнгө, хүчтэй гарчгийн фонт
   ========================================================================== */
.display, .h2, .hero__title, .stat__v, .footer__word, .prow h2, .pcard__title,
.feature__n, .member__mono, .drawer nav a, .h3, .logo__name {
  font-family: var(--font-display);
}
.display { font-size: clamp(30px, 4.6vw, 60px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.h2 { font-size: clamp(24px, 3vw, 40px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.h3 { font-weight: 500; letter-spacing: -0.01em; }
.hero__title { font-size: clamp(28px, 3.8vw, 52px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.12; }
.hero__title b { font-weight: 700; color: var(--accent); }
.stat__v { font-weight: 600; letter-spacing: -0.03em; font-size: clamp(36px, 4.4vw, 58px); }
.stats .stat:nth-child(1) .stat__v { color: var(--accent-2); }
.is-dark .stats .stat:nth-child(1) .stat__v { color: var(--accent); }
.prow h2 { font-weight: 600; letter-spacing: -0.03em; font-size: clamp(26px, 3vw, 40px); }
.pcard__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.member__mono { font-weight: 600; font-size: 48px; color: var(--accent); }
.footer__word { font-weight: 800; letter-spacing: -0.04em; font-size: clamp(36px, 9vw, 128px); color: rgba(212, 255, 58, 0.08); }
.feature__n { font-weight: 700; -webkit-text-stroke: 1px rgba(212, 255, 58, 0.22); }
.logo__name { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; }

/* Тодруулга: гарчгийн түлхүүр үгийг лайм маркерээр */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before {
  content: ''; position: absolute; left: -0.08em; right: -0.08em; bottom: 0.06em; height: 0.42em; z-index: -1;
  background: var(--accent); border-radius: 4px;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.5s;
}
.fx.in .hl::before, .reveal-text .hl::before, .no-js .hl::before { transform: scaleX(1); }
.is-dark .hl::before { background: var(--accent-2); }
.dim { color: var(--accent-2); }
.is-dark .dim { color: var(--accent); }

.pill::before { background: var(--accent-2); }
.is-dark .pill::before, .hero .pill::before { background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.pill { font-weight: 600; }

.btn--dark:hover { background: var(--accent-2); }
.btn--light { background: var(--accent); color: var(--ink); }
.btn--light:hover { background: #fff; }
.header__cta:hover { border-color: var(--accent); color: var(--accent); }
.nav a[aria-current='page']::after { background: var(--accent); width: 5px; height: 5px; box-shadow: 0 0 10px var(--accent); }

/* Төслийн өнгө — карт бүр өөрийн өнгөтэй */
.pcard { --pc: var(--accent); }
.pcard__cat { color: var(--pc); }
.pcard:hover { border-color: var(--pc); }
.pcard:hover .pcard__title svg { color: var(--pc); }
.prow__top b { color: var(--pc, var(--accent)); }
.tab[aria-selected='true'] { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.xp__ico svg, .feature__ico { color: var(--accent); }
.xp__item[aria-selected='true'] { border-color: rgba(212, 255, 58, 0.35); }
.xp__item .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.value__n { color: var(--accent-2); }
.marquee__item { color: var(--muted); }
.marquee__item::after { background: var(--accent-2); }
.tag:hover { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.faq summary .n { color: var(--accent); }
.section:not(.is-dark) .faq summary .n { color: var(--accent-2); }
::selection { background: var(--accent); color: var(--ink); }
.cta::after { background: linear-gradient(90deg, var(--ink-2) 25%, rgba(20, 20, 43, 0.15)); }
.hero::after {
  background:
    linear-gradient(180deg, rgba(11, 11, 26, 0.75) 0%, rgba(11, 11, 26, 0) 28%),
    linear-gradient(0deg, rgba(11, 11, 26, 0.9) 0%, rgba(11, 11, 26, 0) 48%);
}
.pcard__art::after { background: linear-gradient(0deg, var(--ink-2), transparent); }
.xp__panel::after { background: linear-gradient(0deg, var(--ink-2) 15%, transparent 70%); }
.contact__visual::after { background: linear-gradient(180deg, var(--ink-2) 8%, rgba(20, 20, 43, 0.2) 55%, rgba(20, 20, 43, 0.6)); }
.contact__info a:hover, .footer li a:hover, .footer address a:hover { color: var(--accent); }

/* ==========================================================================
   Blazor: маягтын төлөв, баталгаажуулалт
   ========================================================================== */
.field__err, .validation-message { font-size: 12.5px; color: var(--accent-3); }
.field input.invalid, .field textarea.invalid { border-bottom-color: var(--accent-3); }
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form__status--err { color: var(--accent-3); }
.form__done { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid rgba(212, 255, 58, 0.35); background: rgba(212, 255, 58, 0.06); }
.form__done h3 { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--accent); }
.form__done p { color: var(--on-d-muted); }
.stats--row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stats--row .stat { padding: 28px 24px; border-right: 1px solid var(--line-d); }
.stats--row .stat:nth-child(even) { padding-left: 24px; }
.member__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner-grid img { max-width: 70%; max-height: 56px; object-fit: contain; filter: grayscale(1); opacity: 0.75; transition: filter 0.3s, opacity 0.3s; }
.partner-grid div:hover img { filter: none; opacity: 1; }

/* ---------- Хуучин сайтын зургууд ---------- */
.pcard__art { overflow: hidden; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(.2,.7,.2,1); }
.pcard__art--img canvas { position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: screen; }
.pcard:hover .pcard__img { transform: scale(1.04); }
.pcard__num { z-index: 1; }

.section--flush { padding-top: 0; }
.showcase { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-2); box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc, #7b61ff) 40%, transparent); }
.showcase img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; }
.showcase--light { margin-top: 14px; background: var(--ink); box-shadow: 0 0 0 1px var(--line-d, rgba(255,255,255,0.08)); }
.showcase--light img { max-height: none; object-fit: contain; }
.showcase__logo { position: absolute; left: 20px; bottom: 20px; display: grid; place-items: center; padding: 12px 18px; border-radius: 14px; background: rgba(11, 11, 26, 0.78); border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(10px); }
.showcase__logo img { height: 34px; width: auto; max-height: none; }

.video__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.video__poster canvas { mix-blend-mode: screen; opacity: 0.6; }
.video__play { position: relative; z-index: 1; }

.gallery { margin-top: clamp(48px, 7vw, 96px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.gallery__track { display: flex; gap: 14px; width: max-content; animation: marquee 70s linear infinite; }
.gallery:hover .gallery__track { animation-play-state: paused; }
.gallery img { width: clamp(170px, 18vw, 240px); height: auto; aspect-ratio: 353 / 449; object-fit: cover; border-radius: 18px; }
@media (prefers-reduced-motion: reduce) { .gallery__track { animation: none; } .gallery { overflow-x: auto; } }

.photo-trio { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.photo-trio figure { margin: 0; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 3; }
.photo-trio img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .photo-trio { grid-template-columns: 1fr 1fr; } .photo-trio figure:first-child { grid-column: 1 / -1; } }

/* Дэд хуудасны hero: зүүн талын текстийн ард цэгэн хээг бүдгэрүүлж уншигдахуйц болгоно */
.hero--page::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 11, 26, 0.88) 0%, rgba(11, 11, 26, 0.6) 40%, rgba(11, 11, 26, 0.1) 75%, rgba(11, 11, 26, 0) 100%);
}
@media (max-width: 760px) { .hero--page::before { background: rgba(11, 11, 26, 0.6); } }

/* Уншигдах байдал: header болон hero текстийг цэгэн хээнээс тусгаарлана */
.header { background: linear-gradient(180deg, rgba(11, 11, 26, 0.92) 0%, rgba(11, 11, 26, 0.7) 70%, rgba(11, 11, 26, 0) 100%); }
.logo__sub { opacity: 0.8; }
.nav a { color: rgba(238, 243, 242, 0.85); }
.hero__canvas { -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 70px, #000 170px); mask-image: linear-gradient(180deg, transparent 0, transparent 70px, #000 170px); }
.hero--page .crumbs, .hero--page .pill {
  width: fit-content; padding: 6px 12px; border-radius: 999px;
  background: rgba(11, 11, 26, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--on-d);
}
.hero--page .crumbs a, .hero--page .crumbs span { color: rgba(238, 243, 242, 0.85); }
.hero--page .hero__title, .hero--page h1 { text-shadow: 0 2px 24px rgba(11, 11, 26, 0.9); }
