/* ==========================================================================
   HADRIAN ENGINEERING WORKS — DESIGN SYSTEM & HOMEPAGE STYLESHEET
   Faithful visual & interaction recreation of searchmodifiers.com
   ========================================================================== */

/* 1. TOKENS & THEMING */
:root {
  --brand: #f97316;
  --accent-from: #fb923c;
  --accent-via: #f97316;
  --accent-to: #fbbf24;
  --rose: #fb7185;
  --amber: #fbbf24;
  --emerald: #10b981;
  --cyan: #06b6d4;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-geist: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --font-display: "Outfit", "Plus Jakarta Sans", var(--font-geist);
  --font-outfit: "Outfit", var(--font-geist);

  --r-sm: 0.75rem;
  --r-md: 1rem;
  --r-lg: 1.5rem;
  --r-xl: 2rem;
  --r-full: 9999px;

  --wrap: 1200px;
  --header-h: 64px;
}

/* Light Theme (Default) */
:root, :root.light, html.light {
  --background: #f8fafc;
  --foreground: #0f172a;
  --muted: #64748b;
  --card: rgba(255, 255, 255, 0.75);
  --card-solid: #ffffff;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --glow: rgba(249, 115, 22, 0.12);
  --surface: #ffffff;
  --surface-hover: rgba(15, 23, 42, 0.04);
  --nav-bg: rgba(248, 250, 252, 0.85);
  --nav-border: rgba(15, 23, 42, 0.06);
  --glass-from: rgba(255, 255, 255, 0.85);
  --glass-to: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-shadow: rgba(0, 0, 0, 0.05);
  --mesh-spot-1: rgba(249, 115, 22, 0.06);
  --mesh-spot-2: rgba(251, 113, 133, 0.05);
  --mesh-spot-3: rgba(251, 191, 36, 0.05);
  --grid-line: rgba(15, 23, 42, 0.04);
  --scrollbar-thumb: rgba(148, 163, 184, 0.3);
  --scrollbar-thumb-hover: rgba(148, 163, 184, 0.5);
  color-scheme: light;
}

/* Dark Theme */
:root.dark, html.dark {
  --background: #030712;
  --foreground: #f8fafc;
  --muted: #94a3b8;
  --card: rgba(15, 23, 42, 0.65);
  --card-solid: #0f172a;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.2);
  --glow: rgba(249, 115, 22, 0.18);
  --surface: #0f172a;
  --surface-hover: rgba(255, 255, 255, 0.05);
  --nav-bg: rgba(3, 7, 18, 0.82);
  --nav-border: rgba(255, 255, 255, 0.08);
  --glass-from: rgba(15, 23, 42, 0.78);
  --glass-to: rgba(15, 23, 42, 0.42);
  --glass-border: rgba(148, 163, 184, 0.12);
  --glass-shadow: rgba(0, 0, 0, 0.65);
  --mesh-spot-1: rgba(249, 115, 22, 0.16);
  --mesh-spot-2: rgba(251, 113, 133, 0.1);
  --mesh-spot-3: rgba(251, 191, 36, 0.12);
  --grid-line: rgba(148, 163, 184, 0.05);
  --scrollbar-thumb: rgba(148, 163, 184, 0.2);
  --scrollbar-thumb-hover: rgba(148, 163, 184, 0.4);
  color-scheme: dark;
}

/* 2. BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-geist);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img, svg {
  vertical-align: middle;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

@media (min-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 48px));
  }
}

@media (min-width: 1024px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 64px));
  }
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 52px);
}

/* Typography Helpers */
.font-display {
  font-family: var(--font-display);
}

.font-mono {
  font-family: var(--font-mono);
}

.text-muted {
  color: var(--muted);
}

.text-foreground {
  color: var(--foreground);
}

.text-brand {
  color: var(--brand);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

/* Selection */
::selection {
  background: rgba(251, 146, 60, 0.35);
  color: var(--foreground);
}

/* Icons */
.ic {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. VISUAL EFFECTS, OVERLAYS & AMBIENT MOTION */
.mesh-bg {
  background-color: var(--background);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--mesh-spot-1), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, var(--mesh-spot-2), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, var(--mesh-spot-3), transparent);
}

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

.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent);
}

