/* =====================================================================
   iTekk — Modern Redesign
   Design System / Global Stylesheet
   Author: built for iTekk (https://itekk.us)
   Notes: Works alongside Tailwind Play CDN. Theme toggled via .dark class
          on <html>. All distinctive UI lives here.
   ===================================================================== */

/* ----------------------------- Tokens -------------------------------- */
:root {
  /* Brand */
  --brand-1: #6366f1;   /* indigo  */
  --brand-2: #22d3ee;   /* cyan    */
  --brand-3: #a855f7;   /* violet  */
  --brand-4: #ec4899;   /* magenta */

  --grad-primary: linear-gradient(120deg, #22d3ee 0%, #6366f1 45%, #a855f7 100%);
  --grad-soft: linear-gradient(120deg, #6366f1, #a855f7);
  --grad-cta: linear-gradient(120deg, #06b6d4, #6366f1 55%, #d946ef);

  /* Light theme surfaces */
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4fa;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  --text: #0b1020;
  --text-soft: #475569;
  --text-mute: #6b7280;
  --heading: #0a0f1f;

  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-brd: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.10);
  --shadow-md: 0 10px 30px -12px rgba(16,24,40,.25);
  --shadow-lg: 0 30px 60px -20px rgba(16,24,40,.30);
  --glow: 0 0 0 1px rgba(99,102,241,.18), 0 18px 50px -18px rgba(99,102,241,.45);

  --ring: rgba(99,102,241,.45);

  --maxw: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --nav-h: 76px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

html.dark {
  --bg: #060814;
  --bg-alt: #0a0d1c;
  --bg-elev: #0d1124;
  --surface: rgba(255,255,255,0.035);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);

  --text: #e7eaf3;
  --text-soft: #aab3c5;
  --text-mute: #8b95ab;
  --heading: #f4f6fc;

  --glass-bg: rgba(17, 21, 40, 0.55);
  --glass-brd: rgba(255,255,255,0.10);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 18px 40px -18px rgba(0,0,0,.65);
  --shadow-lg: 0 40px 80px -24px rgba(0,0,0,.75);
  --glow: 0 0 0 1px rgba(99,102,241,.30), 0 24px 70px -20px rgba(99,102,241,.55);
}

/* ----------------------------- Base ---------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .4s var(--ease);
}

h1,h2,h3,h4,h5 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
  text-wrap: balance;
}
p { margin: 0 0 1rem; color: var(--text-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; }

::selection { background: rgba(99,102,241,.30); color: inherit; }

/* Focus visibility for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Scrollbar */
html.dark ::-webkit-scrollbar { width: 12px; height: 12px; }
html.dark ::-webkit-scrollbar-thumb { background: #1c2240; border-radius: 20px; border: 3px solid var(--bg); }
html.dark ::-webkit-scrollbar-track { background: var(--bg); }

/* --------------------------- Layout utils ---------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.container-wide { max-width: 1340px; }
/* .section { padding: clamp(4px, 9vw, 130px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 90px) 0; } */
.section {
  padding: clamp(10px, 4vw, 20px) 0;
}

.section-tight {
  padding: clamp(10px, 3vw, 15px) 0;
}
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.relative { position: relative; }
.grid { display: grid; gap: 26px; }
.flex { display: flex; }

/* --------------------------- Typography ------------------------------ */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-soft);
  padding: .42rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-primary); box-shadow: 0 0 12px var(--brand-1); }

.h-display { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.12; }
.h-1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; line-height: 1.14; }
.h-2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.18; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--text-soft); max-width: 60ch; }
.muted { color: var(--text-mute); }

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }

