/* ============================================================
   DEVUNI — devuni.agency
   Dark tech-noir · gold circuit-owl brand
   Clash Display (display) · Satoshi (body) · system mono (labels)
   ============================================================ */

:root {
  --bg: #07070a;
  --bg-2: #0b0b11;
  --surface: #101018;
  --surface-2: #14141d;
  --line: rgba(242, 239, 230, 0.08);
  --line-strong: rgba(242, 239, 230, 0.16);
  --text: #f4f1e8;
  --dim: #9a97a1;
  --dim-2: #8b8894;
  --gold: #ffc120;
  --gold-soft: #ffd35c;
  --gold-dim: rgba(255, 193, 32, 0.14);
  --blue: #2b7fff;
  --font-display: 'Clash Display', 'Avenir Next', sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1240px;
  --nav-h: 76px;
  --radius: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { padding: 0; list-style: none; }
::selection { background: var(--gold); color: #0a0800; }

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

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: #23222c; border-radius: 5px; }
  ::-webkit-scrollbar-thumb:hover { background: #35333f; }
}

/* ---------- film grain ---------- */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 2147483000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}
.gold, em.gold { color: var(--gold); font-style: normal; }
.meta-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}
.dot-sep { color: var(--gold); opacity: 0.7; padding-inline: 0.35em; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

/* masked line reveals (JS slides .mask-inner up) */
.mask { display: block; overflow: hidden; }
.mask-inner { display: inline-block; will-change: transform; }
html.anim .mask-inner { transform: translateY(115%); }

/* scroll reveals — initial state only when animations are on */
html.anim [data-reveal] { opacity: 0; transform: translateY(42px); }
html.anim [data-hero-fade] { opacity: 0; visibility: hidden; transform: translateY(24px); }
html.anim #heroOwl .ow-f { opacity: 0; visibility: hidden; }
html.anim #heroOwl .ow-s { visibility: hidden; }

/* anchor offset for native (non-Lenis) scrolling */
section[id] { scroll-margin-top: 84px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: var(--gold);
  color: #0a0800;
  box-shadow: 0 0 0 rgba(255, 193, 32, 0);
}
.btn-gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 8px 40px rgba(255, 193, 32, 0.28);
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-big { padding: 22px 40px; font-size: 18px; }
.btn-nav { padding: 11px 22px; font-size: 14.5px; }

/* ---------- progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 300;
  pointer-events: none;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background-color 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 7, 10, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 28px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-owl { width: 30px; height: 35px; color: var(--gold); }
.brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.16em;
}
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--dim);
  padding-block: 6px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: color 0.25s, background-size 0.35s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background-size: 100% 1.5px; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.burger {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  position: relative;
}
.burger span {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.6px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), top 0.35s var(--ease-out);
}
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 24px; }
.burger.open span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(7, 7, 10, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
@media (max-height: 520px) {
  .mobile-menu { justify-content: flex-start; padding: calc(var(--nav-h) + 16px) 22px 32px; gap: 22px; }
  .mobile-menu nav { gap: 2px; }
}
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 600;
  padding: 6px 18px;
  color: var(--text);
  transition: color 0.25s;
}
.mobile-menu nav a:hover { color: var(--gold); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--nav-h) + 40px);
  overflow: hidden;
}
#constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.9;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(560px 420px at 78% 30%, rgba(255, 193, 32, 0.09), transparent 65%),
    radial-gradient(700px 520px at 12% 85%, rgba(43, 127, 255, 0.06), transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  flex: 1;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 34px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.5);
}
html.anim .badge-dot { animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}
.hero-sub {
  max-width: 54ch;
  color: var(--dim);
  font-size: clamp(16px, 1.35vw, 19px);
  margin-bottom: 40px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.hero-proof {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.hero-owl {
  justify-self: center;
  width: min(100%, 430px);
  filter: drop-shadow(0 0 16px rgba(255, 193, 32, 0.35)) drop-shadow(0 0 64px rgba(255, 193, 32, 0.16));
}
#heroOwl { width: 100%; height: auto; }
.ow-s {
  fill: none;
  stroke: var(--gold);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ow-f { fill: var(--gold); }
.ow-pupils { transform-origin: 240px 198px; }

.hero-meta {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 26px;
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
  transition: color 0.25s;
}
.scroll-hint:hover { color: var(--gold); }
.scroll-hint svg { width: 15px; height: 15px; }
html.anim .scroll-hint svg { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ============================================================
   MARQUEES
   ============================================================ */
.clients {
  border-block: 1px solid var(--line);
  padding-block: 30px;
  background: var(--bg-2);
}
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
html.anim .marquee-track { animation: marquee 38s linear infinite; }
html.anim .marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.marquee-group {
  display: flex;
  align-items: center;
  gap: 44px;
  padding-inline: 22px;
}
.marquee-group span {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  color: var(--dim);
  white-space: nowrap;
}
.marquee-group i {
  font-style: normal;
  color: var(--gold);
  opacity: 0.55;
  font-size: 14px;
}
.tech { background: var(--bg); }
.tech .marquee-group span {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim-2);
}
.tech .marquee-group { gap: 36px; }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { padding-block: clamp(96px, 12vw, 170px); }
.section-head { margin-bottom: clamp(48px, 6vw, 84px); }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 20ch;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: translate 0.4s var(--ease-out), border-color 0.3s, background-color 0.3s;
  position: relative;
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px 200px at 85% -10%, var(--gold-dim), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.svc-card:hover { translate: 0 -5px; border-color: rgba(255, 193, 32, 0.35); }
.svc-card:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--dim-2);
  padding-top: 6px;
}
.svc-icon {
  width: 44px; height: 44px;
  fill: none;
  stroke: var(--dim);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s, transform 0.4s var(--ease-out);
}
.svc-card:hover .svc-icon { stroke: var(--gold); transform: translateY(-2px) scale(1.04); }
.svc-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.005em;
}
.svc-card p { color: var(--dim); font-size: 15.5px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ============================================================
   WORK
   ============================================================ */
.work { background: var(--bg-2); border-block: 1px solid var(--line); }
.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.work-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: translate 0.45s var(--ease-out), border-color 0.3s;
}
.work-card:hover { translate: 0 -6px; border-color: rgba(255, 193, 32, 0.3); }
.work-featured { grid-column: 1 / -1; }
.work-link { display: block; height: 100%; }
.work-featured .work-link,
.work-featured > .work-cover + .work-body { display: grid; }
.work-featured .work-link {
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
}
.work-cover {
  background:
    linear-gradient(rgba(242, 239, 230, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 230, 0.035) 1px, transparent 1px),
    #0c0c13;
  background-size: 34px 34px, 34px 34px, auto;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
}
.work-featured .work-cover { aspect-ratio: auto; min-height: 320px; }
.work-cover svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease-out); }
.work-card:hover .work-cover svg { transform: scale(1.035); }
.cover-mono text { font-family: var(--font-mono); letter-spacing: 0.08em; }

