/* =========================================
   XZ CODE — Premium Design System
   Black & White · Glassmorphism · 8pt grid
   ========================================= */

:root {
  /* Colors */
  --bg: #0a0a0a;
  --bg-2: #070707;
  --ink: #ffffff;
  --ink-2: #e6e6e6;
  --ink-3: #b8b8b8;
  --ink-4: #8a8a8a;
  --ink-5: #5a5a5a;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.04);
  --glass-2: rgba(255, 255, 255, 0.06);
  --glass-3: rgba(255, 255, 255, 0.09);

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* Spacing — 8pt */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-2: cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --maxw: 1240px;

  /* Breakpoints (used in @media):
     xs: 380px   sm: 480px   md: 640px
     lg: 768px   xl: 900px   2xl: 1024px
     3xl: 1280px 4xl: 1440px 5xl: 1600px
  */
}

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

html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }

::selection { background: #fff; color: #000; }

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

@media (min-width: 768px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
@media (min-width: 1280px) { .container { padding: 0 40px; } }
@media (min-width: 1600px) { .container { padding: 0 48px; } }

/* ============== Background decor ============== */
.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 720px; height: 720px;
  left: -180px; top: -120px;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, rgba(255,255,255,0.1) 40%, transparent 70%);
  opacity: 0.18;
  animation: float 18s ease-in-out infinite;
}
.orb-2 {
  width: 640px; height: 640px;
  right: -160px; top: 30%;
  background: radial-gradient(circle at 70% 30%, #cfcfcf 0%, rgba(255,255,255,0.05) 50%, transparent 75%);
  opacity: 0.15;
  animation: float 22s ease-in-out infinite reverse;
}
.orb-3 {
  width: 560px; height: 560px;
  left: 30%; bottom: -200px;
  background: radial-gradient(circle, #f3f3f3 0%, transparent 70%);
  opacity: 0.12;
  animation: float 26s ease-in-out infinite;
}

/* Responsive orbs — shrink and reposition on small screens */
@media (max-width: 768px) {
  .orb-1 { width: 380px; height: 380px; left: -140px; top: -80px; filter: blur(80px); }
  .orb-2 { width: 340px; height: 340px; right: -120px; filter: blur(80px); }
  .orb-3 { width: 320px; height: 320px; left: 10%; bottom: -150px; filter: blur(80px); }
}
@media (max-width: 480px) {
  .orb-1 { width: 280px; height: 280px; opacity: 0.14; }
  .orb-2 { width: 260px; height: 260px; opacity: 0.12; }
  .orb-3 { display: none; }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6), transparent 75%);
}

@media (max-width: 768px) {
  .grid-overlay { background-size: 40px 40px; opacity: 0.6; }
}
@media (max-width: 480px) {
  .grid-overlay { background-size: 32px 32px; opacity: 0.4; }
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.05); }
}

/* ============== Custom cursor ============== */
.cursor {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: difference;
  display: none;
}
.cursor-dot {
  position: fixed;
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear;
  z-index: 1001;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s;
  z-index: 1000;
}
.cursor.is-active .cursor-ring { width: 60px; height: 60px; border-color: rgba(255,255,255,0.9); }

@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body, a, button { cursor: none; }
}

/* ============== Intro loader ============== */
.intro {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.intro.is-done {
  opacity: 0;
  visibility: hidden;
}
.intro-inner { text-align: center; }
.intro-mark {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  margin-bottom: 24px;
}
.intro-mark span { opacity: 0.4; padding: 0 6px; }
.intro-bar {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}
.intro-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  animation: load 1.4s var(--ease) forwards;
}
@keyframes load { to { width: 100%; } }

/* ============== Glassmorphism ============== */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 10px 40px rgba(0,0,0,0.4);
}

/* ============== Typography ============== */
.section-title {
  font-size: clamp(36px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-5);
}
.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #fff 0%, #888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--s-4);
  font-weight: 500;
}
.section-head { margin-bottom: var(--s-8); }
.section-head.center { text-align: center; }
.section-head.center .section-sub { margin-inline: auto; }
.section-head.row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  padding: 10px 0;
  position: relative;
  transition: gap 0.3s var(--ease);
}
.link-arrow span { transition: transform 0.3s var(--ease); display: inline-block; }
.link-arrow:hover { gap: 12px; }
.link-arrow:hover span { transform: translateX(4px); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  position: relative;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  will-change: transform;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 15px; }
.btn.full { width: 100%; }

