/* =============================================
   ZAID RAHHAL — Precision Light v5
   Apple × Engineering × Syne × DM Sans
   ============================================= */

/* --- Design Tokens --- */
:root {
  --bg:          #f5f5f7;
  --card:        #ffffff;
  --surface-2:   #f0f0f5;

  --text:        #1d1d1f;
  --text-2:      #3d3d40;
  --muted:       #6e6e73;
  --dim:         #a1a1a6;

  --border:      rgba(0,0,0,0.09);
  --border-hi:   rgba(0,0,0,0.18);
  --accent:      #2563eb;

  --font-display: "Syne", sans-serif;
  --font-body:    "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --ease:        cubic-bezier(0.2, 0, 0, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);

  --container:   1180px;
  --nav-h:       84px;
  --r:           10px;
  --r-lg:        16px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: color 0.2s var(--ease); }
ul { list-style: none; }
button { font-family: inherit; }
:where(h1, h2, h3, h4, p, ul, li) { margin: 0; }

/* Subtle dot grid on all sections */
section, .hero, .page-hero {
  background-image: radial-gradient(rgba(0,0,0,0.055) 1px, transparent 0);
  background-size: 40px 40px;
}

/* --- Scroll Progress --- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--text);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  line-height: 1.08;
  text-transform: none;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.25rem; }

p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 20px;
}

.section-label::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--dim);
}

.section-heading { margin-bottom: 20px; }

.section-sub {
  margin-bottom: 48px;
  max-width: 55ch;
  color: var(--muted);
}

/* --- Layout --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

.section { padding: 120px 0; position: relative; }

.section--alt { background: var(--card); }

/* Override dot grid for card/white sections */
.section--alt {
  background-color: var(--card);
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
}

/* --- Delay Utilities --- */
.delay-1 { transition-delay: 80ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 240ms; }
.delay-4 { transition-delay: 320ms; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 16px 24px;
  pointer-events: none;
  /* Compress pill toward top on scroll via padding transition */
  transition: padding 0.4s var(--ease-out);
}

.nav.scrolled {
  padding-top: 10px;
}

/* ── Pill ── */
.nav__inner {
  pointer-events: all;
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 52px;
  padding: 0 8px 0 20px;
  /* Glass surface */
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(32px) saturate(200%);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 100px;
  /* Layered float shadow */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 1px 3px rgba(0,0,0,0.06),
    0 6px 20px rgba(0,0,0,0.09),
    0 18px 48px rgba(0,0,0,0.08);
  transition:
    height           0.4s var(--ease-out),
    background       0.35s var(--ease),
    border-color     0.35s var(--ease),
    box-shadow       0.35s var(--ease),
    backdrop-filter  0.35s var(--ease),
    -webkit-backdrop-filter 0.35s var(--ease);
}

/* Scrolled: pill slightly shorter + deeper shadow */
.nav.scrolled .nav__inner {
  height: 46px;
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(48px) saturate(220%);
  -webkit-backdrop-filter: blur(48px) saturate(220%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 2px 8px rgba(0,0,0,0.09),
    0 10px 36px rgba(0,0,0,0.12),
    0 28px 60px rgba(0,0,0,0.09);
}

.nav__brand-name {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text);
  transition: opacity 0.2s var(--ease);
}

.nav__brand:hover .nav__brand-name { opacity: 0.65; }

.nav__status {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0 14px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.nav__status-item { display: flex; align-items: center; gap: 8px; }

.nav__status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 0 0 rgba(52,199,89,0);
  animation: blink 2.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,199,89,0.4); }
  50%       { opacity: 0.4; box-shadow: 0 0 0 4px rgba(52,199,89,0); }
}

/* ── Nav links with animated underline ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__links a {
  position: relative;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: 6px;
  transition: color 0.2s var(--ease);
  /* remove old background rule — underline only */
}

/* Remove old pseudo-element suppression, replace with underline */
.nav__links a::before { display: none; }

.nav__links a::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 2px;
  left: 11px;
  width: 0;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.28s var(--ease-out);
}

.nav__links a:hover { color: var(--text); }

.nav__links a:hover::after { width: calc(100% - 22px); }

.nav__links a.nav-link--active { color: var(--text); }
.nav__links a.nav-link--active::after { width: calc(100% - 22px); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 7px;
  gap: 4px;
}

.nav__hamburger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
}

.nav__mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--card);
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 84px 28px 36px;
  gap: 4px;
  z-index: 1100;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.nav__mobile-menu.open { transform: translateX(0); }

.nav__mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s var(--ease);
}

.nav__mobile-menu a:hover { color: var(--text); }
.nav__mobile-menu a.btn {
  margin-top: auto;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
  border-bottom: none;
  padding: 14px 22px;
}

