/* ═══════════════════════════════════════════════════════════
   אתניקס מערכות — עיצוב פרמיום 3.0
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --bg: #FCFCFB;
  --surface: #F3F3F1;
  --surface-2: #ECECE9;
  --violet: #000000;
  --violet-lo: rgba(0, 0, 0, 0.12);
  --cyan: #4B4B45;
  --green: #1D1D1A;
  --red: #71716C;
  --yellow: #5F5F59;
  --white: #000000;
  --text: #0B0B0A;
  --muted: #75756F;
  --subtle: #E3E3E0;
  --border: rgba(0, 0, 0, 0.07);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(0, 0, .2, 1);
  --r-card: 1.25rem;
  --r-btn: .625rem;
  --r-sm: .375rem;
  /* 8pt grid */
  --s1: .5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;
}

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

html {
  direction: rtl;
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 4px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: var(--subtle);
  border-radius: 2px
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px
}

img {
  display: block;
  max-width: 100%;
  height: auto
}

a {
  text-decoration: none;
  color: inherit
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none
}

/* ── Background layers ── */
.canvas-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 60% at 60% -5%, rgba(0, 0, 0, .08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 5% 90%, rgba(75, 75, 69, .05) 0%, transparent 55%);
}

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

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3)
}

.container-sm {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s3)
}

.sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 30%, var(--border) 70%, transparent);
  position: relative;
  z-index: 1
}

.gradient-text {
  background: linear-gradient(120deg, #000000 0%, #2B2B27 50%, #5E5E55 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-v {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(0, 0, 0, .025);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .9rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: rgba(0, 0, 0, .1);
  border: 1px solid rgba(0, 0, 0, .25);
  color: #2B2B27;
}

.badge-cyan {
  background: rgba(75, 75, 69, .1);
  border-color: rgba(75, 75, 69, .25);
  color: #5E5E55
}

.badge-green {
  background: rgba(29, 29, 26, .1);
  border-color: rgba(29, 29, 26, .25);
  color: #363631
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 5px currentColor;
  animation: bdot 2s infinite;
}

@keyframes bdot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: var(--r-btn);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .3s var(--spring), box-shadow .25s var(--ease), background .2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  color: #fff;
  box-shadow: 0 0 24px rgba(0, 0, 0, .3);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* Keep the label above the hover overlay */
.btn-primary > * { position: relative; z-index: 1; }

/* Hover overlay sits BEHIND the label (z-index:-1 + isolation) so text never vanishes */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, #383833, #2B2B27);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0, 0, 0, .5)
}

.btn-primary:hover::after {
  opacity: 1
}

.btn-primary:active {
  transform: translateY(0)
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0, 0, 0, .1);
}

.btn-ghost:hover {
  border-color: rgba(0, 0, 0, .4);
  color: #2B2B27;
  background: rgba(0, 0, 0, .06);
  transform: translateY(-1px)
}

.btn-sm {
  padding: .5rem 1.25rem;
  font-size: .875rem
}

/* ── Navbar ── */
.nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(252, 252, 251, .85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 0, 0, .04);
  transition: background .3s var(--ease);
}

.nav.scrolled {
  background: rgba(252, 252, 251, .97);
  border-bottom-color: rgba(0, 0, 0, .07)
}

.nav-inner {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--s4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  cursor: pointer;
  text-decoration: none
}

.nav-logo-mark {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: .05rem
}

