/* ==========================================================================
   Aviv Agiv — Strategic Communications & Crisis Management
   Design system: refined, editorial, premium dark theme
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Palette — dark theme: true black and neutral greys, with the podcast cyan as the only colour.
     (The navy palette is the light theme, below.) */
  --bg:        #000000;
  --bg-elev:   #0e0e0e;
  --bg-elev-2: #181818;
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --line-ui:   rgba(255, 255, 255, 0.40);  /* interactive control borders — ~3:1 (WCAG 1.4.11) */
  --text:      #f2f2f2;
  --text-dim:  #a8a8a8;   /* ~8.9:1 on --bg */
  --text-mute: #8c8c8c;   /* ~6.3:1 on --bg (WCAG AA for text) */
  --accent:    #4fd0e3;      /* podcast cyan */
  --accent-2:  #8ae6f2;
  --accent-dim: rgba(79, 208, 227, 0.14);
  --accent-fill: var(--accent);  /* background of filled controls (always paired with dark #07121c text) */
  --glass:      rgba(0, 0, 0, 0.72);  /* scrolled header */
  --glass-menu: rgba(0, 0, 0, 0.6);   /* mobile menu overlay */
  --pool:       0, 0, 0;              /* rgb of the backdrop behind the hero portrait */
  --halo-strength: 0.12;              /* cyan glow: almost off on black */
  --space-strength: 0.8;              /* ring/dot layers (white in this theme) */

  /* Type */
  --font-display: "Assistant", system-ui, -apple-system, sans-serif;  /* one type family for every heading, in both languages */
  --font-body:    "Inter", "Assistant", system-ui, -apple-system, sans-serif;

  /* Rhythm */
  --maxw: 1200px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --section-y: clamp(5rem, 12vw, 11rem);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* Hebrew body text uses Assistant first (Inter has no Hebrew) */
:root[lang="he"] {
  --font-body:    "Assistant", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: clamp(1.075rem, 1rem + 0.3vw, 1.2rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Subtle film-grain / vignette atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(79, 208, 227, 0.06), transparent 60%),
    radial-gradient(100% 100% at 50% 120%, rgba(0, 0, 0, 0.5), transparent 55%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--accent-fill); color: #07121c; }

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

/* ---------- Accessibility utilities ---------- */
.visually-hidden:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 300;
  transform: translateY(-160%);
  background: var(--accent-fill);
  color: #07121c;
  font-weight: 600;
  padding: 0.7rem 1.1rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  z-index: 2;
  padding-block: var(--section-y);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}
