/* ===== Vira — design tokens ===== */
:root{
  --bg: #0a0c11;
  --bg-panel: #12151e;
  --bg-panel-2: #171b26;
  --text: #edeef2;
  --muted: #8d93a3;
  --line: #262b3a;
  --line-bright: rgba(255,255,255,0.14);
  --accent-1: #7c6cf0;   /* violet */
  --accent-2: #00e0c6;   /* teal */
  --accent-3: #ff6b57;   /* coral, used sparingly for action markers */
  --grad-1: var(--accent-1);   /* button-gradient stops — kept vivid independent of text-accent tuning */
  --grad-2: var(--accent-2);
  --gradient: linear-gradient(120deg, var(--grad-1), var(--grad-2));
  --header-bg: rgba(10,12,17,0.84);
  --radius: 8px;
  --radius-frame: 4px;
  --maxw: 1120px;
  --font-display: 'IBM Plex Mono', monospace;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

/* ===== Light theme override ===== */
:root[data-theme="light"]{
  --bg: #f3f4f7;
  --bg-panel: #ffffff;
  --bg-panel-2: #eceef3;
  --text: #13151c;
  --muted: #5b6170;
  --line: #dde0e6;
  --line-bright: rgba(10,12,17,0.16);
  --accent-1: #5b43e0;
  --accent-2: #04897a;
  --accent-3: #d14a37;
  --grad-1: #6a4ee8;   /* kept vivid for buttons — text-accent colors above are darkened for contrast, this isn't */
  --grad-2: #00b89f;
  --header-bg: rgba(243,244,247,0.86);
}

:root[data-theme="light"] .btn-ghost{ border-color: var(--line-bright); }
:root[data-theme="light"] .btn-primary{ box-shadow: 0 3px 12px rgba(45,30,110,0.18); }

body, header.site-header{
  transition: background-color .2s ease, color .2s ease;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1{ font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 500; }
h2{ font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3{ font-size: 1.1rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--text); }
p.lede{ color: var(--muted); font-size: 1.08rem; max-width: 48ch; }

a{ color: inherit; }

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Nav ===== */
header.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.02em;
}
.logo-mark{
  width: 24px; height: 24px;
  display: block;
}
nav.main-nav{ display: flex; gap: 32px; }
nav.main-nav a{
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  transition: color .18s ease;
}
nav.main-nav a:hover, nav.main-nav a.active{ color: var(--text); }
nav.main-nav a.active{ color: var(--text); }

.lang-switch{
  display: flex;
  gap: 4px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.lang-switch a{
  text-decoration: none;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 6px;
  transition: color .18s ease, background .18s ease;
}
.lang-switch a.active{ color: var(--text); background: var(--bg-panel); }
.lang-switch a:hover{ color: var(--text); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
  margin-left: 4px;
}
.nav-toggle svg{ width: 24px; height: 24px; display: block; }

.theme-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  margin-left: 6px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.theme-toggle:hover{ color: var(--text); border-color: var(--line-bright); }
.theme-toggle svg{ width: 15px; height: 15px; display: block; }
.theme-toggle .icon-sun{ display: none; }
.theme-toggle .icon-moon{ display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun{ display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon{ display: none; }

.mobile-theme-toggle{
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 14px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  width: 100%;
  justify-content: center;
}
.mobile-theme-toggle svg{ width: 15px; height: 15px; display: block; }
.mobile-theme-toggle .icon-sun{ display: none; }
.mobile-theme-toggle .icon-moon{ display: block; }
:root[data-theme="light"] .mobile-theme-toggle .icon-sun{ display: block; }
:root[data-theme="light"] .mobile-theme-toggle .icon-moon{ display: none; }

.mobile-menu{
  display: none;
  flex-direction: column;
  padding: 4px 32px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.mobile-menu a.mobile-link{
  padding: 14px 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a.mobile-link.active{ color: var(--text); }
.mobile-menu .mobile-lang-switch{ margin: 16px 0 4px; }
.mobile-menu .btn-primary{
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
header.site-header.nav-open .mobile-menu{ display: flex; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.btn-primary{
  background: var(--gradient);
  border: none;
  color: #0a0c11;
  font-weight: 600;
}
.btn-primary:hover{ transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost:hover{ border-color: var(--accent-2); color: var(--accent-2); }

/* ===== Crop-mark corner detail — reused on frames that represent a "selected" or measured panel ===== */
.crop-corners{ position: relative; }
.crop-corners::before, .crop-corners::after{
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent-2);
  opacity: 0.55;
  pointer-events: none;
}
.crop-corners::before{ top: -1px; left: -1px; border-right: none; border-bottom: none; }
.crop-corners::after{ bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* ===== Hero ===== */
.hero{
  position: relative;
  padding: 88px 0 108px;
  overflow: hidden;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow-code{
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-2);
  margin-bottom: 18px;
  display: inline-block;
}
.eyebrow-code::after{
  content: '_';
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity: 0; } }

.hero h1 .highlight{
  color: var(--accent-2);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: rgba(0,224,198,0.55);
  text-underline-offset: 6px;
  text-decoration-thickness: 1.5px;
}
.hero-cta{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }

/* ----- Hero visual: a literal browser frame being inspected ----- */
.hero-visual{ display: flex; flex-direction: column; gap: 14px; }
.browser-frame{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px 10px var(--radius-frame) var(--radius-frame);
  overflow: hidden;
}
.browser-frame__bar{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--line);
}
.browser-frame__dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-bright);
}
.browser-frame__url{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 10px;
  flex: 1;
  margin-left: 4px;
}
.browser-frame__body{
  position: relative;
  padding: 28px 24px 32px;
}

/* Wireframe blocks inside the inspected page */
.wf-nav{ display: flex; gap: 8px; margin-bottom: 22px; }
.wf-pill{ height: 7px; width: 34px; background: var(--line-bright); border-radius: 4px; }
.wf-pill.wide{ width: 54px; }
.wf-heading{ height: 14px; width: 70%; background: var(--line-bright); border-radius: 4px; margin-bottom: 10px; }
.wf-heading.short{ width: 45%; }
.wf-text{ height: 7px; background: var(--line); border-radius: 4px; margin-bottom: 8px; }
.wf-text.w1{ width: 92%; } .wf-text.w2{ width: 78%; } .wf-text.w3{ width: 55%; }
.wf-cta{
  display: inline-block;
  margin-top: 14px;
  height: 26px; width: 92px;
  border-radius: 999px;
  background: var(--gradient);
  position: relative;
}
.wf-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.wf-tile{ aspect-ratio: 1.3; background: var(--bg-panel-2); border: 1px solid var(--line); border-radius: 6px; }

/* dimension / redline annotations */
.dim-line{
  position: absolute;
  border-top: 1px dashed rgba(0,224,198,0.55);
}
.dim-label{
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* click / cursor marker — the one orchestrated hero animation */
.cursor-mark{
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-3);
  opacity: 0;
  animation: cursor-in .5s ease forwards 1.1s;
}
.cursor-mark::before{
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-3);
  opacity: 0;
  animation: ping 1.4s ease-out infinite 1.5s;
}
@keyframes cursor-in{ to{ opacity: 1; } }
@keyframes ping{
  0%{ transform: scale(0.5); opacity: 0.7; }
  80%{ transform: scale(2.1); opacity: 0; }
  100%{ opacity: 0; }
}
.dim-reveal{
  opacity: 0;
  animation: dim-in .5s ease forwards;
}
@keyframes dim-in{ to{ opacity: 1; } }

@media (prefers-reduced-motion: reduce){
  .eyebrow-code::after{ animation: none; }
  .cursor-mark{ animation: none; opacity: 1; }
  .cursor-mark::before{ animation: none; opacity: 0; }
  .dim-reveal{ animation: none; opacity: 1; }
  .work-card__shot{ transition: none; }
}

.hero-caption{
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding-left: 4px;
}
.hero-caption .ok{ color: var(--accent-2); }

/* ===== Sections ===== */
section{ padding: 84px 0; border-top: 1px solid var(--line); }
.section-head{ max-width: 640px; margin-bottom: 44px; }

/* Services — browser-chrome cards, grounded in the literal product being built */
.service-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.service-card{
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px 10px var(--radius-frame) var(--radius-frame);
  overflow: hidden;
  transition: border-color .2s ease;
}
.service-card:hover{ border-color: var(--line-bright); }
.service-card__bar{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--line);
}
.service-card__dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--line-bright); }
.service-card__path{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 4px;
}
.service-card__body{ padding: 24px 22px 26px; }
.service-card__icon{ color: var(--accent-2); margin-bottom: 16px; }
.service-card__icon svg{ width: 26px; height: 26px; display: block; }
.service-card h3{ margin-bottom: 8px; }
.service-card p{ color: var(--muted); font-size: 0.96rem; margin-bottom: 0; }

/* Work grid — browser-chrome preview cards; hover scrolls the full-page shot */
.work-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.work-card{
  display: block;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 10px 10px var(--radius-frame) var(--radius-frame);
  overflow: hidden;
  transition: border-color .2s ease;
}
.work-card:hover{ border-color: var(--line-bright); }
.work-card__bar{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--bg-panel-2);
  border-bottom: 1px solid var(--line);
}
.work-card__dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--line-bright); }
.work-card__path{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 4px;
}
.work-card__frame{
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-panel-2);
}
.work-card__shot{
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 100% auto;
  transition: background-position 5s cubic-bezier(.2,.6,.2,1);
}
.work-card:hover .work-card__shot{ background-position: bottom center; }
.work-card__body{ padding: 18px 20px 22px; }
.work-card h3{ margin-bottom: 4px; font-size: 1.05rem; }
.work-card p{ color: var(--muted); font-size: 0.88rem; margin: 0; }

