/* מפתח אקספרס — phone-first.
   one cinematic hero, two real CTAs, one info strip. nothing else.
   the page is a shop sign, not a brochure. */

:root {
  --paper:    #ece2cc;
  --paper-2:  #d8cdb4;
  --rule:     #4051f5;     /* cobalt accent */
  --ink:      #0a0d1c;     /* deep cool navy — almost black with a blue undertone */
  --ink-2:    #141a2e;
  --ink-3:    #6e6e85;
  --chalk:    #ece2cc;     /* warm ivory text */
  --whatsapp: #25d366;

  --hair:   rgba(10, 13, 28, 0.16);
  --hair-2: rgba(10, 13, 28, 0.34);
  --hair-paper: rgba(236, 226, 204, 0.18);

  --display:   "Karantina", "Frank Ruhl Libre", Georgia, serif;
  --display-2: "Frank Ruhl Libre", Georgia, serif;
  --display-3: "Bellefair", "Frank Ruhl Libre", Georgia, serif;
  --body:      "Heebo", system-ui, sans-serif;
  --mono:      "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html, body { background: var(--ink); }

html {
  /* fallback for browsers that don't support svh */
  scroll-behavior: smooth;
  /* avoid horizontal overflow on tiny viewports */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--chalk);
  -webkit-font-smoothing: antialiased;
  /* safety net: any long Hebrew/URL string breaks instead of forcing
     horizontal scroll on narrow phones */
  overflow-wrap: anywhere;
  word-break: normal;
  min-width: 0;
}

/* every interactive element should hit the 44px touch target floor */
a, button, .cta {
  -webkit-tap-highlight-color: rgba(64, 81, 245, 0.18);
}

::selection { background: var(--rule); color: var(--chalk); }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
/* hint to the browser: every non-priority image can be lazy-loaded
   (HTML attr is the primary signal, this is a fetchpriority backup) */
img:not([loading]) { loading: lazy; }
button, input, select { font: inherit; color: inherit; background: transparent; border: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
}

/* --- top bar --- */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 14px 28px;
  background: var(--ink);
  border-bottom: 1px solid var(--hair-paper);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(236, 226, 204, 0.7);
  text-transform: uppercase;
}
.bar .cipher { margin: 0; color: var(--rule); font-weight: 700; }
.bar-folio { margin: 0; }
.bar-call {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--chalk);
  font-weight: 700;
}
.bar-call:hover { color: var(--rule); }
.bar-call .dot {
  width: 8px; height: 8px;
  background: var(--rule);
  border-radius: 50%;
  animation: livePulse 2.8s cubic-bezier(0.65,0,0.35,1) infinite;
}

/* --- HERO — full-bleed, single screen on desktop --- */

.hero {
  position: relative;
  min-height: auto;
  display: block;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("illustrations/hero-key-photo.webp");
  background-size: cover;
  /* image is wide and centered on the key+lock; on mobile we want the key
     pulled slightly to the right (RTL-end) so it sits behind the headline */
  background-position: 60% 50%;
  background-repeat: no-repeat;
  background-color: #0a0d1c;
  /* a slow living-still: 14s loop, 1% scale + 1% pan. quiet, not jiggly. */
  animation: heroBreathe 22s ease-in-out infinite;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* one directional gradient — RTL: ink on the right (where the text sits),
     transparent on the left (where the photo's lock sits) */
  background:
    linear-gradient(270deg, rgba(10,13,28,0.92) 0%, rgba(10,13,28,0.72) 32%, rgba(10,13,28,0.18) 62%, rgba(10,13,28,0) 100%),
    linear-gradient(180deg, rgba(10,13,28,0.4) 0%, transparent 30%, transparent 70%, rgba(10,13,28,0.55) 100%);
}

.hero-inner {
  position: relative;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(72px, 8vw, 110px) 0 clamp(20px, 2.5vw, 36px);
  display: grid;
  gap: 10px;
  /* the brand mark needs room — let the column flex to the container */
  grid-template-columns: minmax(0, 1fr);
}

.hero-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--chalk);
  text-transform: uppercase;
  background: rgba(64, 81, 245, 0.92);
  width: fit-content;
}

/* ---- BRAND MARK — kinetic display typography for "הגלריה".
   Each letter sits in an overflow-hidden frame; the inner span
   slides up from translateY(110%) on load with a staggered delay.
   After the mark resolves, a red hairline draws underneath and a
   small accent dot rides it continuously, like a pickpoint scanning. ---- */

.brand {
  margin: 0;
  display: block;
  /* container for mark + rule */
  --brand-rise: 800ms;
  --brand-stagger: 80ms;
  --brand-rule-delay: 700ms;
}

