/* ============================================================
   Orbo Solutions — Design System
   Clean · Light · Premium — Hebrew RTL
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* v3 — white studio system */
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #14121F;
  --ink-soft: #5A5668;
  --ink-faint: #716C86; /* ≥4.5:1 on white/ivory — WCAG AA for small text */
  --line: rgba(20, 18, 31, 0.08);
  --line-strong: rgba(20, 18, 31, 0.14);

  --accent: #5B4CF5;
  --accent-deep: #3F30C8;
  --accent-soft: #EEEBFF;
  --tint-peach: #FFEFE4;
  --tint-blue: #E7F0FF;
  --grad-accent: linear-gradient(135deg, #6C5CFF 0%, #9D6BFF 100%);

  /* V5.18 type system (owner: "more professional, sleeker — look at
     awwwards sites of the year"): ONE variable neo-grotesque for the
     whole site — Noto Sans Hebrew 300..900 — and the hierarchy is
     built from WEIGHT CONTRAST alone (850 tight display vs 350 airy
     leads), the signature of current award sites. Rubik/Assistant
     (V5.16) and Frank Ruhl/Heebo before them are dead. */
  --font-display: 'Noto Sans Hebrew', system-ui, sans-serif;
  --font-body: 'Noto Sans Hebrew', system-ui, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(20, 18, 31, 0.05);
  --shadow-md: 0 12px 40px -8px rgba(20, 18, 31, 0.10);
  --shadow-lg: 0 30px 80px -20px rgba(20, 18, 31, 0.16);
  --shadow-accent: 0 14px 40px -10px rgba(91, 76, 245, 0.45);

  --container: 1180px;
  --header-h: 76px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  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, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 750; line-height: 1.16; letter-spacing: -0.015em; }

.display-xl {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(2.3rem, 6.4vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -0.028em;
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 830;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 780;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.015em;
}

.accent-text {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lead {
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 350;
  color: var(--ink-soft);
  max-width: 40em;
  line-height: 1.78;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 76, 245, 0.16);
  border-radius: var(--radius-pill);
  padding: 0.42em 1.1em;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--grad-accent);
}

.muted { color: var(--ink-soft); }
.small { font-size: 0.9rem; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section { padding-block: clamp(84px, 11vw, 140px); }
.section-tint { background: linear-gradient(180deg, #F5F3FF 0%, var(--bg) 100%); }
.section-white { background: var(--surface); }

.section-head { max-width: 640px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { font-size: 1.15rem; }
.section-head-center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95em 2.1em;
  border-radius: var(--radius-pill);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background-color 0.25s;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
  /* lift + magnetic pull + press compose through custom properties */
  transform: translate3d(var(--bx, 0px), calc(var(--by, 0px) + var(--lift, 0px)), 0) scale(var(--bs, 1));
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s var(--ease-out), background-color 0.25s;
}
.btn-primary:hover { --lift: -3px; box-shadow: 0 20px 50px -10px rgba(91, 76, 245, 0.55); }
.btn-primary:active { --bs: 0.97; }

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-md); }

.btn-sm { padding: 0.65em 1.5em; font-size: 0.92rem; }
.btn-lg { padding: 1.1em 2.6em; font-size: 1.08rem; }
.btn-block { width: 100%; }

.btn .btn-arrow { width: 19px; height: 19px; flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(-5px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
}
.site-header.scrolled {
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.14em;
  direction: ltr;
}
.logo-sep { color: var(--accent); margin-inline: 1px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a {
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
  transition: color 0.25s;
}
.main-nav a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s var(--ease-out);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; }
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

/* background-ambience toggle (all pages, incl. story mode) */
.audio-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: color 0.25s, border-color 0.25s, transform 0.3s var(--ease-out);
}
.audio-toggle:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.audio-toggle svg { width: 19px; height: 19px; }
.audio-toggle .at-on { display: none; }
.audio-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.audio-toggle[aria-pressed="true"] .at-on { display: block; }
.audio-toggle[aria-pressed="true"] .at-off { display: none; }
.audio-toggle[hidden] { display: none; }          /* no-WebAudio fallback */
.no-js .audio-toggle { display: none; }           /* no-JS tier: no dead control */

/* very narrow phones: keep logo + toggle + menu button on one line */
@media (max-width: 400px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
}
@media (max-width: 340px) {
  .logo-text { display: none; } /* the star mark + aria-label remain */
}

/* ---------- Hero (index) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 64px;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* static fallback if JS/canvas is off */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 42% at 78% 18%, rgba(157, 107, 255, 0.16), transparent 70%),
    radial-gradient(42% 44% at 12% 28%, rgba(255, 176, 128, 0.14), transparent 70%),
    radial-gradient(50% 50% at 55% 92%, rgba(108, 92, 255, 0.10), transparent 70%),
    var(--bg);
}

