/* ============================================================
   Auto Grande — design tokens, layout primitives, components.
   Mirrors the Tailwind 4 theme used by the Next.js source.
   ============================================================ */

:root {
  /* Color palette (OKLCH, identical to globals.css) */
  --background: oklch(0.12 0.01 250);
  --foreground: oklch(0.98 0 0);
  --card: oklch(0.16 0.01 250);
  --card-foreground: oklch(0.98 0 0);
  --popover: oklch(0.16 0.01 250);
  --popover-foreground: oklch(0.98 0 0);
  --primary: oklch(0.85 0.19 92);
  --primary-foreground: oklch(0.12 0.01 250);
  --secondary: oklch(0.22 0.01 250);
  --secondary-foreground: oklch(0.98 0 0);
  --muted: oklch(0.22 0.01 250);
  --muted-foreground: oklch(0.65 0 0);
  --accent: oklch(0.85 0.19 92);
  --accent-foreground: oklch(0.12 0.01 250);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.98 0 0);
  --border: oklch(0.28 0.01 250);
  --input: oklch(0.22 0.01 250);
  --ring: oklch(0.85 0.19 92);

  /* Layout tokens */
  --radius: 1rem;
  --radius-sm: calc(var(--radius) - 12px);
  --radius-md: calc(var(--radius) - 8px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --container-max: 1200px;

  /* Typography */
  --font-sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-inter: 'Inter', system-ui, sans-serif;
}

/* ============================================================ Icon sizing
   The PHP `ag_icon()` helper emits Tailwind-style size classes on every SVG
   (e.g. h-5 w-5). These rules turn those classes into real dimensions so the
   icons don't render at the SVG default of 300x150. */
.h-2   { height: 0.5rem; }   .w-2   { width: 0.5rem; }
.h-3   { height: 0.75rem; }  .w-3   { width: 0.75rem; }
.h-3\.5{ height: 0.875rem; } .w-3\.5{ width: 0.875rem; }
.h-4   { height: 1rem; }     .w-4   { width: 1rem; }
.h-5   { height: 1.25rem; }  .w-5   { width: 1.25rem; }
.h-6   { height: 1.5rem; }   .w-6   { width: 1.5rem; }
.h-7   { height: 1.75rem; }  .w-7   { width: 1.75rem; }
.h-8   { height: 2rem; }     .w-8   { width: 2rem; }
.h-10  { height: 2.5rem; }   .w-10  { width: 2.5rem; }
/* The 2px-stroke icons benefit from a flex-shrink:0 fallback so they don't get
   squashed by tight flex containers like buttons and chips. */
.ag-btn svg, .ag-nav-link svg, .ag-mobile-link svg, .ag-info-card svg,
.ag-detail-chip svg, .ag-feature-icon svg, .ag-hours-icon svg,
.ag-service-card-icon svg, .ag-detail-icon svg, .ag-detail-bento-card svg,
.ag-form-banner svg, .ag-form-error svg, .ag-form-success-icon svg,
.ag-footer-icon, .ag-back-to-top svg, .ag-lightbox-close svg,
.ag-lightbox-nav svg, .ag-gallery-arrow svg, .ag-gallery-tile-zoom svg,
.ag-gallery-tile-badge svg, .ag-gallery-cta svg, .ag-service-card-cta svg,
.ag-detail-navlink-bubble svg, .ag-breadcrumbs svg, .ag-form-success-call svg,
.ag-form-success-pill svg, .ag-mobile-expand svg {
  flex-shrink: 0;
}

/* The HTML `hidden` attribute must always force display:none. Several
   components below set their own display value (flex/block) and would
   otherwise override the UA `[hidden]` rule, leaving invisible overlays
   that swallow clicks. */
[hidden] { display: none !important; }

/* ============================================================ Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { background: none; cursor: pointer; font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.font-inter { font-family: var(--font-inter); }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace; }
.tabular-nums { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link */
.skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link:focus {
  position: fixed; top: 1rem; left: 1rem; z-index: 9999;
  width: auto; height: auto; padding: 0.5rem 1rem; margin: 0;
  background: var(--primary); color: var(--primary-foreground);
  border-radius: 0.5rem; font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3); clip: auto;
}

/* ============================================================ Layout */
.ag-container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 1rem; }
.ag-section { padding: 6rem 0; }
.ag-section-card { background: var(--card); }
.ag-section-secondary { background: color-mix(in oklch, var(--secondary) 20%, var(--background)); }

/* ============================================================ Buttons */
.ag-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.625rem 1rem; border-radius: 0.5rem;
  font-weight: 500; font-size: 0.875rem; line-height: 1; white-space: nowrap;
  transition: all 0.2s ease; outline: none; user-select: none;
  border: 1px solid transparent;
}
.ag-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ag-btn-primary { background: var(--primary); color: var(--primary-foreground); }
.ag-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 25px -5px color-mix(in oklch, var(--primary) 35%, transparent); }
.ag-btn-outline {
  background: transparent; color: var(--foreground);
  border-color: var(--border);
}
.ag-btn-outline:hover { background: var(--secondary); transform: translateY(-1px); }
.ag-btn-lg { padding: 1rem 2rem; font-size: 1.0625rem; border-radius: 0.625rem; }
.ag-btn-sm { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
.ag-btn-block { width: 100%; }

/* ============================================================ Navbar */
.ag-navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: transparent;
  animation: slideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ag-navbar[data-state='scrolled'] {
  background: color-mix(in oklch, var(--background) 95%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.2);
}
.ag-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container-max); margin: 0 auto;
  padding: 1rem;
}
.ag-logo img { height: 2.5rem; width: auto; object-fit: contain; }
.ag-nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 768px) { .ag-nav-links { display: flex; } }