.nav-logo-name {
  background: linear-gradient(135deg, #000000, #2B2B27);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem
}

.nav-link {
  padding: .5rem .875rem;
  border-radius: var(--r-btn);
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s, border-color .2s, background .2s;
}

.nav-link:hover,
.nav-link.active {
  color: #2B2B27;
  border-color: rgba(0, 0, 0, .2);
  background: rgba(0, 0, 0, .07)
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  background: none;
  border: none;
  cursor: pointer
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #65655E;
  border-radius: 2px;
  transition: all .3s var(--spring)
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(252, 252, 251, .98);
  backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-menu.open {
  display: flex
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  color: #ADADA4;
  font-size: 1.5rem;
  transition: color .2s
}

.mobile-menu-close:hover {
  color: var(--text)
}

.mobile-nav-link {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color .2s
}

.mobile-nav-link:hover {
  color: #2B2B27
}

/* ── Pages ── */
.page {
  display: none;
  position: relative;
  z-index: 1;
  padding-top: 68px
}

.page.active {
  display: block;
  animation: pgin .3s var(--ease)
}

@keyframes pgin {
  from {
    opacity: 0;
    transform: translateY(5px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.page-home {
  padding-top: 0
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .7s var(--spring)
}

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

.stagger>*:nth-child(1) {
  transition-delay: 0ms
}

.stagger>*:nth-child(2) {
  transition-delay: 60ms
}

.stagger>*:nth-child(3) {
  transition-delay: 120ms
}

.stagger>*:nth-child(4) {
  transition-delay: 180ms
}

.stagger>*:nth-child(5) {
  transition-delay: 240ms
}

.stagger>*:nth-child(6) {
  transition-delay: 300ms
}

/* The nth-child delays above are for the one-time entrance reveal only.
   Without this reset they persist forever via transition-delay and silently
   tax every later transition on the same element (hover lift, glow, icon
   tilt) — cards further down the stagger order (quotes, whatsapp, ...) would
   feel sluggish to hover even though the entrance animation is long over. */
.stagger>*.visible {
  transition-delay: 0ms
}

/* ══════════════════════════════════════════════════════
   HERO — Split layout
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--s6) var(--s4) var(--s6) 0;
  padding-top: calc(68px + var(--s6));
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: var(--s3)
}

.hero-headline {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: var(--s3);
}

.hero-tagline {
  display: block;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--muted);
  margin-top: .4em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  max-width: 350px;
  line-height: 1.75;
  margin-bottom: var(--s4);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center
}

.hero-social {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-top: 1.75rem;
}

.hero-social-label {
  font-size: .8rem;
  color: var(--muted);
}

/* Circuit decoration behind headline */
.hero-circuit {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .07;
}

.circuit-path {
  fill: none;
  stroke: var(--violet);
  stroke-width: 1;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  animation: draw-circuit 4s var(--ease) 0.5s forwards;
}

.circuit-dot {
  fill: var(--violet);
  opacity: 0;
  animation: dot-appear .3s ease forwards;
}

@keyframes draw-circuit {
  to {
    stroke-dashoffset: 0
  }
}

@keyframes dot-appear {
  to {
    opacity: 1
  }
}

/* Hero photo side */
.hero-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 0, 0, .08), rgba(75, 75, 69, .04));
  perspective: 1200px;
  perspective-origin: 50% 45%;
}

/* Hero logo sits in the 3D space; JS applies a cursor-driven tilt (canMotion-gated) to
   .hero-logo-wrap. No CSS transition here — the JS rAF lerp does the smoothing every frame. */

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.88) contrast(1.05);
  transition: transform 6s ease;
}

.hero:hover .hero-photo {
  transform: scale(1.02)
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg) 0%, transparent 25%),
    linear-gradient(to top, var(--bg) 0%, transparent 40%);
}

/* Founder badge over photo */
.hero-photo-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  left: 2rem;
  padding: 1rem 1.25rem;
  background: rgba(252, 252, 251, .85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: var(--r-card);
}

.hpb-name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem
}

.hpb-role {
  font-size: .75rem;
  color: var(--muted)
}

.hpb-links {
  display: flex;
  gap: .5rem;
  margin-top: .625rem
}

.hpb-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity .2s;
}

.hpb-link:hover {
  opacity: .75
}

.hpb-link-li {
  background: rgba(75, 75, 69, .1);
  border: 1px solid rgba(75, 75, 69, .2);
  color: #5E5E55
}

.hpb-link-ig {
  background: rgba(0, 0, 0, .1);
  border: 1px solid rgba(0, 0, 0, .2);
  color: #2B2B27
}

/* ── Stats bar ── */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(243, 243, 241, .5);
  backdrop-filter: blur(12px);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--s3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: var(--s3) var(--s2);
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none
}

