/* توسعه فام v2 — Kamand titles, palettes, transparent logo */

:root,
html[data-theme="ivory"] {
  --ink: #0d1b2a;
  --ink-2: #152536;
  --ink-3: #1e3348;
  --stone: #e7e0d4;
  --stone-2: #d8d0c4;
  --bone: #f4efe6;
  --lacquer: #8f1a2c;
  --lacquer-deep: #6b1221;
  --lacquer-bright: #c4233c;
  --brass: #b8956a;
  --brass-dim: #8d7352;
  --mute: #7a746a;
  --line: rgba(13, 27, 42, 0.16);
  --logo-plate: #f4efe6;
  --footer: #091320;
  --font: "Vazirmatn", Tahoma, sans-serif;
  --display: "Kamand", "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 5.2rem;
  --wrap: 1180px;
}

html[data-theme="lacquer"] {
  --ink: #11090b;
  --ink-2: #1a1013;
  --ink-3: #26181c;
  --stone: #c9c4bb;
  --stone-2: #b9b3a9;
  --bone: #efe8de;
  --lacquer: #8f1a2c;
  --lacquer-deep: #6b1221;
  --lacquer-bright: #c4233c;
  --brass: #b8956a;
  --brass-dim: #8d7352;
  --mute: #8a8178;
  --line: rgba(184, 149, 106, 0.28);
  --logo-plate: #efe8de;
  --footer: #0c0708;
}

html[data-theme="navy"] {
  --ink: #071422;
  --ink-2: #0c1e36;
  --ink-3: #132a4a;
  --stone: #d4cfc3;
  --stone-2: #c4beb2;
  --bone: #f1e8d4;
  --lacquer: #7a1a24;
  --lacquer-deep: #4e1118;
  --lacquer-bright: #a32230;
  --brass: #c9a227;
  --brass-dim: #9a7b1c;
  --mute: #8b8578;
  --line: rgba(201, 162, 39, 0.32);
  --logo-plate: #f1e8d4;
  --footer: #050d18;
}

html[data-theme="petroleum"] {
  --ink: #071412;
  --ink-2: #0c1e1b;
  --ink-3: #14302c;
  --stone: #c5cbc7;
  --stone-2: #b4bbb6;
  --bone: #e6ebe8;
  --lacquer: #8f1a2c;
  --lacquer-deep: #6b1221;
  --lacquer-bright: #c4233c;
  --brass: #3d8b80;
  --brass-dim: #2f6b63;
  --mute: #7d8884;
  --line: rgba(61, 139, 128, 0.32);
  --logo-plate: #e6ebe8;
  --footer: #04100e;
}

html[data-theme="amber"] {
  --ink: #16120e;
  --ink-2: #221c16;
  --ink-3: #32281e;
  --stone: #d2c4b0;
  --stone-2: #c2b49e;
  --bone: #f1e6d4;
  --lacquer: #8f1a2c;
  --lacquer-deep: #6b1221;
  --lacquer-bright: #c4233c;
  --brass: #d4922a;
  --brass-dim: #a87220;
  --mute: #8a7d6c;
  --line: rgba(212, 146, 42, 0.32);
  --logo-plate: #f1e6d4;
  --footer: #0e0b08;
}



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

html {
  scroll-behavior: auto;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

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

button {
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
}

::selection {
  background: var(--lacquer);
  color: var(--bone);
}

:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

.gem:focus,
.gem:focus-visible,
.gem polygon:focus,
.gem polygon:focus-visible {
  outline: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--ink);
}

::-webkit-scrollbar-thumb {
  background: var(--lacquer);
}

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  background: var(--lacquer);
  color: var(--bone);
  padding: 0.6rem 1rem;
  z-index: 400;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(var(--wrap), calc(100% - 3.2rem));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--lacquer);
  transform: rotate(45deg);
  flex-shrink: 0;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.display,
h1,
h2,
h3 {
  font-family: var(--display);
}