/* Aurora background glow spheres */
.aurora-a {
  will-change: transform;
  animation: 18s ease-in-out infinite aurora-float-a;
}
.aurora-b {
  will-change: transform;
  animation: 22s ease-in-out infinite aurora-float-b;
}
.aurora-c {
  will-change: transform;
  animation: 26s ease-in-out infinite aurora-float-c;
}

@keyframes aurora-float-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(6%, -4%) scale(1.08); }
  66% { transform: translate(-4%, 3%) scale(0.96); }
}
@keyframes aurora-float-b {
  0%, 100% { transform: translate(0, 0) scale(1.05); }
  50% { transform: translate(-6%, 5%) scale(0.95); }
}
@keyframes aurora-float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -6%) scale(1.1); }
}

/* Conic Ring */
.conic-ring {
  background: conic-gradient(from 0deg, transparent, var(--accent-from), transparent 40%, var(--accent-via) 60%, transparent 100%);
  animation: 14s linear infinite spin-slow;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  pointer-events: none;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-via), var(--accent-to));
  transform-origin: 0% 50%;
  transform: scaleX(var(--scroll-progress, 0));
  transition: transform 50ms linear;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

/* Gradient divider line */
.gradient-line {
  position: absolute;
  inset-x: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-from), var(--accent-via), var(--accent-to), transparent);
  background-size: 200% 100%;
  animation: 6s infinite gradient-shift;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Gradient text */
.gradient-text, .grad-text {
  background: linear-gradient(120deg, var(--accent-from), var(--accent-via), var(--accent-to));
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

/* Glass & Glass subtle */
.glass {
  background: linear-gradient(135deg, var(--glass-from) 0%, var(--glass-to) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: 0 1px 2px var(--glass-shadow), 0 24px 80px -32px var(--glass-shadow);
  transition: box-shadow 0.6s var(--ease-spring), border-color 0.6s var(--ease-spring);
}

.glass-subtle {
  background: var(--glass-to);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid var(--glass-border);
  transition: box-shadow 0.6s var(--ease-spring), border-color 0.6s var(--ease-spring);
}

.float-shadow {
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35), 0 10px 30px -10px rgba(249, 115, 22, 0.15), inset 0 1px rgba(255, 255, 255, 0.1);
}

/* Shimmer border */
.shimmer-border {
  position: relative;
  overflow: hidden;
}
.shimmer-border::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  animation: 3.2s ease-in-out infinite shimmer;
  pointer-events: none;
}

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

/* Badge Gradient */
.badge-gradient {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1), rgba(251, 113, 133, 0.08)) padding-box padding-box;
  border: 1px solid transparent;
  position: relative;
}
.badge-gradient::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent-from), var(--accent-via), var(--accent-to));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

/* Gradient Border helper */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--accent-from), var(--accent-via), var(--accent-to));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 0.6s var(--ease-spring);
}
.gradient-border:hover::before {
  opacity: 0.9;
}

/* 3D Tilt & Holographic Lighting */
.tilt-3d {
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform 0.35s var(--ease-spring), box-shadow 0.5s var(--ease-spring);
  will-change: transform;
}
.tilt-3d > .tilt-layer {
  transform: translateZ(40px);
}
.tilt-3d > .tilt-layer-deep {
  transform: translateZ(70px);
}

.holo {
  position: relative;
  overflow: hidden;
}
.holo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(249, 115, 22, 0.18), transparent 45%),
              linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 113, 133, 0.08) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease-spring);
  pointer-events: none;
  z-index: 1;
}
.holo:hover::before {
  opacity: 1;
}

/* Pulse Ring Button */
.pulse-ring {
  position: relative;
}
.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  animation: 2.5s ease-out infinite pulse-ring;
  pointer-events: none;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

/* Dot pulse */
.dot-pulse {
  animation: 2s ease-in-out infinite dot-pulse;
}
@keyframes dot-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.35); }
}

/* Masked word rise animation */
.mask-word {
  vertical-align: bottom;
  padding-bottom: 0.12em;
  line-height: 1.05;
  display: inline-block;
  overflow: hidden;
}
.mask-word > span {
  will-change: transform, opacity, filter;
  display: inline-block;
  transform: translateY(105%);
}
.mask-word.is-in > span {
  animation: mask-rise 0.9s var(--ease-out-expo) forwards;
}

