/* =========================================================================
   ZukaSoft — Engineering Atelier
   Dark / B2B / Editorial / High-performance
   ========================================================================= */

:root {
  /* Palette — Deep Onyx system */
  --onyx-1000: #050505;
  --onyx-900: #0a0a0b;
  --onyx-800: #101013;
  --onyx-700: #15161a;
  --onyx-600: #1c1d22;
  --onyx-500: #24262d;
  --onyx-400: #2f3239;
  --onyx-300: #4a4d57;

  --ghost: #f5f5f7;
  --ghost-dim: #cdcdd1;
  --slate: #8a8d96;
  --slate-2: #5b5e67;

  --accent: #d8ff3a; /* signal-green: used sparingly, B2B "live" indicator */
  --accent-soft: rgba(216, 255, 58, 0.12);

  --hairline: rgba(245, 245, 247, 0.08);
  --hairline-strong: rgba(245, 245, 247, 0.16);

  /* Type scale — fluid, gazette-grade.
     NOTE: --t-display is tuned so that on a 375px iPhone the largest words
     (e.g. "high-performance") still fit horizontally without wrapping off-canvas. */
  --t-display: clamp(2.2rem, 1rem + 7vw, 10rem);
  --t-h2: clamp(1.75rem, 0.4rem + 4vw, 4.4rem);
  --t-h3: clamp(1.25rem, 0.8rem + 1.2vw, 2rem);
  --t-body: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  --t-small: 0.78rem;
  --t-mono: 0.72rem;

  --line: 1.45;
  --line-tight: 1.05;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 3.25rem);
  --rail: clamp(1.25rem, 4vw, 3.25rem);
  --maxw: 1440px;
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--onyx-1000);
  color: var(--ghost);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-body);
  line-height: var(--line);
  font-feature-settings: "ss01", "ss03", "cv11", "tnum";
  letter-spacing: -0.005em;
  background:
    radial-gradient(ellipse 70% 40% at 50% -10%, rgba(216, 255, 58, 0.05), transparent 60%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(80, 110, 255, 0.04), transparent 70%),
    var(--onyx-1000);
  overflow-x: hidden;
}

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

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

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

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

/* Subtle grain over the whole page — feels engineered, not glossy */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* =========================================================================
   Custom cursor
   ========================================================================= */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9000;
  pointer-events: none;
  transform: translate3d(-100px, -100px, 0);
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
  }
  body {
    cursor: none;
  }
  a,
  button,
  input,
  select,
  textarea,
  [role="button"] {
    cursor: none;
  }
}
.cursor__ring {
  position: absolute;
  top: -16px;
  left: -16px;
  width: 32px;
  height: 32px;
  border: 1px solid #fff;
  border-radius: 50%;
  transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
    top 0.25s var(--ease-out), left 0.25s var(--ease-out),
    background-color 0.25s var(--ease-out);
}
.cursor__dot {
  position: absolute;
  top: -2px;
  left: -2px;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
}
.cursor__label {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  top: -32px;
  left: -32px;
  background: rgba(255, 255, 255, 0.06);
}
.cursor.is-hover .cursor__label {
  opacity: 1;
  transform: translateY(0);
}
.cursor.is-down .cursor__ring {
  width: 22px;
  height: 22px;
  top: -11px;
  left: -11px;
}

/* =========================================================================
   Veil (initial load)
   ========================================================================= */