.ag-nav-link {
  position: relative;
  display: inline-flex; align-items: center; gap: 0.25rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}
.ag-nav-link:hover { color: var(--foreground); }
.ag-nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--primary); transition: width 0.3s ease;
}
.ag-nav-link:hover::after { width: 100%; }
.ag-nav-chev { transition: transform 0.2s ease; }
.ag-nav-item-has-children[data-open='true'] .ag-nav-chev { transform: rotate(180deg); }

.ag-nav-item-has-children { position: relative; }
.ag-nav-dropdown {
  position: absolute; left: 0; top: 100%; padding-top: 0.75rem;
  min-width: 260px; opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 1;
}
.ag-nav-item-has-children[data-open='true'] .ag-nav-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.ag-nav-dropdown::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0.75rem; bottom: 0;
  background: color-mix(in oklch, var(--background) 98%, transparent);
  border: 1px solid var(--border); border-radius: 0.5rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  z-index: 0;
}
.ag-nav-dropdown-item {
  position: relative; z-index: 2;
  display: block; padding: 0.625rem 1rem; font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: background 0.15s ease, color 0.15s ease;
}
.ag-nav-dropdown-item:hover {
  color: var(--foreground);
  background: color-mix(in oklch, var(--secondary) 60%, transparent);
}
.ag-nav-dropdown-item:first-child { border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; }
.ag-nav-dropdown-item:last-child  { border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.ag-nav-dropdown-item + .ag-nav-dropdown-item { border-top: 1px solid color-mix(in oklch, var(--border) 50%, transparent); }

.ag-cta-desktop { display: none; }
@media (min-width: 768px) { .ag-cta-desktop { display: inline-flex; } }

.ag-mobile-toggle {
  display: inline-flex; padding: 0.25rem; border-radius: 0.375rem; color: var(--foreground);
  position: relative; width: 2rem; height: 2rem; align-items: center; justify-content: center;
}
.ag-mobile-toggle:hover { background: var(--secondary); }
@media (min-width: 768px) { .ag-mobile-toggle { display: none; } }
.ag-mobile-toggle-icon { position: absolute; transition: opacity 0.15s ease, transform 0.15s ease; }
.ag-mobile-toggle-icon-close { opacity: 0; transform: rotate(-90deg); }
.ag-mobile-toggle[aria-expanded='true'] .ag-mobile-toggle-icon[data-icon='menu']  { opacity: 0; transform: rotate(90deg); }
.ag-mobile-toggle[aria-expanded='true'] .ag-mobile-toggle-icon[data-icon='close'] { opacity: 1; transform: rotate(0deg); }

.ag-mobile-menu {
  display: block; overflow: hidden;
  background: color-mix(in oklch, var(--background) 98%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  max-height: 0; opacity: 0;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}
.ag-mobile-menu[data-open='true'] { max-height: 80vh; opacity: 1; }
@media (min-width: 768px) { .ag-mobile-menu { display: none !important; } }
.ag-mobile-list { padding: 1rem; display: flex; flex-direction: column; gap: 0.25rem; max-width: var(--container-max); margin: 0 auto; }
.ag-mobile-link {
  display: block; padding: 0.625rem 0.5rem; border-radius: 0.5rem;
  color: var(--muted-foreground); font-weight: 500; transition: all 0.2s ease;
}
.ag-mobile-link:hover { color: var(--primary); background: color-mix(in oklch, var(--secondary) 50%, transparent); }
.ag-mobile-row { display: flex; align-items: stretch; }
.ag-mobile-link-flex { flex: 1; }
.ag-mobile-expand {
  padding: 0 0.75rem; color: var(--muted-foreground); border-radius: 0.5rem;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  display: inline-flex; align-items: center;
}
.ag-mobile-expand:hover { color: var(--primary); background: color-mix(in oklch, var(--secondary) 50%, transparent); }
.ag-mobile-expand[aria-expanded='true'] svg { transform: rotate(180deg); }
.ag-mobile-sublist {
  padding-left: 1rem; border-left: 1px solid var(--border); margin: 0.25rem 0 0.25rem 0.75rem;
  overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.2s ease, opacity 0.2s ease;
}
.ag-mobile-sublist[data-open='true'] { max-height: 600px; opacity: 1; }
.ag-mobile-sublink {
  display: block; padding: 0.5rem; font-size: 0.875rem;
  color: var(--muted-foreground); border-radius: 0.5rem; transition: all 0.2s ease;
}
.ag-mobile-sublink:hover { color: var(--primary); background: color-mix(in oklch, var(--secondary) 50%, transparent); }
.ag-mobile-cta-wrap { padding-top: 0.5rem; }

/* ============================================================ Hero */
.ag-hero {
  position: relative; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ag-hero-video, .ag-hero-fallback {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.ag-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in oklch, var(--background) 80%, transparent),
    color-mix(in oklch, var(--background) 70%, transparent),
    var(--background));
}
.ag-hero-glow {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.ag-hero-glow-1 { top: 25%; left: 25%; width: 24rem; height: 24rem; background: color-mix(in oklch, var(--primary) 10%, transparent); }
.ag-hero-glow-2 { bottom: 25%; right: 25%; width: 16rem; height: 16rem; background: color-mix(in oklch, var(--primary) 5%, transparent); }
.ag-hero-content {
  position: relative; z-index: 10; padding-top: 5rem; text-align: center;
  max-width: 56rem; margin: 0 auto;
}
.ag-hero-badge {
  display: inline-block; padding: 0.5rem 1rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  border-radius: 9999px; color: var(--primary);
  font-family: var(--font-inter); font-size: 0.875rem; font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.ag-hero h1 {
  font-size: clamp(2.25rem, 5vw + 1rem, 4.5rem);
  margin-bottom: 1.5rem; line-height: 1.05; letter-spacing: -0.02em;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
  text-wrap: balance;
}
.ag-hero h1 .ag-accent { color: var(--primary); }
.ag-hero p {
  font-size: clamp(1rem, 0.5vw + 0.95rem, 1.25rem);
  color: var(--muted-foreground);
  max-width: 36rem; margin: 0 auto 2.5rem;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}
.ag-hero-ctas {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}
@media (min-width: 640px) { .ag-hero-ctas { flex-direction: row; } }
.ag-hero-stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem;
  margin-top: 4rem;
  animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s both;
}
@media (min-width: 768px) { .ag-hero-stats { grid-template-columns: repeat(4, 1fr); } }
.ag-hero-stat-value { font-size: clamp(1.875rem, 2vw + 1rem, 2.5rem); font-weight: 700; color: var(--primary); margin-bottom: 0.25rem; font-variant-numeric: tabular-nums; }
.ag-hero-stat-label { font-size: 0.875rem; color: var(--muted-foreground); font-family: var(--font-inter); }

.ag-hero-scroll {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  pointer-events: none; opacity: 0;
  animation: fadeIn 1s ease 1s forwards;
}
.ag-hero-scroll-mouse {
  width: 1.5rem; height: 2.5rem;
  border: 2px solid color-mix(in oklch, var(--muted-foreground) 30%, transparent);
  border-radius: 9999px;
  display: flex; justify-content: center; padding-top: 0.5rem;
  animation: scrollBob 2s ease-in-out infinite;
}
.ag-hero-scroll-mouse::before {
  content: ''; width: 0.375rem; height: 0.75rem;
  background: var(--primary); border-radius: 9999px;
}
@keyframes scrollBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============================================================ Section heading */
.ag-eyebrow { color: var(--primary); font-weight: 500; margin-bottom: 1rem; display: block; font-size: 0.95rem; }
.ag-section-title { font-size: clamp(1.875rem, 2.5vw + 1rem, 3rem); margin-bottom: 1.5rem; text-wrap: balance; }
.ag-section-lead {
  font-size: 1.125rem; color: var(--muted-foreground);
  max-width: 36rem; margin: 0 auto;
  text-wrap: pretty;
}
.ag-section-header { text-align: center; max-width: 56rem; margin: 0 auto 4rem; }

/* ============================================================ About / Why-Us / 4-card feature grid */
.ag-feature-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
@media (min-width: 768px) { .ag-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ag-feature-grid { grid-template-columns: repeat(4, 1fr); } }
.ag-feature-card {
  background: var(--background);
  border-radius: 1rem; padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ag-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px color-mix(in oklch, var(--primary) 5%, transparent);
}
.ag-feature-card-center { text-align: center; }
.ag-feature-card-center .ag-feature-icon { margin: 0 auto 1.25rem; width: 3rem; height: 3rem; }
.ag-feature-icon {
  width: 2.5rem; height: 2.5rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--primary);
  transition: background 0.3s ease;
}
.ag-feature-card:hover .ag-feature-icon { background: color-mix(in oklch, var(--primary) 20%, transparent); }
.ag-feature-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.ag-feature-text { font-size: 0.875rem; color: var(--muted-foreground); font-family: var(--font-inter); line-height: 1.6; }

/* ============================================================ Services grid (homepage 2-col bento) */
.ag-services-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ag-services-grid { grid-template-columns: repeat(2, 1fr); } }
.ag-service-card {
  position: relative; display: block; height: 100%;
  background: var(--card);
  border: 1px solid var(--border); border-radius: 1rem; padding: 2rem;
  overflow: hidden; transition: all 0.3s ease;
}
.ag-service-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklch, var(--primary) 40%, transparent);
  background: color-mix(in oklch, var(--card) 90%, transparent);
}
.ag-service-card-num {
  position: absolute; top: -1.5rem; right: -0.75rem;
  font-weight: 700; font-size: 5rem; letter-spacing: -0.05em;
  color: color-mix(in oklch, var(--primary) 5%, transparent);
  pointer-events: none; user-select: none;
  transition: color 0.3s ease;
}
.ag-service-card:hover .ag-service-card-num {
  color: color-mix(in oklch, var(--primary) 10%, transparent);
}
.ag-service-card-row { position: relative; display: flex; gap: 1.25rem; align-items: flex-start; }
.ag-service-card-iconwrap {
  position: relative; flex-shrink: 0;
}
.ag-service-card-iconwrap::before {
  content: ''; position: absolute; inset: 0;
  background: color-mix(in oklch, var(--primary) 20%, transparent);
  filter: blur(12px); opacity: 0; transition: opacity 0.3s ease;
}
.ag-service-card:hover .ag-service-card-iconwrap::before { opacity: 1; }
.ag-service-card-icon {
  position: relative; width: 3rem; height: 3rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  outline: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  border-radius: 0.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); transition: all 0.3s ease;
}
.ag-service-card:hover .ag-service-card-icon {
  background: color-mix(in oklch, var(--primary) 15%, transparent);
  outline-color: color-mix(in oklch, var(--primary) 40%, transparent);
}
.ag-service-card-body { flex: 1; min-width: 0; }
.ag-service-card-tag {
  display: block; font-family: var(--font-inter);
  font-size: 0.625rem; font-weight: 500; letter-spacing: 0.2em;
  color: var(--primary); margin-bottom: 0.5rem;
}
.ag-service-card-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; line-height: 1.3; }
.ag-service-card-text { font-size: 0.875rem; color: var(--muted-foreground); margin-bottom: 1.25rem; line-height: 1.6; }
.ag-service-card-features { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.ag-service-card-features li {
  display: flex; align-items: center; gap: 0.625rem;
  font-size: 0.75rem; color: var(--muted-foreground); font-family: var(--font-inter);
}
.ag-service-card-features li::before {
  content: ''; width: 0.25rem; height: 0.25rem;
  background: var(--primary); border-radius: 50%;
}
.ag-service-card-cta {
  display: inline-flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; font-weight: 500; color: var(--primary);
}
.ag-service-card:hover .ag-service-card-cta svg { transform: translateX(4px); }
.ag-service-card-cta svg { transition: transform 0.2s ease; }

/* ============================================================ Hours card */
.ag-hours-card {
  border-radius: 1.5rem; padding: 3rem;
  background: var(--card);
  max-width: 56rem; margin: 0 auto;
}
@media (max-width: 767px) { .ag-hours-card { padding: 2rem; } }
.ag-hours-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 768px) {
  .ag-hours-grid { grid-template-columns: repeat(3, 1fr); }
  .ag-hours-grid > * + * { border-left: 1px solid var(--border); }
}
@media (max-width: 767px) {
  .ag-hours-grid > * + * { border-top: 1px solid var(--border); padding-top: 1rem; }
}
.ag-hours-block { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 2rem; }
.ag-hours-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.ag-hours-label { font-weight: 600; margin-bottom: 0.5rem; }
.ag-hours-value-lg { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.ag-hours-text { color: var(--muted-foreground); font-family: var(--font-inter); }
.ag-hours-text-sm { font-size: 0.875rem; margin-top: 0.25rem; }

/* ============================================================ Gallery preview carousel */
.ag-gallery-section { background: color-mix(in oklch, var(--secondary) 20%, transparent); overflow: hidden; }
.ag-gallery-track-wrap { overflow: hidden; }
.ag-gallery-track {
  display: flex; gap: 0.75rem; will-change: transform;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ag-gallery-track.is-dragging { transition: none; }
.ag-gallery-slide {
  flex: 0 0 50%; min-width: 0;
}
@media (min-width: 640px) { .ag-gallery-slide { flex: 0 0 33.333%; } }
@media (min-width: 1024px) { .ag-gallery-slide { flex: 0 0 25%; } }
.ag-gallery-tile {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--card);
}
.ag-gallery-tile img, .ag-gallery-tile video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.ag-gallery-tile:hover img, .ag-gallery-tile:hover video { transform: scale(1.05); }
.ag-gallery-tile-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s ease;
}
.ag-gallery-tile:hover .ag-gallery-tile-overlay { background: rgba(0,0,0,0.35); }
.ag-gallery-tile-zoom {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease;
}
.ag-gallery-tile:hover .ag-gallery-tile-zoom { opacity: 1; }
.ag-gallery-tile-zoom > div {
  width: 2.5rem; height: 2.5rem; border-radius: 0.25rem;
  background: rgba(0,0,0,0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ag-gallery-tile-badge {
  position: absolute; left: 0.5rem; bottom: 0.5rem;
  background: rgba(0,0,0,0.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  padding: 0.125rem 0.375rem; border-radius: 0.25rem;
  display: inline-flex; align-items: center; gap: 0.25rem;
  color: #fff; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.05em;
}
.ag-gallery-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-top: 1.5rem;
}
.ag-gallery-arrows { display: flex; gap: 0.5rem; }
.ag-gallery-arrow {
  width: 2.25rem; height: 2.25rem; border: 1px solid var(--border); border-radius: 0.25rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted-foreground); transition: all 0.15s ease;
}
.ag-gallery-arrow:hover { border-color: var(--primary); color: var(--primary); }
.ag-gallery-dots { display: flex; align-items: center; gap: 0.375rem; flex-wrap: wrap; max-width: 50%; }
.ag-gallery-dot {
  width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: var(--border);
  transition: all 0.3s ease;
}
.ag-gallery-dot:hover { background: var(--muted-foreground); }
.ag-gallery-dot[data-active='true'] { width: 1.25rem; background: var(--primary); }
.ag-gallery-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); transition: color 0.15s ease;
}
.ag-gallery-cta:hover { color: var(--primary); }
.ag-gallery-cta:hover svg { transform: translateX(2px); }
.ag-gallery-cta svg { transition: transform 0.15s ease; }