/* ----------------------------- Buttons ------------------------------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 600; font-size: .98rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s, border-color .3s, color .3s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 1.05em; height: 1.05em; }
.btn-primary { color: #fff; background: var(--grad-cta); background-size: 180% 180%; box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 55px -18px rgba(99,102,241,.7); background-position: 100% 0; }
.btn-ghost { color: var(--heading); background: var(--surface); border-color: var(--border-strong); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--brand-1); box-shadow: var(--shadow-md); }
.btn-lg { --pad-y: 1.05rem; --pad-x: 2rem; font-size: 1.05rem; }
.btn-sm { --pad-y: .6rem; --pad-x: 1.1rem; font-size: .9rem; }
.btn-link { color: var(--brand-1); font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
html.dark .btn-link { color: var(--brand-2); }
.btn-link .arrow { transition: transform .3s var(--ease); }
.btn-link:hover .arrow { transform: translateX(5px); }

/* ----------------------------- Cards --------------------------------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.card:hover { transform: translateY(-7px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad-primary);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.card-glow:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(99,102,241,.16), rgba(34,211,238,.12));
  border: 1px solid var(--border);
  color: var(--brand-1); margin-bottom: 18px;
}
html.dark .feature-icon { color: var(--brand-2); }
.feature-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.card p { font-size: .96rem; margin-bottom: 0; }

/* Glass panel */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius-lg);
}

/* ----------------------- Decorative backgrounds ---------------------- */
.bg-grid::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  opacity: .55;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; z-index: 0;
  pointer-events: none; will-change: transform;
}
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, #6366f1, transparent 70%); }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, #22d3ee, transparent 70%); }
.blob-3 { width: 380px; height: 380px; background: radial-gradient(circle, #a855f7, transparent 70%); }
html:not(.dark) .blob { opacity: .35; }

.glow-line {
  height: 1px; width: 100%;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}

/* ------------------------------ Navbar ------------------------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s, border-color .4s, height .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: "Space Grotesk"; font-weight: 700; font-size: 1.4rem; color: var(--heading); letter-spacing: -.02em; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad-primary); color: #fff; font-weight: 700; box-shadow: var(--glow);
}
.brand b { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand .logo-img { height: 32px; width: auto; display: block; transition: filter .3s var(--ease); }
/* The wordmark is dark with blue accents (made for light bg); render it white on dark theme */
html.dark .brand .logo-img { filter: brightness(0) invert(1); }
.footer .brand .logo-img { height: 30px; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a.nav-link {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; border-radius: 999px;
  font-size: .94rem; font-weight: 500; color: var(--text-soft);
  transition: color .25s, background .25s;
}
.nav-links a.nav-link:hover, .nav-links a.nav-link.active { color: var(--heading); background: var(--surface-2); }
.nav-links a.nav-link.active { color: var(--brand-1); }
html.dark .nav-links a.nav-link.active { color: var(--brand-2); }
.caret { width: 14px; height: 14px; transition: transform .3s; opacity: .7; }
.has-mega:hover .caret { transform: rotate(180deg); }

/* Mega dropdown */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: max-content; min-width: 460px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 18px; gap: 8px;
  display: grid; grid-template-columns: 1fr 1fr;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  backdrop-filter: blur(20px);
}
/* Invisible bridge across the 14px gap so the dropdown stays reachable on hover */
.mega::before { content: ""; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-col h6 { font-family: "Space Grotesk"; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); padding: 8px 12px; margin: 0; }
.mega-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 13px; transition: background .25s, transform .25s; }
.mega-item:hover { background: var(--surface-2); transform: translateX(3px); }
.mega-item .mi-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--brand-1); flex: none; }
html.dark .mega-item .mi-ic { color: var(--brand-2); }
.mega-item .mi-ic svg { width: 20px; height: 20px; }
.mega-item strong { display: block; font-size: .92rem; color: var(--heading); font-weight: 600; }
.mega-item span { font-size: .78rem; color: var(--text-mute); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--heading); cursor: pointer; display: grid; place-items: center;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(-8deg); border-color: var(--brand-1); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
html.dark .theme-toggle .sun { display: block; }
html.dark .theme-toggle .moon { display: none; }

