:root {
  --bg: #000000;
  --bg-elevated: #060606;
  --bg-card: #0e0e0e;
  --bg-card-hover: #141414;
  --border: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text: #fafafa;
  --text-muted: #737373;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-cyan: #06b6d4;
  --accent-dim: rgba(59, 130, 246, 0.14);
  --accent-glow: rgba(59, 130, 246, 0.4);
  --cyan-dim: rgba(6, 182, 212, 0.12);
  --gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 50%, #8b5cf6 100%);
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
  --header-h: 76px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

main {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.75rem);
}

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

.grid-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 15%, transparent 75%);
}

.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 85% 15%, rgba(59, 130, 246, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 10% 75%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
  animation: ambient-pulse 8s ease-in-out infinite alternate;
}

@keyframes ambient-pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  isolation: isolate;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(0, 0, 0, 0.95);
  pointer-events: none;
  z-index: -1;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

.logo img, .logo-img { display: block; height: 36px; width: auto; object-fit: contain; }
.footer-logo.logo-img { height: 30px; }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }

.nav-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.875rem; font-weight: 500;
  transition: color var(--transition); position: relative;
}

.nav-links a:not(.nav-cta):hover { color: var(--text); }

.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: width var(--transition);
}

.nav-links a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  padding: 0.55rem 1.2rem !important; background: var(--accent) !important;
  color: #fff !important; font-weight: 600 !important; border-radius: var(--radius);
  box-shadow: 0 0 20px var(--accent-glow);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition) !important;
}

.nav-cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 32px var(--accent-glow);
  filter: brightness(1.1);
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px;
}

.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); }

/* Hero */
.hero { position: relative; padding-top: var(--header-h); overflow-x: clip; overflow-y: visible; }

.hero-glow {
  position: absolute; top: 10%; right: 0; width: min(700px, 100%); height: 700px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  filter: blur(90px); pointer-events: none;
  animation: glow-drift 10s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); opacity: 0.5; }
  to { transform: translate(-40px, 30px) scale(1.1); opacity: 0.8; }
}

.hero-layout {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 2.5rem;
  align-items: center; padding: 3rem 0 1.5rem;
  width: 100%;
  min-width: 0;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem; border: 1px solid var(--border-subtle);
  border-radius: 999px; font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 1.5rem; background: rgba(59, 130, 246, 0.05);
  animation: badge-glow 3s ease-in-out infinite;
}

@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(59, 130, 246, 0); }
  50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.15); }
}

.pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: var(--gradient);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s linear infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-desc {
  font-size: 1.05rem; color: var(--text-muted); max-width: 48ch;
  margin-bottom: 2rem; line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.6rem; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.35);
  position: relative; overflow: hidden;
}

.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.2) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover::after { transform: translateX(100%); }

.btn-primary:hover { box-shadow: 0 8px 40px rgba(59, 130, 246, 0.5); filter: brightness(1.08); }

.btn-dark { background: #000; color: var(--accent-light); border: 1px solid rgba(255,255,255,0.1); }
.btn-dark:hover { background: #111; }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover { border-color: var(--accent); background: var(--accent-dim); }

.btn-full { width: 100%; }

.hero-content,
.hero-visual {
  min-width: 0;
  max-width: 100%;
}

.hero-metrics {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.5rem 2rem; border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.02);
  width: fit-content;
  max-width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.hero-metrics:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.metric-value {
  display: block; font-family: var(--font-display);
  font-size: 1.6rem; font-weight: 700; color: var(--accent-light);
}

.metric-label { font-size: 0.75rem; color: var(--text-muted); }

.metric-divider { width: 1px; height: 36px; background: var(--border-subtle); }

/* Ticker */
.ticker {
  position: relative; z-index: 1; margin-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0; overflow: hidden;
  max-width: 100%;
}

/* Quick action shortcuts */
.hero-bottom-band {
  position: relative;
  z-index: 1;
  padding-bottom: 0.5rem;
}

.quick-actions-heading {
  display: none;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 700;
  text-align: center;
  margin: 1.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.quick-actions--mobile { display: none; }
.quick-actions--desktop { display: none; }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding: 1.25rem 0 0.5rem;
}

.quick-action-btn {
  position: relative;
  padding: 0.65rem 1.2rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.14) 0%, rgba(6, 182, 212, 0.08) 100%);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.1);
  transition: border-color var(--transition), color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: quick-btn-glow 4s ease-in-out infinite;
}

.quick-action-btn:nth-child(even) {
  border-color: rgba(6, 182, 212, 0.38);
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.07) 100%);
  animation-delay: 0.6s;
}

.quick-action-btn:nth-child(3n) {
  border-color: rgba(139, 92, 246, 0.32);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.08) 100%);
  animation-delay: 1.2s;
}

.quick-action-btn:hover {
  border-color: var(--accent-light);
  color: #fff;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28) 0%, rgba(6, 182, 212, 0.18) 100%);
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.28);
}

@keyframes quick-btn-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(59, 130, 246, 0.1); }
  50% { box-shadow: 0 0 22px rgba(59, 130, 246, 0.22); }
}

/* Quick apply modal */
.quick-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.quick-modal[hidden] { display: none; }

.quick-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
}

