/* APAM — Global styles
   ─────────────────────────────────────────────────────────────────────────
   Theme system uses CSS vars swapped by [data-theme]. Accent is set inline
   from React. Font stack swapped by [data-font]. RTL is set on <html dir>.
*/

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "kern";
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
}
:root[lang="fa"] body {
  font-feature-settings: "ss01", "kern";
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; }
::selection { background: color-mix(in oklch, var(--accent) 35%, transparent); color: var(--ink); }

/* Font families */
@font-face {
  font-family: "Vazirmatn";
  src: url("../assets/fonts/Vazirmatn[wght].woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --font-vazirmatn: "Vazirmatn", system-ui, sans-serif;
  --font-estedad: "Vazirmatn", system-ui, sans-serif;
  --font-yekan: "Vazirmatn", system-ui, sans-serif;
  --font-pelak: "Vazirmatn", system-ui, sans-serif;
  --font-body: var(--font-vazirmatn);
  --font-mono: var(--font-body);
}
[data-font="vazirmatn"],
[data-font="estedad"],
[data-font="yekan"],
[data-font="pelak"],
[lang="en"] { --font-body: "Vazirmatn", system-ui, sans-serif; }

/* ─────────────────────────────────────────────────────────────────────────
   Theme: dark (default)
*/
:root,
:root[data-theme="dark"] {
  --bg: oklch(0.16 0.012 240);
  --bg-elev: oklch(0.20 0.014 240);
  --bg-elev-2: oklch(0.24 0.014 240);
  --ink: oklch(0.97 0.005 240);
  --ink-2: oklch(0.85 0.008 240);
  --muted: oklch(0.62 0.012 240);
  --muted-2: oklch(0.48 0.012 240);
  --line: oklch(0.30 0.012 240 / 0.55);
  --line-strong: oklch(0.45 0.014 240 / 0.7);
  --accent: #3B82F6;
  --accent-ink: #fff;
  --shadow: 0 30px 60px -20px rgba(0,0,0,.5), 0 2px 0 rgba(255,255,255,.03) inset;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: oklch(0.985 0.003 240);
  --bg-elev: oklch(1 0 0);
  --bg-elev-2: oklch(0.97 0.004 240);
  --ink: oklch(0.18 0.012 240);
  --ink-2: oklch(0.30 0.012 240);
  --muted: oklch(0.50 0.012 240);
  --muted-2: oklch(0.65 0.012 240);
  --line: oklch(0.85 0.006 240 / 0.9);
  --line-strong: oklch(0.70 0.010 240 / 0.95);
  --accent: #2563EB;
  --accent-ink: #fff;
  --shadow: 0 20px 50px -22px rgba(15,23,42,.18), 0 1px 0 rgba(255,255,255,.6) inset;
  color-scheme: light;
}

:root[data-theme="warm"] {
  --bg: oklch(0.96 0.014 70);
  --bg-elev: oklch(0.99 0.008 70);
  --bg-elev-2: oklch(0.93 0.018 70);
  --ink: oklch(0.20 0.018 50);
  --ink-2: oklch(0.32 0.016 50);
  --muted: oklch(0.50 0.020 50);
  --muted-2: oklch(0.62 0.022 50);
  --line: oklch(0.82 0.014 60 / 0.9);
  --line-strong: oklch(0.68 0.020 55 / 0.9);
  --accent: #B45309;
  --accent-ink: #fff;
  --shadow: 0 22px 50px -22px rgba(120,53,15,.22), 0 1px 0 rgba(255,255,255,.6) inset;
  color-scheme: light;
}

/* Container + layout helpers */
.container { width: min(1280px, 92vw); margin-inline: auto; }
.section { padding-block: clamp(56px, 8vw, 96px); position: relative; z-index: 2; scroll-margin-top: 110px; }
.section--alt { background: var(--bg-elev); position: relative; }
.section--alt::before,
.section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.app { position: relative; min-height: 100vh; isolation: isolate; }

/* ─────────────────────────────────────────────────────────────────────────
   Grid background (shared)
*/
.grid-bg {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in oklch, var(--accent) 6%, transparent), transparent 60%),
    var(--bg);
}
.grid-bg__layer {
  position: absolute; inset: -160px;
  will-change: transform;
}
.grid-bg__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.grid-bg__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(140% 100% at 50% 50%, transparent 40%, var(--bg) 100%);
  pointer-events: none; z-index: 2;
}

/* ─────────────────────────────────────────────────────────────────────────
   Navigation — liquid-glass floating pill, shrinks on scroll
*/
.brand {
  display: inline-flex; align-items: center;
  color: var(--ink); text-decoration: none;
}
.brand__mark {
  width: auto;
  height: var(--bs, 28px);
  max-width: calc(var(--bs, 28px) * 3.75);
  object-fit: contain;
}
:root[data-theme="dark"] .brand__mark {
  filter: invert(1) grayscale(1) brightness(1.45);
}

.navwrap {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 100;
  display: flex; justify-content: center;
  pointer-events: none;
  padding-inline: 12px;
  transition: top .4s cubic-bezier(.3,.7,.4,1);
}
.navwrap--shrunk { top: 12px; }

.lg-nav {
  pointer-events: auto;
  width: min(1180px, 100%);
  height: 60px;
  position: relative;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--ink) 4%, transparent) 0%,
      transparent 60%),
    color-mix(in oklch, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, white 18%, transparent),
    inset 0 -1px 0 color-mix(in oklch, var(--ink) 6%, transparent),
    0 1px 1px rgba(0,0,0,.06),
    0 14px 36px -10px rgba(0,0,0,.28);
  transition:
    width .45s cubic-bezier(.3,.7,.4,1),
    border-radius .45s cubic-bezier(.3,.7,.4,1),
    height .45s cubic-bezier(.3,.7,.4,1),
    background .35s ease;
}
:root[data-theme="light"] .lg-nav {
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, white 80%, transparent),
    inset 0 -1px 0 color-mix(in oklch, var(--ink) 4%, transparent),
    0 1px 1px rgba(15,23,42,.04),
    0 16px 36px -16px rgba(15,23,42,.16);
}
.navwrap--shrunk .lg-nav {
  width: min(880px, 100%);
  height: 54px;
  border-radius: 999px;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--ink) 5%, transparent) 0%,
      transparent 60%),
    color-mix(in oklch, var(--bg) 72%, transparent);
}

.lg-nav__inner {
  height: 100%;
  padding-inline: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
}

.lg-nav__brand {
  text-decoration: none;
  display: inline-flex; align-items: center;
  width: 118px;
  padding: 4px 10px; border-radius: 999px;
  transition: background .2s;
}
.lg-nav__brand:hover {
  background: color-mix(in oklch, var(--ink) 5%, transparent);
}