/* Hamburger */
.hamburger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; position: relative; }
.hamburger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--heading); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.hamburger span:nth-child(1) { top: 15px; } .hamburger span:nth-child(2) { top: 21px; } .hamburger span:nth-child(3) { top: 27px; }
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: calc(var(--nav-h) + 20px) 24px 40px; overflow-y: auto;
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a.m-link { padding: 15px 8px; font-family: "Space Grotesk"; font-size: 1.3rem; font-weight: 600; color: var(--heading); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.mobile-menu .m-sub { display: flex; flex-direction: column; padding-left: 14px; }
.mobile-menu .m-sub a { padding: 11px 8px; color: var(--text-soft); font-size: 1rem; border-bottom: 1px solid var(--border); }
.m-group-label { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); padding: 18px 8px 6px; font-family: "Space Grotesk"; }

/* ------------------------------ Hero --------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 70px); padding-bottom: 90px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; }
.marquee-row { display: flex; gap: 50px; align-items: center; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 50px; align-items: center; animation: marquee 28s linear infinite; flex: none; }
.marquee-track img, .marquee-track .tech-chip { height: 42px; opacity: .8; }
@keyframes marquee { to { transform: translateX(-50%); } }

.tech-chip {
  display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.05rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-family: "Space Grotesk"; font-weight: 600; font-size: .92rem; color: var(--text-soft); white-space: nowrap;
}
.tech-chip img { height: 22px; width: 22px; opacity: 1; }

/* Stats */
.stat { text-align: center; }
.stat .num { font-family: "Space Grotesk"; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--text-mute); font-size: .9rem; margin-top: .4rem; }