@keyframes mask-rise {
  0% { filter: blur(8px); opacity: 0; transform: translateY(105%); }
  60% { filter: blur(0); opacity: 1; }
  100% { filter: blur(0); opacity: 1; transform: translateY(0); }
}

/* Numeric stamp watermark */
.num-stamp {
  font-family: var(--font-outfit), ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "tnum";
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--accent-from) 0%, var(--accent-via) 55%, transparent 100%);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.28;
  font-weight: 800;
  user-select: none;
}

/* Hover Underline */
.hover-underline {
  position: relative;
}
.hover-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-from), var(--accent-via));
  transform-origin: 100% 50%;
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-spring);
}
.hover-underline:hover::after, a:hover .hover-underline::after {
  transform-origin: 0% 50%;
  transform: scaleX(1);
}

/* Mega text */
.mega-text {
  font-family: var(--font-outfit), ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.04em;
  font-size: clamp(3.2rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.92;
}

/* 4. BUTTONS & CHIPS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.625rem 1.25rem;
  white-space: nowrap;
  transition: all 0.3s var(--ease-spring);
  text-decoration: none;
}

.btn .ic {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s var(--ease-spring);
}

.btn:hover .ic {
  transform: translate(2px, -2px);
}

/* Primary Button */
.btn-primary {
  background: linear-gradient(100deg, #fb923c 0%, #f97316 50%, #f43f5e 100%);
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 10px 24px -6px rgba(249, 115, 22, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 32px -8px rgba(249, 115, 22, 0.5);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.96);
}

/* Outline / Ghost Button */
.btn-ghost, .btn-outline {
  background: var(--surface-hover);
  color: var(--muted);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover, .btn-outline:hover {
  background: var(--surface);
  color: var(--foreground);
  border-color: rgba(249, 115, 22, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -4px var(--glass-shadow);
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
}

/* Text link with arrow */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  transition: gap 0.25s var(--ease-spring), color 0.2s;
}
.link:hover {
  gap: 0.625rem;
  color: #ea580c;
}
.link .ic {
  transition: transform 0.25s var(--ease-spring);
}
.link:hover .ic {
  transform: translate(2px, -2px);
}

/* 5. TOPBAR */
.topbar {
  position: fixed;
  inset-x: 0;
  top: 0;
  height: 40px;
  z-index: 70;
  display: flex;
  align-items: center;
  background: #0a1628;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  font-size: 0.8125rem;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar-link:hover {
  color: #ffffff;
}
.topbar-link .ic {
  color: var(--brand);
  width: 0.875rem;
  height: 0.875rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar-cta {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s;
}
.topbar-cta:hover {
  background: rgba(249, 115, 22, 0.2);
  border-color: rgba(249, 115, 22, 0.4);
  color: #ffffff;
}

/* Theme toggle button in topbar */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}
.theme-toggle-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* 6. MAIN HEADER / NAVIGATION */
header.site {
  position: fixed;
  inset-x: 0;
  top: 40px;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--nav-border);
  transition: box-shadow 0.3s var(--ease);
}

header.site.scrolled {
  box-shadow: 0 4px 20px -2px var(--glass-shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}
.brand:hover {
  opacity: 0.88;
}

.brandmark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fb923c, #f97316 55%, #fb7185);
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -2px rgba(249, 115, 22, 0.35);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text b {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--foreground);
  white-space: nowrap;
}
.brand-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Navigation Links */
.links {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .links {
    display: flex;
  }
}

.links > a, .has-dd > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}

.links > a:hover, .has-dd:hover > button, .has-dd:focus-within > button {
  color: var(--foreground);
  background-color: var(--surface-hover);
}

.links > a.active {
  color: var(--foreground);
  background-color: var(--surface-hover);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* Dropdown */
.has-dd {
  position: relative;
}
.has-dd .ic {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s var(--ease);
}
.has-dd:hover .ic, .has-dd:focus-within .ic {
  transform: rotate(180deg);
}

.dd {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 300px;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 20px 48px -12px var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.97);
  transform-origin: top left;
  transition: opacity 0.25s, transform 0.3s var(--ease-spring), visibility 0.25s;
  z-index: 60;
}

.has-dd::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.has-dd:hover .dd, .has-dd:focus-within .dd {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dd button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--r-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background-color 0.2s, color 0.2s;
  text-align: left;
}

.dd button:hover {
  background-color: var(--surface-hover);
  color: var(--brand);
}

.dd button span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-hover);
  padding: 0.15rem 0.45rem;
  border-radius: var(--r-full);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

