/* ============================================================
   ASIA CORE GROUP — ENTERPRISE DESIGN SYSTEM OVERRIDES
   File: assets/css/acg-theme.css
   Loaded after style.css. Extends and overrides existing tokens
   and components with a modern, RTL-aware, dark-mode-ready design.
   ============================================================ */

/* -----------------------------------------------------------
   1. DYNAMIC COLOR SYSTEM TOKENS
   ----------------------------------------------------------- */

:root {
  /* Brand palette aliases — use these for brand-driven surfaces */
  --acg-brand-dominant: var(--brand-900);
  --acg-brand-secondary: var(--brand-700);
  --acg-brand-accent: var(--accent-500);

  /* Product palette aliases — resolved per product via .product-chromatic-scope */
  --acg-product-dominant: var(--product-dominant, var(--accent-600));
  --acg-product-secondary: var(--product-secondary, var(--accent-400));
  --acg-product-accent: var(--product-accent, var(--accent-300));
  --acg-product-gradient: linear-gradient(135deg, var(--acg-product-dominant) 0%, var(--acg-product-secondary) 55%, var(--acg-product-accent) 100%);

  /* Surface semantics */
  --acg-bg-page: var(--surface-100);
  --acg-bg-elevated: var(--surface-200);
  --acg-bg-strong: var(--surface-900);
  --acg-bg-mute: var(--neutral-100);

  /* Corner radii */
  --acg-radius-sm: 4px;
  --acg-radius-md: 8px;
  --acg-radius-lg: 16px;
  --acg-radius-xl: 24px;

  /* Header glassmorphism */
  --acg-header-initial: transparent;
  --acg-header-scrolled: rgba(248, 246, 242, 0.88);
  --acg-header-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 30px rgba(0, 0, 0, 0.06);

  /* Hero typography clamp — smaller, editorial title */
  --acg-hero-title: clamp(2.25rem, 1.65rem + 2vw, 3.5rem);
  --acg-page-title: clamp(2.5rem, 1.8rem + 2.5vw, 4rem);

  /* Motion */
  --acg-lift: -4px;
  --acg-ease-elastic: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Per-product chromatic scope re-maps the dynamic product tokens. */
.product-chromatic-scope {
  --acg-product-dominant: var(--product-dominant, var(--accent-600));
  --acg-product-secondary: var(--product-secondary, var(--accent-400));
  --acg-product-accent: var(--product-accent, var(--accent-300));
  --acg-product-gradient: linear-gradient(135deg, var(--acg-product-dominant) 0%, var(--acg-product-secondary) 55%, var(--acg-product-accent) 100%);
}

/* -----------------------------------------------------------
   2. LIGHT / DARK / SYSTEM MODE
   ----------------------------------------------------------- */

/* Explicit light mode — restore light surfaces even on dark OS. */
html.is-light {
  --surface-100: #f8f6f2;
  --surface-200: #edeae4;
  --surface-800: #1c1f25;
  --surface-900: #12151a;

  --text-primary: var(--neutral-900);
  --text-secondary: var(--neutral-600);
  --text-inverted: var(--neutral-50);

  --link: var(--accent-600);
  --link-hover: var(--accent-500);
  --focus: var(--accent-400);

  --acg-header-scrolled: rgba(248, 246, 242, 0.92);
  --acg-bg-page: var(--surface-100);
  --acg-bg-elevated: var(--surface-200);
  --acg-bg-strong: var(--surface-900);
  --acg-bg-mute: var(--neutral-100);

  color-scheme: light;
}

/* Dark mode — does NOT invert surfaces. Strong surfaces stay dark;
   page/elevated surfaces go dark; inverted text stays light. */
html.is-dark {
  --surface-100: #12151a;
  --surface-200: #1c1f25;
  --surface-800: #1e232b;
  --surface-900: #0b0d10;

  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-inverted: #fafafa;

  --link: #f59e0b;
  --link-hover: #fbbf24;
  --focus: #fbbf24;

  --acg-header-scrolled: rgba(11, 13, 16, 0.92);
  --acg-bg-page: var(--surface-100);
  --acg-bg-elevated: var(--surface-200);
  --acg-bg-strong: var(--surface-900);
  --acg-bg-mute: #1a1d22;

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  /* Override the earlier style.css :root inversion. */
  html {
    --surface-100: #12151a;
    --surface-200: #1c1f25;
    --surface-800: #1e232b;
    --surface-900: #0b0d10;

    --text-primary: #f5f5f5;
    --text-secondary: #a3a3a3;
    --text-inverted: #fafafa;

    --link: #f59e0b;
    --link-hover: #fbbf24;
    --focus: #fbbf24;

    --acg-header-scrolled: rgba(11, 13, 16, 0.92);
    --acg-bg-page: var(--surface-100);
    --acg-bg-elevated: var(--surface-200);
    --acg-bg-strong: var(--surface-900);
    --acg-bg-mute: #1a1d22;
  }
}

/* -----------------------------------------------------------
   3. BASE RESET / OVERRIDES
   ----------------------------------------------------------- */

html {
  scroll-padding-top: calc(var(--header-height) + var(--space-5));
}

body {
  background-color: var(--acg-bg-page);
  color: var(--text-primary);
}

::selection {
  background-color: var(--accent-500);
  color: var(--text-inverted);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
  font-weight: 600;
  text-wrap: balance;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  letter-spacing: 0;
  line-height: var(--leading-snug);
}

a {
  color: var(--link);
}

a:hover {
  color: var(--link-hover);
}

/* Accessible skip-to-content pattern if ever added. */
.skip-link {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-5);
  background: var(--accent-600);
  color: var(--text-inverted);
  border-radius: var(--acg-radius-sm);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  inset-block-start: var(--space-4);
}

/* -----------------------------------------------------------
   4. BUTTONS
   ----------------------------------------------------------- */

.acg-button {
  position: relative;
  border-radius: var(--acg-radius-sm);
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    color var(--duration-fast) ease;
}

.acg-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent 50%);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
  pointer-events: none;
}

.acg-button:hover::before {
  opacity: 1;
}

