/* ============================================================
   PT WYCI Digital Works — Landing Page
   Design system: dark tech, electric blue + silver
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #05070c;
  --bg-alt:        #070a11;
  --surface:       #0b1019;
  --surface-2:     #101828;
  --surface-3:     #161f33;

  /* Lines */
  --line:          rgba(255, 255, 255, .07);
  --line-2:        rgba(255, 255, 255, .12);
  --line-3:        rgba(255, 255, 255, .2);

  /* Text */
  --text:          #e9eefb;
  --text-2:        #9aa7bd;
  --text-3:        #6b7891;

  /* Brand */
  --brand:         #2c7bff;
  --brand-2:       #1656d6;
  --brand-3:       #64a4ff;
  --brand-soft:    rgba(44, 123, 255, .12);
  --brand-line:    rgba(44, 123, 255, .32);
  --glow:          rgba(44, 123, 255, .45);
  --silver:        #dbe4f3;

  /* Semantic */
  --ok:            #34d399;
  --warn:          #fbbf24;

  /* Gradients */
  --g-brand:       linear-gradient(135deg, #2c7bff 0%, #1656d6 100%);
  --g-silver:      linear-gradient(135deg, #ffffff 0%, #cdd8ea 45%, #8b9bb5 100%);
  --g-head:        linear-gradient(180deg, #ffffff 0%, #b8c6de 100%);

  /* Spacing scale */
  --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;

  /* Radius */
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-full: 999px;

  /* Shadows */
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 8px 24px -8px rgba(0,0,0,.6);
  --sh-3: 0 24px 64px -20px rgba(0,0,0,.8);
  --sh-brand: 0 16px 48px -16px var(--glow);

  /* Motion */
  --e-out: cubic-bezier(.22, 1, .36, 1);
  --e-io:  cubic-bezier(.65, 0, .35, 1);
  --t-fast: 150ms; --t-mid: 260ms; --t-slow: 420ms;

  /* Layout */
  --wrap: 1200px;
  --nav-h: 72px;

  /* Type */
  --f-head: 'Lexend', system-ui, -apple-system, sans-serif;
  --f-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--brand-3);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2740; border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a3a5c; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); }
h4 { font-size: 1.0625rem; }
p  { text-wrap: pretty; }

.grad-text {
  background: var(--g-head);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.brand-text {
  background: linear-gradient(120deg, #64a4ff 0%, #2c7bff 50%, #8fc0ff 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.sec-head { max-width: 720px; margin-bottom: var(--s-8); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head p { margin-top: var(--s-4); font-size: 1.0625rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand-3);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}
.sec-head--center .eyebrow::after {
  content: ''; width: 22px; height: 1px;
  background: linear-gradient(270deg, transparent, var(--brand));
}

/* ---------- 5. Backgrounds & decor ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}
.bg-glow {
  position: absolute; pointer-events: none; z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
}
.bg-noise::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 46px; padding: 0 var(--s-5);
  border-radius: var(--r-full);
  font-family: var(--f-head); font-size: .9375rem; font-weight: 500;
  letter-spacing: -.01em; white-space: nowrap; max-width: 100%;
  cursor: pointer;
  transition: transform var(--t-fast) var(--e-out),
              box-shadow var(--t-mid) var(--e-out),
              background-color var(--t-mid) var(--e-out),
              border-color var(--t-mid) var(--e-out),
              color var(--t-mid) var(--e-out);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn--primary {
  background: var(--g-brand); color: #fff;
  box-shadow: var(--sh-brand), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px -16px var(--glow), inset 0 1px 0 rgba(255,255,255,.3); }

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,.06); transform: translateY(-2px); }

.btn--lg { min-height: 54px; padding: 0 var(--s-6); font-size: 1rem; }
.btn--block { width: 100%; }

.btn--arrow svg { transition: transform var(--t-mid) var(--e-out); }
.btn--arrow:hover svg { transform: translateX(4px); }

/* Text link */
.tlink {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand-3); font-weight: 600; font-size: .9375rem;
  transition: gap var(--t-mid) var(--e-out), color var(--t-mid);
}
.tlink svg { width: 15px; height: 15px; }
.tlink:hover { gap: 11px; color: #9cc4ff; }

/* Chip / tag */
.tag {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: var(--r-full);
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-2);
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.tag--brand { color: var(--brand-3); background: var(--brand-soft); border-color: var(--brand-line); }

.pill {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 6px 14px 6px 8px; border-radius: var(--r-full);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-2);
  font-size: .8125rem; color: var(--text-2);
  backdrop-filter: blur(10px);
}
.pill b { color: var(--text); font-weight: 600; }
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 3px rgba(52,211,153,.16);
  animation: pulse 2.4s var(--e-io) infinite;
}
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .4 } }