:root[lang="he"] .eyebrow { letter-spacing: 0.12em; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
:root[lang="he"] .display { letter-spacing: 0; font-weight: 500; }

.lead {
  color: var(--text-dim);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.65;
  max-width: 46ch;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  padding-block: 1.5rem;
  transition: padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The scrolled "glass" lives on a pseudo-element: a backdrop-filter on the header itself would
   make it the containing block of the fixed mobile menu, trapping the menu inside the header bar. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.site-header.scrolled::before { opacity: 1; }
.site-header.scrolled {
  padding-block: 0.85rem;
  border-bottom-color: var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 0.5ch;
  white-space: nowrap;
}
.brand .brand-mark { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.75rem);
}
.nav-links a {
  font-size: 1rem;
  color: var(--text-dim);
  position: relative;
  padding-block: 0.25rem;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-end: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

/* The primary button in the nav must stay dark-on-gold, not inherit nav link colors */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #07121c; }
.nav-links a.btn::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.lang-toggle {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--line-ui);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-toggle:hover { color: var(--text); border-color: var(--accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-ui);
  border-radius: 50%;
  color: var(--text-dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }

.btn {
  --pad-y: 0.7rem;
  --pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease),
              color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary {
  background: var(--accent-fill);
  color: #07121c;
  font-weight: 600;
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn-ghost {
  border: 1px solid var(--line-ui);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-arrow { transition: transform 0.3s var(--ease); }
:root[dir="ltr"] .btn:hover .btn-arrow { transform: translateX(3px); }
:root[dir="rtl"] .btn:hover .btn-arrow { transform: translateX(-3px); }
:root[dir="rtl"] .btn-arrow { transform: scaleX(-1); }

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-ui);
  border-radius: 10px;
}
.menu-toggle span {
  position: relative;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: background 0.2s;
}
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; position: absolute; inset-inline: 0;
  height: 1.5px; background: var(--text);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after  { top: 6px; }
body.menu-open .menu-toggle span { background: transparent; }
body.menu-open .menu-toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .menu-toggle span::after  { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
/* Page-wide ambient halo that travels on scroll (set in .page-halo below) */
.hero-grid {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  align-content: center;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  padding-block: clamp(9rem, 20vh, 12rem) clamp(6rem, 12vh, 8rem);
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 1fr; align-items: center; }
}
.hero-main { min-width: 0; }
.hero-text { min-width: 0; display: grid; gap: clamp(2rem, 4vw, 3rem); }

/* cut-out portrait (transparent background): stands on the hero's bottom edge,
   so the straight crop of the shoulders meets the divider line instead of floating */
.hero-photo {
  position: relative;
  align-self: end;
  justify-self: center;
  width: min(100%, 450px);
  margin: 0 0 calc(-1 * clamp(6rem, 12vh, 8rem)); /* cancels .hero-grid's bottom padding */
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  /* thin cyan rim keeps the black shirt from merging into the navy page */
  filter: drop-shadow(0 0 1px rgba(79, 208, 227, 0.45));
}
/* phones/tablets: name and buttons, then the portrait sized to fit the first screen, then the
   intro text. The portrait stands on the intro's divider line, so its straight crop reads as
   intentional. (.hero-text is flattened so its two parts can sit either side of the photo.) */
@media (max-width: 899px) {
  .hero-grid { min-height: auto; padding-top: clamp(6rem, 13vh, 8rem); gap: 0; }
  .hero-text { display: contents; }
  /* name/buttons and portrait share the first grid cell: the portrait sits behind the text,
     pushed toward the far side and partly off-screen so his face stays clear of the name */
  .hero-main, .hero-photo { grid-area: 1 / 1; }
  .hero-main { position: relative; z-index: 1; align-self: start; }
  .hero-main .hero-title { margin-block: 1rem 1.25rem; }
  .hero-photo {
    justify-self: end;
    align-self: end;
    width: min(92vw, 440px);
    margin: 0 0 0 0;
    margin-inline-end: max(-26vw, -120px);
    aspect-ratio: 760 / 820; /* crops the photo at the chest */
    overflow: hidden;
  }
  .hero-photo img { width: 100%; height: auto; }
  .hero-photo::after { display: none; } /* clipped by the crop; the pool moves to the grid below */
  .hero-grid { background: radial-gradient(60% 40% at 22% 34%, rgba(var(--pool), 0.85), transparent 75%); }
  :root[dir="ltr"] .hero-grid { background-position: 0 0; background-image: radial-gradient(60% 40% at 78% 34%, rgba(var(--pool), 0.85), transparent 75%); }
  .hero-aside { grid-row: 2; max-width: none; }
  /* the ghost button sits over the shirt: give it a solid page-coloured fill so it stays legible */
  .hero-cta .btn-ghost { background: var(--bg); }
}
/* dark pool behind the portrait: the rings and dots fade out around him. It copies the img box
   (same anchor, height and aspect ratio), so it stays centred on him even where the photo runs
   past its column, then is scaled up around his head and shoulders. */
.hero-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  height: 100%;
  aspect-ratio: 760 / 1065;
  transform: scale(1.5);
  transform-origin: 50% 45%;
  z-index: -2;
  /* darker than the page itself, so the centre behind him reads as a deep, quiet backdrop */
  background: radial-gradient(closest-side at 50% 45%, rgb(var(--pool)) 35%, rgba(var(--pool), 0.75) 62%, transparent);
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(3.5rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-block: 1.5rem 2rem;
}
:root[lang="he"] .hero-title { font-weight: 500; letter-spacing: -0.01em; line-height: 1.02; }
.hero-title .accent { color: var(--accent); font-style: italic; }
:root[lang="he"] .hero-title .accent { font-style: normal; }
/* podcast-cover treatment: heavy sans, accent word drawn as a glowing cyan outline */
:root[lang] .hero-title { font-family: "Assistant", var(--font-body); font-weight: 800; letter-spacing: 0; }
/* same wordmark as the header .brand: white first name, solid cyan surname, weight 800 */
:root[lang] .hero-title .accent { font-style: normal; }

/* Masked line-reveal */
.mask { display: block; overflow: hidden; padding-block: 0.04em; }
.mask > span { display: block; transform: translateY(110%); animation: maskUp 1s var(--ease) forwards; }
.hero-title .mask:nth-child(1) > span { animation-delay: 0.12s; }
.hero-title .mask:nth-child(2) > span { animation-delay: 0.24s; }
@keyframes maskUp { to { transform: translateY(0); } }
/* room for descenders (the g in "Agiv") and the outline stroke inside the clipping mask */
.hero-title .mask { padding-block: 0.06em 0.16em; margin-bottom: -0.1em; }

/* desktop: the hero is one screen tall and the portrait fills its full height, from just
   under the nav to the bottom edge. It starts at the inner edge of its column and may run
   outward past the container (clipped by .hero), so it never overlaps the text. */
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-content: stretch;
    padding-block: clamp(5.5rem, 11vh, 7.5rem) 0;
  }
  .hero-text { align-self: center; padding-bottom: clamp(2rem, 6vh, 4rem); }
  .hero-title { font-size: clamp(3.5rem, min(7vw, 11.5vh), 8.5rem); margin-block: 1rem 1.6rem; }
  .hero-photo { align-self: stretch; justify-self: stretch; width: auto; margin: 0; }
  .hero-photo img {
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    height: 100%;
    width: auto;
    max-width: none;
  }
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-aside {
  max-width: 36ch;
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem);
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 1rem;
}
.hero-desc { color: var(--text-dim); font-size: 1.1rem; line-height: 1.65; }
.hero-desc + .hero-desc { margin-top: 0.9rem; }
@media (prefers-reduced-motion: reduce) {
  .mask > span { animation: none; transform: none; }
}

/* ---------- Section heading block ---------- */
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
  max-width: 60ch;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.75rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
:root[lang="he"] .section-head h2 { font-weight: 500; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
@media (min-width: 860px) {
  .about { grid-template-columns: 0.9fr 1.1fr; }
}
.about-lead .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.35rem);
  line-height: 1.28;
  color: var(--text);
  letter-spacing: -0.01em;
}
.about-body {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  max-width: 62ch;
}
.about-body p { color: var(--text-dim); font-size: 1.15rem; line-height: 1.75; }
.about-body p + p { margin-top: 1.1rem; }
/* the closing invitation reads as the call to action */
.about-body p:last-child { color: var(--text); }