.acg-button--primary {
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  border-color: transparent;
  color: var(--text-inverted);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.25);
}

.acg-button--primary:hover {
  background: linear-gradient(135deg, var(--accent-500), var(--accent-400));
  color: var(--text-inverted);
  transform: translateY(var(--acg-lift));
  box-shadow: 0 10px 28px rgba(180, 83, 9, 0.35);
}

.acg-button--secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--neutral-300);
}

html.is-dark .acg-button--secondary {
  border-color: var(--neutral-700);
}

.acg-button--secondary:hover {
  border-color: var(--accent-500);
  color: var(--accent-600);
  transform: translateY(var(--acg-lift));
}

html.is-dark .acg-button--secondary:hover {
  color: var(--accent-400);
}

.acg-button--text {
  background: transparent;
  color: var(--link);
  padding-inline: 0;
  border-radius: 0;
  overflow: visible;
}

.acg-button--text::before {
  display: none;
}

.acg-button--text::after {
  transition: transform var(--duration-fast) var(--ease-out);
}

[dir="rtl"] .acg-button--text::after {
  content: "←";
}

.acg-button--text:hover {
  color: var(--link-hover);
}

.acg-button--text:hover::after {
  transform: translateX(4px);
}

[dir="rtl"] .acg-button--text:hover::after {
  transform: translateX(-4px);
}

.acg-button--product {
  background: linear-gradient(135deg, var(--acg-product-dominant), var(--acg-product-secondary));
  color: var(--product-btn-text, var(--text-inverted));
  border-color: transparent;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--acg-product-dominant) 30%, transparent);
}

.acg-button--product:hover {
  filter: brightness(1.08);
  transform: translateY(var(--acg-lift));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--acg-product-dominant) 38%, transparent);
}

/* -----------------------------------------------------------
   5. SITE HEADER — glassmorphic, sticky, RTL aware
   ----------------------------------------------------------- */

.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background-color: var(--acg-header-initial);
  color: var(--text-inverted);
  transition:
    background-color var(--duration-normal) ease,
    box-shadow var(--duration-normal) ease,
    color var(--duration-normal) ease,
    backdrop-filter var(--duration-normal) ease;
}

.site-header.is-scrolled {
  background-color: var(--acg-header-scrolled);
  backdrop-filter: blur(18px) saturate(1.65);
  -webkit-backdrop-filter: blur(18px) saturate(1.65);
  box-shadow: var(--acg-header-shadow);
  color: var(--text-primary);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.site-branding {
  flex-shrink: 0;
}

.site-title {
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
}

.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-title a:hover {
  color: inherit;
}

/* Primary navigation underline animation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
}

.main-navigation a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 600;
  color: inherit;
  text-decoration: none;
  padding-block: var(--space-2);
}

.main-navigation a::after {
  content: "";
  position: absolute;
  inset-block-end: -4px;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-400));
  border-radius: 2px;
  transition: width 280ms var(--ease-out);
}

[dir="rtl"] .main-navigation a::after {
  background: linear-gradient(90deg, var(--accent-400), var(--accent-500));
}

.main-navigation a:hover::after,
.main-navigation a[aria-current="page"]::after,
.main-navigation .current-menu-item > a::after,
.main-navigation .current_page_item > a::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

/* Language switcher */
.acg-lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acg-lang-switcher a {
  color: inherit;
  opacity: 0.65;
  text-decoration: none;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--acg-radius-sm);
  transition: opacity var(--duration-fast) ease, color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.acg-lang-switcher a:hover,
.acg-lang-switcher a.is-current {
  opacity: 1;
  color: var(--accent-500);
  background-color: rgba(217, 119, 6, 0.1);
}

html.is-dark .acg-lang-switcher a:hover,
html.is-dark .acg-lang-switcher a.is-current {
  color: var(--accent-400);
  background-color: rgba(245, 158, 11, 0.12);
}

.acg-lang-switcher__divider {
  opacity: 0.4;
  user-select: none;
}

/* Dark-mode toggle */
.acg-dark-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background-color: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) ease,
    color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}

.acg-dark-toggle:hover {
  background-color: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--text-inverted);
  transform: scale(1.08);
}

.acg-dark-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: background-color var(--duration-fast) ease;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform 220ms var(--ease-out);
}

.mobile-menu-toggle span::before { inset-block-start: -7px; }
.mobile-menu-toggle span::after { inset-block-start: 7px; }