.lg-nav__links {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  flex: 1; justify-content: center;
  isolation: isolate;
}
.lg-nav__link {
  position: relative; z-index: 1;
  padding: 8px 14px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  border-radius: 999px;
  transition: color .2s;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.lg-nav__link:hover { color: var(--ink); }
.lg-nav__link.is-active { color: var(--ink); font-weight: 600; }
.lg-nav__active-dot {
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.lg-nav__hover {
  position: absolute; top: 0; left: 0; z-index: 0;
  border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 7%, transparent);
  transition: transform .28s cubic-bezier(.4,.7,.4,1),
              width .28s cubic-bezier(.4,.7,.4,1),
              height .28s cubic-bezier(.4,.7,.4,1),
              opacity .2s;
  pointer-events: none;
}

.lg-nav__tools { display: flex; align-items: center; gap: 8px; }

.lang {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
  font-family: var(--font-mono);
}
.lang__btn {
  appearance: none; border: 0; background: transparent;
  color: var(--muted);
  height: 24px; min-width: 28px; padding: 0 8px;
  font: inherit; font-size: 10.5px; font-weight: 600;
  border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-on { background: var(--accent); color: var(--accent-ink); }

.themesw {
  appearance: none;
  border: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
  background: color-mix(in oklch, var(--ink) 5%, transparent);
  width: 32px; height: 32px; border-radius: 999px;
  color: var(--ink); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.themesw:hover { background: color-mix(in oklch, var(--ink) 10%, transparent); transform: rotate(15deg); }
.themesw__icon { font-size: 13px; }

.lg-nav__burger {
  display: none;
  appearance: none;
  border: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
  background: color-mix(in oklch, var(--ink) 5%, transparent);
  width: 36px; height: 32px; border-radius: 999px;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink);
}
.lg-nav__burger__icon {
  position: relative; width: 16px; height: 12px;
  display: inline-block;
}
.lg-nav__burger__icon span {
  position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor;
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.3,.7,.4,1), opacity .2s;
}
.lg-nav__burger__icon span:nth-child(1) { top: 0; }
.lg-nav__burger__icon span:nth-child(2) { top: 5px; }
.lg-nav__burger__icon span:nth-child(3) { top: 10px; }
.lg-nav__burger__icon.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.lg-nav__burger__icon.is-open span:nth-child(2) { opacity: 0; }
.lg-nav__burger__icon.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile glass sheet */
.lg-sheet__scrim {
  position: fixed; inset: 0; z-index: 98;
  background: color-mix(in oklch, var(--bg) 50%, transparent);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lg-sheet {
  position: fixed;
  top: 84px; left: 12px; right: 12px;
  z-index: 99;
  border-radius: 22px;
  background:
    linear-gradient(180deg,
      color-mix(in oklch, var(--ink) 4%, transparent) 0%,
      transparent 60%),
    color-mix(in oklch, var(--bg) 75%, transparent);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid color-mix(in oklch, var(--ink) 10%, transparent);
  box-shadow:
    inset 0 1px 0 color-mix(in oklch, white 18%, transparent),
    0 30px 60px -10px rgba(0,0,0,.4);
  opacity: 0; transform: translateY(-12px) scale(0.98);
  pointer-events: none;
  transition: opacity .3s, transform .3s cubic-bezier(.3,.7,.4,1);
  max-height: calc(100vh - 100px); overflow-y: auto;
}
.lg-sheet.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.lg-sheet__inner { padding: 14px; }
.lg-sheet__links { display: flex; flex-direction: column; gap: 2px; }
.lg-sheet__link {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink-2);
  border-radius: 14px;
  transition: background .2s, color .2s;
  opacity: 0; transform: translateY(8px);
  animation: sheetIn .35s cubic-bezier(.3,.7,.4,1) forwards;
  animation-delay: calc(0.05s + var(--i, 0) * 0.04s);
}
.lg-sheet.is-open .lg-sheet__link {
  /* animation handles entrance */
}
@keyframes sheetIn { to { opacity: 1; transform: translateY(0); } }
.lg-sheet__link:hover { background: color-mix(in oklch, var(--ink) 6%, transparent); color: var(--ink); }
.lg-sheet__link.is-active {
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  color: var(--ink);
}
.lg-sheet__link__num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.1em; min-width: 24px;
}
.lg-sheet__link.is-active .lg-sheet__link__num { color: var(--accent); }
.lg-sheet__link__t {
  flex: 1; font-size: 18px; font-weight: 600;
}
.lg-sheet__link__arrow {
  display: inline-flex; opacity: 0.5;
  transition: transform .2s, opacity .2s;
}
[dir="rtl"] .lg-sheet__link__arrow svg { transform: scaleX(-1); }
.lg-sheet__link:hover .lg-sheet__link__arrow { opacity: 1; transform: translateX(3px); }
[dir="rtl"] .lg-sheet__link:hover .lg-sheet__link__arrow { transform: translateX(-3px); }

.lg-sheet__foot {
  margin-top: 14px; padding: 16px 18px 8px;
  border-top: 1px dashed color-mix(in oklch, var(--ink) 10%, transparent);
  display: flex; flex-direction: column; gap: 14px;
}
.lg-sheet__row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.lg-sheet__row__lbl {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}

/* Hide center links on mobile, show burger */
@media (max-width: 960px) {
  .lg-nav__links { display: none; }
  .lg-nav__burger { display: inline-flex; }
  .navwrap--shrunk .lg-nav { width: min(680px, 100%); height: 54px; }
}
@media (max-width: 520px) {
  .lg-nav__tools > .lang { display: none; }
  .lg-sheet .lang { display: inline-flex; }
  .lg-nav__brand { width: 104px; padding-inline: 8px; }
  .lg-nav__inner { padding-inline: 10px; gap: 8px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Hero
*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  z-index: 2;
}
.hero__inner {
  width: min(1280px, 92vw);
  margin-inline: auto;
}
.hero__logo {
  width: min(420px, 74vw);
  height: auto;
  margin: 0 0 22px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.16));
}
:root[data-theme="dark"] .hero__logo {
  filter: invert(1) grayscale(1) brightness(1.5) drop-shadow(0 20px 40px rgba(0,0,0,.35));
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 14px;
  background: color-mix(in oklch, var(--bg-elev) 85%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; font-weight: 500;
  color: var(--ink-2);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.hero__eyebrow--phone { direction: ltr; color: var(--ink); }
.hero__eyebrow--center { display: inline-flex; }
.hero__pulse {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  margin: 28px 0 24px;
  font-size: clamp(58px, 11vw, 168px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.92;
  color: var(--ink);
  display: flex; flex-direction: column; gap: 4px;
}
.hero__title--left { font-size: clamp(48px, 7vw, 110px); }
.hero__title--giant { font-size: clamp(58px, 10vw, 150px); text-align: center; margin-inline: auto; max-width: 14ch; }
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn .9s cubic-bezier(.2,.7,.2,1) forwards;
}
.hero__word:nth-child(1) { animation-delay: .1s; }
.hero__word:nth-child(2) { animation-delay: .25s; }
.hero__word:nth-child(3) { animation-delay: .4s; }
.hero__word--accent { color: var(--accent); }
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero__sub {
  max-width: 56ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 36px;
}
.hero__sub--center { margin-inline: auto; text-align: center; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__ctas--center { justify-content: center; }
.hero__inner--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.hero__content {
  min-width: 0;
}
.hero-media {
  justify-self: end;
  width: min(100%, 460px);
}
.hero-media__frame {
  position: relative;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--bg-elev) 88%, transparent), color-mix(in oklch, var(--accent) 10%, var(--bg))),
    repeating-linear-gradient(0deg, color-mix(in oklch, var(--ink) 5%, transparent) 0 1px, transparent 1px 18px);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-media__frame::before,
.hero-media__frame::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: 16px;
  z-index: 3;
  pointer-events: none;
}
.hero-media__frame::after {
  inset: auto 22px 22px;
  height: 34%;
  border-top: 0;
  opacity: .55;
}
.hero-media__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  animation: heroMediaFade 8s infinite;
}
.hero-media__slide--two {
  animation-delay: 4s;
}
.hero-media__scan {
  position: absolute;
  inset-inline: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .8;
  z-index: 4;
  animation: heroMediaScan 3.2s ease-in-out infinite;
}
@keyframes heroMediaFade {
  0%, 43% { opacity: 1; transform: scale(1); }
  50%, 100% { opacity: 0; transform: scale(1.04); }
}
@keyframes heroMediaScan {
  0%, 100% { transform: translateY(22px); }
  50% { transform: translateY(calc(min(100vw, 460px) - 44px)); }
}

