/* ==========================================================================
   Aurora Studio — GLOBAL styles (shared across every page)
   Loaded on every page BEFORE the page-specific stylesheet.
   ========================================================================== */

/* ========================================
   CSS VARIABLES
======================================== */
:root {
  /* ── CORE BRAND PALETTE ──────────────────────────────────────────────────
     Derived from XMerak logo:
     Brand identity: Premium electric blue (#2979ff) on deep black/near-black
     Dark tone:  Rich ink-black with deep navy undertone
     Light tone: Clean white / very light neutral for light sections
  ─────────────────────────────────────────────────────────────────────── */

  /* Dark section backgrounds — two depths of the same ink */
  --bg-primary:   #08090e;   /* deepest — Hero, How We Work, FAQ            */
  --bg-deep:      #0d1120;   /* mid-deep — What We Do, Testimonials          */
  --bg-elevated:  #111827;   /* elevated cards & surfaces on dark sections   */
  --bg-surface:   #161e30;   /* subtle lift for interactive cards            */

  /* Light section backgrounds — XMerak cool brand tones */
  --bg-light:     #eef3fc;   /* About, Why Choose Us, Gallery — cool light blue */
  --bg-light-alt: #e6edf8;   /* Studio Standards / secondary cool tone          */
  --bg-light-card:#ffffff;   /* Clean white cards on light sections             */
  --bg-light-chip:#dde7f4;   /* Chips / secondary surfaces on light sections    */

  /* Contact section — cool, light ambient tone matching XMerak */
  --bg-contact:   #eef3fc;   /* Cool XMerak-brand light for the contact section */

  /* ── KEPT FOR COMPATIBILITY (used across other pages) ────────────────── */
  --bg-editorial:           #eef3fc;
  --surface-editorial-card: #ffffff;

  /* ── TEXT ─────────────────────────────────────────────────────────────── */
  --text-primary:          #e8edf5;
  --text-primary-inverse:  #0d1320;
  --text-secondary:        #7a93b4;
  --text-secondary-inverse:#4a5568;
  --text-muted:            #4a6080;

  /* ── ACCENT — XMerak electric blue ───────────────────────────────────── */
  --accent:               #1d68e8;   /* XMerak electric blue (deeper, premium) */
  --accent-dim:           #1047a9;   /* slightly deeper for hover states      */
  --accent-glow:          rgba(29, 104, 232, 0.25);
  --accent-contrast-text: #ffffff;

  /* ── BORDERS ─────────────────────────────────────────────────────────── */
  --border:          rgba(255, 255, 255, 0.09);
  --border-strong:   rgba(255, 255, 255, 0.18);
  --border-editorial:rgba(13, 19, 32, 0.12);
  --border-editorial-strong: rgba(13, 19, 32, 0.22);

  /* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */
  --font-sans:  "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;

  /* ── LAYOUT ──────────────────────────────────────────────────────────── */
  --maxw:       1280px;
  --sp:         8px;
  --section-y:  120px;
  --r-lg:       clamp(24px, 3vw, 40px);
  --r-xl:       clamp(28px, 4vw, 48px);
  --r-pill:     9999px;

  /* ── MOTION & SHADOWS ────────────────────────────────────────────────── */
  --ease:       cubic-bezier(0.22, 0.61, 0.36, 1);
  --glow:       0 0 60px rgba(29, 104, 232, 0.25);
  --shadow-dark:0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-light:0 16px 40px rgba(13, 19, 32, 0.08);
}

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

html { scroll-behavior: smooth; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ========================================
   GLOBAL / BASE STYLES
======================================== */
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-contrast-text);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
}
.skip-link:focus { left: 24px; }