.veil {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: var(--onyx-1000);
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  padding: var(--gutter);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  transition: opacity 0.6s var(--ease-out), visibility 0.6s var(--ease-out);
}
.veil.is-done {
  opacity: 0;
  visibility: hidden;
}
.veil__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.veil__row--small {
  align-self: end;
}
.veil__row span:first-child {
  color: var(--ghost);
}
.veil__bar {
  align-self: center;
  width: 100%;
  height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.veil__bar i {
  position: absolute;
  inset: 0 100% 0 0;
  background: var(--ghost);
  transition: inset 0.2s linear;
}

/* =========================================================================
   Header / Navigation
   ========================================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem var(--gutter);
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.92),
    rgba(5, 5, 5, 0.72) 60%,
    rgba(5, 5, 5, 0.35)
  );
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease-out), padding 0.4s var(--ease-out),
    background 0.4s var(--ease-out);
}
/* Backdrop-filter creates a new containing block for fixed-position descendants
   in most browsers — which traps the mobile drawer inside the header's box.
   Keep the glass effect only where we actually need it (desktop, ≥881px). */
@media (min-width: 881px) {
  .nav {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
  }
}
.nav.is-stuck {
  background: rgba(8, 8, 9, 0.94);
  border-bottom-color: var(--hairline);
  padding: 0.65rem var(--gutter);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 1rem;
  color: var(--ghost);
}
.nav__mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  color: var(--ghost);
}
.nav__wordmark {
  font-weight: 700;
  letter-spacing: -0.015em;
}
.nav__suffix {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate);
}
.nav__links {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav__links a {
  position: relative;
  padding: 0.55rem 0.9rem;
  font-size: 0.88rem;
  color: var(--ghost-dim);
  border-radius: 999px;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover {
  color: var(--ghost);
  background: rgba(255, 255, 255, 0.04);
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem 0.55rem 1rem !important;
  background: var(--ghost);
  color: var(--onyx-1000) !important;
  font-weight: 600;
}
.nav__cta i {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}
.nav__cta:hover {
  background: var(--accent) !important;
}

.nav__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  position: relative;
}
.nav__menu span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--ghost);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav__menu span:nth-child(1) { top: 16px; }
.nav__menu span:nth-child(2) { top: 22px; }
.nav.is-open .nav__menu span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.nav.is-open .nav__menu span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 880px) {
  .nav__suffix { display: none; }
  .nav__menu { display: block; }
  .nav__wordmark { font-size: 0.95rem; }

  .nav__links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--onyx-1000);
    border-bottom: 1px solid var(--hairline);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: transform 0.4s var(--ease-out), opacity 0.3s var(--ease-out);
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.8);
  }
  .nav__links a {
    padding: 1rem 0.25rem !important;
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.05rem;
  }
  .nav__cta {
    margin-top: 1rem;
    border-radius: 999px;
    justify-content: center;
    padding: 0.85rem 1rem !important;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav.is-open {
    background: var(--onyx-1000);
    border-bottom-color: var(--hairline);
  }
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.35rem;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.4s var(--ease-out), background 0.4s var(--ease-out),
    color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.btn--primary {
  background: var(--ghost);
  color: var(--onyx-1000);
}
.btn--primary:hover {
  background: var(--accent);
}
.btn--ghost {
  border: 1px solid var(--hairline-strong);
  color: var(--ghost);
}
.btn--ghost:hover {
  border-color: var(--ghost);
  background: rgba(255, 255, 255, 0.03);
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* =========================================================================
   Tags / Eyebrows
   ========================================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ghost-dim);
}
.tag__pulse {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(216, 255, 58, 0.6);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 58, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(216, 255, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 58, 0); }
}
.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  margin-bottom: 1.2rem;
}
.meta-line {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
}

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(5.5rem, 11vw, 9rem) var(--gutter) calc(var(--gutter) + 3rem);
  display: flex;
  align-items: stretch;
  overflow: hidden;
}
.stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.95;
}
.hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--t-display);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--ghost);
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.hero__title .line > span {
  display: inline-block;
  max-width: 100%;
  transform: translateY(110%);
  animation: rise 1.1s var(--ease-out) forwards;
}
.hero__title .line:nth-child(1) > span { animation-delay: 0.2s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.32s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.44s; }
.hero__title .line:nth-child(4) > span { animation-delay: 0.56s; }
.hero__title .line--accent > span {
  font-style: italic;
  font-weight: 400;
  color: var(--ghost);
  background: linear-gradient(120deg, var(--ghost) 30%, var(--accent) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .line--muted > span {
  color: var(--slate);
  font-weight: 300;
  letter-spacing: -0.02em;
}
@keyframes rise {
  from { transform: translateY(110%); }
  to { transform: translateY(0); }
}

.hero__sub {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
  margin-top: clamp(1rem, 3vw, 2rem);
  border-top: 1px solid var(--hairline);
  padding-top: clamp(1.25rem, 2.5vw, 2rem);
}
.hero__sub p {
  margin: 0;
  max-width: 46ch;
  color: var(--ghost-dim);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.2rem);
}
.hero__sub em {
  font-style: normal;
  color: var(--ghost);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline-strong);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-self: end;
}