.nav__mobile-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.nav__mobile-close:hover { background: var(--bg); }

@media (max-width: 1080px) {
  .nav__status { display: none; }
}

@media (max-width: 900px) {
  .nav__links     { display: none; }
  .nav__hamburger { display: flex; }
  /* Hide pill CTA — Start Project lives in the mobile menu */
  .nav__actions .btn-primary { display: none; }
  .nav__inner { padding: 0 12px 0 18px; }
}

@media (max-width: 768px) {
  .nav__inner { padding: 0 10px 0 16px; }
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: var(--card);
  border-color: var(--text);
}

.btn-primary:hover {
  background: var(--text-2);
  border-color: var(--text-2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  color: var(--card);
}

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border-hi);
}

.btn-secondary:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border-color: var(--border-hi);
}

.btn-pill { border-radius: 100px; }
.nav__actions .btn-primary {
  padding: 9px 18px;
  font-size: 13px;
  border-radius: 100px;
  height: 36px;
  display: flex;
  align-items: center;
  /* Richer hover — lift + glow */
  transition: background 0.22s var(--ease), color 0.22s var(--ease),
              transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease);
}

.nav__actions .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 0 0;
  overflow: hidden;
  background-color: var(--bg);
  background-image:
    linear-gradient(to bottom, transparent 55%, var(--bg) 100%),
    linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 100% 100%, 64px 64px, 64px 64px;
}

.hero > .container { width: 100%; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.9), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
  padding: 40px 0;
}

.hero-content { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 28px;
}

.hero-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34c759;
  animation: blink 2s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 0;
}

.hero .hero__desc {
  margin-top: 16px;
}

.hero__title em {
  font-style: normal;
  color: var(--text);
  position: relative;
}

/* Underline-style accent on 'clients' */
.hero__title em::after {
  content: "";
  position: absolute;
  bottom: 2px; left: 0; right: 0;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  opacity: 0.2;
}

.hero__desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 48ch;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Hero button hierarchy */
.hero-actions .btn-primary {
  box-shadow: 0 2px 8px rgba(0,0,0,0.14), 0 1px 2px rgba(0,0,0,0.08);
}

.hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.10);
}

.hero-actions .btn-secondary {
  color: var(--muted);
  border-color: var(--border);
  background: transparent;
}

.hero-actions .btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-hi);
  background: transparent;
  transform: translateY(-1px);
}

.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-trust span img { opacity: 0.55; width: 17px; height: 17px; }

/* Hero terminal card */
.hero-product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px -10px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 4px;
}

.hero-product-card__inner {
  padding: 0;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* Hero responsive */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-content { text-align: center; max-width: 100%; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; flex-wrap: wrap; gap: 20px; }
  .hero-badge { justify-content: center; }
}

@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-h) + 8px) 0 56px;
    min-height: auto;
    align-items: flex-start;
  }
  .hero__inner {
    padding: 16px 0 0;
    gap: 2.5rem;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-badge { justify-content: center; }
  .hero__title {
    font-size: clamp(2.4rem, 10.5vw, 3.2rem);
    max-width: 10em;
    text-align: center;
  }
  .hero__desc {
    font-size: 1rem;
    max-width: 38ch;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-top: 14px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 340px;
    gap: 10px;
    margin-top: 24px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 22px;
  }
  .hero-trust {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding-top: 16px;
  }
  /* Show hero card below content on mobile, centered */
  .hero-product-card {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 4px;
  }
  .hero-product-card .terminal-widget {
    max-width: 100%;
    max-height: 320px;
    font-size: 11px;
  }
  .terminal-widget .terminal-body { padding: 14px 16px; }
}

/* Hero stack / floating (legacy, hidden) */
.hero-stack { display: flex; gap: 18px; margin-top: 20px; align-items: center; }
.hero-stack img { width: 22px; height: 22px; opacity: 0.5; transition: opacity .25s ease; }
.hero-stack img:hover { opacity: 0.9; }
.hero-trust-strip { display: none; }
.hero-floating-card { display: none; }

/* === TERMINAL WIDGET — Minimal (Linear/Vercel style) === */
.terminal-widget {
  --terminal-text: #111111;
  --terminal-muted: #6b7280;
  --terminal-border: #dcdcdc;
  --terminal-bg: #ffffff;
  --terminal-accent: #2563eb;
  --terminal-success: #16a34a;
  --terminal-section: #374151;
  --terminal-input-bg: #f8fafc;
  background: var(--terminal-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 14px;
  overflow: hidden;
  font-family: var(--font-mono);
  width: 100%;
  max-width: 520px;
  max-height: 420px;
  display: flex;
  flex-direction: column;
}

.terminal-widget .terminal-titlebar {
  background: var(--terminal-bg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--terminal-border);
}

.terminal-widget .terminal-dots { display: flex; gap: 6px; }
.terminal-widget .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--terminal-border); }
.terminal-widget .dot-red,
.terminal-widget .dot-yellow,
.terminal-widget .dot-green { background: var(--terminal-border); }