.stat-item:first-child {
  border-right: 1px solid var(--border)
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
  display: block;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  direction: ltr;
}

.stat-label {
  font-size: .8rem;
  color: #ADADA4;
  margin-top: .3rem;
  line-height: 1.4
}

/* ══════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════ */
.section {
  padding: var(--s6) 0;
  position: relative;
  z-index: 1
}

.section-sm {
  padding: var(--s5) 0;
  position: relative;
  z-index: 1
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--s5)
}

.section-header h1,
.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: .75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75
}

/* ══════════════════════════════════════════════════════
   ABOUT / VISION — magazine editorial
══════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: start
}

.about-lead {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: var(--s3);
}

.about-body {
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: var(--s2)
}

.about-body strong {
  color: var(--text);
  font-weight: 600
}

.problems-col {
  display: flex;
  flex-direction: column;
  gap: var(--s3)
}

.problem-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start
}

.prob-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(113, 113, 108, .1);
  border: 1px solid rgba(113, 113, 108, .2);
}

.prob-title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .2rem
}

.prob-body {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6
}

.solution-box {
  margin-top: var(--s3);
  padding: 1.25rem var(--s3);
  border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(0, 0, 0, .07), rgba(75, 75, 69, .04));
  border: 1px solid rgba(0, 0, 0, .15);
}

.solution-box p {
  font-size: .9375rem;
  color: #65655E;
  line-height: 1.75
}

/* ══════════════════════════════════════════════════════
   FOUNDER — magazine spread
══════════════════════════════════════════════════════ */
.founder-wrap {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: var(--s4);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.founder-photo-col {
  position: relative
}

.founder-photo-frame {
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}

.founder-photo-frame img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: brightness(.9);
}

.founder-photo-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(252, 252, 251, .9) 0%, transparent 50%);
}

.founder-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  z-index: 1
}

.fo-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .2rem
}

.fo-role {
  font-size: .8rem;
  color: #65655E
}

.fo-social {
  display: flex;
  gap: .5rem;
  margin-top: .75rem
}

.fo-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: opacity .2s;
}

.fo-link:hover {
  opacity: .75
}

.fo-link-ig {
  background: linear-gradient(135deg, #FFDC80 0%, #F77737 25%, #F56040 50%, #C13584 70%, #405DE6 100%);
  border: 1px solid transparent;
  color: #fff;
}

.fo-link-li {
  background: #0A66C2;
  border: 1px solid transparent;
  color: #fff;
}

.fo-certs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: var(--s3);
}

.cert-pill {
  padding: .75rem 1rem;
  border-radius: .875rem;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, .02);
}

.cert-top-bar {
  height: 2px;
  border-radius: 1px;
  margin-bottom: .6rem
}

.cert-label {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .15rem
}

.cert-sub {
  font-size: .7rem;
  color: var(--muted)
}

.founder-content {
  display: flex;
  flex-direction: column;
  gap: var(--s3)
}

.founder-quote {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  line-height: 1.35;
  color: var(--white);
  padding: 1.75rem var(--s3);
  border-right: 3px solid var(--violet);
  background: rgba(0, 0, 0, .05);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  font-style: italic;
}

.founder-bio {
  color: var(--muted);
  line-height: 1.85
}

.founder-bio p {
  margin-bottom: var(--s2)
}

.founder-bio strong {
  color: var(--text);
  font-weight: 600
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .5rem
}

.founder-tag {
  font-size: .8rem;
  padding: .3rem .75rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, .04);
  border: 1px solid var(--border);
  color: #ADADA4;
}

.certs-note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: var(--s2);
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .02);
  border: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════
   PROCESS — vertical timeline
══════════════════════════════════════════════════════ */
.process-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.process-list::before {
  content: '';
  position: absolute;
  right: 2.25rem;
  top: 3rem;
  bottom: 3rem;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--violet), transparent);
}

.process-item {
  display: flex;
  gap: var(--s3);
  position: relative
}