/* ---------- Clients ---------- */
.clients-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.6rem, 1.4vw, 1rem);
}
/* 16 logos: 2 or 4 per row keeps every row full */
@media (min-width: 760px)  { .clients-grid { grid-template-columns: repeat(4, 1fr); } }
/* One-colour logos (white, background removed, in assets/clients/mono) on one shared tile.
   Each tile sets --w/--h so every logo carries the same visual weight whatever its shape. */
.client {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-elev);
  border: 1px solid var(--line-soft);
  border-radius: calc(var(--radius) * 0.75);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.client img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--w, 60%);
  height: var(--h, 40%);
  translate: -50% -50%;
  object-fit: contain;
  opacity: 0.78;
  transition: opacity 0.35s var(--ease);
}
.client:hover { border-color: var(--line); background: var(--bg-elev-2); }
.client:hover img { opacity: 1; }
/* a client without a usable logo gets a wordmark in the same white */
.client-word { display: grid; place-items: center; }
.client-word span {
  font-family: "Assistant", var(--font-body);
  font-weight: 800;
  font-size: clamp(1.05rem, 0.8rem + 1vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  opacity: 0.78;
  transition: opacity 0.35s var(--ease);
}
.client-word:hover span { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .client, .client img, .client-word span { transition: none; } }
html.a11y-contrast .client img, html.a11y-contrast .client-word span { opacity: 1; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (min-width: 620px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
/* 7 services: the last card fills the final row in both the 2- and 3-column layouts */
@media (min-width: 620px) { .services-grid .service:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.services-grid { perspective: 1400px; }

.service {
  position: relative;
  background: rgba(255, 255, 255, 0.024);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
  transform-style: preserve-3d;
  overflow: hidden;
}
/* cursor-tracking glass reflection */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 208, 227, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.service:hover::before { opacity: 1; }
.service::after {
  content: "";
  position: absolute;
  inset-block-start: 0; inset-inline-start: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: inline-start;
  transition: transform 0.5s var(--ease);
}
.service:hover { background: rgba(255, 255, 255, 0.05); }
.service:hover::after { transform: scaleX(1); }
.service .num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}
.service h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  line-height: 1.15;
  margin-top: auto;
}
:root[lang="he"] .service h3 { font-weight: 500; }
.service p { color: var(--text-dim); font-size: 1.05rem; line-height: 1.55; }
/* phones: a compact numbered list instead of seven tall, mostly empty cards */
@media (max-width: 619px) {
  .service {
    min-height: 0;
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
  }
  .service .num { flex: none; width: 1.6rem; color: var(--accent); font-weight: 700; }
  .service h3 { margin-top: 0; font-size: 1.22rem; line-height: 1.3; }
}

/* ---------- Podcast ---------- */
.podcast {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) { .podcast { grid-template-columns: 1fr 1fr; } }

.podcast-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(79,208,227,0.22), transparent 55%),
    linear-gradient(160deg, var(--bg-elev-2), var(--bg));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.podcast-card .waveform {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 90px;
}
.podcast-card .waveform span {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.85;
  animation: wave 1.4s ease-in-out infinite;
}
@keyframes wave {
  0%, 100% { height: 14px; opacity: 0.4; }
  50%      { height: 78px; opacity: 1; }
}
.podcast-card .pod-title {
  position: absolute;
  inset-block-end: 1.75rem;
  inset-inline-start: 1.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
}
.podcast-card .pod-badge {
  position: absolute;
  inset-block-start: 1.5rem;
  inset-inline-start: 1.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
}
.podcast-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 1.3rem + 2.5vw, 3.25rem);
  line-height: 1.08;
  margin-block: 1.25rem 1.5rem;
  letter-spacing: -0.015em;
}
:root[lang="he"] .podcast-body h2 { font-weight: 500; }
.podcast-body .lead { margin-bottom: 2rem; }