.terminal-widget .terminal-tab {
  font-size: 11px;
  color: var(--terminal-muted);
  margin-left: 8px;
  letter-spacing: 0.04em;
  overflow: hidden;
  white-space: nowrap;
}

.terminal-widget .terminal-body {
  padding: 20px 24px;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 0;
}

.terminal-body::-webkit-scrollbar { display: none; }

.terminal-widget #analyze-phase { display: none; margin-top: 16px; }
.terminal-widget .analyze-slot  { min-height: 90px; position: relative; }
.terminal-widget .analyze-input { display: block; }
.terminal-widget .cta-block     { display: none; }

.terminal-widget .terminal-section-label {
  font-size: 10px;
  color: var(--terminal-section);
  margin-bottom: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--terminal-border);
  padding-bottom: 8px;
}

.terminal-widget .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terminal-accent);
  display: inline-block;
  animation: terminal-pulse 2s infinite;
  box-shadow: 0 0 6px rgba(37,99,235,0.25);
}

.terminal-widget .build-line {
  font-size: 12px;
  color: var(--terminal-text);
  margin-bottom: 5px;
  opacity: 0;
  transition: opacity 0.25s ease;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.terminal-widget .terminal-cursor {
  color: var(--terminal-accent);
  font-size: 12px;
  animation: terminal-blink 1s step-end infinite;
}

.terminal-widget .prompt-line {
  font-size: 12px;
  color: var(--terminal-muted);
  margin-bottom: 10px;
}

.terminal-widget .input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
}

.terminal-widget .prompt-dollar { display: none; }

.terminal-widget .url-input {
  background: var(--terminal-input-bg);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--terminal-text);
  flex: 1;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.terminal-widget .url-input::placeholder { color: var(--terminal-muted); }
.terminal-widget .url-input:focus {
  border-color: var(--terminal-accent);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.1);
}