.display {
  font-weight: 300;
  font-size: clamp(3.2rem, 10.4vw, 8.6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 400;
  font-size: clamp(2rem, 4.8vw, 4.1rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h3 {
  font-weight: 500;
}

.lede {
  font-size: 1.12rem;
  line-height: 1.9;
  font-weight: 400;
  color: color-mix(in srgb, var(--bone) 78%, transparent);
  max-width: 38rem;
}

.mute {
  color: var(--mute);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

/* ---------- loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease), opacity 0.8s ease;
}

.loader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.loader__mark {
  width: 92px;
  height: 118px;
  overflow: visible;
  background: none;
  padding: 0;
  animation: markIn 1.1s var(--ease) both;
}

.loader__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 2px rgba(255, 244, 220, 0.45))
    drop-shadow(0 0 10px color-mix(in srgb, var(--brass) 80%, transparent))
    drop-shadow(0 0 22px color-mix(in srgb, var(--lacquer) 40%, transparent));
}

.loader__name {
  font-weight: 300;
  font-size: 0.95rem;
  color: var(--brass);
  animation: fadeUp 0.8s 0.35s var(--ease) both;
}

@keyframes markIn {
  from {
    clip-path: inset(0 50% 0 50%);
    opacity: 0;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.16) translate(2.2%, 1.4%);
  }
  to {
    transform: scale(1.04) translate(0, 0);
  }
}

@keyframes slashSweep {
  0%,
  100% {
    opacity: 0.25;
    transform: translateX(8%) rotate(-26deg);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-6%) rotate(-26deg);
  }
}

@keyframes spinSlow {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- nav ---------- */
section[id] {
  scroll-margin-top: 5.2rem;
}

.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 1.6rem;
  min-height: var(--nav-h);
  transition: background 0.45s var(--ease), border-color 0.45s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(17, 9, 11, 0.9);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}

.nav__logo {
  width: 40px;
  height: 52px;
  object-fit: contain;
  background: none;
  padding: 0;
  border: 0;
  filter: drop-shadow(0 0 1.5px rgba(255, 244, 220, 0.5))
    drop-shadow(0 0 8px color-mix(in srgb, var(--brass) 75%, transparent))
    drop-shadow(0 0 16px color-mix(in srgb, var(--lacquer) 35%, transparent));
}

.nav__word strong {
  font-family: var(--display);
  font-weight: 500;
}

.nav__word {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav__word strong {
  font-weight: 600;
  font-size: 0.92rem;
}

.nav__word span {
  font-size: 0.68rem;
  color: var(--brass);
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 400;
  overflow: visible;
}

.nav__links a {
  position: relative;
  color: color-mix(in srgb, var(--bone) 82%, transparent);
  transition: color 0.25s;
}

.nav__links a:hover,
.nav__links a.is-on {
  color: var(--bone);
}

.nav__links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: -0.35rem;
  height: 1px;
  width: 0;
  background: var(--lacquer);
  transition: width 0.35s var(--ease);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__drop {
  position: relative;
}

.nav__drop:hover,
.nav__drop:focus-within {
  z-index: 8;
}

.nav__mega {
  position: absolute;
  top: 100%;
  inset-inline-start: 0;
  inset-inline-end: auto;
  width: 23rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem 0.55rem;
  display: grid;
  gap: 0.05rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: 0.3s var(--ease);
}

.nav__mega::before {
  content: "";
  position: absolute;
  bottom: 100%;
  inset-inline: 0;
  height: 0.85rem;
}

.nav__drop:hover .nav__mega,
.nav__drop:focus-within .nav__mega {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.nav__mega a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.nav__mega a svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  stroke: var(--brass);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav__mega a:hover {
  background: color-mix(in srgb, var(--lacquer) 22%, transparent);
}

.nav__mega a:hover svg {
  stroke: var(--bone);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--lacquer);
  color: var(--bone);
  padding: 0.62rem 1.05rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}

.nav__cta:hover {
  background: var(--lacquer-bright);
}

.nav__en {
  font-size: 0.72rem;
  color: var(--brass);
  border: 1px solid var(--line);
  padding: 0.28rem 0.5rem;
}

.nav__burger {
  display: none;
  width: 2.4rem;
  height: 2.4rem;
  position: relative;
  z-index: 130;
}

.nav__burger span,
.nav__burger::before,
.nav__burger::after {
  content: "";
  position: absolute;
  inset-inline: 0.45rem;
  height: 1px;
  background: var(--bone);
  transition: 0.3s;
}

.nav__burger span {
  top: 50%;
}

.nav__burger::before {
  top: 0.75rem;
}

.nav__burger::after {
  bottom: 0.75rem;
}

body.is-menu .nav__burger span {
  opacity: 0;
}

body.is-menu .nav__burger::before {
  top: 50%;
  transform: rotate(45deg);
}

body.is-menu .nav__burger::after {
  bottom: auto;
  top: 50%;
  transform: rotate(-45deg);
}

.nav__drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: var(--ink);
  padding: 6.5rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transform: translateY(-110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.55s var(--ease), visibility 0.55s;
}

body.is-menu .nav__drawer {
  transform: none;
  visibility: visible;
  pointer-events: auto;
}

body.is-menu {
  overflow: hidden;
}

body.is-menu .nav {
  background: var(--ink);
}

body.is-menu .float-cta {
  display: none !important;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: calc(var(--nav-h) + 2rem) 0 0;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenburns 22s var(--ease) forwards;
  will-change: transform;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 9, 11, 0.28) 0%, rgba(17, 9, 11, 0.2) 38%, rgba(17, 9, 11, 0.88) 100%),
    linear-gradient(90deg, rgba(17, 9, 11, 0.55), transparent 55%);
}

.hero__slash {
  position: absolute;
  top: -20%;
  inset-inline-start: 42%;
  width: 1px;
  height: 150%;
  background: linear-gradient(to bottom, transparent, var(--brass), var(--lacquer), transparent);
  transform-origin: top;
  animation: slashSweep 9s ease-in-out infinite;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(var(--wrap), calc(100% - 3.2rem));
  margin-inline: auto;
  padding-bottom: 2.4rem;
}

.hero__kicker {
  color: var(--brass);
  font-size: 0.86rem;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero h1 em {
  font-style: normal;
  color: color-mix(in srgb, var(--bone) 72%, var(--brass));
}

.hero__row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2.5rem;
  align-items: end;
  margin-top: 2.2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: 0.3s var(--ease);
}

.btn--fill {
  background: var(--lacquer);
  color: var(--bone);
}

.btn--fill:hover {
  background: var(--lacquer-bright);
  transform: translateY(-1px);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.hero__aside {
  font-size: 0.92rem;
  line-height: 1.85;
  color: color-mix(in srgb, var(--bone) 70%, transparent);
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 1.4rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.chip {
  border: 1px solid var(--line);
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
  color: var(--brass);
}

.hero__stats {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 2.4rem;
}

.stat {
  padding: 1.25rem 1.1rem 1.4rem;
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.stat b {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  line-height: 1;
  color: var(--bone);
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: var(--mute);
  line-height: 1.5;
}

.hero__scroll {
  position: absolute;
  inset-inline-end: 2rem;
  bottom: 1.6rem;
  z-index: 3;
  writing-mode: vertical-rl;
  font-size: 0.72rem;
  color: var(--brass);
  letter-spacing: 0.12em;
}

/* ---------- about ---------- */
.about {
  background: var(--stone);
  color: var(--ink);
  padding: 7.5rem 0 6.5rem;
  position: relative;
}

.about .eyebrow {
  color: var(--lacquer);
}

.about .eyebrow::before {
  background: var(--lacquer);
}

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.about h2 {
  margin-bottom: 1.4rem;
}

.about .lede {
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem 1.6rem;
  margin-top: 2.4rem;
}

.about__values h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.about__values p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: color-mix(in srgb, var(--ink) 68%, transparent);
}

.about__frame {
  position: relative;
}

.about__jewel {
  position: relative;
  isolation: isolate;
  --mx: 50%;
  --my: 40%;
}

.about__jewel img {
  width: 100%;
  height: 36rem;
  object-fit: cover;
  clip-path: polygon(50% 7%, 93% 50%, 50% 93%, 7% 50%);
  filter: saturate(0.92) contrast(1.08);
  transition: clip-path 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
  transform: scale(1.02);
}

.about__flare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  clip-path: polygon(50% 7%, 93% 50%, 50% 93%, 7% 50%);
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 236, 210, 0.55) 0%, transparent 38%),
    linear-gradient(118deg, transparent 42%, color-mix(in srgb, var(--lacquer) 34%, transparent) 50%, transparent 58%);
  mix-blend-mode: overlay;
  opacity: 0.4;
  transition: clip-path 1s var(--ease), opacity 1s var(--ease);
}

.about__ring {
  position: absolute;
  inset: 2.5%;
  width: calc(100% - 5%);
  height: calc(100% - 5%);
  pointer-events: none;
  overflow: visible;
  color: var(--brass);
  transform-origin: 50% 50%;
  animation: jewelPulse 3.4s ease-in-out infinite;
  transition: inset 1s var(--ease), width 1s var(--ease), height 1s var(--ease), color 1s var(--ease);
}

.about__ring polygon {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.45;
}

@keyframes jewelPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.14);
    opacity: 1;
  }
}