/* ---------- Podcast banner (CSS recreation of the "אביב מתעורר" cover) ---------- */
.pod-banner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(79, 208, 227, 0.22);
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  /* the banner keeps its own dark palette in both themes, like the original cover */
  background:
    radial-gradient(45% 75% at 22% 50%, rgba(79, 208, 227, 0.22), transparent 70%),
    radial-gradient(60% 90% at 85% 50%, rgba(30, 80, 120, 0.35), transparent 70%),
    linear-gradient(180deg, #060e17, #03080e);
  color: #e8f3f7;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (min-width: 760px) {
  .pod-banner { grid-template-columns: 1fr 1.15fr; min-height: clamp(380px, 40vw, 500px); }
}
/* portrait shot on black: faded into the banner so it reads as part of the cover, not a framed photo */
.pod-photo {
  order: -1; /* phones: photo above the text, fading down into it */
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: cover;
  object-position: center 18%;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
          mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
@media (min-width: 760px) {
  .pod-photo {
    order: 0;
    max-height: none;
    align-self: stretch;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 58%, transparent 92%);
            mask-image: linear-gradient(to right, transparent, #000 22%, #000 58%, transparent 92%);
  }
}
.pod-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
}
.pod-wave span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(#8ae6f2, #4fd0e3);
  box-shadow: 0 0 8px rgba(79, 208, 227, 0.5);
  transform-origin: center;
  animation: pod-eq 1.3s ease-in-out infinite;
}
@keyframes pod-eq {
  0%, 100% { transform: scaleY(0.3); opacity: 0.5; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/* particle field: three dot lattices of different size/pitch, densest on the left edge */
.pod-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* coprime tile sizes so the lattices never line up into a visible grid */
  background:
    radial-gradient(circle, var(--dot-a, rgba(150, 225, 240, 0.8)) 0 0.9px, transparent 1.5px) 3px 7px / 29px 31px,
    radial-gradient(circle, var(--dot-b, rgba(150, 225, 240, 0.6)) 0 1px, transparent 1.6px) 17px 2px / 37px 43px,
    radial-gradient(circle, var(--dot-c, rgba(79, 208, 227, 0.6)) 0 1.5px, transparent 2.2px) 9px 21px / 53px 47px,
    radial-gradient(circle, var(--dot-d, rgba(79, 208, 227, 0.45)) 0 1.8px, transparent 2.6px) 40px 11px / 71px 61px,
    radial-gradient(circle, var(--dot-e, rgba(110, 160, 210, 0.4)) 0 2.6px, transparent 3.4px) 21px 37px / 97px 83px;
  -webkit-mask-image: radial-gradient(70% 90% at 6% 50%, #000 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.12) 75%);
          mask-image: radial-gradient(70% 90% at 6% 50%, #000 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.12) 75%);
  animation: pod-drift 40s linear infinite;
}
.pod-particles::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, var(--bokeh-a, rgba(79, 170, 210, 0.55)) 0 5px, transparent 7px) 13px 29px / 113px 101px,
    radial-gradient(circle, var(--bokeh-b, rgba(60, 130, 190, 0.45)) 0 8px, transparent 11px) 61px 7px / 167px 139px;
  filter: blur(3px);
}
@keyframes pod-drift {
  to { background-position: 3px -303px, 17px -428px, 9px -449px, 40px -599px, 21px -811px; }
}

/* vortex: concentric rings drawn with a repeating gradient, cut into dots by a dot mask, then tilted */
.pod-vortex {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 78%;
  width: 150%;
  aspect-ratio: 1;
  translate: -50% -50%;
  transform: perspective(1100px) rotateX(64deg) rotateY(-14deg);
  pointer-events: none;
}
.pod-vortex span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* --ring-gap is the distance between rings; the page background animates it on scroll */
  background: repeating-radial-gradient(circle,
    transparent 0 calc(var(--ring-gap, 5%) * 0.38),
    var(--ring, rgba(130, 215, 230, 0.9)) calc(var(--ring-gap, 5%) * 0.44) calc(var(--ring-gap, 5%) * 0.66),
    transparent calc(var(--ring-gap, 5%) * 0.72) var(--ring-gap, 5%));
  -webkit-mask-image:
    radial-gradient(circle, #000 0 1.3px, transparent 1.9px),
    radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.7) 30%, transparent 62%);
          mask-image:
    radial-gradient(circle, #000 0 1.3px, transparent 1.9px),
    radial-gradient(circle, #000 0%, rgba(0, 0, 0, 0.7) 30%, transparent 62%);
  -webkit-mask-size: 5px 5px, 100% 100%;
          mask-size: 5px 5px, 100% 100%;
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
  opacity: 0.75;
  animation: pod-spin 90s linear infinite;
}
@keyframes pod-spin { to { rotate: 360deg; } }

.pod-content {
  position: relative;
  padding: clamp(1.5rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1rem;
}
.pod-content .eyebrow { color: #4fd0e3; }
.pod-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15em 0.3em;
  font-family: "Assistant", var(--font-body);
  font-weight: 800;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem);
  line-height: 1;
  letter-spacing: 0;
}
.pod-solid { color: #ffffff; }
.pod-outline {
  color: #061523;
  letter-spacing: 0.03em;
  paint-order: stroke fill;
  -webkit-text-stroke: clamp(2.4px, 0.5vw, 4.4px) #4fd0e3;
  text-shadow: 0 0 24px rgba(79, 208, 227, 0.35);
}
.pod-mic { width: 0.55em; height: 0.55em; color: #4fd0e3; }
.pod-sub {
  max-width: 24ch;
  text-wrap: balance;
  font-size: clamp(1.2rem, 0.95rem + 1.2vw, 1.75rem);
  line-height: 1.35;
  color: #7fe0ee;
}
.pod-links { display: flex; gap: 0.9rem; margin-top: 0.5rem; }
.pod-link {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pod-link svg { width: 100%; height: 100%; }
.pod-link:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(30, 215, 96, 0.35); }
.pod-link:focus-visible { outline: 2px solid #4fd0e3; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .pod-particles, .pod-vortex span, .pod-wave span { animation: none; }
  .pod-link, .pod-link:hover { transition: none; transform: none; }
}
html.a11y-contrast .pod-banner { background: #000 !important; }
html.a11y-contrast .pod-particles,
html.a11y-contrast .pod-vortex { display: none; }
html.a11y-contrast .pod-outline { -webkit-text-stroke-color: #ffe000; text-shadow: none; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact .section-head { margin-inline: auto; text-align: center; }
.contact .section-head .eyebrow { justify-content: center; }
.contact h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
:root[lang="he"] .contact h2 { font-weight: 500; }
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1rem + 2vw, 2.5rem);
  color: var(--accent);
  position: relative;
}
/* phone sits under the email, one step quieter */
.contact-phone {
  display: block;
  width: fit-content;
  margin: 0.9rem auto 3rem;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 0.9rem + 1vw, 1.6rem);
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.contact-phone:hover { color: var(--accent); }
.contact-email::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -4px;
  height: 1px; background: var(--accent); transform: scaleX(0);
  transform-origin: inline-start; transition: transform 0.4s var(--ease);
}
.contact-email:hover::after { transform: scaleX(1); }

.contact-form {
  max-width: 560px;
  margin-inline: auto;
  display: grid;
  gap: 1.1rem;
  text-align: start;
}
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
:root[lang="he"] .field label { letter-spacing: 0.04em; }
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg-elev);
  border: 1px solid var(--line-ui); /* ~3:1 boundary contrast (WCAG 1.4.11) */
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #f0908c;
}
.field-error {
  color: #f2a6a2;              /* ~5:1 on --bg */
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.15em; height: 1.15em;
  border-radius: 50%;
  background: #f0908c;
  color: #07121c;
  font-weight: 700;
  font-size: 0.85em;
  flex: none;
}
.form-hint {
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}
.form-hint .req { color: var(--accent); }
.form-status {
  font-size: 1.02rem;
  color: var(--accent);
  min-height: 1.2em;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elev-2);
}
.field textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { justify-self: start; margin-top: 0.5rem; }
.form-note { font-size: 0.92rem; color: var(--text-mute); margin-top: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
  position: relative;
  z-index: 2;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
}
.footer-brand .brand { font-size: 1.6rem; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-dim); max-width: 32ch; font-size: 1.02rem; }
.footer-social { display: flex; gap: 1.5rem; }
.footer-social a {
  font-size: 0.98rem; color: var(--text-dim);
  transition: color 0.3s var(--ease);
}
.footer-social a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--text-mute);
}