.quick-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  padding: 2rem 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.quick-modal-dialog h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.quick-modal-sub {
  font-size: 0.85rem;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.quick-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.quick-modal-close:hover {
  color: var(--text);
  border-color: var(--accent);
}

body.quick-modal-open { overflow: hidden; }

/* Carousel pagination dots */
.carousel-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0.25rem;
  padding: 0;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.carousel-dot.is-active {
  background: var(--accent-light);
  transform: scale(1.25);
}

.ticker-track {
  display: flex; gap: 3rem; width: max-content;
  animation: ticker 25s linear infinite;
}

.ticker-track span {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
}

.ticker-track span:nth-child(odd) { color: var(--accent-light); opacity: 0.7; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Devices */
.hero-visual {
  position: relative; height: 500px; perspective: 1400px;
  min-width: 0; max-width: 100%; overflow: visible;
  transition: transform 0.1s ease-out;
  padding: 0.5rem 0;
}

.hero-visual-glow {
  position: absolute; bottom: 5%; left: 50%; transform: translateX(-45%);
  width: 520px; height: 180px;
  background: radial-gradient(ellipse, rgba(59, 130, 246, 0.25) 0%, rgba(6, 182, 212, 0.08) 45%, transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: 0;
  animation: visual-glow 6s ease-in-out infinite alternate;
}

@keyframes visual-glow {
  from { opacity: 0.6; transform: translateX(-45%) scale(1); }
  to { opacity: 1; transform: translateX(-40%) scale(1.08); }
}

.hero-visual-frame {
  position: absolute; inset: 6% 4% 6% 6%;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  pointer-events: none;
}

/* Decorative accent line removed — was confusing on hero devices */

.macbook {
  position: absolute; top: 16px; right: clamp(24px, 10%, 90px); width: min(440px, 88%); z-index: 2;
  transform-style: preserve-3d;
  transform: rotateY(-10deg) rotateX(4deg);
  animation: float-macbook 5s ease-in-out infinite;
  filter: drop-shadow(0 40px 80px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 50px rgba(59, 130, 246, 0.15));
}

.iphone {
  position: absolute; top: 60px; right: 8px; z-index: 4; width: 168px;
  transform: rotateY(-6deg) rotateZ(1deg);
  animation: float-iphone 4.5s ease-in-out infinite;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 30px rgba(6, 182, 212, 0.12));
}

@keyframes float-macbook {
  0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-10deg) rotateX(4deg) translateY(-20px); }
}

@keyframes float-iphone {
  0%, 100% { transform: rotateY(-6deg) rotateZ(1deg) translateY(0); }
  50% { transform: rotateY(-6deg) rotateZ(1deg) translateY(-24px); }
}

.macbook-lid {
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 40%), linear-gradient(160deg, #333 0%, #111 100%);
  border-radius: 14px 14px 0 0; padding: 10px 10px 0;
  border: 1px solid rgba(255,255,255,0.05); border-bottom: none;
}

.macbook-bezel { background: #000; border-radius: 6px 6px 0 0; padding: 8px 8px 0; position: relative; }

.macbook-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 72px; height: 18px; background: #000; border-radius: 0 0 10px 10px; z-index: 3;
}

.macbook-screen {
  background: #0a0a0a; border-radius: 4px 4px 0 0; overflow: hidden;
  aspect-ratio: 16/10; position: relative;
  box-shadow: 0 0 50px rgba(59, 130, 246, 0.12) inset;
}

.macbook-toolbar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #111; border-bottom: 1px solid var(--border-subtle);
}

.macbook-toolbar .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.macbook-filename { margin-left: 8px; font-size: 0.62rem; color: var(--text-muted); font-family: monospace; }

.macbook-code {
  position: relative; height: 220px; overflow: hidden;
  mask-image: linear-gradient(black 75%, transparent 100%);
}

/* Fake blinking cursor removed */

.code-scroll { animation: code-scroll 16s linear infinite; }
.code-scroll--mobile { animation-duration: 11s; }

.code-scroll pre {
  margin: 0; padding: 14px 16px;
  font-family: "SF Mono", Consolas, monospace; font-size: 0.68rem;
  line-height: 1.65; color: #a3a3a3; white-space: pre;
}

