/* Self-hosted fonts (see scripts/fetch-fonts.js) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-cY9XfjOCX1hbuyalUrK439vogqCz_goCYw7oRd6JFYYzbA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-cY9AfjOCX1hbuyalUrK4397yjA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Newsreader';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-cY9AfjOCX1hbuyalUrK4397yjA.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Self-hosted Material Symbols Outlined — subset of 34 icons (see scripts/fetch-material-symbols.js) */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url(/assets/fonts/material-symbols.woff2) format('woff2');
}

/* ============================================================
   TUL-ID Digital — Shared styles & motion system
   Dark luxury, cinematic, editorial. Derived from design.md.
   ============================================================ */

:root {
  --bg: #0d0d0d;
  --surface: #151515;
  --line: #2a2a2a;
  --text-primary: #f5f2ed;
  --text-secondary: #a3a3a3;
  --accent: #6674cc;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Material symbols sizing */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}
/* Defaults that Google's icon CSS used to provide. Wrapped in :where() so they
   have zero specificity and any Tailwind text-size / weight utility still wins. */
:where(.material-symbols-outlined) {
  font-size: 24px;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
}

/* Premium custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #333;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   GLASS CARD
   ============================================================ */
.glass-card {
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s var(--ease);
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 116, 204, 0.4);
  box-shadow: 0 0 40px rgba(102, 116, 204, 0.08);
}

/* ============================================================
   MOTION SYSTEM
   ============================================================ */

/* Fade-up reveal (scroll triggered) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* Word-by-word headline reveal */
.split-text {
  overflow: hidden;
  display: inline-block;
  vertical-align: baseline;
  padding: 0.12em 0 0.06em;
  line-height: 1.2;
}
.split-text .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
}
.reveal.active .split-text .word,
.active .split-text .word {
  transform: translateY(0);
}

/* Clip-path cinematic line reveal */
.reveal-clip {
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 1.6s var(--ease);
}
.reveal-clip.active {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Floating */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(0.4deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
.animate-float {
  animation: float 8s ease-in-out infinite;
}

@keyframes slowPan {
  0% { transform: scale(1.12) translateX(-2%); }
  100% { transform: scale(1.12) translateX(2%); }
}
.slow-pan {
  animation: slowPan 24s linear infinite alternate;
}

/* Soft glow hover */
.glow-hover {
  position: relative;
  overflow: hidden;
}
.glow-hover::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle, rgba(102, 116, 204, 0.12) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.glow-hover:hover::after {
  opacity: 1;
}

.parallax-wrapper {
  perspective: 1000px;
}

/* Outlined ghost number for process */
.ghost-number {
  -webkit-text-stroke: 1px rgba(245, 242, 237, 0.18);
  color: transparent;
}

/* Nav hide on scroll-down */
#nav {
  transition: transform 0.5s var(--ease), background-color 0.4s ease;
}

/* Underline grow for nav links */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 1px;
  width: 0;
  background: var(--text-primary);
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  width: 100%;
}

/* Form focus */
.field:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 116, 204, 0.18);
}

/* About page — protocol bento card backgrounds */
.protocol-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  opacity: 0.4;
  transition:
    opacity 0.7s var(--ease),
    transform 1.2s var(--ease),
    filter 0.7s var(--ease);
}
.protocol-card:hover .protocol-card-bg {
  opacity: 0.55;
  filter: grayscale(40%);
  transform: scale(1.04);
}
.protocol-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    165deg,
    rgba(13, 13, 13, 0.72) 0%,
    rgba(13, 13, 13, 0.88) 55%,
    rgba(13, 13, 13, 0.96) 100%
  );
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .protocol-card-bg {
    transition: none !important;
  }
  .protocol-card:hover .protocol-card-bg {
    transform: none;
  }
}

