/* ==========================================================================
   KIMERA — Digital Alchemy
   Obsidian + alchemical gold. Space Grotesk display, Instrument Serif accents.
   ========================================================================== */

:root {
  --bg: #0a0a0c;
  --bg-2: #101013;
  --bg-3: #16161a;
  --ink: #f2efe9;
  --muted: #8e8c87;
  --faint: #55534f;
  --gold: #c9a35c;
  --gold-bright: #e8c87e;
  --gold-dim: rgba(201, 163, 92, 0.12);
  --green: #7dcf9b;
  --green-bright: #a8e8c2;
  --line: rgba(242, 239, 233, 0.08);
  --line-strong: rgba(242, 239, 233, 0.16);

  --font-display: "Chakra Petch", "Space Grotesk", sans-serif;
  --font-brand: "Space Grotesk", sans-serif;
  --font-serif: "Instrument Serif", serif;
  --font-mono: "IBM Plex Mono", monospace;
  --font-body: "Inter", sans-serif;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --section-pad: clamp(5rem, 12vh, 10rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.lenis { height: auto; scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  color: var(--gold-bright);
}
strong { font-weight: 500; color: var(--ink); }

/* ==========================================================================
   K-mark — vectorized KIMERA monogram (ring + bar + chevron)
   Stroke-based so it can draw itself on and carry a flowing light pulse.
   ========================================================================== */
.kmark { display: block; width: 100%; height: auto; overflow: visible; }
.kmark__base {
  stroke: currentColor;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}
.kmark__flow {
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-dasharray: 7 93;
  stroke-dashoffset: 100;
  opacity: 0;
  transition: opacity 1.2s ease 1.6s;
}
@keyframes kdraw { to { stroke-dashoffset: 0; } }
@keyframes kflow { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.preloader.done { pointer-events: none; background: transparent; }
.preloader.done > .preloader__inner { opacity: 0; }
.preloader.fade { opacity: 0; transition: opacity 0.45s ease; }

/* mosaic dissolve: the dark screen breaks into tiles that wink out randomly */
.preloader__pixels {
  position: absolute;
  inset: 0;
  display: grid;
}
.preloader__pixels i {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  font-style: normal; /* tiles are <i> elements; keep cloned text upright */
  transition: opacity 0.35s linear;
}
.preloader__pixels.dissolve i { opacity: 0; }
/* tiles over the logo carry their own slice of it, so the content shatters too */
.preloader__pixels .pxclone {
  position: absolute;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader__inner { text-align: center; position: relative; transition: opacity 0.3s ease; }
.preloader__mark {
  width: clamp(84px, 12vw, 120px);
  margin: 0 auto 2.4rem;
  color: var(--gold);
  position: relative;
}
/* the mark shows whole from the start; glitch bursts are driven from JS
   with randomized slices and timing so no pattern repeats */
.preloader__mark .kmark__base { stroke-dashoffset: 0; }
.kmark--ghost {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}
.kmark--ghost.g1 { color: var(--gold-bright); }
.kmark--ghost.g2 { color: var(--ink); }
/* the hero watermark is faint, so its ghosts flash softer */
.hero__mark .kmark--ghost.g1 { color: rgba(201, 163, 92, 0.35); }
.hero__mark .kmark--ghost.g2 { color: rgba(242, 239, 233, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .kmark--ghost { display: none; }
}
.preloader__logo {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: 0.35em;
  margin-right: -0.35em;
}
.preloader__dot { color: var(--gold); }
.preloader__words {
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--muted);
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.preloader__words .sep { color: var(--gold); }
.preloader__count {
  margin-top: 3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
}
.preloader__bar {
  margin: 0.75rem auto 0;
  width: min(280px, 60vw);
  height: 1px;
  background: var(--line-strong);
}
.preloader__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.2s linear;
}

/* ==========================================================================
   Cursor glow
   ========================================================================== */
.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(201, 163, 92, 0.07) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  left: 50vw;
  top: 40vh;
  transition: opacity 0.4s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ==========================================================================
   Nav
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
}
.nav__logo span { color: var(--gold); }
.nav__logo-mark { height: 0.9em; width: auto; display: block; }
.nav__links {
  display: flex;
  gap: 2.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav__links a { position: relative; transition: color 0.3s; padding: 0.25rem 0; }
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(125, 207, 155, 0.4);
  padding: 0.6rem 1.6rem;
  clip-path: polygon(12px 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 12px 100%, 0 50%);
  transition: background 0.3s, color 0.3s;
}
.nav__cta::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--bg);
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 11px 100%, 0 50%);
  transition: background 0.3s;
}
.nav__cta:hover { background: var(--green); color: var(--bg); }
.nav__cta:hover::before { background: var(--green); }

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}
.nav__lang span { color: var(--faint); }
.nav__lang a { color: var(--faint); transition: color 0.3s; }
.nav__lang a:hover { color: var(--ink); }
.nav__lang a.active { color: var(--gold); pointer-events: none; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 2px;
}
.nav__burger span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.mobile-menu__lang {
  display: flex;
  gap: 1.75rem;
  margin-top: 1.5rem;
}
.mobile-menu__lang a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.mobile-menu__lang a.active { color: var(--gold); }

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ==========================================================================
   Shared section bits
   ========================================================================== */