/* ============================================================ Full gallery (filter + grid) */
.ag-gallery-tabs {
  display: flex; align-items: center; gap: 0.5rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.ag-gallery-tab {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.25rem;
  font-size: 0.875rem; font-weight: 500;
  color: var(--muted-foreground); background: transparent;
  transition: all 0.15s ease;
}
.ag-gallery-tab:hover { color: var(--foreground); background: var(--secondary); }
.ag-gallery-tab[aria-selected='true'] { background: var(--primary); color: var(--primary-foreground); }
.ag-gallery-tab-count {
  font-variant-numeric: tabular-nums; font-size: 0.75rem;
  padding: 0.125rem 0.375rem; border-radius: 9999px;
  background: var(--secondary); color: var(--muted-foreground);
}
.ag-gallery-tab[aria-selected='true'] .ag-gallery-tab-count {
  background: color-mix(in oklch, var(--primary-foreground) 20%, transparent);
  color: var(--primary-foreground);
}
.ag-gallery-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .ag-gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ag-gallery-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================ Lightbox (used by gallery preview + full gallery) */
.ag-lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
.ag-lightbox[data-open='true'] { opacity: 1; pointer-events: auto; }
.ag-lightbox-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  padding: 0.5rem; color: rgba(255,255,255,0.7); border-radius: 0.5rem;
  transition: all 0.15s ease;
}
.ag-lightbox-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ag-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  padding: 0.5rem; color: rgba(255,255,255,0.7); border-radius: 0.5rem;
  transition: all 0.15s ease;
}
.ag-lightbox-nav:hover { color: #fff; background: rgba(255,255,255,0.1); }
.ag-lightbox-prev { left: 0.75rem; }
.ag-lightbox-next { right: 0.75rem; }
@media (min-width: 768px) {
  .ag-lightbox-prev { left: 1.5rem; }
  .ag-lightbox-next { right: 1.5rem; }
}
.ag-lightbox-stage {
  position: relative; width: 100%; max-width: 64rem; margin: 0 3.5rem;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
@media (min-width: 768px) { .ag-lightbox-stage { margin: 0 5rem; } }
.ag-lightbox-stage img,
.ag-lightbox-stage video {
  width: 100%; height: 100%; object-fit: contain;
  animation: lightboxIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.ag-lightbox-counter {
  position: absolute; bottom: 1rem; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,0.4); font-size: 0.75rem; font-variant-numeric: tabular-nums;
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}

/* ============================================================ Contact form */
.ag-contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .ag-contact-grid { grid-template-columns: 1fr 1fr; } }
.ag-contact-form-card {
  background: var(--background);
  border-radius: 1rem; padding: 2rem;
}
.ag-contact-form-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.ag-form-row { margin-bottom: 1.5rem; }
.ag-form-row:last-of-type { margin-bottom: 0; }
.ag-form-label {
  display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.5rem;
}
.ag-form-label .ag-req { color: var(--primary); }
.ag-form-input, .ag-form-textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  background: var(--card); color: var(--foreground);
  border: 1px solid var(--border); border-radius: 0.5rem;
  font: inherit; font-size: 0.875rem; line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ag-form-input::placeholder, .ag-form-textarea::placeholder { color: var(--muted-foreground); }
.ag-form-input:focus, .ag-form-textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--primary) 25%, transparent);
}
.ag-form-input[aria-invalid='true'], .ag-form-textarea[aria-invalid='true'] {
  border-color: var(--destructive);
  box-shadow: 0 0 0 2px color-mix(in oklch, var(--destructive) 25%, transparent);
}
.ag-form-textarea { resize: none; min-height: 7rem; }
.ag-form-meta { margin-top: 0.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; font-size: 0.75rem; color: var(--muted-foreground); }
.ag-form-error {
  margin-top: 0.5rem;
  display: flex; align-items: center; gap: 0.375rem;
  font-size: 0.875rem; color: var(--destructive);
  animation: shake 0.3s ease;
}
.ag-form-error svg { flex-shrink: 0; }
.ag-form-banner {
  display: flex; gap: 0.5rem; padding: 0.75rem; margin-bottom: 1rem;
  border: 1px solid color-mix(in oklch, var(--destructive) 40%, transparent);
  background: color-mix(in oklch, var(--destructive) 10%, transparent);
  color: var(--destructive); border-radius: 0.5rem; font-size: 0.875rem;
}
.ag-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ag-form-spinner {
  width: 1rem; height: 1rem; border: 2px solid color-mix(in oklch, var(--primary-foreground) 30%, transparent);
  border-top-color: var(--primary-foreground); border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

/* Success state */
.ag-form-success {
  position: relative; overflow: hidden;
  border-radius: 0.75rem; padding: 2.5rem 1rem; text-align: center;
}
.ag-form-success::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 10rem;
  background: radial-gradient(ellipse at top, color-mix(in oklch, var(--primary) 12%, transparent), transparent 70%);
  pointer-events: none;
}
.ag-form-success-icon-wrap {
  position: relative; margin: 0 auto 1.5rem; width: 5rem; height: 5rem;
}
.ag-form-success-pulse, .ag-form-success-pulse-inner {
  position: absolute; inset: 0; border-radius: 50%;
  background: color-mix(in oklch, var(--primary) 25%, transparent);
  animation: successPulse 1.1s ease-out 0.1s 1 forwards;
}
.ag-form-success-pulse-inner {
  inset: 0.5rem;
  background: color-mix(in oklch, var(--primary) 20%, transparent);
  animation-delay: 0.2s;
}
@keyframes successPulse {
  0%   { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}
.ag-form-success-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 5rem; height: 5rem; border-radius: 50%; background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 10px 25px -5px color-mix(in oklch, var(--primary) 30%, transparent);
  animation: successPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
}
@keyframes successPop {
  0%   { transform: scale(0.3) rotate(-12deg); }
  60%  { transform: scale(1.05) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.ag-form-success h4 { font-size: 1.5rem; margin-bottom: 0.5rem; text-wrap: balance; animation: fadeInUp 0.3s ease 0.3s both; }
.ag-form-success p  { color: var(--muted-foreground); max-width: 22rem; margin: 0 auto; text-wrap: pretty; animation: fadeInUp 0.3s ease 0.36s both; }
.ag-form-success-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 1.25rem;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  border: 1px solid var(--border); background: color-mix(in oklch, var(--card) 60%, transparent);
  font-size: 0.75rem; color: var(--muted-foreground);
  animation: fadeInUp 0.3s ease 0.42s both;
}
.ag-form-success-pill svg { color: var(--primary); }
.ag-form-success-actions {
  margin-top: 1.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.75rem;
  animation: fadeInUp 0.3s ease 0.48s both;
}
@media (min-width: 640px) { .ag-form-success-actions { flex-direction: row; } }
.ag-form-success-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  border: 1px solid color-mix(in oklch, var(--primary) 40%, transparent);
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  color: var(--foreground); font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s ease;
}
.ag-form-success-call:hover { background: color-mix(in oklch, var(--primary) 20%, transparent); }
.ag-form-success-call svg { color: var(--primary); }
.ag-form-success-reset {
  font-size: 0.875rem; color: var(--muted-foreground);
  text-decoration: none; padding: 0.25rem 0.5rem;
}
.ag-form-success-reset:hover { color: var(--primary); text-decoration: underline; }