.mobile-menu-toggle[aria-expanded="true"] span {
  background-color: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] span::before {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span::after {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Mobile navigation drawer + overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background-color: rgba(10, 10, 10, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.mobile-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.mobile-navigation {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(100%, 420px);
  z-index: 1001;
  background-color: var(--surface-900);
  color: var(--text-inverted);
  padding-block-start: calc(var(--header-height-mobile) + var(--space-8));
  padding-inline: var(--page-gutter);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  opacity: 0;
  visibility: hidden;
  transform: translateX(100%);
  transition:
    opacity var(--duration-normal) ease,
    visibility var(--duration-normal) ease,
    transform var(--duration-normal) var(--ease-out);
}

[dir="rtl"] .mobile-navigation {
  inset-inline-end: auto;
  inset-inline-start: 0;
  transform: translateX(-100%);
}

.mobile-navigation.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.mobile-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-navigation a {
  color: var(--text-inverted);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  text-decoration: none;
  transition: color var(--duration-fast) ease, transform var(--duration-fast) var(--ease-out);
}

.mobile-navigation a:hover {
  color: var(--accent-300);
  transform: translateX(4px);
}

[dir="rtl"] .mobile-navigation a:hover {
  transform: translateX(-4px);
}

.mobile-navigation .acg-button {
  align-self: flex-start;
}

.mobile-navigation__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block-start: var(--space-4);
  border-block-start: 1px solid rgba(255, 255, 255, 0.12);
}

.acg-dark-toggle--mobile {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--acg-radius-md);
  padding: var(--space-2) var(--space-3);
  color: var(--text-inverted);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.acg-dark-toggle--mobile[aria-pressed="true"] {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
}

.acg-lang-switcher--mobile a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.acg-lang-switcher--mobile a.is-current {
  color: var(--text-inverted);
}

.mobile-navigation__close {
  position: absolute;
  inset-block-start: calc((var(--header-height-mobile) - 44px) / 2);
  inset-inline-end: var(--page-gutter);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text-inverted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.mobile-navigation__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

@media (min-width: 1024px) {
  .mobile-navigation,
  .mobile-overlay {
    display: none;
  }
}

/* -----------------------------------------------------------
   6. HERO
   ----------------------------------------------------------- */

.acg-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-color: var(--surface-900);
  color: var(--text-inverted);
  overflow: hidden;
  padding-block-start: var(--header-height);
}

.acg-hero__ambient {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, color-mix(in srgb, var(--accent-600) 28%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 70% 70% at 90% 80%, color-mix(in srgb, var(--brand-700) 32%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 70% 20%, color-mix(in srgb, var(--accent-500) 18%, transparent) 0%, transparent 50%),
    conic-gradient(from 180deg at 50% 50%, var(--surface-900) 0deg, color-mix(in srgb, var(--brand-800) 55%, var(--surface-900)) 90deg, var(--surface-900) 180deg, color-mix(in srgb, var(--brand-900) 70%, var(--surface-900)) 270deg, var(--surface-900) 360deg);
  animation: acg-hero-ambient 20s ease-in-out infinite alternate;
}

@keyframes acg-hero-ambient {
  0% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  100% {
    transform: scale(1.08);
    filter: hue-rotate(6deg);
  }
}

.acg-hero__light-beam {
  position: absolute;
  z-index: 0;
  width: 120%;
  height: 40%;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.10) 50%, rgba(255, 255, 255, 0.03) 55%, transparent 100%);
  transform: rotate(-18deg);
  transform-origin: left center;
  pointer-events: none;
}

.acg-hero__light-beam--1 {
  inset-block-start: 15%;
  inset-inline-start: -10%;
  animation: acg-hero-beam 14s ease-in-out infinite;
}

.acg-hero__light-beam--2 {
  inset-block-start: 55%;
  inset-inline-start: -15%;
  opacity: 0.6;
  animation: acg-hero-beam 18s ease-in-out infinite reverse;
}

@keyframes acg-hero-beam {
  0%, 100% {
    opacity: 0.4;
    transform: rotate(-18deg) translateX(0);
  }
  50% {
    opacity: 0.8;
    transform: rotate(-16deg) translateX(4%);
  }
}

.acg-hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
}

.acg-hero__grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.acg-hero .container {
  position: relative;
  z-index: 2;
}

.acg-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .acg-hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.acg-hero__content {
  max-width: 640px;
}

.acg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-300);
  margin-block-end: var(--space-5);
}

[dir="rtl"] .acg-hero__eyebrow {
  letter-spacing: 0;
}

.acg-hero__title {
  font-size: var(--acg-hero-title);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--text-inverted);
  margin-block-end: var(--space-5);
  max-width: 22ch;
}

[dir="rtl"] .acg-hero__title {
  letter-spacing: 0;
}

.acg-hero__lede {
  font-size: var(--text-lg);
  color: rgba(250, 250, 250, 0.88);
  max-width: 560px;
  margin-block-end: var(--space-7);
  line-height: var(--leading-normal);
}

.acg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.acg-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1024px) {
  .acg-hero__media {
    justify-self: end;
  }

  [dir="rtl"] .acg-hero__media {
    justify-self: start;
  }
}

.acg-hero__media-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  border-radius: var(--acg-radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.acg-hero__media-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.acg-hero__media img,
.acg-hero__media svg {
  max-height: 52vh;
  max-height: 52dvh;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.35));
  animation: acg-hero-float 6s ease-in-out infinite;
  will-change: transform;
}

@keyframes acg-hero-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acg-hero__ambient,
  .acg-hero__light-beam,
  .acg-hero__media img,
  .acg-hero__media svg {
    animation: none;
  }
}

.acg-hero__scroll {
  position: absolute;
  inset-block-end: var(--space-8);
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.acg-hero__scroll:hover {
  color: var(--accent-300);
}

.acg-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
  position: relative;
  overflow: hidden;
}

.acg-hero__scroll-line::after {
  content: '';
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-300);
  animation: acg-hero-scroll 2s ease-in-out infinite;
}

@keyframes acg-hero-scroll {
  0% {
    inset-block-start: -100%;
  }
  100% {
    inset-block-start: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .acg-hero__scroll-line::after {
    animation: none;
    inset-block-start: 0;
  }
}

/* -----------------------------------------------------------
   7. CREDIBILITY BAR
   ----------------------------------------------------------- */

.acg-credibility {
  background-color: var(--surface-900);
  color: var(--text-inverted);
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-8);
}

.acg-credibility__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .acg-credibility__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-credibility__item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-inline-end: var(--space-6);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.1);
}

[dir="rtl"] .acg-credibility__item {
  padding-inline-end: 0;
  padding-inline-start: var(--space-6);
  border-inline-end: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.1);
}

.acg-credibility__item:last-child {
  border-inline: none;
}

.acg-credibility__value {
  font-family: var(--font-latin);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--accent-300);
}

.acg-credibility__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(250, 250, 250, 0.75);
}

[dir="rtl"] .acg-credibility__label {
  letter-spacing: 0;
}

/* -----------------------------------------------------------
   8. SECTION HEADERS
   ----------------------------------------------------------- */

.acg-section-header {
  margin-block-end: var(--space-8);
  max-width: var(--container-md);
}

.acg-section-header--center {
  text-align: center;
  margin-inline: auto;
}

[dir="rtl"] .acg-section-header--center {
  text-align: center;
}

.acg-section-header__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-600);
  margin-block-end: var(--space-3);
}

[dir="rtl"] .acg-section-header__eyebrow {
  letter-spacing: 0;
}

html.is-dark .acg-section-header__eyebrow {
  color: var(--accent-400);
}

.acg-section-header__eyebrow::after {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background-color: currentColor;
}

[dir="rtl"] .acg-section-header__eyebrow::after {
  order: -1;
}

.acg-section-header__title {
  color: var(--text-primary);
  margin-block-end: var(--space-4);
}