/* Mobile menu toggle */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  color: var(--foreground);
  background: var(--surface);
  transition: background-color 0.2s;
}

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

/* Mobile Menu Drawer */
.mnav {
  position: fixed;
  inset: 0;
  top: 100px;
  z-index: 49;
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  backdrop-filter: blur(24px) saturate(1.4);
  padding: 1.5rem 1.5rem 3rem;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s, transform 0.35s var(--ease-spring), visibility 0.3s;
}

.mnav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mnav a.m {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.mnav .m-cta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mnav .m-meta {
  margin-top: 1.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.8;
}

/* 7. HERO SECTION */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: 130px;
  padding-bottom: 5rem;
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 140px;
    padding-bottom: 6rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1280px) {
  .hero-grid {
    gap: 4rem;
  }
}

/* Hero Copy */
.hero h1 {
  margin-top: 1.75rem;
  max-width: 920px;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--foreground);
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: 640px;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
}

.hero-checks {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.75rem 1.5rem;
  max-width: 600px;
}

@media (min-width: 640px) {
  .hero-checks {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.hero-checks li i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  color: var(--brand);
  flex-shrink: 0;
}

.hero-checks li i svg {
  width: 12px;
  height: 12px;
  stroke-width: 2.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.hero-contact {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.hero-contact a {
  font-weight: 600;
  color: var(--foreground);
  transition: color 0.2s;
}
.hero-contact a:hover {
  color: var(--brand);
}

.hero-note {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}

/* 4-Metric Glass Cards under Hero */
.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.hero-stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.4s var(--ease-spring);
}

@media (min-width: 640px) {
  .hero-stat-card {
    text-align: left;
    padding: 1.25rem 1.25rem;
  }
}

.hero-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.25);
}

.hero-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--foreground);
}

.hero-stat-card strong span {
  font-variant-numeric: tabular-nums;
}

.hero-stat-card span.stat-label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}

/* Hero Right Column Visual (3D Tilt Card) */
.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

.dash-window {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: relative;
}

.dash-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dash-window-dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.dash-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dot.rose { background: #f43f5e; }
.dash-dot.amber { background: #fbbf24; }
.dash-dot.emerald { background: #10b981; }

.dash-title {
  margin-left: 0.75rem;
  font-size: 0.6875rem;
  font-family: var(--font-mono);
  color: var(--muted);
  letter-spacing: 0.05em;
}

.dash-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--r-full);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.dash-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.625rem;
  margin-top: 1.25rem;
}

.dash-tile {
  padding: 0.75rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-hover);
}

.dash-tile-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.dash-tile-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: rgba(249, 115, 22, 0.12);
  color: var(--brand);
}
.dash-tile-icon svg {
  width: 12px;
  height: 12px;
}

.dash-tile-name {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dash-tile-val {
  margin-top: 0.35rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.dash-photo-box {
  position: relative;
  margin-top: 1.25rem;
  border-radius: var(--r-lg);
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(251, 113, 133, 0.05));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.dash-window:hover .dash-photo-box img {
  transform: scale(1.05);
}

.dash-bars {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
}

.dash-bar-row b {
  color: var(--foreground);
  font-weight: 600;
}

.dash-bar-track {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--surface-hover);
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--accent-from), var(--accent-via));
  transition: width 1.2s var(--ease);
}

.dash-window-footer {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 500;
}

/* 8. MARQUEE SECTION */
.marquee-sec {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-hover);
  padding: 3rem 0;
}

.marquee-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
}

.marquee-fade-left {
  position: absolute;
  inset-y: 0;
  left: 0;
  width: 4rem;
  background: linear-gradient(to right, var(--background), transparent);
  pointer-events: none;
  z-index: 10;
}

.marquee-fade-right {
  position: absolute;
  inset-y: 0;
  right: 0;
  width: 4rem;
  background: linear-gradient(to left, var(--background), transparent);
  pointer-events: none;
  z-index: 10;
}