.code-scroll .kw { color: #ff7b72; }
.code-scroll .fn { color: #d2a8ff; }
.code-scroll .var { color: #79c0ff; }
.code-scroll .str { color: #a5d6ff; }
.code-scroll .cmt { color: #525252; }
.code-scroll .num { color: var(--accent-cyan); }

@keyframes code-scroll {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}


.macbook-base {
  height: 14px;
  background: linear-gradient(180deg, #3a3a3a, #111);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.macbook-keyboard, .macbook-trackpad { display: none; }

.iphone-frame {
  padding: 5px; border-radius: 28px;
  background: linear-gradient(160deg, #3a3a3a, #111);
  border: 1px solid rgba(255,255,255,0.08);
}

.iphone-btn { position: absolute; background: #444; border-radius: 2px; z-index: 2; }
.iphone-btn--silent { left: -2px; top: 72px; width: 2px; height: 16px; }
.iphone-btn--vol-up { left: -2px; top: 98px; width: 2px; height: 26px; }
.iphone-btn--vol-down { left: -2px; top: 132px; width: 2px; height: 26px; }
.iphone-btn--power { right: -2px; top: 105px; width: 2px; height: 36px; }

.iphone-screen {
  display: flex; flex-direction: column; background: #0a0a0a;
  border-radius: 24px; overflow: hidden; aspect-ratio: 9/19.5; position: relative;
}

.iphone-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 15px; background: #000; border-radius: 16px; z-index: 5;
}

.iphone-status {
  display: flex; justify-content: space-between; padding: 14px 14px 4px;
  font-size: 0.48rem; font-weight: 600; z-index: 4;
}

.iphone-status-icons { font-size: 0.4rem; color: var(--text-muted); }

.iphone-app { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.iphone-app-header {
  display: flex; align-items: center; gap: 5px; padding: 6px 10px;
  font-size: 0.42rem; font-family: monospace; color: var(--text-muted);
  background: #111; border-bottom: 1px solid var(--border-subtle);
}

.iphone-app-dot {
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}

.iphone-code { flex: 1; overflow: hidden; mask-image: linear-gradient(black 70%, transparent 100%); }
.iphone-code .code-scroll pre { font-size: 0.44rem; padding: 8px 10px; }

.iphone-home {
  position: absolute; bottom: 6px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 3px; background: rgba(255,255,255,0.2); border-radius: 3px; z-index: 5;
}

/* Sections */
section { position: relative; z-index: 1; padding: 5rem 0; overflow-x: clip; }

section.info-spotlight,
section.approach,
section.process,
section.references,
section.contact {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

section.info-spotlight {
  overflow: visible;
  overflow-x: clip;
}

.section-intro {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem;
  align-items: end; margin-bottom: 3.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.section-index {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.05em;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem;
}

.section-intro p { color: var(--text-muted); max-width: 50ch; }

/* Services grid (merged) */
.services { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); }

.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem;
}

.service-card {
  position: relative; padding: 2rem; overflow: hidden;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 40px rgba(59, 130, 246, 0.08);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 1.5rem;
  align-items: start;
}

.service-card--wide .service-icon { margin-bottom: 0; grid-row: 1; }
.service-card--wide .service-card-body { min-width: 0; position: relative; }
.service-card--wide .service-num { position: absolute; top: 0; right: 0; }

.service-tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.tech-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1;
}

.tech-logo--html { background: #e34f26; }
.tech-logo--css { background: #1572b6; }
.tech-logo--js { background: #f7df1e; color: #1a1a1a; }
.tech-logo--react { background: #20232a; border: 1px solid #61dafb; color: #61dafb; }
.tech-logo--php { background: #777bb4; }
.tech-logo--python { background: #3776ab; }
.tech-logo--node { background: #339933; }
.tech-logo--ts { background: #3178c6; }
.tech-logo--java { background: #ed8b00; color: #1a1a1a; }
.tech-logo--go { background: #00add8; }

.tech-more {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-light);
  padding: 0.25rem 0.55rem;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  border-radius: 999px;
}

/* Info spotlight */
.info-spotlight {
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  overflow: visible;
}

.info-spotlight .container {
  overflow: visible;
}

.info-spotlight-slider {
  position: relative;
  overflow: visible;
  padding: 0.75rem 0.35rem 0.25rem;
}

.info-spotlight-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.25rem;
  align-items: start;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #a855f7 100%);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.22), 0 4px 12px rgba(0, 0, 0, 0.25);
  animation: info-card-in 0.45s ease;
}

.info-spotlight-card[hidden] { display: none; }

.info-spotlight-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.info-spotlight-icon svg { width: 22px; height: 22px; }

.info-spotlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.info-spotlight-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.info-spotlight-dots {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  padding-left: 0.25rem;
}

.info-spotlight-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background var(--transition), width var(--transition);
}

.info-spotlight-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

@keyframes info-card-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-icon {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); background: var(--accent-dim); color: var(--accent);
  margin-bottom: 1rem; transition: transform var(--transition), background var(--transition);
}

.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); background: rgba(59, 130, 246, 0.22); }
.service-icon svg { width: 24px; height: 24px; }

.service-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  color: rgba(59, 130, 246, 0.4);
}

.service-card h3 {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem;
}

.service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.25rem; line-height: 1.55; }

.service-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; }

.service-tags li {
  font-size: 0.7rem; padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-subtle); border-radius: 999px;
  color: var(--text-muted); background: rgba(255,255,255,0.02);
  transition: border-color var(--transition), color var(--transition);
}

.service-card:hover .service-tags li { border-color: rgba(59, 130, 246, 0.25); }

.service-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.1rem;
  list-style: none;
}

.service-social li {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-social svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  opacity: 0.55;
  transition: opacity var(--transition), color var(--transition), transform var(--transition);
}

.service-card:hover .service-social svg {
  opacity: 0.9;
  color: var(--text);
}

.service-social li:hover svg {
  opacity: 1;
  color: var(--accent-light);
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Graphics portfolio */
.graphics {
  background: var(--bg);
  border-top: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
}

.graphics-marquee {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  line-height: 0;
  mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 6%, black 94%, transparent);
}

.graphics-marquee.reveal {
  min-height: 300px;
}

.graphics-track {
  display: flex;
  width: max-content;
  animation: graphics-marquee 70s linear infinite;
}

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

.graphics-group {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  padding-right: 1.25rem;
}

.graphics-card {
  flex-shrink: 0;
  width: 240px;
  height: 300px;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.graphics-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(59, 130, 246, 0.1);
}

.graphics-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@keyframes graphics-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] { display: none; }

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

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(92vw, 560px);
  max-height: 92vh;
  animation: lightbox-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 560px);
  max-height: 92vh;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65), 0 0 40px rgba(59, 130, 246, 0.12);
}

.lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  background: rgba(14, 14, 14, 0.9);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.lightbox-close:hover {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-light);
}

body.lightbox-open {
  overflow: hidden;
}

body.lightbox-open .graphics-track {
  animation-play-state: paused;
}

.lightbox-meta {
  width: 100%;
  margin-top: 1rem;
  text-align: center;
  max-width: 560px;
}

.lightbox-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.lightbox-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.service-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

.service-link:hover { color: var(--accent-light); }

.contact-phone {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  background: rgba(10, 10, 10, 0.96);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 0;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cookie-banner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 60ch;
}

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

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 160;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.cookie-modal[hidden] { display: none; }

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.cookie-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 92vw);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
}

