/* ==========================================================================
   Management Dynamics Consulting — static site
   Single-viewport video landing + inner pages in the same visual language
   ========================================================================== */

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;

  /* inner-page surfaces (derived from the same palette) */
  --surface: rgba(40, 40, 42, 0.72);
  --surface-hover: rgba(50, 50, 52, 0.82);
  --hairline: rgba(255, 255, 255, 0.12);
  --body-text: #d0d0d0;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Landing page: one viewport, nothing scrolls */
body.landing {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Background video ---------- */

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Inner pages: video stays pinned while content scrolls over a dim veil */
body.inner .bg {
  position: fixed;
}

body.inner .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.78) 45%, rgba(0, 0, 0, 0.9) 100%);
  z-index: 1;
}

/* ---------- Page frame ---------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

body.inner .page {
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: visible;
}

.header,
.hero,
.stats,
.mobile-menu,
.inner-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   1) Header
   ========================================================================== */

.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  animation: slideDown 0.7s var(--ease-out) both;
}

.logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s var(--ease-out);
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.nav {
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 clamp(6px, 1vw, 12px);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.nav a:hover {
  opacity: 0.75;
}

.nav a.active,
.nav a[aria-current="page"] {
  opacity: 1;
}

.nav a.active::after,
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sign-in {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(18px, 2.2vw, 24px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease-out);
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

/* Burger — mobile only */
.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease;
}

.burger span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  margin-left: -9px;
  margin-top: -0.75px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.2s ease, background 0.3s ease;
}

.burger span:nth-child(1) {
  transform: translateY(-6.5px);
}

.burger span:nth-child(3) {
  transform: translateY(6.5px);
}

.burger[aria-expanded="true"] {
  background: #fff;
}

.burger[aria-expanded="true"] span {
  background: #000;
}

.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

/* Mobile menu */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.mobile-menu {
  position: fixed;
  z-index: 2;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 12px);
  left: 50%;
  width: min(calc(100% - 28px), 420px);
  transform: translateX(-50%);
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s var(--ease-out) both;
}

.menu-overlay[hidden],
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-menu nav a {
  position: relative;
  display: block;
  padding: 12px 16px 18px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  animation: linkIn 0.45s var(--ease-out) both;
}

.mobile-menu nav a:nth-child(1) { animation-delay: 0.06s; }
.mobile-menu nav a:nth-child(2) { animation-delay: 0.11s; }
.mobile-menu nav a:nth-child(3) { animation-delay: 0.16s; }
.mobile-menu nav a:nth-child(4) { animation-delay: 0.21s; }

.mobile-menu nav a.active,
.mobile-menu nav a[aria-current="page"] {
  opacity: 1;
}

.mobile-menu nav a.active::after,
.mobile-menu nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.mobile-sign-in {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  animation: linkIn 0.45s var(--ease-out) 0.26s both;
}

/* ==========================================================================
   2) Hero
   ========================================================================== */

.hero {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Trust row */
.trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
  text-decoration: none;
}

.trust-avatar {
  position: relative;
  flex-shrink: 0;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  transition: transform 0.35s var(--ease-out);
}

.trust-avatar + .trust-avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar.a1 { z-index: 1; }
.trust-avatar.a2 { z-index: 2; }
.trust-avatar.a3 { z-index: 4; }

.trust:hover .trust-avatar.a1 { transform: translateY(-2px); }
.trust:hover .trust-avatar.a2 { transform: translateY(-4px); }
.trust:hover .trust-avatar.a3 { transform: translateY(-2px); }

.trust-avatar .inner {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-avatar .inner img {
  width: 74%;
  height: 74%;
  object-fit: contain;
}

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 18px 0 calc(var(--trust-size) * 0.58);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

/* Headline */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
}

.headline > span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease-out) forwards;
}

.headline > span:nth-child(1) { animation-delay: 0.12s; }
.headline > span:nth-child(2) { animation-delay: 0.3s; }

/* parent .headline.anim does not reveal itself — lines do */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

/* Subhead */
.subhead {
  max-width: min(500px, 92%);
  margin: clamp(14px, 2.2vh, 22px) auto 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
}

.subhead.anim {
  --final-opacity: 0.8;
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(20px, 3.2vh, 32px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.32), 0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.48), 0 0 64px rgba(255, 255, 255, 0.2);
}