/* ========================================
   CONTAINER & LAYOUT
======================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: calc(var(--section-y) * 0.66); }
.section--editorial {
  background: var(--bg-light);
  color: var(--text-primary-inverse);
}
.section--editorial p { color: var(--text-secondary-inverse); }

.grid { display: grid; gap: 32px; }
.two-col { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }

/* ========================================
   TYPOGRAPHY
======================================== */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 23px); font-weight: 600; line-height: 1.3; }
p { margin: 0; color: var(--text-secondary); }
.lead { font-size: clamp(16px, 1.4vw, 18px); max-width: 56ch; }
.accent { color: var(--accent); }
.serif-italic { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section--editorial .eyebrow { color: var(--text-primary-inverse); }
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

.heading-block > h2 { margin-bottom: 20px; }
.heading-block--center { text-align: center; max-width: 720px; margin-inline: auto; }
.heading-block--center .lead { margin-inline: auto; }

/* ========================================
   BUTTONS
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-pill);
  padding: 16px 28px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.99); }
.btn--filled {
  background: linear-gradient(135deg, #1d68e8 0%, #1047a9 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(16, 71, 169, 0.3);
}
.btn--filled:hover {
  background: linear-gradient(135deg, #185acb 0%, #0d3b8f 100%);
  box-shadow: 0 6px 22px rgba(16, 71, 169, 0.45);
  color: #ffffff;
}
.btn--outline {
  border-color: var(--border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}
.btn--outline:hover {
  border-color: #1d68e8;
  color: #ffffff;
  background: rgba(29, 104, 232, 0.12);
}
.btn--outline-dark {
  border-color: var(--border-editorial);
  color: var(--text-primary-inverse);
  background: var(--surface-editorial-card);
}
.btn--dark {
  background: var(--bg-primary);
  color: var(--text-primary);
}
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

.arrow { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}
.text-link:hover { gap: 14px; transition: gap 0.25s var(--ease); }

/* ========================================
   HEADER & NAVIGATION
======================================== */
.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 100;
  padding-inline: 24px;
}
.header-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
/* ── Premium Black Glassmorphism Navbar ── */
.nav-pill {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 6px 24px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 13, 20, 0.58);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled .nav-pill {
  background: rgba(6, 9, 15, 0.76);
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  object-position: left center;
}
/* Tablet */
@media (max-width: 1023px) {
  .logo-img { height: 42px; max-width: 195px; }
  .nav-connect-btn { display: none; }
}
/* Mobile */
@media (max-width: 767px) {
  .logo-img { height: 40px; max-width: 180px; }
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-inline: auto; list-style: none; padding: 0; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: #d1d5db;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-links a:hover { color: #ffffff; }
.nav-links a[aria-current="page"] { color: #ffffff; border-bottom-color: var(--accent); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-connect-btn { white-space: nowrap; }

/* Cart button */
.cart-btn {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e5e7eb;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cart-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(29, 104, 232, 0.12);
  box-shadow: 0 8px 24px rgba(29, 104, 232, 0.25);
  transform: translateY(-1px);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1d68e8 0%, #1047a9 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.cart-badge-inline { font-weight: 700; color: var(--accent); }
.cart-badge-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(29, 104, 232, 0.15);
  color: var(--accent);
  margin-left: 8px;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 250;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.35s var(--ease), opacity 0.35s var(--ease);
}
.cart-drawer.is-open {
  visibility: visible;
  opacity: 1;
}
.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
}
.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  z-index: 1;
}
.cart-drawer.is-open .cart-drawer__panel {
  transform: translateX(0);
}
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 {
  font-size: 20px;
  display: flex;
  align-items: center;
}
.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 32px 28px;
}
.cart-empty {
  text-align: center;
  padding-block: 40px;
}
.cart-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.cart-empty h4 {
  font-size: 18px;
  margin-bottom: 8px;
}
.cart-empty p {
  font-size: 14px;
  max-width: 32ch;
  margin: 0 auto;
}
.cart-drawer__footer {
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  background: rgba(11, 15, 20, 0.4);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  margin-bottom: 18px;
}
.cart-total strong {
  font-size: 20px;
  color: var(--accent);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 12px 0;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 10px;
}

.cart-item-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #151d28;
}

.cart-item-info h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.cart-item-info .price {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 13px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-qty-btn:hover {
  background: var(--accent);
  color: var(--accent-contrast-text);
}

.cart-item-qty {
  font-size: 13px;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

.cart-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent);
  border-radius: var(--r-pill);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(41, 121, 255, 0.2);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cart-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.cart-toast svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
}