.cookie-modal-dialog label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  padding-bottom: 4rem;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.blog-card h2 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
}

.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-card h2 a:hover { color: var(--accent-light); }

.blog-date { font-size: 0.8rem; color: var(--text-muted); }

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.blog-tags span {
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
}

.blog-read {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent-light);
  font-size: 0.9rem;
}

.blog-article h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  margin: 0.5rem 0 1rem;
}

.blog-content {
  color: var(--text-muted);
  line-height: 1.75;
}

.blog-content h2 {
  color: var(--text);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

.blog-content ul, .blog-content ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}

.service-landing h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.75rem 0 1rem;
}

.service-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-content {
  color: var(--text-muted);
  line-height: 1.75;
}

.service-content h2 {
  color: var(--text);
  margin: 1.25rem 0 0.75rem;
}

.service-content ul {
  padding-left: 1.25rem;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

/* Approach */
.approach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; align-items: start; }

.approach-statement h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; line-height: 1.15; margin: 1rem 0 1.25rem;
}

.approach-statement > p { color: var(--text-muted); max-width: 44ch; margin-bottom: 1.5rem; line-height: 1.7; }

.approach-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }

.approach-list li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.92rem; }
.check { color: var(--accent); font-weight: 700; }

.approach-right { display: flex; flex-direction: column; gap: 1.25rem; }

.approach-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.panel {
  padding: 1.25rem; background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.panel:hover { transform: translateY(-4px); border-color: var(--border); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

.panel--accent { background: var(--accent-dim); border-color: rgba(59, 130, 246, 0.25); }
.panel--accent .panel-label { color: var(--accent-light); }
.panel--cyan { background: var(--cyan-dim); border-color: rgba(6, 182, 212, 0.25); }
.panel--cyan .panel-label { color: var(--accent-cyan); }

.panel-label {
  display: block; font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 0.5rem;
}

.panel p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

.code-window {
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg-card);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.code-window:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4), 0 0 40px rgba(59, 130, 246, 0.1);
}

.code-header {
  display: flex; align-items: center; gap: 6px; padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border-subtle);
}

.code-title { margin-left: 0.5rem; font-size: 0.72rem; color: var(--text-muted); font-family: monospace; }

.code-body {
  padding: 1.25rem; font-size: 0.82rem; line-height: 1.7; font-family: monospace;
}

