/* ==========================================================================
   Karish Signs
   Layout: a sign-maker's board, kept quiet. Cozy cream ground, warm espresso
   type, natural pastels (clay, peach, sage) for the few things that move or
   get pressed. The page warms to oat at the contact section. Type pairing
   from DESIGN.md (Fraunces + IBM Plex Mono) with Hebrew partners.
   ========================================================================== */

:root {
  /* palette */
  --cream: #f5eee3;
  --paper: #ede4d6;
  --oat: #ebe0cf;
  --milk: #faf6ef;
  --ink: #3a332d;
  --soft: #5b5249;
  --grey: #6c6258;
  --clay: #d19a80;
  --clay-text: #8c513a;   /* small accent text: 4.5:1 on cream and oat */
  --clay-large: #b06a4d;  /* large accent type: 3.5:1 */
  --peach: #f0cdb7;
  --sage: #bccab1;
  --sage-soft: #dfe5d6;
  --sage-deep: #5f7f57;

  /* roles */
  --bg: var(--cream);
  --fg: var(--ink);
  --muted: var(--grey);
  --line: rgba(58, 51, 45, .12);
  --line-strong: rgba(58, 51, 45, .26);
  --raise: var(--paper);
  --accent: var(--clay-text);
  --accent-hi: var(--clay-large);
  --error: #a3402c;

  /* type */
  --f-display: "Fraunces", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --f-body: "Public Sans", "IBM Plex Sans Hebrew", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", "IBM Plex Sans Hebrew", ui-monospace, Consolas, monospace;

  --t-hero: clamp(2.875rem, 1.3rem + 5.6vw, 7.5rem);
  --t-h2: clamp(2.125rem, 1.35rem + 2.9vw, 4.25rem);
  --t-h3: clamp(1.375rem, 1.15rem + .7vw, 1.875rem);
  --t-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-small: .9375rem;
  --t-label: .8125rem;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* shape & space */
  --r: 14px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4.2vw, 64px);
  --max: 1400px;
  --header-h: 76px;
  --section: clamp(96px, 13vw, 192px);

  /* direction helpers (flipped for Hebrew below) */
  --flow: 1;
  --origin-start: left;
  --origin-end: right;
}

html[dir="rtl"] {
  --flow: -1;
  --origin-start: right;
  --origin-end: left;
}

html[lang="he"] {
  --f-body: "IBM Plex Sans Hebrew", "Public Sans", system-ui, Arial, sans-serif;
}

/* dusk: the contact section and footer sit on a warmer oat */
html.is-dusk {
  --bg: var(--oat);
  --raise: var(--milk);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 var(--t-body)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 1.1s var(--ease-io), opacity .4s var(--ease-out);
}

img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { font-weight: 400; }
[hidden] { display: none !important; }
::selection { background: var(--peach); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

svg path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg path.fill { fill: currentColor; stroke: none; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  transform: translateY(-200%);
  transition: transform .4s var(--ease-out);
}
.skip:focus { transform: none; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
html.lb-open { overflow: hidden; }

/* language switch & first paint */
html.is-pending body { opacity: 0; }
main, .header__inner { transition: opacity .34s var(--ease-io), filter .34s var(--ease-io), translate .34s var(--ease-io); }
html.is-switching main,
html.is-switching .header__inner { opacity: 0; filter: blur(8px); translate: 0 6px; }

/* ---------- header ---------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .7s var(--ease-out);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-105%); }
html.menu-open .header::before { opacity: 0; }

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 40px);
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}
/* logo: inline SVG, letters in the text color, the fin in clay */
.logo path { stroke: none; }
.logo .i { fill: var(--fg); transition: fill .9s var(--ease-io); }
.logo .a {
  fill: var(--clay);
  stroke: var(--clay);
  stroke-linejoin: round;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform .9s var(--ease-spring);
}
html[lang="he"] .logo--en,
html[lang="en"] .logo--he { display: none; }
.logo--header { display: block; height: 30px; width: auto; overflow: visible; }
html[lang="en"] .logo--header { height: 27px; }
@media (hover: hover) {
  .brand:hover .logo .a { transform: translateY(-10%) rotate(calc(-8deg * var(--flow))); }
}

.nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.nav__link {
  position: relative;
  padding-block: 6px;
  font-size: .9375rem;
  color: var(--soft);
  transition: color .4s var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: var(--origin-end);
  transition: transform .6s var(--ease-out);
}
.nav__link.is-current { color: var(--fg); }
.nav__link:focus-visible::after,
.nav__link.is-current::after { transform: scaleX(1); transform-origin: var(--origin-start); }
@media (hover: hover) {
  .nav__link:hover { color: var(--fg); }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: var(--origin-start); }
}

.header__actions { display: flex; align-items: center; gap: 12px; }

/* language toggle: always laid out left to right so the thumb never jumps */
.lang {
  position: relative;
  direction: ltr;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.lang__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 999px;
  background: var(--sage);
  transition: transform .65s var(--ease-spring);
}
html[lang="en"] .lang__thumb { transform: translateX(100%); }
.lang__btn {
  position: relative;
  z-index: 1;
  min-width: 40px;
  padding: 8px 10px;
  border-radius: 999px;
  font: 600 .75rem/1 var(--f-mono);
  color: var(--muted);
  transition: color .45s var(--ease-out);
}
.lang__btn[aria-pressed="true"] { color: var(--ink); }
@media (hover: hover) {
  .lang__btn[aria-pressed="false"]:hover { color: var(--fg); }
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.5px;
  background: currentColor;
  transition: transform .6s var(--ease-spring), top .4s var(--ease-out);
}
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  overflow-y: auto;
  padding-top: calc(var(--header-h) + 24px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  clip-path: circle(0px at var(--mx, 90%) var(--my, 38px));
  transition: clip-path .85s var(--ease-io);
}
.menu.is-open { clip-path: circle(150vmax at var(--mx, 90%) var(--my, 38px)); }
.menu__nav { display: flex; flex-direction: column; }
.menu__link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font: 400 clamp(2.25rem, 9vw, 3.25rem)/1.1 var(--f-display);
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s var(--ease-out), transform .9s var(--ease-out);
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .18s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .24s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .30s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .36s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .42s; }
.menu__idx {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--clay);
}
.menu__foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 500 1rem/1.4 var(--f-mono);
  color: var(--muted);
}
.menu__foot a { align-self: flex-start; }