.icon-round {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-round:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 13, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #e5e7eb;
  box-shadow: none;
}
.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(29, 104, 232, 0.12);
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(11, 15, 20, 0.98);
  display: flex; flex-direction: column; justify-content: flex-start;
  padding: clamp(24px, 5vh, 36px) 24px 32px;
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-top-action {
  margin-top: 48px;
  margin-bottom: 24px;
}
.mobile-top-action .btn { width: 100%; justify-content: center; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a.m-link {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 10px 0;
  color: #94a3b8;
  transition: color 0.2s var(--ease);
}
.mobile-menu a.m-link:hover { color: #ffffff; }
.mobile-menu a.m-link[aria-current="page"] {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu a.m-link[aria-current="page"]::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.mobile-menu .m-close { position: absolute; top: 20px; right: 20px; }

/* ========================================
   COMMON COMPONENTS
======================================== */

/* Hero (base) — page-specific hero content lives in the page CSS */
.hero {
  position: relative;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding-block: clamp(150px, 22vh, 230px) clamp(32px, 8vh, 100px);
  overflow: hidden;
}
.hero--short { min-height: 72vh; padding-block: 200px 90px; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(11, 15, 20, 0.94) 8%, rgba(11, 15, 20, 0.62) 55%, rgba(11, 15, 20, 0.8) 100%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.85) 0%, rgba(11, 15, 20, 0.15) 40%, rgba(11, 15, 20, 0.9) 100%);
}
.hero h1 { margin-bottom: 20px; }

/* Icon square — used in hero micro-features (index) and mission/vision cards (about) */
.icon-square {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--accent);
  margin-bottom: 16px;
}

/* Image compositions — capsule/rounded-img/duo used on index, about, services, case-studies */
.capsule { border-radius: var(--r-pill); overflow: hidden; border: 1px solid var(--border); }
.rounded-img { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.45); }
.section--editorial .rounded-img,
.section--editorial .capsule { border-color: var(--border-editorial); }

.duo { position: relative; padding: 40px 0 60px 40px; }
.duo__main { transform: rotate(-3deg); border-radius: clamp(32px, 5vw, 64px); overflow: hidden; border: 1px solid rgba(41, 121, 255, 0.5); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.duo__main img { aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; }
.duo__sub {
  position: absolute; left: 0; bottom: 0; width: 42%;
  border-radius: 28px; overflow: hidden;
  border: 1px solid var(--accent);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
}
.duo__sub img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.dot-grid {
  position: absolute; top: 0; left: 8px; width: 120px; height: 90px;
  background-image: radial-gradient(var(--accent) 1.6px, transparent 1.6px);
  background-size: 14px 14px;
  opacity: 0.55;
}

/* Stacked icon rows — index (about section) + contact page */
.icon-rows { display: grid; gap: 26px; margin: 32px 0; }
.icon-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: start; }
.icon-circle {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--accent);
}
.section--editorial .icon-circle { border-color: var(--border-editorial); background: var(--surface-editorial-card); color: var(--text-primary-inverse); }
.icon-row h3 { font-size: 18px; margin-bottom: 4px; }
.icon-row p { font-size: 15px; }

/* Stat bar / stat band — index + case-studies */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--bg-elevated);
  padding: 32px;
}
.stat-item { display: flex; align-items: center; gap: 16px; padding-inline: 16px; }
.stat-item + .stat-item { border-left: 1px solid var(--border); }
.stat-item__num { font-size: clamp(26px, 3vw, 38px); font-weight: 800; color: var(--accent); line-height: 1; letter-spacing: -0.03em; }
.stat-item__label { font-size: 13.5px; color: var(--text-secondary); }

.stat-band { background: var(--bg-elevated); border-block: 1px solid var(--border); }
.stat-band .stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.stat-band .stat-item__num { font-size: clamp(34px, 4.6vw, 56px); }

/* Cards — used on every inner page */
.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.card__num { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); display: block; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }
.section--editorial .card { background: var(--surface-editorial-card); border-color: var(--border-editorial); }
.section--editorial .card p { color: var(--text-secondary-inverse); }

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

/* Process — shared node/badge styling. Layout variants (radial vs strip) are page-specific. */
.process-node { max-width: 300px; }
.process-node__badge {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--surface-editorial-card);
  border: 1px solid var(--border-editorial);
  font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.process-node h3 { font-size: 19px; margin-bottom: 6px; }
.process-node p { font-size: 14.5px; }

/* linear process strip — services + case-studies */
.process-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.process-strip .process-node__badge { background: transparent; border-color: var(--border); color: var(--accent); }