@media (min-width: 640px) {
  .marquee-fade-left, .marquee-fade-right {
    width: 8rem;
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  align-items: center;
  animation: marquee-slide 40s linear infinite;
  will-change: transform;
}

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee-item:hover {
  color: var(--foreground);
}
.marquee-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
}

@keyframes marquee-slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 9. GENERAL SECTION HEADINGS */
.sec {
  position: relative;
  padding: 6rem 0;
}

@media (min-width: 640px) {
  .sec {
    padding: 7.5rem 0;
  }
}

.sec-head {
  max-width: 48rem;
  margin-bottom: 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.eyebrow.pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--r-full);
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--foreground);
  margin: 0;
}

.sec-head .lede {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  line-height: 1.75;
  color: var(--muted);
}

/* 10. ROADMAP / CLARITY CTA BAND */
.roadmap-band {
  border-radius: var(--r-xl);
  padding: 2.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .roadmap-band {
    padding: 3.5rem 3rem;
  }
}

.roadmap-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .roadmap-grid {
    grid-template-columns: 1fr auto;
    gap: 4rem;
  }
}

.roadmap-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-top: 0.75rem;
  max-width: 38rem;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .roadmap-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
  }
}

.roadmap-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.roadmap-list li .roadmap-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--surface-hover);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s;
}

.roadmap-list li:hover .roadmap-icon {
  background: rgba(249, 115, 22, 0.15);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.roadmap-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .roadmap-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* 11. CAPABILITIES SECTION (FULL-FUNNEL STACKING CARDS) */
.caps-container {
  display: grid;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.cap-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: grid;
  gap: 1.5rem;
  transition: all 0.5s var(--ease-spring);
}

@media (min-width: 640px) {
  .cap-card {
    padding: 2.5rem;
  }
}

@media (min-width: 768px) {
  .cap-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2.5rem;
    padding: 3rem;
  }
}

.cap-stamp {
  font-size: 5rem;
  line-height: 0.85;
}

@media (min-width: 640px) {
  .cap-stamp {
    font-size: 7rem;
  }
}

@media (min-width: 1024px) {
  .cap-stamp {
    font-size: 8.5rem;
  }
}

.cap-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 0;
}

.cap-card p.cap-desc {
  margin-top: 0.875rem;
  font-size: clamp(0.9375rem, 1.1vw, 1.0625rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 44rem;
}

.cap-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.625rem 1.5rem;
}

@media (min-width: 640px) {
  .cap-features {
    grid-template-columns: 1fr 1fr;
  }
}

.cap-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.cap-features li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.cap-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
}

/* 12. OUR APPROACH (STICKY PROGRESS & PROCESS STEPS) */
.approach-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .approach-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 4.5rem;
  }
}

.approach-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 60px);
}

.approach-progress-bar {
  margin-top: 2rem;
  height: 4px;
  border-radius: var(--r-full);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  overflow: hidden;
  max-width: 320px;
}

.approach-progress-fill {
  height: 100%;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--accent-from), var(--accent-via));
  border-radius: var(--r-full);
  transition: width 0.25s linear;
}

.approach-progress-label {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.steps-list {
  display: grid;
  gap: 1.5rem;
}

.step-card {
  position: sticky;
  top: calc(var(--header-h) + 60px + var(--i, 0) * 16px);
  padding: 2.25rem;
  border-radius: var(--r-xl);
  background: var(--card-solid);
  border: 1px solid var(--border);
  box-shadow: 0 16px 36px -12px var(--glass-shadow);
  transition: all 0.4s var(--ease-spring);
}

.step-card.on {
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 20px 48px -12px rgba(249, 115, 22, 0.12);
}

.step-card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--accent-from), var(--accent-via));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin: 1rem 0 0.5rem;
}

.step-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
}

.step-card small {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

/* 13. NUMBERS THAT MOVE BOARDROOMS (IMPACT AT SCALE) */
.impact-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
}

@media (min-width: 640px) {
  .impact-panel {
    padding: 3.5rem 3rem;
  }
}

.impact-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

.impact-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface-hover);
  transition: transform 0.4s var(--ease-spring), border-color 0.3s;
}

.impact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.3);
}

.impact-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 3.8vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.impact-num .sym {
  color: var(--brand);
}

.impact-card h3 {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
}

.impact-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 14. WHY HADRIAN (DIFFERENTIATORS) & FIT CALL */
.why-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