.section { padding: var(--section-pad) var(--gutter); position: relative; }

.section__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--green);
  margin-bottom: 2rem;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.section__intro {
  max-width: 56ch;
  margin-top: 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}
.section__head { margin-bottom: clamp(3rem, 7vh, 5rem); }

/* title with a led pixel art canvas sitting beside it */
.section__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem 3rem;
}
.section__title-row .pixel-art {
  flex-shrink: 0;
  max-width: 100%;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(36px);
}
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* 6 sided buttons with pointed ends; the "border" on ghost buttons is the
   element background showing through a smaller inner clip (borders can't
   follow clip-path diagonals) */
.btn {
  display: inline-block;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.95rem 2.1rem;
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  transition: background 0.3s, color 0.3s;
}
.btn--gold { background: var(--green); color: var(--bg); }
.btn--gold:hover { background: var(--green-bright); }
.btn--ghost { background: var(--line-strong); color: var(--ink); }
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  background: var(--bg);
  clip-path: polygon(13px 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 13px 100%, 0 50%);
}
.btn--ghost:hover { background: var(--green); color: var(--green-bright); }

.line-mask { display: block; overflow: hidden; }
.line-mask .line {
  display: block;
  transform: translateY(110%);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem var(--gutter) 2.5rem;
  overflow: hidden;
}
.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 20%, rgba(201, 163, 92, 0.08), transparent 60%),
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%);
  pointer-events: none;
}
.hero__mark {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) * 0.75);
  transform: translateY(-54%);
  width: clamp(280px, 28vw, 520px);
  z-index: 1;
  pointer-events: none;
  color: rgba(242, 239, 233, 0.09);
}
.hero__mark .kmark__base { stroke-dashoffset: 0; }
@media (max-width: 1100px) {
  .hero__mark {
    right: 50%;
    transform: translate(50%, -54%);
    width: min(72vw, 460px);
    color: rgba(242, 239, 233, 0.05);
  }
}

.hero__content { position: relative; z-index: 2; max-width: 1100px; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.2rem;
}
.pulse-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 163, 92, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 163, 92, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(201, 163, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 163, 92, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 4.7vw, 4rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hero__title em { color: var(--gold-bright); }

.hero__sub {
  margin-top: 2.2rem;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}
.hero__actions {
  margin-top: 2.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2rem;
}
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: var(--faint);
}
.hero__mouse {
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(242, 239, 233, 0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}
.hero__mouse span {
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold);
  animation: scrollWheel 1.9s var(--ease-out) infinite;
}
@keyframes scrollWheel {
  0% { opacity: 0; transform: translateY(0); }
  25% { opacity: 1; }
  55% { opacity: 1; transform: translateY(9px); }
  100% { opacity: 0; transform: translateY(9px); }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 1.1rem 0;
  background: var(--bg-2);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.45em;
  color: var(--muted);
  white-space: nowrap;
}
.marquee__track i { color: var(--gold); font-style: normal; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-33.333%); }
}