.brand-mark {
  display: inline-flex;
  /* native RTL flow — letters appear right-to-left to the reader */
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(5.6rem, 17vw, 13.5rem);
  line-height: 0.86;
  letter-spacing: -0.012em;
  color: var(--chalk);
}
.brand-letter {
  display: inline-block;
  overflow: hidden;
  /* a small horizontal nudge for kerning; Karantina runs tight already */
  padding: 0 0.005em;
}
.brand-letter > span {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: brandRise var(--brand-rise) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.brand-letter:nth-child(1) > span { animation-delay: calc(var(--brand-stagger) * 0); }
.brand-letter:nth-child(2) > span { animation-delay: calc(var(--brand-stagger) * 1); }
.brand-letter:nth-child(3) > span { animation-delay: calc(var(--brand-stagger) * 2); }
.brand-letter:nth-child(4) > span { animation-delay: calc(var(--brand-stagger) * 3); }
.brand-letter:nth-child(5) > span { animation-delay: calc(var(--brand-stagger) * 4); }
.brand-letter:nth-child(6) > span { animation-delay: calc(var(--brand-stagger) * 5); }
@keyframes brandRise {
  0%   { transform: translateY(110%); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translateY(0);    opacity: 1; }
}

/* tamburia — a sub-mark beneath the heavy "הגלריה" wordmark.
   Bellefair (wide elegant serif) for strong contrast with Karantina.
   Entrance: a cinematic letter-spacing expansion + blur-focus. Each
   letter starts spread wide and blurred, then drifts together as it
   sharpens — a "rack focus" feel for the sub-mark to claim attention
   on its own beat (700ms after the main wordmark settles). */
.brand-sub {
  display: block;
  margin-top: clamp(4px, 0.6vw, 10px);
  font-family: var(--display-3);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: 0.18em;
  color: rgba(236, 226, 204, 0.94);
  /* offset to balance the letter-spacing visually in RTL */
  padding-inline-end: 0.18em;
  /* combined: entrance reveal + scroll-driven exit-return */
  animation: brandSubReveal 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--brand-rule-delay) + 80ms);
  will-change: transform, opacity, letter-spacing, filter;
}
@keyframes brandSubReveal {
  0%   { opacity: 0; letter-spacing: 1.6em; filter: blur(6px); transform: translateY(-4px); }
  55%  { opacity: 1; filter: blur(0);                                                          }
  100% { opacity: 1; letter-spacing: 0.22em; filter: blur(0); transform: translateY(0);        }
}

/* scroll-driven exit/return for the brand mark + sub-mark — as the
   hero scrolls past the viewport, both lift and dim, reversing on
   scroll-back. Falls back to no animation in browsers without
   scroll-timeline support (Safari < 26). */
@supports (animation-timeline: view()) {
  .brand-mark,
  .brand-sub {
    animation-name: brandMarkExit;
    animation-fill-mode: both;
    animation-timing-function: linear;
    animation-timeline: view(block);
    animation-range: exit 0% exit 90%;
  }
  /* preserve the original reveal animations on the sub-mark by layering;
     scroll-driven exit only applies on exit range */
  .brand-sub {
    animation:
      brandSubReveal 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
      brandMarkExit linear both;
    animation-delay: calc(var(--brand-rule-delay) + 80ms), 0s;
    animation-timeline: auto, view(block);
    animation-range: auto, exit 0% exit 90%;
  }
}
@keyframes brandMarkExit {
  0%   { transform: translateY(0)     scale(1);    opacity: 1;   filter: blur(0); }
  100% { transform: translateY(-32px) scale(0.98); opacity: 0.15; filter: blur(2px); }
}

/* a hairline rule that draws under the mark, with a single
   slow-traveling dot riding along it (RTL: right → left) */
.brand-rule {
  display: block;
  position: relative;
  margin-top: 12px;
  height: 1px;
  width: 0;
  background: var(--rule);
  animation: brandRule 1100ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--brand-rule-delay);
  max-width: 540px;
}
@keyframes brandRule {
  to { width: clamp(280px, 38vw, 540px); }
}
.brand-rule-dot {
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rule);
  box-shadow: 0 0 10px rgba(64, 81, 245, 0.85);
  opacity: 0;
  animation: brandDot 6.4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  /* kicks in after the rule has finished drawing */
  animation-delay: calc(var(--brand-rule-delay) + 1100ms);
}
@keyframes brandDot {
  0%   { inset-inline-start: 0;    opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { inset-inline-start: 100%; opacity: 0; }
}

/* sales-line: the "מומחה לשכפול כל סוגי המפתחות" subtitle. Big serif
   with an italic cobalt accent on "כל", and a slow shimmer that sweeps
   across the text every few seconds — draws the eye without screaming. */
.brand-tagline {
  margin: 22px 0 0;
  font-family: var(--display-2);
  font-weight: 700;
  font-size: clamp(3.1rem, 6.4vw, 5.1rem);
  line-height: 1.08;
  color: var(--chalk);
  white-space: nowrap;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: brandFade 720ms ease forwards;
  animation-delay: calc(var(--brand-rule-delay) + 280ms);
}
.brand-tagline em {
  position: relative;
  font-style: italic;
  font-weight: 900;
  color: var(--rule);
  /* shimmer: a brighter highlight slides across the cobalt every 6s */
  background:
    linear-gradient(100deg,
      var(--rule) 0%,
      var(--rule) 40%,
      #8a99ff 50%,
      var(--rule) 60%,
      var(--rule) 100%);
  background-size: 220% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: brandEmShimmer 6s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  animation-delay: calc(var(--brand-rule-delay) + 1400ms);
  padding-inline: 0.04em;
}
@keyframes brandEmShimmer {
  0%, 35%, 100% { background-position: 100% 0; }
  55%, 70%      { background-position: -20% 0; }
}

/* address pull-line — sits directly under the tagline as a tappable
   maps link. Slightly smaller than the tagline but still prominent,
   with a cobalt hairline underline that thickens on hover. */
.brand-address {
  margin: 8px 0 0;
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  line-height: 1.25;
  color: rgba(236, 226, 204, 0.86);
  opacity: 0;
  animation: brandFade 720ms ease forwards;
  animation-delay: calc(var(--brand-rule-delay) + 380ms);
}
.brand-address a {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--rule), var(--rule));
  background-position: right 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  transition: background-size 320ms cubic-bezier(0.2, 0.8, 0.2, 1), color 200ms ease;
}
.brand-address a:hover {
  color: var(--chalk);
  background-size: 100% 2.5px;
}