.acg-section-header__lede {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* -----------------------------------------------------------
   9. CATEGORY CARDS — cinematic, no gray boxes
   ----------------------------------------------------------- */

.acg-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--surface-900);
  color: var(--text-inverted);
  border-radius: var(--acg-radius-md);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease,
    border-radius var(--duration-fast) ease;
}

.acg-category-card:hover {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.26);
}

.acg-category-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease-out);
}

/* Fallback gradient when no featured image is set. */
.acg-category-card__image:not(img) {
  background: linear-gradient(135deg, var(--acg-brand-dominant), var(--acg-brand-secondary));
}

.acg-category-card:hover .acg-category-card__image {
  transform: scale(1.06);
}

.acg-category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(11, 13, 16, 0.94) 0%,
    rgba(11, 13, 16, 0.6) 35%,
    rgba(11, 13, 16, 0) 70%
  );
  transition: background 400ms ease;
}

.acg-category-card:hover .acg-category-card__overlay {
  background: linear-gradient(
    to top,
    rgba(11, 13, 16, 0.96) 0%,
    rgba(11, 13, 16, 0.55) 40%,
    rgba(11, 13, 16, 0.1) 100%
  );
}

.acg-category-card__title {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--text-inverted);
  text-decoration: none;
}

.acg-category-card__line {
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-500), var(--accent-300));
  transition: width 450ms var(--ease-out);
}

.acg-category-card:hover .acg-category-card__line {
  width: 100%;
}

/* Featured category grid special-cases */
.acg-featured-categories__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .acg-featured-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .acg-featured-categories__grid .acg-category-card:first-child {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .acg-featured-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .acg-featured-categories__grid .acg-category-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }
}

/* -----------------------------------------------------------
   10. PRODUCT GRID & CARDS
   ----------------------------------------------------------- */

.acg-products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
  row-gap: var(--grid-row-gap);
}

@media (min-width: 640px) {
  .acg-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .acg-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--acg-bg-page);
  border: 1px solid var(--neutral-200);
  border-radius: var(--acg-radius-md);
  overflow: hidden;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

html.is-dark .acg-product-card {
  background-color: var(--acg-bg-elevated);
  border-color: rgba(255, 255, 255, 0.08);
}

.acg-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-500);
}

html.is-dark .acg-product-card:hover {
  border-color: var(--accent-500);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.acg-product-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.acg-product-card__link:hover {
  color: inherit;
}

.acg-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-200), var(--surface-100));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  overflow: hidden;
}

.acg-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--ease-out);
}

.acg-product-card:hover .acg-product-card__media img {
  transform: scale(1.04);
}

.acg-product-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.acg-product-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
}

.acg-product-card__title a {
  color: var(--text-primary);
  text-decoration: none;
}

.acg-product-card__title a:hover {
  color: var(--accent-600);
}

html.is-dark .acg-product-card__title a:hover {
  color: var(--accent-400);
}

.acg-product-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.acg-product-card .acg-button--text {
  align-self: flex-start;
}

/* -----------------------------------------------------------
   11. ARCHIVE / CATEGORY SMART ROUTING
   ----------------------------------------------------------- */

/* -----------------------------------------------------------
   11. VISUAL PRODUCTS EXPLORER
   ----------------------------------------------------------- */

.acg-products-explorer-section .acg-section-header {
  margin-block-end: var(--space-10);
}

.acg-products-explorer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  border: 1px solid var(--neutral-200);
  border-radius: var(--acg-radius-xl);
  overflow: hidden;
  background-color: var(--acg-bg-page);
}

html.is-dark .acg-products-explorer {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: var(--acg-bg-elevated);
}

@media (min-width: 1024px) {
  .acg-products-explorer {
    grid-template-columns: 320px 1fr;
    min-height: 640px;
  }
}

@media (min-width: 1280px) {
  .acg-products-explorer {
    grid-template-columns: 360px 1fr;
  }
}

.acg-products-explorer__index {
  background-color: var(--acg-bg-mute);
  border-block-end: 1px solid var(--neutral-200);
}

html.is-dark .acg-products-explorer__index {
  border-color: rgba(255, 255, 255, 0.08);
  background-color: rgba(0, 0, 0, 0.18);
}

@media (min-width: 1024px) {
  .acg-products-explorer__index {
    border-block-end: none;
    border-inline-end: 1px solid var(--neutral-200);
    max-height: 720px;
    overflow-y: auto;
    position: sticky;
    top: var(--header-height);
    align-self: start;
  }

  html.is-dark .acg-products-explorer__index {
    border-inline-end-color: rgba(255, 255, 255, 0.08);
  }
}

.acg-products-explorer__list {
  list-style: none;
  margin: 0;
  padding: var(--space-4);
  display: flex;
  flex-direction: row;
  gap: var(--space-3);
  overflow-x: auto;
}

@media (min-width: 1024px) {
  .acg-products-explorer__list {
    flex-direction: column;
  }
}

.acg-products-explorer__index-item {
  flex: 0 0 auto;
}

.acg-products-explorer__sector-tab {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--acg-radius-md);
  color: var(--text-primary);
  cursor: pointer;
  text-align: start;
  transition:
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}

.acg-products-explorer__sector-tab:hover {
  background-color: var(--acg-bg-page);
  border-color: var(--neutral-200);
  transform: translateY(-1px);
}

html.is-dark .acg-products-explorer__sector-tab:hover {
  background-color: var(--acg-bg-elevated);
  border-color: rgba(255, 255, 255, 0.08);
}

.acg-products-explorer__sector-tab.is-active {
  background-color: var(--acg-bg-page);
  border-color: var(--accent-500);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

html.is-dark .acg-products-explorer__sector-tab.is-active {
  background-color: var(--acg-bg-elevated);
  border-color: var(--accent-500);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.acg-products-explorer__sector-tab:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.acg-products-explorer__sector-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--acg-radius-sm);
  background: linear-gradient(135deg, var(--surface-200), var(--surface-100));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.acg-products-explorer__sector-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.acg-products-explorer__sector-label {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: var(--leading-snug);
  white-space: nowrap;
}

.acg-products-explorer__sector-meta {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--acg-bg-elevated);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--acg-radius-sm);
}