/* ==========================================================================
   Mission
   ========================================================================== */
.mission { max-width: 1200px; margin: 0 auto; }
.mission__statement {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 24ch;
}
.mission__statement .w {
  opacity: 0.15;
  transition: opacity 0.5s;
}
.mission__statement .w.lit { opacity: 1; }
.mission__grid {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 900px;
}
.mission__text { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.2rem); }

/* ==========================================================================
   Framework — stacked sticky creature cards
   ========================================================================== */
.framework { max-width: 1300px; margin: 0 auto; }
.framework__stack { display: flex; flex-direction: column; gap: 2.5rem; margin-top: clamp(3.5rem, 8vh, 7rem); }

.creature {
  position: sticky;
  top: 12vh;
}
.creature__inner {
  position: relative;
  background: linear-gradient(145deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.75rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  min-height: 56vh;
  overflow: hidden;
  transition: border-color 0.4s;
}
.creature__inner:hover { border-color: rgba(201, 163, 92, 0.35); }
.creature__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 85% 20%, var(--gold-dim), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s;
  pointer-events: none;
}
.creature__inner:hover::before { opacity: 1; }

.creature[data-creature="eagle"] .creature__inner { background: linear-gradient(145deg, #18181d, #111114); }
.creature[data-creature="dragon"] .creature__inner { background: linear-gradient(145deg, #1a1a20, #121216); }

.creature__meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}
.creature__index {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--gold);
}
.creature__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  color: var(--faint);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.creature__body { display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.creature__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.6rem;
}
.creature__text { color: var(--muted); font-size: 1.02rem; max-width: 52ch; }
.creature__points {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.creature__points li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  padding: 0.45rem 0.95rem;
}

.creature__glyph {
  align-self: center;
  width: clamp(120px, 16vw, 220px);
  color: var(--gold);
  opacity: 0.8;
}
.creature__glyph svg { width: 100%; height: auto; animation: glyphSpin 60s linear infinite; }
@keyframes glyphSpin { to { transform: rotate(360deg); } }

/* Circular photo variant (Lion) */
.creature__photo {
  align-self: start;
  justify-self: end;
  position: relative;
  width: clamp(120px, 14vw, 190px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(201, 163, 92, 0.4);
  box-shadow: 0 0 0 6px rgba(201, 163, 92, 0.05), 0 24px 60px -20px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}
.creature__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 70% 35%, transparent 55%, rgba(10, 10, 12, 0.55) 100%),
    linear-gradient(160deg, transparent 60%, rgba(201, 163, 92, 0.12));
  pointer-events: none;
}
.creature__photo img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: 58% 38%;
  filter: saturate(0.95) contrast(1.03);
  transition: transform 0.8s var(--ease-out);
}
.creature__inner:hover .creature__photo img { transform: scale(1.06); }
.creature__photo--eagle img { object-position: 60% 26%; }
.creature__photo--dragon img { object-position: 74% 42%; }

@media (max-width: 900px) {
  .creature { position: relative; top: 0; }
  .creature__inner { grid-template-columns: 1fr; min-height: 0; }
  .creature__tag { writing-mode: horizontal-tb; transform: none; }
  .creature__meta { flex-direction: row; align-items: center; }
  .creature__glyph { width: 110px; justify-self: end; margin-top: -1rem; }
  .creature__photo { width: clamp(96px, 22vw, 130px); justify-self: end; margin-top: -0.5rem; }
}