.terminal-widget .scan-btn {
  background: var(--terminal-accent);
  border: none;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 10px;
  font-family: var(--font-mono);
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.08em;
  font-weight: 700;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.terminal-widget .scan-btn:hover { background: #1d4ed8; }
.terminal-widget .scan-loading   { margin-top: 4px; }

.terminal-widget .scan-line {
  font-size: 12px;
  margin-bottom: 5px;
  opacity: 0;
  transition: opacity 0.25s ease;
  line-height: 1.6;
}

.terminal-widget .scan-line.visible { opacity: 1; }

.terminal-widget .cta-block {
  margin-top: 8px;
  padding: 14px 16px;
  background: rgba(37,99,235,0.04);
  border: 1px solid var(--terminal-border);
  border-radius: 8px;
  animation: terminal-fadein 0.4s ease forwards;
}

.terminal-widget .cta-text {
  font-size: 10px;
  color: var(--terminal-muted);
  line-height: 1.5;
  flex: 1;
}

.terminal-widget .cta-link {
  font-size: 10px;
  font-weight: 700;
  color: var(--terminal-accent);
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.terminal-widget .cta-link:hover { color: #1d4ed8; text-decoration: underline; }

@keyframes terminal-blink  { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes terminal-pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes terminal-fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Score grid — used in both audit and result phases */
.terminal-widget .score-grid {
  margin-top: 14px;
  animation: terminal-fadein 0.35s ease forwards;
}

.terminal-widget .score-item {
  margin-bottom: 11px;
}

.terminal-widget .score-item:last-child { margin-bottom: 0; }

.terminal-widget .score-item__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5px;
}

.terminal-widget .score-item__label {
  font-size: 10px;
  color: var(--terminal-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.terminal-widget .score-item__val {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.terminal-widget .score-item__val.score-green  { color: var(--terminal-success); }
.terminal-widget .score-item__val.score-orange { color: #d97706; }
.terminal-widget .score-item__val.score-red    { color: #dc2626; }

.terminal-widget .score-bar {
  height: 3px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.terminal-widget .score-bar__fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: width 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.terminal-widget .score-bar__fill.fill-green  { background: var(--terminal-success); }
.terminal-widget .score-bar__fill.fill-orange { background: #d97706; }
.terminal-widget .score-bar__fill.fill-red    { background: #dc2626; }

/* CTA footer inside cta-block */
.terminal-widget .cta-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--terminal-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* === TESTIMONIALS === */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Spotlight */
.testimonial-card::before,
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0,0,0,0.03),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

.testimonial-card:hover::before,
.service-card:hover::before { opacity: 1; }

.testimonial-card > *,
.service-card > * { position: relative; z-index: 1; }

.testimonial-card__rating {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text);
  margin-bottom: 16px;
}

.testimonial-card__quote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.testimonial-card__role {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* === SERVICES — Light section === */
.services-section {
  padding: 60px 0;
  position: relative;
}

/* ─── Header layout ─── */
.services-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 0;
}

.services-header__left { max-width: 50ch; }

.services-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--dim);
  margin-bottom: 0.6rem;
}

.services-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.services-desc { font-size: 0.9rem; color: var(--muted); }

/* === SERVICES — Bento Grid === */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

/* ─── Card base ─── */
.bento-card {
  --glow-x: 80%;
  --glow-y: 10%;
  --glow-color: rgba(37,99,235,0.10);
  background: var(--card);
  border-radius: 16px;
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    border-color 0.3s ease;
  z-index: 0;
}

/* Radial glow — position tracked by JS */
.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 180px at var(--glow-x) var(--glow-y),
    var(--glow-color),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 0;
  border-radius: 16px;
}

.bento-card > *,
.bento-card .bento-card__inner,
.bento-card .bento-card__inner > *,
.bento-card .bento-card__body > * { position: relative; z-index: 1; }

.bento-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,0,0,0.09);
  box-shadow: 0 4px 8px rgba(0,0,0,0.05), 0 16px 40px rgba(0,0,0,0.08);
}

.bento-card:hover::before { opacity: 1; }

/* ─── Per-card grid placement + color tokens ─── */
.bento-card--dev {
  --glow-color: rgba(37,99,235,0.11);
  grid-column: 1 / 3;
  grid-row: 1;
  background: linear-gradient(135deg, rgba(239,246,255,0.7) 0%, rgba(255,255,255,1) 60%);
  border-color: rgba(37,99,235,0.14);
}

.bento-card--landing {
  --glow-color: rgba(22,163,74,0.10);
  --glow-x: 85%;
  --glow-y: 8%;
  grid-column: 3;
  grid-row: 1;
}

.bento-card--redesign {
  --glow-color: rgba(147,51,234,0.09);
  --glow-x: 82%;
  --glow-y: 12%;
}

.bento-card--seo {
  --glow-color: rgba(2,132,199,0.10);
  --glow-x: 80%;
  --glow-y: 10%;
}

.bento-card--maintenance {
  --glow-color: rgba(100,116,139,0.08);
  --glow-x: 75%;
  --glow-y: 50%;
}

/* ─── Icon badge ─── */
.bento-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.bento-card:hover .bento-card__icon { transform: scale(1.1) translateY(-1px); }

.bento-card--dev .bento-card__icon {
  background: rgba(37,99,235,0.10);
  border-color: rgba(37,99,235,0.16);
  color: #2563eb;
  box-shadow: 0 2px 8px rgba(37,99,235,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.bento-card--dev:hover .bento-card__icon { box-shadow: 0 4px 16px rgba(37,99,235,0.22), inset 0 1px 0 rgba(255,255,255,0.7); }

.bento-card--landing .bento-card__icon {
  background: rgba(22,163,74,0.10);
  border-color: rgba(22,163,74,0.15);
  color: #16a34a;
  box-shadow: 0 2px 8px rgba(22,163,74,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.bento-card--landing:hover .bento-card__icon { box-shadow: 0 4px 16px rgba(22,163,74,0.2), inset 0 1px 0 rgba(255,255,255,0.7); }

.bento-card--redesign .bento-card__icon {
  background: rgba(147,51,234,0.10);
  border-color: rgba(147,51,234,0.15);
  color: #9333ea;
  box-shadow: 0 2px 8px rgba(147,51,234,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.bento-card--redesign:hover .bento-card__icon { box-shadow: 0 4px 16px rgba(147,51,234,0.2), inset 0 1px 0 rgba(255,255,255,0.7); }

.bento-card--seo .bento-card__icon {
  background: rgba(2,132,199,0.10);
  border-color: rgba(2,132,199,0.15);
  color: #0284c7;
  box-shadow: 0 2px 8px rgba(2,132,199,0.12), inset 0 1px 0 rgba(255,255,255,0.7);
}
.bento-card--seo:hover .bento-card__icon { box-shadow: 0 4px 16px rgba(2,132,199,0.2), inset 0 1px 0 rgba(255,255,255,0.7); }

.bento-card--maintenance .bento-card__icon {
  background: rgba(100,116,139,0.10);
  border-color: rgba(100,116,139,0.15);
  color: #64748b;
  box-shadow: 0 2px 8px rgba(100,116,139,0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}
.bento-card--maintenance:hover .bento-card__icon { box-shadow: 0 4px 16px rgba(100,116,139,0.18), inset 0 1px 0 rgba(255,255,255,0.7); }

/* ─── Card illustration area ─── */
.bento-card__art {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.bento-card:hover .bento-card__art {
  opacity: 1;
  transform: translateY(-2px);
}

/* ─── Number label ─── */
.bento-card__num {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}

/* ─── Title ─── */
.bento-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 7px;
}

/* Dev card title is larger — it's the hero card */
.bento-card--dev .bento-card__title {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* ─── Description ─── */
.bento-card__desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

/* ─── Arrow link ─── */
.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-top: 14px;
  opacity: 0.4;
  transition: opacity 0.2s ease, gap 0.2s var(--ease-out);
  flex-shrink: 0;
}

.bento-card:hover .bento-card__link {
  opacity: 1;
  gap: 10px;
}

.bento-card--maintenance .bento-card__link {
  opacity: 0.75;
  color: #64748b;
}

/* ─── Dev card: two-column inner layout ─── */
.bento-card--dev .bento-card__inner {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 28px;
  align-items: center;
  height: 100%;
}

/* ─── Lighthouse metrics panel ─── */
.bento-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 12px;
  border: 1px solid rgba(37,99,235,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    0 2px 10px rgba(37,99,235,0.08),
    0 1px 3px rgba(0,0,0,0.05);
  flex-shrink: 0;
  overflow: hidden;
}

.bento-metrics__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px 10px;
  background: rgba(37,99,235,0.05);
  border-bottom: 1px solid rgba(37,99,235,0.10);
}

.bento-metrics__label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #2563eb;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bento-metrics__badge {
  font-family: var(--font-mono);
  font-size: 8.5px;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 100px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.bento-metric {
  display: grid;
  grid-template-columns: 82px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(37,99,235,0.07);
  transition: background 0.18s ease;
}

.bento-metric:last-child { border-bottom: none; }

.bento-metric:hover { background: rgba(37,99,235,0.03); }

.bento-metric__label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bento-metric__bar-wrap {
  height: 4px;
  background: rgba(37,99,235,0.08);
  border-radius: 100px;
  overflow: hidden;
}

.bento-metric__bar {
  height: 100%;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  border-radius: 100px;
  width: 0%;
  box-shadow: 0 0 6px rgba(22,163,74,0.4);
  transition: width 1s var(--ease-out);
}

.bento-metric__score {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  text-align: right;
}

/* ─── Landing card: feature bullet list ─── */
.bento-list {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.bento-list li {
  font-size: 0.8rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}

.bento-list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
}

/* ─── Maintenance card: side-by-side ─── */
.bento-card--maintenance .bento-card__inner {
  display: flex;
  gap: 28px;
  align-items: stretch;
  height: 100%;
}

.bento-card--maintenance .bento-card__body {
  flex: 1;
}

.bento-maintenance-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  flex-shrink: 0;
  align-self: stretch;
}

.bento-maintenance-art {
  margin-top: 0;
  padding-top: 0;
  justify-content: flex-start;
  opacity: 0.82;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease-out);
}

.bento-card--maintenance:hover .bento-maintenance-art {
  opacity: 1;
  transform: translateY(4px);
}

.maintenance-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.maintenance-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.4;
}

.maintenance-list li::before {
  content: "";
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(100,116,139,0.08);
  border: 1px solid rgba(100,116,139,0.18);
  background-image: url("data:image/svg+xml,%3Csvg width='8' height='8' viewBox='0 0 8 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 4L3 5.5L6.5 2' stroke='%2364748b' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card--dev { grid-column: 1 / -1; grid-row: auto; }
  .bento-card--landing { grid-column: auto; grid-row: auto; }
  .bento-card--dev .bento-card__inner { grid-template-columns: 1fr; }
  .bento-metrics { display: none; }
  .bento-card--maintenance .bento-card__inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; gap: 10px; }
  .bento-card--dev { min-height: auto; }
}

/* Legacy service card — hidden, keep for JS compatibility */
.services-grid { display: none; }
.service-card  { display: none; }

@media (max-width: 900px) {
  .service-row { grid-template-columns: 40px 1fr 24px; gap: 0 20px; }
  .service-row__desc { display: none; }
}

@media (max-width: 640px) {
  .services-header { flex-direction: column; align-items: flex-start; }
  .service-row { grid-template-columns: 36px 1fr 20px; gap: 0 16px; padding: 18px 0; }
}

/* === WORK / PROJECT FILMS === */
.work-film {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.work-film--next { padding-bottom: 56px; }

.project-specs {
  display: flex;
  gap: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.spec-item .label {
  font-size: 0.6rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.spec-item span:not(.label) { color: var(--text-2); }

.work-film__inner {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.outcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: var(--bg);
  border: 1px solid var(--border-hi);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
  margin-bottom: 20px;
}

.work-film__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.work-film__desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 18px;
}

/* Result badges */
.work-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.work-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.work-result-badge--green {
  background: rgba(22,163,74,0.07);
  border: 1px solid rgba(22,163,74,0.22);
  color: #15803d;
}

.work-result-badge--blue {
  background: rgba(37,99,235,0.07);
  border: 1px solid rgba(37,99,235,0.20);
  color: #1d4ed8;
}

.work-result-badge svg { flex-shrink: 0; }

.work-film__metrics {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.work-film__metrics li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
}

.work-film__metrics li strong { color: var(--text); font-weight: 600; }

.work-film__metrics li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0.25;
  flex-shrink: 0;
}

.work-film__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid var(--border-hi);
  padding-bottom: 3px;
  transition: gap 0.2s var(--ease), border-color 0.2s var(--ease);
}

.work-film__link:hover { gap: 13px; border-color: var(--text); }

/* Device showcase */
.device-showcase {
  position: relative;
  perspective: 1200px;
}

.device-mac {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #0f0f0f;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
  transition: transform 0.6s var(--ease);
}

.device-mac img { display: block; width: 100%; height: auto; }

.device-phone {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 180px;
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid #0f0f0f;
  box-shadow: 0 12px 36px rgba(0,0,0,0.2);
  z-index: 5;
  transition: transform 0.6s var(--ease);
}

.device-phone img { display: block; width: 100%; height: auto; }

.work-film:hover .device-mac   { transform: translateY(-8px) rotateX(2deg); }
.work-film:hover .device-phone { transform: translateY(-16px) rotateZ(-2deg); }

@media (max-width: 1024px) {
  .work-film__inner { grid-template-columns: 1fr; gap: 40px; }
  /* Show phone mockup inline below the Mac on tablets/mobile */
  .device-showcase { padding-bottom: 0; }
  .device-phone {
    position: static;
    width: 120px;
    margin: 16px auto 0;
    display: block;
    border-radius: 20px;
    border-width: 5px;
  }
}

@media (max-width: 768px) {
  .work-film { padding: 48px 0; }
  .work-film__inner { gap: 28px; }
  .work-film__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .work-film__desc { font-size: 0.9rem; }
  .work-film__foot { gap: 20px; }
  .work-film--next { padding-bottom: 48px; }
  .device-phone { width: 90px; border-radius: 16px; border-width: 4px; }
  .work-result-badges { flex-wrap: wrap; }
  .page-hero h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .page-hero p { font-size: 0.95rem; }
}

/* === PROCESS TIMELINE === */
.process-timeline {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-top: 56px;
}

/* ── Rail ── */
.process-timeline__rail {
  position: absolute;
  /* vertically centered on the 52px marker area */
  top: 26px;
  /* spans center-of-first-col → center-of-last-col = 10% → 90% */
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--border);
  pointer-events: none;
  z-index: 0;
}

.process-timeline__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #2563eb 0%,
    #7c3aed 25%,
    #db2777 50%,
    #0891b2 75%,
    #16a34a 100%
  );
  border-radius: 1px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Each Step ── */
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.process-step.step-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dot marker ── */
.process-step__marker {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  flex-shrink: 0;
}

.process-step__dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--border);
  transition:
    border-color 0.25s ease,
    background   0.25s ease,
    box-shadow   0.25s ease,
    transform    0.25s ease;
}

.process-step:hover .process-step__dot {
  border-color: var(--step-color, #2563eb);
  background:   var(--step-color, #2563eb);
  box-shadow:   0 0 0 5px color-mix(in srgb, var(--step-color, #2563eb) 18%, transparent);
  transform:    scale(1.25);
}

/* ── Card ── */
.process-step__card {
  width: 100%;
  padding: 22px 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  transition:
    transform    0.3s var(--ease-out),
    box-shadow   0.3s var(--ease-out),
    border-color 0.3s ease;
}

.process-step:hover .process-step__card {
  transform:    translateY(-5px);
  box-shadow:   0 4px 16px rgba(0,0,0,0.07), 0 14px 32px rgba(0,0,0,0.07);
  border-color: rgba(0,0,0,0.10);
}

/* Step number (mono label above icon) */
.process-step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--step-color, #2563eb);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 12px;
}

/* Icon */
.process-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--step-color, #2563eb) 11%, transparent);
  color: var(--step-color, #2563eb);
  margin-bottom: 14px;
  transition: transform 0.3s var(--ease-out);
}

.process-step:hover .process-step__icon {
  transform: scale(1.12) rotate(-4deg);
}

/* Title */
.process-step__title {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

/* Description */
.process-step__desc {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 22ch;
}

/* ── Mobile: vertical timeline ── */
@media (max-width: 860px) {
  .process-timeline {
    flex-direction: column;
    align-items: stretch;
    padding-left: 28px;
    gap: 0;
  }

  .process-timeline__rail {
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-timeline__fill {
    width: 100% !important;
    height: 0%;
    background: linear-gradient(
      180deg,
      #2563eb 0%,
      #7c3aed 25%,
      #db2777 50%,
      #0891b2 75%,
      #16a34a 100%
    );
    transition: height 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .process-step {
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    margin-bottom: 16px;
  }

  .process-step:last-child {
    margin-bottom: 0;
  }

  .process-step__marker {
    width: 40px;
    height: auto;
    padding: 24px 0 0;
    justify-content: center;
    flex-shrink: 0;
  }

  .process-step__card {
    flex: 1;
    margin-left: 16px;
    margin-top: 12px;
  }

  .process-step__desc {
    max-width: 100%;
  }
}

/* === FAQ === */
.faq-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 48px 64px;
  align-items: start;
  margin-top: 2rem;
}

.faq-list { display: flex; flex-direction: column; }
.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  padding: 1.25rem 0;
  transition: color 0.2s var(--ease);
}

.faq-question:hover { color: var(--muted); }

.faq-arrow {
  flex-shrink: 0;
  font-size: 0.65rem;
  opacity: 0.45;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  opacity: 0.8;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}

.faq-answer p {
  padding-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.faq-cta {
  position: sticky;
  top: 90px;
  padding: 28px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--card);
}

.faq-logo {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--text);
  color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
}

.faq-cta h3 { font-size: 1.1rem; margin-bottom: 8px; }
.faq-cta p  { font-size: 0.875rem; margin-bottom: 1.25rem; }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-cta { position: static; }
}

/* Final CTA (hidden — removed per design) */
.section.section--alt:has(.final-cta) { display: none; }

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* CTA band */
.footer__cta {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
  background-image: radial-gradient(rgba(0,0,0,0.035) 1px, transparent 0);
  background-size: 32px 32px;
}

.footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer__cta-heading {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.footer__cta-sub {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 38ch;
}

/* Base row */
.footer__base { padding: 26px 0; }

.footer__base-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
}

.footer__nav-inline { display: flex; gap: 24px; }

.footer__nav-inline li a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  transition: color 0.2s var(--ease);
}

.footer__nav-inline li a:hover { color: var(--text); }

/* Social icons */
.footer__socials {
  display: flex;
  gap: 8px;
}

.footer__socials a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

.footer__socials a:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--bg);
}

/* Legacy footer grid (index.html) */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: start;
}

.footer-left ul { display: flex; flex-direction: column; gap: 10px; }
.footer-left ul li { font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--dim); }
.footer-left ul li a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-left ul li a:hover { color: var(--text); }

.footer-center { display: flex; flex-direction: column; gap: 8px; }
.footer-center p { font-size: 0.875rem; color: var(--muted); }
.footer-center a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-center a:hover { color: var(--text); }

.footer-socials { display: flex; gap: 10px; margin-top: 16px; }

.footer-socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--dim);
  transition: all 0.2s var(--ease);
}