.hero-content { position: relative; max-width: 780px; }
.hero .eyebrow { margin-bottom: 28px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { margin-bottom: 40px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: clamp(48px, 7vh, 84px); }

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.5vw, 44px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.trust-item svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

.scroll-hint {
  position: absolute;
  bottom: 26px;
  inset-inline: 0;
  display: flex;
  justify-content: center;
  color: var(--ink-faint);
}
.scroll-hint svg { width: 22px; height: 22px; animation: hint-bob 2.2s var(--ease-out) infinite; }
@keyframes hint-bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 110px));
  padding-bottom: clamp(48px, 6vw, 84px);
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 55% at 85% 0%, rgba(157, 107, 255, 0.13), transparent 70%),
    radial-gradient(36% 48% at 8% 12%, rgba(255, 176, 128, 0.11), transparent 70%),
    var(--bg);
}
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { margin-bottom: 22px; max-width: 720px; }
.page-hero .lead { max-width: 620px; }

/* ---------- World cards ---------- */
.worlds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.world-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
  overflow: hidden;
}
.world-card::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity 0.35s;
}
.world-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(91, 76, 245, 0.28);
}
.world-card:hover::before { opacity: 1; }

.world-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.35s, color 0.35s, transform 0.45s var(--ease-out);
}
.world-icon svg { width: 26px; height: 26px; }
.world-card:hover .world-icon { background: var(--grad-accent); color: #fff; transform: scale(1.06) rotate(-4deg); }

.world-card h3 { font-size: 1.22rem; font-weight: 600; }
.world-card p { color: var(--ink-soft); font-size: 0.98rem; flex-grow: 1; }

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
}
.card-arrow svg { width: 17px; height: 17px; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.world-card:hover .card-arrow svg { transform: translateX(-7px); }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.process-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.step-num {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, rgba(91, 76, 245, 0.35), rgba(91, 76, 245, 0.06));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  direction: ltr;
  display: inline-block;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Value cards ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.value-card {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s;
}
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(91, 76, 245, 0.25); }
.value-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}
.value-icon svg { width: 24px; height: 24px; }
.value-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.value-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Service detail (services page) ---------- */
.service-detail { padding-block: clamp(64px, 8vw, 104px); }
.service-detail:nth-child(even) { background: var(--surface); }

.service-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.service-side { position: sticky; top: calc(var(--header-h) + 32px); }
.service-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-inline-end: -0.18em; /* cancel trailing letter-space so the numeral aligns flush */
  color: var(--accent);
  direction: ltr;
  display: inline-block;
  margin-bottom: 14px;
}
.service-icon {
  width: 72px; height: 72px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 22px;
}
.service-icon svg { width: 34px; height: 34px; }
.service-side h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

.service-body p {
  font-size: 1.12rem;
  font-weight: 300;
  color: var(--ink-soft);
  max-width: 38em;
  margin-bottom: 30px;
}

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.5em 1.15em;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, color 0.25s, transform 0.3s var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.service-detail:nth-child(even) .chip { background: var(--bg); }