/* ==========================================================================
   Transformation path — 5-step roadmap with scroll-filling rail
   ========================================================================== */
.path { max-width: 1300px; margin: 0 auto; }
.path__steps {
  position: relative;
  padding-left: clamp(2.25rem, 5vw, 4.5rem);
}
.path__rail {
  position: absolute;
  left: 0.35rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line-strong);
}
.path__rail-fill {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
}
.path__step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(2rem, 4.5vh, 3rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}
.path__step:first-of-type { border-top: 1px solid var(--line); }
.path__step:hover { padding-left: 0.6rem; }
.path__step:hover h3 { color: var(--gold-bright); }
.path__num {
  font-family: var(--font-mono);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--gold);
  padding-top: 0;
}
.path__body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.path__body h3 em { font-size: 0.92em; }
.path__body p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}
.path__tags {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.path__tags li {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: normal;
  text-transform: uppercase;
  color: var(--green);
  background: rgba(125, 207, 155, 0.06);
  border: 1px solid rgba(125, 207, 155, 0.35);
  border-radius: 100px;
  padding: 0.42rem 0.9rem;
}
.path__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}
@media (max-width: 700px) {
  .path__step { grid-template-columns: 1fr; gap: 0.75rem; }
  .path__num { padding-top: 0; }
  .path__side { flex-direction: row; align-items: center; gap: 1rem; }
}

/* ==========================================================================
   Agentic Engine
   ========================================================================== */
.engine {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.engine__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.engine__card {
  background: var(--bg);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  transition: background 0.4s;
  position: relative;
}
.engine__card:hover { background: var(--bg-3); }
.engine__card:hover .engine__step { color: var(--gold-bright); }
.engine__step {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  display: block;
  margin-bottom: 2.5rem;
  transition: color 0.3s;
}
.engine__card .pixel-art { display: block; margin-bottom: 1.75rem; }
.engine__card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}
.engine__card p { color: var(--muted); font-size: 0.92rem; }

.engine__stats {
  margin-top: clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.stat { border-left: 1px solid var(--line-strong); padding-left: 1.5rem; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  color: var(--gold-bright);
  display: block;
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Divisions
   ========================================================================== */
.divisions { max-width: 1300px; margin: 0 auto; }
.divisions__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 2rem;
}
.division {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  background: linear-gradient(170deg, var(--bg-2), var(--bg));
  transition: border-color 0.4s;
}
.division:hover { border-color: rgba(201, 163, 92, 0.3); }
.division__head { padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.division__head .pixel-art { display: block; margin-bottom: 1.5rem; }
.division__sigil {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(201, 163, 92, 0.4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}
.division__head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}
.division__head p { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }

.division__list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s var(--ease-out);
}
.division__list li:last-child { border-bottom: none; padding-bottom: 0; }
.division__list li:hover { padding-left: 0.6rem; }
.division__list li:hover h4 { color: var(--gold-bright); }
.division__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  padding-top: 0.3rem;
  flex-shrink: 0;
}
.division__list h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s;
}
.division__list p { margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; }

/* ==========================================================================
   Trust
   ========================================================================== */
.trust { max-width: 1300px; margin: 0 auto; }
.trust__logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.trust__logo {
  background: var(--bg);
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--faint);
  transition: color 0.3s, background 0.3s;
}
.trust__logo:hover { color: var(--muted); background: var(--bg-2); }
.trust__certs { margin-top: 3.5rem; }
.trust__certs-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.trust__certs-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  max-width: 720px;
}
.trust__logo--cert { min-height: 90px; }

/* ==========================================================================
   Clients
   ========================================================================== */