.productbanner {
  position: relative;
  z-index: 2;
  padding: 28px 0 12px;
}
.productbanner__wide {
  width: min(100vw - 32px, 1440px);
}
.productbanner__wide img {
  width: 100%;
  height: auto;
  border-radius: 25px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  object-fit: contain;
}
.productbanner__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
  align-items: center;
  min-height: 300px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 28%, color-mix(in oklch, var(--accent) 20%, transparent), transparent 34%),
    linear-gradient(135deg, var(--bg-elev), color-mix(in oklch, var(--bg-elev) 70%, var(--accent) 10%));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.productbanner__copy h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.12;
}
.productbanner__copy p {
  margin: 0 0 18px;
  max-width: 58ch;
  color: var(--ink-2);
  line-height: 1.8;
}
.productbanner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.productbanner__chips span {
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklch, white 8%, transparent);
  color: var(--ink-2);
  font-size: 12px;
}
.productbanner__visual {
  position: relative;
  min-height: 220px;
}
.pb-device {
  position: absolute;
  display: grid;
  place-items: center;
  width: 170px;
  height: 122px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in oklch, var(--bg) 72%, white 8%);
  color: var(--accent);
  box-shadow: 0 18px 45px -28px rgba(0,0,0,.55);
}
.pb-device .catart { width: 132px; }
.pb-device--camera { inset-inline-end: 15%; top: 0; }
.pb-device--storage { inset-inline-start: 6%; top: 60px; }
.pb-device--network { inset-inline-end: 2%; bottom: 0; }

/* Hero variations */
.hero--split .hero__split {
  width: min(1280px, 92vw); margin-inline: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px;
  align-items: center;
}
.hero--split .hero__right { min-width: 0; }
@media (max-width: 900px) {
  .hero--split .hero__split { grid-template-columns: 1fr; }
}
.hero--mono .hero__mono { width: min(1280px, 92vw); margin-inline: auto; text-align: center; }
.hero--mono .hero__eyebrow { margin-inline: auto; display: inline-flex; }

/* Hero corners + coords */
.hero__corner {
  position: absolute; width: 26px; height: 26px;
  border-color: var(--line-strong);
  border-style: solid; border-width: 0;
}
.hero__corner--tl { top: 86px; left: 24px; border-top-width: 1px; border-left-width: 1px; }
.hero__corner--tr { top: 86px; right: 24px; border-top-width: 1px; border-right-width: 1px; }
.hero__corner--bl { bottom: 24px; left: 24px; border-bottom-width: 1px; border-left-width: 1px; }
.hero__corner--br { bottom: 24px; right: 24px; border-bottom-width: 1px; border-right-width: 1px; }

.hero__coord {
  position: absolute;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.1em; color: var(--muted);
  display: flex; gap: 14px;
}
.hero__coord--tl { top: 90px; left: 60px; }
.hero__coord--br { bottom: 28px; right: 60px; }
[dir="rtl"] .hero__coord { direction: ltr; }

.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.hero__scroll__bar {
  width: 60px; height: 1px; background: var(--line);
  position: relative; overflow: hidden;
}
.hero__scroll__bar span {
  position: absolute; top: 0; left: 0; height: 100%;
  width: 30%; background: var(--accent);
  animation: scrollBar 2.4s linear infinite;
}
@keyframes scrollBar {
  0% { transform: translateX(-100%); } 100% { transform: translateX(360%); }
}

/* Hero panel (split variation) */
.hpanel {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--shadow);
}
.hpanel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 12px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); letter-spacing: 0.1em;
}
.hpanel__dots { display: flex; gap: 5px; }
.hpanel__dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.hpanel__dots i:nth-child(1) { background: #ef4444; }
.hpanel__dots i:nth-child(2) { background: #eab308; }
.hpanel__dots i:nth-child(3) { background: #22c55e; }
.hpanel__title { color: var(--ink); }
.hpanel__brand {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 18px 10px;
}
.hpanel__brand img {
  width: min(420px, 92%);
  max-height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.28));
}
.hpanel__grid {
  margin-top: 12px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
.hpanel__grid--apam { grid-template-columns: repeat(2, 1fr); }
.hpanel__cell {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg,
      color-mix(in oklch, var(--accent) 12%, transparent),
      transparent 60%),
    repeating-linear-gradient(0deg,
      color-mix(in oklch, var(--ink) 4%, transparent) 0 1px,
      transparent 1px 4px);
}
.hpanel__cell__id {
  position: absolute; top: 4px; left: 6px;
  font-family: var(--font-mono); font-size: 8px;
  color: var(--ink-2); letter-spacing: 0.1em;
}
.hpanel__cell__bar {
  position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--accent);
  opacity: 0.6;
  animation: scan 3.5s linear infinite;
}
@keyframes scan {
  0%, 100% { top: 0%; } 50% { top: 100%; }
}
.hpanel__cell__rec {
  position: absolute; top: 5px; right: 5px;
  width: 5px; height: 5px; border-radius: 999px;
  background: #ef4444;
  animation: pulse 1.8s infinite;
}

/* ─────────────────────────────────────────────────────────────────────────
   Marquee
*/
.marquee {
  position: relative; z-index: 2;
  border-block: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 18px 0;
  overflow: hidden;
}
.marquee__track {
  display: flex; gap: 36px;
  white-space: nowrap;
  animation: marq 36s linear infinite;
}
.marquee__item {
  display: inline-flex; align-items: center; gap: 36px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.marquee__sep { color: var(--accent); font-size: 10px; }
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────────────────────
   Section heads
*/
.sechead { max-width: 800px; margin: 0 auto 64px; }
.sechead--start { margin-inline: 0; }
.sechead__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 18px;
}
.sechead__dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
.sechead__title {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; letter-spacing: 0;
  line-height: 1.05; margin: 0;
  color: var(--ink);
}
.sechead__sub {
  margin: 18px 0 0; color: var(--muted);
  font-size: clamp(15px, 1.2vw, 18px);
  max-width: 56ch;
}