/* Full-width service detail rows (used on services.html) */
.service-row{
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child{ border-bottom: 1px solid var(--line); }
.service-row h3{ font-size: 1.35rem; margin-bottom: 10px; }
.service-row .service-desc{ color: var(--muted); max-width: 70ch; }

/* Stats strip — read like an inspector panel, not gradient-text */
.stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.stat-num{
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 600;
  color: var(--accent-2);
}
.stat-label{ color: var(--muted); font-size: 0.93rem; }

/* Process — a ruler / timeline rather than a card grid */
.process{
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 22px;
}
.process::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--line);
}
.step{ position: relative; padding-top: 18px; }
.step::before{
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 1px; height: 14px;
  background: var(--accent-2);
}
.step-index{
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-bottom: 10px;
  display: block;
}
.step h3{ font-size: 1.02rem; margin-bottom: 6px; }

/* Team / about grid */
.value-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px 48px;
}
.value-item{ border-top: 1px solid var(--line); padding-top: 18px; }
.value-item h3{ margin-bottom: 8px; }
.value-item p{ color: var(--muted); margin: 0; }

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.field{ margin-bottom: 20px; }
.field label{
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}
.field input, .field textarea{
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color .18s ease;
}
.field input:focus, .field textarea:focus{
  outline: none;
  border-color: var(--accent-2);
}
.field textarea{ resize: vertical; min-height: 120px; }
.contact-info-item{ margin-bottom: 28px; }
.contact-info-item .k{
  font-family: var(--font-mono);
  color: var(--accent-2);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 6px;
}
.contact-info-item .v{ font-size: 1.05rem; }
.contact-info-item .v a{ text-decoration: none; }
.contact-info-item .v a:hover{ color: var(--accent-2); }