/* ---------- Scroll reveal (progressive enhancement) ----------
   Content is visible by default; only when JS is active (html.js) do we
   hide-then-reveal. If JS ever fails to run, nothing stays hidden. */
.reveal {
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.40s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .podcast-card .waveform span { animation: none; }
}

/* ---------- Mobile nav overlay ---------- */
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    /* frosted glass, like the desktop header: the page stays faintly visible behind the links */
    background: var(--glass-menu);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
  }
  body.menu-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { font-family: var(--font-display); font-size: 2rem; color: var(--text); }
  .nav-links a::after { display: none; }
  .nav .btn-primary { display: none; }
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 200;
  pointer-events: none;
}
:root[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }

/* ---------- Lenis smooth scroll ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ==========================================================================
   Glow lines · Liquid glass · Cursor light
   ========================================================================== */

/* ---------- Animated glow line (reusable divider) ---------- */
.glow-line {
  position: relative;
  z-index: 2;
  height: 2px;
  width: 100%;
  background: var(--line-soft);
  overflow: hidden;
}
.glow-line::after {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
  filter: blur(0.5px);
  box-shadow: 0 0 16px 2px rgba(79, 208, 227, 0.75);
  animation: glowSlide var(--glow-dur, 3s) var(--ease) infinite;
}
@keyframes glowSlide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(600%); }
}
@media (prefers-reduced-motion: reduce) {
  .glow-line::after { animation: none; opacity: 0.5; left: 40%; }
}