.acg-products-explorer__stage {
  padding: var(--space-6);
  min-height: 400px;
}

@media (min-width: 1024px) {
  .acg-products-explorer__stage {
    padding: var(--space-8);
  }
}

.acg-products-explorer__panel {
  animation: acg-explorer-fade 400ms var(--ease-out);
}

.acg-products-explorer__panel[hidden] {
  display: none;
}

@keyframes acg-explorer-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .acg-products-explorer__panel {
    animation: none;
  }
}

.acg-products-explorer__panel-header {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-block-end: var(--space-8);
  padding-block-end: var(--space-6);
  border-block-end: 1px solid var(--neutral-200);
}

@media (min-width: 768px) {
  .acg-products-explorer__panel-header {
    grid-template-columns: 180px 1fr;
    align-items: center;
  }
}

html.is-dark .acg-products-explorer__panel-header {
  border-color: rgba(255, 255, 255, 0.08);
}

.acg-products-explorer__panel-cover {
  aspect-ratio: 16 / 10;
  border-radius: var(--acg-radius-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-200), var(--surface-100));
}

.acg-products-explorer__panel-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acg-products-explorer__panel-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.acg-products-explorer__panel-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0;
}

.acg-products-explorer__panel-count {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.acg-products-explorer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 640px) {
  .acg-products-explorer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-products-explorer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .acg-products-explorer__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.acg-products-explorer__card {
  display: flex;
  flex-direction: column;
  background-color: var(--acg-bg-page);
  border: 1px solid var(--neutral-200);
  border-radius: var(--acg-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

html.is-dark .acg-products-explorer__card {
  background-color: var(--acg-bg-elevated);
  border-color: rgba(255, 255, 255, 0.08);
}

.acg-products-explorer__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--accent-500);
}

html.is-dark .acg-products-explorer__card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.acg-products-explorer__card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface-200), var(--surface-100));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  overflow: hidden;
}

.acg-products-explorer__card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 500ms var(--ease-out);
}

.acg-products-explorer__card:hover .acg-products-explorer__card-media img {
  transform: scale(1.04);
}

.acg-products-explorer__card-body {
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.acg-products-explorer__card-title {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--text-primary);
}

.acg-products-explorer__card-arrow {
  flex: 0 0 auto;
  color: var(--accent-600);
  font-size: var(--text-lg);
  transition: transform var(--duration-fast) var(--ease-out);
}

[dir="rtl"] .acg-products-explorer__card-arrow {
  transform: scaleX(-1);
}

.acg-products-explorer__card:hover .acg-products-explorer__card-arrow {
  transform: translateX(4px);
}

[dir="rtl"] .acg-products-explorer__card:hover .acg-products-explorer__card-arrow {
  transform: scaleX(-1) translateX(-4px);
}

.acg-products-explorer__empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-8);
  background-color: var(--acg-bg-mute);
  border-radius: var(--acg-radius-md);
}

@media (max-width: 1023px) {
  .acg-products-explorer__index {
    position: relative;
    top: auto;
  }

  .acg-products-explorer__sector-tab {
    width: auto;
    min-width: 180px;
  }

  .acg-products-explorer__sector-label {
    white-space: normal;
  }
}

/* -----------------------------------------------------------
   12. SINGLE PRODUCT PAGE
   ----------------------------------------------------------- */

.single-product-page .site-content {
  padding-block-start: 0;
}

.product-hero {
  position: relative;
  padding-block-start: calc(var(--header-height) + var(--space-10));
  padding-block-end: var(--space-12);
  background-color: var(--acg-bg-page);
  color: var(--text-primary);
  overflow: hidden;
  isolation: isolate;
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 80% 10%, var(--acg-product-dominant) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 90%, var(--acg-product-secondary) 0%, transparent 45%),
    var(--acg-product-gradient);
  opacity: 0;
  transition: opacity 800ms var(--ease-out);
}

.product-chromatic-scope.is-palette-loaded .product-hero::before {
  opacity: 0.18;
}

.product-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 1024px) {
  .product-hero__grid {
    grid-template-columns: 55% 1fr;
  }
}

.product-hero__media {
  position: relative;
}

.product-hero__figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: var(--space-8);
  min-height: 420px;
  border-radius: var(--acg-radius-lg);
  overflow: visible;
  isolation: isolate;
}

.product-hero__figure::before {
  content: "";
  position: absolute;
  inset: -5%;
  background: radial-gradient(circle at 50% 50%, var(--acg-product-dominant), transparent 60%);
  opacity: 0.22;
  filter: blur(48px);
  z-index: -1;
  transition: background 800ms var(--ease-out);
}

.product-hero__image {
  max-width: 100%;
  max-height: 55vh;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.2));
}

.product-hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-hero__eyebrow {
  font-family: var(--font-latin);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-600);
}

[dir="rtl"] .product-hero__eyebrow {
  letter-spacing: 0;
}

html.is-dark .product-hero__eyebrow {
  color: var(--accent-400);
}

.product-hero__title {
  font-size: var(--acg-page-title);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin-block-end: var(--space-2);
}

.product-hero__intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 520px;
}

.product-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-block-start: var(--space-4);
}

.product-hero__lightbox-trigger {
  display: block;
  position: relative;
  cursor: zoom-in;
}

.product-hero__lightbox-trigger::after {
  content: "↗";
  position: absolute;
  inset-inline-end: var(--space-3);
  inset-block-end: var(--space-3);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(248, 246, 242, 0.9);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.product-hero__lightbox-trigger:hover::after {
  opacity: 1;
  transform: translateY(0);
}

[dir="rtl"] .product-hero__lightbox-trigger::after {
  content: "↖";
}

/* Product story */
.product-story {
  padding-block: var(--space-12);
  background-color: var(--acg-bg-page);
}

.product-story__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 1024px) {
  .product-story__grid {
    grid-template-columns: 2fr 1fr;
  }
}

.product-story__main {
  font-size: var(--text-base);
  color: var(--text-primary);
  line-height: var(--leading-normal);
}