/* ─────────────────────────────────────────────────────────────────────────
   Buttons
*/
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn__arrow {
  display: inline-flex; align-items: center;
  transition: transform .2s;
}
[dir="rtl"] .btn__arrow svg { transform: scaleX(-1); }
.btn:hover .btn__arrow { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn__arrow { transform: translateX(-3px); }

.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: color-mix(in oklch, var(--accent) 88%, white);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--ink); }

/* ─────────────────────────────────────────────────────────────────────────
   Stats
*/
.stats { padding-block: clamp(60px, 8vw, 100px); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 32px 28px;
  position: relative;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 180px;
  border-inline-end: 1px solid var(--line);
  animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.stat:last-child { border-inline-end: 0; }
@media (max-width: 800px) {
  .stat:nth-child(2n) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.stat__num {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--font-mono);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat__suffix { color: var(--accent); }
.stat__label {
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em;
}
.stat__bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left;
  animation: barIn 1.2s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.08s + 0.3s);
}
[dir="rtl"] .stat__bar { transform-origin: right; }
@keyframes barIn { to { transform: scaleX(1); } }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────────────────────────────────
   Trust cards
*/
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
.trust__card {
  padding: 36px 32px 32px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.trust__card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.trust__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity .3s;
}
.trust__card:hover::before { opacity: 1; }
.trust__num {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.trust__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 25%, transparent);
  margin-bottom: 16px;
}
.trust__t {
  font-size: 22px; font-weight: 700;
  margin: 0 0 12px; line-height: 1.25;
  color: var(--ink);
}
.trust__d {
  margin: 0; color: var(--muted);
  font-size: 15px; line-height: 1.65;
}
.trust__bar {
  position: absolute; left: 32px; right: 32px; bottom: 18px;
  height: 1px; background: var(--line);
}

/* ─────────────────────────────────────────────────────────────────────────
   Category trio
*/
.trio {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .trio { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .trio { grid-template-columns: 1fr; } }
.trio__card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px 26px 26px;
  cursor: pointer;
  transition: transform .3s, border-color .3s, background .3s;
  display: flex; flex-direction: column;
  min-height: 340px;
}
.trio__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.trio__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.16em;
}
.trio__tag {
  padding: 4px 10px;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  color: var(--accent);
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  font-weight: 600;
}
.trio__art {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 25px;
  color: var(--ink-2);
  min-height: 160px;
  margin-bottom: 18px;
  overflow: hidden;
}
.trio__art img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
}
.catart { width: 70%; max-width: 240px; height: auto; }
.trio__t {
  font-size: 24px; font-weight: 700;
  margin: 0 0 8px; color: var(--ink);
}
.trio__d {
  margin: 0; color: var(--muted);
  font-size: 14px; line-height: 1.6;
}
.trio__foot {
  margin-top: 18px; display: flex; justify-content: flex-end;
}
.trio__arrow {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .2s, border-color .2s, color .2s;
}
.trio__card:hover .trio__arrow {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}
[dir="rtl"] .trio__arrow svg { transform: scaleX(-1); }
.trio__more {
  margin: 36px 0 0; text-align: center;
  color: var(--muted); font-size: 15px;
}

/* Real media from the proposal asset folder */
.section--media {
  background:
    linear-gradient(180deg, transparent 0%, color-mix(in oklch, var(--accent) 5%, transparent) 100%);
}
.mediawall {
  display: block;
}
.mediawall__event {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.mediawall__event { min-height: clamp(420px, 48vw, 620px); }
.mediawall__event img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mediawall__caption {
  position: absolute;
  inset-inline: 22px;
  bottom: 22px;
  max-width: 560px;
  padding: 20px 22px;
  border: 1px solid color-mix(in oklch, white 38%, transparent);
  border-radius: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(17, 24, 39, .82), rgba(17, 24, 39, .58));
  backdrop-filter: blur(12px);
}
.mediawall__caption span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}
.mediawall__caption h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.25;
}
.mediawall__caption p {
  margin: 0;
  color: color-mix(in oklch, currentColor 78%, transparent);
  line-height: 1.75;
}
.eventcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.eventcard {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-elev);
}
.eventcard span { color: var(--accent); font-weight: 800; font-size: 13px; }
.eventcard h3 { margin: 10px 0 6px; font-size: 18px; }
.eventcard p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }

/* Brand and client sections */
.brandgrid {
  display: grid;
  grid-template-columns: repeat(6, 150px);
  justify-content: center;
  gap: 16px;
}
.brandcard {
  width: 150px;
  min-height: 150px;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.04s);
  box-shadow: 0 18px 40px -30px rgba(0,0,0,.45);
}
.brandcard,
.brandcard p,
.brandcard__name { color: #222; }
.brandcard p { color: #555; }
.brandcard__img {
  width: 112px;
  height: 62px;
  object-fit: contain;
  object-position: center;
  filter: saturate(.95) contrast(1.05);
}
.brandcard__name {
  min-height: 54px;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .06em;
}
.brandcard p {
  margin: 0;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.75;
  text-align: center;
}
@media (max-width: 1100px) {
  .brandgrid { grid-template-columns: repeat(4, 150px); }
}
@media (max-width: 760px) {
  .brandgrid { grid-template-columns: repeat(2, 150px); }
}
.clientgrid {
  display: grid;
  grid-template-columns: repeat(6, 150px);
  justify-content: center;
  gap: 16px;
}
.clientcard {
  width: 150px;
  min-height: 150px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--accent) 7%, transparent), transparent),
    var(--bg-elev);
  box-shadow: 0 18px 38px -28px rgba(0,0,0,.28);
  animation: fadeUp .55s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.035s);
}
.clientcard__logo {
  flex: 1;
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.clientcard__logo img {
  max-width: 106px;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  filter: saturate(.95) contrast(1.04);
}
.clientcard h3 {
  margin: 0;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

/* ─────────────────────────────────────────────────────────────────────────
   Testimonials
*/
.licensegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.licensecard {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * .06s);
}
.licensecard__image {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.licensecard__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
  border-radius: 25px;
}
.licensecard__body {
  padding: 18px 20px 20px;
}
.licensecard__body h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
}
.licensecard__body p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 13px;
}
.licensecard__body span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width: 900px) {
  .licensegrid { grid-template-columns: 1fr; }
}