.about__jewel:hover img {
  clip-path: polygon(50% -6%, 110% 50%, 50% 106%, -10% 50%);
  filter: saturate(1.08) contrast(1.14) brightness(1.07);
  transform: scale(1.06);
}

.about__jewel:hover .about__flare {
  clip-path: polygon(50% -6%, 110% 50%, 50% 106%, -10% 50%);
  opacity: 0.92;
}

.about__jewel:hover .about__ring {
  animation: none;
  transform: scale(1.18);
  opacity: 1;
  inset: -6%;
  width: 112%;
  height: 112%;
  color: var(--lacquer);
}

.about__caption {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--lacquer-deep);
  line-height: 1.6;
}

/* ---------- engine ---------- */
.engine {
  position: relative;
  background: var(--ink);
  min-height: 240vh;
}

.engine__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.engine__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 9, 11, 0.72), rgba(17, 9, 11, 0.86)),
    url("../../assets/img/gears.jpg") center / cover no-repeat;
  filter: saturate(0.8);
  transform: scale(1.08);
}

.engine__gears {
  position: relative;
  z-index: 2;
  width: min(1080px, 96vw);
  height: auto;
  overflow: visible;
  margin-top: -2rem;
}

.engine__copy {
  position: absolute;
  z-index: 3;
  inset-inline-start: max(1.6rem, calc((100% - var(--wrap)) / 2));
  bottom: 3.2rem;
  max-width: 28rem;
}