/* ---------- 7. Card base ---------- */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color var(--t-mid) var(--e-out),
              transform var(--t-mid) var(--e-out),
              box-shadow var(--t-mid) var(--e-out);
}
.card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(44,123,255,.13), transparent 60%);
  opacity: 0; transition: opacity var(--t-mid) var(--e-out);
}
.card:hover { border-color: var(--brand-line); transform: translateY(-4px); box-shadow: var(--sh-3); }
.card:hover::before { opacity: 1; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color var(--t-mid), border-color var(--t-mid), backdrop-filter var(--t-mid);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5,7,12,.78);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; gap: var(--s-6); width: 100%; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 54px; height: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--f-head); font-size: .9375rem; font-weight: 600; color: var(--text); letter-spacing: -.01em; }
.brand__sub { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; color: var(--text-3); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: .9rem; font-weight: 500; color: var(--text-2);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav__cta { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; }

.nav__burger {
  display: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  color: var(--text);
}
.nav__burger svg { width: 20px; height: 20px; }

/* Scroll progress */
.progress {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
}

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(5,7,12,.97);
  backdrop-filter: blur(20px);
  padding: calc(var(--nav-h) + 24px) var(--s-5) var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-2);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform var(--t-slow) var(--e-out), visibility var(--t-slow);
  overflow-y: auto;
}
.drawer.is-open { transform: translateY(0); visibility: visible; }
.drawer a {
  padding: var(--s-4) var(--s-2);
  font-family: var(--f-head); font-size: 1.3rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.drawer .btn { margin-top: var(--s-5); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(56px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow-a { top: -220px; left: 50%; transform: translateX(-50%); width: 900px; height: 520px; background: rgba(44,123,255,.32); }
.hero__glow-b { bottom: -180px; right: -120px; width: 480px; height: 420px; background: rgba(100,164,255,.14); }

.hero__inner { position: relative; z-index: 2; display: grid; gap: clamp(40px, 5vw, 64px); }
/* grid/flex children default to min-width:auto, which lets nowrap content
   (e.g. the mock URL bar) blow past the viewport — clamp it everywhere */
.hero__inner > *, .bento > *, .works > *, .steps > *,
.stack-grid > *, .values > *, .models > *, .split > *,
.cta__grid > *, .form__row > *, .foot__grid > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
}

.hero h1 { margin-bottom: var(--s-5); }
.hero h1 .line { display: block; }
/* keyword-bearing sub-line inside the H1 — visible, not a hidden SEO hack */
.h1-sub {
  display: block;
  margin-top: var(--s-4);
  max-width: 44ch;
  font-family: var(--f-body);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-2);
}
.hero__lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); max-width: 56ch; margin-bottom: var(--s-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }

.hero__meta { display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6); }
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta b {
  font-family: var(--f-head); font-size: 1.55rem; font-weight: 600;
  color: var(--text); letter-spacing: -.02em; line-height: 1.1;
}
.hero__meta span { font-size: .8125rem; color: var(--text-3); }

/* Hero visual */
.hero__visual { position: relative; }
.mock {
  position: relative;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--sh-3), 0 0 90px -30px var(--glow);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform var(--t-slow) var(--e-out);
}
.hero__visual:hover .mock { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.mock__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--line);
}
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2b3550; }
.mock__bar span {
  margin-left: 10px; min-width: 0; font-family: var(--f-mono); font-size: .68rem; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mock img { width: 100%; display: block; }

.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  background: rgba(11,16,25,.9);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(14px);
  box-shadow: var(--sh-2);
  animation: bob 5.5s var(--e-io) infinite;
}
.float-card i {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand-3);
  border: 1px solid var(--brand-line);
}
.float-card i svg { width: 17px; height: 17px; }
.float-card b { display: block; font-family: var(--f-head); font-size: .8125rem; font-weight: 600; color: var(--text); }
.float-card span { display: block; font-size: .7rem; color: var(--text-3); line-height: 1.3; }
.float-card--a { top: 12%; left: -8%; }
.float-card--b { bottom: 14%; right: -6%; animation-delay: -2.6s; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-11px) } }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust { border-block: 1px solid var(--line); background: var(--bg-alt); padding-block: var(--s-6); }
.trust__label {
  text-align: center; font-family: var(--f-mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: var(--s-5);
}
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: var(--s-8); width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-3);
  font-family: var(--f-head); font-weight: 500; font-size: .95rem;
  white-space: nowrap;
  transition: color var(--t-mid);
}
.marquee__item:hover { color: var(--text); }
.marquee__item svg { width: 26px; height: 26px; flex-shrink: 0; opacity: .8; }