/* ---------- buttons ---------- */
.btn {
  --d: 320px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: .95em 1.5em;
  border-radius: 999px;
  overflow: hidden;
  font: 500 .9375rem/1.2 var(--f-mono);
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .9s var(--ease-spring), color .5s var(--ease-out), background-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
html[lang="he"] .btn { letter-spacing: 0; font-weight: 500; }
.btn--sm { padding: .72em 1.15em; font-size: .8125rem; }
.btn--lg { padding: 1.1em 1.75em; font-size: 1rem; }

.btn__fill {
  position: absolute;
  z-index: -1;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: var(--d);
  height: var(--d);
  margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2);
  border-radius: 50%;
  transform: scale(0);
  transition: transform .75s var(--ease-out);
  pointer-events: none;
}
.btn:focus-visible .btn__fill,
.btn.is-done .btn__fill { transform: scale(1); }
.btn__label { display: inline-block; transition: transform .9s var(--ease-spring); }

[data-magnetic].is-magnet,
[data-magnetic].is-magnet .btn__label,
[data-magnetic].is-magnet svg {
  transition-property: transform, color, background-color, box-shadow;
  transition-duration: .25s, .5s, .5s, .5s;
  transition-timing-function: var(--ease-out);
}

/* peach pill, fills with espresso */
.btn--accent { background: var(--peach); color: var(--ink); }
.btn--accent .btn__fill { background: var(--ink); }
.btn--accent:focus-visible, .btn--accent.is-done { color: var(--cream); }
/* espresso pill, fills with sage */
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink .btn__fill { background: var(--sage); }
.btn--ink:focus-visible, .btn--ink.is-done { color: var(--ink); }
/* outline, fills with sage */
.btn--ghost { box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--fg); }
.btn--ghost .btn__fill { background: var(--sage-soft); }

@media (hover: hover) {
  .btn:hover .btn__fill { transform: scale(1); }
  .btn--accent:hover { color: var(--cream); }
  .btn--ink:hover { color: var(--ink); }
  .btn--ghost:hover { box-shadow: inset 0 0 0 1px transparent; }
}

/* text that rolls up on hover */
.roll {
  display: inline-grid;
  height: 1.2em;
  overflow: hidden;
  line-height: 1.2;
  vertical-align: top;
}
.roll > span {
  grid-area: 1 / 1;
  display: block;
  transition: transform .65s var(--ease-out);
}
.roll > span + span { transform: translateY(110%); }
@media (hover: hover) {
  :is(.btn, .copy):hover .roll > span:first-child { transform: translateY(-110%); }
  :is(.btn, .copy):hover .roll > span + span { transform: none; }
}