.footer-socials a:hover {
  border-color: var(--border-hi);
  color: var(--text);
  background: var(--bg);
}

.footer-cta h2 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.footer-cta p  { font-size: 0.9rem; color: var(--muted); margin-bottom: 20px; max-width: 34ch; }

.footer-bottom {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* === PAGE HERO (work / contact) === */
.page-hero {
  padding: calc(var(--nav-h) + 48px) 0 48px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg);
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
  margin-bottom: 16px;
}

.page-hero__label::before {
  content: "";
  width: 20px; height: 1px;
  background: var(--dim);
}

.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 5rem); margin-bottom: 20px; }
.page-hero p  { max-width: 52ch; font-size: 1.1rem; color: var(--muted); }

/* === WORK PAGE — CINEMA === */
.work-cinema { background-color: var(--bg); }

.work-cinema .work-film__inner { grid-template-columns: 1.3fr 1fr; }

.work-film__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
  margin-bottom: 10px;
  display: block;
}

.work-film__foot {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}

.tech-spec {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  margin-top: 24px;
  margin-bottom: 32px;
}

.tech-spec__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  background: var(--bg);
}

.tech-spec__item:last-child { border-right: none; }

.tech-spec__label {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--dim);
}

.tech-spec__value {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-2);
}

.work-film--next { background: var(--card); }
.work-film--next .work-film__inner { grid-template-columns: 1fr; }