@keyframes brandFade { to { opacity: 1; } }

/* prevent ugly Hebrew phrase breaks (e.g. החלפת סוללות בשלטים onto two lines) */
.nowrap { white-space: nowrap; }

.hero-sub {
  margin: 16px 0 0;
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(1.16rem, 1.95vw, 1.55rem);
  line-height: 1.32;
  color: rgba(236, 226, 204, 0.82);
  max-width: 42ch;
  text-wrap: balance;
  opacity: 0;
  animation: brandFade 720ms ease forwards;
  animation-delay: calc(var(--brand-rule-delay) + 480ms);
}
.hero-sub em {
  font-style: normal;
  color: var(--rule);
  font-weight: 700;
}
.hero-sub-services {
  display: block;
  margin-top: 12px;
  font-size: 0.92em;
  color: rgba(236, 226, 204, 0.72);
  text-align: center;
  max-width: 42ch;
}

/* ---- CYL-STAGE — the editorial cylinder section, after the canvas reveal ---- */
.cyl-stage {
  position: relative;
  background: var(--ink);
  padding: clamp(64px, 9vw, 120px) 28px clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--hair-paper);
}
.cyl-figure {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.cyl-cap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(236, 226, 204, 0.55);
  text-transform: uppercase;
  border-bottom: 1px solid var(--hair-paper);
  padding-bottom: 14px;
}
.cyl-cap-mute { color: var(--rule); font-weight: 700; }
.cyl-stage .cyl-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

/* --- side cross-section cylinder. key slides horizontally only.
   drivers lift in sequence as the blade reaches each chamber.
   shear-line "clicks" at the moment of full alignment. no diagonal tilt. --- */

.cyl-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  overflow: visible;
}

/* Master clock for the cylinder choreography. Every animation is a phase of this loop:
   0–14%   rest, status dim
   14–22%  blade slides in
   17–28%  driver pins lift in sequence (dp1→dp5), status dots fill
   28–32%  click — shear flashes hard, body shudders
   32–48%  plug rotates clockwise to +14°  (key bow swings up)
   48–62%  hold rotated  (lock open)
   62–76%  plug rotates back to 0
   76–82%  pins drop, status dots empty
   82–92%  blade retracts
   92–100% rest                                                                       */
:root { --kc: 13s; }

/* The whole cylinder gets a tiny "torque shudder" on the click moment (28–32%) */
.cyl-svg .cyl {
  transform-box: view-box;
  transform-origin: 350px 130px;
  animation: cylShudder var(--kc) linear infinite;
}
@keyframes cylShudder {
  0%, 27%, 33%, 100% { transform: translate(0, 0); }
  28%   { transform: translate(0.6px, -0.4px); }
  29%   { transform: translate(-0.5px, 0.5px); }
  30%   { transform: translate(0.4px, 0.3px); }
  31%   { transform: translate(-0.3px, -0.3px); }
}

/* PLUG ROTOR — rotates around the cylinder's axis at (350,151).
   This is the central new element: the key+key-pins+keyway turn together,
   the body and plug-shell stay fixed. Rotation reads as "the lock just turned." */