/* arrow that slides out and back in */
.btn__icon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.15em;
  height: 1.15em;
  overflow: hidden;
}
.btn__icon svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform .65s var(--ease-out);
}
.btn__icon svg + svg { transform: translateX(calc(-120% * var(--flow))); }
.btn__icon--down svg + svg { transform: translateY(-120%); }
html[dir="rtl"] .btn__icon:not(.btn__icon--down) svg,
html[dir="rtl"] .svc__go svg,
html[dir="rtl"] .channel__arrow svg { scale: -1 1; }
.btn__icon--wa { overflow: visible; }
.btn__icon--wa svg + svg { display: none; }
@media (hover: hover) {
  .btn:hover .btn__icon svg:first-child { transform: translateX(calc(120% * var(--flow))); }
  .btn:hover .btn__icon svg + svg { transform: none; }
  .btn:hover .btn__icon--down svg:first-child { transform: translateY(120%); }
  .btn:hover .btn__icon--wa svg:first-child { transform: rotate(-12deg) scale(1.1); }
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .7em;
  margin: 0 0 1.4rem;
  font: 500 var(--t-label)/1.4 var(--f-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
html[lang="he"] .eyebrow { letter-spacing: .01em; font-size: .875rem; }
.led {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--clay);
  animation: breathe 3.2s var(--ease-io) infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.8); }
}

.section-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: end;
  gap: 28px clamp(32px, 6vw, 96px);
}
.section-title {
  margin: 0;
  font: 400 var(--t-h2)/1.06 var(--f-display);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.02em;
  text-wrap: balance;
}
html[lang="he"] .section-title { letter-spacing: -.005em; line-height: 1.12; }
.section-lead {
  margin: 1.25rem 0 0;
  max-width: 50ch;
  font-size: var(--t-lead);
  line-height: 1.65;
  color: var(--soft);
}
.section-head--split .section-lead { margin: 0; }

/* ---------- reveal on scroll ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* the hero is on screen at first paint, so it rises with CSS instead of waiting
   for the scripts (its slogan and lead are the largest things painted) */
html.js:not(.is-pending) .hero [data-reveal] { animation: rise-in 1s var(--ease-out) var(--d, 0s) both; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
html.js:not(.is-pending) .hero [data-split] .w__i { animation: word-in 1.1s var(--ease-out) calc(var(--i) * 65ms) both; }
@keyframes word-in {
  from { transform: translateY(115%); }
  to { transform: none; }
}

/* the clip sits on the media, not the observed figure: a fully clipped
   element never reports as intersecting */
html.js [data-reveal="img"] { opacity: 1; transform: none; filter: none; }
html.js [data-reveal="img"] > :is(img, video) {
  clip-path: inset(100% 0 0 0);
  scale: 1.18;
  transition: clip-path 1.3s var(--ease-io), scale 1.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js [data-reveal="img"] > figcaption { opacity: 0; transition: opacity .8s var(--ease-out) calc(var(--d, 0s) + .9s); }
html.js [data-reveal="img"].is-in > :is(img, video) { clip-path: inset(0 0 0 0); scale: 1; }
html.js [data-reveal="img"].is-in > figcaption { opacity: 1; }

/* headings rise word by word */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: .12em .06em .18em;
  margin: -.12em -.06em -.18em;
}
.w__i { display: inline-block; }
html.js [data-split] .w__i {
  transform: translateY(115%);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 65ms + var(--d, 0s));
}
html.js [data-split].is-in .w__i { transform: none; }

/* photos rest a little softer and bloom to full color under the cursor */
@media (hover: hover) {
  .card__media img,
  .reel__item img { filter: saturate(.8) sepia(.06) brightness(1.02); }
  .card:hover .card__media img,
  .reel__item:hover img { filter: none; }
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding-block: calc(var(--header-h) + clamp(36px, 7vw, 120px)) clamp(48px, 6vw, 96px);
}
.hero__title {
  margin: 0 0 1.6rem;
  font: 400 var(--t-hero)/.98 var(--f-display);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.03em;
  text-wrap: balance;
}
html[lang="he"] .hero__title { letter-spacing: -.01em; line-height: 1.05; }
.hero__title em { font-style: italic; font-weight: 300; color: var(--accent-hi); }
html[lang="he"] .hero__title em { font-style: normal; font-weight: 400; }
.hero__lead {
  max-width: 48ch;
  margin: 0;
  font-size: var(--t-lead);
  line-height: 1.65;
  color: var(--soft);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 2.4rem 2.6rem; }
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font: 500 .8125rem/1.4 var(--f-mono);
  color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 10px; }
.facts__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }

.hero__board {
  position: relative;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 1 / 1;
  margin: 0;
  justify-self: end;
}
.board { width: 100%; height: 100%; touch-action: pan-y; cursor: crosshair; }

/* ---------- reel ---------- */
.reel { padding-block: clamp(8px, 2vw, 24px) var(--section); }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  width: max-content;
  will-change: transform;
}
.reel__item {
  position: relative;
  flex: none;
  height: clamp(220px, 25vw, 360px);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--raise);
}
.reel__item img {
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: cover;
  user-select: none;
  transition: transform 1.4s var(--ease-out), filter .9s var(--ease-out);
}
.reel__cap {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 24px);
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(250, 246, 239, .92);
  color: var(--ink);
  font: 500 .75rem/1.2 var(--f-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateY(calc(100% + 16px));
  transition: transform .6s var(--ease-out);
}
.reel__dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--clay); }
@media (hover: hover) {
  .reel__item:hover img { transform: scale(1.05); }
  .reel__item:hover .reel__cap { transform: none; }
}
@media (hover: none) {
  .reel__cap { transform: none; }
}