.tst {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px; align-items: center;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px 56px;
}
@media (max-width: 800px) {
  .tst { grid-template-columns: 1fr; padding: 36px 28px; }
}
.tst__quote { position: relative; }
.tst__mark {
  font-family: serif;
  font-size: 96px;
  color: var(--accent);
  opacity: 0.4;
  line-height: 0.8;
  position: absolute;
  top: -20px; left: -8px;
}
[dir="rtl"] .tst__mark { left: auto; right: -8px; transform: scaleX(-1); }
.tst__q {
  position: relative;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
  font-weight: 500;
  animation: fadeUp .6s cubic-bezier(.2,.7,.2,1);
}
.tst__who { display: flex; align-items: center; gap: 14px; }
.tst__avatar {
  width: 44px; height: 44px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.tst__name { font-weight: 600; color: var(--ink); }
.tst__role { font-size: 13px; color: var(--muted); margin-top: 2px; }

.tst__nav { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 800px) { .tst__nav { flex-direction: row; } }
.tst__dot {
  appearance: none; border: 0; background: transparent;
  width: 28px; height: 28px; cursor: pointer; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.tst__dot span {
  display: block; width: 8px; height: 8px; border-radius: 999px;
  background: var(--line-strong); transition: all .2s;
}
.tst__dot.is-on span {
  background: var(--accent);
  width: 24px; border-radius: 999px;
}

/* ─────────────────────────────────────────────────────────────────────────
   CTA strip
*/
.ctastrip {
  padding: 64px 0; position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-elev) 0%, var(--bg) 100%);
}
.ctastrip__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
}
@media (max-width: 800px) {
  .ctastrip__inner { flex-direction: column; align-items: flex-start; }
}
.ctastrip__kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--accent); margin-bottom: 10px;
}
.ctastrip__t {
  font-size: clamp(20px, 2.4vw, 32px);
  font-weight: 600; margin: 0;
  color: var(--ink); line-height: 1.3;
  max-width: 56ch;
}

/* ─────────────────────────────────────────────────────────────────────────
   Page header (interior pages)
*/
.phead {
  position: relative; z-index: 2;
  padding: 170px 0 64px;
}
.page--contact .phead .container { text-align: center; }
.page--contact .phead__kicker { margin-inline: auto; }
.page--contact .phead__sub { margin-inline: auto; }
.phead__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--muted);
  margin-bottom: 24px;
}
.phead__dot { width: 5px; height: 5px; border-radius: 999px; background: var(--accent); }
.phead__title {
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  color: var(--ink);
}
.phead__sub {
  margin: 24px 0 0; max-width: 64ch;
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--muted); line-height: 1.6;
}
.page--product-detail .phead {
  padding-bottom: 34px;
}
.page--product-detail .phead__title {
  max-width: 1050px;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.page--product-detail .phead__sub {
  font-size: 16px;
}
.wide-media {
  position: relative;
  z-index: 2;
  padding: 0 0 clamp(20px, 4vw, 34px);
}
.wide-media__frame {
  position: relative;
  min-height: clamp(180px, 25vw, 340px);
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  background:
    linear-gradient(135deg, color-mix(in oklch, var(--bg-elev) 86%, transparent), color-mix(in oklch, var(--bg) 68%, var(--accent) 12%)),
    repeating-linear-gradient(90deg, color-mix(in oklch, var(--ink) 4%, transparent) 0 1px, transparent 1px 24px);
  box-shadow: var(--shadow);
}
.wide-media__img {
  display: block;
  width: 100%;
  height: auto;
  min-height: clamp(180px, 25vw, 340px);
  object-fit: contain;
  border-radius: 25px;
  background: var(--bg-elev);
}
.wide-media__frame::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid color-mix(in oklch, var(--ink) 12%, transparent);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
}
.wide-media__layer {
  position: absolute;
  inset: 0;
  opacity: .9;
}
.wide-media__layer--one {
  background:
    radial-gradient(circle at 24% 44%, color-mix(in oklch, var(--accent) 24%, transparent), transparent 22%),
    linear-gradient(90deg, transparent 0 58%, color-mix(in oklch, var(--ink) 6%, transparent) 58% 100%);
}
.wide-media__layer--two {
  inset: auto 26px 24px auto;
  width: min(44%, 430px);
  height: 44%;
  border: 1px solid color-mix(in oklch, var(--ink) 14%, transparent);
  border-radius: 14px;
  background: color-mix(in oklch, var(--bg-elev) 82%, transparent);
}
.wide-media__line {
  position: absolute;
  inset-inline: 26px;
  bottom: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .65;
}
.wide-media--team .wide-media__frame {
  min-height: clamp(220px, 30vw, 420px);
}
.wide-media--team .wide-media__img {
  min-height: clamp(220px, 30vw, 420px);
}
.wide-media--team .wide-media__layer--one {
  background:
    radial-gradient(circle at 30% 46%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 18%),
    radial-gradient(circle at 46% 46%, color-mix(in oklch, var(--accent) 14%, transparent), transparent 15%),
    radial-gradient(circle at 62% 46%, color-mix(in oklch, var(--accent) 10%, transparent), transparent 14%),
    linear-gradient(135deg, color-mix(in oklch, var(--bg-elev) 88%, transparent), color-mix(in oklch, var(--bg) 78%, white 6%));
}

/* ─────────────────────────────────────────────────────────────────────────
   Products
*/
.filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.filter {
  appearance: none; border: 1px solid var(--line);
  background: var(--bg-elev); color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 500;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s;
}
.filter:hover { color: var(--ink); border-color: var(--line-strong); }
.filter.is-on {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
}
.filter__count {
  font-family: var(--font-mono);
  font-size: 10px;
  opacity: 0.65;
  padding: 1px 6px;
  background: color-mix(in oklch, currentColor 12%, transparent);
  border-radius: 4px;
}

.featuredgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.featuredcard {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
  animation: fadeUp .55s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * .05s);
}
.featuredcard--clickable { cursor: pointer; }
.featuredcard__icon,
.featuredcard__media {
  height: 96px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 25px;
  background: color-mix(in oklch, var(--accent) 8%, transparent);
  overflow: hidden;
}
.featuredcard__media { height: 138px; }
.featuredcard__icon .pcard__svg { width: 120px; height: 80px; }
.featuredcard span {
  color: var(--accent);
  font-weight: 800;
  font-size: 12px;
}
.featuredcard h3 {
  margin: 6px 0;
  font-size: 18px;
}
.featuredcard p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.pcard {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, border-color .25s;
  animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.03s);
  cursor: pointer;
}
.pcard:hover { transform: translateY(-3px); border-color: var(--accent); }
.pcard__art {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
}
.productimage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 25px;
  background:
    radial-gradient(circle at 50% 45%, color-mix(in oklch, white 82%, transparent), transparent 48%),
    #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.productimage__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}