/* ============================================================
   SERVICES (bento)
   ============================================================ */
.bento { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bento { grid-template-columns: repeat(6, 1fr); } }

.svc { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
@media (min-width: 1024px) {
  .svc { grid-column: span 2; }
  .svc--wide { grid-column: span 3; }
}
.svc__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  color: var(--brand-3);
  background: linear-gradient(160deg, rgba(44,123,255,.18), rgba(44,123,255,.04));
  border: 1px solid var(--brand-line);
  margin-bottom: var(--s-2);
  transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid);
}
.svc__ico svg { width: 23px; height: 23px; }
.card:hover .svc__ico { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px -10px var(--glow); }
.svc h3 { letter-spacing: -.02em; }
.svc p { font-size: .9375rem; }
.svc__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-3); }

/* ============================================================
   STACK
   ============================================================ */
.stack-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
.stack-col { padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; }
.stack-col__ico {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  color: var(--brand-3);
  background: linear-gradient(160deg, rgba(44,123,255,.18), rgba(44,123,255,.04));
  border: 1px solid var(--brand-line);
  margin-bottom: var(--s-4);
  transition: transform var(--t-mid) var(--e-out), box-shadow var(--t-mid);
}
.stack-col__ico svg { width: 22px; height: 22px; }
.card:hover .stack-col__ico { transform: translateY(-2px) scale(1.05); box-shadow: 0 10px 24px -10px var(--glow); }
.stack-col h3 { font-size: 1.2rem; margin-bottom: var(--s-3); }
.stack-col__lead { font-size: .9rem; margin-bottom: var(--s-4); }
.stack-col ul {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line);
}
.stack-col li {
  display: flex; align-items: flex-start; gap: var(--s-3);
  font-size: .875rem; line-height: 1.55; color: var(--text-2);
}
.stack-col li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); flex-shrink: 0; margin-top: 9px;
  box-shadow: 0 0 0 3px var(--brand-soft);
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; gap: var(--s-4); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step { position: relative; padding: var(--s-5); }
.step__n {
  font-family: var(--f-mono); font-size: .75rem; font-weight: 500;
  color: var(--brand-3); letter-spacing: .1em;
  display: block; margin-bottom: var(--s-4);
}
.step__bar { height: 2px; border-radius: 2px; background: var(--line-2); margin-bottom: var(--s-4); overflow: hidden; }
.step__bar i { display: block; height: 100%; width: 0; background: var(--g-brand); transition: width 900ms var(--e-out); }
.is-visible .step__bar i { width: 100%; }
.step h4 { margin-bottom: 6px; }
.step p { font-size: .875rem; }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.filter {
  min-height: 40px; padding: 0 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  font-size: .875rem; font-weight: 500; color: var(--text-2);
  transition: all var(--t-mid) var(--e-out);
}
.filter:hover { color: var(--text); border-color: var(--line-2); background: rgba(255,255,255,.06); }
.filter.is-active {
  color: #fff; background: var(--g-brand); border-color: transparent;
  box-shadow: 0 8px 24px -10px var(--glow);
}

/* dense flow so 1-col cards backfill the gaps left by 2-col feature cards */
.works { display: grid; gap: var(--s-4); grid-template-columns: 1fr; grid-auto-flow: row dense; }
@media (min-width: 700px)  { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .works { grid-template-columns: repeat(3, 1fr); } }

.work { display: flex; flex-direction: column; }
.work.is-hidden { display: none; }
@media (min-width: 700px) { .work--feat { grid-column: span 2; } }
@media (min-width: 1080px) { .work--feat { grid-column: span 2; } }

.work__media {
  position: relative; overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
}
.work--feat .work__media { aspect-ratio: 16 / 8.5; }
.work__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 700ms var(--e-out), filter var(--t-slow);
  filter: saturate(.92) brightness(.94);
}
.work:hover .work__media img { transform: scale(1.045); filter: saturate(1) brightness(1); }
.work__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(5,7,12,0) 45%, rgba(5,7,12,.75) 100%);
  pointer-events: none;
}
.work__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: var(--r-full);
  background: rgba(5,7,12,.72); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2);
}
.work__badge--live { color: var(--ok); border-color: rgba(52,211,153,.3); }

