/* ==========================================================================
   Thalerys Web Services — one-page stylesheet
   Mobile-first · modern · no external assets · Netlify-friendly
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f9fc;
  --bg-tint: #eef4ff;

  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #475569;
  --muted-2: #64748b;

  --line: #e3e8ef;
  --line-2: #cbd5e1;

  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --brand-soft: #e0ecff;
  --brand-ink: #0b3a91;

  --accent: #10b981;
  --accent-2: #059669;
  --warm: #f59e0b;

  --radius: 14px;
  --radius-lg: 18px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.06);
  --shadow-md: 0 10px 30px -16px rgba(11, 18, 32, 0.18), 0 2px 6px -2px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 30px 60px -28px rgba(11, 18, 32, 0.28), 0 6px 16px -6px rgba(11, 18, 32, 0.12);

  --container: 1200px;
  --container-narrow: 760px;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 var(--space-3); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw + 1rem, 3.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.6vw + 0.8rem, 2.4rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { margin: 0 0 var(--space-4); color: var(--ink-2); }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Containers & helpers ---------- */
.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}
.container--narrow {
  width: min(100% - 32px, var(--container-narrow));
  margin-inline: auto;
}
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.subtle { color: var(--muted); font-size: 0.875rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 10px 22px -10px rgba(37, 99, 235, 0.7); }
.btn-secondary {
  background: var(--ink);
  color: #fff;
}
.btn-secondary:hover { background: var(--ink-2); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-alt); border-color: var(--ink-2); }