.pcard__svg { width: 60%; max-width: 200px; }
.pcard__tag {
  position: absolute; top: 12px;
  inset-inline-start: 12px;
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 10%, var(--bg));
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  padding: 4px 10px; border-radius: 999px;
  z-index: 5;
}
.pcard__body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__brand {
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent);
  border-radius: 999px;
  padding: 3px 9px;
  font: 700 10px var(--font-mono);
  letter-spacing: .08em;
}
.pcard__t {
  font-size: 16px; font-weight: 600; margin: 0;
  color: var(--ink);
}
.pcard__sub { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.pcard__foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.pcard__sku { display: inline-flex; flex-direction: column; gap: 2px; }
.pcard__sku__lbl { font-size: 10px; color: var(--muted); }
.pcard__sku__v { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.pcard__cta {
  appearance: none; border: 0; background: transparent;
  color: var(--accent); font: inherit; font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 6px 0;
}
.pcard__cta svg { transition: transform .2s; }
.pcard__cta:hover svg { transform: translateX(2px); }
[dir="rtl"] .pcard__cta svg { transform: scaleX(-1); }
[dir="rtl"] .pcard__cta:hover svg { transform: scaleX(-1) translateX(2px); }

/* ─────────────────────────────────────────────────────────────────────────
   Categories page
*/
.catgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.catbox {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  transition: transform .25s, border-color .25s;
  animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.06s);
}
.catbox--button {
  appearance: none;
  font: inherit;
  text-align: inherit;
  cursor: pointer;
}
.catgrid--merged { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .catgrid--merged { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .catgrid--merged { grid-template-columns: 1fr; } }
.catbox:hover { transform: translateY(-3px); border-color: var(--accent); }
.catbox__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.catbox__media {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  background: var(--bg-elev);
  margin-bottom: 20px;
}
.catbox__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.catbox__num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--muted);
}
.catbox__tag {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--accent) 28%, transparent);
}
.catbox__t {
  font-size: 22px; font-weight: 700;
  margin: 0 0 6px; color: var(--ink);
}
.catbox__sub {
  margin: 0 0 18px; color: var(--muted); font-size: 14px;
}
.catbox__list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.catbox__list li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.catbox__bullet {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--accent); flex: 0 0 5px;
}

/* Product detail */
.productdetail__grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.productdetail__media {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
}
.productdetail__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.productdetail__info h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
}
.productdetail__info p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.85;
  font-size: 16px;
}
.backlink {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  padding: 8px 14px;
  cursor: pointer;
}
.backlink:hover { color: var(--ink); border-color: var(--accent); }
.productdetail__model {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}
.productdetail__model span,
.productdetail__source {
  color: var(--muted);
  font-size: 12px;
}
.productdetail__model strong {
  color: var(--ink);
  font-family: var(--font-mono);
}
.specgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.specrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
}
.specrow span {
  color: var(--muted);
  font-size: 13px;
}
.specrow strong {
  color: var(--ink);
  font-size: 14px;
  text-align: end;
}
@media (max-width: 900px) {
  .productdetail__grid { grid-template-columns: 1fr; }
  .specgrid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────────────────
   About
*/
.about__story {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .about__story { grid-template-columns: 1fr; gap: 36px; } }
.about__copy p {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--ink-2);
  line-height: 1.8;
  margin: 0 0 22px;
}
.about__meta {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  position: sticky; top: 100px;
}
.about__brandmark {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}
.about__brandmark img {
  width: min(100%, 220px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border-radius: 10px;
}
:root[data-theme="dark"] .about__brandmark img {
  filter: brightness(1.05);
}
.about__meta__row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.about__meta__row:last-child { border-bottom: 0; }
.about__meta__k {
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}
.about__meta__v { color: var(--ink); font-weight: 500; }

.section--compact { padding-block: clamp(46px, 7vw, 86px); }
.about-extra {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 22px;
}
.about-extra__box {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.checklist {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding-inline-start: 28px;
  color: var(--ink-2);
  line-height: 1.75;
}
.checklist li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in oklch, var(--accent) 12%, transparent);
}
.deptgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.deptgrid span {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink-2);
  background: color-mix(in oklch, var(--ink) 4%, transparent);
}
@media (max-width: 900px) {
  .about-extra { grid-template-columns: 1fr; }
}