.engine__copy h2 {
  margin-bottom: 0.8rem;
  text-shadow: 0 10px 36px var(--ink);
}

.engine__copy p {
  color: color-mix(in srgb, var(--bone) 72%, transparent);
  line-height: 1.85;
  font-size: 1rem;
}

/* ---------- platform / gem ---------- */
.platform {
  background: var(--stone);
  color: var(--ink);
  padding: 7.2rem 0 6.5rem;
}

.platform .eyebrow {
  color: var(--lacquer);
}

.platform__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.platform__panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 400;
  margin: 0.4rem 0 1rem;
}

.platform__panel p {
  line-height: 1.9;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  min-height: 6.5rem;
}

.platform__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.1rem 0 1.6rem;
}

.platform__tags span {
  background: var(--ink);
  color: var(--bone);
  font-size: 0.75rem;
  padding: 0.28rem 0.6rem;
}

.platform__list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.platform__list button {
  width: 100%;
  text-align: start;
  padding: 0.7rem 0.2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  transition: 0.25s;
}

.platform__list button small {
  color: var(--mute);
  font-size: 0.72rem;
}

.platform__list button.is-on,
.platform__list button:hover {
  color: var(--lacquer);
  padding-inline-start: 0.45rem;
}

.gem {
  width: min(100%, 460px);
  margin-inline: auto;
  filter: drop-shadow(0 18px 40px color-mix(in srgb, var(--ink) 22%, transparent));
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.gem path,
.gem polygon {
  cursor: pointer;
  transition: fill 0.35s var(--ease), stroke 0.35s var(--ease);
  stroke-linejoin: round;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
}

.gem .facet {
  fill: color-mix(in srgb, var(--ink) 12%, var(--stone-2));
  stroke: color-mix(in srgb, var(--brass-dim) 70%, var(--stone));
  stroke-width: 1;
}

.gem .facet.is-on {
  fill: var(--lacquer);
  stroke: var(--lacquer);
}

.gem .facet:hover {
  fill: color-mix(in srgb, var(--lacquer) 55%, var(--stone));
}

.gem .facet:focus,
.gem .facet:focus-visible,
.gem .facet:active {
  outline: none !important;
  stroke: var(--lacquer);
}

.gem .label {
  font-family: var(--display);
  font-size: 14px;
  fill: var(--ink);
  pointer-events: none;
}

.gem .label.is-on {
  fill: var(--bone);
  font-weight: 500;
}

#platform-copy {
  scroll-margin-top: 6rem;
}