.process-num {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 2px solid rgba(0, 0, 0, .3);
  color: #2B2B27;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.process-item:hover .process-num {
  border-color: var(--violet);
  box-shadow: 0 0 24px rgba(0, 0, 0, .3)
}

.process-body {
  padding: 1rem 0 var(--s4)
}

.process-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem
}

.process-desc {
  color: var(--muted);
  line-height: 1.75;
  font-size: .9375rem
}

/* ══════════════════════════════════════════════════════
   SERVICES — bento grid
══════════════════════════════════════════════════════ */
.services-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.svc-card {
  padding: 1.75rem;
  border-radius: var(--r-card);
  background: rgba(0, 0, 0, .02);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .35s var(--spring), box-shadow .3s var(--ease);
  /* Pre-promote to its own compositing layer so entering :hover doesn't force
     Chrome to create the layer mid-transition — that layer-promotion is what
     reads as a flicker/flash on the first hover. */
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform;
}

.svc-card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
  z-index: 0;
}

.svc-card>*:not(.svc-card-glow) {
  position: relative;
  z-index: 1
}

.svc-card:hover {
  transform: translateY(-5px) translateZ(0);
  border-color: rgba(0, 0, 0, .12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4)
}

.svc-card:hover .svc-card-glow {
  opacity: 1
}

.svc-card.active {
  border-color: rgba(0, 0, 0, .45)
}

.svc-card.active .svc-card-glow {
  opacity: .6
}

.svc-emoji {
  font-size: 2.25rem;
  margin-bottom: .875rem;
  display: block;
  transition: transform .3s var(--spring);
  transform: translateZ(0);
}

/* אייקוני הקו המותאמים של השירותים */
.svc-icon {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: .875rem;
  transition: transform .3s var(--spring);
  transform: translateZ(0);
}

.svc-icon svg { display: block }

.svc-card:hover .svc-emoji,
.svc-card:hover .svc-icon {
  transform: scale(1.12) rotate(-5deg) translateZ(0)
}

.svc-icon-detail { display: inline-flex; align-items: center }
.svc-icon-detail svg { display: block }

.svc-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem
}

.svc-tag {
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: .625rem;
  letter-spacing: .02em
}

.svc-desc {
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.65
}

.svc-more {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  margin-top: 1rem;
  transition: gap .2s var(--spring);
}

.svc-card:hover .svc-more {
  gap: .6rem
}

/* Service detail panel — FULL WIDTH two-column */
.svc-detail {
  display: none;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: var(--r-card);
  margin-top: 1rem;
  overflow: hidden;
  background: var(--surface);
  position: relative;
  animation: slideDown .4s var(--spring);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.svc-detail.open {
  display: grid;
  grid-template-columns: 1.1fr 1fr
}

.detail-close-btn {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .06);
  border: 1px solid rgba(0, 0, 0, .1);
  color: #75756F;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.detail-close-btn:hover {
  background: rgba(113, 113, 108, .12);
  border-color: rgba(113, 113, 108, .25);
  color: #4F4F49
}

.detail-mockup-col {
  padding: 1.5rem;
  background: var(--bg);
  border-left: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-mockup-svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: .75rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .4);
  object-fit: contain;
  background: var(--surface)
}

/* Mockup SVGs use absolute coords + text-anchor start/end; force an LTR base so the
   page's dir=rtl is NOT inherited into <text> (that inheritance = the overflow bug).
   Hebrew glyphs still shape RTL correctly within each string via the bidi algorithm. */
.svc-mockup-svg,
.svc-mockup-svg text {
  direction: ltr
}

/* ── Mockup carousel ── */
.mockup-carousel {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  width: 100%
}

.carousel-track {
  display: grid;
  border-radius: .75rem;
  overflow: hidden;
  /* Fixed per-service via inline style (see renderMockupCarousel) so every
     slide in the same carousel renders inside an identical box — no size
     jump when mixing real screenshots of different native dimensions. */
  aspect-ratio: var(--mockup-ar, 420 / 260)
}

.carousel-slide {
  grid-area: 1/1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: .375rem
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #E3E3E0;
  cursor: pointer;
  transition: background .3s, transform .3s;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: #000000;
  transform: scale(1.4)
}