.product-story__main h2,
.product-story__main h3 {
  margin-block-start: var(--space-8);
  margin-block-end: var(--space-4);
}

.product-story__main p {
  margin-block-end: var(--space-5);
}

.product-story__main ul,
.product-story__main ol {
  margin-block-end: var(--space-5);
}

.product-story__sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* Product specs sidebar */
.product-specs {
  background-color: var(--acg-bg-elevated);
  border: 1px solid var(--neutral-200);
  padding: var(--space-6);
  border-radius: var(--acg-radius-md);
}

html.is-dark .product-specs {
  border-color: rgba(255, 255, 255, 0.08);
}

.product-specs__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-block-end: var(--space-5);
  color: var(--text-primary);
}

.product-specs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-specs__item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block-end: var(--space-4);
  border-block-end: 1px solid var(--neutral-200);
  font-size: var(--text-sm);
}

html.is-dark .product-specs__item {
  border-block-end-color: rgba(255, 255, 255, 0.08);
}

.product-specs__item:last-child {
  border-block-end: none;
  padding-block-end: 0;
}

.product-specs__label {
  color: var(--text-secondary);
}

.product-specs__value {
  font-weight: 600;
  color: var(--text-primary);
  text-align: end;
}

[dir="rtl"] .product-specs__value {
  text-align: start;
}

/* Product features */
.product-features {
  padding-block: var(--space-12);
  background-color: var(--acg-bg-elevated);
}

.product-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .product-features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-feature-card {
  background-color: var(--acg-bg-page);
  border: 1px solid var(--neutral-200);
  padding: var(--space-6);
  border-radius: var(--acg-radius-md);
  transition:
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease;
}

html.is-dark .product-feature-card {
  background-color: var(--acg-bg-elevated);
  border-color: rgba(255, 255, 255, 0.08);
}

.product-feature-card:hover {
  border-color: var(--acg-product-dominant);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

html.is-dark .product-feature-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.product-feature-card__icon {
  width: 40px;
  height: 40px;
  color: var(--acg-product-dominant);
  margin-block-end: var(--space-4);
}

.product-feature-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-block-end: var(--space-3);
}

.product-feature-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Related products */
.related-products {
  padding-block: var(--space-12);
  background-color: var(--acg-bg-page);
}

/* -----------------------------------------------------------
   13. PAGE HEADER & BREADCRUMBS
   ----------------------------------------------------------- */

.acg-page-header {
  position: relative;
  background-color: var(--surface-900);
  color: var(--text-inverted);
  padding-block-start: calc(var(--header-height) + var(--space-12));
  padding-block-end: var(--space-10);
  isolation: isolate;
  overflow: hidden;
}

.acg-page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 20% 30%, color-mix(in srgb, var(--accent-600) 22%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, color-mix(in srgb, var(--brand-700) 30%, transparent) 0%, transparent 50%);
  opacity: 0.7;
}

.acg-page-header__title {
  color: var(--text-inverted);
  font-size: var(--acg-page-title);
  font-weight: 700;
  line-height: var(--leading-tight);
}

.acg-page-header__lede {
  color: rgba(250, 250, 250, 0.82);
  font-size: var(--text-lg);
  max-width: 680px;
  margin-block-start: var(--space-4);
  line-height: var(--leading-normal);
}

.acg-breadcrumbs {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  padding-block: var(--space-3) 0;
  margin-block-end: var(--space-5);
}

.acg-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.acg-breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.acg-breadcrumbs__link {
  color: var(--text-secondary);
  text-decoration: none;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.acg-breadcrumbs__link::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 220ms var(--ease-out);
}

.acg-breadcrumbs__link:hover {
  color: var(--link);
}

.acg-breadcrumbs__link:hover::after {
  width: 100%;
}

.acg-breadcrumbs__current {
  color: var(--text-primary);
  font-weight: 600;
}

.acg-breadcrumbs__sep {
  opacity: 0.4;
  user-select: none;
}

/* -----------------------------------------------------------
   14. SERVICES TIMELINE
   ----------------------------------------------------------- */

.acg-timeline {
  position: relative;
  max-width: var(--container-md);
  margin-inline: auto;
  padding-block-start: var(--space-6);
}

.acg-timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.acg-timeline__list::before {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  inset-block: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-600), var(--accent-300));
  border-radius: 2px;
}

[dir="rtl"] .acg-timeline__list::before {
  inset-inline-start: auto;
  inset-inline-end: 12px;
}

.acg-timeline__item {
  position: relative;
  padding-inline-start: var(--space-8);
  padding-block-end: var(--space-8);
}

[dir="rtl"] .acg-timeline__item {
  padding-inline-start: 0;
  padding-inline-end: var(--space-8);
}

.acg-timeline__item:last-child {
  padding-block-end: 0;
}

.acg-timeline__dot {
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--acg-bg-page);
  border: 2px solid var(--accent-500);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-500) 15%, transparent);
}

[dir="rtl"] .acg-timeline__dot {
  inset-inline-start: auto;
  inset-inline-end: 0;
}

.acg-timeline__year {
  display: inline-block;
  font-family: var(--font-latin);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent-600);
  margin-block-end: var(--space-1);
}

html.is-dark .acg-timeline__year {
  color: var(--accent-400);
}

.acg-timeline__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-block-end: var(--space-2);
}

.acg-timeline__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* -----------------------------------------------------------
   15. SERVICES CARDS & WHY-US CARDS
   ----------------------------------------------------------- */

.acg-services-preview__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .acg-services-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-services-preview__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-service-card {
  position: relative;
  background-color: var(--acg-bg-page);
  border: 1px solid var(--neutral-200);
  border-block-start: 3px solid var(--accent-600);
  border-radius: var(--acg-radius-md);
  padding: var(--space-6);
  transition:
    transform var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) ease,
    border-color var(--duration-fast) ease;
}

html.is-dark .acg-service-card {
  background-color: var(--acg-bg-elevated);
  border-inline-color: rgba(255, 255, 255, 0.08);
  border-block-end-color: rgba(255, 255, 255, 0.08);
}