.code-body .kw { color: #c678dd; }
.code-body .var { color: #61afef; }
.code-body .prop { color: #e5c07b; }
.code-body .str { color: #98c379; }

/* Process */
.process-line {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative;
}

.process-line::before {
  content: ""; position: absolute; top: 1.15rem; left: 8%; right: 8%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--accent-cyan), transparent);
  z-index: 0; animation: line-shimmer 3s ease-in-out infinite;
}

@keyframes line-shimmer {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.process-item {
  position: relative; z-index: 1; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.process-item:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.1);
}

.process-step {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem;
  font-family: var(--font-display); font-size: 0.75rem; font-weight: 700;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent);
  border-radius: 50%; margin-bottom: 1rem;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.process-item:hover .process-step {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.process-item h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.process-item p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* References */
.references { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); }

.references-marquee {
  margin-bottom: 3rem;
  overflow: hidden;
  max-width: 100%;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.references-track {
  display: flex; width: max-content;
  animation: marquee 30s linear infinite;
}

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

.references-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; }

.reference-item {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 180px; height: 72px; padding: 1rem 1.5rem;
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.reference-item:hover {
  border-color: rgba(59, 130, 246, 0.3);
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.reference-item img {
  max-width: 100%; max-height: 32px; opacity: 0.7;
  transition: opacity var(--transition);
}

.reference-item--logo img {
  max-height: 44px;
  object-fit: contain;
}

.reference-item--store img {
  max-height: 38px;
  height: 38px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.reference-item:hover img { opacity: 1; }

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

.store-badges img {
  height: 36px;
  width: auto;
  object-fit: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transition: transform var(--transition), opacity var(--transition);
}

.store-badges img:hover {
  transform: scale(1.04);
  opacity: 0.95;
}

.store-badges--compact {
  margin-bottom: 1rem;
}

.store-badges--compact img {
  height: 32px;
}

.work-card-logo {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 1.25rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border-subtle); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); overflow: hidden;
}

.work-card {
  padding: 2rem; background: var(--bg-card);
  transition: background var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}

.work-card::after {
  content: ""; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--gradient); transition: width 0.4s ease;
}

.work-card:hover { background: var(--bg-card-hover); }
.work-card:hover::after { width: 100%; }

.work-card--highlight { background: #080810; }
.work-card--highlight:hover { background: #0c0c18; }

.work-card-top { display: flex; justify-content: space-between; margin-bottom: 1.25rem; }

.work-year, .work-type {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

.work-year { color: var(--text-muted); }
.work-type { color: var(--accent-light); }

.work-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.work-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1.25rem; line-height: 1.55; }
.work-result { font-size: 0.8rem; font-weight: 600; color: var(--accent-cyan); }

/* CTA */
.cta-band {
  padding: 0; border-top: 1px solid var(--border-subtle);
  background: var(--gradient);
  background-size: 200% 200%;
  animation: cta-gradient 6s ease infinite;
}

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

.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding: 3.5rem 0;
}

.cta-band-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: #fff; line-height: 1.15;
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700; margin: 1rem 0;
}

.contact-info > p { color: var(--text-muted); margin-bottom: 1.5rem; }

.contact-email {
  display: inline-block; font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; color: var(--accent-light);
  text-decoration: none; margin-bottom: 1.5rem;
  transition: color var(--transition), text-shadow var(--transition);
}

.contact-email:hover { color: #fff; text-shadow: 0 0 20px var(--accent-glow); }

.contact-meta { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; color: var(--text-muted); }

.contact-form {
  position: relative;
  padding: 2rem; background: var(--bg-card);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form:focus-within {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.08);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }

.form-group label {
  display: block; font-size: 0.75rem; font-weight: 500; margin-bottom: 0.45rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem; background: var(--bg);
  border: 1px solid var(--border-subtle); border-radius: var(--radius);
  color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group textarea { resize: vertical; min-height: 110px; }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  text-align: center;
}

.form-note--success { color: var(--accent-light); }

.form-note--error { color: #f87171; }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Footer */
.footer { padding: 2rem 0; border-top: 1px solid var(--border-subtle); }

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}

.footer p { font-size: 0.82rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--text-muted); text-decoration: none; font-size: 0.82rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent-light); }

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-visual.reveal.visible { transition-duration: 1s; }

/* Subtle motion */
@keyframes soft-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 32px var(--accent-glow), 0 0 48px rgba(59, 130, 246, 0.12); }
}

.hero .btn-primary {
  animation: btn-glow-pulse 3.5s ease-in-out infinite;
}

.section-index {
  display: inline-block;
  transition: transform 0.5s ease, color 0.5s ease;
}

.reveal.visible .section-index {
  animation: index-pop 0.6s ease-out both;
}

@keyframes index-pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel,
.process-item,
.work-card {
  transition: transform 0.45s ease, border-color var(--transition), box-shadow var(--transition);
}

.panel:hover,
.process-item:hover,
.work-card:hover {
  transform: translateY(-3px);
}