.why-card {
  padding: 1.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--card-solid);
  transition: all 0.4s var(--ease-spring);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 16px 32px -8px var(--glass-shadow);
}

.why-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(251, 113, 133, 0.1));
  color: var(--brand);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.why-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
}

.why-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--muted);
}

/* Fit Call Banner */
.fit-call-band {
  margin-top: 1.5rem;
  padding: 2.25rem 2rem;
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.fit-call-copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--foreground);
}

.fit-call-copy p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 38rem;
}

/* 15. PRODUCT CATALOG & SEARCH FILTERS */
.catalog-tools {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.search-wrap {
  position: relative;
  width: min(420px, 100%);
}

.search-wrap .ic {
  position: absolute;
  left: 1.125rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 1rem;
  height: 1rem;
}

.search {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-full);
  padding: 0.75rem 1.25rem 0.75rem 2.875rem;
  font-size: 0.875rem;
  outline: 0;
  transition: all 0.25s var(--ease);
  box-shadow: 0 1px 2px var(--glass-shadow);
}

.search:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  padding: 0.5rem 1rem;
  border-radius: var(--r-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.filter:hover {
  color: var(--foreground);
  border-color: rgba(249, 115, 22, 0.35);
  transform: translateY(-1px);
}

.filter.active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.result-count {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 1.5rem;
}

/* Product Card Grid */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

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

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--card-solid);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 0.45s var(--ease-spring);
  box-shadow: 0 1px 3px var(--glass-shadow);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 20px 48px -12px rgba(249, 115, 22, 0.12);
}

.product-open {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-align: left;
  flex: 1;
}

.product-art {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

:root.dark .product-art, html.dark .product-art {
  background: rgba(15, 23, 42, 0.75);
}

.product-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.5s var(--ease-spring);
}
.card:hover .product-art img {
  transform: scale(1.08);
}

.product-art svg {
  width: 120px;
  height: 110px;
  filter: drop-shadow(0 10px 12px rgba(15, 23, 42, 0.15));
  transition: transform 0.5s var(--ease-spring);
}
.card:hover .product-art svg {
  transform: scale(1.08);
}

.card-info {
  padding: 1.25rem 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-cat {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.card h3 {
  margin: 0.5rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.2s;
}
.card:hover h3 {
  color: var(--brand);
}

.card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.details-prompt {
  display: inline-flex;
  margin-top: 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
  transition: color 0.2s;
}
.product-open:hover .details-prompt {
  color: var(--brand);
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.quote-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.empty {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--r-xl);
}

/* 16. SELECTED PROJECTS (CASE STUDIES) */
.proj-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.proj-card {
  padding: 2rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--card-solid);
  display: flex;
  flex-direction: column;
  transition: all 0.45s var(--ease-spring);
}

.proj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.3);
  box-shadow: 0 20px 48px -12px rgba(249, 115, 22, 0.1);
}

.proj-tag {
  align-self: flex-start;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(249, 115, 22, 0.1);
  border-radius: var(--r-full);
  padding: 0.35rem 0.75rem;
}

.proj-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--foreground);
}

.proj-card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.proj-loc {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.proj-loc::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* 17. ABOUT SECTION */
.about-grid {
  display: grid;
  gap: 3.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
}

.about-copy p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.8;
  margin: 1.25rem 0 0;
}

/* 18. GALLERY SHOWCASE TRACK */
.gallery-sec {
  padding: 4rem 0 7rem;
  overflow: hidden;
}

.gal-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-slide 60s linear infinite;
}

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

.gal {
  width: 320px;
  flex: none;
  border-radius: var(--r-xl);
  background: var(--card-solid);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--glass-shadow);
  transition: transform 0.4s var(--ease-spring);
}
.gal:hover {
  transform: translateY(-6px);
}

.gal img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gal div {
  padding: 1rem 1.25rem 1.25rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.gal span {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.gal b {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--foreground);
}

/* 19. CORPORATE OFFICE & MAP */
.office {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .office {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
  }
}

.office-card {
  padding: 2.25rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--card-solid);
}

@media (min-width: 640px) {
  .office-card {
    padding: 3rem;
  }
}

.office-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin: 0.75rem 0 1.75rem;
}