.acg-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  border-block-start-color: var(--accent-400);
}

html.is-dark .acg-service-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.acg-service-card__num {
  font-family: var(--font-latin);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent-600);
  line-height: 1;
  margin-block-end: var(--space-4);
}

html.is-dark .acg-service-card__num {
  color: var(--accent-400);
}

.acg-service-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-block-end: var(--space-3);
}

.acg-service-card__text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* Why-us cards */
.acg-why-us {
  background-color: var(--surface-900);
  color: var(--text-inverted);
}

.acg-why-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--grid-gap);
}

@media (min-width: 768px) {
  .acg-why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-why-us__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.acg-why-card {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--space-6);
  border-radius: var(--acg-radius-md);
  transition:
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}

.acg-why-card:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-500);
  transform: translateY(-4px);
}

.acg-why-card__icon {
  width: 48px;
  height: 48px;
  color: var(--accent-400);
  margin-block-end: var(--space-5);
}

.acg-why-card__title {
  font-size: var(--text-xl);
  color: var(--text-inverted);
  font-weight: 600;
  margin-block-end: var(--space-3);
}

.acg-why-card__text {
  font-size: var(--text-sm);
  color: rgba(250, 250, 250, 0.78);
  line-height: var(--leading-normal);
}

/* -----------------------------------------------------------
   16. CLIENT LOGO GRID
   ----------------------------------------------------------- */

.acg-clients__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  align-items: center;
  justify-items: center;
}

@media (min-width: 768px) {
  .acg-clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .acg-clients__grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.acg-clients__grid img,
.acg-clients__grid .acg-client-placeholder {
  max-height: 64px;
  width: auto;
  object-fit: contain;
  transition:
    filter var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out),
    opacity var(--duration-fast) ease;
}

@media (hover: hover) {
  .acg-clients__grid img {
    filter: grayscale(100%);
    opacity: 0.65;
  }

  .acg-clients__grid img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
  }
}

.acg-client-placeholder {
  width: 120px;
  height: 48px;
  background-color: var(--acg-bg-elevated);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  border-radius: var(--acg-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--neutral-300);
}

html.is-dark .acg-client-placeholder {
  border-color: rgba(255, 255, 255, 0.12);
}

/* -----------------------------------------------------------
   17. FOOTER
   ----------------------------------------------------------- */

.site-footer {
  position: relative;
  background-color: var(--surface-900);
  color: rgba(250, 250, 250, 0.72);
  padding-block-start: var(--space-11);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-500), var(--accent-300), transparent);
}

.site-footer__newsletter {
  padding-block-end: var(--space-10);
  border-block-end: 1px solid rgba(255, 255, 255, 0.08);
  margin-block-end: var(--space-10);
}

.site-footer .acg-newsletter {
  padding: var(--space-8);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--acg-radius-md);
  backdrop-filter: blur(8px);
}

.acg-newsletter__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-inverted);
  margin-block-end: var(--space-2);
}

.acg-newsletter__text {
  font-size: var(--text-base);
  color: rgba(250, 250, 250, 0.72);
  margin-block-end: var(--space-5);
  line-height: var(--leading-normal);
}

.acg-newsletter__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .acg-newsletter__form {
    flex-direction: row;
  }
}

.acg-newsletter__form .acg-input {
  flex: 1 1 auto;
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-inverted);
}

.acg-newsletter__form .acg-input::placeholder {
  color: rgba(250, 250, 250, 0.5);
}

.acg-newsletter__form .acg-input:focus {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-block-end: var(--space-10);
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.site-footer__brand .site-title {
  color: var(--text-inverted);
  margin-block-end: var(--space-4);
}

.site-footer__brand .site-title a {
  color: inherit;
}

.site-footer__desc {
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  max-width: 320px;
  color: rgba(250, 250, 250, 0.72);
}

.site-footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-inverted);
  margin-block-end: var(--space-5);
}

[dir="rtl"] .site-footer__col-title {
  letter-spacing: 0;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.site-footer__links a,
.site-footer__links li {
  color: rgba(250, 250, 250, 0.72);
}

.site-footer__links a {
  text-decoration: none;
  position: relative;
  transition: color var(--duration-fast) ease;
}

.site-footer__links a::after {
  content: "";
  position: absolute;
  inset-block-end: -2px;
  inset-inline-start: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width 220ms var(--ease-out);
}

.site-footer__links a:hover {
  color: var(--text-inverted);
}

.site-footer__links a:hover::after {
  width: 100%;
}

/* Social links — used if a social menu is rendered in the footer. */
.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block-start: var(--space-5);
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(250, 250, 250, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  text-decoration: none;
  transition:
    color var(--duration-fast) ease,
    background-color var(--duration-fast) ease,
    border-color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out);
}

.site-footer__socials a:hover {
  color: var(--text-inverted);
  background-color: var(--accent-500);
  border-color: var(--accent-500);
  transform: translateY(-2px);
}

.site-footer__bottom {
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-5);
  font-size: var(--text-sm);
  color: rgba(250, 250, 250, 0.55);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-4);
}

/* -----------------------------------------------------------
   18. CTA BAND
   ----------------------------------------------------------- */

.acg-cta {
  position: relative;
  background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  color: var(--text-inverted);
  text-align: center;
  overflow: hidden;
}

.acg-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15), transparent 40%);
  pointer-events: none;
}

.acg-cta__title {
  position: relative;
  color: var(--text-inverted);
  font-size: var(--text-3xl);
  margin-block-end: var(--space-6);
}

.acg-cta-button-dark {
  color: var(--text-inverted);
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(0, 0, 0, 0.15);
}

.acg-cta-button-dark:hover {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: var(--text-inverted);
  color: var(--text-inverted);
}

/* -----------------------------------------------------------
   19. MICRO-INTERACTIONS & SCROLL REVEAL
   ----------------------------------------------------------- */

.acg-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
  will-change: opacity, transform;
}