/* Top project flag */
.work__flag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px 5px 9px; border-radius: var(--r-full);
  background: var(--g-brand); color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 8px 20px -8px var(--glow);
  font-family: var(--f-mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
}
.work__flag svg { width: 11px; height: 11px; flex-shrink: 0; }
.work--top { border-color: var(--brand-line); }
.work--top:hover { box-shadow: var(--sh-3), 0 0 60px -24px var(--glow); }

.work__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); flex: 1; }
.work__body h3 { font-size: 1.075rem; }
.work--feat .work__body h3 { font-size: 1.28rem; }
.work__body p { font-size: .89rem; }
.work__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--s-2); }

.work__stats { display: flex; flex-wrap: wrap; gap: var(--s-5); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.work__stats div b {
  display: block; font-family: var(--f-head); font-size: 1.15rem; font-weight: 600; color: var(--text);
  line-height: 1.2;
}
.work__stats div span { font-size: .74rem; color: var(--text-3); }

.works-more { display: flex; justify-content: center; margin-top: var(--s-6); }
/* long-label CTA: must wrap instead of forcing the page wider than the viewport */
.works-more .btn {
  white-space: normal; text-align: center; line-height: 1.4;
  padding-block: 12px; height: auto;
}

/* ============================================================
   WHY / VALUES
   ============================================================ */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.values { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .values { grid-template-columns: repeat(2, 1fr); } }
.value { display: flex; gap: var(--s-4); padding: var(--s-5); }
.value i {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--brand-soft); border: 1px solid var(--brand-line); color: var(--brand-3);
}
.value i svg { width: 19px; height: 19px; }
.value h4 { margin-bottom: 4px; }
.value p { font-size: .875rem; }