.office-row {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.office-row small {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.office-row b, .office-row a {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--foreground);
  transition: color 0.2s;
}

.office-row a:hover {
  color: var(--brand);
}

.map-card {
  position: relative;
  min-height: 420px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-hover);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-card .btn {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
}

/* 20. FINAL CTA */
.final-sec {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 5.5rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .final-sec {
    padding: 7rem 2.5rem;
  }
}

.final-sec h2 {
  margin: 0 auto;
  max-width: 860px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--foreground);
}

.final-sec p {
  margin: 1.5rem auto 0;
  max-width: 540px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.final-meta {
  margin-top: 1.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* 21. FOOTER */
footer.site {
  position: relative;
  background: var(--background);
  margin-top: 6rem;
  padding: 5rem 0 2rem;
  border-top: 1px solid var(--border);
}

.foot-top {
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .foot-top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.foot-brand-heading {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--foreground);
}

.foot-about {
  margin-top: 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 28rem;
}

.foot-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

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

@media (min-width: 1024px) {
  .foot-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1.4fr;
  }
}

footer.site h4 {
  margin: 0 0 1.25rem;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foreground);
  font-weight: 700;
}

footer.site ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  font-size: 0.875rem;
}

footer.site li a, footer.site li button {
  color: var(--muted);
  transition: color 0.2s;
  text-align: left;
}
footer.site li a:hover, footer.site li button:hover {
  color: var(--brand);
}

.foot-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .foot-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.foot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.foot-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--card-solid);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  box-shadow: 0 1px 2px var(--glass-shadow);
}

.foot-rating-badge {
  display: flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: #4285F4;
  font-weight: 800;
  font-size: 0.6875rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Floating Action Button (FAB) */
.fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fb923c, #f97316 55%, #f43f5e);
  color: #ffffff;
  font-size: 1.25rem;
  box-shadow: 0 12px 28px -4px rgba(249, 115, 22, 0.45);
  opacity: 0;
  transform: translateY(16px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s var(--ease-spring);
}

.fab.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab:hover {
  transform: translateY(-3px) scale(1.06);
}

/* 22. DIALOGS & MODALS */
dialog {
  border: 0;
  padding: 0;
  border-radius: var(--r-xl);
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--card-solid);
  color: var(--foreground);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border);
}

dialog::backdrop {
  background: rgba(3, 7, 18, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

dialog[open] {
  animation: pop-modal 0.4s var(--ease-spring);
}
dialog[open]::backdrop {
  animation: fade-modal 0.3s ease;
}

dialog.product-dialog {
  width: min(940px, calc(100% - 32px));
}

@keyframes pop-modal {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fade-modal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.form {
  padding: 2.25rem;
}

.formtop {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.form h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--foreground);
}

.hint {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-hover);
  color: var(--muted);
  font-size: 1.25rem;
  transition: all 0.2s;
}
.close:hover {
  background: var(--border);
  color: var(--foreground);
  transform: rotate(90deg);
}

.field {
  display: block;
  margin: 1rem 0;
}

.field span {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}

.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface-hover);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  outline: 0;
  transition: all 0.2s;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.form .btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.875rem;
}

.small {
  margin: 0.875rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Product Detail Modal Layout */
.product-detail {
  display: grid;
  min-height: 440px;
}

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

.product-detail-visual {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.08), rgba(251, 113, 133, 0.05));
  border-bottom: 1px solid var(--border);
  position: relative;
}

@media (min-width: 768px) {
  .product-detail-visual {
    border-bottom: 0;
    border-right: 1px solid var(--border);
  }
}

.product-detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: contain;
  padding: 1.5rem;
}

.product-detail-visual svg {
  width: min(80%, 300px);
  height: auto;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.15));
}

.product-detail-visual [hidden] {
  display: none !important;
}

.product-detail-content {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2rem;
}

.details-close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 5;
}

.detail-category {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.product-detail-content h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.2vw, 1.875rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--foreground);
}

.detail-description {
  margin: 0 0 1.5rem;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}

.detail-meta {
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.detail-close-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.detail-close-link:hover {
  color: var(--foreground);
}

/* 23. SCROLL REVEAL & ENTRANCE ANIMATIONS */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Reduced motion */
@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;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .marquee-track, .gal-track, .aurora-a, .aurora-b, .aurora-c, .conic-ring {
    animation: none !important;
  }
  .tilt-3d {
    transform: none !important;
  }
}