/* Contact page — FAQ accordion slide */
.faq-acc > summary::-webkit-details-marker {
  display: none;
}
.faq-acc > summary::marker {
  content: "";
  display: none;
}
.faq-icon {
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.faq-acc.faq-is-open .faq-icon {
  transform: rotate(45deg);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.faq-acc.faq-is-open .faq-panel {
  grid-template-rows: 1fr;
}
.faq-panel-inner {
  overflow: hidden;
}
.faq-panel-inner > * {
  padding-top: 0.75rem;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--ease);
}
.faq-acc.faq-is-open .faq-panel-inner > * {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.08s;
}

@media (prefers-reduced-motion: reduce) {
  .faq-panel,
  .faq-panel-inner > *,
  .faq-icon {
    transition: none !important;
  }
  .faq-panel-inner > * {
    opacity: 1;
    transform: none;
  }
}

/* Work page — project filters & pagination */
.projects-filter-btn {
  color: var(--text-secondary);
  border-color: var(--line);
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.projects-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
}
.projects-filter-btn.is-active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}
.projects-filter-btn.is-active:hover {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}
.projects-page-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Nav — services dropdown */
.nav-item--dropdown::after {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: 100%;
  height: 16px;
}
.nav-item--dropdown .nav-chevron {
  transition: transform 0.3s var(--ease);
}
.nav-item--dropdown:hover .nav-chevron,
.nav-item--dropdown:focus-within .nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 240px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s var(--ease),
    transform 0.25s var(--ease),
    visibility 0.25s;
  z-index: 60;
}
.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 0.5rem 0.75rem 0.25rem;
  margin-top: 0.25rem;
}
.nav-dropdown-label:first-of-type {
  margin-top: 0;
}
.nav-dropdown-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
  white-space: nowrap;
}
.nav-dropdown-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-dropdown-link.is-active {
  color: var(--text-primary);
  background: rgba(102, 116, 204, 0.12);
}
.nav-mobile-services > summary::-webkit-details-marker {
  display: none;
}
.nav-mobile-services > summary::marker {
  content: "";
}
.nav-mobile-services[open] .nav-chevron {
  transform: rotate(180deg);
}
.nav-mobile-services .nav-chevron {
  transition: transform 0.3s var(--ease);
}

/* Insights — category select & pagination */
.insights-category-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a8a29e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.25rem;
}
.insights-page-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Insights — social tabs & carousel */
.social-tab {
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition:
    color 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}
.social-tab:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}
.social-tab.is-active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}
.social-carousel-wrap {
  overflow: hidden;
  text-align: left;
  min-height: 200px;
}
.social-carousel-wrap:not(.is-ready) {
  opacity: 0.6;
}
.ig-carousel {
  overflow: hidden;
}
.ig-carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.ig-carousel-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
}
@media (max-width: 768px) {
  .ig-carousel-slide {
    flex: 0 0 calc((100% - 1rem) / 2);
  }
}
@media (max-width: 480px) {
  .ig-carousel-slide {
    flex: 0 0 100%;
  }
}
.social-external-panel {
  padding: 2rem 1rem;
}

/* Insight article — layout, sidebar, share */
.insight-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .insight-article-layout {
    grid-template-columns: min(48rem, 100%) 280px;
    gap: 3rem;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }
}
.insight-article-sidebar {
  display: block;
  min-width: 0;
}
@media (min-width: 1024px) {
  .insight-article-sidebar {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}
@media (max-width: 1023px) {
  .insight-article-sidebar {
    margin-top: 0.5rem;
  }
}
.insight-share-btn {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--line);
  border-radius: 9999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.insight-share-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}