/* Industries */
.inds { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.ind {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: var(--r-full);
  border: 1px solid var(--line); background: rgba(255,255,255,.025);
  font-size: .9rem; color: var(--text-2);
  transition: all var(--t-mid) var(--e-out);
}
.ind:hover { border-color: var(--brand-line); color: var(--text); background: var(--brand-soft); transform: translateY(-2px); }
.ind svg { width: 18px; height: 18px; color: var(--brand-3); flex-shrink: 0; }

/* Engagement models */
.models { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .models { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .models { grid-template-columns: repeat(4, 1fr); } }
.model { padding: var(--s-6) var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.model__k { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-3); }
.model h4 { font-size: 1.1rem; }
.model p { font-size: .875rem; }
.model ul { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.model li { display: flex; gap: 9px; font-size: .84rem; color: var(--text-2); }
.model li svg { width: 15px; height: 15px; color: var(--brand-3); flex-shrink: 0; margin-top: 4px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(44,123,255,.14), transparent 70%),
    var(--bg-alt);
}
.band__grid { display: grid; gap: var(--s-6); grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 900px) { .band__grid { grid-template-columns: repeat(4, 1fr); } }
.band__grid > div { position: relative; }
@media (min-width: 900px) {
  .band__grid > div + div::before {
    content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--line-2);
  }
}
.band b {
  display: block; font-family: var(--f-head); font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; line-height: 1.05;
  background: var(--g-head); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.band span { display: block; margin-top: 6px; font-size: .875rem; color: var(--text-3); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: var(--s-3); }
.qa { border: 1px solid var(--line); border-radius: var(--r-md); background: rgba(255,255,255,.022); overflow: hidden; transition: border-color var(--t-mid); }
.qa.is-open { border-color: var(--brand-line); background: rgba(44,123,255,.04); }
.qa__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; padding: var(--s-5); min-height: 60px;
  text-align: left; font-family: var(--f-head); font-size: 1rem; font-weight: 500; color: var(--text);
}
.qa__q:hover { color: var(--brand-3); }
.qa__q i {
  flex-shrink: 0; display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line-2); color: var(--text-2);
  transition: transform var(--t-mid) var(--e-out), background-color var(--t-mid), color var(--t-mid);
}
.qa__q i svg { width: 14px; height: 14px; }
.qa.is-open .qa__q i { transform: rotate(45deg); background: var(--brand); border-color: transparent; color: #fff; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--e-out); }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 var(--s-5) var(--s-5); font-size: .9375rem; max-width: 72ch; }

/* ============================================================
   CONTACT / CTA
   ============================================================ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(44,123,255,.22), transparent 65%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  padding: clamp(28px, 5vw, 56px);
}
.cta__grid { display: grid; gap: clamp(32px, 5vw, 56px); position: relative; z-index: 2; }
/* split late: below this the form column gets too narrow for two-up fields */
@media (min-width: 1060px) { .cta__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.cta h2 { margin-bottom: var(--s-4); }
.cta__lead { margin-bottom: var(--s-6); }
.cta__contacts { display: flex; flex-direction: column; gap: var(--s-3); }
.cta__contacts a, .cta__contacts div {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: .9375rem; color: var(--text-2);
  transition: color var(--t-fast);
}
.cta__contacts a:hover { color: var(--brand-3); }
.cta__contacts svg { width: 17px; height: 17px; color: var(--brand-3); flex-shrink: 0; }

/* The form sits in a column whose width does NOT track the viewport, so its
   layout is driven by container width instead of a media query. */
.form { display: grid; gap: var(--s-4); container-type: inline-size; container-name: form; }
.form__row { display: grid; gap: var(--s-4); }

@container form (min-width: 480px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
/* fallback for browsers without container queries */
@supports not (container-type: inline-size) {
  @media (min-width: 560px) and (max-width: 1059px) { .form__row { grid-template-columns: 1fr 1fr; } }
  @media (min-width: 1240px) { .form__row { grid-template-columns: 1fr 1fr; } }
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--text-2); }
.field label .req { color: var(--brand-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: rgba(5,7,12,.55);
  color: var(--text); font-size: .9375rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}
.field textarea { min-height: 118px; resize: vertical; font-family: inherit; line-height: 1.55; }
@container form (min-width: 480px) { .field textarea { min-height: 140px; } }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(44,123,255,.18);
  background: rgba(5,7,12,.8);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa7bd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
  padding-right: 40px;
}
.field select option { background: var(--surface-2); color: var(--text); }
.field__hint { font-size: .78rem; color: var(--text-3); }
.field__err { font-size: .78rem; color: #fca5a5; display: none; }
.field.has-err input, .field.has-err textarea, .field.has-err select { border-color: #ef4444; }
.field.has-err .field__err { display: block; }
.form__note { font-size: .8rem; color: var(--text-3); text-align: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: var(--s-8) var(--s-5); }
.foot__grid { display: grid; gap: var(--s-7); grid-template-columns: 1fr; }
@media (min-width: 760px)  { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .foot__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.foot__brand img { width: 240px; margin-bottom: var(--s-4); }
.foot__brand p { font-size: .9rem; max-width: 40ch; margin-bottom: var(--s-5); }
.foot h5 {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: var(--s-4); font-weight: 500;
}
.foot ul { display: flex; flex-direction: column; gap: 11px; }
.foot li a, .foot li span { font-size: .9rem; color: var(--text-2); transition: color var(--t-fast); }
.foot li a:hover { color: var(--brand-3); }
.socials { display: flex; gap: var(--s-2); }
.socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; border: 1px solid var(--line); color: var(--text-2);
  transition: all var(--t-mid) var(--e-out);
}
.socials a:hover { color: var(--brand-3); border-color: var(--brand-line); background: var(--brand-soft); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.foot__bar {
  margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  font-size: .82rem; color: var(--text-3);
}

/* Back to top */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(11,16,25,.85); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--sh-2);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--t-mid) var(--e-out);
}
.totop.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.totop:hover { border-color: var(--brand-line); color: var(--brand-3); }
.totop svg { width: 19px; height: 19px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 620ms var(--e-out), transform 620ms var(--e-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 70ms }
.reveal[data-d="2"] { transition-delay: 140ms }
.reveal[data-d="3"] { transition-delay: 210ms }
.reveal[data-d="4"] { transition-delay: 280ms }
.reveal[data-d="5"] { transition-delay: 350ms }

.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;
}
.skip {
  position: absolute; top: -60px; left: var(--s-5); z-index: 200;
  padding: 10px 18px; border-radius: var(--r-sm);
  background: var(--brand); color: #fff; font-weight: 600;
  transition: top var(--t-mid) var(--e-out);
}
.skip:focus { top: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__cta .btn--nav { display: none; }
  /* links carry `margin-left:auto` on desktop; once hidden, the CTA group
     must take over pushing the burger to the right edge */
  .nav__cta { margin-left: auto; }
  .nav__burger { display: flex; }
  .float-card--a { left: 0; top: 6%; }
  .float-card--b { right: 0; bottom: 6%; }
  .mock { transform: none; }
}
@media (max-width: 560px) {
  .float-card { display: none; }
  .hero__actions .btn { width: 100%; }
  .band__grid { gap: var(--s-5); }
}

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

/* ---------- Print ---------- */
@media print {
  .nav, .totop, .drawer, .progress, .bg-grid, .bg-glow { display: none !important; }
  body { background: #fff; color: #000; }
}