.hero__rail {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
  display: grid;
  gap: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.rail__head {
  display: flex;
  justify-content: space-between;
}
.rail__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.2rem 1.4rem;
}
.rail__list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--hairline);
  min-width: 0;
}
.rail__list b {
  color: var(--ghost-dim);
  font-weight: 500;
}
.rail__list span {
  color: var(--ghost);
  font-family: "Inter", sans-serif;
  text-transform: none;
  letter-spacing: -0.005em;
  font-size: 0.8rem;
}
.rail__list i {
  color: var(--accent);
  font-style: normal;
  font-size: 0.62rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}
.hero__scroll i {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--ghost), transparent);
  animation: scrollPulse 2.4s var(--ease-in-out) infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; }
  50% { transform: scaleY(1); }
}

@media (max-width: 880px) {
  .hero__sub {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .hero__actions {
    justify-self: start;
    width: 100%;
  }
  .hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .stage {
    opacity: 0.55;
  }
  .hero__title {
    letter-spacing: -0.025em;
  }
  .rail__list {
    grid-template-columns: 1fr;
  }
  .hero__scroll { display: none; }
}

/* =========================================================================
   Marquee
   ========================================================================= */
.marquee {
  position: relative;
  border-block: 1px solid var(--hairline);
  background: var(--onyx-900);
  padding: 1rem 0;
  overflow: hidden;
  z-index: 2;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  padding-left: 100%;
  animation: marquee 50s linear infinite;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ghost-dim);
}
.marquee__track em {
  color: var(--accent);
  font-style: normal;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================================
   Generic section / heading
   ========================================================================= */
.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  z-index: 2;
}
.section + .section {
  border-top: 1px solid var(--hairline);
}
.section__head {
  max-width: 60rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section__title {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: var(--line-tight);
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--ghost);
}
.section__title em {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(110deg, var(--ghost) 30%, var(--accent) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__lede {
  max-width: 55ch;
  color: var(--ghost-dim);
  font-size: clamp(1rem, 0.3vw + 0.95rem, 1.15rem);
  margin: 0;
}

/* =========================================================================
   Solutions / Verticals
   ========================================================================= */
.verticals {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vertical {
  position: relative;
  display: grid;
  grid-template-columns: minmax(80px, 0.6fr) minmax(0, 6fr) minmax(180px, 1.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: clamp(2rem, 4vw, 3.25rem) 0;
  border-top: 1px solid var(--hairline);
  transition: background 0.5s var(--ease-out);
}
.vertical:last-child {
  border-bottom: 1px solid var(--hairline);
}
.vertical:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.015),
    rgba(255, 255, 255, 0)
  );
}
.vertical__index {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 0.65rem;
}
.vertical__body h3 {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: var(--t-h3);
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
  color: var(--ghost);
}
.vertical__body p {
  margin: 0 0 1.4rem;
  max-width: 55ch;
  color: var(--ghost-dim);
}
.vertical__refs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.4rem 1.5rem;
}
.vertical__refs li {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  padding: 0.5rem 0;
  border-top: 1px dashed var(--hairline);
  font-size: 0.92rem;
}
.vertical__refs b {
  color: var(--ghost);
  font-weight: 600;
}
.vertical__refs span {
  color: var(--slate);
}
.vertical__stat {
  text-align: right;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  display: grid;
  gap: 0.4rem;
  padding-top: 0.4rem;
}
.vertical__stat b {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 3vw, 2.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ghost);
  text-transform: none;
}
.vertical__stat b i {
  font-style: normal;
  font-size: 0.55em;
  color: var(--slate);
  margin-left: 0.2rem;
}

@media (max-width: 880px) {
  .vertical {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .vertical__stat {
    text-align: left;
  }
}

/* =========================================================================
   Manifesto
   ========================================================================= */
.manifest__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.metric {
  background: var(--onyx-1000);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 220px;
  transition: background 0.4s var(--ease-out);
}
.metric:hover {
  background: var(--onyx-900);
}
.metric__k {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ghost);
}
.metric__k i {
  font-style: normal;
  font-size: 0.4em;
  color: var(--slate);
  margin-left: 0.25rem;
  letter-spacing: 0;
}
.metric h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  color: var(--ghost);
}
.metric p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.5;
}