.detail-info-col {
  padding: 1.75rem 1.5rem
}

.detail-bullets {
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.detail-bullet {
  display: flex;
  gap: .75rem;
  font-size: .855rem;
  color: var(--muted);
  line-height: 1.5
}

.detail-bullet-check {
  color: var(--green);
  flex-shrink: 0;
  margin-top: .1rem;
  font-size: 1rem;
}

.detail-tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem
}

.detail-chip {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .08);
  border: 1px solid rgba(0, 0, 0, .18);
  color: #2B2B27;
}

.detail-price {
  display: flex;
  align-items: stretch;
  padding: 1.125rem .5rem;
  border-radius: var(--r-btn);
  background: rgba(0, 0, 0, .04);
  border: 1.5px solid var(--border);
}

.detail-price-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
  padding: 0 .5rem;
}

.detail-price-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--muted);
}

.detail-price-value {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -.01em;
}

.detail-price-sep {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: .1rem 0;
}

@media(max-width:900px) {
  .svc-detail.open {
    grid-template-columns: 1fr
  }

  .detail-mockup-col {
    border-left: none;
    border-bottom: 1px solid var(--border)
  }
}

/* ══════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem
}

.testi-card {
  padding: 1.75rem;
  border-radius: var(--r-card);
  background: rgba(0, 0, 0, .02);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), transform .35s var(--spring);
}

.testi-card:hover {
  border-color: rgba(75, 75, 69, .2);
  transform: translateY(-3px)
}

.testi-quote {
  font-size: .9375rem;
  color: #65655E;
  line-height: 1.8;
  flex: 1;
  margin-bottom: 1.25rem;
}

.testi-quote strong {
  color: var(--text);
  font-weight: 600
}

.testi-stars {
  color: var(--yellow);
  letter-spacing: .05em;
  margin-bottom: 1rem;
  font-size: .9rem
}

.testi-author {
  display: flex;
  align-items: center;
  gap: .875rem
}

.testi-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
}

.testi-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--text)
}

.testi-role {
  font-size: .75rem;
  color: #ADADA4;
  margin-top: .1rem
}

/* ══════════════════════════════════════════════════════
   PORTFOLIO VAULT
══════════════════════════════════════════════════════ */
.vault-wrap {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s6) var(--s3);
}

.vault-box {
  max-width: 520px;
  width: 100%;
  text-align: center;
  padding: var(--s5);
  position: relative;
  overflow: hidden;
}

.vault-box::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r-card) + 1px);
  background: linear-gradient(135deg, rgba(0, 0, 0, .3), rgba(75, 75, 69, .1), rgba(0, 0, 0, .3));
  opacity: .5;
  animation: vring 4s linear infinite;
  z-index: -1;
}

@keyframes vring {

  0%,
  100% {
    opacity: .3
  }

  50% {
    opacity: .65
  }
}

.vault-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, .1);
  border: 1px solid rgba(0, 0, 0, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: vault-breathe 3s ease-in-out infinite;
}

@keyframes vault-breathe {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 0, 0, .15)
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 0, 0, .35)
  }
}

.vault-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2
}

.vault-body {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem
}

.vault-btns {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap
}

