/* =========================================================
   Ali Spacesupportt · Portfolio
   Light theme  = brand green & white
   Dark theme   = brand-logo palette (deep space navy, electric
                  blue, violet, cyan)
   ========================================================= */

:root {
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* ---- Light: green & white ---- */
  --bg: #ffffff;
  --bg-alt: #f1faf4;
  --surface: #ffffff;
  --surface-2: #f6fcf8;
  --ink: #052012;
  --ink-2: #1f3a2b;
  --muted: #557063;
  --line: #d6eadd;
  --brand: #0f8a43;
  --brand-strong: #0a6b33;
  --brand-soft: #dff7e8;
  --accent: #22c55e;
  --on-brand: #ffffff;
  --up: #0f8a43;
  --grad: linear-gradient(120deg, #0a6b33 0%, #16a34a 48%, #34d07a 100%);
  --grad-soft: radial-gradient(60% 60% at 80% 20%, rgba(34, 197, 94, .16), transparent 70%),
               radial-gradient(50% 50% at 10% 80%, rgba(16, 138, 67, .10), transparent 70%);
  --glow: rgba(34, 197, 94, .35);
  --shadow: 0 1px 2px rgba(5, 32, 18, .04), 0 14px 34px -16px rgba(5, 40, 20, .22);
  --shadow-lg: 0 30px 60px -28px rgba(5, 50, 25, .35);
  --header-bg: rgba(255, 255, 255, .78);

  /* brand mark */
  --cube-top: #c8f7d9;
  --cube-left: #16a34a;
  --cube-right: #0a6b33;
  --orbit-a: #4ade80;
  --orbit-b: #0f8a43;
  --dot: #ffffff;
  --dot-ring: #22c55e;

  color-scheme: light;
}

[data-theme="dark"] {
  /* ---- Dark: brand-logo palette ---- */
  --bg: #03051a;
  --bg-alt: #060927;
  --surface: #0a0e36;
  --surface-2: #0e1342;
  --ink: #eef0ff;
  --ink-2: #ccd1ff;
  --muted: #9aa1d6;
  --line: rgba(129, 140, 255, .17);
  --brand: #5b4dff;
  --brand-strong: #3d2bff;
  --brand-soft: rgba(91, 77, 255, .16);
  --accent: #5ee7f2;
  --on-brand: #ffffff;
  --up: #5ee7f2;
  --grad: linear-gradient(120deg, #3a2bff 0%, #8b3dff 52%, #5ee7f2 100%);
  --grad-soft: radial-gradient(55% 55% at 80% 15%, rgba(91, 77, 255, .30), transparent 70%),
               radial-gradient(45% 45% at 10% 85%, rgba(139, 61, 255, .22), transparent 70%),
               radial-gradient(35% 35% at 55% 55%, rgba(94, 231, 242, .08), transparent 70%);
  --glow: rgba(94, 231, 242, .35);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -26px rgba(40, 30, 255, .45);
  --header-bg: rgba(3, 5, 26, .72);

  --cube-top: #b6f5fb;
  --cube-left: #3a2bff;
  --cube-right: #8b3dff;
  --orbit-a: #5ee7f2;
  --orbit-b: #a855f7;
  --dot: #ffffff;
  --dot-ring: #5ee7f2;

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s var(--ease), color .4s var(--ease);
  overflow-x: hidden;
}
/* star field in dark mode */
[data-theme="dark"] body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255,255,255,.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 85% 62%, rgba(94,231,242,.6), transparent 60%),
    radial-gradient(1px 1px at 32% 78%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 52% 42%, rgba(168,85,247,.55), transparent 60%),
    radial-gradient(1px 1px at 92% 88%, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1px 1px at 6% 56%, rgba(255,255,255,.3), transparent 60%);
  background-size: 640px 640px;
}

img, video, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
[data-theme="dark"] a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; color: #fff; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 600 15px/1 var(--font-body);
  padding: 13px 20px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-primary { background: var(--grad); color: var(--on-brand); box-shadow: 0 10px 26px -10px var(--glow); background-size: 140% 100%; background-position: 0 0; }