/* Desktop — preserve original hero layout */
@media (min-width: 769px) {
  .container {
    padding-inline: clamp(2rem, 5.5vw, 3.5rem);
  }

  .hero-content {
    text-align: left;
    align-items: flex-start;
    padding-right: 1rem;
  }

  .hero-badge { justify-content: flex-start; }
  .hero-actions { justify-content: flex-start; }
  .hero-desc { margin-left: 0; margin-right: 0; max-width: 52ch; }

  .hero-metrics {
    width: fit-content;
    max-width: 100%;
  }

  .quick-actions--desktop {
    justify-content: flex-start;
    padding-left: 0;
    padding-right: 0;
  }

  .quick-actions--mobile { display: none !important; }
  .quick-actions--desktop { display: flex; }
  .quick-actions-heading { display: block; text-align: left; }

  .hero-visual.reveal.visible {
    animation: soft-float 7s ease-in-out infinite;
  }

  .services .h-scroll-shell {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .services-grid {
    display: grid !important;
    overflow: visible !important;
    flex-wrap: wrap !important;
  }

  .service-card--wide {
    display: grid;
    grid-template-columns: auto 1fr;
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; padding-bottom: 1rem; }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .hero-actions { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-visual {
    height: auto;
    min-height: 340px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-bottom: 0.5rem;
  }
  .macbook {
    width: min(360px, 88vw);
    left: 50%;
    right: auto;
    transform: translateX(-62%) rotateY(-8deg) rotateX(3deg);
    animation-name: float-macbook-tablet;
  }
  .iphone {
    width: min(140px, 34vw);
    left: 50%;
    right: auto;
    transform: translateX(28%) rotateY(-4deg) rotateZ(1deg);
    animation-name: float-iphone-tablet;
  }
  @keyframes float-macbook-tablet {
    0%, 100% { transform: translateX(-62%) rotateY(-8deg) rotateX(3deg) translateY(0); }
    50% { transform: translateX(-62%) rotateY(-8deg) rotateX(3deg) translateY(-16px); }
  }
  @keyframes float-iphone-tablet {
    0%, 100% { transform: translateX(28%) rotateY(-4deg) rotateZ(1deg) translateY(0); }
    50% { transform: translateX(28%) rotateY(-4deg) rotateZ(1deg) translateY(-20px); }
  }
  .approach-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-band-inner { flex-direction: column; text-align: center; padding: 2.5rem 0; }
}

/* Mobile — centered layout + horizontal scroll carousels */
@media (max-width: 768px) {
  section.info-spotlight,
  section.approach,
  section.process,
  section.references,
  section.contact {
    content-visibility: visible;
  }

  .container {
    padding-inline: clamp(1.25rem, 5.5vw, 1.75rem);
  }

  section {
    padding: 2.75rem 0;
  }

  .hero {
    padding-bottom: 0.5rem;
  }

  .hero-layout {
    padding: 0.85rem 0 0.25rem;
  }

  .hero-content {
    padding-inline: 0.35rem;
  }

  .hero-badge {
    margin-bottom: 0.85rem;
  }

  .hero-title {
    margin-bottom: 1rem;
    padding-inline: 0.5rem;
  }

  .hero-desc {
    padding-inline: 0.85rem;
    max-width: 36ch;
  }

  .hero-actions {
    margin-bottom: 1rem;
    padding-inline: 0.25rem;
  }

  .quick-actions--mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 0.35rem 0.85rem;
    gap: 0.45rem;
    width: 100%;
    max-width: 100%;
  }

  .quick-actions--desktop,
  .quick-actions-heading,
  .hero-bottom-band .ticker {
    display: none;
  }

  .hero-bottom-band {
    padding: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
  }

  .hero-metrics {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: calc(100% - 0.5rem);
    max-width: 100%;
    margin: 0 0.25rem;
    gap: 0.45rem;
    padding: 0.65rem 0.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: none;
  }

  .hero-metrics .metric {
    flex: 1;
    min-width: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.2rem;
  }

  .hero-metrics .metric-value {
    font-size: 1.25rem;
    line-height: 1.1;
  }

  .hero-metrics .metric-label {
    font-size: 0.58rem;
    line-height: 1.2;
  }

  .hero-metrics .metric-divider {
    display: block;
    flex: 0 0 1px;
    width: 1px;
    min-height: 2.5rem;
    align-self: center;
    background: var(--border-subtle);
  }

  .macbook-code {
    height: auto;
    max-height: 130px;
  }

  .macbook-toolbar {
    padding: 6px 9px;
    gap: 4px;
  }

  .macbook-toolbar .dot {
    width: 7px;
    height: 7px;
  }

  .macbook-filename {
    font-size: 0.44rem;
  }

  .macbook-code .code-scroll pre,
  .hero-visual .code-scroll pre {
    font-size: 0.4rem;
    padding: 7px 9px;
    line-height: 1.42;
  }

  .iphone-app-header {
    font-size: 0.32rem;
    padding: 4px 7px;
  }

  .iphone-status {
    font-size: 0.32rem;
    padding: 9px 9px 3px;
  }

  .iphone-code .code-scroll pre {
    font-size: 0.3rem;
    padding: 4px 6px;
    line-height: 1.35;
  }

  .hero + .services {
    padding-top: 1.5rem;
  }

  .quick-action-btn {
    font-size: 0.72rem;
    padding: 0.5rem 0.85rem;
    white-space: normal;
    text-align: center;
    max-width: 100%;
  }

  .services,
  .approach,
  .process,
  .references {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .graphics {
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
  }

  .graphics-marquee {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    min-height: 240px;
    line-height: normal;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    touch-action: pan-x pan-y;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }

  .graphics-marquee::-webkit-scrollbar {
    display: none;
  }

  .graphics-marquee.reveal {
    opacity: 1;
    transform: none;
  }

  .graphics-track {
    display: flex;
    flex-wrap: nowrap;
    animation: none !important;
    transform: none !important;
    will-change: auto;
    width: max-content;
    min-width: 100%;
  }

  section.graphics {
    overflow: visible;
  }

  .graphics-card img {
    transform: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
  }

  .hero-glow {
    right: 0;
    width: 100%;
    max-width: 100%;
  }

  .graphics .section-intro {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: none;
  }

  .graphics + .approach {
    padding-top: 1.25rem;
  }

  .section-intro {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .carousel-dots {
    display: flex;
  }

  .h-scroll-shell {
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  [data-h-scroll] {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    grid-template-columns: unset !important;
    grid-column: unset !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    gap: 1rem;
    padding: 0.2rem 0.5rem 0.35rem;
    scrollbar-width: none;
    cursor: grab;
    touch-action: pan-x pan-y;
  }

  .h-scroll-shell {
    mask-image: none;
    -webkit-mask-image: none;
    overflow: hidden;
  }

  [data-h-scroll]:active { cursor: grabbing; }
  [data-h-scroll]::-webkit-scrollbar { display: none; }

  [data-h-scroll] > * {
    flex: 0 0 min(84vw, 300px);
    scroll-snap-align: center;
    min-width: 0;
  }

  [data-h-scroll] > .metric-divider {
    flex: 0 0 1px;
    width: 1px;
    min-height: 4.5rem;
    align-self: center;
    background: var(--border-subtle);
  }

  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-badge { justify-content: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; width: 100%; }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    text-align: center;
    justify-items: center;
  }

  .section-intro p { margin-left: auto; margin-right: auto; }

  .service-card {
    text-align: center;
    grid-template-columns: 1fr !important;
    grid-row: auto !important;
    height: auto;
    align-self: flex-start;
    padding: 1.35rem 1.15rem;
  }

  .service-card .service-num,
  .service-card--wide .service-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    left: auto;
  }

  .service-card--wide {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .service-card--wide .service-icon {
    margin-bottom: 0;
    grid-row: auto;
  }

  .service-card--wide .service-card-body {
    position: static;
    width: 100%;
  }

  [data-h-scroll].services-grid > .service-card {
    flex: 0 0 min(82vw, 290px);
    min-height: unset;
  }

  .service-card p {
    margin-bottom: 0.85rem;
  }

  .service-card .service-icon { margin-left: auto; margin-right: auto; }
  .service-card--wide { grid-column: auto !important; }
  .service-tags, .service-social, .store-badges { justify-content: center; }

  .approach-statement { text-align: center; }
  .approach-statement > p { margin-left: auto; margin-right: auto; }
  .approach-list { align-items: center; }
  .approach-list li { justify-content: center; }

  .approach-panels {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.65rem;
    overflow: visible !important;
    flex-wrap: unset !important;
    padding: 0;
  }

  .approach-panels > .panel {
    flex: unset !important;
    width: auto !important;
    min-width: 0;
    text-align: center;
    padding: 0.9rem 0.65rem;
  }

  .approach-panels .panel-label {
    font-size: 0.62rem;
    margin-bottom: 0.35rem;
  }

  .approach-panels .panel p {
    font-size: 0.72rem;
    line-height: 1.4;
  }

  .process-line::before { display: none; }

  [data-h-scroll].process-line > .process-item {
    flex: 0 0 min(80vw, 290px);
    text-align: center;
  }

  .process-item .process-step { margin-left: auto; margin-right: auto; }

  [data-h-scroll].work-grid {
    background: transparent;
    border: none;
    border-radius: 0;
    gap: 1rem;
  }

  [data-h-scroll].work-grid > .work-card {
    flex: 0 0 min(84vw, 300px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
  }

  .work-card-top { justify-content: center; gap: 1rem; }
  .work-card-logo { margin-left: auto; margin-right: auto; }
  .store-badges--compact { justify-content: center; }

  .contact-info { text-align: center; }
  .contact-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }

  .cta-band-inner h2 { text-align: center; }
  .cookie-banner-inner { flex-direction: column; text-align: center; align-items: center; }
  .cookie-actions { justify-content: center; }

  [data-h-scroll].blog-grid > .blog-card {
    flex: 0 0 min(84vw, 300px);
    text-align: center;
  }

  .blog-tags { justify-content: center; }
}

.h-scroll-hint { display: none !important; }

@media (max-width: 640px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; padding: 2rem; gap: 1.25rem;
    background: rgba(0, 0, 0, 0.97); border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-120%); opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
    text-align: center;
  }

  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }

  .hero-title { font-size: clamp(2rem, 9vw, 2.75rem); }
  .hero-glow { width: 100%; right: 0; }
  .hero-visual {
    height: auto;
    min-height: 250px;
    overflow: hidden;
    transform: none !important;
    padding: 0.5rem 0 1rem;
  }

  .hero-layout {
    overflow-x: clip;
    max-width: 100%;
  }

  .hero-visual-frame {
    inset: 4% 6% 4% 6%;
    border-radius: 10px;
  }

  .macbook {
    width: min(220px, 62vw);
    top: 8px;
    left: 50%;
    right: auto;
    transform: translateX(-56%) rotateY(-5deg) rotateX(2deg);
    animation-name: float-macbook-mobile;
  }

  .iphone {
    width: min(88px, 24vw);
    top: 38px;
    left: 50%;
    right: auto;
    transform: translateX(30%) rotateY(-3deg);
    animation-name: float-iphone-mobile;
  }

  .iphone-frame {
    border-radius: 20px;
    padding: 4px;
  }

  .iphone-screen {
    border-radius: 16px;
  }

  .iphone-island {
    width: 42px;
    height: 12px;
    border-radius: 12px;
  }

  .macbook-code {
    height: auto;
    max-height: 118px;
  }

  .macbook-toolbar {
    padding: 5px 8px;
    gap: 4px;
  }

  .macbook-toolbar .dot {
    width: 6px;
    height: 6px;
  }

  .macbook-filename {
    font-size: 0.4rem;
    margin-left: 4px;
  }

  .macbook-code .code-scroll pre,
  .code-scroll pre {
    font-size: 0.38rem;
    padding: 6px 8px;
    line-height: 1.4;
  }

  .iphone-app-header {
    font-size: 0.3rem;
    padding: 3px 6px;
    gap: 3px;
  }

  .iphone-app-dot {
    width: 4px;
    height: 4px;
  }

  .iphone-status {
    font-size: 0.3rem;
    padding: 8px 8px 2px;
  }

  .iphone-code .code-scroll pre {
    font-size: 0.28rem;
    padding: 4px 5px;
    line-height: 1.35;
  }
  @keyframes float-macbook-mobile {
    0%, 100% { transform: translateX(-56%) rotateY(-5deg) rotateX(2deg) translateY(0); }
    50% { transform: translateX(-56%) rotateY(-5deg) rotateX(2deg) translateY(-10px); }
  }
  @keyframes float-iphone-mobile {
    0%, 100% { transform: translateX(30%) rotateY(-3deg) translateY(0); }
    50% { transform: translateX(30%) rotateY(-3deg) translateY(-12px); }
  }

  .info-spotlight-slider {
    touch-action: pan-y;
    cursor: grab;
  }

  .info-spotlight-slider:active {
    cursor: grabbing;
  }

  .info-spotlight-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 1.15rem 1.1rem;
    user-select: none;
    -webkit-user-select: none;
  }

  .service-tech {
    justify-content: center;
  }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  .graphics-card { width: 180px; height: 220px; }
  .graphics-group { gap: 0.75rem; padding-right: 0.75rem; }
  .graphics-marquee { margin-bottom: 0; }

  .hero-visual { max-width: 100%; }

  .ticker,
  .references-marquee {
    max-width: 100%;
    overflow: hidden;
  }

  .quick-action-btn {
    animation: quick-btn-glow 4s ease-in-out infinite, quick-btn-enter 0.5s ease-out both;
  }

  .quick-action-btn:nth-child(1) { animation-delay: 0s, 0.05s; }
  .quick-action-btn:nth-child(2) { animation-delay: 0.6s, 0.1s; }
  .quick-action-btn:nth-child(3) { animation-delay: 1.2s, 0.15s; }
  .quick-action-btn:nth-child(4) { animation-delay: 0.3s, 0.2s; }
  .quick-action-btn:nth-child(5) { animation-delay: 0.9s, 0.25s; }

  @keyframes quick-btn-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .lightbox {
    padding: 1rem;
    cursor: pointer;
  }

  .lightbox-dialog,
  .lightbox-img,
  .lightbox-meta,
  .lightbox-close {
    cursor: default;
  }

  .lightbox-close { top: 0.5rem; right: 0.5rem; }
  .service-landing, .blog-article { text-align: center; }
  .service-content ul, .blog-content ul, .blog-content ol { text-align: left; display: inline-block; }
}