/* ============================================================ Contact info cards + map */
.ag-info-cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .ag-info-cards { grid-template-columns: repeat(2, 1fr); } }
.ag-info-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; background: var(--background); border-radius: 0.75rem;
  transition: all 0.3s ease;
}
.ag-info-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.ag-info-card-icon {
  width: 2.5rem; height: 2.5rem; flex-shrink: 0;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  border-radius: 0.5rem;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary); transition: background 0.3s ease;
}
.ag-info-card:hover .ag-info-card-icon { background: color-mix(in oklch, var(--primary) 20%, transparent); }
.ag-info-card-label { font-size: 0.875rem; color: var(--muted-foreground); }
.ag-info-card-value { font-weight: 600; }
.ag-map {
  border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); height: 350px;
}
.ag-map iframe { width: 100%; height: 100%; border: 0; filter: invert(90%) hue-rotate(180deg); }

/* ============================================================ Footer */
.ag-footer { background: var(--background); border-top: 1px solid var(--border); padding: 3rem 0 2rem; }
.ag-footer-grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .ag-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.ag-footer-brand {
  display: inline-block; font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem;
  transition: opacity 0.2s ease;
}
.ag-footer-brand span { color: var(--primary); }
.ag-footer-brand:hover { opacity: 0.8; }
.ag-footer-blurb { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.6; }
.ag-footer-heading {
  font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ag-footer-list { display: flex; flex-direction: column; gap: 0.625rem; }
.ag-footer-list a { color: var(--muted-foreground); font-size: 0.875rem; transition: color 0.2s ease; }
.ag-footer-list a:hover { color: var(--primary); }
.ag-footer-contact li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--muted-foreground); font-size: 0.875rem; }
.ag-footer-icon { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.ag-footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  text-align: center; color: var(--muted-foreground); font-size: 0.875rem;
}
@media (min-width: 768px) {
  .ag-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
}
.ag-footer-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1.5rem; font-size: 0.875rem; }
.ag-footer-legal a { color: var(--muted-foreground); transition: color 0.2s ease; }
.ag-footer-legal a:hover { color: var(--primary); }