@keyframes glowSweep {
  0%   { background-position: -30% 0; }
  100% { background-position: 130% 0; }
}

/* ---------- Traveling ambient halo (whole page, scroll-driven) ---------- */
.page-halo {
  opacity: var(--halo-strength, 1);
  position: fixed;
  top: 50%;
  left: 50%;
  width: 85vmax;
  height: 85vmax;
  margin: -42.5vmax 0 0 -42.5vmax;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(79, 208, 227, 0.24),
    rgba(79, 208, 227, 0.1) 34%,
    transparent 62%);
  filter: blur(42px);
  pointer-events: none;
  z-index: 0;
  transform: translate(0, -26vh);
  will-change: transform;
}

@media (max-width: 640px) {
  .page-halo {
    width: 110vmax;
    height: 110vmax;
    margin: -55vmax 0 0 -55vmax;
    background: radial-gradient(circle,
      rgba(79, 208, 227, 0.42),
      rgba(79, 208, 227, 0.18) 34%,
      transparent 64%);
    filter: blur(36px);
  }
}

/* ---------- Podcast-cover space background (whole page) ----------
   Reuses the .pod-particles / .pod-vortex layers from the podcast banner,
   fixed to the viewport and toned down so body text stays readable. */
.page-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: calc(0.4 * var(--space-strength, 1));
}
/* soft fade on all four screen edges so the rings never end on a hard line. An overlay in the
   page colour, not a mask: Safari stops redrawing animated layers inside a masked parent. It is
   painted inside the layer's group opacity, so it fully hides the rings and blends into --bg. */