/* ---------- cases ---------- */
.cases {
  background: var(--ink);
  padding: 7rem 0;
}

.cases__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.cases__head p {
  max-width: 28rem;
  color: color-mix(in srgb, var(--bone) 68%, transparent);
  line-height: 1.85;
}

.cases__viewport {
  overflow: hidden;
}

.cases__track {
  display: grid;
}

.case {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 26rem;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.case:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 1081px) {
  .cases {
    padding: 6.4rem 0 0;
  }

  .cases__head {
    margin-bottom: 1.1rem;
  }

  .cases__viewport {
    height: calc(100vh - 12.2rem);
    min-height: 28rem;
  }

  .cases__track {
    display: flex;
    height: 100%;
    will-change: transform;
  }

  .case {
    flex: 0 0 min(92vw, 1180px);
    min-height: 100%;
    margin-inline: auto;
    border-top: 0;
    border-inline-end: 1px solid var(--line);
  }

  .case:last-child {
    border-bottom: 0;
    border-inline-end: 0;
  }

  .case__img {
    min-height: 100%;
  }
}

.case__img {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.case__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.case:hover .case__img img {
  transform: scale(1.06);
}

.case__body {
  padding: 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.case__idx {
  color: var(--brass);
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

.case h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.case p {
  color: color-mix(in srgb, var(--bone) 70%, transparent);
  line-height: 1.85;
  font-size: 0.95rem;
}

.case__result {
  margin-top: 1.4rem;
  display: flex;
  gap: 1.6rem;
}

.case__result b {
  display: block;
  color: var(--brass);
  font-size: 1.35rem;
  font-weight: 400;
}

.case__result span {
  font-size: 0.75rem;
  color: var(--mute);
}

/* ---------- team ---------- */
.team {
  background: var(--stone);
  color: var(--ink);
  padding: 7rem 0;
}

.team .eyebrow {
  color: var(--lacquer);
}

.team__intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  margin-bottom: 2.8rem;
}

.team__intro p {
  line-height: 1.9;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.7rem;
}

.member {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 3/4;
}

.member img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92);
  transition: 0.7s var(--ease);
}

.member:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

.member__meta {
  position: absolute;
  inset: auto 0 0;
  padding: 2.4rem 0.9rem 0.95rem;
  background: linear-gradient(transparent, rgba(17, 9, 11, 0.92));
  color: var(--bone);
  transform: translateY(0.4rem);
  transition: 0.4s var(--ease);
}

.member h3 {
  font-size: 0.98rem;
  font-weight: 500;
}

.member p {
  font-size: 0.75rem;
  color: var(--brass);
  margin-top: 0.2rem;
}

.member__bio {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 0.72rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--bone) 75%, transparent);
  transition: 0.4s var(--ease);
}

.member:hover .member__bio {
  max-height: 5.5rem;
  opacity: 1;
  margin-top: 0.45rem;
}

/* ---------- insights ---------- */
.insights {
  background: var(--ink);
  padding: 7rem 0;
}

.insights__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 2.2rem;
}

.link-more {
  color: var(--brass);
  font-size: 0.88rem;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 0.15rem;
}

.insights__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0.8rem;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 1.4rem;
  background: var(--ink-2);
}

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
  transition: 0.8s var(--ease);
}

.card:hover img {
  transform: scale(1.06);
  opacity: 0.62;
}

.card__body {
  position: relative;
  z-index: 1;
}

.card time {
  color: var(--brass);
  font-size: 0.75rem;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0.45rem 0 0.6rem;
  line-height: 1.45;
}

.card p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: color-mix(in srgb, var(--bone) 72%, transparent);
}

.card--lead {
  min-height: 28rem;
}

.card--lead h3 {
  font-size: 1.7rem;
}

/* ---------- clients ---------- */
.clients {
  background: var(--ink-2);
  padding: 3.2rem 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.clients .eyebrow {
  width: min(var(--wrap), calc(100% - 3.2rem));
  margin-inline: auto;
  margin-bottom: 1.4rem;
}

.marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 0;
  animation: marquee 42s linear infinite;
  width: max-content;
}