.principles {
  margin-top: clamp(3rem, 6vw, 5rem);
}
.principles h3 {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--slate);
  margin: 0 0 1.5rem;
  font-weight: 500;
}
.principles ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.principles li {
  background: var(--onyx-1000);
  padding: 1.6rem 1.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.principles li span {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-top: 0.2rem;
}
.principles li p {
  margin: 0;
  color: var(--ghost-dim);
}
.principles li b {
  color: var(--ghost);
  font-weight: 600;
}

/* =========================================================================
   Portfolio cards
   ========================================================================= */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.card {
  background: var(--onyx-1000);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 1rem;
  min-height: 280px;
  transition: background 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -40%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.card:hover {
  background: var(--onyx-900);
}
.card:hover::after {
  opacity: 1;
}
.card header {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
}
.card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.85rem);
  letter-spacing: -0.025em;
  color: var(--ghost);
}
.card p {
  margin: 0;
  color: var(--ghost-dim);
  font-size: 0.95rem;
}
.card footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--hairline);
  padding-top: 0.9rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.card footer b {
  color: var(--accent);
  font-weight: 500;
}

/* =========================================================================
   Process steps
   ========================================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.steps li {
  background: var(--onyx-1000);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.85rem;
  min-height: 240px;
  align-content: start;
}
.steps__k {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.16em;
  color: var(--accent);
}
.steps h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ghost);
}
.steps p {
  margin: 0;
  color: var(--ghost-dim);
  font-size: 0.95rem;
}

/* =========================================================================
   Contact
   ========================================================================= */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}
.contact__head .section__title { margin-bottom: 1.25rem; }
.contact__list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.contact__list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.contact__list span {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
}
.contact__list a {
  color: var(--ghost);
  font-size: 1.1rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}
.contact__list a:hover {
  border-color: var(--accent);
}
.contact__list b {
  color: var(--ghost);
  font-size: 1.1rem;
  font-weight: 400;
}

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  align-self: start;
  min-width: 0;
}
@media (max-width: 720px) {
  .contact__form {
    grid-template-columns: 1fr;
  }
}
.field {
  background: var(--onyx-1000);
  padding: 1.25rem 1.4rem 1.4rem;
  display: grid;
  gap: 0.55rem;
}
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.65rem 0;
  border: 0;
  border-bottom: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--ghost);
  font: inherit;
  resize: vertical;
  outline: none;
  transition: border-color 0.3s var(--ease-out);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--accent);
}
.field select option {
  background: var(--onyx-800);
  color: var(--ghost);
}
.contact__form .btn {
  grid-column: 1 / -1;
  margin: 0 1.4rem 1.4rem;
  width: calc(100% - 2.8rem);
}
.form__note {
  grid-column: 1 / -1;
  margin: 0 1.4rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  min-height: 1em;
}

@media (max-width: 880px) {
  .contact__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Footer
   ========================================================================= */
.foot {
  position: relative;
  z-index: 2;
  padding: var(--section-y) var(--gutter) 2rem;
  background: var(--onyx-900);
  border-top: 1px solid var(--hairline);
  max-width: var(--maxw);
  margin: 0 auto;
}
.foot__top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--hairline);
}
.foot__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.foot__mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--hairline-strong);
  border-radius: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--ghost);
}
.foot__brand p {
  margin: 0;
  color: var(--ghost-dim);
  font-size: 0.95rem;
}
.foot__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
}
.foot__cols h6 {
  margin: 0 0 0.85rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-weight: 500;
}
.foot__cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.foot__cols a {
  color: var(--ghost-dim);
  transition: color 0.2s var(--ease-out);
}
.foot__cols a:hover { color: var(--ghost); }

.foot__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 880px) {
  .foot__top {
    grid-template-columns: 1fr;
  }
}

/* =========================================================================
   Ecosystem Health — live dashboard
   ========================================================================= */
.ecosystem {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 4rem) var(--gutter);
  border-block: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 60%),
    var(--onyx-900);
}
.ecosystem__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}
.ecosystem__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.ecosystem__grid > li {
  background: var(--onyx-1000);
  padding: 1.1rem 1.25rem 1.25rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  min-height: 140px;
}
.ecosystem__grid > li > span:first-child {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.ecosystem__grid > li > b {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 2.2vw + 0.8rem, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ghost);
}
.ecosystem__grid > li > b i {
  font-style: normal;
  font-size: 0.42em;
  color: var(--slate);
  letter-spacing: 0;
  transform: translateY(-0.18em);
}
.ecosystem__grid > li > em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-2);
}
.ecosystem__grid .spark {
  margin: 0.2rem 0 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
  opacity: 0.75;
  white-space: pre;
}