/* ---------- work ---------- */
.work { padding-bottom: var(--section); }

.filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.filters__pill {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: var(--sage);
  pointer-events: none;
  transition: transform .7s var(--ease-spring), width .7s var(--ease-spring), height .5s var(--ease-out);
}
.chip {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: .9375rem;
  color: var(--soft);
  transition: color .45s var(--ease-out), box-shadow .45s var(--ease-out), transform .5s var(--ease-spring);
}
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 0 0 1px transparent; }
.chip__n { font: 500 .6875rem/1 var(--f-mono); opacity: .6; margin-top: .2em; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .chip[aria-pressed="false"]:hover { color: var(--fg); box-shadow: inset 0 0 0 1px var(--line-strong); }
}

.grid {
  --row-space: clamp(28px, 3.2vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: row dense;
  column-gap: clamp(16px, 2.2vw, 32px);
  align-items: start;
}
.card { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card__media {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--raise);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter .9s var(--ease-out), scale 1.5s var(--ease-out);
}
html.js .card:not(.is-in) .card__media img { scale: 1.12; }
.card__meta { display: flex; flex-direction: column; gap: 4px; padding-inline: 2px; }
.card__title {
  margin: 0;
  font: 450 1.3125rem/1.25 var(--f-display);
  letter-spacing: -.01em;
  transition: transform .7s var(--ease-out), color .4s;
}
.card__type { margin: 0; font: 400 .8125rem/1.45 var(--f-mono); color: var(--muted); }
@media (hover: hover) {
  .card:hover .card__media img { transform: scale(1.04); }
  .card:hover .card__title { transform: translateX(calc(8px * var(--flow))); color: var(--accent); }
}

.work__more { display: flex; justify-content: center; margin-top: 8px; }

/* ---------- services ---------- */
.services { padding-bottom: var(--section); }
.services__aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.materials__label { margin: 10px 0 0; font: 500 var(--t-label)/1.4 var(--f-mono); color: var(--muted); }
.materials { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.materials li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--raise);
  font-size: .875rem;
  color: var(--soft);
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out), transform .6s var(--ease-spring);
}
@media (hover: hover) {
  .materials li:hover { background: var(--sage-soft); color: var(--ink); transform: translateY(-3px); }
}

.svc { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid var(--line); }
.svc__row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  align-items: center;
  gap: 12px clamp(24px, 4vw, 64px);
  width: 100%;
  padding-block: clamp(22px, 2.6vw, 34px);
  border-top: 1px solid var(--line);
  text-align: start;
}
.svc__row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -.5);
  z-index: -1;
  border-radius: var(--r);
  background: var(--raise);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .6s var(--ease-out);
}
.svc__thumb { display: none; }
.svc__name {
  font: 400 var(--t-h3)/1.15 var(--f-display);
  letter-spacing: -.01em;
  transition: transform .7s var(--ease-out), color .5s var(--ease-out);
}
.svc__desc {
  max-width: 46ch;
  font-size: var(--t-small);
  color: var(--soft);
  transition: transform .8s var(--ease-out);
}
.svc__go {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .5s var(--ease-out), box-shadow .5s;
}
.svc__go svg { width: 19px; height: 19px; transition: transform .7s var(--ease-spring); }
@media (hover: hover) {
  .svc__row:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .svc__row:hover .svc__name { transform: translateX(calc(14px * var(--flow))); color: var(--accent); }
  .svc__row:hover .svc__desc { transform: translateX(calc(8px * var(--flow))); }
  .svc__row:hover .svc__go { background: var(--sage); box-shadow: none; }
  .svc__row:hover .svc__go svg { transform: rotate(calc(-45deg * var(--flow))); }
}

.svc-preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: clamp(200px, 18vw, 260px);
  aspect-ratio: 4 / 5;
  pointer-events: none;
  will-change: transform;
}
.svc-preview__inner {
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  overflow: hidden;
  opacity: 0;
  transform: scale(.3);
  box-shadow: 0 24px 60px -28px rgba(58, 51, 45, .45);
  transition: transform .65s var(--ease-out), opacity .4s var(--ease-out);
}
.svc-preview.is-on .svc-preview__inner { opacity: 1; transform: scale(1); }
.svc-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.18);
  transition: opacity .5s var(--ease-out), transform 1s var(--ease-out);
}
.svc-preview img.is-active { opacity: 1; transform: none; }
@media (hover: none) { .svc-preview { display: none; } }