/* ============================================================ Back-to-top */
.ag-back-to-top {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50;
  width: 2.75rem; height: 2.75rem;
  background: var(--primary); color: var(--primary-foreground);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px -5px color-mix(in oklch, var(--primary) 30%, transparent);
  transition: all 0.15s ease;
  opacity: 0; transform: translateY(12px);
}
.ag-back-to-top[data-visible='true'] { opacity: 1; transform: translateY(0); }
.ag-back-to-top:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 15px 30px -5px color-mix(in oklch, var(--primary) 50%, transparent); }
.ag-back-to-top:active { transform: scale(0.95); filter: brightness(0.95); }

/* ============================================================ Reveal-on-scroll */
[data-reveal] {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
[data-reveal='left']  { transform: translateX(-30px); }
[data-reveal='right'] { transform: translateX(30px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================ Service detail page */
.ag-detail-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.ag-detail-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ag-detail-hero-bg::before, .ag-detail-hero-bg::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px);
}
.ag-detail-hero-bg::before { top: -10rem; right: -5rem; width: 32rem; height: 32rem; background: color-mix(in oklch, var(--primary) 10%, transparent); }
.ag-detail-hero-bg::after  { bottom: -10rem; left: -5rem; width: 24rem; height: 24rem; background: color-mix(in oklch, var(--primary) 5%, transparent); }
.ag-breadcrumbs {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.875rem; color: var(--muted-foreground);
  padding: 0.5rem 0 2rem;
}
.ag-breadcrumbs a { transition: color 0.15s ease; }
.ag-breadcrumbs a:hover { color: var(--foreground); }
.ag-breadcrumbs svg { opacity: 0.6; }
.ag-breadcrumbs .ag-breadcrumbs-current { color: var(--foreground); font-weight: 500; }
.ag-detail-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 4rem;
}
@media (min-width: 1024px) {
  .ag-detail-grid { grid-template-columns: 8fr 4fr; padding-bottom: 6rem; }
}
.ag-detail-icon-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.ag-detail-icon-wrap { position: relative; }
.ag-detail-icon-wrap::before {
  content: ''; position: absolute; inset: 0; border-radius: 1rem;
  background: color-mix(in oklch, var(--primary) 20%, transparent);
  filter: blur(16px);
}
.ag-detail-icon {
  position: relative;
  width: 4rem; height: 4rem; border-radius: 1rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent);
  outline: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
  display: inline-flex; align-items: center; justify-content: center; color: var(--primary);
}
.ag-detail-mono {
  font-family: var(--font-inter); font-size: 0.75rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.ag-detail-brand { font-size: 0.875rem; font-weight: 500; color: var(--primary); }
.ag-detail-title {
  font-size: clamp(2.5rem, 4vw + 1rem, 5rem); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 1.5rem; text-wrap: balance;
}
.ag-detail-tagline { font-size: 1.125rem; color: var(--muted-foreground); max-width: 36rem; margin-bottom: 2rem; line-height: 1.6; }
.ag-detail-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.ag-detail-chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 9999px; padding: 0.5rem 1rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.ag-detail-chip svg { color: var(--primary); }
.ag-detail-bignum {
  font-weight: 700; font-size: 12rem; line-height: 1; letter-spacing: -0.05em;
  background: linear-gradient(to bottom, color-mix(in oklch, var(--primary) 20%, transparent), color-mix(in oklch, var(--primary) 0%, transparent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.04);
  user-select: none;
}
.ag-detail-bignum-wrap { display: none; align-items: center; justify-content: flex-end; }
@media (min-width: 1024px) { .ag-detail-bignum-wrap { display: flex; } }
.ag-detail-rule { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.ag-detail-rule::before { content: ''; width: 2rem; height: 1px; background: var(--primary); }
.ag-detail-rule h2 { font-size: 0.75rem; color: var(--primary); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.ag-detail-prose { display: flex; flex-direction: column; gap: 1.25rem; font-size: 1rem; color: var(--muted-foreground); line-height: 1.7; }
@media (min-width: 768px) { .ag-detail-prose { font-size: 1.125rem; } }
.ag-detail-side {
  position: sticky; top: 7rem;
  background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 5%, transparent), var(--card), var(--card));
  border: 1px solid var(--border); border-radius: 1rem; padding: 1.5rem;
  overflow: hidden;
}
.ag-detail-side::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in oklch, var(--primary) 40%, transparent), transparent);
}
.ag-detail-side h2 {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}
.ag-detail-side ul { display: flex; flex-direction: column; gap: 0.75rem; }
.ag-detail-side li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; }
.ag-detail-side-check {
  width: 1.25rem; height: 1.25rem; border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 15%, transparent);
  color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 0.125rem;
}
.ag-detail-bento { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 768px) { .ag-detail-bento { grid-template-columns: repeat(2, 1fr); } }
.ag-detail-bento-card {
  position: relative; background: var(--card); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.75rem; overflow: hidden; transition: all 0.3s ease;
}
.ag-detail-bento-card:hover { background: color-mix(in oklch, var(--card) 90%, transparent); border-color: color-mix(in oklch, var(--primary) 40%, transparent); }
.ag-detail-bento-num {
  position: absolute; top: -2rem; right: -1.5rem;
  font-weight: 700; font-size: 5rem; letter-spacing: -0.05em;
  color: color-mix(in oklch, var(--primary) 5%, transparent);
  user-select: none; pointer-events: none; transition: color 0.3s ease;
}
.ag-detail-bento-card:hover .ag-detail-bento-num { color: color-mix(in oklch, var(--primary) 10%, transparent); }
.ag-detail-bento-tag {
  position: relative; display: inline-block; font-family: var(--font-inter);
  font-size: 0.75rem; letter-spacing: 0.2em; color: var(--primary); margin-bottom: 1rem;
}
.ag-detail-bento-card h4 { position: relative; font-size: 1.125rem; margin-bottom: 0.5rem; line-height: 1.3; }
.ag-detail-bento-card p { position: relative; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.6; }