/* =========================================================================
   Capabilities — tech stack chip row inside each vertical
   ========================================================================= */
.vertical__stack {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.vertical__stack li {
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ghost-dim);
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.vertical:hover .vertical__stack li {
  border-color: var(--hairline);
  color: var(--slate);
}
.vertical:hover .vertical__stack li:hover {
  border-color: var(--accent);
  color: var(--ghost);
}

/* =========================================================================
   Integrations — partner / ecosystem strip
   ========================================================================= */
.integrations__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.integrations__groups > article {
  background: var(--onyx-1000);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: grid;
  gap: 1rem;
  align-content: start;
  transition: background 0.4s var(--ease-out);
}
.integrations__groups > article:hover {
  background: var(--onyx-900);
}
.integrations__groups h6 {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--slate);
  font-weight: 500;
}
.integrations__groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.integrations__groups li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: -0.005em;
  color: var(--ghost);
  background: transparent;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}
.integrations__groups li:hover {
  background: rgba(216, 255, 58, 0.06);
  border-color: var(--accent);
}

/* =========================================================================
   Case studies (Work) — Problem / Solution / Outcome
   ========================================================================= */
.work__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.case {
  background: var(--onyx-1000);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
  transition: background 0.4s var(--ease-out);
  min-height: 420px;
}
.case::after {
  content: "";
  position: absolute;
  inset: auto auto -40% -40%;
  width: 80%;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.case:hover { background: var(--onyx-900); }
.case:hover::after { opacity: 1; }
.case > header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--slate);
}
.case h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 1.4vw + 1.1rem, 2rem);
  letter-spacing: -0.025em;
  color: var(--ghost);
}
.case__lede {
  margin: -0.3rem 0 0;
  color: var(--ghost-dim);
  font-size: 0.98rem;
  font-style: italic;
}
.case dl {
  margin: 0;
  display: grid;
  gap: 0.8rem;
  border-top: 1px dashed var(--hairline);
  padding-top: 1rem;
}
.case dt {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0;
}
.case dd {
  margin: 0;
  color: var(--ghost-dim);
  font-size: 0.95rem;
  line-height: 1.55;
}
.case dd b {
  color: var(--ghost);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05em;
  letter-spacing: -0.01em;
}

/* =========================================================================
   The Atelier — team & culture
   ========================================================================= */
.atelier__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.atelier__grid > article {
  background: var(--onyx-1000);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: grid;
  gap: 0.7rem;
  align-content: start;
  min-height: 240px;
  transition: background 0.4s var(--ease-out);
}
.atelier__grid > article:hover { background: var(--onyx-900); }
.atelier__grid h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: var(--ghost);
}
.atelier__grid p {
  margin: 0;
  color: var(--ghost-dim);
  font-size: 0.95rem;
}

/* =========================================================================
   The Lab — technical blog preview
   ========================================================================= */
