/* ==========================================================================
   VISION AI STUDIO — Design tokens
   ========================================================================== */

:root{
  /* color — warm ivory, black, charcoal, beige-gray. no accent hue. */
  --paper:      #F4EFE6;
  --stone:      #E7DFD0;
  --stone-2:    #DCD2BE;
  --charcoal:   #1B1913;
  --ink:        #16140F;
  --ink-70:     rgba(22,20,15,.68);
  --ink-50:     rgba(22,20,15,.48);
  --grey:       #6A6356; /* 5.2:1 on paper — WCAG AA */
  --line:       rgba(22,20,15,.13);
  --line-strong:rgba(22,20,15,.26);
  --line-inverse: rgba(244,239,230,.22);

  /* frame tones — neutral beige/taupe only */
  --tone-a-1: #E3DACB; --tone-a-2: #D3C6AE;
  --tone-b-1: #DCD6C8; --tone-b-2: #C7BFA9;
  --tone-c-1: #E9E2D6; --tone-c-2: #D8CBB3;
  --tone-d-1: #D6CFC2; --tone-d-2: #BEB29A;
  --ph-text:  rgba(22,20,15,.62); /* ~4.8:1 on paper — WCAG AA */

  /* type — a single confident grotesk throughout */
  --font-sans: 'Assistant', 'Arial Hebrew', Arial, sans-serif;

  /* layout */
  --gutter:    clamp(20px, 5vw, 88px);
  --sect-y:    clamp(88px, 12vw, 176px);
  --sect-y-sm: clamp(48px, 7vw, 96px);

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html{ background: var(--paper); scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,p{ margin: 0; }

/* hollow / outline emphasis — the site's one recurring typographic signature, ink only (no accent hue) */
/* Google serves Assistant as a variable font, whose glyphs keep overlapping contours
   (e.g. the bar of "A" crossing its legs) — invisible when filled, but text-stroke
   draws every contour. This is a static 800 instance with overlaps merged, Latin only,
   used just for stroked type. */
@font-face{
  font-family: 'Assistant Outline';
  src: url('../assets/fonts/assistant-800-outline.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2013-2014, U+2018-201D;
}

.outline{ color: var(--ink); }
.outline-inverse{ color: var(--paper); }
@supports (-webkit-text-stroke: 1px black){
  .outline, .outline-inverse{ font-family: 'Assistant Outline', var(--font-sans); }
  .outline{ color: transparent; -webkit-text-stroke: 2px var(--ink); }
  .outline-inverse{ color: transparent; -webkit-text-stroke: 2px var(--paper); }
}

/* ==========================================================================
   Type helpers
   ========================================================================== */

.kicker{
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 20px;
}
.kicker[dir="ltr"]{ text-align: left; }

.section-title-lg{
  font-weight: 600;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.2;
  max-width: 16ch;
  margin-bottom: 22px;
}

.section-lede{
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-70);
  max-width: 46ch;
  line-height: 1.6;
}

/* ==========================================================================
   Buttons / links
   ========================================================================== */

.btn-primary, .btn-ghost, .btn-line, .btn-talk{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-sans);
  font-weight: 500;
  white-space: nowrap;
}

.btn-primary{
  background: var(--ink);
  color: var(--paper);
  padding: 15px 28px;
  font-size: 14.5px;
  transition: opacity .3s var(--ease);
}
.btn-primary:hover{ opacity: .82; }
/* Hebrew CTAs point left (reading direction) and nudge left on hover */
.btn-primary .arrow, .btn-ghost .arrow{ display: inline-block; transition: transform .35s var(--ease); }
.btn-primary:hover .arrow, .btn-ghost:hover .arrow{ transform: translateX(-4px); }

.btn-ghost{
  font-size: 14.5px;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .3s var(--ease);
}
.btn-ghost:hover{ border-color: var(--ink); }

.btn-line{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
}
.btn-line .arrow{ display: inline-block; transition: transform .35s var(--ease); }
.btn-line:hover .arrow{ transform: translateX(4px); }

/* header CTA — a thin outlined frame that fills on hover
   (ink on the light header, cream over the hero video) */
.btn-talk{
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0; /* Hebrew label — no caps tracking */
  margin-left: auto; /* physical: the link itself is dir=rtl, so a logical margin would flip sides */
  padding: 9px 18px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-talk .arrow{ display: inline-block; transition: transform .35s var(--ease); }
.btn-talk:hover{ background: var(--ink); color: var(--paper); }
.btn-talk:hover .arrow{ transform: translateX(-3px); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header{
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease), backdrop-filter .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled{
  background: rgba(244,239,230,.82);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--line);
}

.header-inner{
  max-width: 1680px;
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: baseline; /* the logo image's bottom edge is its letters' baseline, so the nav sits on the same line */
  gap: 44px;
}

.brand{ display: flex; align-items: center; line-height: 1; }
.brand img{ display: block; height: 16px; width: auto; }
.brand .logo-on-dark{ display: none; }

.site-header.on-hero:not(.is-scrolled):not(.menu-open) .logo-on-light{ display: none; }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .logo-on-dark{ display: block; }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .main-nav a{ color: rgba(244,239,230,.8); }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .main-nav a:hover{ color: var(--paper); }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .main-nav a::after{ background: var(--paper); }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .btn-talk{ border-color: rgba(244,239,230,.7); color: var(--paper); }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .btn-talk:hover{ background: var(--paper); border-color: var(--paper); color: var(--ink); }
.site-header.on-hero:not(.is-scrolled):not(.menu-open) .menu-toggle span{ background: var(--paper); }
.site-header.menu-open{ background: var(--paper); }

.main-nav{ display: flex; gap: 30px; }
.main-nav a{
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--ink-70);
  position: relative;
  padding-bottom: 3px;
  transition: color .25s var(--ease);
}
.main-nav a::after{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width .3s var(--ease);
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a:hover::after{ width: 100%; }

.menu-toggle{
  display: none;
  width: 30px; height: 20px;
  background: none; border: 0;
  position: relative;
  top: 3px; /* centre the two lines on the logo's letters (header is baseline-aligned) */
  cursor: pointer;
  padding: 0;
}
.menu-toggle span{
  position: absolute;
  inset-inline: 0;
  height: 1px;
  background: var(--ink);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.menu-toggle span:first-child{ top: 5px; }
.menu-toggle span:last-child{ top: 15px; }
.menu-toggle[aria-expanded="true"] span:first-child{ top: 10px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child{ top: 10px; transform: rotate(-45deg); }

.mobile-nav{
  display: none;
  flex-direction: column;
  padding: 4px var(--gutter) 26px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a{ padding: 14px 0; font-size: 15px; font-weight: 500; border-top: 1px solid var(--line); }
.mobile-nav.is-open{ display: flex; }

/* ==========================================================================
   Reveal
   ========================================================================== */

.reveal{ opacity: 0; transform: translateY(20px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Frame system
   ========================================================================== */

.frame{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--ar, 4/5);
  overflow: hidden;
  border: 1px solid var(--line);
}
.frame[data-tone="a"]{ background: linear-gradient(150deg, var(--tone-a-1), var(--tone-a-2)); }
.frame[data-tone="b"]{ background: linear-gradient(150deg, var(--tone-b-1), var(--tone-b-2)); }
.frame[data-tone="c"]{ background: linear-gradient(150deg, var(--tone-c-1), var(--tone-c-2)); }
.frame[data-tone="d"]{ background: linear-gradient(150deg, var(--tone-d-1), var(--tone-d-2)); }

.frame-tag{
  position: absolute;
  inset-inline-start: 20px;
  bottom: 18px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ph-text);
}

.tick{ position: absolute; width: 12px; height: 12px; opacity: .5; pointer-events: none; }
.tick.tl{ top: 14px; inset-inline-start: 14px; border-top: 1px solid var(--ink-50); border-inline-start: 1px solid var(--ink-50); }
.tick.br{ bottom: 14px; inset-inline-end: 14px; border-bottom: 1px solid var(--ink-50); border-inline-end: 1px solid var(--ink-50); }

a.frame{ transition: opacity .4s var(--ease); }
a.frame:hover{ opacity: .9; }

/* ==========================================================================
   Section shell
   ========================================================================== */

.section{
  max-width: 1680px;
  margin: 0 auto;
  padding: var(--sect-y) var(--gutter);
  border-top: 1px solid var(--line);
}

/* ==========================================================================
   Hero — full-bleed looping campaign video, typography on top
   ========================================================================== */

.hero{
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--paper);
}

.hero-media{ position: absolute; inset: 0; z-index: -1; }
.hero-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 30%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.hero-video.is-active{ opacity: 1; }
/* portrait screens get the dedicated 9:16 cut — frame it centered */
@media (orientation: portrait){
  .hero-video{ object-position: 50% 35%; }
}

/* warm charcoal wash: heavier behind the type (left + bottom), clear over the subject */
.hero-shade{
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(22,20,15,.86) 0%, rgba(22,20,15,.42) 38%, rgba(22,20,15,0) 64%),
    linear-gradient(to right, rgba(22,20,15,.62) 0%, rgba(22,20,15,.18) 46%, rgba(22,20,15,0) 70%),
    linear-gradient(to bottom, rgba(22,20,15,.38) 0%, rgba(22,20,15,0) 18%);
}

.hero-inner{
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: clamp(112px, 14vw, 156px) var(--gutter) clamp(48px, 7vw, 96px);
}

.hero .kicker{ font-size: clamp(13px, 1.15vw, 17px); letter-spacing: .2em; color: rgba(244,239,230,.8); margin-bottom: clamp(20px, 3vw, 32px); }

.hero-headline{
  direction: ltr;
  text-align: left;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 150px);
  line-height: .92;
  letter-spacing: -.02em;
  color: var(--paper);
}
.hero-headline span{ display: block; }
.hero .outline{ color: var(--paper); }
@supports (-webkit-text-stroke: 1px black){
  .hero .outline{ color: transparent; -webkit-text-stroke: 2px var(--paper); }
}

/* bottom band: English services pinned left (LTR), Hebrew copy pinned right (RTL) */
.hero-bottom{
  direction: ltr;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid rgba(244,239,230,.22);
}

.hero-text{ order: 2; direction: rtl; text-align: right; }
.hero-lede{ font-size: clamp(16px, 1.55vw, 22px); line-height: 1.55; font-weight: 500; white-space: nowrap; } /* one line on wide screens; wraps again ≤980px */
.hero-ctas{ display: flex; align-items: center; gap: 26px; margin-top: 28px; flex-wrap: wrap; }

.hero-services{
  order: 1;
  direction: ltr;
  text-align: left;
  display: flex;
  flex-wrap: nowrap;
  white-space: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 8px 14px;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(244,239,230,.78);
  padding-bottom: 4px;
}
.hero-services i{ font-style: normal; color: rgba(244,239,230,.38); }
.cta-phone{ display: none; }

/* phones: a tighter hero — no kicker (the logo sits right above),
   two equal CTAs, no services line (the services section covers it) */
@media (max-width: 720px){
  .hero .kicker{ display: none; }
  /* two equal CTAs side by side: works (solid) + contact (outline) */
  .hero-ctas{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-ctas .btn-primary, .hero .btn-ghost{ justify-content: center; padding: 15px 12px; }
  .hero .btn-ghost{ border: 1px solid rgba(244,239,230,.55); }
  .hero-ctas .btn-primary{ border: 1px solid var(--paper); } /* same box height as the outlined one */
  .cta-wide{ display: none; }
  .cta-phone{ display: inline; }
  .hero-services{ display: none; }
}

/* 981–1200px: both lines can't sit side by side on one line each, so they stack (as on mobile) */
@media (min-width: 981px) and (max-width: 1200px){
  .hero-bottom{ flex-direction: column; align-items: stretch; }
  .hero-text{ order: 1; }
  .hero-services{ order: 2; padding-top: 18px; border-top: 1px solid rgba(244,239,230,.16); }
}

.hero .btn-primary{ background: var(--paper); color: var(--ink); }
.hero .btn-ghost{ border-bottom-color: rgba(244,239,230,.4); }
.hero .btn-ghost:hover{ border-color: var(--paper); }
.hero .spine{ color: rgba(244,239,230,.6); }

@media (prefers-reduced-motion: reduce){
  .hero-video{ transition: none; }
}

.spine{
  display: none;
  position: absolute;
  top: clamp(112px, 14vw, 156px);
  bottom: clamp(64px, 9vw, 120px);
  inset-inline-end: 6px;
  writing-mode: vertical-rl;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  color: var(--grey);
  opacity: .5;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1220px){ .spine{ display: flex; } }

/* ==========================================================================
   Selected Work — 3×3 campaign wall
   ========================================================================== */

/* head: English label pinned left (LTR), Hebrew headline pinned right (RTL) */
.work-head{
  direction: ltr;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.work-head .kicker{ margin: 0; padding-bottom: 6px; }
.work-head-text{ direction: rtl; text-align: right; }
.work-title{ font-weight: 700; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; letter-spacing: -.01em; }
.work-sub{ margin-top: 14px; font-size: clamp(15px, 1.3vw, 17px); line-height: 1.6; color: var(--ink-70); }
.work-sub-line{ white-space: nowrap; } /* one line on wide screens */
@media (max-width: 980px){ .work-sub-line{ white-space: normal; } }

.work-grid{
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.work-tile{
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--stone);
  cursor: pointer;
  outline: none;
}
.work-tile[data-tone="a"]{ background: linear-gradient(160deg, var(--tone-a-1), var(--tone-a-2)); }
.work-tile[data-tone="b"]{ background: linear-gradient(160deg, var(--tone-b-1), var(--tone-b-2)); }
.work-tile[data-tone="c"]{ background: linear-gradient(160deg, var(--tone-c-1), var(--tone-c-2)); }
.work-tile[data-tone="d"]{ background: linear-gradient(160deg, var(--tone-d-1), var(--tone-d-2)); }
.work-tile[data-tone="e"]{ background: linear-gradient(160deg, #3A352C, #1E1B16); }
.work-tile[data-tone="f"]{ background: linear-gradient(160deg, #A69C89, #7D7463); }

.work-media{
  position: absolute;
  inset: 0;
  display: block;
  transition: transform 1.1s var(--ease);
}
.work-poster, .work-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%); /* per-tile focal point, set inline on .work-tile */
}
.work-video{ opacity: 0; transition: opacity .6s var(--ease); }
.work-tile.is-playing .work-video{ opacity: 1; }

/* empty slot until the project's poster is placed */
.work-slot{
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ph-text);
}
.work-tile[data-tone="e"] .work-slot, .work-tile[data-tone="f"] .work-slot{ color: rgba(244,239,230,.4); }

.work-label{
  position: absolute;
  left: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
  color: var(--paper);
  text-shadow: 0 1px 14px rgba(22,20,15,.35);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}
.work-label-name{ font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.work-label-cat{ font-size: 10px; font-weight: 600; letter-spacing: .16em; opacity: .78; }
.work-tile[data-tone="a"]:not(:has(.work-poster)) .work-label,
.work-tile[data-tone="b"]:not(:has(.work-poster)) .work-label,
.work-tile[data-tone="c"]:not(:has(.work-poster)) .work-label{ color: var(--ink); text-shadow: none; }

.work-tile.is-active .work-media{ transform: scale(1.02); }
.work-tile.is-active .work-label,
.work-tile:focus-visible .work-label{ opacity: 1; transform: none; }
.work-tile:focus-visible{ outline: 1px solid var(--ink); outline-offset: 3px; }


@media (max-width: 720px){
  .work-head{ flex-direction: column; align-items: stretch; gap: 18px; }
  .work-head .kicker{ padding-bottom: 0; }
  .work-grid{ grid-template-columns: repeat(2, 1fr); gap: 4px; }
  /* 2 columns on mobile: the 9th tile is left out so the grid closes evenly (4 × 2) */
  .work-tile:last-child{ display: none; }
  .work-label{ left: 12px; bottom: 10px; }
  .work-label-name{ font-size: 12px; }
  .work-label-cat{ font-size: 9px; }
}

@media (prefers-reduced-motion: reduce){
  .work-media, .work-label, .work-video{ transition: none; }
  .work-tile.is-active .work-media{ transform: none; }
}

/* ==========================================================================
   Digital — the campaign carried onto the screen
   (head reuses .work-head / .work-title / .work-sub)
   ========================================================================== */

.digital-sub{ max-width: none; white-space: nowrap; }
@media (max-width: 980px){ .digital-sub{ white-space: normal; } }

.digital-grid{
  direction: ltr;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(48px, 5vw, 80px) clamp(24px, 3vw, 48px);
}

/* caption: English label pinned left (LTR), Hebrew line pinned right (RTL) */
.digital-caption{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 16px;
  margin-bottom: 18px;
  border-top: 1px solid var(--line-strong);
}
.digital-label{
  direction: ltr;
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}
.digital-num{ margin-right: 12px; color: var(--grey); font-weight: 600; }
.digital-desc{ direction: rtl; text-align: right; font-size: 14.5px; color: var(--ink-70); margin-left: auto; }

/* the visual: a cropped browser — thin chrome, the live site inside */
.digital-visual{
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stone);
  border: 1px solid var(--line);
}

.digital-bar{
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  height: 26px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  background: var(--stone);
  border-bottom: 1px solid var(--line);
}
.digital-bar i{ width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }

.digital-screen{
  position: absolute;
  inset: 26px 0 0 0;
  display: block;
  overflow: hidden;
  transition: transform 1.1s var(--ease);
  transform-origin: 50% 0;
}
.digital-visual:focus-visible{ outline: 1px solid var(--ink); outline-offset: 3px; }

/* live site preview — a real page at desktop width, scaled down into the frame (--s set by main.js).
   Frozen until the pointer is over it, so the page itself keeps scrolling normally. */
.digital-url{
  flex: 1;
  margin: 0 12px;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--grey);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.digital-visit{
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-70);
  transition: color .25s var(--ease);
}
.digital-visit:hover{ color: var(--ink); }
.is-live-site .digital-bar i:nth-child(3){ margin-right: 0; }
.digital-frame{
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  height: calc(100% / var(--s, .45));
  border: 0;
  transform: scale(var(--s, .45));
  transform-origin: 0 0;
  background: #fff;
  pointer-events: none;
}
.is-live-site:hover .digital-frame,
.is-live-site.is-live .digital-frame{ pointer-events: auto; }
/* while a preview is being scrolled, the page underneath stays put */
html.is-preview-lock{ overflow: hidden; }
html{ scrollbar-gutter: stable; }
.is-live-site:hover .digital-screen{ transform: none; }
.digital-hint{
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  background: var(--paper);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--ink);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.is-live-site:hover .digital-hint{ opacity: 0; transform: translateY(6px); }

/* touch screens: frozen preview + a clear way out to the real (mobile) site */
.digital-open{ display: none; }
@media (hover: none){
  .digital-hint{ display: none; }
  .is-live-site:hover .digital-frame{ pointer-events: none; }
  .digital-open{
    display: inline-flex;
    gap: 8px;
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--paper);
    font-size: 13px;
    font-weight: 600;
  }
}

@media (max-width: 980px){
  .digital-grid{ grid-template-columns: 1fr; gap: clamp(48px, 10vw, 72px); }
  .digital-caption{ flex-wrap: wrap; gap: 6px 16px; }
}

@media (prefers-reduced-motion: reduce){
  .digital-screen{ transition: none; }
}

/* ==========================================================================
   What We Do — editorial capabilities page (content-led, no media)
   Intro (headline + paragraph) → ruled rows (number / title / description).
   main.js marks the row being read (.is-current) and the
   rows above it (.is-past); rows reveal once as they enter (.is-in).
   ========================================================================== */

.wwd-label{ margin-bottom: clamp(36px, 5vw, 64px); }

/* intro — spread across the width: headline on the right, paragraph on the left, sharing a baseline */
.wwd-intro{
  direction: rtl;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 clamp(32px, 6vw, 120px);
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.wwd-headline{
  grid-column: 1;
  text-align: right;
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 76px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.wwd-lede{
  grid-column: 2;
  margin: 0;
  max-width: 60ch;
  text-align: right;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
  color: var(--ink-70);
}
.wwd-lede bdi, .cap-desc bdi, .cap-title bdi{ unicode-bidi: isolate; }

/* the four areas — a ruled editorial list, not cards */
.cap-list{ list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.cap-row{
  display: grid;
  grid-template-columns: 72px minmax(0, 4fr) minmax(0, 8fr); /* wider description column: text runs further left */
  gap: 0 clamp(24px, 4vw, 72px);
  align-items: baseline;
  padding: clamp(28px, 3.4vw, 44px) 0;
  border-top: 1px solid var(--line);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.cap-row.is-in{ opacity: 1; transform: none; }
.cap-num{
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ph-text);
  text-align: right;
  transition: color .5s var(--ease), font-weight .5s var(--ease);
}
.cap-title{
  margin: 0;
  text-align: right;
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.15;
  color: var(--ink-70);
  transition: color .5s var(--ease);
}
.cap-title[dir="ltr"]{ letter-spacing: .01em; } /* English title keeps LTR shaping, sits flush with the column */
.cap-desc{
  text-align: right;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--grey);
  transition: color .5s var(--ease);
}

/* the row being read comes forward; rows already read settle back a little */
.cap-row.is-current .cap-num{ color: var(--ink); font-weight: 800; }
.cap-row.is-current .cap-title{ color: var(--ink); }
.cap-row.is-current .cap-desc{ color: var(--ink-70); }

/* hover (mouse): the row under the pointer takes over — bigger title, full ink —
   while the rest of the list steps back */
.cap-title, .cap-desc{ transform-origin: right center; transition: color .45s var(--ease), transform .55s var(--ease); }
@media (hover: hover) and (pointer: fine){
  .cap-row{ cursor: default; transition: opacity .45s var(--ease), transform .8s var(--ease); }
  .cap-list:hover .cap-row.is-in{ opacity: .4; }
  .cap-list:hover .cap-row.is-in:hover{ opacity: 1; }
  .cap-row:hover .cap-num{ color: var(--ink); font-weight: 800; }
  .cap-row:hover .cap-title{ color: var(--ink); transform: scale(1.12); }
  .cap-row:hover .cap-desc{ color: var(--ink); transform: scale(1.05); }
}

@media (max-width: 980px){
  .wwd-intro{ grid-template-columns: 1fr; }
  .cap-row{ grid-template-columns: 48px minmax(0, 1fr); row-gap: 12px; }
  .cap-desc{ grid-column: 2; }
  .wwd-lede{ grid-column: 1; margin-top: 20px; }
}

@media (prefers-reduced-motion: reduce){
  .cap-row{ opacity: 1; transform: none; transition: none; }
  .cap-num, .cap-title, .cap-desc{ transition: none; }
  .cap-row:hover .cap-title, .cap-row:hover .cap-desc{ transform: none; }
}

/* ==========================================================================
   Contact — the last frame. One viewport, type-led, asymmetric:
   LET'S / TALK. owns the left, Hebrew line + ruled form sit right, credits close it.
   ========================================================================== */

.closing{ border-top: 1px solid var(--line); }
.closing-frame{
  direction: ltr; /* layout axis; every text block sets its own direction */
  max-width: 1680px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(96px, 12vh, 136px) var(--gutter) clamp(28px, 4vh, 44px);
}

.closing-top{ display: flex; justify-content: space-between; align-items: baseline; gap: 24px; }
.closing-label{ margin: 0; }

.closing-main{
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: end;
  align-content: center;
  padding: clamp(40px, 6vh, 72px) 0;
}

/* the dominant element — stacked, with TALK. stepped in and hollow */
.closing-title{
  direction: ltr;
  text-align: left;
  font-weight: 800;
  font-size: clamp(76px, 11.5vw, 188px);
  line-height: .86;
  letter-spacing: -.025em;
}
.closing-title span{ display: block; }
.closing-title .outline{ padding-left: .9em; }
@supports (-webkit-text-stroke: 1px black){
  .closing-title .outline{ -webkit-text-stroke-width: 2.5px; }
}

.closing-side{ direction: ltr; padding-bottom: .4em; }
.closing-lede{
  direction: rtl;
  text-align: right;
  font-size: clamp(20px, 1.9vw, 28px);
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: clamp(32px, 5vh, 52px);
}

/* the form — no boxes: a label, a line, a small index number */
.closing-form{ direction: rtl; }
.cf-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(24px, 2.6vw, 40px); }
.cf-field{
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 0 10px;
}
.cf-field::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.1s var(--ease) var(--d, 0s), background-color .3s var(--ease);
}
.cf-field.is-visible::after{ transform: scaleX(1); }
.cf-field:focus-within::after{ background: var(--ink); }
.cf-label{ flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--grey); transition: color .3s var(--ease); }
.cf-field:focus-within .cf-label{ color: var(--ink); }
.cf-optional{ font-weight: 400; color: var(--ph-text); }
.cf-index{ flex-shrink: 0; font-size: 10px; font-weight: 600; letter-spacing: .14em; color: var(--ph-text); }
.cf-field input, .cf-field textarea{
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  outline: none;
  resize: none;
}
.cf-wide{ margin-top: 6px; }

.cf-submit{ display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin-top: 30px; } /* RTL: start = right, flush with the fields */
.cf-status{ min-height: 1.5em; font-size: 14px; color: var(--ink-70); text-align: right; }
.cf-status.is-error{ color: var(--ink); }
.cf-status a{ border-bottom: 1px solid currentColor; }
/* honeypot: invisible and unfocusable, kept inside the page (an off-screen offset would widen an RTL page) */
.cf-honey{ position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.btn-submit{
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: none;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.btn-submit .arrow{ display: inline-block; transition: transform .35s var(--ease); }
.btn-submit:hover .arrow{ transform: translateX(-4px); }
.btn-submit:disabled{ cursor: default; color: var(--ink-70); border-color: var(--line-strong); }

/* quiet, ordered entrance: label → title → Hebrew → lines → credits */
.closing .reveal{ transition-delay: var(--d, 0s); }

/* closing credits */
.site-footer{ margin-top: auto; }
.footer-credits{
  display: flex;
  justify-content: space-between;
  align-items: baseline; /* logo letters and links share a baseline, as in the header */
  gap: 24px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--line);
}
.footer-logo{ display: block; height: clamp(16px, 1.4vw, 22px); width: auto; }
.footer-links{ display: flex; gap: clamp(24px, 2.6vw, 40px); font-size: clamp(14px, 1.1vw, 16px); letter-spacing: .06em; }
.footer-links a{ color: var(--ink-70); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), color .25s var(--ease); }
.footer-links a:hover{ color: var(--ink); border-color: var(--ink); }

@media (max-width: 980px){
  .closing-frame{ min-height: 0; }
  .closing-main{ grid-template-columns: 1fr; gap: clamp(40px, 8vw, 64px); padding-top: 40px; }
  .closing-title .outline{ padding-left: .6em; }
}
@media (max-width: 560px){
  .closing-top{ flex-direction: column; gap: 8px; }
  .cf-grid{ grid-template-columns: 1fr; }
  .footer-credits{ flex-direction: column; align-items: center; gap: 22px; text-align: center; }
  .footer-links{ justify-content: center; }
}
@media (prefers-reduced-motion: reduce){
  .cf-field::after{ transform: none; transition: background-color .3s var(--ease); }
}

/* ==========================================================================
   Accessibility — focus, skip link, hero pause, menu + its modes
   ========================================================================== */

.sr-only{ position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* visible keyboard focus everywhere (mouse clicks don't show it) */
:focus-visible{ outline: 2px solid currentColor; outline-offset: 3px; }
.cf-field input:focus-visible, .cf-field textarea:focus-visible{ outline: none; } /* the field's rule darkens instead */
main:focus{ outline: none; }

.skip-link{
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus{ transform: none; }

/* hero video pause (moving content > 5s needs a way to stop it) */
.hero-pause{
  position: absolute;
  top: clamp(84px, 11vh, 112px);
  right: var(--gutter);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(244,239,230,.45);
  background: rgba(22,20,15,.25);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.hero-pause:hover{ border-color: var(--paper); background: rgba(22,20,15,.45); }
.hero-pause-icon{ display: inline-flex; gap: 3px; }
.hero-pause-icon i{ display: block; width: 3px; height: 10px; background: currentColor; }
.hero-pause.is-paused .hero-pause-icon{ gap: 0; }
.hero-pause.is-paused .hero-pause-icon i:first-child{ width: 0; height: 0; background: none; border-left: 9px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.hero-pause.is-paused .hero-pause-icon i:last-child{ display: none; }

/* menu button — bottom-right (WhatsApp sits bottom-left) */
.a11y-toggle{
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 91;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(244,239,230,.16);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 8px 28px rgba(22,20,15,.22);
  cursor: pointer;
}
.a11y-panel{
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: calc(clamp(16px, 2vw, 28px) + 58px);
  z-index: 92;
  width: min(300px, calc(100vw - 32px));
  padding: 16px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 50px rgba(22,20,15,.2);
  font-family: var(--font-sans);
}
.a11y-panel[hidden]{ display: none; }
.a11y-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.a11y-title{ font-size: 16px; font-weight: 700; }
.a11y-close{ border: 0; background: none; font-size: 16px; color: var(--ink); cursor: pointer; padding: 4px 8px; }
.a11y-row{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  margin-top: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  cursor: pointer;
}
button.a11y-row[aria-pressed="true"]{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
button.a11y-row[aria-pressed="true"]::after{ content: "✓"; }
.a11y-size{ cursor: default; }
.a11y-steps{ display: inline-flex; align-items: center; gap: 10px; }
.a11y-steps button{ width: 30px; height: 30px; border: 1px solid var(--ink); background: none; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.a11y-text-level{ min-width: 44px; text-align: center; font-size: 14px; }
.a11y-reset{ font-weight: 500; }
.a11y-link{ justify-content: center; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* modes (classes on <html>, set by the menu) */
html.a11y-text-1 body{ zoom: 1.15; }
html.a11y-text-2 body{ zoom: 1.3; }
html.a11y-text-3 body{ zoom: 1.45; }

html.a11y-contrast{
  --grey: var(--ink);
  --ink-70: var(--ink);
  --ph-text: var(--ink);
  --line: rgba(22,20,15,.55);
  --line-strong: var(--ink);
}
html.a11y-contrast .hero-shade{ background: rgba(10,9,7,.72); }
html.a11y-contrast .work-label{ text-shadow: 0 1px 3px #000, 0 0 12px #000; }

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

html.a11y-font body, html.a11y-font body *{ font-family: Arial, 'Arial Hebrew', sans-serif !important; letter-spacing: normal !important; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after{ animation: none !important; transition: none !important; }
html.a11y-still .reveal, html.a11y-still .cap-row{ opacity: 1 !important; transform: none !important; }
html.a11y-still .wa-float{ opacity: 1; transform: none; }

/* ==========================================================================
   Floating WhatsApp — a quiet ink pill, the only colour is WhatsApp's own mark
   ========================================================================== */

.wa-float{
  position: fixed;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 90; /* under the header (100) */
  display: inline-flex;
  flex-direction: row-reverse; /* label reads RTL; the icon sits at the outer (left) end */
  align-items: center;
  gap: 10px;
  padding: 7px 18px 7px 7px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(244,239,230,.16);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(22,20,15,.22);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(12px);
  animation: wa-in .7s var(--ease) 1.2s forwards;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-icon{
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
}
.wa-float:hover{ transform: translateY(-2px); box-shadow: 0 12px 32px rgba(22,20,15,.28); }
@keyframes wa-in{ to{ opacity: 1; transform: none; } }

@media (max-width: 560px){
  .wa-float{ gap: 8px; padding: 6px 14px 6px 6px; font-size: 13px; }
  .wa-icon{ width: 32px; height: 32px; }
  .site-footer{ padding-bottom: 76px; } /* keep the footer links clear of the floating buttons */
  .a11y-toggle{ width: 44px; height: 44px; }
  .a11y-panel{ bottom: 70px; }
  .hero-inner{ padding-bottom: 84px; } /* hero CTAs sit above the floating button */
}
@media (prefers-reduced-motion: reduce){
  .wa-float{ animation: none; opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px){
  .main-nav, .btn-talk{ display: none; }
  .menu-toggle{ display: block; margin-inline-start: auto; }

  .hero-bottom{ flex-direction: column; align-items: stretch; }
  .hero-text{ order: 1; max-width: none; }
  .hero-lede{ white-space: normal; }
  .hero-services{ order: 2; flex-wrap: nowrap; justify-content: space-between; gap: 6px; font-size: 11px; letter-spacing: .08em; white-space: nowrap; padding-top: 18px; border-top: 1px solid rgba(244,239,230,.16); }
  .br-wide{ display: none; }
}

@media (max-width: 560px){
  .section{ padding-top: var(--sect-y-sm); padding-bottom: var(--sect-y-sm); }
}