.btn-primary {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 24px rgba(255,255,255,0.06), inset 0 1px 0 rgba(255,255,255,0.6);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.6) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease);
}
.btn-primary:hover { background: #fff; color: #000; }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(255,255,255,0.1); }

.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  background: var(--glass-3);
  border-color: rgba(255,255,255,0.3);
}

/* ============== Navbar ============== */
.nav-wrap {
  position: fixed;
  top: 16px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 var(--s-5);
}
.nav {
  pointer-events: auto;
  width: 100%;
  max-width: 1180px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 20px;
  border-radius: 999px;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(10,10,10,0.6);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #c8c8c8);
  color: #000;
  box-shadow: 0 4px 12px rgba(255,255,255,0.1);
}
.logo-text span { opacity: 0.4; padding: 0 1px; }

.nav-links {
  display: none;
  gap: 4px;
}
.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.05); }

.nav-cta {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-2);
  position: relative;
}
.nav-burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: #fff;
  margin: 0 auto;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 76px;
  left: 12px; right: 12px;
  background: rgba(15,15,15,0.92);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  z-index: 99;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a {
  padding: 16px 16px;
  border-radius: 12px;
  color: var(--ink-2);
  font-size: 16px;
  transition: background 0.2s;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.05); }
.mobile-menu a.btn { margin-top: 8px; justify-content: center; }