.marquee span {
  padding: 0 2.2rem;
  font-size: 1.15rem;
  font-weight: 300;
  color: color-mix(in srgb, var(--bone) 55%, transparent);
  white-space: nowrap;
  border-inline-start: 1px solid var(--line);
  direction: rtl;
  unicode-bidi: isolate;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- faq + licenses ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.faq {
  background: var(--stone);
  color: var(--ink);
  padding: 6.5rem 3.2rem 6.5rem 4vw;
}

.faq .eyebrow {
  color: var(--lacquer);
}

.faq h2 {
  margin-bottom: 1.8rem;
}

.acc {
  border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.acc:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}

.acc button {
  width: 100%;
  text-align: start;
  padding: 1.15rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 500;
}

.acc button i {
  font-style: normal;
  color: var(--lacquer);
  transition: transform 0.3s;
}

.acc.is-open button i {
  transform: rotate(45deg);
}

.acc .acc__body {
  display: none;
  padding: 0 0 1.2rem;
  color: color-mix(in srgb, var(--ink) 70%, transparent);
  line-height: 1.85;
  font-size: 0.95rem;
}

.acc.is-open .acc__body {
  display: block;
}

.licenses {
  background: var(--ink);
  padding: 6.5rem 4vw 6.5rem 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.licenses h2 {
  margin-bottom: 1rem;
}

.licenses p {
  color: color-mix(in srgb, var(--bone) 70%, transparent);
  line-height: 1.85;
  max-width: 34rem;
}

.lic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 2rem;
}

.lic {
  border: 1px solid var(--line);
  padding: 1.1rem 1rem;
}

.lic b {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.lic span {
  font-size: 0.8rem;
  color: var(--mute);
  line-height: 1.6;
}

/* ---------- contact ---------- */
.contact {
  position: relative;
  background: var(--ink);
  padding: 7rem 0 5rem;
  overflow: hidden;
}

.contact__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17, 9, 11, 0.72), rgba(17, 9, 11, 0.88)),
    url("../../assets/img/boardroom.jpg") center / cover no-repeat;
  opacity: 0.85;
}

.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact .lede {
  margin: 1rem 0 1.6rem;
}

.contact__lead {
  margin: 0 0 1.2rem;
  max-width: none;
}

.contact__meta {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.contact__meta a,
.contact__meta p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.contact__meta a:hover {
  color: var(--brass);
}

.socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
}

.socials a svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
}

.socials a:hover {
  border-color: var(--brass);
  color: var(--brass);
}

form {
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  border: 1px solid var(--line);
  padding: 1.6rem;
  backdrop-filter: blur(10px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  display: block;
  font-size: 0.75rem;
  color: var(--brass);
  margin: 0.9rem 0 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  padding: 0.55rem 0;
  font-size: 0.95rem;
  border-radius: 0;
  color-scheme: dark;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.form__ok {
  display: none;
  padding: 2rem 0;
  line-height: 1.8;
}

form.is-sent .form__fields {
  display: none;
}

form.is-sent .form__ok {
  display: block;
}

.map {
  margin-top: 2.2rem;
  height: 16rem;
  border: 1px solid var(--line);
  background: var(--ink-2) url("../../assets/img/colonnade.jpg") center / cover no-repeat;
  filter: grayscale(0.6) contrast(1.05);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.news {
  position: relative;
  z-index: 1;
  margin-top: 1.6rem;
  margin-bottom: 0.4rem;
  padding: 1.6rem 1.8rem 1.7rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.4rem 2rem;
  align-items: center;
  background: color-mix(in srgb, var(--ink-2) 82%, var(--lacquer));
  border: 1px solid var(--brass);
}

.news::before {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 4px;
  background: var(--lacquer);
}

.news h3 {
  font-size: 1.45rem;
  margin: 0.15rem 0 0.4rem;
}

.news p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--bone) 72%, transparent);
  line-height: 1.7;
}