.cta.anim {
  animation-name: revealPulse;
  animation-duration: 1.1s;
}

/* ==========================================================================
   3) Stats footer
   ========================================================================== */

.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ==========================================================================
   Shared entrance animation
   ========================================================================== */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: var(--final-opacity, 1);
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

/* ==========================================================================
   Inner pages (Product, Case Studies, Contact)
   ========================================================================== */

.inner-main {
  width: 100%;
  max-width: 1120px;
  padding-top: clamp(48px, 9vh, 96px);
}

.page-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: clamp(56px, 9vh, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 16px;
  margin-bottom: clamp(16px, 2.5vh, 24px);
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  color: var(--trust-text);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 5.4vw, 68px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  text-wrap: balance;
}

.page-lede {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.85;
}

.section {
  margin-bottom: clamp(72px, 12vh, 128px);
  scroll-margin-top: 24px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 48px;
  align-items: end;
  margin-bottom: 32px;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.section-kicker .glyph {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: #fff;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #fff;
}

.section-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-text);
  opacity: 0.8;
}

.section-subtitle {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  padding: 26px 24px 24px;
  transition: background 0.3s ease, transform 0.35s var(--ease-out), border-color 0.3s ease;
}

.feature:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.feature-glyph {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
}

.feature-glyph span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: 13px;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: #fff;
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.78;
}

/* Large capability blocks */
.capability {
  padding: clamp(26px, 3.4vw, 40px);
  display: flex;
  flex-direction: column;
}

.capability .feature-glyph {
  width: 50px;
  height: 50px;
}

.capability h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
}

.capability > p {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body-text);
  opacity: 0.8;
}

.dot-list {
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dot-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--trust-text);
}

.dot-list li::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 -4px 0 #fff, 0 4px 0 #fff;
}

/* Pillar rows */
.pillars {
  display: flex;
  flex-direction: column;
}

.pillar {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--hairline);
}

.pillar:last-child {
  border-bottom: 0;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: #fff;
  opacity: 0.9;
}

.pillar h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.pillar p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.78;
}

/* Product catalog */
.catalog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.filter {
  position: relative;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--nav-text);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.filter:hover {
  opacity: 0.75;
}

.filter[aria-pressed="true"] {
  opacity: 1;
  background: #f1f1f1;
}

.search {
  position: relative;
  width: min(100%, 300px);
}

.search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--muted);
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 46px;
  padding: 0 18px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--trust-border);
  background: var(--trust-bg);
  color: #fff;
  font: 500 14px var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  border-color: #fff;
}

.catalog-count {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}

.catalog-count strong {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product {
  display: flex;
  flex-direction: column;
  padding: 22px;
  animation: linkIn 0.5s var(--ease-out) both;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease-out);
}

.product:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.product-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
}

.product-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--trust-border);
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product h3 {
  margin: 0 0 4px;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #fff;
}

.product-tagline {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--trust-text);
}

.product .dot-list {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.product .dot-list li {
  font-size: 13px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0, 0, 0, 0.25);
  color: var(--trust-text);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
}

.tag.live {
  margin-left: auto;
  color: #fff;
}

.tag.live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Logo walls */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 150px;
  padding: 20px 16px;
  text-align: center;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease-out);
}

.logo-tile:hover {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.logo-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 150px;
  height: 64px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
}

/* Flex (not grid) so max-height:100% resolves against the chip's fixed height;
   tall/square logos (Sepang, H.O.G, FAMA) previously overflowed the chip. */
.logo-chip img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.logo-tile strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}

.logo-tile small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

.partner-wall {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.partner-wall .logo-tile {
  min-height: 0;
  padding: 14px 10px;
}

.partner-wall .logo-chip {
  height: 52px;
  padding: 8px 10px;
  border-radius: 14px;
}

.partner-wall .logo-chip img {
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-wall .logo-tile:hover .logo-chip img {
  filter: none;
  opacity: 1;
}

.partner-wall .logo-tile strong {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--trust-text);
}

/* Marquee */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 80s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 58px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--trust-bg);
  border: 1px solid var(--hairline);
  white-space: nowrap;
}