/* Tablet: show nav links but no CTA, use burger for menu */
@media (min-width: 768px) {
  .nav-links { display: inline-flex; }
  .nav-cta { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
}

/* Desktop: show full nav */
@media (min-width: 1024px) {
  .nav-cta .btn-ghost { display: inline-flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  z-index: 1;
}
.hero-inner {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: var(--s-7);
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px #fff;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.6); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}

.hero-title {
  font-size: clamp(40px, 9vw, 132px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 var(--s-6);
  max-width: 18ch;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(180deg, #fff 0%, #777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.reveal-line {
  display: block;
  overflow: hidden;
}
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  opacity: 0;
  transition: transform 0.9s var(--ease-2), opacity 0.6s;
}
.reveal-line.is-in > span { transform: translateY(0); opacity: 1; }

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-3);
  max-width: 56ch;
  margin: 0 0 var(--s-7);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: var(--s-8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex-wrap: wrap;
  justify-content: center;
  color: var(--ink-3);
  font-size: 14px;
}
.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.meta-item strong {
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}
.meta-divider {
  width: 1px;
  height: 24px;
  background: var(--line-2);
}

/* Floating cards */
.float-card {
  position: absolute;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 12px;
  min-width: 180px;
  z-index: 2;
}
.float-a {
  top: 12%;
  left: -6%;
  animation: floatY 6s ease-in-out infinite;
}
.float-b {
  top: 38%;
  right: -6%;
  animation: floatY 7s ease-in-out infinite reverse;
}
.float-c {
  bottom: 8%;
  left: 4%;
  animation: floatY 8s ease-in-out infinite;
  animation-delay: 1s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.fc-row { display: flex; align-items: center; gap: 12px; }
.fc-ico {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  color: #fff;
}
.fc-title { color: var(--ink-3); font-size: 11px; }
.fc-val { color: var(--ink); font-size: 15px; font-weight: 600; }
.fc-mini-graph { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-bottom: 8px; }
.fc-mini-graph span {
  width: 4px;
  background: linear-gradient(180deg, #fff, #555);
  border-radius: 2px;
  animation: graph 1.4s ease-in-out infinite;
}
.fc-mini-graph span:nth-child(1) { height: 30%; animation-delay: 0s; }
.fc-mini-graph span:nth-child(2) { height: 50%; animation-delay: 0.1s; }
.fc-mini-graph span:nth-child(3) { height: 35%; animation-delay: 0.2s; }
.fc-mini-graph span:nth-child(4) { height: 80%; animation-delay: 0.3s; }
.fc-mini-graph span:nth-child(5) { height: 55%; animation-delay: 0.4s; }
.fc-mini-graph span:nth-child(6) { height: 95%; animation-delay: 0.5s; }
@keyframes graph {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}
.fc-meta { display: flex; justify-content: space-between; align-items: center; }
.fc-meta span { color: var(--ink-3); }
.fc-meta strong { color: var(--ink); font-size: 14px; }
.fc-avatar { display: flex; margin-bottom: 8px; }
.av {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #0a0a0a;
  margin-left: -6px;
  background: linear-gradient(135deg, #fff, #888);
}
.av:first-child { margin-left: 0; }
.av-1 { background: linear-gradient(135deg, #fff, #aaa); }
.av-2 { background: linear-gradient(135deg, #ddd, #777); }
.av-3 { background: linear-gradient(135deg, #999, #444); }

@media (max-width: 900px) {
  .float-a, .float-b, .float-c { display: none; }
}

.hero-glow {
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,255,255,0.08), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

/* ============== Trusted by ============== */
.trusted {
  padding: var(--s-9) 0 var(--s-7);
  position: relative;
  z-index: 1;
}
.trusted-label {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 var(--s-6);
}
.logo-track {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
}
.logo-track-inner {
  display: flex;
  gap: var(--s-8);
  width: max-content;
  animation: marquee 30s linear infinite;
}
.logo-item {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  white-space: nowrap;
  transition: color 0.3s;
}
.logo-item:hover { color: var(--ink); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============== Sections ============== */
.section {
  padding: var(--s-9) 0;
  position: relative;
  z-index: 1;
}

/* ============== Services ============== */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 700px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative;
  padding: 32px;
  border-radius: 24px;
  transition: transform 0.4s var(--ease), border-color 0.3s;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.18), transparent 40%, transparent 60%, rgba(255,255,255,0.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }

.sc-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  margin-bottom: 32px;
}
.sc-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  display: grid;
  place-items: center;
  color: var(--ink);
  margin-bottom: var(--s-5);
  border: 1px solid var(--line);
}
.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  letter-spacing: -0.015em;
}
.service-card p {
  color: var(--ink-3);
  font-size: 15px;
  margin: 0 0 var(--s-5);
  line-height: 1.6;
}
.service-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--s-5);
}
.service-card ul li {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.sc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: gap 0.3s var(--ease);
}
.sc-link span { transition: transform 0.3s var(--ease); }
.sc-link:hover { gap: 10px; }
.sc-link:hover span { transform: translateX(4px); }

/* ============== Why ============== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 900px) {
  .why-grid { grid-template-columns: 1fr 1.2fr; gap: var(--s-9); }
}
.why-left .btn { margin-top: var(--s-5); }
.why-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
.why-item {
  padding: 24px;
  border-radius: 20px;
  transition: transform 0.3s var(--ease);
}
.why-item:hover { transform: translateY(-2px); }
.why-ico {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 12px;
}
.why-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.why-item p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  line-height: 1.55;
}

/* ============== Work ============== */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 800px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }

.work-card {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--line-2);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.work-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.25); }

.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #161616, #0c0c0c);
  border-bottom: 1px solid var(--line);
}

/* Work media 1 — dashboard */
.work-media-1 .wm-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 50%, #000 30%, transparent 70%);
}
.work-media-1 .wm-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
}
.work-media-1 .wm-shape-1 {
  width: 200px; height: 200px;
  top: -40px; right: -40px;
  background: radial-gradient(circle, #fff 0%, transparent 70%);
  opacity: 0.18;
}
.work-media-1 .wm-shape-2 {
  width: 160px; height: 160px;
  bottom: -20px; left: 20%;
  background: radial-gradient(circle, #aaa 0%, transparent 70%);
  opacity: 0.12;
}
.work-media-1 .wm-shape-3 {
  width: 120px; height: 120px;
  top: 40%; right: 30%;
  background: radial-gradient(circle, #888 0%, transparent 70%);
  opacity: 0.15;
}
.wm-window {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(-2deg);
  width: 70%;
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.wm-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #2a2a2a;
  margin-right: 4px;
  margin-bottom: 12px;
}
.wm-line {
  height: 6px;
  background: linear-gradient(90deg, #2a2a2a, #1a1a1a);
  border-radius: 3px;
  margin-bottom: 6px;
}
.wm-line.w-80 { width: 80%; }
.wm-line.w-60 { width: 60%; }
.wm-line.w-50 { width: 50%; }
.wm-line.w-40 { width: 40%; }
.wm-block {
  margin-top: 12px;
  height: 50px;
  background: linear-gradient(135deg, #fff 0%, #888 100%);
  border-radius: 6px;
  opacity: 0.18;
}

/* Work media 2 — abstract */
.work-media-2 .wm-orb {
  position: absolute;
  width: 220px; height: 220px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #fff, #555 70%, #1a1a1a);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(255,255,255,0.15), inset 0 0 60px rgba(0,0,0,0.4);
  animation: orbFloat 8s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
}
.wm-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.wm-rings span {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  animation: ringExpand 4s linear infinite;
}
.wm-rings span:nth-child(1) { width: 100px; height: 100px; animation-delay: 0s; }
.wm-rings span:nth-child(2) { width: 180px; height: 180px; animation-delay: 0.5s; }
.wm-rings span:nth-child(3) { width: 260px; height: 260px; animation-delay: 1s; }
@keyframes ringExpand {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wm-stat {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: right;
}
.wm-stat strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
}
.wm-stat span {
  font-size: 11px;
  color: var(--ink-3);
}

/* Work media 3 — chart */
.work-media-3 {
  background: linear-gradient(135deg, #0e0e0e, #161616);
}
.wm-bars {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60%;
}
.wm-bars span {
  width: 18px;
  height: var(--h);
  background: linear-gradient(180deg, #fff, #444);
  border-radius: 4px 4px 0 0;
  animation: barRise 2s var(--ease) backwards;
}
.wm-bars span:nth-child(1) { animation-delay: 0.05s; }
.wm-bars span:nth-child(2) { animation-delay: 0.1s; }
.wm-bars span:nth-child(3) { animation-delay: 0.15s; }
.wm-bars span:nth-child(4) { animation-delay: 0.2s; }
.wm-bars span:nth-child(5) { animation-delay: 0.25s; }
.wm-bars span:nth-child(6) { animation-delay: 0.3s; }
.wm-bars span:nth-child(7) { animation-delay: 0.35s; }
@keyframes barRise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
.work-media-3 .wm-line {
  position: absolute;
  top: 18px;
  left: 18px;
}
.work-media-3 .wm-line.w-50 { top: 36px; }

/* Work media 4 — sphere */
.work-media-4 {
  background: linear-gradient(180deg, #0a0a0a, #161616);
}
.wm-sphere {
  position: absolute;
  width: 240px; height: 240px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 30% 30%, #fff 0%, #777 30%, #2a2a2a 70%, #000 100%);
  border-radius: 50%;
  box-shadow:
    0 0 100px rgba(255,255,255,0.12),
    inset -20px -30px 60px rgba(0,0,0,0.6),
    inset 10px 10px 30px rgba(255,255,255,0.15);
  animation: sphereRotate 20s linear infinite;
}
@keyframes sphereRotate {
  0% { background-position: 30% 30%; }
  50% { background-position: 70% 30%; }
  100% { background-position: 30% 30%; }
}
.wm-floating-tag {
  position: absolute;
  top: 16px; right: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}

.work-meta { padding: 24px; }
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.work-tags span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
}
.work-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.work-cta {
  font-size: 14px;
  color: var(--ink-3);
  transition: color 0.2s, letter-spacing 0.3s var(--ease);
}
.work-card:hover .work-cta { color: var(--ink); letter-spacing: 0.04em; }

/* ============== Tech ============== */
.tech-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }

.tech-card {
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.3s var(--ease);
}
.tech-card:hover { transform: translateY(-3px); }
.tech-cat {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}
.tech-card ul li {
  padding: 8px 0;
  color: var(--ink-2);
  font-size: 15px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: color 0.2s, padding-left 0.3s var(--ease);
}
.tech-card ul li:last-child { border-bottom: 0; }
.tech-card ul li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--ink-4);
  border-radius: 50%;
  flex: 0 0 auto;
  transition: background 0.3s, box-shadow 0.3s;
}
.tech-card:hover ul li { color: var(--ink); }
.tech-card:hover ul li::before {
  background: #fff;
  box-shadow: 0 0 8px #fff;
}

/* ============== Process / Timeline ============== */
.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 30px;
  bottom: 30px;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-2) 10%, var(--line-2) 90%, transparent);
  display: none;
}
@media (min-width: 800px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .timeline::before { display: block; left: 50%; }
}
@media (min-width: 1100px) {
  .timeline {
    grid-template-columns: repeat(4, 1fr);
  }
  .timeline::before { display: none; }
}
.t-item {
  position: relative;
  padding: 28px;
  border-radius: 20px;
  transition: transform 0.3s var(--ease);
}
.t-item:hover { transform: translateY(-3px); }
.t-num {
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ink-4);
  margin-bottom: 24px;
}
.t-content h3 {
  font-size: 20px;
  color: var(--ink);
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.t-content p {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0 0 16px;
  line-height: 1.55;
}
.t-meta {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* ============== Stats ============== */
.stats-card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-radius: 28px;
  padding: 8px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 800px) { .stats-card { grid-template-columns: repeat(4, 1fr); } }
.stats-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.05), transparent 60%);
  pointer-events: none;
}
.stat {
  text-align: center;
  padding: var(--s-7) var(--s-5);
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 25%;
  height: 50%;
  width: 1px;
  background: var(--line);
}
@media (max-width: 799px) {
  .stat:nth-child(odd)::after {
    content: "";
    position: absolute;
    bottom: 0; left: 15%; right: 15%;
    height: 1px;
    background: var(--line);
  }
}
.stat-num {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.stat-suffix {
  display: inline-block;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
  font-weight: 600;
  margin-left: 2px;
  vertical-align: top;
  line-height: 1;
  padding-top: 6px;
}
.stat-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* ============== Testimonials ============== */
.t-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 800px) { .t-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .t-grid { grid-template-columns: repeat(3, 1fr); } }