/* =========================================================================
   HEADER / NAV
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none !important;
}
.brand-mark { display: inline-grid; place-items: center; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 0.95rem; }
.brand-tag { font-size: 0.72rem; color: var(--muted); }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  margin-right: 14px;
}
@media (min-width: 1100px) {
  .primary-nav {
    gap: 10px;
  }
}
.primary-nav a {
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.primary-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.primary-nav a.active { color: var(--brand); }

.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}
.menu-toggle span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
  display: block;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 12px 16px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav a {
  padding: 12px 8px;
  color: var(--ink);
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
}
.mobile-nav a.btn { margin-top: 8px; justify-content: center; }
.mobile-nav a:not(.btn):hover { background: var(--bg-alt); }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(16, 185, 129, 0.08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  align-items: center;
  position: relative;
}
@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 64px;
  }
  .hero-copy {
    max-width: 560px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}
.hero-copy h1 .grad {
  background: linear-gradient(110deg, var(--brand) 0%, #4f46e5 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.2rem);
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: var(--space-5);
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: var(--space-5);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 22px;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { color: var(--accent-2); }

/* hero visual — fake browser frames */
.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
}
@media (min-width: 1200px) {
  .hero-visual {
    min-height: 420px;
  }
}
.fake-browser {
  position: absolute;
  width: 92%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.fake-browser--after {
  top: 0;
  right: 0;
  transform: rotate(2deg);
  z-index: 2;
}
.fake-browser--before {
  bottom: 0;
  left: 0;
  transform: rotate(-3deg);
  opacity: 0.92;
  z-index: 1;
  filter: saturate(0.7);
}
.fake-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: #f3f6fb;
  border-bottom: 1px solid var(--line);
}
.fake-chrome .dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.fake-chrome .d1 { background: #ff5f57; }
.fake-chrome .d2 { background: #febc2e; }
.fake-chrome .d3 { background: #28c840; }
.fake-url {
  margin-left: 8px;
  flex: 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}
.fake-body {
  padding: 16px;
}
.fake-hero {
  border-radius: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #f6f8fc 0%, #e9eef7 100%);
}
.fake-pill {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--brand-soft);
  color: var(--brand-ink);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}
.fake-h {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.fake-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.fake-btns { display: flex; gap: 8px; }
.fake-btn {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 600;
}
.fake-btn--solid {
  background: var(--brand);
  color: #fff;
}
.fake-btn--soft {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.fake-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.fake-grid > div {
  height: 36px;
  background: #eef2f8;
  border-radius: 6px;
}
.fake-body--old { padding: 14px; background: #c8c8c8; }
.fake-oldhero {
  background: #a0a0a0;
  border: 1px solid #777;
  padding: 10px;
  text-align: center;
  font-family: "Times New Roman", Georgia, serif;
}
.fake-oldlogo { font-weight: 700; color: #222; letter-spacing: 2px; font-size: 0.85rem; }
.fake-oldtext { color: #333; font-size: 0.78rem; margin: 4px 0; }
.fake-oldtext.sm { font-size: 0.7rem; }

/* logo strip */
.strip {
  margin-top: clamp(40px, 6vw, 64px);
  margin-inline: auto;
  max-width: 860px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.strip-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-right: 4px;
}
.strip-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-alt);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

/* =========================================================================
   SECTIONS
   ========================================================================= */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-cta {
  background:
    radial-gradient(800px 400px at 90% 10%, rgba(37, 99, 235, 0.25), transparent 60%),
    radial-gradient(700px 400px at 10% 100%, rgba(16, 185, 129, 0.18), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
  color: #e8eef8;
  border-top: 1px solid #1f2a44;
}
.section-cta h2 { color: #fff; }
.section-cta .kicker--light {
  color: #9bb3ff;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); }
.section-head--light p { color: #b6c2da; }

.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: var(--space-4);
}

/* ---------- Cards (services + pricing) ---------- */
.card-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-2);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--icon-bg, var(--brand-soft));
  color: var(--icon-fg, var(--brand));
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Pricing cards ---------- */
.pricing-grid { align-items: stretch; }
.price-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.price-card .price-head { text-align: center; }
.price {
  margin: var(--space-3) 0 var(--space-4);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
}
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price-from, .price-suffix { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.checklist {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: var(--space-4);
}
.checklist li {
  position: relative;
  padding-left: 26px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px; top: 9px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.price-card--featured {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 20px 40px -20px rgba(37, 99, 235, 0.35), 0 6px 12px -6px rgba(15, 23, 42, 0.08);
}
.price-card--featured:hover {
  border-color: var(--brand);
}
.featured-ribbon {
  position: absolute;
  top: -12px;
  right: 16px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px -6px rgba(37, 99, 235, 0.6);
}
.pricing-note {
  text-align: center;
  margin-top: var(--space-6);
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 640px;
  margin-inline: auto;
}

/* =========================================================================
   PORTFOLIO
   ========================================================================= */
.card-grid--3 {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* Entrance animation — hidden until Intersection Observer fires.
   Uses its own slower transition on :not(.is-visible) so the hover
   lift stays snappy (inherits base .2s transition above). */
.portfolio-card:not(.is-visible) {
  opacity: 0;
  transform: translateY(28px);
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Staggered delays so cards cascade in */
.portfolio-card:not(.is-visible):nth-child(1) { transition-delay: 0ms; }
.portfolio-card:not(.is-visible):nth-child(2) { transition-delay: 100ms; }
.portfolio-card:not(.is-visible):nth-child(3) { transition-delay: 200ms; }
.portfolio-card:not(.is-visible):nth-child(4) { transition-delay: 300ms; }
.portfolio-card:not(.is-visible):nth-child(5) { transition-delay: 400ms; }
.portfolio-card:not(.is-visible):nth-child(6) { transition-delay: 500ms; }
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-2);
}
.brand-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--brand-ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--brand-soft);
}
.mockup {
  border-bottom: 1px solid var(--line);
  background: #f6f8fc;
  padding: 20px 16px 0;
  position: relative;
  transition: transform 0.4s ease;
}
.mockup-chrome {
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
}
.mockup-chrome span:not(.mockup-url) {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d6dbe4;
}
.mockup-url {
  margin-left: 6px;
  flex: 1;
  background: #f3f5fa;
  border-radius: 6px;
  padding: 4px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  color: var(--muted);
}
.mockup-screen {
  height: 200px;
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 10px 10px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.mock-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.mock-logo { flex: 1; font-weight: 700; }
.mock-link { color: var(--muted); }
.mock-hero { padding: 14px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.mock-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.mock-eyebrow--alert { color: #b45309; }
.mock-h { font-size: 0.95rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.mock-btns { display: flex; gap: 6px; margin-top: 4px; }
.mock-btn {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
}
.mock-btn--solid {
  background: var(--mock-primary, var(--brand));
  color: #fff;
}
.mock-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  padding: 8px 12px 10px;
  background: rgba(0, 0, 0, 0.03);
}
.mock-tile {
  height: 28px;
  background: #fff;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Hover preview overlay — mouse/trackpad only */
@media (hover: hover) and (pointer: fine) {
  .mockup::after {
    content: "Click to view";
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 48px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat center 40%,
      rgba(11, 18, 32, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    border-radius: 0 0 10px 10px;
  }

  .portfolio-card:hover .mockup {
    transform: scale(1.06);
  }

  .portfolio-card:hover .mockup::after {
    opacity: 1;
  }
}

/* Themed mockups */
.mockup-screen--rooster { background: linear-gradient(180deg, #fff7ed 0%, #fde6cf 100%); color: #7c2d12; --mock-primary: #ea580c; }
.mockup-screen--rooster .mock-nav { border-bottom-color: rgba(124, 45, 18, 0.1); }
.mockup-screen--lightways { background: linear-gradient(180deg, #faf5ff 0%, #ede9fe 100%); color: #4c1d95; --mock-primary: #6d28d9; }
.mockup-screen--airtemp { background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%); color: #0c4a6e; --mock-primary: #0284c7; }
.mockup-screen--mowers { background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%); color: #065f46; --mock-primary: #059669; }
.mockup-screen--appliance { background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%); color: #0f172a; --mock-primary: #1e293b; }
.mockup-screen--security { background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%); color: #e2e8f0; --mock-primary: #ef4444; }
.mockup-screen--security .mock-nav { background: rgba(255, 255, 255, 0.08); border-bottom-color: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.mockup-screen--security .mock-tile { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); color: #cbd5e1; }
.mockup-screen--security .mock-btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); color: #e2e8f0; }

.portfolio-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.portfolio-body h3 { font-size: 1.1rem; margin-bottom: 0; }
.portfolio-body p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--brand);
}
.card-link:hover { text-decoration: none; gap: 10px; }
/* ----------------------------------------------------------------------
   "Preview coming soon" — honest placeholder state for portfolio cards
   whose real preview URL has not been published yet. The card itself
   remains clickable (the lightbox still opens an enlarged view of the
   concept design) but no link goes anywhere the URL would lead.
   ---------------------------------------------------------------------- */
.card-link--disabled {
  color: var(--muted);
  cursor: default;
  user-select: none;
  gap: 8px;
}
.card-link--disabled:hover {
  text-decoration: none;
  gap: 8px;
  color: var(--muted);
}
.card-link--disabled svg {
  flex: 0 0 auto;
  opacity: 0.85;
}
.portfolio-disclaimer {
  margin-top: var(--space-6);
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 720px;
  margin-inline: auto;
  padding: 14px 18px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  background: #fff;
}

/* =========================================================================
   PROCESS
   ========================================================================= */
.process {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 760px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .process { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.process-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.process-step p { color: var(--muted); font-size: 0.92rem; }

/* =========================================================================
   COMPARE (Before / After)
   ========================================================================= */
.compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}
@media (min-width: 880px) {
  .compare { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}
.compare-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.compare-before { border-top: 4px solid #cbd5e1; }
.compare-after  { border-top: 4px solid var(--accent); }
.compare-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.compare-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.compare-pill--before { background: #f1f5f9; color: #475569; border: 1px solid var(--line); }
.compare-pill--after  { background: var(--accent); color: #fff; }
.compare-list {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.compare-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 4px;
}
.compare-list .x, .compare-list .check {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
}
.compare-list .x { background: #fef2f2; color: #b91c1c; }
.compare-list .check { background: #ecfdf5; color: var(--accent-2); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 18px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: var(--line-2);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
  position: absolute;
  right: 4px; top: 18px;
  width: 12px; height: 12px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq-item[open] .faq-toggle {
  transform: rotate(-135deg);
  top: 22px;
}
.faq-item p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* =========================================================================
   CONTACT FORM
   ========================================================================= */
.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 720px) {
  .contact-form { padding: 32px; }
}
.form-row {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-4);
}
@media (min-width: 720px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.field { display: block; margin-bottom: var(--space-4); }
.field > span,
.field > legend {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #d4def0;
  margin-bottom: 6px;
  padding: 0;
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: #8aa0c1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: #6aa0ff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 4px rgba(106, 160, 255, 0.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field--checks { padding: 0; border: 0; margin-bottom: var(--space-4); }
.field--checks legend { color: #d4def0; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 720px) {
  .check-grid { grid-template-columns: repeat(4, 1fr); }
}
.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 500;
  color: #e8eef8;
  transition: border-color .15s ease, background .15s ease;
}
.check input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
.check:hover { border-color: rgba(255, 255, 255, 0.34); }
.check input:checked + span { color: #fff; font-weight: 600; }
.form-footer {
  margin-top: var(--space-5);
  font-size: 0.9rem;
  color: #b6c2da;
  text-align: center;
}
.form-footer a { color: #9bb3ff; text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 48px 0 24px;
  border-top: 1px solid #1f2a44;
}
.footer-grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-7);
  }
}
.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.footer-brand strong { color: #fff; font-weight: 700; display: block; margin-bottom: 4px; }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; margin: 0; }
.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.site-footer ul { display: grid; gap: 8px; }
.site-footer a {
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #1f2a44;
  padding-top: 18px;
  margin-top: 32px;
}
.footer-bottom p { margin: 0; }

/* =========================================================================
   STICKY MOBILE CTA
   ========================================================================= */
.sticky-mobile-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  display: grid;
  filter: drop-shadow(0 18px 30px rgba(11, 18, 32, 0.28));
}
.sticky-mobile-cta .btn {
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 1rem;
}
body.has-sticky-cta { padding-bottom: 92px; }

/* =========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================= */
@media (max-width: 959px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}
@media (min-width: 960px) {
  .mobile-nav { display: none !important; }
}

/* Larger portfolio mockup height on bigger screens */
@media (min-width: 1100px) {
  .mockup-screen { height: 220px; }
}

/* ==========================================================================
   FIXES — code review pass
   ========================================================================== */

/* Make [hidden] actually hide the mobile nav (overrides .mobile-nav display) */
.mobile-nav[hidden] { display: none; }

/* Skip-to-content link — invisible until focused */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }
.skip-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.55);
}

/* Footer muted text — needs a lighter color on dark background */
.site-footer .muted { color: #94a3b8; }

/* Sticky CTA is mobile-only — hide on desktop */
@media (min-width: 720px) {
  .sticky-mobile-cta { display: none !important; }
  body.has-sticky-cta { padding-bottom: 0; }
}

/* =========================================================================
   LIGHTBOX MODAL
   ========================================================================= */

body.modal-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.is-active .lightbox-content {
  transform: translateY(0) scale(1);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(11, 18, 32, 0.7);
  color: #fff;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(11, 18, 32, 0.9);
  transform: scale(1.08);
}

.lightbox-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Enlarged mockup inside the lightbox */
.lightbox-content .mockup {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  padding: 32px 24px 0;
  background: #f6f8fc;
  border: 1px solid var(--line);
  border-bottom: none;
}

.lightbox-content .mockup::after {
  display: none !important;
}

.lightbox-content .mockup-screen {
  height: clamp(380px, 60vh, 560px);
  border-radius: 0 0 10px 10px;
}

.lightbox-content .mockup-chrome {
  padding: 12px 16px;
}

.lightbox-content .mockup-nav {
  padding: 12px 16px;
  font-size: 0.78rem;
}

.lightbox-content .mock-hero {
  padding: 20px 16px;
}

.lightbox-content .mock-h {
  font-size: 1.2rem;
}

.lightbox-content .mock-eyebrow {
  font-size: 0.7rem;
}

.lightbox-content .mock-btn {
  font-size: 0.72rem;
  padding: 6px 10px;
}

.lightbox-content .mock-tile {
  height: 34px;
  font-size: 0.68rem;
}

.lightbox-content .mockup:hover {
  transform: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Still show cards for accessibility — just no animation */
  .portfolio-card:not(.is-visible) {
    opacity: 1;
    transform: none;
  }

  .lightbox-content {
    transform: none;
    transition: none;
  }

  .lightbox.is-active .lightbox-content {
    transform: none;
  }
}

/* ==========================================================================
   FORM STATUS — used by script.js to render error/loading/success messages
   ========================================================================== */
.form-status {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}
.form-status:not(:empty) {
  display: block;
}
.form-status--loading {
  background: var(--brand-soft);
  color: var(--brand-ink);
  border: 1px solid #c7d8ff;
}
.form-status--success {
  background: #ecfdf5;
  color: var(--accent-2);
  border: 1px solid #a7f3d0;
}
.form-status--error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