/* ---------- process ---------- */
.process { padding-bottom: var(--section); }
.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 112px);
}
.steps {
  --p: 0;
  position: relative;
  margin: 0;
  padding: 0;
  padding-inline-start: 28px;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 6px;
  bottom: 6px;
  width: 1.5px;
  border-radius: 2px;
  background: var(--line);
}
.steps::after {
  background: var(--clay);
  transform: scaleY(var(--p));
  transform-origin: top;
}
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px;
  min-height: 56vh;
  padding-block: 0 48px;
  opacity: .3;
  transition: opacity .7s var(--ease-out);
}
.step.is-active { opacity: 1; }
.step__num {
  padding-top: .55em;
  font: 500 .875rem/1 var(--f-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.step__title { margin: 0 0 .6rem; font: 400 var(--t-h3)/1.15 var(--f-display); letter-spacing: -.01em; }
.step__text { margin: 0; max-width: 40ch; color: var(--soft); }
.step__img { display: none; }

.process__aside { position: sticky; top: calc(var(--header-h) + 5vh); }
.frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--raise);
}
.frame__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}
.frame__video { object-position: 50% 42%; }
.frame__img.is-active { opacity: 1; }
.frame__cap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 16px 0 0;
  font: 500 .8125rem/1.4 var(--f-mono);
  color: var(--muted);
}
.frame__count { color: var(--fg); font-variant-numeric: tabular-nums; }

/* ---------- about ---------- */
.about { padding-bottom: var(--section); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 128px);
}
.about__media { position: relative; padding-bottom: 14%; padding-inline-end: 20%; }
.about__media figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: var(--raise); }
.about__portrait { aspect-ratio: 4 / 5; }
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__video {
  position: absolute !important;
  inset-inline-end: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 9 / 16;
  box-shadow: 0 0 0 6px var(--bg);
}
.about__video video { width: 100%; height: 100%; object-fit: cover; }
.about__media figcaption {
  position: absolute;
  inset-inline-start: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250, 246, 239, .92);
  color: var(--ink);
  font: 500 .6875rem/1.25 var(--f-mono);
}
.about__p {
  max-width: 46ch;
  margin: 1.4rem 0 0;
  font-size: var(--t-lead);
  line-height: 1.7;
  color: var(--soft);
}
.about__text .section-title { margin-bottom: .4rem; }
.milestones {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 2.6rem 0 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.milestones li { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ms__num {
  font: 300 clamp(2.5rem, 1.9rem + 2.2vw, 4rem)/1 var(--f-display);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -.02em;
  color: var(--accent-hi);
}
.ms__label { font: 500 .8125rem/1.45 var(--f-mono); color: var(--muted); }

.clients { margin-top: var(--section); }
.clients .eyebrow { display: flex; }
.marquee--clients .marquee__track { gap: clamp(22px, 2.6vw, 40px); }
.client { display: inline-flex; align-items: center; gap: clamp(22px, 2.6vw, 40px); }
.client__name {
  font: 300 clamp(1.75rem, 1.2rem + 2vw, 3.25rem)/1.2 var(--f-display);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.02em;
  white-space: nowrap;
  color: var(--soft);
  transition: color .4s var(--ease-out);
}
.client__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); }
@media (hover: hover) {
  .client:hover .client__name { color: var(--accent); }
}