.acg-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.acg-reveal-group .acg-reveal:nth-child(2) { transition-delay: 80ms; }
.acg-reveal-group .acg-reveal:nth-child(3) { transition-delay: 160ms; }
.acg-reveal-group .acg-reveal:nth-child(4) { transition-delay: 240ms; }
.acg-reveal-group .acg-reveal:nth-child(5) { transition-delay: 320ms; }
.acg-reveal-group .acg-reveal:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .acg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .acg-reveal-group .acg-reveal {
    transition-delay: 0ms !important;
  }
}

/* Hover lift utilities used by cards and buttons */
.acg-hover-lift {
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) ease;
}

.acg-hover-lift:hover {
  transform: translateY(-6px);
}

/* Link underline animation for content links */
.entry-content a,
.product-story__main a {
  color: var(--link);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 250ms var(--ease-out), color var(--duration-fast) ease;
}

[dir="rtl"] .entry-content a,
[dir="rtl"] .product-story__main a {
  background-position: 100% 100%;
}

.entry-content a:hover,
.product-story__main a:hover {
  color: var(--link-hover);
  background-size: 100% 1px;
}

/* -----------------------------------------------------------
   20. LIGHTBOX
   ----------------------------------------------------------- */

.acg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background-color: rgba(10, 10, 10, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-normal) ease, visibility var(--duration-normal) ease;
}

.acg-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.acg-lightbox__content {
  position: relative;
  max-width: var(--container-xl);
  max-height: 90vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.acg-lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--acg-radius-md);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.acg-lightbox__close {
  position: absolute;
  inset-block-start: var(--space-5);
  inset-inline-end: var(--space-5);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--surface-100);
  border: 1px solid var(--neutral-300);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.acg-lightbox__close:hover {
  background-color: var(--accent-500);
  color: var(--text-inverted);
  transform: rotate(90deg);
}

/* -----------------------------------------------------------
   21. WORDPRESS DEFAULTS / COMPAT
   ----------------------------------------------------------- */

.alignwide {
  max-width: var(--container-xl);
  margin-inline: auto;
}

.alignfull {
  width: 100vw;
  margin-inline: calc(-50vw + 50%);
  max-width: none;
}

.wp-caption {
  max-width: 100%;
}

.gallery {
  display: grid;
  gap: var(--space-4);
}

/* -----------------------------------------------------------
   22. RESPONSIVE ADJUSTMENTS
   ----------------------------------------------------------- */

@media (min-width: 360px) {
  .acg-hero__title {
    font-size: clamp(2.5rem, 1.8rem + 2.2vw, 3.5rem);
  }
}

@media (min-width: 640px) {
  .acg-newsletter__form {
    flex-direction: row;
  }

  .acg-form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .acg-credibility__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .acg-featured-categories__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .acg-featured-categories__grid .acg-category-card:first-child {
    grid-column: span 2;
  }

  .acg-services-preview__grid,
  .acg-why-us__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .acg-clients__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .main-navigation {
    display: block;
    flex: 1;
  }

  .acg-hero__grid {
    grid-template-columns: 1fr 1fr;
  }

  .acg-featured-categories__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .acg-featured-categories__grid .acg-category-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .acg-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-hero__grid {
    grid-template-columns: 55% 1fr;
  }

  .product-story__grid {
    grid-template-columns: 2fr 1fr;
  }

  .product-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .acg-services-preview__grid,
  .acg-why-us__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .acg-clients__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .acg-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .container {
    padding-inline: calc(var(--page-gutter) * 1.2);
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: var(--container-xl);
  }

  .acg-hero__media img,
  .acg-hero__media svg {
    max-height: 56vh;
  }
}

@media (max-width: 1023px) {
  :root {
    --header-height: var(--header-height-mobile);
  }

  .acg-page-header__title,
  .entry-title,
  .product-hero__title {
    font-size: var(--text-3xl);
  }

  .acg-page-header__lede,
  .product-hero__intro {
    font-size: var(--text-base);
  }
}

@media (max-width: 767px) {
  .acg-credibility__grid {
    grid-template-columns: 1fr;
  }

  .acg-credibility__item {
    border-inline-end: none;
    border-inline-start: none;
    border-block-end: 1px solid rgba(255, 255, 255, 0.1);
    padding-inline-end: 0;
    padding-inline-start: 0;
    padding-block-end: var(--space-4);
  }

  .acg-credibility__item:last-child {
    border-block-end: none;
    padding-block-end: 0;
  }

  .acg-hero__title {
    font-size: var(--text-2xl);
  }

  .acg-hero__lede {
    font-size: var(--text-base);
  }

  .acg-hero__media img,
  .acg-hero__media svg {
    max-height: 36vh;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* -----------------------------------------------------------
   23. DARK MODE COMPONENT OVERRIDES
   ----------------------------------------------------------- */

html.is-dark body {
  color-scheme: dark;
}

html.is-dark .site-header.is-scrolled {
  background-color: var(--acg-header-scrolled);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 30px rgba(0, 0, 0, 0.2);
}

html.is-dark .acg-input,
html.is-dark .acg-textarea,
html.is-dark .acg-select {
  background-color: var(--surface-200);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

html.is-dark .acg-input:focus,
html.is-dark .acg-textarea:focus,
html.is-dark .acg-select:focus {
  border-color: var(--accent-400);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

html.is-dark .acg-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 16 16'%3E%3Cpath stroke='%23a3a3a3' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
}

html.is-dark .product-specs,
html.is-dark .acg-sector-card,
html.is-dark .acg-product-card,
html.is-dark .acg-service-card,
html.is-dark .acg-why-card,
html.is-dark .acg-notice {
  background-color: var(--surface-200);
}

html.is-dark .acg-page-header::before,
html.is-dark .product-hero::before,
html.is-dark .site-footer::before {
  opacity: 0.08;
}

html.is-dark .acg-timeline__list::before {
  background: linear-gradient(180deg, var(--accent-600), var(--accent-400));
}

html.is-dark .acg-timeline__dot {
  background-color: var(--surface-200);
  border-color: var(--accent-400);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}

html.is-dark .acg-map-card iframe {
  filter: invert(0.92) hue-rotate(180deg);
}

html.is-dark .acg-hero__bg {
  opacity: 0.45;
}

html.is-dark .acg-lightbox__close {
  background-color: var(--surface-200);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}