.ag-detail-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in oklch, var(--primary) 10%, transparent), var(--card), var(--card));
  border: 1px solid color-mix(in oklch, var(--primary) 20%, transparent);
  border-radius: 1.5rem; padding: 2rem;
}
@media (min-width: 768px) { .ag-detail-cta { padding: 3rem; } }
.ag-detail-cta::before {
  content: ''; position: absolute; top: -6rem; right: -6rem; width: 20rem; height: 20rem;
  background: color-mix(in oklch, var(--primary) 10%, transparent); border-radius: 50%; filter: blur(60px);
  pointer-events: none;
}
.ag-detail-cta-row {
  position: relative;
  display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 1024px) { .ag-detail-cta-row { flex-direction: row; align-items: center; justify-content: space-between; } }
.ag-detail-cta h2 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2.25rem);
  margin-bottom: 0.75rem; line-height: 1.2; text-wrap: balance;
}
.ag-detail-cta h2 span { color: var(--primary); }
.ag-detail-cta p { color: var(--muted-foreground); }
.ag-detail-cta-buttons { display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .ag-detail-cta-buttons { flex-direction: row; } }

.ag-detail-nav {
  display: grid; grid-template-columns: 1fr; gap: 0.75rem;
}
@media (min-width: 640px) { .ag-detail-nav { grid-template-columns: 1fr 1fr; } }
.ag-detail-navlink {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.25rem; border: 1px solid var(--border); border-radius: 1rem;
  transition: all 0.2s ease;
}
.ag-detail-navlink:hover { background: var(--card); border-color: color-mix(in oklch, var(--primary) 40%, transparent); }
.ag-detail-navlink-bubble {
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem;
  background: color-mix(in oklch, var(--secondary) 60%, transparent);
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground);
  flex-shrink: 0; transition: all 0.2s ease;
}
.ag-detail-navlink:hover .ag-detail-navlink-bubble { background: color-mix(in oklch, var(--primary) 15%, transparent); color: var(--primary); }
.ag-detail-navlink:hover .ag-detail-navlink-bubble svg { transform: translateX(-2px); }
.ag-detail-navlink-next:hover .ag-detail-navlink-bubble svg { transform: translateX(2px); }
.ag-detail-navlink-bubble svg { transition: transform 0.2s ease; }
.ag-detail-navlink-meta { display: flex; flex-direction: column; gap: 0.125rem; min-width: 0; }
.ag-detail-navlink-eyebrow { font-size: 0.75rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.05em; }
.ag-detail-navlink-title { font-size: 0.875rem; font-weight: 600; }
.ag-detail-navlink-next { justify-self: end; text-align: right; }
@media (min-width: 640px) { .ag-detail-navlink-next .ag-detail-navlink-bubble { order: 2; } .ag-detail-navlink-next .ag-detail-navlink-meta { order: 1; } }
.ag-detail-navlink-empty { border-style: dashed; }

/* ============================================================ Legal pages */
.ag-legal { padding-top: 8rem; padding-bottom: 6rem; }
.ag-legal-wrap { max-width: 48rem; margin: 0 auto; padding: 0 1rem; }
.ag-legal-meta { font-size: 0.875rem; color: var(--muted-foreground); }
.ag-legal-prose { display: flex; flex-direction: column; gap: 2rem; color: var(--muted-foreground); line-height: 1.7; }
.ag-legal-prose h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; color: var(--foreground); }
.ag-legal-prose ul { display: flex; flex-direction: column; gap: 0.5rem; padding-left: 1.5rem; list-style: disc; margin-top: 0.5rem; }
.ag-legal-prose a { color: var(--primary); }
.ag-legal-prose a:hover { text-decoration: underline; }

/* ============================================================ Page wrapper for inner pages (avoid hero overlap) */
.ag-page-padding { padding-top: 5rem; }

/* ============================================================ Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