/* ---------- reviews ---------- */
.reviews { padding-bottom: var(--section); }
.rating { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rating__line { display: flex; align-items: center; gap: 18px; margin: 0; }
.rating__score {
  font: 300 clamp(3rem, 2rem + 3vw, 4.5rem)/1 var(--f-display);
  font-variant-numeric: lining-nums;
  letter-spacing: -.03em;
}
.stars { display: inline-flex; gap: 4px; color: var(--clay); }
.stars span { display: inline-block; }
.stars svg { width: 22px; height: 22px; }
.rating.is-in .stars span { animation: star-pop .8s var(--ease-spring) both; animation-delay: calc(.35s + var(--i) * 90ms); }
@keyframes star-pop {
  from { opacity: 0; transform: scale(.3) rotate(-35deg); }
  to { opacity: 1; transform: none; }
}
.rating__count { margin: 0; font: 500 var(--t-label)/1.4 var(--f-mono); color: var(--muted); }
.rating .btn { margin-top: 8px; }

.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 72px); }
.quote {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.quote__mark { height: .42em; font: 300 5rem/.8 var(--f-display); color: var(--clay); }
.quote__mark::before { content: "\201C"; }
html[lang="he"] .quote__mark::before { content: "\201D"; }
.quote__text {
  margin: 0;
  font: 300 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.42 var(--f-display);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
html[lang="he"] .quote__text { font-weight: 400; letter-spacing: 0; line-height: 1.5; }
.quote__by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.quote__name { font-weight: 500; }
.quote__meta { display: inline-flex; gap: 10px; font: 500 .75rem/1.4 var(--f-mono); color: var(--muted); }
.quote__stars { color: var(--clay); letter-spacing: 2px; }
.quote__note { margin: -8px 0 0; font: 400 .75rem/1.4 var(--f-mono); color: var(--muted); }
.quote__text { white-space: pre-line; }

.review-photos { margin-top: clamp(40px, 5vw, 64px); }
.review-photos__label { margin: 0 0 14px; font: 500 var(--t-label)/1.4 var(--f-mono); color: var(--muted); }
.review-photos__row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
}
.review-photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--raise);
  transition: transform .7s var(--ease-spring);
}
.review-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .8s var(--ease-out); }
.review-photo__by {
  position: absolute;
  inset-inline: 6px;
  bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(250, 246, 239, .92);
  color: var(--ink);
  font: 500 .625rem/1.2 var(--f-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s var(--ease-out), transform .5s var(--ease-out);
}
.review-photos.is-in .review-photo { animation: photo-in .9s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes photo-in { from { opacity: 0; transform: translateY(18px) scale(.94); } to { opacity: 1; transform: none; } }
@media (hover: hover) {
  .review-photo img { filter: saturate(.8) sepia(.06); }
  .review-photo:hover { transform: translateY(-4px); }
  .review-photo:hover img { transform: scale(1.06); filter: none; }
  .review-photo:hover .review-photo__by { opacity: 1; transform: none; }
}
@media (hover: none) {
  .review-photo__by { opacity: 1; transform: none; }
}
@media (max-width: 960px) {
  .review-photos__row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .review-photos__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .quotes { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { padding-bottom: var(--section); }
.qa { border-bottom: 1px solid var(--line); }
.qa__item { border-top: 1px solid var(--line); }
.qa__h { margin: 0; font: inherit; }
.qa__q {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding-block: clamp(20px, 2.4vw, 30px);
  text-align: start;
}
.qa__q::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -.5);
  z-index: -1;
  border-radius: var(--r);
  background: var(--raise);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .6s var(--ease-out);
}
.qa__text {
  font: 400 clamp(1.25rem, 1.05rem + .65vw, 1.75rem)/1.3 var(--f-display);
  letter-spacing: -.01em;
  text-wrap: balance;
  transition: transform .7s var(--ease-out), color .5s var(--ease-out);
}
.qa__item.is-open .qa__text { color: var(--accent); }
/* a plus that turns into a cross */
.qa__icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color .5s var(--ease-out), box-shadow .5s, transform .8s var(--ease-spring), scale .4s var(--ease-spring);
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.7px;
  margin: -.85px 0 0 -8px;
  border-radius: 2px;
  background: currentColor;
}
.qa__icon::after { transform: rotate(90deg); }
.qa__item.is-open .qa__icon { transform: rotate(135deg); background: var(--sage); box-shadow: none; }
.qa__q:active .qa__icon { scale: .88; }

/* answers stay in the page for search engines and no-JS visitors; with JS they fold */
.qa__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .7s var(--ease-out); }
.qa__inner { min-height: 0; overflow: hidden; }
.qa__inner p {
  max-width: 64ch;
  margin: 0;
  padding-bottom: clamp(22px, 2.6vw, 32px);
  line-height: 1.75;
  color: var(--soft);
}
html.js .qa__a { grid-template-rows: 0fr; }
html.js .qa__inner {
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out), visibility 0s .7s;
}
html.js .qa__item.is-open .qa__a { grid-template-rows: 1fr; }
html.js .qa__item.is-open .qa__inner {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .6s var(--ease-out) .12s, transform .8s var(--ease-out) .12s, visibility 0s;
}
@media (hover: hover) {
  .qa__q:hover::before { transform: scaleY(1); transform-origin: 50% 0; }
  .qa__q:hover .qa__text { transform: translateX(calc(14px * var(--flow))); color: var(--accent); }
  .qa__q:hover .qa__icon { background: var(--sage); box-shadow: none; }
}
@media (max-width: 560px) {
  .qa__icon { width: 40px; height: 40px; }
}