.work-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 12px; }
.work-featured .work-body { justify-content: center; padding: 40px 44px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.work-tags span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border-radius: 999px;
  padding: 5px 11px;
}
.work-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  letter-spacing: 0.005em;
}
.work-featured h3 { font-size: clamp(24px, 2.4vw, 32px); }
.work-card .ext {
  display: inline-block;
  color: var(--gold);
  transition: transform 0.3s var(--ease-out);
}
.work-card:hover .ext { transform: translate(3px, -3px); }
.work-body p { color: var(--dim); font-size: 15.5px; }
.work-result {
  color: var(--text) !important;
  font-weight: 500;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  margin-top: 4px;
}
.work-more {
  margin-top: 34px;
  color: var(--dim-2);
  font-size: 15px;
  max-width: 70ch;
}

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding-block: clamp(56px, 7vw, 90px);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 68px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ============================================================
   PROCESS — sticky stack
   ============================================================ */
.process { background: var(--bg); }
.process-stack { display: flex; flex-direction: column; gap: 20px; }
.p-card {
  position: sticky;
  top: calc(var(--nav-h) + 24px + var(--i) * 30px);
  display: flex;
  gap: 36px;
  align-items: flex-start;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 48px);
  min-height: 190px;
  box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.45);
}
.p-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--gold);
  flex-shrink: 0;
}
.p-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.2vw, 27px);
  margin-bottom: 8px;
}
.p-card p { color: var(--dim); max-width: 62ch; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-2); border-top: 1px solid var(--line); }
.t-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.t-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 40px 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}
.t-card::before {
  content: '“';
  position: absolute;
  top: -14px;
  right: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
}
.t-stars { color: var(--gold); letter-spacing: 5px; font-size: 15px; }
.t-card blockquote {
  color: var(--text);
  font-size: 16.5px;
  line-height: 1.65;
  flex: 1;
}
.t-card figcaption { display: flex; align-items: center; gap: 14px; }
.t-card figcaption img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line-strong);
}
.t-card figcaption strong { display: block; font-size: 16px; }
.t-card figcaption span { color: var(--dim-2); font-size: 13.5px; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  min-height: 88vh;
  min-height: 88svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(700px 480px at 50% 110%, rgba(255, 193, 32, 0.1), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 90px;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 11.5vw, 150px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 30px;
}
.cta-sub { color: var(--dim); font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 44px; }
.cta-title .mask { padding-bottom: 0.05em; margin-bottom: -0.05em; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.cta-mail {
  color: var(--dim);
  font-size: 16px;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: color 0.25s, background-size 0.35s var(--ease-out);
  padding-bottom: 3px;
}
.cta-mail:hover { color: var(--gold); background-size: 100% 1.5px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-block: 64px 44px;
}
.footer-brand { display: flex; gap: 16px; align-items: flex-start; }
.footer-brand .brand-owl { width: 34px; height: 40px; }
.footer-brand strong {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p { color: var(--dim-2); font-size: 14.5px; line-height: 1.55; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-contact a {
  color: var(--dim);
  font-size: 15px;
  width: fit-content;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 0% 1.5px;
  background-position: 0 100%;
  transition: color 0.25s, background-size 0.35s var(--ease-out);
  padding-bottom: 2px;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--text); background-size: 100% 1.5px; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  color: var(--dim-2);
  font-size: 13.5px;
}
.to-top { color: var(--dim); transition: color 0.25s; }
.to-top:hover { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-owl { width: min(58vw, 300px); order: -1; margin-top: 10px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .work-grid { grid-template-columns: 1fr; }
  .work-featured .work-link { grid-template-columns: 1fr; }
  .work-featured .work-cover { min-height: 230px; }
  .t-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 20px; }
  .p-card { flex-direction: column; gap: 14px; }
  .p-card { top: calc(var(--nav-h) + 16px + var(--i) * 22px); }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .container { padding-inline: 22px; }
  .marquee-group span { font-size: 21px; }
  .btn-nav { display: none; }
}

@media (max-height: 480px) and (max-width: 960px) {
  .hero-owl { width: min(36vh, 300px); }
}

/* ============================================================
   REDUCED MOTION — kill everything
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html.anim .mask-inner { transform: none; }
  html.anim [data-reveal] { opacity: 1; transform: none; }
  html.anim [data-hero-fade] { opacity: 1; visibility: visible; transform: none; }
  html.anim #heroOwl .ow-f { opacity: 1; visibility: visible; }
  html.anim #heroOwl .ow-s { visibility: visible; }
  html.anim .marquee-track { animation: none; }
}