/* anchor chip-nav in page hero */
.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.anchor-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.55em 1.25em;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease-out);
}
.anchor-nav a:hover {
  background: var(--grad-accent);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 14px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] { border-color: rgba(91, 76, 245, 0.3); box-shadow: var(--shadow-md); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px;
  font-weight: 600;
  font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-plus {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  transition: transform 0.35s var(--ease-out), background 0.3s, color 0.3s;
}
.faq-plus svg { width: 15px; height: 15px; }
.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--grad-accent); color: #fff; }

.faq-answer { padding: 0 28px 24px; color: var(--ink-soft); max-width: 60em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: #16131F;
  color: #fff;
  --cta-r: var(--radius-lg);
  /* nightfall entrance: scroll-linked swell + radius relaxation (--p from motion.js) */
  border-radius: calc(var(--cta-r) + (1 - min(var(--p, 1) * 2, 1)) * 20px);
  transform: scale(calc(0.955 + min(var(--p, 1) * 2, 1) * 0.045));
  padding: clamp(60px, 8vw, 104px) clamp(28px, 6vw, 96px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
/* the reveal contributes opacity only — never a competing transform */
.cta-band.reveal,
.cta-band.reveal.in {
  transform: scale(calc(0.955 + min(var(--p, 1) * 2, 1) * 0.045));
  transition: opacity 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 70% at 50% 115%, rgba(108, 92, 255, 0.45), transparent 70%),
    radial-gradient(35% 45% at 85% -10%, rgba(157, 107, 255, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .cta-line { color: rgba(255, 255, 255, 0.72); font-size: 1.15rem; font-weight: 300; margin-bottom: 38px; }
.cta-band .btn-primary { box-shadow: 0 18px 50px -8px rgba(108, 92, 255, 0.6); }
/* brighter gradient text on the dark band — the default accent is too dark on ink */
.cta-band .accent-text {
  background: linear-gradient(135deg, #9D8CFF 0%, #C9AFFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.cta-section { padding-block: clamp(40px, 6vw, 90px) clamp(84px, 10vw, 130px); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 22px;
}

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

.field { display: grid; gap: 8px; }
.field label { font-size: 0.92rem; font-weight: 600; }
.field label .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0.85em 1.1em;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(91, 76, 245, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }

.field-select { position: relative; }
.field-select select { padding-inline-end: 2.6em; }
.field-select::after {
  content: '';
  position: absolute;
  inset-inline-end: 18px;
  bottom: 20px;
  width: 9px; height: 9px;
  border-inline-start: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  transform: rotate(45deg);
  pointer-events: none;
}

.form-note { text-align: center; font-size: 0.85rem; color: var(--ink-faint); }

.contact-aside { display: grid; gap: 22px; }
.aside-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
}
.aside-card h3 { font-size: 1.08rem; margin-bottom: 18px; }

.mini-steps { display: grid; gap: 16px; }
.mini-step { display: flex; gap: 14px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-soft); }
.mini-step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.aside-mail {
  display: block;
  width: fit-content;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
  transition: opacity 0.25s;
}
.aside-mail:hover { opacity: 0.75; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-top: clamp(52px, 7vw, 80px);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-tagline { color: var(--ink-soft); font-size: 0.96rem; }

.footer-nav { display: grid; gap: 12px; align-content: start; }
.footer-nav a { color: var(--ink-soft); font-size: 0.96rem; transition: color 0.25s; width: fit-content; }
.footer-nav a:hover { color: var(--accent); }

.footer-contact { display: grid; gap: 8px; align-content: start; }
.footer-label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; color: var(--ink-faint); }
.footer-mail { font-weight: 600; color: var(--ink); direction: ltr; text-align: end; width: fit-content; transition: color 0.25s; }
.footer-mail:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-faint);
}
.footer-made { direction: ltr; letter-spacing: 0.04em; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .worlds-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .service-inner { grid-template-columns: 1fr; }
  .service-side { position: static; }
  .service-side h2 { margin-bottom: 4px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(250, 250, 249, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s, visibility 0.3s;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }

  .nav-toggle { display: flex; }
  .header-actions .btn { display: none; }

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

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 40px, var(--container)); }
  .worlds-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .trust-strip { display: grid; grid-template-columns: repeat(2, auto); justify-content: space-between; gap: 14px 24px; }
  .cta-band { --cta-r: var(--radius); }
  .cta-band .btn-lg { padding: 1em 1.6em; font-size: 1rem; white-space: nowrap; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-mail { text-align: start; }
}

/* ============================================================
   Lightfield upgrade — shared pieces
   ============================================================ */

/* GL canvases fade to the CSS tier on permanent context loss */
#heroGL, .cta-canvas, .page-hero-bg canvas { transition: opacity 0.4s; }

/* --- word-mask reveals (hand-authored spans; padding rescues Hebrew descenders) --- */
.w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; transform: translateY(110%); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--wd, 0s); }
.hero-title.in .w > span { transform: none; }
.hero-title.reveal { opacity: 1; transform: none; } /* the block never double-animates; only words rise */
.no-js .w > span { transform: none; }