.page-space::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--bg), transparent 14%, transparent 86%, var(--bg)),
    linear-gradient(to bottom, var(--bg), transparent 12%, transparent 88%, var(--bg));
}
.page-space .pod-particles {
  -webkit-mask-image: radial-gradient(80% 70% at 100% 0%, #000, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.08) 85%);
          mask-image: radial-gradient(80% 70% at 100% 0%, #000, rgba(0, 0, 0, 0.25) 55%, rgba(0, 0, 0, 0.08) 85%);
}
/* vortex sits on the side opposite the RTL text column and drifts up with scroll. --scroll is set
   on .page-space by main.js every frame. Both the drift (`translate`) and the ring spacing (`scale`
   on the rings) are transforms, so scrolling only recomposites and never repaints the gradient. */
.page-space .pod-vortex {
  top: 55%;
  translate: -50% calc(-50% - var(--scroll, 0) * 30vh);
  left: 14%;
  width: max(110vmax, 900px);
}
:root[dir="ltr"] .page-space .pod-vortex { left: 86%; }
.page-space .pod-vortex span { opacity: 0.45; }
/* rings start wide apart at the top of the page and draw closer together while scrolling:
   the gradient is drawn at the final spacing and scaled up from 2.6x down to 1x */
.page-space .pod-vortex span { --ring-gap: 5%; scale: calc(2.6 - var(--scroll, 0) * 1.6); }
/* the dots scale with the rings (masks stay on the animated element itself, which Safari keeps
   animating), so they start finer than the banner's to stay fine at the wide top-of-page scale */
.page-space .pod-vortex span {
  -webkit-mask-size: 3.6px 3.6px, 100% 100%;
          mask-size: 3.6px 3.6px, 100% 100%;
}

@media (max-width: 640px) {
  .page-space { opacity: calc(0.3 * var(--space-strength, 1)); }
  /* same composition as desktop: dots top-right, rings off the left edge, away from the text */
  .page-space .pod-vortex { left: 0%; top: 62%; width: 150vmax; }
  /* the tilt squashes the rings into close dotted lines on a narrow screen, so phones get a much
     wider spacing (still tightening on scroll) */
  .page-space .pod-vortex span { --ring-gap: 10%; scale: calc(2.2 - var(--scroll, 0) * 1.2); }
  .page-space .pod-particles {
    -webkit-mask-image: radial-gradient(90% 45% at 100% 0%, #000, rgba(0, 0, 0, 0.2) 60%, transparent 90%);
            mask-image: radial-gradient(90% 45% at 100% 0%, #000, rgba(0, 0, 0, 0.2) 60%, transparent 90%);
  }
}
/* static spacing when motion is off (after the phone rule so it wins there too) */
@media (prefers-reduced-motion: reduce) {
  .page-space .pod-vortex span { --ring-gap: 8%; scale: 1; }
}
html.a11y-stop-motion .page-space .pod-vortex span { --ring-gap: 8%; scale: 1; }
:root:not([data-theme="light"]) .page-space {
  --dot-a: rgba(255, 255, 255, 0.7);
  --dot-b: rgba(255, 255, 255, 0.5);
  --dot-c: rgba(255, 255, 255, 0.45);
  --dot-d: rgba(255, 255, 255, 0.3);
  --dot-e: rgba(255, 255, 255, 0.2);
  --bokeh-a: rgba(255, 255, 255, 0.18);
  --bokeh-b: rgba(255, 255, 255, 0.12);
  --ring: rgba(255, 255, 255, 0.7);
}
html.a11y-contrast .page-space { display: none !important; }

/* ---------- Liquid glass background (whole page) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 38% at 20% 28%, rgba(79, 208, 227, 0.10), transparent 60%),
    radial-gradient(34% 34% at 82% 18%, rgba(120, 145, 210, 0.055), transparent 60%),
    radial-gradient(44% 44% at 62% 82%, rgba(79, 208, 227, 0.07), transparent 60%);
  filter: blur(46px);
  animation: liquidDrift 26s ease-in-out infinite alternate;
}
@keyframes liquidDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(2.5%, -3%, 0) scale(1.09); }
  100% { transform: translate3d(-2.5%, 2.5%, 0) scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
}

/* ---------- Extra glass surfaces ---------- */
.podcast-card {
  backdrop-filter: blur(6px) saturate(130%);
  -webkit-backdrop-filter: blur(6px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.field input,
.field textarea {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.field input:focus,
.field textarea:focus { background: rgba(255, 255, 255, 0.06); }
.btn-ghost {
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  background: rgba(255, 255, 255, 0.02);
}


/* ==========================================================================
   Floating contact launcher (mobile only) — slides out WhatsApp + email
   ========================================================================== */
.fab {
  position: fixed;
  inset-block-end: 1.15rem;
  inset-inline-end: 1.15rem;
  z-index: 90;
  display: none;
}
@media (max-width: 860px) { .fab { display: block; } }

.fab-toggle {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #07121c;
  background: var(--accent-fill);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.fab-toggle:active { transform: scale(0.94); }
.fab-toggle svg { width: 26px; height: 26px; }
.fab-toggle .i-close { display: none; }
.fab.open .fab-toggle { background: var(--bg-elev-2); color: var(--text); }
.fab.open .fab-toggle .i-open { display: none; }
.fab.open .fab-toggle .i-close { display: block; }

.fab-action {
  position: absolute;
  inset-inline-end: 4px;
  inset-block-end: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(8px) scale(0.7);
  pointer-events: none;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.fab-action svg { width: 24px; height: 24px; }
.fab-wa { background: #25d366; }
.fab-mail { background: var(--accent-fill); color: #07121c; }
.fab.open .fab-action { opacity: 1; pointer-events: auto; }
.fab.open .fab-wa   { transform: translateY(-66px) scale(1); }
.fab.open .fab-mail { transform: translateY(-122px) scale(1); }

.fab-label {
  position: absolute;
  inset-inline-end: 58px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text);
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.fab.open .fab-label { opacity: 1; transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .fab-action { transition: opacity 0.2s; }
}

/* ==========================================================================
   Accessibility widget + user setting modes + statement page
   ========================================================================== */
.a11y-widget {
  position: fixed;
  inset-block-end: 1.15rem;
  inset-inline-start: 1.15rem;
  z-index: 120;
}
.a11y-trigger {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-fill);
  color: #07121c;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.a11y-trigger:hover { background: var(--accent-2); }
.a11y-trigger:active { transform: scale(0.95); }
.a11y-trigger svg { width: 27px; height: 27px; }

.a11y-panel {
  position: absolute;
  inset-block-end: calc(100% + 12px);
  inset-inline-start: 0;
  width: min(300px, calc(100vw - 2.3rem));
  background: var(--bg-elev-2);
  border: 1px solid var(--line-ui);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
  padding: 1.1rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a11y-title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; }
.a11y-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-ui);
  display: grid; place-items: center;
}
.a11y-close:hover { background: var(--bg-elev); }

.a11y-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.9rem; font-size: 0.92rem;
}
.a11y-stepper { display: inline-flex; align-items: center; gap: 0.4rem; }
.a11y-stepper button {
  min-width: 40px; height: 40px; padding: 0 0.5rem;
  border-radius: 8px; border: 1px solid var(--line-ui);
  font-weight: 600; font-size: 0.95rem;
}
.a11y-stepper button:hover { background: var(--accent-fill); color: #07121c; border-color: var(--accent-fill); }
.a11y-stepper [data-a11y-size] { min-width: 48px; text-align: center; font-variant-numeric: tabular-nums; }

.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin-bottom: 1rem; }
.a11y-toggle {
  padding: 0.65rem 0.5rem;
  border-radius: 9px;
  border: 1px solid var(--line-ui);
  font-size: 0.85rem; text-align: center;
  color: var(--text);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.a11y-toggle:hover { border-color: var(--accent); }
.a11y-toggle[aria-pressed="true"] {
  background: var(--accent-fill); color: #07121c;
  border-color: var(--accent-fill); font-weight: 600;
}

.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.a11y-reset { font-size: 0.85rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.a11y-reset:hover { color: var(--text); }
.a11y-statement-link { font-size: 0.85rem; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- User setting modes (applied to <html>) ---- */
html.a11y-contrast {
  --bg: #000000; --bg-elev: #000000; --bg-elev-2: #0a0a0a;
  --text: #ffffff; --text-dim: #ffffff; --text-mute: #ffffff;
  --accent: #ffe000; --accent-2: #ffe000;
  --line: #ffffff; --line-soft: #cccccc; --line-ui: #ffffff;
}
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast body::before,
html.a11y-contrast body::after,
html.a11y-contrast .page-halo { display: none !important; }
html.a11y-contrast .service,
html.a11y-contrast .podcast-card,
html.a11y-contrast .field input,
html.a11y-contrast .field textarea,
html.a11y-contrast .a11y-panel { background: #000 !important; }
html.a11y-contrast .btn-primary,
html.a11y-contrast .a11y-trigger,
html.a11y-contrast .a11y-toggle[aria-pressed="true"] { background: #ffe000 !important; color: #000 !important; }

html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

html.a11y-spacing p,
html.a11y-spacing li,
html.a11y-spacing .lead,
html.a11y-spacing .hero-desc,
html.a11y-spacing label,
html.a11y-spacing .service p {
  line-height: 1.9 !important;
  letter-spacing: 0.06em !important;
  word-spacing: 0.16em !important;
}
html.a11y-spacing p { margin-bottom: 1.7em !important; }

html.a11y-readable,
html.a11y-readable button,
html.a11y-readable input,
html.a11y-readable textarea,
html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3,
html.a11y-readable .hero-title,
html.a11y-readable .brand,
html.a11y-readable .display {
  font-family: Arial, "Assistant", "Helvetica Neue", sans-serif !important;
  letter-spacing: normal !important;
  font-style: normal !important;
}

html.a11y-stop-motion *,
html.a11y-stop-motion *::before,
html.a11y-stop-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

html.a11y-big-cursor, html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M5 2v18l5-5 3 7 3-1-3-7h7z' fill='%23000' stroke='%23fff' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 5 2, auto !important;
}

/* ---- Accessibility statement page ---- */
.legal { max-width: 760px; }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
:root[lang="he"] .legal h1 { font-weight: 500; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem);
  margin: 2.25rem 0 0.6rem;
}
:root[lang="he"] .legal h2 { font-weight: 500; }
.legal p, .legal li { color: var(--text-dim); line-height: 1.8; }
.legal p { margin-bottom: 0.75rem; }
.legal ul { list-style: disc; padding-inline-start: 1.4em; margin: 0.5rem 0 1rem; display: grid; gap: 0.4rem; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal .updated { color: var(--text-mute); font-size: 0.9rem; margin-top: 2.5rem; }

/* ==========================================================================
   Unified type: headings are set in Assistant like the hero name and podcast title,
   so the weights the old serif used (400/500) are raised to suit a sans-serif.
   ========================================================================== */
:root[lang] .section-head h2,
:root[lang] .contact h2,
:root[lang] .podcast-body h2,
:root[lang] .legal h1 { font-weight: 800; letter-spacing: -0.01em; line-height: 1.05; }
:root[lang] .display,
:root[lang] .service h3,
:root[lang] .legal h2 { font-weight: 700; letter-spacing: 0; }
:root[lang] .hero-sub,
:root[lang] .contact-email, :root[lang] .contact-phone { font-weight: 600; letter-spacing: 0; }
:root[lang] .about-lead .big { font-weight: 500; letter-spacing: 0; line-height: 1.4; }
:root[lang] .brand { font-weight: 800; letter-spacing: 0; }
@media (max-width: 860px) { :root[lang] .nav-links a { font-weight: 700; } }

/* ==========================================================================
   Light theme (opt-in via the header toggle — data-theme="light" on <html>)
   The client's "light" view is the original navy palette; the default dark view is near-black.
   ========================================================================== */
:root[data-theme="light"] {
  --bg:        #07121c;
  --bg-elev:   #0c1b28;
  --bg-elev-2: #122636;
  --line:      rgba(220, 238, 245, 0.10);
  --line-soft: rgba(220, 238, 245, 0.06);
  --line-ui:   rgba(220, 238, 245, 0.42);
  --text:      #e8f3f7;
  --text-dim:  #a3bcc6;
  --text-mute: #84a0ac;
  --glass:      rgba(7, 18, 28, 0.72);
  --glass-menu: rgba(7, 18, 28, 0.6);
  --pool:       2, 7, 12;
  --halo-strength: 1;
  --space-strength: 1;
}