/* ══════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: .75rem
}

.faq-item {
  border-radius: var(--r-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s var(--ease)
}

.faq-item.open {
  border-color: rgba(0, 0, 0, .22)
}

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--s3);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  gap: 1rem;
  font-family: inherit;
}

.faq-question {
  font-weight: 600;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.4;
  text-align: right
}

.faq-icon {
  flex-shrink: 0;
  color: var(--violet);
  font-size: 1.25rem;
  transition: transform .3s var(--spring);
  line-height: 1
}

.faq-item.open .faq-icon {
  transform: rotate(45deg)
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease)
}

.faq-item.open .faq-answer {
  max-height: 640px
}

.faq-answer-inner {
  padding: 1rem var(--s3) 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, .06);
  color: #4A4A44;
  line-height: 1.75;
  font-size: 1rem;
}

.faq-cta-box {
  margin-top: var(--s3);
  padding: var(--s4);
  text-align: center;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(0, 0, 0, .06), rgba(75, 75, 69, .03));
  border: 1px solid rgba(0, 0, 0, .14);
}

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
  align-items: start
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-card);
  background: rgba(0, 0, 0, .02);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .25s var(--ease), transform .3s var(--spring);
}

.contact-method:hover {
  border-color: rgba(0, 0, 0, .3);
  transform: translateX(-3px)
}

.cm-icon {
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cm-label {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: .15rem
}

.cm-value {
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text)
}

.form-group {
  margin-bottom: 1rem
}

.form-label {
  display: block;
  font-size: .8125rem;
  font-weight: 500;
  color: #65655E;
  margin-bottom: .5rem
}

.form-input {
  width: 100%;
  padding: .8125rem 1rem;
  border-radius: var(--r-btn);
  font-size: .9375rem;
  background: rgba(0, 0, 0, .03);
  border: 1px solid rgba(0, 0, 0, .08);
  color: var(--text);
  outline: none;
  font-family: inherit;
  direction: rtl;
  transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}

.form-input:focus {
  border-color: rgba(0, 0, 0, .5);
  background: rgba(0, 0, 0, .04);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .1)
}

.form-input::placeholder {
  color: #C5C5BF
}

.form-input.error {
  border-color: rgba(113, 113, 108, .5);
  box-shadow: 0 0 0 3px rgba(113, 113, 108, .1)
}

select.form-input option {
  background: var(--surface-2);
  color: var(--text)
}

textarea.form-input {
  resize: vertical;
  min-height: 120px
}

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

.form-msg {
  padding: .875rem 1rem;
  border-radius: var(--r-btn);
  font-size: .875rem;
  font-weight: 500;
  display: none;
  margin-top: 1rem;
}

.form-msg.success {
  display: block;
  background: rgba(29, 29, 26, .1);
  border: 1px solid rgba(29, 29, 26, .25);
  color: #363631
}

.form-msg.error {
  display: block;
  background: rgba(113, 113, 108, .1);
  border: 1px solid rgba(113, 113, 108, .25);
  color: #4F4F49
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none
}

/* ══════════════════════════════════════════════════════
   CTA STRIP
══════════════════════════════════════════════════════ */
.cta-strip {
  padding: var(--s5) var(--s4);
  border-radius: var(--r-card);
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 0, 0, .07), rgba(75, 75, 69, .04));
  border: 1px solid rgba(0, 0, 0, .14);
  position: relative;
  overflow: hidden;
}

.cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 0, 0, .1), transparent 60%);
  pointer-events: none;
}

.cta-strip h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: .875rem
}

.cta-strip p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto var(--s3);
  line-height: 1.75
}

/* ══════════════════════════════════════════════════════
   WhatsApp FAB + Accessibility
══════════════════════════════════════════════════════ */
.wa-fab {
  position: fixed;
  bottom: 6.5rem;
  left: 1.5rem;
  z-index: 999;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0D0D0C, #595953);
  color: #fff;
  box-shadow: 0 0 28px rgba(13, 13, 12, .4), 0 8px 24px rgba(0, 0, 0, .4);
  text-decoration: none;
  transition: transform .3s var(--spring), box-shadow .25s var(--ease);
  animation: wa-pulse 2.5s ease-in-out infinite;
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 0 48px rgba(13, 13, 12, .6), 0 10px 32px rgba(0, 0, 0, .4);
  animation: none
}

@keyframes wa-pulse {

  0%,
  100% {
    box-shadow: 0 0 28px rgba(13, 13, 12, .4), 0 8px 24px rgba(0, 0, 0, .4)
  }

  50% {
    box-shadow: 0 0 48px rgba(13, 13, 12, .55), 0 8px 24px rgba(0, 0, 0, .4)
  }
}

.a11y-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 9999;
  font-family: 'Heebo', system-ui, sans-serif
}

.a11y-trigger {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3A3A40;
  border: 2px solid #fff;
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255, 255, 255, .4);
  transition: transform .25s var(--spring), box-shadow .2s var(--ease);
}