/* Work / gallery tiles — index, gallery, case-studies */
.tile { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-xl); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.tile:hover img { transform: scale(1.03); }
.tile__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 15, 20, 0.9));
  opacity: 0; transition: opacity 0.35s var(--ease);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px;
}
.tile:hover .tile__overlay, .tile:focus-visible .tile__overlay { opacity: 1; }
.tile__overlay h3 { font-size: 19px; }
.tile__overlay span { font-size: 13px; color: var(--text-secondary); }
.tile--capsule { border-radius: var(--r-pill); }
.tile--tall img { aspect-ratio: 3 / 4.4; }
.tile--wide img { aspect-ratio: 16 / 10; }
.tile--square img { aspect-ratio: 1 / 1; }

.work-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.work-grid__side { display: grid; gap: 24px; }

.masonry { columns: 3; column-gap: 24px; }
.masonry > * { break-inside: avoid; margin-bottom: 24px; }

/* Final CTA band — every page */
.final-cta { position: relative; text-align: center; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 720px; height: 520px; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(41, 121, 255, 0.22), transparent);
  pointer-events: none;
}
.final-cta .container { position: relative; }

/* Forms — contact page form + footer newsletter */
.form-card { border: 1px solid var(--border); border-radius: 24px; background: var(--bg-elevated); padding: 32px; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea, .newsletter input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  padding: 14px 16px;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .newsletter input:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(41, 121, 255, 0.18);
}
.field .error { font-size: 13px; color: #ff8f8f; min-height: 18px; }
.form-status { font-size: 14.5px; color: var(--accent); min-height: 22px; margin-top: 10px; }
.req { color: var(--accent); }

/* ========================================
   FOOTER
======================================== */
@keyframes footerShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes footerFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, -24px) scale(1.08); }
}
@keyframes footerFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-24px, 18px) scale(1.06); }
}

.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #060810 55%, #020306 100%);
  padding-block: 0 0;
  isolation: isolate;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #6ea8ff, var(--accent-dim), var(--accent));
  background-size: 200% 100%;
  animation: footerShimmer 6s linear infinite;
}
.footer-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.footer-glow::before,
.footer-glow::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
}
.footer-glow::before {
  top: -160px;
  left: -80px;
  background: var(--accent);
  animation: footerFloat 14s ease-in-out infinite;
}
.footer-glow::after {
  bottom: -180px;
  right: -100px;
  background: #6ea8ff;
  animation: footerFloat2 16s ease-in-out infinite;
}
.site-footer > .container { position: relative; z-index: 1; padding-block: 64px 0; }

.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer h4 {
  font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 20px;
  position: relative; display: inline-block; color: var(--text-primary);
}
.site-footer h4::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 26px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer a { color: var(--text-secondary); font-size: 15px; }
.site-footer .footer-grid a {
  position: relative;
  display: inline-block;
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.site-footer .footer-grid a span { position: relative; }
.site-footer .footer-grid a span::after {
  content: "";
  position: absolute; left: 0; bottom: -3px; width: 0; height: 1.5px;
  background: linear-gradient(90deg, var(--accent), #6ea8ff);
  transition: width 0.3s var(--ease);
}
.site-footer .footer-grid a:hover { color: var(--text-primary); transform: translateX(4px); }
.site-footer .footer-grid a:hover span::after { width: 100%; }
.site-footer a:hover { color: var(--accent); }

.logo-img { transition: filter 0.3s var(--ease); }
.site-footer .logo:hover .logo-img { filter: drop-shadow(0 0 10px var(--accent-glow)); }

@keyframes socialsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(29, 104, 232, 0.35); }
  50%      { box-shadow: 0 0 0 6px rgba(29, 104, 232, 0); }
}