.btn-primary:hover { color: var(--on-brand); transform: translateY(-2px); box-shadow: 0 16px 34px -12px var(--glow); background-position: 100% 0; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--brand); transform: rotate(-8deg); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(0,0,0,.4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 4px 10px var(--glow)); }
.brand-mark.sm { width: 34px; height: 34px; }
.brand-word { font: 600 19px/1 var(--font-display); letter-spacing: -.02em; }
.brand-word b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }

.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .2s, color .2s; }
.nav a:hover, .nav a.active { color: var(--ink); background: var(--brand-soft); }
.nav .nav-cta-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-moon { display: block; }

.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.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); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 0; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-soft); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-bottom: 72px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow);
}
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--glow); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; margin: 22px 0 20px; letter-spacing: -.035em; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 580px; }
.lead strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.hero-meta li { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta svg { width: 17px; height: 17px; color: var(--brand); }
[data-theme="dark"] .hero-meta svg { color: var(--accent); }

/* portrait + orbit */
.hero-visual { display: grid; place-items: center; }
.orbit-stage { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.portrait {
  position: absolute; inset: 9%; margin: 0;
  border-radius: 42% 42% 38% 38% / 36% 36% 44% 44%;
  padding: 6px;
  background: var(--grad);
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: #fff; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.orbit ellipse, .orbit path { fill: none; stroke: url(#orbit-grad); stroke-width: 4; stroke-linecap: round; }
.orbit-back { z-index: 1; opacity: .55; }
.orbit-front { z-index: 3; }
.orbit-dot { fill: var(--dot); stroke: var(--dot-ring); stroke-width: 4; filter: drop-shadow(0 0 8px var(--glow)); }

.chip {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.chip-k { font: 700 20px/1 var(--font-display); color: var(--ink); }
.chip-v { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.chip-v b { color: var(--ink); }
.chip-mark { width: 30px; height: 30px; }
.chip-a { top: 4%; left: -6%; }
.chip-b { bottom: 14%; right: -8%; animation-delay: -2s; flex-direction: column; align-items: flex-start; gap: 4px; }
.chip-c { bottom: -2%; left: 4%; animation-delay: -4s; }
.chip-a { flex-direction: column; align-items: flex-start; gap: 4px; }
.up { color: var(--up) !important; font-weight: 600; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* marquee */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li {
  display: flex; align-items: center; gap: 22px;
  padding: 20px 22px 20px 0;
  font: 600 18px/1 var(--font-display);
  color: var(--muted);
  white-space: nowrap;
}
.marquee li::after { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  padding: 26px 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--grad); }
.stat-num { display: block; font: 700 clamp(30px, 3.4vw, 42px)/1 var(--font-display); color: var(--ink); letter-spacing: -.03em; margin-bottom: 10px; }
.stat-label { font-size: 14px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head.left { text-align: left; margin: 0; }
.section-head h2, .about-copy h2, .contact-copy h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 700; margin: 12px 0 16px; }
.section-head p { color: var(--muted); font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand);
}
[data-theme="dark"] .eyebrow { color: var(--accent); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }

/* ---------- work ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.filter {
  font: 500 14px/1 var(--font-body);
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--brand); }
.filter.is-active { background: var(--grad); color: var(--on-brand); border-color: transparent; }

.cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case {
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.case.is-hidden { display: none; }

.case-media {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  padding: 0; border: 0; margin: 0;
  background: var(--surface-2);
  cursor: pointer; overflow: hidden;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease), filter .4s; }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
.case:hover .case-media img { transform: scale(1.04); }
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad); color: #fff;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--surface) 40%, transparent), 0 12px 30px -8px var(--glow);
  transition: transform .3s var(--ease);
}
.play svg { width: 24px; height: 24px; margin-left: 3px; }
.case-media:hover .play { transform: scale(1.1); }
.badge, .dur {
  position: absolute; z-index: 2; bottom: 12px;
  font: 600 12px/1 var(--font-body);
  padding: 7px 10px; border-radius: 999px;
  color: #fff; background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
}
.badge { left: 12px; }
.dur { right: 12px; font-variant-numeric: tabular-nums; }

.case-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.case-tags span { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-strong); }
[data-theme="dark"] .case-tags span { color: var(--ink-2); }
.case-title { font-size: 23px; font-weight: 700; }
.period { font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: auto 0 0; }
.metrics > div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); }
.metrics dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.metrics dd { margin: 0; font: 700 20px/1.15 var(--font-display); color: var(--ink); letter-spacing: -.02em; }
.metrics .up, .metrics .note { display: inline-block; font-size: 12.5px; margin-top: 4px; }
.metrics .note { color: var(--muted); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.service:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.service.featured { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; border: 1.5px solid transparent; }
.ribbon { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 6px 10px; border-radius: 999px; background: var(--grad); color: #fff; }
.service-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 15px; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand);
}
[data-theme="dark"] .service-icon { color: var(--accent); }
.service-icon svg { width: 26px; height: 26px; }
.service-title { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.service-title a { color: inherit; }
.service-title a:hover { color: var(--brand); }
[data-theme="dark"] .service-title a:hover { color: var(--accent); }
.service > p { color: var(--muted); font-size: 15.5px; }
.ticks { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2322c55e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat;
}
[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%235ee7f2' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E");
}
.service-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; }
[data-theme="dark"] .service-link { color: var(--accent); }
.service-link svg { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.service-link:hover svg { transform: translateX(4px); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-card {
  position: relative; border-radius: 28px; overflow: hidden;
  background: var(--grad); padding: 6px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform .5s var(--ease);
}
.about-card:hover { transform: rotate(0); }
.about-card img { border-radius: 23px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; width: 100%; background: #fff; }
.about-id {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.about-id strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: 17px; }
.about-id span { font-size: 13px; color: var(--muted); }
.about-copy p { color: var(--muted); font-size: 17px; }
.about-copy p strong { color: var(--ink); }
.skills { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.about-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.socials { display: flex; gap: 10px; }
.socials a {
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  transition: all .25s var(--ease);
}
.socials a:hover { color: #fff; background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.socials.big { margin-top: 28px; }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 30px; left: 6%; right: 6%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 16px);
  opacity: .4;
}
[data-theme="dark"] .steps::before { background: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px); }
.step { position: relative; padding: 0 6px; }
.step-num {
  position: relative; z-index: 1;
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%; margin-bottom: 22px;
  font: 700 19px/1 var(--font-display); color: #fff;
  background: var(--grad);
  box-shadow: 0 0 0 7px var(--bg-alt), 0 12px 26px -10px var(--glow);
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 22px;
  transition: border-color .25s, box-shadow .25s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0;
  font: 600 17px/1.35 var(--font-display); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font: 500 20px/1 var(--font-body);
  transition: transform .3s var(--ease);
}
[data-theme="dark"] .faq summary::after { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------- contact ---------- */
.contact { overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: -1; background: var(--grad-soft); opacity: .9; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); font-size: 17px; }
.contact-cards { display: grid; gap: 12px; margin-top: 28px; }
.contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), border-color .25s;
}
.contact-card:hover { transform: translateX(4px); border-color: var(--brand); color: var(--ink); }
.contact-card strong { display: block; font-family: var(--font-display); }
.contact-card small { color: var(--muted); font-size: 14px; }
.cc-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: var(--grad); color: #fff; flex: none; }
.cc-icon svg { width: 22px; height: 22px; }

.contact-form {
  display: grid; gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: 400 15px/1.4 var(--font-body);
  color: var(--ink);
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.contact-form .invalid { border-color: #e5484d; }
.form-error { color: #e5484d; font-size: 14px; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-tag { margin: 0; color: var(--muted); font-family: var(--font-display); font-size: 17px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; display: grid; place-items: center;
  border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, .55), 0 2px 6px rgba(0,0,0,.15);
  transition: transform .25s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366;
  animation: wa-ring 2.4s ease-out infinite;
}
@keyframes wa-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { color: #fff; transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; position: relative; }
.wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translate(8px, -50%); opacity: 0; pointer-events: none;
  white-space: nowrap;
  font: 600 14px/1 var(--font-body);
  padding: 10px 14px; border-radius: 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip, .wa-float.peek .wa-tip { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .wa-float:hover .wa-tip { opacity: 0; } }

/* ---------- Shopify Partner badges ---------- */
.partner-link { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.partner-link:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .partner-link:hover { color: var(--accent); }
.footer-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.partner-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink); font: 600 14px/1.15 var(--font-display);
  transition: border-color .2s, transform .2s;
}
.partner-badge:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }
.partner-badge svg { width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: var(--grad); color: #fff; }
.partner-badge small { display: block; font: 500 12px/1.2 var(--font-body); color: var(--muted); }

[hidden] { display: none !important; }

/* ---------- video player ---------- */
.player {
  width: min(1100px, 94vw); padding: 0; border: 0;
  border-radius: 20px; overflow: hidden;
  background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 90px -20px rgba(0,0,0,.6);
}
.player::backdrop { background: rgba(2, 6, 20, .78); backdrop-filter: blur(6px); }
.player-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.player-bar strong { font-family: var(--font-display); }
.player video { width: 100%; max-height: 78vh; background: #000; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 4px;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.35);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 17px; padding: 12px 14px; }
  .nav .nav-cta-mobile { display: inline-flex; margin-top: 8px; color: var(--on-brand); }
  .header-actions { margin-left: auto; }

  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .orbit-stage { width: min(360px, 86%); }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual { max-width: 420px; }
  .cases { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .services, .steps { grid-template-columns: 1fr; }
  .stats-grid { gap: 12px; }
  .stat { padding: 20px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px; }
  .metrics { gap: 6px; }
  .metrics > div { padding: 10px 9px; }
  .metrics dd { font-size: 16px; }
  .metrics dt, .metrics .up, .metrics .note { font-size: 11.5px; }
  .case-body { padding: 18px 16px 18px; }
  .chip { padding: 9px 12px; }
  .chip-k { font-size: 17px; }
  .chip-a { left: -4%; }
  .chip-b { right: -4%; }
  .brand-word { font-size: 17px; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Sales additions: result highlight, case stories, free audit,
   promise section
   ========================================================= */

/* headline number on each thumbnail */
.hl {
  position: absolute; z-index: 2; top: 12px; left: 12px;
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 8px 12px; border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font: 500 12.5px/1.1 var(--font-body); color: var(--muted);
}
.hl b {
  font: 700 22px/1 var(--font-display); letter-spacing: -.02em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* challenge / what we did */
.story { display: grid; gap: 8px; margin: -4px 0 18px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); border-left: 3px solid var(--brand); }
[data-theme="dark"] .story { border-left-color: var(--accent); }
.story p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.story b { display: block; font: 600 11.5px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* generic helpers */
.btn-block { width: 100%; }
.btn-text {
  background: none; border: 0; padding: 6px 4px; cursor: pointer;
  font: 600 14.5px/1 var(--font-body); color: var(--brand);
  text-decoration: underline; text-underline-offset: 3px;
}
[data-theme="dark"] .btn-text { color: var(--accent); }
.form-promise { margin: 0; font-size: 13.5px; color: var(--muted); }

/* ---------- free audit ---------- */
.audit { padding-top: 40px; }
.audit-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 48px;
  border-radius: 32px;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: var(--shadow-lg);
  position: relative; overflow: hidden;
}
.audit-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--grad-soft); opacity: .9;
}
.audit-card > * { position: relative; min-width: 0; }
.audit-copy h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; margin: 12px 0 16px; }
.audit-copy > p { color: var(--muted); font-size: 17px; }
.audit-copy > p strong { color: var(--ink); }
.audit-checks { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.audit-checks li { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.audit-checks svg { width: 20px; height: 20px; flex: none; padding: 3px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
[data-theme="dark"] .audit-checks svg { color: var(--accent); }
.audit-steps { display: flex; flex-wrap: wrap; gap: 10px; }
.audit-steps div {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.audit-steps span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font-size: 12px; }

.audit-form {
  display: grid; gap: 14px;
  padding: 28px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.audit-form-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.audit-form-head strong { display: block; font: 700 19px/1.2 var(--font-display); color: var(--ink); }
.audit-form-head small { color: var(--muted); font-size: 13.5px; }
.audit-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.audit-form input, .audit-form select {
  font: 400 15px/1.4 var(--font-body); color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.audit-form input:focus, .audit-form select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.audit-form .invalid { border-color: #e5484d; }
.audit-form .btn-text { justify-self: center; }
.audit-fine { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.audit-fine li { display: inline-flex; align-items: center; gap: 5px; }
.audit-fine svg { width: 14px; height: 14px; color: var(--up); }

/* ---------- promise ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.promise-item {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), border-color .35s;
}
.promise-item:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.pi-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 15px; margin-bottom: 18px; background: var(--grad); color: #fff; box-shadow: 0 10px 22px -10px var(--glow); }
.pi-icon svg { width: 24px; height: 24px; }
.promise-item h3 { font-size: 19px; margin-bottom: 8px; }
.promise-item p { margin: 0; color: var(--muted); font-size: 15px; }

/* lightbox actions */
.player-actions { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1024px) {
  .promises { grid-template-columns: repeat(2, 1fr); }
  .audit-card { grid-template-columns: minmax(0, 1fr); padding: 36px; }
}
@media (max-width: 600px) {
  .audit-card { padding: 22px 18px; border-radius: 24px; gap: 28px; }
  .audit-checks { grid-template-columns: 1fr; }
  .audit-form { padding: 20px; }
  .promises { grid-template-columns: 1fr; }
  .hl b { font-size: 18px; }
  .player-bar strong { font-size: 14px; }
}


/* =========================================================
   Multi-page layout
   ========================================================= */
.nav .nav-contact { display: none; }
.more-link { text-align: center; margin: 36px 0 0; }
.more-link.left { text-align: left; margin-top: 8px; }
.section-tight { padding-top: 48px; }
.muted { color: var(--muted); }
.h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin: 12px 0 14px; }
.narrow { width: min(780px, 100% - 40px); }

/* breadcrumbs */
.breadcrumbs ol { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 500; }

/* inner page hero */
.page-hero { position: relative; padding: 56px 0 56px; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; letter-spacing: -.03em; margin: 14px 0 18px; max-width: 900px; }
.page-hero .lead { max-width: 720px; }
.page-hero .hero-ctas { margin-bottom: 0; }
.page-hero.audit-hero { padding-bottom: 40px; }
.audit-card-hero h1 { font-size: clamp(32px, 4.2vw, 50px); margin: 12px 0 16px; }

/* service page */
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.svc-aside { position: sticky; top: 96px; }
.aside-card {
  padding: 28px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; gap: 14px;
}
.aside-card h2 { font-size: 22px; }
.aside-card p { margin: 0; color: var(--muted); font-size: 15px; }
.aside-card .service-icon { margin-bottom: 0; }
.aside-card .socials { flex-wrap: wrap; }
.promise-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 9px; }
.promise-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.promise-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--up); }
.contact-copy .contact-h { font-size: 22px; margin: 32px 0 14px; }

.prose { font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin: .4em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }
.prose strong { color: var(--ink); }

.inc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 6px 0 10px; }
.inc-item { display: flex; gap: 12px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.inc-item > svg { width: 24px; height: 24px; flex: none; padding: 4px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
[data-theme="dark"] .inc-item > svg { color: var(--accent); }
.prose .inc-item h3 { font-size: 16.5px; margin: 0 0 4px; }
.prose .inc-item p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* audit page */
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.check-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.check-num { display: inline-block; font: 700 14px/1 var(--font-display); padding: 7px 10px; border-radius: 10px; background: var(--grad); color: #fff; margin-bottom: 14px; }
.check-card h3 { font-size: 19px; margin-bottom: 8px; }
.check-card p { margin: 0; color: var(--muted); font-size: 15px; }
.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.example-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.example-list li { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.example-list svg { width: 22px; height: 22px; flex: none; padding: 4px; border-radius: 50%; background: var(--grad); color: #fff; }

/* FAQ page */
.faq-page { max-width: 860px; }
.faq-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.faq-toc a { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.faq-toc a:hover { border-color: var(--brand); color: var(--ink); }
.faq-group { margin-bottom: 44px; scroll-margin-top: 96px; }
.faq-group h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 16px; }

/* about page */
.facts { display: grid; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink); }

/* CTA band */
.cta-band { padding: 0 0 96px; }
.cta-card {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px;
  padding: 40px 44px; border-radius: 28px; color: #fff;
  background: var(--grad); box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-bottom: 8px; }
.cta-card p { margin: 0; max-width: 560px; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-card .btn-primary { background: #fff; color: var(--brand-strong); box-shadow: none; }
.cta-card .btn-primary:hover { color: var(--brand-strong); }
[data-theme="dark"] .cta-card .btn-primary { color: #3a2bff; }
.cta-card .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.cta-card .btn-ghost:hover { color: #fff; border-color: #fff; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post-card { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; color: inherit; }
.post-card-link:hover { color: inherit; }
.post-card h2, .post-card h3 { font-size: 21px; line-height: 1.25; }
.post-card p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.post-card .service-link { margin-top: auto; }
.post-meta { font-size: 13px; color: var(--muted); font-weight: 500; }

.post-header { position: relative; padding: 56px 0 36px; overflow: hidden; }
.post-header h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -.03em; margin: 12px 0 22px; }
.byline { display: flex; align-items: center; gap: 12px; }
.byline img { width: 44px; height: 44px; border-radius: 50%; }
.byline a { color: var(--ink); }
.byline strong { display: block; font-family: var(--font-display); }
.byline span { font-size: 14px; color: var(--muted); }
.post-body { padding-bottom: 72px; }
.post-lead { font-size: 19px; color: var(--ink); }
.toc { margin: 28px 0 8px; padding: 20px 24px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.toc strong { font-family: var(--font-display); color: var(--ink); }
.toc ol { margin: 10px 0 0; }
.prose .toc a { text-decoration: none; }
.prose ul.checklist { list-style: none; padding-left: 0; }
.prose ul.checklist li { position: relative; padding-left: 30px; }
.prose ul.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 19px; height: 19px; border-radius: 6px;
  background: var(--grad);
}
.prose ul.checklist li::after {
  content: ""; position: absolute; left: 7px; top: 9px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg);
}
.note { font-size: 15px; padding: 14px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--ink-2); }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 48px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.author-box img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box strong { font-family: var(--font-display); color: var(--ink); font-size: 18px; }
.author-box p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* footer columns */
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer-h { font: 700 15px/1.2 var(--font-display); color: var(--ink); margin: 6px 0 14px; letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--brand); }
[data-theme="dark"] .footer-links a:hover { color: var(--accent); }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound .lead, .notfound h1 { margin-inline: auto; }
.notfound .hero-ctas { justify-content: center; }
.notfound-links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; }

@media (max-width: 1100px) {
  .nav a { padding: 8px 10px; }
}
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-aside { position: static; }
  .check-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 900px) {
  .nav .nav-contact { display: block; }
}
@media (max-width: 600px) {
  .page-hero { padding: 36px 0 40px; }
  .inc-grid, .check-grid, .post-grid, .post-grid.two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-card { padding: 28px 22px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .author-box { flex-direction: column; align-items: flex-start; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .prose { font-size: 16.5px; }
}

/* ---------- cookie banner (only rendered when COOKIE_BANNER is on) ---------- */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 70;
  width: min(400px, calc(100% - 110px));
  display: grid; gap: 12px;
  padding: 16px 18px; border-radius: 16px;
  background: var(--surface); color: var(--ink-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14px; line-height: 1.5;
}
.cookie-banner p { margin: 0; }
.cookie-banner strong { color: var(--ink); }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions .btn { padding: 9px 16px; font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
@media (max-width: 600px) {
  .cookie-banner { left: 12px; bottom: 12px; width: calc(100% - 96px); padding: 14px; }
}

/* ---------- Fiverr / Upwork ---------- */
.market-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.market-line svg { width: 18px; height: 18px; color: var(--brand); }
[data-theme="dark"] .market-line svg { color: var(--accent); }
.market-line a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.market-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.market-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.market-badge:hover { color: var(--ink); border-color: var(--brand); transform: translateY(-2px); }
.market-badge svg { width: 16px; height: 16px; color: var(--brand); }
[data-theme="dark"] .market-badge svg { color: var(--accent); }
.contact-cards + .contact-cards { margin-top: 12px; }