/* ---------- contact ---------- */
.contact { padding-block: var(--section) clamp(64px, 8vw, 120px); }
.contact__title {
  margin: 0;
  font: 400 clamp(2.625rem, 1.4rem + 4.6vw, 6.5rem)/1.02 var(--f-display);
  font-variation-settings: "SOFT" 100;
  letter-spacing: -.025em;
  text-wrap: balance;
}
html[lang="he"] .contact__title { letter-spacing: -.01em; line-height: 1.08; }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(40px, 6vw, 112px);
  margin-top: clamp(48px, 6vw, 88px);
}
.channels { margin: 0; padding: 0; list-style: none; }
.channel {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel__label { font: 500 .8125rem/1.4 var(--f-mono); color: var(--muted); }
.channel__value {
  justify-self: start;
  font: 400 clamp(1.25rem, 1rem + .9vw, 1.625rem)/1.25 var(--f-display);
  overflow-wrap: anywhere;
}
.channel__value--plain { grid-column: 2 / -1; }
.ch {
  display: inline-block;
  transition: transform .5s var(--ease-spring), color .4s var(--ease-out);
  transition-delay: calc(var(--i) * 14ms);
}
.channel__arrow { display: grid; place-items: center; width: 40px; height: 40px; }
.channel__arrow svg { width: 19px; height: 19px; transition: transform .6s var(--ease-spring); }
.copy {
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font: 500 .75rem/1.2 var(--f-mono);
  transition: background-color .4s var(--ease-out), box-shadow .4s;
}
.copy.is-done { background: var(--sage); box-shadow: none; }
@media (hover: hover) {
  .channel__value:hover .ch { transform: translateY(-.16em); color: var(--accent); }
  .channel:hover .channel__arrow svg { transform: translate(calc(3px * var(--flow)), -3px); }
  .copy:not(.is-done):hover { background: var(--sage-soft); box-shadow: inset 0 0 0 1px transparent; }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: clamp(24px, 3.2vw, 44px);
  border-radius: var(--r-lg);
  background: var(--raise);
  transition: background-color 1.1s var(--ease-io);
}
.field { position: relative; margin: 0; padding: 0; border: 0; min-width: 0; }
.field__input {
  display: block;
  width: 100%;
  padding: 24px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: linear-gradient(var(--clay), var(--clay)) no-repeat var(--origin-start) bottom / 0% 2px;
  color: var(--fg);
  font: 400 1.0625rem/1.4 var(--f-body);
  outline: none;
  transition: background-size .7s var(--ease-out), border-color .4s;
}
.field__input:focus { background-size: 100% 2px; }
.field__input--area { min-height: 104px; resize: vertical; }
.field__label {
  position: absolute;
  inset-inline-start: 0;
  top: 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.4;
  pointer-events: none;
  transform-origin: var(--origin-start) 0;
  transition: transform .5s var(--ease-out), color .3s;
}
.field__input:focus + .field__label,
.field__input:not(:placeholder-shown) + .field__label { transform: translateY(-22px) scale(.78); color: var(--fg); }
.field.has-err .field__input { border-bottom-color: var(--error); }
.field__err { margin: 8px 0 0; font-size: .8125rem; color: var(--error); }
.field__legend { padding: 0; margin-bottom: 14px; color: var(--muted); font-size: 1rem; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt span {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: .9375rem;
  transition: background-color .4s var(--ease-out), box-shadow .4s, transform .55s var(--ease-spring);
}
.opt input:checked + span { background: var(--peach); box-shadow: none; transform: scale(1.05); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (hover: hover) {
  .opt input:not(:checked):hover + span { background: var(--sage-soft); box-shadow: inset 0 0 0 1px transparent; }
}
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.form__note { max-width: 34ch; margin: 0; font-size: .8125rem; color: var(--muted); }

/* ---------- footer ---------- */
.footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer__mark {
  overflow: hidden;
  padding-block: clamp(16px, 3vw, 48px) clamp(24px, 4vw, 56px);
  text-align: center;
  user-select: none;
}
/* the logo, large: letters settle in, then the fin surfaces */
.logo--footer { display: block; width: min(86%, 980px); height: auto; margin-inline: auto; overflow: visible; }
html.js .logo--footer .i { opacity: 0; transform: translateY(14%); transition: opacity 1.2s var(--ease-out), transform 1.4s var(--ease-out); }
html.js .logo--footer .a { opacity: 0; transform: translateY(70%) scaleY(.4); transition: opacity .6s var(--ease-out) .55s, transform 1.4s var(--ease-spring) .55s; }
html.js .footer__mark.is-on .logo--footer :is(.i, .a) { opacity: 1; transform: none; }
@media (hover: hover) {
  .footer__mark:hover .logo--footer .a { transform: translateY(-6%) rotate(calc(-5deg * var(--flow))); transition-delay: 0s; }
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer__copy { display: inline-flex; align-items: center; gap: 12px; margin: 0; font-size: .875rem; color: var(--muted); }
.footer__copy img { border-radius: 7px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: .875rem; }

.totop {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  transition: transform .9s var(--ease-spring);
}
.totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop__ring circle { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.totop__ring .totop__progress { stroke: var(--clay); stroke-dasharray: 163.36; stroke-dashoffset: 163.36; }
.totop__arrow { position: relative; width: 20px; height: 20px; overflow: hidden; }
.totop__arrow svg { position: absolute; inset: 0; transition: transform .6s var(--ease-out); }
.totop__arrow svg + svg { transform: translateY(120%); }
@media (hover: hover) {
  .totop:hover .totop__arrow svg:first-child { transform: translateY(-120%); }
  .totop:hover .totop__arrow svg + svg { transform: none; }
}

/* ---------- floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  z-index: 55;
  inset-inline-end: clamp(16px, 2.4vw, 32px);
  bottom: calc(clamp(16px, 2.4vw, 32px) + env(safe-area-inset-bottom, 0px));
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 32px -14px rgba(58, 51, 45, .55);
  opacity: 0;
  transform: translateY(160%) scale(.6);
  pointer-events: none;
  transition: transform .9s var(--ease-spring), opacity .4s var(--ease-out), background-color .4s;
}
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.wa-float svg { width: 25px; height: 25px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: wa-ring 3.2s var(--ease-out) infinite;
}
@keyframes wa-ring {
  0% { box-shadow: 0 0 0 0 rgba(188, 202, 177, .8); }
  70%, 100% { box-shadow: 0 0 0 14px rgba(188, 202, 177, 0); }
}
@media (hover: hover) {
  .wa-float:hover { background: var(--sage-deep); }
}

/* ---------- cursor bubble ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 90; width: 0; height: 0; pointer-events: none; }
.cursor__label {
  position: absolute;
  left: -40px;
  top: -40px;
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--peach);
  color: var(--ink);
  font: 500 .75rem/1 var(--f-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: scale(0);
  transition: transform .5s var(--ease-out);
}
.cursor.is-on .cursor__label { transform: scale(1); }
html.has-cursor [data-cursor] { cursor: none; }

/* ---------- lightbox: photos hung on a cream wall ---------- */
.lb { position: fixed; inset: 0; z-index: 100; touch-action: pan-y; color: var(--ink); }
.lb__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(245, 238, 227, .97);
  opacity: 0;
  transition: opacity .55s var(--ease-out);
}
.lb.is-open .lb__backdrop { opacity: 1; }
.lb__stage { position: absolute; inset: 0; pointer-events: none; }
.lb__img {
  position: fixed;
  max-width: none;
  border-radius: 6px;
  object-fit: cover;
  transform-origin: 0 0;
  box-shadow: 0 30px 80px -36px rgba(58, 51, 45, .5);
  pointer-events: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.lb__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(16px, 4vw, 48px) calc(22px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s .12s var(--ease-out), transform .7s .12s var(--ease-out);
}
.lb.is-open .lb__bar { opacity: 1; transform: none; }
.lb__meta { min-width: 0; }
.lb__count { margin: 0 0 6px; font: 500 .75rem/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--grey); }
html[dir="rtl"] .lb__count { text-align: right; }
.lb__title { margin: 0; font: 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.2 var(--f-display); }
.lb__type { margin: 4px 0 0; font-size: .875rem; color: var(--soft); }
.lb__nav { display: flex; gap: 8px; flex: none; }
.lb__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(58, 51, 45, .26);
  transition: background-color .4s var(--ease-out), box-shadow .4s, transform .9s var(--ease-spring);
}
.lb__btn svg { width: 20px; height: 20px; }
html[dir="rtl"] .lb__btn--prev svg,
html[dir="rtl"] .lb__btn--next svg { scale: -1 1; }
@media (hover: hover) {
  .lb__btn:hover { background: var(--sage); box-shadow: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero__board { justify-self: stretch; max-width: none; aspect-ratio: 5 / 4; }
  .section-head--split { grid-template-columns: 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .process__aside { display: none; }
  .step { min-height: 0; opacity: 1; padding-bottom: 44px; }
  .step__img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 20px;
    border-radius: var(--r);
    object-fit: cover;
  }
  .step__video { object-position: 50% 42%; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .svc__row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "thumb name go" "thumb desc go";
    align-items: start;
    gap: 6px 16px;
  }
  .svc__thumb {
    display: block;
    grid-area: thumb;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
  }
  .svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .svc__name { grid-area: name; }
  .svc__desc { grid-area: desc; }
  .svc__go { grid-area: go; width: 40px; height: 40px; align-self: center; }
  .channel { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .channel__label { grid-column: 1 / -1; }
  .channel__value--plain { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .grid { grid-template-columns: 1fr; }
  .header__cta { display: none; }
  .logo--header { height: 26px; }
  .milestones { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .about__video figcaption { display: none; }
  .lb__btn { width: 46px; height: 46px; }
  .lb__bar { flex-direction: column; align-items: stretch; }
  .lb__nav { justify-content: space-between; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html.js [data-reveal],
  html.js [data-reveal="img"],
  html.js [data-split] .w__i {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }
  html.js [data-reveal="img"] > :is(img, video) { clip-path: none !important; }
  html.js [data-reveal="img"] > figcaption { opacity: 1 !important; }
  html.js [data-reveal="img"] :is(img, video),
  html.js .card .card__media img { scale: 1 !important; }
  html.js .logo--footer :is(.i, .a) { opacity: 1 !important; transform: none !important; }
  .marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