/* === MICRO DATA === */
.micro-data {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  transition: background 0.1s step-end, color 0.1s step-end;
  cursor: default;
}

.micro-data:hover { background: var(--card); color: var(--text-2); pointer-events: auto; }

.micro-data--tl { top: 16px;    left: 16px; }
.micro-data--tr { top: 16px;    right: 16px; }
.micro-data--bl { bottom: 16px; left: 16px; }
.micro-data--br { bottom: 16px; right: 16px; }

/* === WHATSAPP FLOAT / MOBILE CTA === */
.whatsapp-float {
  position: fixed;
  bottom: 88px; right: 16px;
  background: #25D366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
  z-index: 900;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.whatsapp-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.4); }

@media (max-width: 768px) {
  /* Sit above the mobile CTA bar (64px bar + 12px gap) */
  .whatsapp-float { bottom: 76px; right: 14px; font-size: 12px; padding: 9px 14px; }
}

.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  z-index: 800;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease-out);
}

.mobile-cta-bar.visible { transform: translateY(0); }
.mobile-cta-bar .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) { .mobile-cta-bar { display: flex; } }

/* === CONTACT PAGE — two-column split === */
.contact-split {
  padding: calc(var(--nav-h) + 48px) 0 80px;
  position: relative;
  background-color: var(--bg);
}