.news form {
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  border: 1px solid var(--line);
  padding: 0.85rem;
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.news input {
  min-width: 0;
  flex: 1;
  border-bottom-color: var(--brass);
  padding: 0.55rem 0.35rem;
}

/* ---------- footer ---------- */
.footer {
  background: var(--footer);
  padding: 2.4rem 0 1.6rem;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: start;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
  font-size: 0.82rem;
  color: var(--mute);
}

.footer small {
  display: block;
  margin-top: 1.6rem;
  color: var(--mute);
  font-size: 0.75rem;
}

.float-cta {
  display: none;
}

/* ---------- palette dock ---------- */
.themes {
  position: fixed;
  z-index: 140;
  inset-inline-end: 1rem;
  bottom: 1.2rem;
}

.themes__toggle {
  background: var(--ink-2);
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 0.55rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 500;
}

.themes__panel {
  position: absolute;
  inset-inline-end: 0;
  bottom: calc(100% + 0.55rem);
  width: 16.5rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  padding: 0.85rem;
  color: var(--bone);
}

.themes__panel[hidden] {
  display: none !important;
}

.themes__panel p {
  font-size: 0.75rem;
  color: var(--mute);
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.themes__panel button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: start;
  padding: 0.48rem 0.35rem;
  font-size: 0.82rem;
  color: var(--bone);
  border-bottom: 1px solid var(--line);
}

.themes__panel button:last-of-type {
  border-bottom: 0;
}

.themes__panel button.is-on {
  color: var(--brass);
}

.swatch {
  width: 2.4rem;
  height: 0.7rem;
  flex-shrink: 0;
  background-image: linear-gradient(90deg, var(--a), var(--b), var(--c));
}

.swatch--lacquer {
  --a: #8f1a2c;
  --b: #b8956a;
  --c: #c9c4bb;
}

.swatch--navy {
  --a: #071422;
  --b: #7a1a24;
  --c: #c9a227;
}

.swatch--petroleum {
  --a: #071412;
  --b: #8f1a2c;
  --c: #3d8b80;
}

.swatch--amber {
  --a: #16120e;
  --b: #8f1a2c;
  --c: #d4922a;
}

.swatch--ivory {
  --a: #e7e0d4;
  --b: #0d1b2a;
  --c: #8f1a2c;
}

@media (max-width: 1080px) {
  .themes {
    bottom: 4.2rem;
  }

  .themes__toggle {
    width: 2.6rem;
    height: 2.6rem;
    padding: 0;
    font-size: 0;
    background: var(--ink-2);
    border-color: color-mix(in srgb, var(--brass) 50%, transparent);
  }

  .themes__toggle::after {
    content: "";
    display: block;
    width: 0.7rem;
    height: 0.7rem;
    margin: 0 auto;
    background: var(--lacquer);
    transform: rotate(45deg);
  }
}

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

/* ---------- mobile ---------- */
@media (min-width: 1081px) {
  .nav__burger,
  .nav__drawer {
    display: none;
  }
}

@media (max-width: 1080px) {
  .nav__links,
  .nav__en,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: block;
  }

  .nav__drawer a {
    font-size: 1.55rem;
    font-weight: 300;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero__row,
  .about__grid,
  .platform__grid,
  .team__intro,
  .insights__grid,
  .split,
  .contact__grid,
  .case,
  .form__row,
  .news {
    grid-template-columns: 1fr;
  }

  .news form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__stats,
  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .insights__grid .card--lead {
    min-height: 22rem;
  }

  .about__jewel img {
    height: 22rem;
    clip-path: none;
    transform: none;
  }

  .about__flare,
  .about__ring {
    display: none;
  }

  .faq,
  .licenses {
    padding: 4rem 1.6rem;
  }

  .float-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    inset-inline: 0;
    z-index: 90;
    background: var(--lacquer);
    justify-content: center;
    padding: 0.95rem;
    font-weight: 500;
  }

  body {
    padding-bottom: 3.4rem;
  }
}

@media (max-width: 720px) {
  .nav__word {
    display: none;
  }

  .display {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .hero {
    padding-top: calc(var(--nav-h) + 1.2rem);
  }

  .hero__stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .about__values,
  .lic-grid,
  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .engine {
    min-height: 140vh;
  }

  .engine__copy {
    bottom: 1.4rem;
    max-width: calc(100% - 2.4rem);
  }

  .gem {
    max-width: 300px;
  }

  .case__result {
    flex-direction: column;
    gap: 0.7rem;
  }

  .marquee span {
    font-size: 0.95rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .hero__media img {
    transform: none;
  }

  .about__ring {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