/* ------------------------- Service / feature grid -------------------- */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px){ .grid-4 { grid-template-columns: repeat(2,1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; } }

/* Big bento service card */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.bento .card { padding: 32px; }
.col-3 { grid-column: span 3; } .col-2 { grid-column: span 2; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
@media (max-width: 900px){ .bento { grid-template-columns: 1fr; } .col-2,.col-3,.col-4,.col-6 { grid-column: 1; } }

/* ----------------------------- Portfolio ----------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  padding: .6rem 1.25rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-family: "Space Grotesk"; font-weight: 600; font-size: .9rem; color: var(--text-soft); cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--brand-1); color: var(--heading); transform: translateY(-2px); }
.filter-btn.active { background: var(--grad-cta); color: #fff; border-color: transparent; box-shadow: var(--glow); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 950px){ .work-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .work-grid { grid-template-columns: 1fr; } }

.work-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: var(--surface); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.work-thumb { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .9s var(--ease); }
.work-card:hover .work-thumb img { transform: scale(1.07); }
.work-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(4,6,18,.82)); opacity: .0; transition: opacity .4s; }
.work-card:hover .work-thumb::after { opacity: 1; }
.work-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: .72rem; font-weight: 600; padding: .35rem .7rem; border-radius: 999px; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-brd); color: var(--heading); font-family: "Space Grotesk"; letter-spacing: .03em; }
.work-visit { position: absolute; right: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: .35rem; color: #fff; font-weight: 600; font-size: .85rem; opacity: 0; transform: translateY(10px); transition: all .4s var(--ease); }
.work-card:hover .work-visit { opacity: 1; transform: translateY(0); }
.work-body { padding: 20px 22px 24px; }
.work-body h3 { font-size: 1.18rem; margin-bottom: .35rem; }
.work-body p { font-size: .9rem; margin: 0; color: var(--text-mute); }

/* AI project card */
.ai-card { display: flex; flex-direction: column; }
.ai-card .ai-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ai-badge { font-size: .72rem; font-weight: 600; letter-spacing: .04em; padding: .3rem .7rem; border-radius: 999px; background: linear-gradient(120deg, rgba(34,211,238,.16), rgba(168,85,247,.16)); border: 1px solid var(--border); color: var(--brand-1); font-family: "Space Grotesk"; }
html.dark .ai-badge { color: var(--brand-2); }
.tech-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.tech-tags span { font-size: .74rem; padding: .3rem .65rem; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); font-family: "Space Grotesk"; font-weight: 500; }

/* --------------------------- CTA band -------------------------------- */
.cta-band { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(40px, 6vw, 72px); text-align: center; background: linear-gradient(125deg, #0b1030, #1a1245 55%, #2a103f); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(34,211,238,.35), transparent 45%), radial-gradient(circle at 80% 80%, rgba(168,85,247,.35), transparent 45%); }
.cta-band > * { position: relative; z-index: 1; }

/* ------------------------------ Footer ------------------------------- */
.footer { position: relative; background: var(--bg-alt); border-top: 1px solid var(--border); padding-top: 70px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
@media (max-width: 880px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: 1fr; } }
.footer h6 { font-family: "Space Grotesk"; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; list-style: none; }
.footer-links a { color: var(--text-soft); font-size: .95rem; transition: color .25s, transform .25s; display: inline-block; }
.footer-links a:hover { color: var(--brand-1); transform: translateX(4px); }
html.dark .footer-links a:hover { color: var(--brand-2); }
.footer-bottom { border-top: 1px solid var(--border); padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--text-mute); font-size: .88rem; }
.contact-line { display: flex; align-items: flex-start; gap: 11px; color: var(--text-soft); font-size: .94rem; margin-bottom: 12px; }
.contact-line svg { width: 19px; height: 19px; color: var(--brand-1); flex: none; margin-top: 3px; }
html.dark .contact-line svg { color: var(--brand-2); }
.soc { display: flex; gap: 10px; }
.soc a { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); color: var(--text-soft); transition: all .3s var(--ease); }
.soc a:hover { color: #fff; background: var(--grad-cta); border-color: transparent; transform: translateY(-3px); }

/* --------------------------- Page hero ------------------------------- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 80px) 0 70px; overflow: hidden; text-align: center; }
.breadcrumb { display: inline-flex; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-mute); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--brand-1); }

/* --------------------------- Accordion ------------------------------- */
.accordion { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--surface); }
.acc-item + .acc-item { border-top: 1px solid var(--border); }
.acc-head { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 18px; font-family: "Space Grotesk"; font-weight: 600; font-size: 1.08rem; color: var(--heading); }
.acc-head .pm { width: 26px; height: 26px; flex: none; position: relative; transition: transform .35s var(--ease); }
.acc-head .pm::before, .acc-head .pm::after { content: ""; position: absolute; background: var(--brand-1); border-radius: 2px; }
.acc-head .pm::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.acc-head .pm::after { left: 12px; top: 4px; bottom: 4px; width: 2px; transition: transform .35s var(--ease); }
.acc-item.open .pm::after { transform: scaleY(0); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
.acc-body-inner { padding: 0 26px 24px; color: var(--text-soft); }

/* ---------------------------- Form ----------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 8px; color: var(--heading); font-family: "Space Grotesk"; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border-radius: 13px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--ring); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size: .82rem; color: var(--text-mute); }

/* ------------------------- Reveal animations ------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"]{ transition-delay: .08s; }
[data-reveal-delay="2"]{ transition-delay: .16s; }
[data-reveal-delay="3"]{ transition-delay: .24s; }
[data-reveal-delay="4"]{ transition-delay: .32s; }
[data-reveal-delay="5"]{ transition-delay: .40s; }

.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-16px); } }
.spin-slow { animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: var(--grad-primary); box-shadow: 0 0 12px var(--brand-1); }

/* misc helpers */
.eyebrow-list { list-style: none; display: grid; gap: 12px; }
.eyebrow-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-soft); }
.eyebrow-list li svg { width: 22px; height: 22px; color: var(--brand-1); flex: none; margin-top: 2px; }
html.dark .eyebrow-list li svg { color: var(--brand-2); }
.divider-text { display: flex; align-items: center; gap: 18px; color: var(--text-mute); font-size: .85rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.tilt { transition: transform .3s var(--ease); transform-style: preserve-3d; }

/* responsive nav switch */
@media (max-width: 1024px){
  .nav-links, .nav-actions .btn { display: none; }
  .hamburger { display: block; }
}
@media (min-width: 1025px){ .mobile-menu { display: none; } }