.a11y-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 255, 255, .6)
}

.a11y-trigger:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px
}

.a11y-panel {
  display: none;
  position: absolute;
  bottom: 58px;
  left: 0;
  width: 220px;
  background: #18181B;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-card);
  padding: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .5);
}

.a11y-panel.open {
  display: block;
  animation: a11y-slide .25s var(--spring)
}

@keyframes a11y-slide {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.a11y-title {
  font-size: .7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, .7);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem
}

.a11y-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-btn);
  color: #fff;
  font-size: .8125rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: .375rem;
  text-align: right;
  font-family: inherit;
  transition: background .2s;
}

.a11y-btn:hover {
  background: rgba(255, 255, 255, .16)
}

.a11y-reset {
  width: 100%;
  padding: .5rem .75rem;
  margin-top: .625rem;
  background: rgba(142, 142, 147, .12);
  border: 1px solid rgba(142, 142, 147, .25);
  border-radius: var(--r-btn);
  color: #B0B0B6;
  font-size: .75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}

.a11y-reset:hover {
  background: rgba(142, 142, 147, .22)
}

body.a11y-font-lg {
  font-size: 1.125rem
}

body.a11y-font-xl {
  font-size: 1.25rem
}

body.a11y-contrast {
  filter: contrast(150%) brightness(110%)
}

body.a11y-grayscale {
  filter: grayscale(100%)
}

body.a11y-links a,
body.a11y-links button,
[body.a11y-links [role="button"]] {
  outline: 2px solid #0028FF !important;
  outline-offset: 2px !important
}

/* ══════════════════════════════════════════════════════
   SOCIAL LINKS
══════════════════════════════════════════════════════ */
.social-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: .6rem;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .07);
  text-decoration: none;
  transition: border-color .2s, background .2s, transform .25s var(--spring);
}

.social-link:hover {
  transform: translateY(-2px)
}

.social-link.ig:hover {
  border-color: rgba(193, 53, 132, .4);
  box-shadow: 0 4px 14px rgba(193, 53, 132, .25)
}

.social-link.li:hover {
  border-color: rgba(10, 102, 194, .4);
  background: rgba(10, 102, 194, .08)
}

.social-link.tk:hover {
  border-color: rgba(0, 0, 0, .3);
  box-shadow: 0 4px 14px rgba(37, 244, 238, .2)
}

.social-link.fb:hover {
  border-color: rgba(24, 119, 242, .4);
  box-shadow: 0 4px 14px rgba(24, 119, 242, .25)
}

.social-link.wa:hover {
  border-color: rgba(37, 211, 102, .4);
  box-shadow: 0 4px 14px rgba(37, 211, 102, .25)
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media(max-width:1024px) {
  .services-bento {
    grid-template-columns: repeat(2, 1fr)
  }

  .testi-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:900px) {
  .founder-wrap {
    grid-template-columns: 1fr
  }

  .founder-photo-col {
    max-width: 400px;
    margin: 0 auto
  }

  .hero {
    grid-template-columns: 1fr
  }

  .hero-visual {
    display: block;
    height: 240px;
    min-height: 240px;
  }

  .hero-logo-img {
    width: min(52vw, 190px)
  }

  .hero-logo-glow {
    width: 170px;
    height: 170px
  }

  .hero-logo-sub {
    font-size: .68rem;
    letter-spacing: .5em;
    text-indent: .5em
  }

  .hero-text {
    padding: calc(68px + var(--s5)) var(--s2) var(--s4)
  }

  .about-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .section {
    padding: var(--s5) 0
  }

  .section-sm {
    padding: var(--s4) 0
  }

  .nav-links,
  .nav-cta {
    display: none
  }

  .hamburger {
    display: flex
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr)
  }

  .stat-item:nth-child(2n) {
    border-right: none
  }

  .stat-item {
    border-bottom: 1px solid var(--border)
  }

  .stat-item:last-child,
  .stat-item:nth-last-child(2) {
    border-bottom: none
  }

  .services-bento {
    grid-template-columns: 1fr
  }

  .testi-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }

  /* במובייל: קודם טופס הפנייה, ואחריו פרטי הקשר וכפתורי הרשתות (בקשת ירין).
     בדסקטופ הם יושבים זה לצד זה בשתי עמודות, ולכן הסדר שם לא משתנה.
     order בלבד — בלי לגעת בסדר ב-HTML, כך שקוראי-מסך ממשיכים לקרוא כרגיל. */
  .contact-grid> :nth-child(1) {
    order: 2
  }

  .contact-grid> :nth-child(2) {
    order: 1
  }

  .form-row {
    grid-template-columns: 1fr
  }
}