.clients { overflow: hidden; }
.clients__marquee {
  margin-top: clamp(2rem, 5vh, 3.5rem);
  width: 100%;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.clients__marquee.dragging { cursor: grabbing; }
.clients__track {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
  width: max-content;
  will-change: transform;
}
.clients__logo {
  flex: none;
  height: clamp(60px, 8.5vw, 104px);
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  -webkit-user-drag: none;
  user-select: none;
  transition: filter 0.45s var(--ease-out), opacity 0.45s var(--ease-out);
}
.clients__logo:hover {
  filter: grayscale(0);
  opacity: 1;
}
.clients__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  -webkit-user-drag: none;
  user-select: none;
}
.clients__map {
  margin-top: clamp(3rem, 8vh, 6rem);
  display: flex;
  justify-content: center;
}
.clients__map img {
  width: 100%;
  max-width: 1000px;
  height: auto;
}

/* Technology & Partners carousel (below the division cards) */
.tech-partners { margin-top: clamp(3.5rem, 9vh, 7rem); }
.tech-partners__title {
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--green);
  text-align: center;
  margin-bottom: clamp(1.75rem, 4vh, 2.75rem);
}
.tech-partners .clients__marquee { margin-top: 0; }

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  text-align: center;
  padding-top: clamp(7rem, 18vh, 13rem);
  padding-bottom: clamp(7rem, 18vh, 13rem);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 60%, rgba(201, 163, 92, 0.09), transparent 65%),
    radial-gradient(ellipse 85% 90% at 50% 65%, transparent 38%, var(--bg) 76%),
    linear-gradient(to bottom, var(--bg) 0%, rgba(10, 10, 12, 0.45) 35%, rgba(10, 10, 12, 0.45) 70%, var(--bg) 100%),
    url("../assets/mountain-bg-web.webp") center / cover no-repeat;
  pointer-events: none;
}
.cta__inner { position: relative; }
.cta .section__label { margin-bottom: 2.5rem; }
.cta__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7.5rem);
  line-height: 1.18;
  letter-spacing: -0.03em;
}
/* shared frosted-glass surface for contact elements over the mountain image */
.cta__sub,
.cta__mail,
.cta__office {
  background: rgba(10, 10, 12, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.cta__sub {
  margin: 2.2rem auto 0;
  max-width: 52ch;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 1.4rem 1.9rem;
}
.cta__sub .hl { background: none; color: inherit; padding: 0; }
.cta__mail {
  display: inline-block;
  margin-top: 2.5rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.2rem, 3vw, 1.9rem);
  color: var(--gold-bright);
  padding: 0.7rem 1.6rem;
  transition: border-color 0.3s, color 0.3s;
}
.cta__mail:hover { color: var(--ink); border-color: var(--gold); }

/* Offices (contact section + footer) */
.cta__offices {
  margin: clamp(2.5rem, 5vh, 4rem) auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
/* each address sits on its own frosted panel */
.cta__office {
  flex: 1 1 280px;
  max-width: 360px;
  text-align: center;
  padding: 1.6rem 1.8rem;
}
.cta__offices p { color: var(--ink); font-size: 0.92rem; line-height: 1.55; }
.cta__office span,
.footer__offices .footer__office span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.22em;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.footer__offices {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.footer__office p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 30ch;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 4rem var(--gutter) 2rem;
  background: var(--bg-2);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.7fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer__email {
  color: var(--gold-bright);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer__email:hover { color: var(--ink); }
.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.3em;
}
.footer__logo span { color: var(--gold); }
.footer__logo-mark { height: 0.9em; width: auto; display: block; }
.footer__brand p { margin-top: 1rem; color: var(--muted); font-size: 0.9rem; max-width: 26ch; }
.footer__col { display: flex; flex-direction: column; gap: 0.8rem; }
.footer__col span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.footer__col a { color: var(--muted); font-size: 0.9rem; transition: color 0.3s; }
.footer__col a:hover { color: var(--gold-bright); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--faint);
}
@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; gap: 2.25rem; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal], .line-mask .line { opacity: 1 !important; transform: none !important; }
  .kmark__base { stroke-dashoffset: 0 !important; }
  .kmark__flow { display: none; }
}