.form-status{
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

/* CTA band — crop-marked frame */
.cta-band{
  border-radius: var(--radius-frame);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: 52px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band h2{ margin: 0; max-width: 20ch; }
.cta-band__text{ max-width: 560px; }
.cta-band__text h2{ max-width: none; }
.cta-band p{ margin: 12px 0 0; color: var(--muted); }
.section-head .section-sub{ margin: 12px 0 0; color: var(--muted); }
.why-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-item{ background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-frame); padding: 28px; }
.why-item h3{ font-family: var(--font-mono); font-size: 1.05rem; margin: 0 0 10px; }
.why-item p{ margin: 0; color: var(--muted); }

/* Footer */
footer{
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 0.88rem;
  font-family: var(--font-mono);
}
.footer-inner{ flex-wrap: wrap; row-gap: 14px; }
.footer-inner > span{ white-space: nowrap; }
.footer-inner > div{ gap: 18px !important; }
.footer-inner a{ text-decoration: none; color: var(--muted); }
.footer-inner a:hover{ color: var(--text); }

/* keyboard focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

/* ===== Responsive ===== */
@media (max-width: 860px){
  .nav-inner{ padding: 16px 20px; }
  nav.main-nav{ display: none; }
  .nav-inner > .lang-switch{ display: none; }
  .nav-inner > .btn-primary{ display: none; }
  .nav-toggle{ display: flex; align-items: center; justify-content: center; }
  .container{ padding: 0 20px; }
  .hero-grid{ grid-template-columns: 1fr; }
  .hero-visual{ order: -1; }
  .service-grid{ grid-template-columns: 1fr; }
  .work-grid{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; gap: 24px; }
  .process{ grid-template-columns: 1fr; gap: 20px; }
  .process::before{ display: none; }
  .step{ padding-top: 0; padding-left: 18px; border-left: 1px solid var(--line); }
  .step::before{ top: 0; left: -1px; width: 14px; height: 1px; }
  .value-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; gap: 40px; }
  .cta-band{ flex-direction: column; align-items: flex-start; padding: 32px; }
  .why-grid{ grid-template-columns: 1fr; }
  .footer-inner{ flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ===== Legal pages (privacy, terms) ===== */
.legal h2{
  font-size: 1.15rem;
  margin: 44px 0 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal h2:first-child{ margin-top: 0; padding-top: 0; border-top: none; }
.legal p, .legal li{ color: var(--muted); max-width: 65ch; }
.legal ul{ margin: 0 0 1em; padding-left: 1.2em; }
.legal li{ margin-bottom: 0.5em; }
.legal li::marker{ color: var(--accent-2); }
.legal strong{ color: var(--text); font-weight: 600; }
.legal a{ color: var(--accent-2); }

/* ===== Cookie consent banner ===== */
.consent{
  position: fixed;
  left: 16px; bottom: 16px;
  max-width: 460px;
  background: var(--bg-panel);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  padding: 18px 20px;
  z-index: 200;
  box-shadow: 0 10px 40px rgba(0,0,0,0.28);
}
.consent p{ margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.consent p a{ color: var(--accent-2); }
.consent-actions{ display: flex; gap: 10px; flex-wrap: wrap; }
.consent .btn{ padding: 9px 18px; font-size: 0.88rem; cursor: pointer; font-family: inherit; }
.consent .btn-ghost{ background: none; }
@media (max-width: 520px){ .consent{ left: 10px; right: 10px; bottom: 10px; max-width: none; } }

/* ===== Service groups ===== */
.service-grid--3{ grid-template-columns: repeat(3, 1fr); }
.service-card__list{
  list-style: none; margin: 18px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.85rem;
}
.service-card__list li{ margin-bottom: 6px; color: var(--text); }
.service-card__list li::before{ content: "→ "; color: var(--accent-2); }

.service-group{
  display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 56px;
  padding: 52px 0; border-top: 1px solid var(--line);
}
.service-group:first-child{ border-top: none; padding-top: 0; }
.service-group__path{ font-family: var(--font-mono); font-size: 0.82rem; color: var(--accent-2); }
.service-group__head h2{ font-size: 1.8rem; margin: 10px 0 14px; }
.service-group__head .lede{ margin: 0; max-width: 34ch; }
.service-item + .service-item{ border-top: 1px solid var(--line); margin-top: 26px; padding-top: 26px; }
.service-item h3{ font-size: 1.2rem; margin-bottom: 10px; }
.service-item p{ color: var(--muted); max-width: 62ch; margin: 0; }
@media (max-width: 900px){
  .service-grid--3{ grid-template-columns: 1fr; }
  .service-group{ grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
}

/* ===== Scroll animations ===== */
[data-reveal]{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal="left"]{ transform: translateX(-26px); }
[data-reveal].in{ opacity: 1; transform: none; }
@media (max-width: 700px){
  [data-reveal]{ transform: translateY(16px); }
}

.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  z-index: 1000;
  background: var(--gradient);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}
header.site-header{ transition: box-shadow .3s ease; }
header.site-header.is-scrolled{ box-shadow: 0 8px 28px rgba(0,0,0,0.28); }
:root[data-theme="light"] header.site-header.is-scrolled{ box-shadow: 0 8px 24px rgba(20,24,40,0.08); }

.service-card:not([data-reveal]), .why-item:not([data-reveal]), .value-item:not([data-reveal]), .work-card:not([data-reveal]){
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card:hover, .why-item:hover, .value-item:hover{
  transform: translateY(-4px);
  border-color: var(--line-bright);
}

@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform: none; transition: none; }
  .scroll-progress{ display: none; }
  .service-card:hover, .why-item:hover, .value-item:hover{ transform: none; }
}

/* ===== Animated background ===== */
.bg-fx{
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  --sy: 0;
}
.bg-grid{
  position: absolute;
  inset: -60px 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 85%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, #000 25%, transparent 85%);
  transform: translate3d(0, calc(var(--sy) * -0.06px), 0);
}
.bg-orb{
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 50%;
  will-change: transform, translate;
}
.bg-orb--a{
  top: -260px; right: -200px;
  background: radial-gradient(circle, rgba(124,108,240,0.30), transparent 66%);
  transform: translate3d(0, calc(var(--sy) * -0.12px), 0);
  animation: orb-a 26s ease-in-out infinite alternate;
}
.bg-orb--b{
  bottom: -300px; left: -240px;
  background: radial-gradient(circle, rgba(0,224,198,0.20), transparent 66%);
  transform: translate3d(0, calc(var(--sy) * -0.2px), 0);
  animation: orb-b 32s ease-in-out infinite alternate;
}
.bg-spot{
  position: absolute;
  left: 0; top: 0;
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,198,0.09), transparent 65%);
  opacity: 0;
  transition: opacity .6s ease;
  will-change: transform;
}
.bg-spot.on{ opacity: 1; }
@keyframes orb-a{ from{ translate: 0 0; } to{ translate: -140px 110px; } }
@keyframes orb-b{ from{ translate: 0 0; } to{ translate: 160px -90px; } }

:root[data-theme="light"] .bg-grid{
  background-image:
    linear-gradient(rgba(10,12,17,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,12,17,0.045) 1px, transparent 1px);
}
:root[data-theme="light"] .bg-orb--a{ background: radial-gradient(circle, rgba(106,78,232,0.17), transparent 66%); }
:root[data-theme="light"] .bg-orb--b{ background: radial-gradient(circle, rgba(0,184,159,0.15), transparent 66%); }
:root[data-theme="light"] .bg-spot{ background: radial-gradient(circle, rgba(106,78,232,0.08), transparent 65%); }

@media (max-width: 700px){
  .bg-orb{ width: 460px; height: 460px; }
  .bg-grid{ background-size: 36px 36px; }
}
@media (prefers-reduced-motion: reduce){
  .bg-orb{ animation: none; }
  .bg-grid, .bg-orb--a, .bg-orb--b{ transform: none; }
  .bg-spot{ display: none; }
}
@media print{ .bg-fx{ display: none; } }