.socials { display: flex; gap: 14px; margin-top: 24px; }
.socials__link {
  position: relative;
  flex: 0 0 38px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(110, 168, 255, 0.28);
  display: grid; place-items: center;
  overflow: hidden;
  color: #bcd0f7;
  background: linear-gradient(145deg, rgba(29, 104, 232, 0.16), rgba(110, 168, 255, 0.04));
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: socialsPulse 3.2s ease-in-out infinite;
}
.socials__link:nth-child(2) { animation-delay: 0.4s; }
.socials__link:nth-child(3) { animation-delay: 0.8s; }
.socials__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6ea8ff 55%, var(--accent-dim));
  opacity: 0; transform: scale(0.5) rotate(-30deg);
  transition: opacity 0.4s var(--ease), transform 0.45s var(--ease);
  z-index: 0;
}
.socials__icon {
  position: relative; z-index: 1; display: block; width: 18px; height: 18px;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.socials__link:hover {
  color: #fff;
  border-color: transparent;
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 14px 28px rgba(29, 104, 232, 0.4);
  animation-play-state: paused;
}
.socials__link:hover .socials__ring { opacity: 1; transform: scale(1) rotate(0deg); }
.socials__link:hover .socials__icon { transform: scale(1.08); }
.socials__link:active { transform: translateY(-2px) scale(0.97); }

.footer-bottom {
  position: relative;
  margin-top: 56px;
  padding-block: 24px;
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  font-size: 14px; color: var(--text-muted);
}
.footer-bottom::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

/* ========================================
   ACCORDION COMPONENT (FAQ & Collapsibles)
======================================== */
.accordion { display: grid; gap: 14px; width: 100%; }
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}
.section--editorial .accordion__item {
  background: var(--surface-editorial-card);
  border-color: var(--border-editorial);
}
.accordion__item.is-open {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.section--editorial .accordion__item.is-open {
  border-color: rgba(26, 23, 18, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  text-align: left;
  font-family: inherit;
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}
.section--editorial .accordion__trigger {
  color: var(--text-primary-inverse);
}
.accordion__trigger:hover {
  color: var(--accent);
}
.section--editorial .accordion__trigger:hover {
  color: var(--accent);
}
.accordion__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}
.section--editorial .accordion__icon {
  border-color: var(--border-editorial);
}
.accordion__item.is-open .accordion__icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-contrast-text);
}
.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease), opacity 0.35s var(--ease);
  opacity: 0;
  padding-inline: 28px;
}
.accordion__item.is-open .accordion__content {
  max-height: 400px;
  padding-bottom: 24px;
  opacity: 1;
}
.accordion__content p {
  font-size: 15.5px;
  line-height: 1.65;
}

/* ========================================
   COMMON UTILITIES
======================================== */

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ========================================
   COMMON RESPONSIVE STYLES
======================================== */
@media (max-width: 1279px) {
  :root { --section-y: 100px; }
  body { font-size: 16px; }
}

@media (max-width: 1023px) {
  :root { --section-y: 80px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-pill { padding: 10px 20px; justify-content: space-between; }
  .hero__grid { grid-template-columns: 1fr; }
  .card-stack { height: 340px; }
  .card-stack__item { width: 170px; height: 260px; }
  .two-col, .service-block, .services-asym { grid-template-columns: 1fr; gap: 40px; }
  .service-block:nth-child(even) .service-block__media { order: 0; }
  .cards-4, .stat-bar, .stat-band .stat-grid, .process-strip, .timeline, .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-item + .stat-item { border-left: 0; }
  .stat-bar { gap: 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .masonry { columns: 2; }
  .timeline::before { display: none; }
  .process__stage { grid-template-columns: 1fr 1fr; }
  .process__media { grid-column: 1 / -1; grid-row: 1; }
  .process__media .capsule { width: 220px; }
  .process-node.n1, .process-node.n3 { justify-self: start; text-align: left; }
  .process-node.n1 { grid-column: 1; grid-row: 2; }
  .process-node.n2 { grid-column: 2; grid-row: 2; }
  .process-node.n3 { grid-column: 1; grid-row: 3; }
  .process-node.n4 { grid-column: 2; grid-row: 3; }
  .process__lines { display: none; }
}

@media (max-width: 767px) {
  :root { --section-y: 56px; }
  .site-header { top: 12px; padding-inline: 12px; }
  .hero { min-height: auto; padding-block: 140px 64px; }
  .micro-features { grid-template-columns: 1fr; gap: 20px; }
  .micro-features > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
  .cards-4, .cards-3, .cards-2, .stat-bar, .stat-band .stat-grid, .process-strip, .timeline, .footer-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .process__stage { grid-template-columns: 1fr; gap: 28px; }
  .process-node { max-width: none; }
  .process__stage .process-node { border-left: 1px dashed var(--border-editorial); padding-left: 20px; }
  .duo { padding: 24px 0 40px 20px; }
  .duo__sub { width: 48%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .card-stack__item { width: 150px; height: 230px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.15s !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}