.cyl-svg .plug-rotor {
  transform-box: view-box;
  transform-origin: 350px 151px;
  animation: plugRotate var(--kc) cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes plugRotate {
  0%, 32%       { transform: rotate(0deg); }
  48%, 62%      { transform: rotate(14deg); }
  76%, 100%     { transform: rotate(0deg); }
}

/* FACE TICK — the small red notch on the cylinder face. rotates around (240,130)
   in lock-step with the plug, so the rotation is visible from outside too. */
.cyl-svg .face-tick {
  transform-box: view-box;
  transform-origin: 240px 130px;
  animation: faceTickRotate var(--kc) cubic-bezier(0.7, 0, 0.3, 1) infinite;
}
@keyframes faceTickRotate {
  0%, 32%   { transform: rotate(0deg); }
  48%, 62%  { transform: rotate(14deg); }
  76%, 100% { transform: rotate(0deg); }
}

/* KEY: slides horizontally only. inserted at translateX(154) — blade tip lands
   just past the last chamber. withdrawn at translateX(-180) — bow off-screen left.
   Note: the .key is INSIDE .plug-rotor, so its translateX compounds with the rotor's
   rotation. After insertion (22%) the key is held at 154 through the rotation phase. */
.cyl-svg .key {
  transform-box: view-box;
  transform-origin: 0 0;
  animation: keySlide var(--kc) cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
@keyframes keySlide {
  0%,  10%   { transform: translateX(-180px); }
  22%        { transform: translateX(154px); }
  82%        { transform: translateX(154px); }
  92%, 100%  { transform: translateX(-180px); }
}

/* DRIVER PINS: each lifts in sequence as the blade reaches it.
   chamber 1 first (closest to face), chamber 5 last. */
.cyl-svg .dp { transform-box: fill-box; transform-origin: 50% 0; }
.cyl-svg .dp-1 { animation: dp1 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .dp-2 { animation: dp2 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .dp-3 { animation: dp3 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .dp-4 { animation: dp4 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .dp-5 { animation: dp5 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }

/* lift amounts (the "bitting code"): 5 / 8 / 3 / 7 / 6 px. Pins stay seated
   from ~22% through ~76%, fall together as the rotor returns to 0. */
@keyframes dp1 { 0%, 16% { transform: translateY(0); } 19%, 76% { transform: translateY(-5px); } 80%, 100% { transform: translateY(0); } }
@keyframes dp2 { 0%, 17% { transform: translateY(0); } 20%, 76% { transform: translateY(-8px); } 80%, 100% { transform: translateY(0); } }
@keyframes dp3 { 0%, 18% { transform: translateY(0); } 21%, 76% { transform: translateY(-3px); } 80%, 100% { transform: translateY(0); } }
@keyframes dp4 { 0%, 19% { transform: translateY(0); } 22%, 76% { transform: translateY(-7px); } 80%, 100% { transform: translateY(0); } }
@keyframes dp5 { 0%, 20% { transform: translateY(0); } 23%, 76% { transform: translateY(-6px); } 80%, 100% { transform: translateY(0); } }

/* STATUS DOTS: each dot fills brass when its driver pin seats,
   stays filled through the rotation phase, drains as the pins drop.
   Mirrors the dp1–dp5 timing exactly so the dot-row reads as a live counter. */
.cyl-svg .sd-1 { animation: sd1 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .sd-2 { animation: sd2 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .sd-3 { animation: sd3 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .sd-4 { animation: sd4 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
.cyl-svg .sd-5 { animation: sd5 var(--kc) cubic-bezier(0.5,0,0.3,1) infinite; }
@keyframes sd1 { 0%, 17% { fill: transparent; stroke: #6a7382; } 20%, 77% { fill: #e6c66e; stroke: #e6c66e; } 81%, 100% { fill: transparent; stroke: #6a7382; } }
@keyframes sd2 { 0%, 18% { fill: transparent; stroke: #6a7382; } 21%, 77% { fill: #e6c66e; stroke: #e6c66e; } 81%, 100% { fill: transparent; stroke: #6a7382; } }
@keyframes sd3 { 0%, 19% { fill: transparent; stroke: #6a7382; } 22%, 77% { fill: #e6c66e; stroke: #e6c66e; } 81%, 100% { fill: transparent; stroke: #6a7382; } }
@keyframes sd4 { 0%, 20% { fill: transparent; stroke: #6a7382; } 23%, 77% { fill: #e6c66e; stroke: #e6c66e; } 81%, 100% { fill: transparent; stroke: #6a7382; } }
@keyframes sd5 { 0%, 21% { fill: transparent; stroke: #6a7382; } 24%, 77% { fill: #e6c66e; stroke: #e6c66e; } 81%, 100% { fill: transparent; stroke: #6a7382; } }

/* SHEAR LINE: a hard flash at the click moment, then a sustained low glow
   throughout the rotation phase (the lock is "live"). */
.cyl-svg .shear { animation: shearClick var(--kc) cubic-bezier(0.4,0,0.2,1) infinite; }
@keyframes shearClick {
  0%, 26%, 78%, 100% { opacity: 0.42; stroke-width: 0.8; }
  30%                { opacity: 1;    stroke-width: 1.8; }
  34%, 70%           { opacity: 0.78; stroke-width: 1.3; }
  74%                { opacity: 0.5;  stroke-width: 1; }
}

/* KEYWAY SLOT: amber glow when the key seats. */
.cyl-svg .keyway-slot { animation: keywayGlow var(--kc) cubic-bezier(0.4,0,0.2,1) infinite; }
@keyframes keywayGlow {
  0%, 22%, 78%, 100% { fill: #06080c; }
  30%, 70%           { fill: #2a1f0e; }
}

/* --- CTAs — the actual purpose of the page --- */

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 0;
}

.cta {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 18px 24px;
  border: 1.4px solid var(--chalk);
  font-family: var(--display-2);
  transition:
    background 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  min-width: 260px;
  will-change: transform;
}
.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.55);
}
.cta:active {
  transform: translateY(-1px);
  transition-duration: 80ms;
}
.cta-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 226, 204, 0.65);
}
.cta-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: 0.01em;
  font-feature-settings: "tnum" 1;
}

.cta-call {
  background: var(--chalk);
  border-color: var(--chalk);
  color: var(--ink);
}
.cta-call .cta-tag { color: rgba(10,13,28,0.55); }
.cta-call:hover { background: var(--rule); border-color: var(--rule); color: var(--chalk); }
.cta-call:hover .cta-tag { color: rgba(236,226,204,0.7); }

.cta-wa {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #0a3d22;
}
.cta-wa .cta-tag { color: rgba(10, 61, 34, 0.68); }
.cta-wa:hover { background: #1ebd5b; border-color: #1ebd5b; color: #082817; }
.cta-wa:hover .cta-tag { color: rgba(8, 40, 23, 0.72); }

.hero-foot {
  margin: 14px 0 0;
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1.32;
  letter-spacing: 0.005em;
  color: var(--chalk);
  text-wrap: balance;
  max-width: 32ch;
}
.hero-foot strong {
  display: inline-block;
  font-weight: 700;
  background: linear-gradient(100deg, var(--chalk) 0%, var(--chalk) 55%, var(--rule) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}

/* --- INFO STRIP --- */

/* editorial info strip — paper-light, but with magazine bones:
   eyebrow + numbered cells + bigger serif content + a single closing
   flourish. Keeps the section white-ish without feeling anemic. */
.strip {
  position: relative;
  background:
    radial-gradient(ellipse 110% 70% at 50% 0%, rgba(64,81,245,0.07), transparent 65%),
    var(--paper);
  color: var(--ink);
  padding: clamp(48px, 6vw, 84px) 28px clamp(38px, 4.5vw, 64px);
  border-top: 1px solid rgba(64,81,245,0.22);
  border-bottom: 1px solid rgba(13,16,24,0.10);
}
.strip::before {
  content: "פרטי הסטודיו";
  display: block;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  font-family: var(--display-2);
  font-style: italic;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  letter-spacing: 0.04em;
  color: rgba(13,16,24,0.5);
  text-align: center;
}
.strip::after {
  content: "מומחה לשכפול כל סוגי המפתחות · מאז 2026";
  display: block;
  margin: clamp(36px, 4.5vw, 60px) auto 0;
  font-family: var(--display-2);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  letter-spacing: 0;
  color: rgba(13,16,24,0.52);
  text-align: center;
  padding-top: clamp(20px, 2.5vw, 30px);
  border-top: 1px solid rgba(13,16,24,0.10);
  max-width: 720px;
}
.strip-grid {
  counter-reset: stripcell;
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  align-items: start;
}
.strip-grid > div {
  counter-increment: stripcell;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 30px 4px;
  border-inline-start: 1px solid rgba(13,16,24,0.12);
}
.strip-grid > div::before {
  /* slim cobalt tick — replaces the old "N° 01" label */
  content: "";
  width: 22px;
  height: 2px;
  background: var(--rule);
  margin-bottom: 4px;
}
.strip-grid > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.strip-grid dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(13,16,24,0.55);
  text-transform: uppercase;
}
.strip-grid dd {
  margin: 0;
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(1.18rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
}
.strip-grid dd a {
  border-bottom: 1px solid rgba(64,81,245,0.32);
  padding-bottom: 2px;
  transition: border-color 200ms ease, color 200ms ease;
}
.strip-grid dd a:hover { color: var(--rule); border-bottom-color: var(--rule); }
.strip-grid dd .strip-wa {
  margin-inline-start: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: rgba(13,16,24,0.55);
  border-bottom: 0;
}
.strip-grid dd .strip-wa:hover { color: var(--rule); }

/* --- footer --- */

.bottom {
  background: var(--ink);
  padding: 18px 28px 22px;
  text-align: center;
}
.bottom p {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(236, 226, 204, 0.4);
  text-transform: uppercase;
}
.bottom a {
  color: rgba(236, 226, 204, 0.65);
  border-bottom: 1px solid rgba(236, 226, 204, 0.18);
  padding-bottom: 1px;
  transition: color 160ms ease, border-color 160ms ease;
}
.bottom a:hover { color: var(--rule); border-bottom-color: var(--rule); }

/* --- motion --- */

@keyframes livePulse {
  0%, 100% { transform: scale(0.9); opacity: 0.85; }
  50%      { transform: scale(1.18); opacity: 1; }
}
@keyframes heroBreathe {
  0%, 100% { transform: scale(1.02) translate(0, 0); }
  50%      { transform: scale(1.04) translate(-0.6%, -0.4%); }
}

/* --- responsive --- */

@media (max-width: 980px) {
  .bar { padding: 10px 18px; }
  .bar-folio { display: none; }
  .hero-inner {
    width: min(100% - 36px, 1200px);
  }
  .brand-mark { font-size: clamp(5rem, 20vw, 9.5rem); }
  .brand-rule { max-width: 100%; }
  .hero-photo { background-position: 70% 50%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(10,13,28,0.45) 0%, rgba(10,13,28,0.78) 60%, rgba(10,13,28,0.94) 100%);
  }
  .strip-grid { grid-template-columns: 1fr; gap: 22px 0; }
  .strip-grid > div {
    padding: 18px 0 4px;
    border-inline-start: 0;
    border-top: 1px solid rgba(13, 16, 24, 0.10);
  }
  .strip-grid > div:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { min-height: auto; }
  .brand-mark { font-size: clamp(4rem, 21vw, 6.8rem); }
  .brand-sub {
    font-size: clamp(2.2rem, 11vw, 4rem);
    letter-spacing: 0.14em;
    padding-inline-end: 0.14em;
  }
  .brand-tagline { font-size: clamp(1.5rem, 6.4vw, 2.5rem); }
  .brand-address { font-size: clamp(0.95rem, 4vw, 1.2rem); }
  .hero-sub { font-size: clamp(1rem, 4.2vw, 1.25rem); }
  .hero-foot { font-size: clamp(1.05rem, 4.4vw, 1.3rem); }
  .cta { width: 100%; min-width: 0; padding: 16px 22px; }
  .cta-num { font-size: 1.8rem; }
  .strip-grid { grid-template-columns: 1fr; }
  .strip-grid div { border-inline-start: 0; padding-inline-start: 0; }
}

/* ===========================================================
   SCROLL STAGE — pure image-sequence scrub on canvas.
   No text. No rotation. Tall runway → frames advance slowly.
   tall runway + sticky pin + rAF render loop (script in scroll-key.js)
   =========================================================== */

.kx-stage {
  position: relative;
  background: var(--ink);
  /* runway = total scroll distance over which the 150 frames map.
     Tight: only 1.5x viewport so the canvas releases quickly and the
     cream info strip follows right after — no dead-scroll gap. */
  --kx-runway: 220vh;
}

.kx-runway {
  position: relative;
  height: var(--kx-runway);
}

.kx-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  isolation: isolate;
  /* a single soft overhead light against deep ink — studio mood */
  background:
    radial-gradient(ellipse 70% 70% at 50% 48%, rgba(236,226,204,0.05) 0%, rgba(236,226,204,0) 70%),
    var(--ink);
}

.kx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* soft feather only at the very edges — the image fills almost the
     full stage so the dark frame around it doesn't read as "gap" */
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 82%, transparent 100%);
          mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, #000 82%, transparent 100%);
}

/* ---- minimal local loader — single hairline progress, no copy ---- */
.kx-loader {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 6;
  height: 1px;
  background: rgba(236, 226, 204, 0.10);
  pointer-events: none;
}
.kx-loader[hidden] { display: none; }
.kx-loader.is-leaving { opacity: 0; transition: opacity 480ms ease 60ms; }
.kx-loader-bar {
  position: absolute; inset: 0;
}
.kx-loader-fill {
  position: absolute;
  inset-inline-start: 0;
  top: 0; bottom: 0;
  width: 0%;
  background: var(--rule);
  transition: width 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- responsive ---- */
@media (max-width: 980px) {
  .kx-stage { --kx-runway: 200vh; }
}
@media (max-width: 640px) {
  .kx-stage { --kx-runway: 180vh; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
@media print {
  html, body { background: #fff; color: #000; }
  .hero-photo, .hero-shade { display: none; }
}

/* --- page switcher (variants 1–4) --- */

.page-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(10, 13, 28, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-paper);
}
.page-nav a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(236, 226, 204, 0.04);
  border: 1px solid var(--hair-paper);
  color: rgba(236, 226, 204, 0.78);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 220ms ease;
}
.page-nav a:hover {
  background: rgba(236, 226, 204, 0.08);
  color: var(--chalk);
  border-color: rgba(236, 226, 204, 0.3);
}
.page-nav a.is-active {
  background: var(--rule);
  border-color: var(--rule);
  color: var(--chalk);
  box-shadow: 0 0 0 4px rgba(64, 81, 245, 0.22);
}
.page-nav-label {
  align-self: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 226, 204, 0.5);
  margin-inline-end: 6px;
}
@media (max-width: 520px) {
  .page-nav-label { display: none; }
  .page-nav a { width: 42px; height: 42px; font-size: 15px; }
}

/* --- 3D key stage (used by page3 / page4) --- */

.three-stage {
  position: relative;
  width: min(100%, 1320px);
  margin: 60px auto 80px;
  aspect-ratio: 16 / 9;
  border-radius: clamp(18px, 2vw, 28px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at 50% 42%, rgba(24,31,44,0.9), rgba(9,11,16,1) 62%),
    #0a0c12;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.35);
}
.three-stage canvas { width: 100%; height: 100%; display: block; }
.three-stage .badge {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  color: rgba(219,226,238,0.84);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
  font-family: var(--mono);
}
.three-stage .badge .bdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5a5a;
  box-shadow: 0 0 10px rgba(255,90,90,0.75);
  transition: background 180ms ease, box-shadow 180ms ease;
}
@media (max-width: 860px) {
  .three-stage { aspect-ratio: 4 / 5; margin: 40px auto 60px; }
}
@media (max-width: 560px) {
  .three-stage { aspect-ratio: 3 / 4; margin: 28px 12px 48px; }
  .three-stage .badge { top: 12px; inset-inline-end: 12px; font-size: 10px; padding: 8px 12px; }
}

/* ===========================================================
   SERVICES PAGE  (/services.html) — handyman / plumber / electrician
   Re-uses bar, brand, cta, strip, footer from above. Adds:
   - hero--svc with owner-portrait split layout
   - svc-grid-stage: 4-card service grid
   - team: editorial story block with values list
   =========================================================== */

.svc-body { background: var(--ink); }

/* HERO ---------------------------------------------------------- */

.hero--svc {
  background:
    radial-gradient(ellipse 70% 60% at 80% 40%, rgba(64, 81, 245, 0.16), transparent 70%),
    var(--ink);
}
.hero-shade--svc {
  background:
    linear-gradient(270deg, rgba(10,13,28,0.55) 0%, rgba(10,13,28,0.2) 45%, rgba(10,13,28,0) 100%);
}

.svc-hero-inner {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
}
.svc-hero-copy {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

/* services-page tagline is shorter so it doesn't need nowrap escape */
.svc-brand-tagline {
  white-space: normal;
  max-width: 22ch;
}

/* OWNER PORTRAIT ----------------------------------------------- */

.owner {
  margin: 0;
  display: grid;
  gap: 16px;
  justify-self: center;
  max-width: 460px;
  width: 100%;
  opacity: 0;
  animation: brandFade 720ms ease forwards;
  animation-delay: calc(var(--brand-rule-delay) + 460ms);
}
.owner-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border: 1px solid rgba(236, 226, 204, 0.22);
  background:
    linear-gradient(180deg, rgba(64,81,245,0.12) 0%, transparent 40%, transparent 70%, rgba(10,13,28,0.6) 100%),
    var(--ink-2);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 28px 80px -28px rgba(0,0,0,0.7);
  transition: transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 380ms ease;
}
.owner-frame:hover {
  transform: translateY(-3px);
  box-shadow: 0 36px 96px -28px rgba(0,0,0,0.75);
}
.owner-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.owner-tick {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  width: 28px;
  height: 28px;
  background:
    linear-gradient(135deg, transparent 47%, var(--rule) 47%, var(--rule) 53%, transparent 53%),
    linear-gradient(45deg, transparent 47%, var(--rule) 47%, var(--rule) 53%, transparent 53%);
  opacity: 0.85;
  pointer-events: none;
}
.owner-cap {
  display: grid;
  gap: 6px;
  padding: 0 4px;
  font-family: var(--mono);
  text-align: start;
}
.owner-cap-num {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--rule);
  font-weight: 700;
}
.owner-cap-name {
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  letter-spacing: 0;
  color: var(--chalk);
}
.owner-cap-line {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(236, 226, 204, 0.5);
  text-transform: uppercase;
}

/* SERVICE GRID (4 cards) --------------------------------------- */

.svc-grid-stage {
  position: relative;
  background: var(--ink);
  padding: clamp(56px, 7vw, 96px) 28px clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hair-paper);
}
.svc-grid-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 3.5vw, 44px);
}
.svc-grid-head {
  display: grid;
  gap: 8px;
  max-width: 36ch;
}
.svc-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(236, 226, 204, 0.5);
  text-transform: uppercase;
}
.svc-grid-title {
  margin: 0;
  font-family: var(--display-2);
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  color: var(--chalk);
  text-wrap: balance;
}
.svc-grid-title em {
  font-style: italic;
  color: var(--rule);
  font-weight: 900;
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

/* layout variant — 2 pairs side-by-side (2-col grid, always) */
.svc-grid--pairs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  max-width: 880px;
  margin-inline: auto;
}

.svc-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(22px, 2.4vw, 30px);
  background:
    radial-gradient(ellipse 90% 120% at 100% 0%, rgba(64, 81, 245, 0.14) 0%, transparent 60%),
    linear-gradient(155deg, rgba(64, 81, 245, 0.05) 0%, rgba(236, 226, 204, 0.025) 45%, transparent 100%),
    #1a2138;
  border: 1px solid rgba(236, 226, 204, 0.14);
  min-height: clamp(220px, 26vw, 280px);
  cursor: default;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px);
  animation: svcCardRise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  transition:
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 320ms ease,
    background 320ms ease,
    box-shadow 320ms ease;
}
.svc-card:nth-child(1) { animation-delay: 100ms; }
.svc-card:nth-child(2) { animation-delay: 200ms; }
.svc-card:nth-child(3) { animation-delay: 300ms; }
.svc-card:nth-child(4) { animation-delay: 400ms; }
@keyframes svcCardRise {
  to { opacity: 1; transform: translateY(0); }
}

/* shine sweep — diagonal cobalt ribbon that races across on hover */
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(64, 81, 245, 0.22) 50%,
    rgba(140, 158, 255, 0.36) 55%,
    rgba(64, 81, 245, 0.22) 60%,
    transparent 80%);
  transform: skewX(-12deg);
  transition: inset-inline-end 700ms cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
/* cobalt rule that draws along the top edge on hover */
.svc-card::after {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--rule) 50%, transparent 100%);
  transition: width 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.svc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(140, 158, 255, 0.45);
  background:
    radial-gradient(ellipse 90% 120% at 100% 0%, rgba(64, 81, 245, 0.22) 0%, transparent 60%),
    linear-gradient(155deg, rgba(64, 81, 245, 0.10) 0%, rgba(236, 226, 204, 0.035) 45%, transparent 100%),
    #1f2740;
  box-shadow:
    0 30px 70px -22px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(64, 81, 245, 0.18);
}
.svc-card:hover::before { inset-inline-end: 180%; }
.svc-card:hover::after  { width: 100%; }

/* legacy .svc-num kept harmless in case anything still references it */
.svc-num { display: none; }
.svc-name {
  margin: 0;
  font-family: var(--display-2);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.15;
  color: var(--chalk);
}
.svc-desc {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  line-height: 1.55;
  color: rgba(236, 226, 204, 0.7);
}
/* legacy arrow hidden — clean cards without UI noise */
.svc-arrow { display: none; }

/* TEAM STORY ---------------------------------------------------- */

.team {
  position: relative;
  background:
    radial-gradient(ellipse 70% 50% at 70% 0%, rgba(64, 81, 245, 0.12), transparent 70%),
    var(--ink);
  padding: clamp(64px, 8vw, 110px) 28px clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--hair-paper);
}
.team-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  gap: clamp(28px, 3.5vw, 44px);
}
.team-eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  color: rgba(236, 226, 204, 0.5);
  text-transform: uppercase;
}
.team-title {
  margin: 0;
  font-family: var(--display-2);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  color: var(--chalk);
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}
.team-title em {
  font-style: italic;
  color: var(--rule);
  font-weight: 900;
}
.team-body {
  display: grid;
  gap: 14px;
  max-width: 58ch;
  font-family: var(--display-2);
  font-weight: 500;
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
  line-height: 1.55;
  color: rgba(236, 226, 204, 0.82);
}
.team-lead { margin: 0; color: var(--chalk); font-weight: 700; }
.team-para { margin: 0; }
.team-body em {
  font-style: italic;
  color: var(--rule);
  font-weight: 700;
}

.team-vals {
  list-style: none;
  margin: clamp(12px, 1.6vw, 20px) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.team-vals li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: baseline;
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2vw, 26px);
  border-top: 1px solid rgba(236, 226, 204, 0.12);
  border-inline-start: 1px solid rgba(236, 226, 204, 0.12);
}
.team-vals li:nth-child(2n+1) { border-inline-start: 0; }
.team-vals li:nth-child(-n+2) { border-top: 0; }
.team-vals-num {
  grid-row: span 2;
  width: 18px;
  height: 2px;
  background: var(--rule);
  align-self: center;
  margin-top: 6px;
  font-size: 0;
}
.team-vals strong {
  font-family: var(--display-2);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.55vw, 1.35rem);
  color: var(--chalk);
  letter-spacing: 0;
}
.team-vals span:not(.team-vals-num) {
  grid-column: 2;
  font-family: var(--body);
  font-size: clamp(0.92rem, 1.05vw, 1rem);
  color: rgba(236, 226, 204, 0.65);
  line-height: 1.5;
}