/* Timeline */
.timeline {
  position: relative;
  padding-inline-start: 40px;
}
.timeline__rail {
  position: absolute; top: 0; bottom: 0;
  inset-inline-start: 12px;
  width: 1px; background: var(--line);
}
.tlitem {
  position: relative;
  padding: 16px 0 26px;
  animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: calc(var(--i, 0) * 0.08s);
}
.tlitem__dot {
  position: absolute;
  inset-inline-start: -34px;
  top: 22px;
  width: 11px; height: 11px; border-radius: 999px;
  background: var(--bg); border: 2px solid var(--accent);
}
.tlitem__y {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.tlitem__t {
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 4px;
}
.tlitem__d { color: var(--muted); font-size: 14px; }

/* ─────────────────────────────────────────────────────────────────────────
   Contact
*/
.contact {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 28px 28px;
}
.iro { padding: 16px 0; border-bottom: 1px dashed var(--line); }
.iro:first-child { padding-top: 0; }
.iro:last-of-type { border-bottom: 0; }
.iro__k {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; color: var(--muted);
  margin-bottom: 6px;
}
.iro__v { color: var(--ink); font-size: 15px; line-height: 1.6; }
.iro__v--mono { font-family: var(--font-mono); font-size: 14px; }

.contact__map {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 4 / 3;
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact__form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.contact__form__t {
  margin: 0 0 6px; font-size: 22px; font-weight: 700;
  color: var(--ink);
}
.contact__form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .contact__form__row { grid-template-columns: 1fr; } }
.cf-input {
  appearance: none; width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  font: inherit; font-size: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}
.cf-input:focus { outline: 0; border-color: var(--accent); background: color-mix(in oklch, var(--accent) 4%, var(--bg)); }
.cf-input::placeholder { color: var(--muted-2); }
.cf-textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.cf-submit { align-self: flex-start; margin-top: 6px; }
.cf-sent {
  font-size: 13px; padding: 12px 14px;
  border-radius: 10px;
  background: color-mix(in oklch, #10B981 14%, var(--bg-elev));
  border: 1px solid color-mix(in oklch, #10B981 40%, transparent);
  color: var(--ink);
}

/* ─────────────────────────────────────────────────────────────────────────
   Footer
*/
.ft {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 64px 0 24px;
}
.ft__top {
  width: min(1280px, 92vw); margin-inline: auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 800px) {
  .ft__top { grid-template-columns: 1fr; gap: 32px; }
}
.ft__brand { max-width: 420px; }
.ft__brand .brand__mark {
  height: 42px;
  max-width: 158px;
}
.ft__blurb { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 16px; }
.ft__col { display: flex; flex-direction: column; gap: 8px; }
.ft__h {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 6px;
}
.ft__link {
  color: var(--ink-2); text-decoration: none; font-size: 14px;
  padding: 4px 0;
  transition: color .2s;
}
.ft__link:hover { color: var(--accent); }
.ft__line { font-size: 14px; color: var(--ink-2); padding: 3px 0; }
.ft__line--mono { font-family: var(--font-mono); font-size: 13px; }
.ft__line--muted { color: var(--muted); font-size: 13px; padding-top: 8px; }
.ft__bot {
  width: min(1280px, 92vw); margin-inline: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12px; color: var(--muted);
}
.ft__built { font-family: var(--font-mono); letter-spacing: 0.06em; }
.ft__built::before { content: "◆ "; color: var(--accent); }

/* ─────────────────────────────────────────────────────────────────────────
   Responsive pass — tighten on smaller viewports
*/
@media (max-width: 1024px) {
  .phead { padding: 160px 0 60px; }
}

@media (max-width: 760px) {
  .container { width: min(1280px, 94vw); }
  .section { padding-block: clamp(60px, 14vw, 100px); }

  /* Hero */
  .hero { padding: 108px 0 58px; min-height: 100svh; overflow: hidden; }
  .hero__inner {
    width: 100%;
    max-width: 100%;
    padding-inline: 22px;
    text-align: center;
  }
  .hero__inner--with-media {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-media {
    width: min(100%, 340px);
    justify-self: center;
  }
  .hero-media__frame {
    border-radius: 18px;
  }
  .hero__logo {
    width: min(300px, 76vw);
    margin-inline: auto;
    margin-bottom: 18px;
  }
  .hero__title {
    font-size: clamp(38px, 11.5vw, 56px);
    gap: 2px;
    align-items: center;
    line-height: 1.08;
  }
  .hero__word {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .hero__eyebrow {
    display: flex;
    width: min(100%, 320px);
    max-width: calc(100vw - 56px);
    margin-inline: auto;
    padding-inline: 10px;
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    line-height: 1.8;
  }
  .hero__eyebrow span:last-child { overflow-wrap: anywhere; }
  .hero__sub {
    font-size: 15px;
    max-width: 34ch;
    margin-inline: auto;
  }
  .hero__ctas {
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero__ctas .btn { min-width: 0; }
  .hero__corner { display: none; }
  .hero__coord { display: none; }
  .hero__scroll { display: none; }
  .hero--split .hero__split { gap: 36px; }

  /* Hero panel cells on mobile */
  .hpanel__grid { grid-template-columns: repeat(2, 1fr); }

  /* Page header */
  .phead { padding: 140px 0 48px; }
  .phead__title {
    font-size: clamp(30px, 9.2vw, 44px);
    line-height: 1.16;
    overflow-wrap: anywhere;
  }
  .phead__sub { font-size: 15px; }
  .page--product-detail .phead {
    padding: 126px 0 34px;
  }
  .page--product-detail .phead__title {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.22;
  }
  .wide-media {
    padding-bottom: 10px;
  }
  .wide-media__frame {
    min-height: 190px;
    border-radius: 14px;
  }
  .wide-media__frame::before {
    inset: 14px;
  }
  .wide-media__layer--two {
    inset: auto 16px 16px auto;
    width: 52%;
    height: 38%;
  }
  .wide-media--team .wide-media__frame {
    min-height: 220px;
  }

  /* Section heads */
  .sechead { margin-bottom: 40px; }
  .sechead__title { font-size: clamp(28px, 8vw, 44px); }
  .sechead__sub { font-size: 14px; }

  /* Stats */
  .stat { padding: 24px 20px; min-height: 140px; }
  .stat__num { font-size: clamp(28px, 8vw, 40px); }

  /* Trust cards */
  .trust__card { padding: 28px 24px 24px; }
  .trust__t { font-size: 19px; }

  /* Trio */
  .trio__card { min-height: 320px; padding: 18px 20px 22px; }
  .trio__t { font-size: 20px; }
  .trio__art { min-height: 130px; }

  /* Media */
  .mediawall {
    display: block;
  }
  .mediawall__event {
    min-height: 440px;
  }
  .mediawall__caption {
    inset-inline: 14px;
    bottom: 14px;
    padding: 16px;
  }
  .mediawall__caption h3 {
    font-size: 20px;
  }
  .mediawall__caption p {
    font-size: 13px;
  }

  /* Testimonial */
  .tst { padding: 32px 24px; }
  .tst__q { font-size: 18px; }

  /* CTA strip */
  .ctastrip { padding: 48px 0; }
  .ctastrip__t { font-size: 18px; }

  /* Products */
  .pgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pcard__body { padding: 14px 16px; }
  .pcard__t { font-size: 14px; }
  .pcard__sub { font-size: 11px; }
  .filters { gap: 6px; margin-bottom: 28px; padding-bottom: 16px; }
  .filter { padding: 7px 12px; font-size: 12px; }
  .filter__count { display: none; }

  /* Categories */
  .catbox { padding: 22px 20px; }
  .catbox__t { font-size: 19px; }
  .catbox__list { grid-template-columns: 1fr; }

  /* About */
  .about__story { gap: 28px; }
  .about__copy p { font-size: 15px; line-height: 1.75; }
  .about__meta { position: static; padding: 18px 20px; }

  /* Timeline */
  .timeline { padding-inline-start: 32px; }
  .tlitem__dot { inset-inline-start: -28px; }
  .tlitem__t { font-size: 18px; }

  /* Contact */
  .contact { gap: 28px; }
  .contact__info { padding: 20px 22px 24px; }
  .contact__form { padding: 22px 22px 24px; }
  .iro__v { font-size: 14px; }

  /* Buttons */
  .btn { height: 44px; padding: 0 18px; font-size: 13px; }

  /* Marquee */
  .marquee { padding: 14px 0; }
  .marquee__item { font-size: 11px; gap: 24px; }

  /* Footer */
  .ft { padding: 48px 0 20px; }
  .ft__top { padding-bottom: 36px; gap: 28px; }
  .ft__bot { flex-direction: column; gap: 8px; text-align: center; align-items: center; }
}

@media (max-width: 440px) {
  .hero__eyebrow {
    width: min(100%, 286px);
    max-width: calc(100vw - 52px);
    font-size: 11px;
    padding: 6px 10px;
  }
  .hero__title { font-size: clamp(34px, 11vw, 48px); }
  .hero__sub { font-size: 14px; }
  .hero__logo { width: min(270px, 72vw); }
  .hero__ctas {
    width: 100%;
    flex-direction: column;
    align-items: center;
  }
  .hero__ctas .btn {
    width: min(260px, 100%);
    justify-content: center;
  }
  .mediawall__event { min-height: 360px; }
  .mediawall__caption {
    position: relative;
    inset: auto;
    max-width: none;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }
  .mediawall__event img {
    height: 280px;
  }
  .clientgrid { grid-template-columns: repeat(2, 150px); }
  .stats__grid { grid-template-columns: 1fr; }
  .stat:nth-child(2n) { border-inline-end: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .pgrid { grid-template-columns: 1fr; }
  .ctastrip__inner { gap: 20px; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Misc utility
*/
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    transition-duration: 0.001s !important;
  }
}

/* Hard guard for client logo cards. Kept at the end so cached/older generic
   image rules cannot let varied client logo dimensions break the grid. */
.page--home .clientgrid {
  display: grid;
  grid-template-columns: repeat(6, 150px);
  justify-content: center;
  align-items: start;
  gap: 16px;
}
.page--home .clientcard {
  width: 150px;
  height: 150px;
  min-height: 150px;
  max-width: 150px;
  max-height: 150px;
  overflow: hidden;
  background: #fff;
  border-color: rgba(15, 23, 42, .12);
  box-shadow: 0 18px 40px -30px rgba(0,0,0,.45);
}
.page--home .clientcard__logo {
  width: 100%;
  min-height: 78px;
  max-height: 78px;
}
.page--home .clientcard__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 106px !important;
  max-height: 76px !important;
  object-fit: contain !important;
  filter: saturate(1.04) contrast(1.02) !important;
}
.page--home .clientcard h3 {
  color: #1f2937;
  text-shadow: none;
}
@media (max-width: 1100px) {
  .page--home .clientgrid { grid-template-columns: repeat(4, 150px); }
}
@media (max-width: 760px) {
  .page--home .clientgrid { grid-template-columns: repeat(2, 150px); }
}

/* Final APAM refinements */
.brandgrid { grid-template-columns: repeat(6, 150px); justify-content: center; }
.brandcard { width: 150px; height: 150px; min-height: 150px; align-items: center; text-align: center; justify-content: center; }
.brandcard__img { width: 112px; height: 62px; max-width: 112px; }
.brandcard__name { min-height: 46px; justify-content: center; font-size: 18px; color: #1f2937; letter-spacing: 0; }
.brandcard p { font-size: 12px; color: #4b5563; }
.featuredgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page--contact .phead { text-align: center; }
.page--contact .phead__kicker { margin-inline: auto; }
.page--contact .phead__sub { margin-inline: auto; }

/* Admin panel and campaign popup */
.app--admin {
  min-height: 100vh;
}
.admin-page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  color: var(--ink);
}
.admin-page--login {
  display: grid;
  place-items: center;
  padding: 24px;
}
.admin-login {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg-elev) 92%, transparent);
  box-shadow: var(--shadow-lg);
}
.admin-login__brand,
.admin-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-login__brand img {
  width: 150px;
  height: auto;
}
.admin-login__brand span,
.admin-head span,
.admin-note {
  color: var(--muted);
  font-size: 13px;
}
.admin-login h1,
.admin-head h1 {
  margin: 18px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0;
}
.admin-login p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.8;
}
.admin-form,
.admin-card__body {
  display: grid;
  gap: 14px;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  border-inline-end: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.admin-sidebar__brand {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.admin-sidebar__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}
.admin-sidebar__brand strong,
.admin-sidebar__brand span {
  display: block;
}
.admin-sidebar__brand span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.admin-tabs {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}
.admin-tabs button,
.admin-mini,
.admin-add,
.admin-product-item {
  appearance: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: color-mix(in oklch, var(--bg-elev) 78%, transparent);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
}
.admin-tabs button {
  padding: 12px 14px;
  text-align: start;
}
.admin-tabs button:hover,
.admin-tabs button.is-on,
.admin-product-item.is-on {
  border-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 14%, var(--bg-elev));
}
.admin-sidebar__actions {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.admin-mini,
.admin-add,
.admin-danger {
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
}
.admin-mini:disabled,
.admin-danger:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.admin-mini {
  background: var(--accent);
  color: #111;
  border-color: color-mix(in oklch, var(--accent) 80%, #fff);
}
.admin-mini--ghost {
  color: var(--ink);
  background: transparent;
}
.admin-workspace {
  padding: 28px;
  min-width: 0;
}
.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-grid--single {
  grid-template-columns: minmax(0, 880px);
}
.admin-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg-elev) 90%, transparent);
  box-shadow: 0 20px 60px -50px rgba(0,0,0,.75);
}
.admin-card h2 {
  margin: 0 0 18px;
  font-size: 20px;
}
.admin-field {
  display: grid;
  gap: 7px;
}
.admin-field span,
.admin-check span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
  line-height: 1.6;
}
.admin-field textarea {
  resize: vertical;
}
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 18%, transparent);
}
.admin-row2,
.admin-row3 {
  display: grid;
  gap: 12px;
}
.admin-row2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-row3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-check--wide {
  justify-content: flex-start;
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}
.admin-products {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.admin-list {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 8px;
}
.admin-add {
  color: #111;
  background: var(--accent);
  border-color: transparent;
}
.admin-product-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: start;
}
.admin-product-item strong {
  font-size: 13px;
  line-height: 1.6;
}
.admin-product-item span {
  color: var(--muted);
  font-size: 11px;
}
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-actions--between {
  justify-content: space-between;
  align-items: center;
}
.admin-danger {
  appearance: none;
  border: 1px solid rgba(220,38,38,.35);
  border-radius: 8px;
  background: rgba(220,38,38,.12);
  color: #fca5a5;
  cursor: pointer;
  font: inherit;
}
.admin-danger--small {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}
.admin-alert {
  padding: 10px 12px;
  border: 1px solid color-mix(in oklch, var(--accent) 42%, transparent);
  border-radius: 8px;
  background: color-mix(in oklch, var(--accent) 14%, var(--bg));
  color: var(--ink);
  font-size: 13px;
}
.admin-alert--danger {
  border-color: rgba(220,38,38,.35);
  background: rgba(220,38,38,.12);
  color: #fecaca;
}
.admin-empty {
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.admin-leads {
  display: grid;
  gap: 12px;
}
.admin-lead {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg) 82%, transparent);
}
.admin-lead__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.admin-lead__head strong,
.admin-lead__head span {
  display: block;
}
.admin-lead__head strong {
  font-size: 16px;
}
.admin-lead__head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.admin-lead__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.admin-pill {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.admin-pill strong {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.admin-lead__message {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg-elev) 70%, transparent);
  color: var(--ink-2);
  line-height: 1.8;
  white-space: pre-wrap;
}
.promo-preview {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bg) 80%, transparent);
}
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.promo-overlay__shade {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, .72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.promo-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--accent) 36%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 15%, color-mix(in oklch, var(--accent) 18%, transparent), transparent 28%),
    color-mix(in oklch, var(--bg-elev) 96%, #000);
  box-shadow: 0 34px 90px -42px rgba(0,0,0,.9);
}
.promo-card--preview {
  width: 100%;
  transform: none;
}
.promo-card__close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(0,0,0,.28);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.promo-card__media {
  min-height: 330px;
  background: #111827;
}
.promo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: .92;
}
.promo-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 5vw, 54px);
}
.promo-card__eyebrow {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid color-mix(in oklch, var(--accent) 45%, transparent);
  border-radius: 999px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.promo-card h2 {
  margin: 0;
  font-size: clamp(26px, 4.5vw, 46px);
  line-height: 1.25;
}
.promo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
@media (max-width: 1024px) {
  .admin-page,
  .admin-products,
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .admin-sidebar,
  .admin-list {
    position: static;
    height: auto;
  }
  .admin-sidebar {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 680px) {
  .admin-workspace,
  .admin-sidebar {
    padding: 16px;
  }
  .admin-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-row2,
  .admin-row3,
  .admin-lead__grid {
    grid-template-columns: 1fr;
  }
  .promo-card {
    grid-template-columns: 1fr;
  }
  .promo-card__media {
    min-height: 190px;
  }
}
@media (max-width: 1100px) {
  .featuredgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .productbanner__inner { grid-template-columns: 1fr; }
  .eventcards { grid-template-columns: 1fr; }
  .brandgrid { grid-template-columns: repeat(4, 150px); }
}
@media (max-width: 760px) {
  .section { padding-block: 52px; }
  .productbanner__visual { min-height: 190px; }
  .pb-device { width: 140px; height: 104px; }
  .featuredgrid { grid-template-columns: 1fr; }
  .brandgrid { grid-template-columns: repeat(2, 150px); }
}