.contact-split__inner {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 64px;
  align-items: start;
}

.contact-split__heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--text);
  margin-top: 16px;
  margin-bottom: 26px;
}

.contact-split__desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 36px;
}

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 120px;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { font-size: 1rem; color: var(--muted); margin-bottom: 40px; max-width: 40ch; }

.contact-details { display: flex; flex-direction: column; gap: 14px; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

a.contact-detail { cursor: pointer; }

.contact-detail:hover {
  border-color: var(--border-hi);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}

.contact-detail__icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  flex-shrink: 0;
}

.contact-detail__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 3px;
}

.contact-detail__value { font-size: 0.9rem; color: var(--muted); }
.contact-detail__value a { color: var(--muted); transition: color 0.2s var(--ease); }
.contact-detail__value a:hover { color: var(--text); }

.contact-form {
  background: var(--card);
  border: 1px solid rgba(0,0,0,0.11);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow:
    0 2px 6px rgba(0,0,0,0.05),
    0 10px 40px rgba(0,0,0,0.10),
    0 32px 80px rgba(0,0,0,0.07);
}

.contact-form h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--dim); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.06);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='rgba(0,0,0,0.3)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-color: var(--bg);
  cursor: pointer;
  color: var(--text-2);
}

.form-group select option { background: var(--card); color: var(--text); }
.form-group textarea { resize: vertical; min-height: 160px; }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.form-success__icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.form-success p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; }
}