.t-card {
  padding: 32px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.3s var(--ease);
  margin: 0;
}
.t-card:hover { transform: translateY(-3px); }
.t-stars {
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--ink);
}
.t-card blockquote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  font-weight: 400;
}
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.t-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, #555);
  color: #000;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.t-avatar::after {
  content: attr(data-letter);
}
.t-card figcaption strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  font-weight: 600;
}
.t-card figcaption span {
  font-size: 12px;
  color: var(--ink-3);
}

/* ============== FAQ ============== */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 1fr 1.4fr; gap: var(--s-9); }
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border-radius: 18px;
  transition: border-color 0.3s;
}
.faq-item[open] {
  border-color: rgba(255,255,255,0.3);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 22px; height: 22px;
  flex: 0 0 auto;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--ink-3);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), background 0.3s;
}
.faq-icon::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item[open] .faq-icon::before { background: #fff; }
.faq-body {
  padding: 0 24px 24px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.65;
  max-width: 60ch;
  animation: fadeUp 0.4s var(--ease);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============== Contact ============== */
.contact-wrap { position: relative; }
.contact-card {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
@media (min-width: 900px) {
  .contact-card { grid-template-columns: 1fr 1.1fr; }
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.contact-left {
  padding: 40px;
  position: relative;
}
@media (min-width: 700px) { .contact-left { padding: 56px; } }
.contact-info {
  margin-top: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.contact-info li:last-child { border-bottom: 0; }
.ci-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.contact-info a, .contact-info span:last-child {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
.contact-info a:hover { color: var(--ink-3); }

.contact-form {
  padding: 40px;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
@media (min-width: 700px) { .contact-form { padding: 56px; } }
@media (min-width: 900px) {
  .contact-form { border-top: 0; border-left: 1px solid var(--line); }
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b8b8b8' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.field select option { background: #0a0a0a; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-5); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04);
}
.field.error input, .field.error select, .field.error textarea {
  border-color: rgba(255,120,120,0.5);
  background: rgba(255,80,80,0.04);
}
.contact-form .btn.full { grid-column: 1 / -1; margin-top: 8px; }
.form-note {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
  min-height: 1.2em;
}
.form-note.is-success { color: #b8e6c1; }
.form-note.is-error { color: #e6b8b8; }

/* ============== Footer ============== */
.footer {
  position: relative;
  padding: var(--s-9) 0 var(--s-5);
  border-top: 1px solid var(--line);
  margin-top: var(--s-9);
  z-index: 1;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-8);
}
@media (min-width: 800px) {
  .footer-top {
    grid-template-columns: 1.4fr 2fr;
    gap: var(--s-9);
  }
}
.footer-brand p {
  margin: 16px 0 0;
  max-width: 36ch;
  color: var(--ink-3);
  font-size: 14px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}
@media (min-width: 600px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
.footer-cols h5 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 10px; }
.footer-cols a {
  color: var(--ink-2);
  font-size: 14px;
  transition: color 0.2s, padding-left 0.3s var(--ease);
}
.footer-cols a:hover { color: var(--ink); padding-left: 4px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink-4);
  font-size: 13px;
}
.dot-sep { opacity: 0.5; }
.footer-bottom a { transition: color 0.2s; }
.footer-bottom a:hover { color: var(--ink); }
.status-pill {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #fff;
  animation: pulse 1.6s ease-in-out infinite;
}

.footer-mark {
  font-size: clamp(80px, 18vw, 240px);
  font-weight: 800;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.07) 0%, transparent 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-top: var(--s-7);
  user-select: none;
  pointer-events: none;
}

/* ============== Reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-2), transform 0.9s var(--ease-2);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   RESPONSIVE — Mobile first refinements
   ========================================= */

/* ============== Ultra small phones (≤ 380px) ============== */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .nav-wrap { padding: 0 12px; top: 12px; }
  .nav { padding: 8px 10px 8px 16px; }
  .nav-logo { font-size: 14px; }
  .logo-mark { width: 26px; height: 26px; }
  .logo-mark svg { width: 18px; height: 18px; }
  .nav-burger { width: 36px; height: 36px; }
  .hero { padding: 130px 0 60px; }
  .hero-title { font-size: 36px; line-height: 1; }
  .hero-sub { font-size: 15px; }
  .hero-badge { font-size: 12px; padding: 7px 14px 7px 10px; }
  .hero-cta .btn { padding: 14px 18px; font-size: 14px; }
  .section-title { font-size: 32px; }
  .section-sub { font-size: 14px; }
  .stat-num { font-size: 36px; }
  .stat-suffix { font-size: 24px; }
  .stat-label { font-size: 12px; }
  .footer-mark { font-size: 70px; }
  .btn { padding: 14px 18px; font-size: 14px; }
  .btn-sm { padding: 11px 16px; }
  .btn-lg { padding: 16px 22px; font-size: 15px; }
}

/* ============== Small phones (≤ 480px) ============== */
@media (max-width: 480px) {
  .hero { padding: 140px 0 80px; }
  .hero-title { font-size: 42px; letter-spacing: -0.04em; }
  .hero-title em { letter-spacing: -0.02em; }
  .hero-badge { font-size: 12px; padding: 7px 14px 7px 10px; }
  .hero-sub { font-size: 15px; }
  .hero-cta { width: 100%; flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 20px; }
  .meta-divider { display: none; }
  .meta-item strong { font-size: 16px; }
  .meta-item span { font-size: 12px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 34px; }
  .section-sub { font-size: 15px; }
  .service-card { padding: 24px; border-radius: 20px; }
  .service-card h3 { font-size: 20px; }
  .work-meta { padding: 20px; }
  .work-card h3 { font-size: 18px; }
  .tech-card { padding: 24px; }
  .t-item { padding: 24px; }
  .t-card { padding: 24px; }
  .t-card blockquote { font-size: 15px; }
  .stats-card { padding: 4px; }
  .stat { padding: 28px 12px; }
  .stat-num { font-size: 40px; }
  .stat-suffix { font-size: 28px; }
  .faq-item summary { padding: 20px 20px; font-size: 15px; }
  .faq-body { padding: 0 20px 20px; font-size: 14px; }
  .contact-left { padding: 32px 24px; }
  .contact-form { padding: 32px 24px; }
  .footer { padding: 56px 0 24px; margin-top: 56px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer-mark { font-size: 80px; }
  .why-item { padding: 20px; }
  .why-item h4 { font-size: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.15em; }
  .work-media { aspect-ratio: 4 / 3; }
  .wm-window { width: 80%; }
}

/* ============== Mobile (≤ 600px) ============== */
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .service-grid { gap: 12px; }
  .work-grid { gap: 16px; }
  .tech-grid { gap: 12px; }
  .hero { padding: 150px 0 80px; }
  .hero-title { font-size: clamp(38px, 11vw, 56px); }
  .hero-sub { font-size: 15px; }
  .stats-card { padding: 8px; }
  .stat { padding: 32px 12px; }
  .stat-num { font-size: 42px; }
  .stat + .stat::before { display: none; }
  .stat:nth-child(odd)::after { display: block; }
  .stat:last-child::after { display: none; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-menu { display: flex; }
  .service-card { padding: 26px; }
  .t-card { padding: 26px; }
  .contact-left, .contact-form { padding: 32px 24px; }
  .contact-form { grid-template-columns: 1fr; }
  .footer { padding: 64px 0 24px; margin-top: 64px; }
}

/* ============== Small tablet portrait (481px – 767px) ============== */
@media (min-width: 481px) and (max-width: 767px) {
  .hero { padding: 150px 0 90px; }
  .hero-title { font-size: 60px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-card { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: 1fr; }
}

/* ============== Tablet portrait (768px – 1023px) ============== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { padding: 0 32px; }
  .hero { padding: 170px 0 100px; }
  .hero-title { font-size: 80px; }
  .hero-cta .btn { padding: 15px 24px; }
  .section { padding: 88px 0; }
  .section-title { font-size: 52px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-card { grid-template-columns: repeat(4, 1fr); }
  .t-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .faq-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-form { border-top: 1px solid var(--line); border-left: 0; }
  .footer-top { grid-template-columns: 1.4fr 2fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .nav-links, .nav-cta { display: inline-flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: inline-flex; }
  .mobile-menu { display: flex; }
}

/* ============== Tablet landscape / small desktop (1024px – 1279px) ============== */
@media (min-width: 1024px) and (max-width: 1279px) {
  .container { padding: 0 32px; }
  .section { padding: 96px 0; }
  .section-title { font-size: 60px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .t-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .faq-grid { grid-template-columns: 1fr 1.4fr; gap: 80px; }
  .hero-title { font-size: 100px; }
}

/* ============== Desktop (≥ 1280px) — base styles already handle this ============== */
@media (min-width: 1280px) {
  .section { padding: 120px 0; }
  .section-title { font-size: 72px; }
  .hero-title { font-size: 128px; }
}

/* ============== Large desktop (≥ 1440px) ============== */
@media (min-width: 1440px) {
  :root { --maxw: 1320px; }
  .container { padding: 0 32px; }
  .section { padding: 128px 0; }
  .hero-title { font-size: 140px; }
  .section-title { font-size: 80px; }
}

/* ============== Ultra-wide (≥ 1600px) ============== */
@media (min-width: 1600px) {
  :root { --maxw: 1400px; }
  .hero-title { font-size: 156px; }
  .section-title { font-size: 88px; }
  .hero { padding: 200px 0 140px; }
}

/* ============== Touch device optimizations ============== */
@media (hover: none) and (pointer: coarse) {
  /* Disable hover transforms on touch — prevent sticky :hover state */
  .btn-primary:hover { transform: none; }
  .btn-ghost:hover { background: var(--glass); border-color: var(--line-2); }
  .service-card:hover, .why-item:hover, .tech-card:hover, .t-item:hover, .t-card:hover, .work-card:hover { transform: none; }
  .work-card:hover .work-cta { letter-spacing: 0; }
  .tech-card:hover ul li { color: var(--ink-2); }
  .tech-card:hover ul li::before { background: var(--ink-4); box-shadow: none; }
  .nav-links a:hover { color: var(--ink-3); background: transparent; }
  .footer-cols a:hover { color: var(--ink-2); padding-left: 0; }
  .contact-info a:hover { color: var(--ink); }
  .link-arrow:hover, .sc-link:hover { gap: inherit; }
  .link-arrow:hover span, .sc-link:hover span { transform: none; }
  .faq-item summary { padding: 22px 24px; }

  /* Larger touch targets */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .nav-burger { min-width: 44px; min-height: 44px; }
  .field input, .field select, .field textarea { min-height: 48px; padding: 14px 16px; }
  .field input, .field select, .field textarea { font-size: 16px; /* prevent iOS zoom */ }
  .mobile-menu a { min-height: 52px; }
}

/* ============== Landscape phones (small height) ============== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 110px 0 60px; }
  .hero-title { font-size: 48px; }
  .hero-badge { margin-bottom: 20px; }
  .hero-meta { margin-top: 24px; }
  .float-card { display: none; }
}

/* ============== Print styles ============== */
@media print {
  .bg-decor, .cursor, .intro, .float-card, .orb, .grid-overlay, .noise { display: none !important; }
  body { background: #fff; color: #000; }
  .glass { background: transparent; border: 1px solid #ccc; backdrop-filter: none; }
  .nav-wrap { position: static; }
  .hero-title, .section-title { color: #000; }
}

/* ============== Reduced motion (existing) ============== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reveal-line > span { transform: none; opacity: 1; transition: none; }
  *, *::before, *::after { animation-duration: 0.01s !important; transition-duration: 0.01s !important; }
  html { scroll-behavior: auto; }
}