.team-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(8px, 1.4vw, 16px);
}

/* RESPONSIVE --------------------------------------------------- */

@media (max-width: 980px) {
  .svc-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .owner { justify-self: start; max-width: 360px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-vals { grid-template-columns: 1fr; }
  .team-vals li { border-inline-start: 0; }
  .team-vals li:nth-child(2n+1) { border-inline-start: 0; }
  .team-vals li:nth-child(-n+2) { border-top: 1px solid rgba(236, 226, 204, 0.12); }
  .team-vals li:first-child { border-top: 0; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  /* pairs variant: keep 2 columns even on phones */
  .svc-grid.svc-grid--pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-grid.svc-grid--pairs .svc-card {
    min-height: auto;
    padding: 14px;
    gap: 6px;
  }
  .svc-grid.svc-grid--pairs .svc-name { font-size: clamp(1rem, 4.4vw, 1.25rem); }
  .svc-grid.svc-grid--pairs .svc-desc { font-size: 0.82rem; line-height: 1.4; }
  .svc-card { min-height: auto; padding: 20px; }
  .owner { max-width: 100%; }
}
/* extra-narrow phones — 360px and below: shrink card padding further
   so two cards fit comfortably in the row */
@media (max-width: 380px) {
  .svc-grid.svc-grid--pairs { gap: 10px; }
  .svc-grid.svc-grid--pairs .svc-card { padding: 10px; }
  .svc-grid.svc-grid--pairs .svc-name { font-size: clamp(0.95rem, 4.2vw, 1.15rem); }
  .svc-grid.svc-grid--pairs .svc-desc { font-size: 0.78rem; line-height: 1.35; }
}

/* ===========================================================
   SERVICES PAGE v2  (/services-2.html) — single-column flow:
   brand + address (above rule) → tagline → 4-card pair grid →
   CTAs → owner photo at the bottom. No split hero layout.
   =========================================================== */

.svc2-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(8px, 1.1vw, 16px);
  align-items: stretch;
  justify-items: stretch;
  /* v2-only: tighter top padding so the cobalt "השירות השכונתי" tag
     sits close under the fixed header instead of floating below it */
  padding-top: clamp(54px, 5.6vw, 78px);
}
/* kill the default 22px top margin on the v2 tagline — the grid gap
   alone now sets spacing between the pulsating rule and the tagline */
.svc2-hero-inner .brand-tagline { margin-top: 0; }

/* address inserted inside the h1.brand between .brand-sub and .brand-rule.
   No underline by default — the pulsating .brand-rule below is the only
   horizontal line. Hover only nudges the link color. */
.brand-address--inline {
  display: block;
  /* negative margin + tight line-height pull the italic address right
     up under the descenders of "טמבוריה" */
  margin-top: -0.18em;
  font-family: var(--display-2);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.1;
  color: rgba(236, 226, 204, 0.78);
  opacity: 0;
  animation: brandFade 720ms ease forwards;
  animation-delay: calc(var(--brand-rule-delay) + 200ms);
  letter-spacing: 0;
}
/* override the inherited .brand-address a underline (cobalt hairline)
   so the only horizontal line stays the pulsating .brand-rule below */
.brand-address--inline a {
  display: inline-block;
  background-image: none;
  background-size: 0 0;
  padding-bottom: 0;
  transition: color 200ms ease;
}
.brand-address--inline a:hover { color: var(--chalk); }

/* push the rule down a touch since address sits between sub and rule */
.svc2-hero-inner .brand-rule { margin-top: clamp(6px, 0.8vw, 12px); }

/* cards-inside-hero variant: title + short description only (no N° badge,
   no arrow), so the cards stay compact and the CTAs land above the fold. */
.svc-grid--inhero {
  margin-top: clamp(4px, 0.6vw, 10px);
  max-width: 980px;
  margin-inline: 0;
}
.svc-grid--inhero .svc-card {
  min-height: clamp(120px, 14vw, 168px);
  padding: clamp(14px, 1.5vw, 22px);
  gap: 8px;
}
.svc-grid--inhero .svc-name {
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}
.svc-grid--inhero .svc-desc {
  font-size: clamp(0.86rem, 1vw, 0.96rem);
  line-height: 1.45;
}

/* owner photo lives at the bottom of the v2 hero — centered, framed,
   never taller than the viewport */
.svc-owner--bottom {
  margin-top: clamp(14px, 1.8vw, 28px);
  justify-self: start;
  max-width: 520px;
  width: 100%;
}

/* v2 phone tweaks: the inline address font scales down, the in-hero
   card grid stays 2x2 with tight padding (already handled above) */
@media (max-width: 560px) {
  .brand-address--inline {
    font-size: clamp(0.95rem, 4vw, 1.18rem);
    line-height: 1.1;
    margin-top: -0.14em;
  }
  .svc2-hero-inner { gap: 8px; }
  .svc-grid--inhero .svc-card { min-height: auto; padding: 12px; gap: 6px; }
  .svc-grid--inhero .svc-name { font-size: clamp(1rem, 4.4vw, 1.25rem); }
  .svc-grid--inhero .svc-desc { font-size: 0.82rem; line-height: 1.4; }
  .svc-owner--bottom { max-width: 100%; }
}
/* extra-narrow phones on v2 services */
@media (max-width: 380px) {
  .svc-grid--inhero { gap: 10px; }
  .svc-grid--inhero .svc-card { padding: 10px; }
  .svc-grid--inhero .svc-name { font-size: clamp(0.95rem, 4.2vw, 1.15rem); }
  .svc-grid--inhero .svc-desc { font-size: 0.78rem; line-height: 1.35; }
  .svc2-hero-inner { padding-top: clamp(48px, 14vw, 64px); }
}