.marquee-item strong {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.marquee-item small {
  font-size: 11px;
  color: var(--muted);
}

/* Inner stats strip */
.stats.inline {
  max-width: none;
  padding: clamp(28px, 4vw, 44px) clamp(16px, 3vw, 32px);
}

/* CTA band */
.cta-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
}

.cta-band .cta {
  margin-top: 26px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 16px;
  align-items: start;
}

.form-panel {
  padding: clamp(24px, 3.4vw, 40px);
}

.form-panel h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.form-panel > p {
  margin: 0 0 26px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.8;
}

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--trust-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font: 400 14.5px/1.4 var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c4c2c3' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field select option {
  background: #1a1a1b;
  color: #fff;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #6f6f6f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.5);
}

.form .cta {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
}

.notice {
  grid-column: 1 / -1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-size: 13.5px;
  line-height: 1.5;
  animation: linkIn 0.4s var(--ease-out) both;
}

.notice[hidden] {
  display: none;
}

.notice i {
  margin-top: 3px;
}

.notice strong {
  display: block;
}

.coords {
  padding: clamp(24px, 3vw, 34px);
}

.coords h2 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.coord {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}

.coord:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.coord .feature-glyph {
  margin: 0;
}

.coord small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.coord a,
.coord span {
  font-size: 14.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  line-height: 1.5;
}

.coord a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.coords-note {
  margin-top: 16px;
  padding: 22px 24px;
}

.coords-note h3 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 600;
}

.coords-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body-text);
  opacity: 0.8;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--trust-border);
  background: var(--trust-bg);
  color: var(--sign-in-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ghost-btn:hover {
  background: #323234;
  color: #fff;
}

.inbox {
  padding: 24px;
  margin-top: 14px;
}

.inbox[hidden] {
  display: none;
}

.inbox-note {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: var(--muted);
}

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.lead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.lead-top strong {
  font-size: 14px;
}

.lead-meta {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.lead-msg {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--body-text);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--trust-text);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  background: #fff;
  color: #000;
}

/* Footer (inner pages) */
.site-footer {
  width: 100%;
  max-width: 1120px;
  margin-top: auto;
  padding: 40px 0 8px;
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 32px;
}

/* Dark full wordmark (cropped from og-image.jpg). Screen blend drops its
   near-black background into the footer; the mask feathers the crop edges. */
.footer-brand {
  display: inline-block;
  margin-bottom: 18px;
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), opacity 0.3s ease;
}

.footer-brand:hover {
  transform: translateY(-2px);
}

.footer-brand img {
  display: block;
  width: 260px;
  max-width: 100%;
  height: auto;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 85% at 50% 50%, #000 70%, transparent 100%);
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-style: normal;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

.site-footer h4 {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--trust-text);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
}

.footer-contact i {
  width: 14px;
  font-size: 12px;
  color: var(--muted);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: #6f6f6f;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .partner-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav,
  .header > .sign-in {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

  .header .logo {
    width: 48px;
    height: 48px;
  }

  .burger {
    display: block;
    z-index: 3;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
    font-size: clamp(28px, 9.4vw, 60px);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(14px, 2.4vh, 22px);
  }

  .trust-pill {
    font-size: 12px;
  }

  .section-head,
  .grid-2,
  .grid-3,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .products {
    grid-template-columns: minmax(0, 1fr);
  }

  .logo-wall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters {
    border-radius: 24px;
  }

  .search {
    width: 100%;
  }

  .form {
    grid-template-columns: minmax(0, 1fr);
  }

  .pillar {
    grid-template-columns: 44px minmax(0, 1fr);
    padding: 20px;
  }

  .lead {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .grid-4,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  .trust {
    --trust-size: 34px;
  }

  .trust-pill {
    padding-right: 14px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  .eyebrow {
    white-space: normal;
    height: auto;
    padding: 8px 14px;
    text-align: center;
  }
}

/* Short viewports: tighten hero spacing so everything fits one screen */
@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
    line-height: 1.45;
  }

  .cta {
    margin-top: 16px;
  }

  .stat-icon {
    margin-bottom: 0;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

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

  .anim {
    opacity: var(--final-opacity, 1);
    transform: none;
    filter: none;
  }

  .headline,
  .headline > span {
    opacity: 1;
    transform: none;
    color: #fff;
  }

  .marquee-track {
    flex-wrap: wrap;
    width: auto;
  }
}