/* --- odometer number surface (process 01-04, services 01-06) --- */
.step-num, .service-num { overflow: hidden; }
.num-roll {
  display: inline-block;
  transform: translateY(60%);
  opacity: 0;
  filter: blur(4px);
  transition:
    transform 0.8s var(--ease-out) calc(var(--d, 0s) + 0.15s),
    opacity 0.6s calc(var(--d, 0s) + 0.15s),
    filter 0.8s calc(var(--d, 0s) + 0.15s);
}
.reveal.in .num-roll, .in .num-roll { transform: none; opacity: 1; filter: none; }
.no-js .num-roll { transform: none; opacity: 1; filter: none; }

/* --- cursor-lumen: soft light follows the pointer across cards --- */
.value-card, .aside-card { position: relative; }
.world-card::after, .value-card::after, .process-step::after, .aside-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(108, 92, 255, 0.10), transparent 65%);
}
.world-card:hover::after, .value-card:hover::after, .process-step:hover::after, .aside-card:hover::after { opacity: 1; }
@media (hover: none) {
  .world-card::after, .value-card::after, .process-step::after, .aside-card::after { display: none; }
}

/* --- world icon stroke draw-in on card hover --- */
@keyframes icon-draw { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }
.world-card:hover .world-icon svg * { stroke-dasharray: 60; animation: icon-draw 0.6s var(--ease-out); }

/* --- FAQ answer entrance (animation — details content can't transition open) --- */
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }
.faq-item[open] .faq-answer { animation: faqIn 0.45s var(--ease-out); }

/* --- header scroll-progress light (grows right-to-left, RTL reading:
       anchored at inline-START = the right edge in RTL) --- */
#siteHeader::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 2px;
  width: calc(var(--sp, 0) * 100%);
  background: var(--grad-accent);
  border-radius: 2px;
  pointer-events: none;
}

/* --- CTA night-field canvas + headline shimmer --- */
.cta-band .cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.cta-band .cta-star { position: absolute; pointer-events: none; }
@keyframes ctaShimmer { to { background-position: -220% 0; } }
.cta-band .accent-text {
  background-size: 220% 100%;
  animation: ctaShimmer 8s linear infinite;
}

/* --- inner-page hero aurora strip --- */
.page-hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.page-hero-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* --- site-wide film grain: one static overlay, inline-SVG noise --- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  mix-blend-mode: multiply;
  background-size: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .w > span { transform: none; }
  .num-roll { transform: none; opacity: 1; filter: none; }
  .world-card::after, .value-card::after, .process-step::after, .aside-card::after { display: none; }
}