.lab__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.post {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 3fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--hairline);
  transition: background 0.4s var(--ease-out);
}
.post:hover {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.018),
    rgba(255, 255, 255, 0)
  );
}
.post > header {
  display: grid;
  gap: 0.35rem;
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
}
.post > header span {
  color: var(--ghost);
}
.post h3 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: clamp(1.25rem, 0.8rem + 1.2vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--ghost);
  line-height: 1.15;
  max-width: 60ch;
}
.post p {
  margin: 0;
  color: var(--ghost-dim);
  font-size: 0.95rem;
  max-width: 70ch;
}
.post__state {
  font-family: "JetBrains Mono", monospace;
  font-size: var(--t-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border: 1px solid var(--hairline-strong);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  align-self: start;
}

@media (max-width: 720px) {
  .post {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .post__state { justify-self: start; }
  .case { min-height: 0; }
}

/* =========================================================================
   Scroll-reveal primitives
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .hero__title .line > span {
    transform: none;
  }
}

/* =========================================================================
   FLOATING ORB FIELD — depth & atmosphere (CSS-only "wow")
   ========================================================================= */
.orb-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.orb--a {
  width: 620px; height: 620px;
  top: -180px; left: -160px;
  background: conic-gradient(from 120deg, #d8ff3a, transparent 60%, #1f6bff, transparent);
  animation: orbDrift 26s ease-in-out infinite alternate;
}
.orb--b {
  width: 540px; height: 540px;
  top: 38%; right: -180px;
  background: radial-gradient(circle at 30% 30%, #6b3aff 0%, transparent 70%);
  animation: orbDrift 32s ease-in-out -8s infinite alternate-reverse;
  opacity: 0.45;
}
.orb--c {
  width: 720px; height: 720px;
  bottom: -260px; left: 30%;
  background: conic-gradient(from 0deg, transparent, #d8ff3a 30%, transparent 65%, #ff5e3a 90%, transparent);
  animation: orbDrift 40s ease-in-out -14s infinite alternate;
  opacity: 0.32;
}
@keyframes orbDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(80px, -60px, 0) scale(1.08); }
  100% { transform: translate3d(-40px, 50px, 0) scale(0.96); }
}
@media (max-width: 720px) {
  .orb { filter: blur(60px); opacity: 0.4; }
  .orb--a { width: 380px; height: 380px; }
  .orb--b { width: 320px; height: 320px; }
  .orb--c { width: 440px; height: 440px; }
}

/* keep main content above orbs */
.nav, main, .foot { position: relative; z-index: 2; }

/* =========================================================================
   MISSION & VISION — bold creed cards with perspective depth
   ========================================================================= */
.mission { padding-top: clamp(80px, 12vh, 160px); }
.mission__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  perspective: 1600px;
  margin-top: 56px;
}
.creed {
  position: relative;
  padding: 44px 40px 48px;
  border-radius: 20px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.012) 100%),
    radial-gradient(circle at 0% 0%, rgba(216,255,58,0.08), transparent 55%);
  border: 1px solid rgba(255,255,255,0.07);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out), border-color 0.5s, box-shadow 0.7s;
  overflow: hidden;
}
.creed::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(216,255,58,0.06));
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
}
.creed:hover {
  transform: rotateY(-2deg) rotateX(2deg) translateZ(20px);
  border-color: rgba(216,255,58,0.22);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6), 0 0 0 1px rgba(216,255,58,0.08);
}
.creed:hover::before { opacity: 1; }
.creed--vision:hover { transform: rotateY(2deg) rotateX(2deg) translateZ(20px); }
.creed__k {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #d8ff3a);
  padding: 6px 12px;
  border: 1px solid rgba(216,255,58,0.3);
  border-radius: 999px;
  background: rgba(216,255,58,0.06);
  margin-bottom: 28px;
}
.creed h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ghost, #f5f5f7);
  margin: 0 0 22px;
}
.creed h3 em {
  font-style: normal;
  color: var(--accent, #d8ff3a);
}
.creed p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate, #8a8d96);
  margin: 0 0 24px;
  max-width: 46ch;
}
.creed p em {
  font-style: italic;
  color: var(--ghost, #f5f5f7);
}
.creed__list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
}
.creed__list li {
  display: flex;
  gap: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ghost, #f5f5f7);
  padding: 8px 0;
}
.creed__list li b {
  color: var(--accent, #d8ff3a);
  font-weight: 500;
}
@media (max-width: 880px) {
  .mission__grid { grid-template-columns: 1fr; }
  .creed { padding: 32px 26px; }
  .creed:hover, .creed--vision:hover { transform: translateY(-4px); }
}

/* =========================================================================
   PRODUCTS SHOWCASE — CSS 3D phone mockups
   ========================================================================= */
.products { padding-top: clamp(80px, 12vh, 160px); }
.products__grid {
  list-style: none;
  padding: 0;
  margin: 56px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vh, 80px);
  perspective: 2000px;
}
.product {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(36px, 5vh, 64px) clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.008) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out), border-color 0.6s, box-shadow 0.8s;
}
.product:nth-child(even) { grid-template-columns: 1.2fr minmax(280px, 1fr); }
.product:nth-child(even) .product__device { order: 2; }
.product:hover {
  border-color: rgba(216,255,58,0.18);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.7);
}