.insight-sidebar-panel {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.insight-sidebar-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.insight-sidebar-link {
  display: block;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  border-radius: 0.5rem;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.insight-sidebar-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.insight-sidebar-link.is-active {
  color: var(--text-primary);
  background: rgba(102, 116, 204, 0.12);
}
.insight-sidebar-post {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.insight-sidebar-post-img {
  width: 4.5rem;
  height: 2.75rem;
  object-fit: cover;
  border-radius: 0.5rem;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.insight-sidebar-post-title {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-secondary);
}
.insight-sidebar-all {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-top: 0.25rem;
  transition: color 0.2s var(--ease);
}
.insight-sidebar-all:hover {
  color: var(--text-primary);
}

/* Service landing — case study split */
.service-case-study-media {
  position: relative;
  min-height: 260px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 1024px) {
  .service-case-study-media {
    min-height: 380px;
    border-bottom: none;
    border-left: 1px solid var(--line);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown,
  .nav-item--dropdown .nav-chevron,
  .nav-mobile-services .nav-chevron,
  .ig-carousel-track {
    transition: none;
  }
}

/* Legal pages — privacy & terms */
.legal-prose {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.legal-prose > p:first-child {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-prose section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.legal-prose h2 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.legal-prose p,
.legal-prose li {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-secondary);
}
.legal-prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-prose a {
  color: var(--accent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}
.legal-prose a:hover {
  color: var(--text-primary);
}

/* Mobile menu — sibling of #nav so fixed positioning isn't broken by nav scroll transform */
#mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
#mobile-menu.hidden-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#mobile-menu a {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0;
}

/* Custom cursor (process page flavor, optional global) */
@media (hover: hover) and (pointer: fine) {
  .magnetic {
    transition: transform 0.3s var(--ease);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .reveal-clip,
  .split-text .word,
  .animate-float,
  .slow-pan,
  .glow-hover::after {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    clip-path: none !important;
  }
}

/* Spin (rotating ring on services page) */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Contact form active timeline chip */
.timeline-btn.is-active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

/* ============================================================
   HERO PROJECT MARQUEE
   ============================================================ */
@keyframes hero-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  align-items: flex-end;
  padding-bottom: 1rem;
  animation: hero-marquee 42s linear infinite;
}

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

/* Responsive card sizes — 1 on mobile, 2 on tablet, 3 on desktop */
.marquee-card {
  flex-shrink: 0;
  /* mobile: single card, nearly full width */
  width: min(88vw, 340px);
  height: 200px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
}

@media (min-width: 640px) {
  .marquee-card {
    width: calc(50vw - 1.25rem); /* 2 visible */
    height: 100%;
  }
}

@media (min-width: 1024px) {
  .marquee-card {
    width: calc(33.33vw - 1.25rem); /* 3 visible */
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ============================================================
   CMS SKELETON LOADERS
   ============================================================ */
.cms-skeleton-block {
  background: var(--line);
}

.cms-skeleton {
  position: relative;
  overflow: hidden;
}

.cms-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: cms-shimmer 1.6s ease-in-out infinite;
}

@keyframes cms-shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-skeleton::after {
    animation: none;
    opacity: 0.35;
    transform: none;
  }
}

/* Contact page — client logo strip */
.client-logos-loaded {
  opacity: 0.5;
  filter: grayscale(100%);
  transition: opacity 0.5s var(--ease), filter 0.5s var(--ease);
}
.client-logos-loaded:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ============================================================
   MOBILE RUNTIME PERFORMANCE OVERRIDES
   ------------------------------------------------------------
   The site is light on bytes, but heavy on GPU work: huge blur
   radii, backdrop-filter on cards, and several never-ending
   animations. On phones this is what causes janky scrolling,
   lag, heat and battery drain — independent of load time.
   These overrides scale that cost down on small / touch screens
   without changing the desktop experience.
   ============================================================ */
@media (max-width: 768px) {
  /* 1. Cap decorative glow-orb blur. A 150px blur over a 700px box
        is ~15x the rasterization cost of a 50px blur. The soft glow
        still reads fine at a smaller radius. */
  [class*="blur-["] {
    filter: blur(50px) !important;
  }

  /* 2. Kill backdrop-filter on glass cards — the biggest scroll-jank
        source on mobile (re-rasterizes everything behind on every
        frame). Swap in a solid translucent surface so text stays
        readable. */
  .glass-card,
  .glass-card:hover {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(21, 21, 21, 0.92);
  }

  /* 3. Stop perpetual decorative animations. They never idle, so the
        compositor never rests. These are purely cosmetic. */
  .animate-float,
  .slow-pan {
    animation: none !important;
  }
  /* slow-pan elements keep their start transform; neutralize the scale
     so nothing looks cropped once the animation is gone. */
  .slow-pan {
    transform: none !important;
  }

  /* 4. The hero marquee is a core feature, keep it — but drop the
        per-card box-shadow that forces a repaint on each animation
        frame. A border is enough definition on a small screen. */
  .marquee-card {
    box-shadow: none;
  }

  /* 5. Remove scroll-reveal entirely on mobile. No fade/slide-in,
        no word-by-word headline reveal, no clip reveal — everything
        is shown in its final state immediately. This kills the
        per-element transitions/layers that animate during scroll. */
  .reveal,
  .reveal-clip {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    clip-path: none !important;
  }
  .split-text .word {
    transform: none !important;
    transition: none !important;
  }

  /* 6. Drop backdrop-filter blur on the sticky nav + mobile menu.
        A backdrop-filter on a fixed element re-rasterizes on every
        scroll frame. Use opaque backgrounds instead. */
  [class*="backdrop-blur"] {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  #nav {
    background-color: rgba(13, 13, 13, 0.96) !important;
  }
}


/* ============================================================
   LAUNCH PACKAGES POPUP (pricing page)
   ============================================================ */
/* Offset the anchor jump so the heading clears the fixed nav + promo bar */
#launch-packages {
  scroll-margin-top: 130px;
}

#launch-modal {
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
#launch-modal.is-open {
  opacity: 1;
}
.launch-modal-card {
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
  opacity: 0;
}
#launch-modal.is-open .launch-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  #launch-modal,
  .launch-modal-card {
    transition: none !important;
    transform: none !important;
  }
}