/* Touch devices — press to preview, release to reset (no sticky hover) */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover:not(.is-touch-active),
  .panel:hover:not(.is-touch-active),
  .work-card:hover:not(.is-touch-active),
  .process-item:hover:not(.is-touch-active),
  .graphics-card:hover:not(.is-touch-active),
  .reference-item:hover:not(.is-touch-active),
  .hero-metrics:hover:not(.is-touch-active),
  .quick-action-btn:hover:not(.is-touch-active),
  .btn:hover:not(.is-touch-active) {
    transform: none;
    filter: none;
    box-shadow: none;
    border-color: var(--border-subtle);
    background: inherit;
  }

  .service-card:hover:not(.is-touch-active)::before { transform: scaleX(0); }
  .work-card:hover:not(.is-touch-active)::after { width: 0; }
  .service-card:hover:not(.is-touch-active) .service-icon { transform: none; background: var(--accent-dim); }
  .graphics-track:hover { animation-play-state: running; }

  .graphics-marquee.reveal,
  .graphics-marquee.reveal.visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .service-card.is-touch-active {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(59, 130, 246, 0.08);
  }

  .service-card.is-touch-active::before { transform: scaleX(1); }
  .service-card.is-touch-active .service-icon {
    transform: scale(1.08) rotate(-3deg);
    background: rgba(59, 130, 246, 0.22);
  }

  .graphics-card.is-touch-active {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(59, 130, 246, 0.1);
  }

  .panel.is-touch-active {
    transform: translateY(-3px);
    border-color: var(--border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  }

  .work-card.is-touch-active { background: var(--bg-card-hover); }
  .work-card.is-touch-active::after { width: 100%; }

  .blog-card.is-touch-active {
    border-color: rgba(59, 130, 246, 0.3);
    background: var(--bg-card-hover);
  }

  .blog-card.is-touch-active h2 a { color: var(--accent-light); }

  .process-item.is-touch-active {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  }

  .process-item.is-touch-active .process-step {
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
  }

  .quick-action-btn.is-touch-active {
    border-color: var(--accent-light);
    color: #fff;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28) 0%, rgba(6, 182, 212, 0.18) 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(59, 130, 246, 0.28);
  }

  .btn-primary.is-touch-active {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.45);
    filter: brightness(1.06);
  }

  .btn-ghost.is-touch-active {
    border-color: var(--accent);
    background: var(--accent-dim);
  }

  .reference-item.is-touch-active {
    border-color: rgba(59, 130, 246, 0.35);
    transform: scale(1.04);
  }

  .reference-item.is-touch-active img { opacity: 1; }
}

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