/* === ANIMATIONS === */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.55s var(--ease-out),
    transform 0.55s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Bento items (for future use) */
.bento-item {
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    480px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0,0,0,0.03),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
  z-index: 1;
}

.bento-item:hover::before { opacity: 1; }

/* === GENERAL RESPONSIVE === */
@media (max-width: 1024px) {
  .container { padding: 0 28px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-specs { flex-wrap: wrap; gap: 20px; }
  .contact-split__inner { gap: 40px; }
}

/* === TOUCH / MOBILE PERFORMANCE ===
   Disable heavy GPU effects on devices without precise hover (phones/tablets).
   This is the biggest single win for mobile smoothness. */
@media (hover: none) {
  /* No magnetic button movement */
  .btn { transform: none !important; }

  /* No card glow radial gradients */
  .bento-card::before,
  .testimonial-card::before { display: none; }

  /* No device tilt / parallax transforms */
  .device-mac,
  .device-phone { transform: none !important; transition: none !important; }

  /* Simpler fade-up — faster, no compositing overhead */
  .fade-up {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Reduce bento-card box-shadows */
  .bento-card {
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  }
}

/* Promote animated elements to their own compositor layer */
.fade-up,
.device-mac,
.device-phone,
.process-step,
.process-timeline__fill {
  will-change: transform, opacity;
}

/* Once visible, release will-change to free GPU memory */
.fade-up.visible {
  will-change: auto;
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer__cta-inner { flex-direction: column; gap: 24px; text-align: center; }
  .footer__cta-sub { max-width: none; }
  .footer__base-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer__nav-inline { flex-wrap: wrap; justify-content: center; }
  .footer__socials { justify-content: center; }
  .work-film { padding: 60px 0; }
  .page-hero { padding: calc(var(--nav-h) + 40px) 0 60px; }
  .contact-split { padding: calc(var(--nav-h) + 32px) 0 60px; }
  .contact-split__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-split__desc { max-width: none; }
  .contact-form { padding: 24px; }
  .tech-spec { flex-direction: column; }
  .tech-spec__item { border-right: none; border-bottom: 1px solid var(--border); }
  .tech-spec__item:last-child { border-bottom: none; }
}