/* PRODUCT BODY */
.product__body { display: flex; flex-direction: column; gap: 18px; }
.product__body > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate, #8a8d96);
}
.product__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(216,255,58,0.25);
  color: var(--accent, #d8ff3a);
  background: rgba(216,255,58,0.05);
}
.product__body h3 {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ghost, #f5f5f7);
  margin: 4px 0 0;
}
.product__lede {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--accent, #d8ff3a);
  margin: 0;
  letter-spacing: -0.005em;
}
.product__copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--slate, #8a8d96);
  margin: 0;
  max-width: 50ch;
}
.product__copy b {
  color: var(--ghost, #f5f5f7);
  font-weight: 500;
}
.product__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}
.product__stat span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate-2, #5b5e67);
}
.product__stat b {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 500;
  color: var(--accent, #d8ff3a);
  letter-spacing: -0.01em;
}
.product__stat i {
  font-style: normal;
  font-size: 12.5px;
  color: var(--slate, #8a8d96);
}
.product__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  margin-top: 8px;
  border-radius: 999px;
  border: 1px solid rgba(216,255,58,0.3);
  color: var(--accent, #d8ff3a);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  background: rgba(216,255,58,0.04);
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out);
}
.product__cta:hover {
  background: rgba(216,255,58,0.12);
  border-color: rgba(216,255,58,0.55);
  transform: translateX(6px);
}

/* DEVICE — pure CSS phone mockup, 3D-rotated */
.product__device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  perspective: 1600px;
}
.device {
  position: relative;
  transform: rotateY(-18deg) rotateX(6deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}
.product:nth-child(even) .device { transform: rotateY(18deg) rotateX(6deg) rotateZ(2deg); }
.product:hover .device {
  transform: rotateY(-8deg) rotateX(2deg) rotateZ(-1deg) translateZ(30px);
}
.product:nth-child(even):hover .device {
  transform: rotateY(8deg) rotateX(2deg) rotateZ(1deg) translateZ(30px);
}
.device--phone {
  width: 240px;
  height: 480px;
  border-radius: 38px;
  background: linear-gradient(150deg, #1c1c1f 0%, #0a0a0b 100%);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 12px;
  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,0.03),
    0 60px 120px -30px rgba(0,0,0,0.85),
    0 30px 60px -20px rgba(216,255,58,0.08);
}
.device__notch {
  position: absolute;
  top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #050505;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.device__notch::after {
  content: "";
  position: absolute;
  top: 6px; right: 14px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #1a1f2e 30%, #0a0a0b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.device__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 38px 18px 22px;
  background: #0e0e10;
}
.device__screen--image {
  padding: 0;
  gap: 0;
}
.screen__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}
.device__shadow {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%) translateZ(-40px);
  width: 200px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* SCREEN BUILDING BLOCKS */