@media(max-width:480px) {
  .container {
    padding: 0 1rem
  }

  .hero-headline {
    font-size: 2.75rem
  }

  .hero-text {
    padding: calc(68px + 2.5rem) 1rem 3rem
  }

  .founder-photo-frame img {
    aspect-ratio: 1/1
  }
}

/* ── stat number pulse ── */
.stat-num {
  animation: stat-pop .6s var(--spring) both;
}

.stat-item:nth-child(1) .stat-num {
  animation-delay: .1s
}

.stat-item:nth-child(2) .stat-num {
  animation-delay: .2s
}

.stat-item:nth-child(3) .stat-num {
  animation-delay: .3s
}

.stat-item:nth-child(4) .stat-num {
  animation-delay: .4s
}

@keyframes stat-pop {
  0% {
    opacity: 0;
    transform: scale(.7) translateY(8px)
  }

  70% {
    transform: scale(1.08) translateY(-2px)
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0)
  }
}

/* ── testi shimmer on hover ── */
.testi-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(75, 75, 69, .05), transparent);
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}

.testi-card {
  position: relative;
  overflow: hidden
}

.testi-card:hover::before {
  opacity: 1
}

.testi-av {
  transition: transform .3s var(--spring)
}

.testi-card:hover .testi-av {
  transform: scale(1.1)
}

/* ── process num glow pulse ── */
.process-item.visible .process-num {
  animation: proc-appear .6s var(--spring) both;
}

@keyframes proc-appear {
  from {
    opacity: 0;
    transform: scale(.5)
  }

  to {
    opacity: 1;
    transform: scale(1)
  }
}

/* ── floating card animation ── */
.hero-stat-float {
  animation: float-card 4s ease-in-out infinite
}

@keyframes float-card {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* ── contact method hover ── */
.contact-method:hover {
  transform: translateX(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3)
}

/* ── Hero logo visual ── */
.hero-visual::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-visual-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-logo-float {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  animation: logo-float 5.5s ease-in-out infinite;
}

.hero-logo-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, .16) 0%, transparent 70%);
  filter: blur(12px);
  animation: logo-glow-pulse 4.2s ease-in-out infinite;
}

.hero-logo-img {
  position: relative;
  width: min(60vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(0, 0, 0, .16));
}

.hero-logo-sub {
  position: relative;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .6em;
  text-indent: .6em;
  color: var(--muted);
}

@keyframes logo-float {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-12px)
  }
}

@keyframes logo-glow-pulse {

  0%,
  100% {
    opacity: .55;
    transform: translate(-50%, -50%) scale(1)
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1)
  }
}

/* ── Cursor glow / parallax ── */
#cursor-glow {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, .07) 0%, rgba(75, 75, 69, .04) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: transform .06s linear, opacity .3s;
  opacity: 0;
}

body:hover #cursor-glow {
  opacity: 1
}

.hero-text,
.about-grid,
.services-bento,
.testi-track {
  transform-style: preserve-3d;
}

/* ── prefers-reduced-motion ── */
@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none
  }

  .wa-fab,
  .circuit-path,
  .badge-dot,
  .stat-num,
  .hero-stat-float {
    animation: none
  }

  .hero-photo,
  .hero:hover .hero-photo {
    transform: none;
    transition: none
  }

  .hero-logo-float,
  .hero-logo-glow {
    animation: none
  }

  .hero-visual-rings {
    display: none
  }

  #cursor-glow {
    display: none
  }
}