.screen__chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: rgba(216,255,58,0.85);
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(216,255,58,0.08);
  align-self: flex-start;
  border: 1px solid rgba(216,255,58,0.15);
}
.screen__bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.18), rgba(255,255,255,0.04));
}
.screen__bar--short { width: 60%; }
.screen__bar--gauge {
  height: 14px;
  background: linear-gradient(90deg, var(--accent, #d8ff3a) 0%, var(--accent, #d8ff3a) 65%, rgba(255,255,255,0.06) 65%);
  box-shadow: 0 0 24px rgba(216,255,58,0.35);
}
.screen__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.04);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--ghost, #f5f5f7);
}
.screen__row span {
  display: block;
  width: 60%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.18);
}
.screen__row b {
  font-weight: 500;
  font-size: 10px;
  color: var(--accent, #d8ff3a);
}
.screen__row--alert {
  background: rgba(255, 94, 58, 0.1);
  border-color: rgba(255, 94, 58, 0.25);
}
.screen__row--alert b { color: #ff8a6e; }
.screen__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(216,255,58,0.06);
  border: 1px solid rgba(216,255,58,0.15);
}
.screen__metric span {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--slate, #8a8d96);
}
.screen__metric b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent, #d8ff3a);
}
.screen__metric b i {
  font-style: normal;
  font-size: 11px;
  color: var(--slate, #8a8d96);
  margin-left: 2px;
}

/* PICAIFY — abstract creative composition */
.device__screen--picaify {
  background:
    radial-gradient(circle at 20% 20%, rgba(216,255,58,0.18), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(31,107,255,0.18), transparent 50%),
    #0a0a0b;
}
.screen__hero {
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px 0;
}
.screen__shape {
  position: absolute;
  border-radius: 50%;
  transform-style: preserve-3d;
}
.screen__shape--circle {
  width: 110px; height: 110px;
  background: conic-gradient(from 0deg, #d8ff3a, #1f6bff, #6b3aff, #d8ff3a);
  filter: blur(2px);
  animation: spinShape 12s linear infinite;
}
.screen__shape--ring {
  width: 150px; height: 150px;
  border: 2px solid rgba(216,255,58,0.4);
  animation: spinShape 18s linear -4s infinite reverse;
}
@keyframes spinShape {
  to { transform: rotate(360deg); }
}

/* RENEWA — subscription rows */
.device__screen--renewa {
  background:
    linear-gradient(180deg, rgba(31,107,255,0.08), transparent 30%),
    #0a0a0b;
}

/* AMPERO — engineering metric */
.device__screen--ampero {
  background:
    linear-gradient(180deg, rgba(216,255,58,0.06), transparent 40%),
    #0a0a0b;
}

/* BRIDGEDAYS — calendar grid */
.device__screen--bridge {
  background:
    radial-gradient(circle at 50% 30%, rgba(255,94,58,0.08), transparent 50%),
    #0a0a0b;
}
.screen__cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.screen__cal i {
  display: block;
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
}
.screen__cal i.hot {
  background: var(--accent, #d8ff3a);
  box-shadow: 0 0 12px rgba(216,255,58,0.5);
}

/* DAILYAYAH — quote lines */
.device__screen--ayah {
  background:
    radial-gradient(circle at 50% 80%, rgba(107,58,255,0.12), transparent 50%),
    #0a0a0b;
}
.screen__quote {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}
.screen__quote span {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.04));
}
.screen__quote span.short { width: 40%; }

/* RESPONSIVE — products */
@media (max-width: 880px) {
  .product,
  .product:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 22px;
  }
  .product:nth-child(even) .product__device { order: 0; }
  .device--phone { width: 200px; height: 400px; }
  .device,
  .product:nth-child(even) .device {
    transform: rotateY(0) rotateX(4deg);
  }
  .product:hover .device,
  .product:nth-child(even):hover .device {
    transform: rotateY(0) rotateX(0) translateZ(20px);
  }
}

/* =========================================================================
   CRAFT — tech stack groups
   ========================================================================= */
.craft__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  margin-top: 56px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  overflow: hidden;
}
.craft__groups article {
  background: rgba(10,10,11,0.7);
  padding: 26px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.4s;
}
.craft__groups article:hover {
  background: rgba(216,255,58,0.04);
}
.craft__groups h6 {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent, #d8ff3a);
  margin: 0 0 16px;
  font-weight: 500;
}
.craft__groups ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.craft__groups li {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13.5px;
  color: var(--ghost, #f5f5f7);
  letter-spacing: -0.005em;
}

/* =========================================================================
   SCROLL-DRIVEN PRODUCT REVEAL (modern browsers)
   ========================================================================= */
@supports (animation-timeline: view()) {
  .product {
    animation: productRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }
  @keyframes productRise {
    from {
      opacity: 0;
      transform: translateY(80px) rotateX(-6deg);
    }
    to {
      opacity: 1;
      transform: translateY(0) rotateX(0);
    }
  }
  .creed {
    animation: creedRise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
  @keyframes creedRise {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* =========================================================================
   PRODUCT CTA GROUP — primary store button + ghost site link + coming soon
   ========================================================================= */
.product__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}
.product__cta--ghost {
  border-color: rgba(255,255,255,0.1);
  color: var(--slate, #8a8d96);
  background: transparent;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 11px 16px;
}
.product__cta--ghost:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.22);
  color: var(--ghost, #f5f5f7);
}
.product__cta--soon {
  cursor: default;
  border-color: rgba(255,255,255,0.08);
  color: var(--slate, #8a8d96);
  background: rgba(255,255,255,0.02);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product__cta--soon .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(216,255,58,0.7);
  box-shadow: 0 0 8px rgba(216,255,58,0.6);
  animation: dotPulse 1.8s ease-in-out infinite;
}
.product__cta--soon:hover {
  transform: none;
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.08);
}
@keyframes dotPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.15); }
}
