/* ===========================================================
   Karin Ben Avi Zafrani — Shared Stylesheet
   Design system: Marbre Couture — Carrara marble + terracotta
   + warm gold + ink. Italian classical luxury, Hebrew RTL.
   =========================================================== */

/* -------- Tokens -------- */
:root{
  /* Surface fallbacks (the canvas is marble — these are used inside content blocks) */
  --bg:           #FBF8F4;
  --bg-alt:       #F2EDE5;
  --bg-deep:      #EBE3D5;

  /* Ink (text) — slightly cooler to harmonise with marble */
  --ink:          #1A1714;
  --ink-soft:     #4A413A;
  --ink-mute:     #7A6F65;

  /* Italian classical accents — deepened terracotta, warm gold */
  --accent:       #000000;
  --accent-deep:  #4b4b4b;
  --accent-soft:  #ECD0C2;
  --gold:         #B8965A;
  --gold-soft:    #e5e5e5;
  --white:        #FFFFFF;

  /* Marble-friendly hairlines */
  --line:         rgba(74, 65, 58, 0.14);
  --line-soft:    rgba(74, 65, 58, 0.08);

  /* The canvas — Carrara marble, repeated seamlessly */
  --marble-img:   url("_uploads/marbre_seamless.webp?v=20260504");
  --marble-tile:  520px;

  /* Section washes — highly transparent overlays let the marble breathe */
  --wash-default: rgba(251, 248, 244, 0.18);   /* warm cream whisper */
  --wash-alt:     rgba(236, 208, 194, 0.22);   /* terracotta-soft blush */
  --wash-deep:    rgba(184, 150, 90, 0.16);    /* warm gold sigh */
  --wash-ink:     rgba(26, 23, 20, 0.78);      /* dark veil — marble peeks through */

  /* Frosted glass surfaces */
  --glass-bg:     rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-blur:   blur(20px) saturate(140%);

  --radius-sm:    10px;
  --radius:       20px;
  --radius-lg:    32px;
  --radius-pill:  999px;

  /* Refined shadows for stone + glass */
  --shadow-xs:    0 2px 10px -3px rgba(40, 30, 25, .10);
  --shadow-sm:    0 10px 28px -16px rgba(40, 30, 25, .18);
  --shadow:       0 22px 50px -28px rgba(40, 30, 25, .28);
  --shadow-lg:    0 36px 90px -30px rgba(40, 30, 25, .38);

  --ease:         cubic-bezier(.2,.7,.2,1);
  --ease-out:     cubic-bezier(.16,1,.3,1);
  --t-fast:       180ms;
  --t-med:        320ms;
  --t-slow:       620ms;

  --container:    1240px;
  --gutter:       24px;
  --section-y:    96px;

  --font-sans:    "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-serif:   "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html, body{ margin:0; padding:0; }

html{
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body{
  font-family: var(--font-sans);
  /* The Carrara marble canvas — fixed on desktop for parallax luxury,
     scrolls on mobile (iOS Safari can't render fixed bg cleanly). */
  background:
    var(--marble-img) center / var(--marble-tile) repeat,
    #ECE9E2;
  background-attachment: fixed;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  opacity: 0;
  animation: page-in 540ms var(--ease-out) forwards;
  /* Stacking context for body::before/::after & section overlays. */
  isolation: isolate;
}

@media (max-width: 900px){
  body{ background-attachment: scroll; }
}

body.is-leaving{
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

/* Opacity-only — never animate `transform` on body, it would make body the
   containing block for `position: fixed` descendants and break .wa-float. */
@keyframes page-in{
  from{ opacity:0; }
  to  { opacity:1; }
}

img, svg, video{
  max-width: 100%;
  display: block;
}

a{
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover{ color: var(--accent-deep); }

button, input, textarea, select{
  font: inherit;
  color: inherit;
}

button{
  border: none;
  background: none;
  cursor: pointer;
}

::selection{ background: var(--accent-soft); color: var(--ink); }

/* -------- Typography -------- */
h1,h2,h3,h4,h5{
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 .4em;
  color: var(--ink);
  letter-spacing: -0.018em;
}

/* Light, editorial scale. Hero gets very light weight (300) for couture feel.
   `em` accents inside headings inherit color from --accent for an italic-style
   highlight that lets brand words pop without sacrificing typographic calm. */
h1{
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h2{
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.022em;
}
h3{
  font-size: clamp(22px, 2.6vw, 30px);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -.005em;
}
h4{ font-size: 20px; font-family: var(--font-sans); font-weight: 600; }

h1 em, h2 em{
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

p{ margin: 0 0 1em; color: var(--ink-soft); }
p.lede{
  font-size: clamp(18px, 1.8vw, 23px);
  color: var(--ink);
  line-height: 1.55;
  font-weight: 400;
}

.eyebrow{
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  color: #6E5424;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before{
  content: "";
  display: inline-block;
  width: 32px;
  height: 1px;
  background: #6E5424;
  vertical-align: middle;
  margin-inline-end: 12px;
  transform: translateY(-2px);
}

.muted{ color: var(--ink-mute); }

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

.section{
  padding-block: var(--section-y);
  position: relative;
  /* Translucent wash over the marble canvas — veins flow through every
     section, color shift is a whisper between them. */
  background: var(--wash-default);
}

.section--alt{  background: var(--wash-alt);  }
.section--deep{ background: var(--wash-deep); }
.section--ink{  background: var(--wash-ink); color: #F0E9DD; }
.section--ink h1, .section--ink h2, .section--ink h3{ color: #FFF7EB; }
.section--ink p{ color: rgba(240,233,221,.82); }

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center{
  margin-inline: auto;
  text-align: center;
}

/* -------- Buttons -------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  position: relative;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  isolation: isolate;
}

.btn .arr{
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arr{ transform: translateX(-4px); } /* RTL: arrow points right of text but moves toward text */

.btn--primary{
  background: var(--ink);
  color: var(--bg);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover{
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--accent{
  background: var(--accent);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow-sm);
}
.btn--accent:hover{
  background: var(--accent-deep);
  color: #fff;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    var(--shadow);
}

.btn--ghost{
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink);
  border: 1px solid rgba(26, 23, 20, 0.22);
}
.btn--ghost:hover{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--soft{
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xs);
}
.btn--soft:hover{
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-row{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* -------- Header / Nav -------- */
.site-header{
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 60;
  padding: 18px 0;
  transition: background var(--t-med) var(--ease),
              padding var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              backdrop-filter var(--t-med) var(--ease);
}

.site-header.is-scrolled{
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  padding: 10px 0;
  box-shadow: 0 1px 0 rgba(74, 65, 58, 0.08);
}

/* Desktop: give the whole nav-bar a warm, slightly-darker presence — a faint tint
   over light heroes (top) and a deeper smoked-glass once scrolled. Scoped to ≥721px
   so the mobile header keeps its original transparent/white look except when the
   menu is open (handled in the max-width:720px block). 74,65,58 = --ink-soft. */
@media (min-width: 721px){
  .site-header{ background: rgba(74, 65, 58, 0.14); }
  .site-header.is-scrolled{ background: rgba(74, 65, 58, 0.40); }
}

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

.brand{
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  color: var(--ink);
  padding: 4px 16px;
  isolation: isolate;
}

/* Soft warm halo behind the logo — lights up the area so the wordmark "pops" */
.brand::before{
  content: "";
  position: absolute;
  inset: -6px -10px;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(ellipse 80% 65% at 50% 58%,
      rgba(255, 255, 255, .92) 0%,
      rgba(255, 247, 235, .60) 30%,
      rgba(244, 220, 208, .22) 58%,
      transparent 78%);
  filter: blur(8px);
  opacity: .85;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}

.brand:hover::before{
  opacity: 1;
  transform: scale(1.04);
}

/* Tone the halo down a touch when nav becomes a solid blur — already enough contrast */
.site-header.is-scrolled .brand::before{
  opacity: .6;
}

.brand img{
  display: block;
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  transition: height var(--t-med) var(--ease);
  position: relative;
}
/* Shrink the logo when the header turns into its compact scrolled state */
.site-header.is-scrolled .brand img{
  height: 36px;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  display: inline-block;
  padding: 6px 14px;
  color: var(--ink);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.3;
  border-radius: 999px;
  position: relative;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-links a::after{
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-med) var(--ease);
}
.nav-links a:hover{ color: var(--accent); }
.nav-links a:hover::after{ transform: scaleX(.5); }
.nav-links a.is-current{ color: var(--accent); font-weight: 600; }
.nav-links a.is-current::after{ transform: scaleX(1); }

.nav-cta{ margin-inline-start: 8px; }
.nav-cta .btn{ padding: 10px 20px; font-size: 14px; }

.nav-toggle{
  display: none;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  align-items: center;
  justify-content: center;
}
.nav-toggle span{
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after{
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) var(--ease);
}
.nav-toggle span::before{ top: -6px; }
.nav-toggle span::after{ top: 6px; }
.nav-toggle.is-open span{ transform: rotate(45deg); }
.nav-toggle.is-open span::before{ transform: rotate(-90deg) translateX(-6px); opacity: 0; }
.nav-toggle.is-open span::after{ transform: rotate(-90deg) translateX(6px); }

/* Mobile drawer */
.nav-drawer{
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 55;
  padding: 88px 24px 40px;
  transform: translateY(-100%);
  transition: transform var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.nav-drawer.is-open{ transform: none; }
.nav-drawer ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 4px;
}
.nav-drawer a{
  display: block;
  padding: 12px 18px;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  opacity: 0;
  transform: translateY(12px);
}
.nav-drawer.is-open a{
  animation: drawer-in 460ms var(--ease-out) forwards;
}
.nav-drawer.is-open li:nth-child(1) a{ animation-delay: 80ms; }
.nav-drawer.is-open li:nth-child(2) a{ animation-delay: 130ms; }
.nav-drawer.is-open li:nth-child(3) a{ animation-delay: 180ms; }
.nav-drawer.is-open li:nth-child(4) a{ animation-delay: 230ms; }
.nav-drawer.is-open li:nth-child(5) a{ animation-delay: 280ms; }
.nav-drawer.is-open li:nth-child(6) a{ animation-delay: 330ms; }

@keyframes drawer-in{
  to{ opacity: 1; transform: none; }
}

.nav-drawer .nav-foot{
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* -------- Hero -------- */
.hero{
  position: relative;
  padding: 160px 0 100px;
  overflow: hidden;
}
.hero::before{
  /* Soft warm light — restrained so marble veins remain the star */
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  inset-inline-start: -200px;
  top: -120px;
  background: radial-gradient(closest-side, rgba(236, 208, 194, .55) 0%, transparent 75%);
  filter: blur(28px);
  z-index: 0;
  animation: blob 22s var(--ease) infinite alternate;
  opacity: .55;
}
.hero::after{
  content: "";
  position: absolute;
  width: 560px; height: 560px;
  inset-inline-end: -160px;
  bottom: -200px;
  background: radial-gradient(closest-side, rgba(184, 150, 90, .35) 0%, transparent 70%);
  filter: blur(32px);
  z-index: 0;
  animation: blob 26s var(--ease) -6s infinite alternate-reverse;
  opacity: .5;
}

@keyframes blob{
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(40px,-30px,0) scale(1.08); }
  100% { transform: translate3d(-30px,20px,0) scale(0.95); }
}

.hero .container{ position: relative; z-index: 1; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}

.hero h1{
  font-size: clamp(40px, 6vw, 76px);
  margin-bottom: .35em;
}
.hero h1 .accent{ color: var(--accent); }
.hero h1 .accent-mark{
  position: relative;
  display: inline-block;
}
.hero h1 .accent-mark::after{
  content: "";
  position: absolute;
  inset-inline: -4px;
  bottom: 6px;
  height: 14px;
  background: var(--gold-soft);
  border-radius: 4px;
  z-index: -1;
}

.hero-portrait{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-alt);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-portrait img{
  width: 100%; height: 100%;
  object-fit: cover;
  animation: ken-burns 14s var(--ease) infinite alternate;
}
.hero-portrait::after{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(220deg, transparent 50%, rgba(26,23,20,.20));
  pointer-events: none;
}

@keyframes ken-burns{
  0%   { transform: scale(1.02) translate(0,0); }
  100% { transform: scale(1.10) translate(-1.5%,-1%); }
}

/* Home hero portrait — match karin-159.jpg (1024×1536, 2:3) so no part is
   cropped, and disable Ken Burns since scaling > 1.0 would crop too. */
.page-home .hero-portrait{
  aspect-ratio: 1024 / 1536;
}
.page-home .hero-portrait img{
  animation: none;
  object-fit: cover;
}

/* About hero portrait — IMG_9739.webp is 2:3, so match its ratio (overriding the
   square hero--small frame) so the whole image shows with no vertical crop. */
.page-about .hero--small .hero-portrait{
  aspect-ratio: 1024 / 1536;
}
.page-about .hero-portrait img{
  animation: none;          /* Ken Burns scales > 1 and would re-crop */
}

.hero-portrait-frame{
  position: relative;
}
.hero-portrait-frame::before{
  content: "";
  position: absolute;
  inset: -22px;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: rotate(2deg);
  z-index: 0;
  pointer-events: none;
}
/* Inner white-gold trace — jewel-box couture detail */
.hero-portrait-frame::after{
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid rgba(255, 255, 255, 0.55);
  transform: rotate(2deg);
  z-index: 0;
  pointer-events: none;
}
.hero-portrait-frame .floating-dot{
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  z-index: 2;
  box-shadow: 0 0 0 6px rgba(184, 106, 79, 0.22);
}
.hero-portrait-frame .floating-dot:nth-child(2){ top: -10px; inset-inline-start: 20%; animation: float 4s var(--ease) infinite alternate; }
.hero-portrait-frame .floating-dot:nth-child(3){ bottom: 14%; inset-inline-end: -10px; background: var(--gold); animation: float 5.5s var(--ease) -1.2s infinite alternate; }
.hero-portrait-frame .floating-dot:nth-child(4){ bottom: -10px; inset-inline-start: 32%; background: var(--ink); animation: float 6.2s var(--ease) -2.4s infinite alternate; }

@keyframes float{
  to{ transform: translateY(-10px); }
}

/* Mobile-only twin of the hero portrait (markup in index.html). Hidden on desktop —
   the grid-column copy renders there; shown ≤1024px between the lede and the CTA. */
.hero-portrait-frame--inline{ display: none; }

.hero-meta{
  margin-top: 36px;
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  color: var(--ink-soft);
}
.hero-meta .star-row{
  display: inline-flex; gap: 1px; color: var(--gold);
}
.hero-meta strong{ color: var(--ink); font-weight: 700; }

/* Smaller hero on inner pages */
.hero--small{
  padding: 150px 0 60px;
}
.hero--small h1{
  font-size: clamp(36px, 5vw, 56px);
}
.hero--small .hero-grid{
  grid-template-columns: 1.4fr .8fr;
  gap: 48px;
}
.hero--small .hero-portrait{
  aspect-ratio: 1/1;
  transform: none;
  border-radius: var(--radius);
}
.hero--small .hero-portrait-frame::before{
  inset: -14px;
  border-radius: calc(var(--radius) + 6px);
}
.hero--small .hero-portrait-frame::after{
  inset: -6px;
  border-radius: calc(var(--radius) + 2px);
}

/* -------- Reveal Animations -------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 760ms var(--ease-out), transform 760ms var(--ease-out);
  /* Auto-stagger hook — JS sets --reveal-delay on children of [data-stagger].
     will-change is added just-in-time by JS and cleared on transitionend so we
     never leave dozens of idle compositor layers around (e.g. the videos grid). */
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible{
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"].is-visible{ transition-delay: 80ms; }
.reveal[data-delay="2"].is-visible{ transition-delay: 160ms; }
.reveal[data-delay="3"].is-visible{ transition-delay: 240ms; }
.reveal[data-delay="4"].is-visible{ transition-delay: 320ms; }
.reveal[data-delay="5"].is-visible{ transition-delay: 400ms; }
.reveal[data-delay="6"].is-visible{ transition-delay: 480ms; }

/* ---- Reveal flavours — compose with .reveal (e.g. class="reveal reveal-scale").
   Each varies only the *entrance*; the shared stagger/delay choreography stays. ---- */

/* Gentle scale settle — cards, CTAs, stat tiles */
.reveal-scale{ transform: translateY(26px) scale(.965); }
.reveal-scale.is-visible{ transform: none; }

/* Directional drift-in. RTL-aware: -right enters from the inline-end (reading start). */
.reveal-right{ transform: translate3d(46px, 10px, 0); }
.reveal-left { transform: translate3d(-46px, 10px, 0); }
.reveal-right.is-visible,
.reveal-left.is-visible{ transform: none; }

/* Focus-pull — a soft blur clears as it settles. Reserve for headings / hero. */
.reveal-blur{
  filter: blur(14px);
  transition-property: opacity, transform, filter;
  transition-duration: 820ms;
  transition-timing-function: var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-blur.is-visible{ filter: blur(0); }

/* Opacity-only fade — safe to pair with data-parallax (which owns the transform).
   NOTE: we deliberately do NOT ship a clip-path "curtain" reveal: a fully clipped
   element reports zero intersection area, so IntersectionObserver never fires and
   it would never un-clip. Feature media uses `reveal` + data-parallax instead. */
.reveal-fade{ opacity: 0; }
.reveal-fade.is-visible{ opacity: 1; }

/* Transient entrance transition — JS adds .is-revealing for the duration of the
   entrance, then removes it on transitionend. Its higher specificity (.reveal +
   .is-revealing) beats component classes that own a `transition` (.card, .tile,
   .testimonial…), so the graceful fade wins; once gone, those components keep
   their own snappy hover timing. Covers every flavour's animated property. */
.reveal.is-revealing{
  transition:
    opacity 760ms var(--ease-out),
    transform 760ms var(--ease-out),
    filter 820ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
/* Parallax elements own their transform live (JS rewrites --py every frame), so
   never transition it — only their opacity/filter entrance. Keeps drift smooth
   and avoids a snap when .is-revealing is removed mid-scroll. */
.reveal.is-revealing[data-parallax]{
  transition:
    opacity 760ms var(--ease-out),
    filter 820ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

/* ---- Scroll-linked parallax drift — JS writes --py per frame (desktop only) ---- */
[data-parallax]{ transform: translate3d(0, var(--py, 0px), 0); }
@media (min-width: 901px){ [data-parallax]{ will-change: transform; } }

/* ---- Hero portrait soft parallax, driven by the shared --scroll-y custom prop ---- */
.page-home .hero-portrait{
  transform: rotate(-1.5deg) translate3d(0, calc(var(--scroll-y, 0px) * 0.04), 0);
  will-change: transform;
}
.hero--small .hero-portrait{
  transform: translate3d(0, calc(var(--scroll-y, 0px) * 0.045), 0);
  will-change: transform;
}

/* ---- Hero accent highlight draws itself in once the headline lands ---- */
.hero h1 .accent-mark::after{
  transform-origin: 100% 50%;          /* RTL: grow from the reading start (right) */
  transition: transform 760ms var(--ease-out) 520ms;
}
.reveal .accent-mark::after{ transform: scaleX(0); }
.reveal.is-visible .accent-mark::after{ transform: scaleX(1); }

/* ---- Reading-progress hairline (element injected by script.js) ---- */
.scroll-progress{
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 2px;
  z-index: 1200;
  background: linear-gradient(to left, var(--gold), var(--accent-deep) 55%, var(--gold));
  transform: scaleX(0);
  transform-origin: 100% 50%;          /* RTL: fills from the right */
  pointer-events: none;
  opacity: .85;
}

/* -------- Cards -------- */
.cards{
  display: grid;
  gap: 24px;
}
.cards--3{ grid-template-columns: repeat(3, 1fr); }
.cards--4{ grid-template-columns: repeat(4, 1fr); }
.cards--2{ grid-template-columns: repeat(2, 1fr); }

.card{
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card:hover{
  transform: translateY(-6px);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow);
  border-color: rgba(184, 150, 90, .5);
}

.card .ico{
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .ico svg{ width: 24px; height: 24px; }

.card h3{ margin-bottom: 8px; }
.card p{ margin: 0 0 16px; }
.card .read-more{
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-top: 12px;
}
.card .read-more::after{
  content: "←";
  transition: transform var(--t-fast) var(--ease);
}
.card:hover .read-more::after{ transform: translateX(-4px); }

/* Service teaser card variant */
.card--teaser{
  padding: 28px;
}
.card--teaser .ico{
  margin-bottom: 14px;
  background: var(--gold-soft);
  color: var(--accent-deep);
}

/* Advantage card */
.adv-card{
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 36px 32px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.adv-card::before{
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-med) var(--ease);
}
.adv-card:hover{
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow);
}
.adv-card:hover::before{ transform: scaleX(1); }
.adv-card .num{
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.adv-card h3{ font-size: 21px; margin-bottom: 10px; }
.adv-card p{ margin: 0; font-size: 15px; }

/* -------- Stats / Numbers band -------- */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  padding: 56px 40px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  margin-top: 24px;
}
.stat .num{
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  color: var(--ink);
  font-weight: 700;
}
.stat .num .plus{ color: var(--accent); }
.stat .label{
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

/* -------- Pull quote -------- */
.pullquote{
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.pullquote p{
  font-family: var(--font-serif);
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.4;
  color: var(--ink);
  position: relative;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2.2vw, 28px);
}
/* Oversized quotation marks framing the line on both horizontal sides — in RTL
   the opening mark lands on the right, the closing on the left. Metallic-gold
   gradient glyphs, gently offset top/bottom for an editorial feel. */
.pullquote p::before,
.pullquote p::after{
  flex: none;
  align-self: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(60px, 9vw, 124px);
  line-height: 1;
  /* quote glyphs hang high in their em box — drop them so the mark optically
     centres against the (multi-line) text */
  transform: translateY(.2em);
  background: linear-gradient(150deg, #ffffff, #f4efe6 50%, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: .95;
  /* soft warm shadow gives the white marks definition on the light marble */
  filter: drop-shadow(0 5px 12px rgba(90, 78, 64, .3));
}
.pullquote p::before{ content: "“"; }
.pullquote p::after{ content: "”"; }
.pullquote-mark{
  display: block;
  width: clamp(480px, 60vw, 820px);
  max-width: 100%;
  height: auto;
  margin: 40px auto 0;
  object-fit: contain;
  opacity: .95;
  filter: drop-shadow(0 8px 26px rgba(74, 65, 58, .12));
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.pullquote:hover .pullquote-mark{ opacity: 1; transform: translateY(-2px); }

.pullquote .attrib{
  margin-top: 20px;
  font-family: var(--font-sans);
  color: var(--ink-mute);
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 720px){
  .pullquote-mark{
    width: clamp(280px, 90vw, 460px);
    margin-top: 28px;
  }
}

/* -------- Service block (alternating row) -------- */
.svc{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 96px;
}
.svc:last-child{ margin-bottom: 0; }
.svc--reverse > .svc-text{ order: 2; }
.svc--reverse > .svc-media{ order: 1; }

.svc-text .num-badge{
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .02em;
  display: inline-block;
  margin-bottom: 16px;
  position: relative;
  padding-inline-start: 56px;
}
.svc-text .num-badge::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  width: 44px;
  height: 1px;
  background: var(--accent);
}

.svc-text h2{
  margin-bottom: 18px;
  font-size: clamp(28px, 3vw, 38px);
}

.svc-list{
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.svc-list li{
  position: relative;
  padding-inline-start: 28px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}
.svc-list li::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 11px;
  width: 14px;
  height: 2px;
  background: var(--accent);
}

.svc-media{
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  box-shadow: var(--shadow);
}
.svc-media img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease);
}
.svc-media:hover img{ transform: scale(1.04); }

.svc-media-tag{
  position: absolute;
  bottom: 18px;
  inset-inline-start: 18px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--glass-border);
}

/* -------- Process timeline -------- */
.process{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  margin-top: 32px;
}
.process::before{
  content: "";
  position: absolute;
  top: 24px;
  inset-inline: 24px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
}
.step{
  text-align: center;
  position: relative;
  padding-top: 64px;
}
.step .step-num{
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  color: var(--accent-deep);
  font-family: var(--font-serif);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.step h4{ margin-bottom: 6px; font-size: 18px; }
.step p{ font-size: 14px; margin: 0; }

/* -------- Portfolio grid -------- */
.filter-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.chip{
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(74, 65, 58, 0.16);
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.chip:hover{
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--accent);
  color: var(--ink);
}
.chip.is-active{
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.portfolio{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  grid-auto-rows: 180px;
  grid-auto-flow: dense; /* pack tiles, avoid empty cells from row-span tiles */
}
.tile{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  cursor: pointer;
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), opacity var(--t-med) var(--ease);
  isolation: isolate;
}
.tile.is-hidden{ display: none; }
.tile img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 800ms var(--ease);
}
.tile:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.tile:hover img{ transform: scale(1.06); }
.tile-cap{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 24px;
  background: linear-gradient(to top, rgba(26,23,20,.78), transparent 55%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.tile:hover .tile-cap{ opacity: 1; transform: none; }
.tile-cap .tag{
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 600;
  margin-bottom: 4px;
}
.tile-cap h4{
  color: #fff;
  margin: 0;
  font-size: 18px;
}

/* Tile spans for masonry feel */
.tile.s-1{ grid-column: span 4; grid-row: span 2; }
.tile.s-2{ grid-column: span 4; grid-row: span 1; }
.tile.s-3{ grid-column: span 4; grid-row: span 1; }
.tile.s-4{ grid-column: span 6; grid-row: span 2; }
.tile.s-5{ grid-column: span 6; grid-row: span 2; }
.tile.s-6{ grid-column: span 4; grid-row: span 1; }
.tile.s-7{ grid-column: span 4; grid-row: span 2; }
.tile.s-8{ grid-column: span 4; grid-row: span 1; }
.tile.s-9{ grid-column: span 4; grid-row: span 1; }
.tile.s-10{ grid-column: span 4; grid-row: span 1; }
.tile.s-11{ grid-column: span 4; grid-row: span 2; }
.tile.s-12{ grid-column: span 4; grid-row: span 1; }

/* -------- Lightbox -------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15,13,11,.92);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.lightbox.is-open{ display: flex; opacity: 1; }
.lightbox-img{
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  animation: lb-zoom 320ms var(--ease-out);
}
@keyframes lb-zoom{
  from{ opacity:0; transform: scale(.96); }
  to  { opacity:1; transform: none; }
}
.lightbox-cap{
  position: absolute;
  bottom: 32px;
  inset-inline: 0;
  text-align: center;
  color: #fff;
  font-size: 14px;
  letter-spacing: .04em;
}
.lightbox button{
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  transition: all var(--t-fast) var(--ease);
}
.lightbox button:hover{ background: rgba(255,255,255,.20); transform: scale(1.06); }
.lb-close{ top: 28px; inset-inline-end: 28px; }
.lb-prev{ inset-inline-end: 28px; top: 50%; transform: translateY(-50%); }
.lb-next{ inset-inline-start: 28px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover{ transform: translateY(-50%) scale(1.06); }

body.no-scroll{ overflow: hidden; }

/* -------- Video Gallery -------- */
.video-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-tile{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 9 / 16;
  cursor: pointer;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
}
.video-tile:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.video-tile img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms var(--ease), filter var(--t-med) var(--ease);
}
.video-tile:hover img{
  transform: scale(1.05);
  filter: brightness(.85);
}

/* Play button overlay */
.video-tile .play-btn{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  transition: transform var(--t-med) var(--ease), background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
}
.video-tile .play-btn svg{
  width: 30px; height: 30px;
  margin-inline-start: 4px; /* optical centering for play triangle */
}
.video-tile:hover .play-btn{
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 36px -10px rgba(201,123,95,.55);
}
.video-tile .play-btn::before{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  pointer-events: none;
  animation: ping 2.6s var(--ease) infinite;
}

/* Meta — pinned to bottom of tile */
.video-tile .tile-meta{
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 22px 20px;
  background: linear-gradient(to top, rgba(15,13,11,.92), rgba(15,13,11,.55) 50%, transparent);
  color: #fff;
  z-index: 1;
  pointer-events: none;
}
.video-tile .tile-meta .tag{
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.video-tile .tile-meta h3{
  color: #fff;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1.35;
}

/* -------- Video Lightbox -------- */
.video-lightbox{
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(8,7,6,.96);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.video-lightbox.is-open{ display: flex; opacity: 1; }

.vlb-stage{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
}
.vlb-video{
  display: block;
  max-width: min(100%, 540px);
  max-height: 82vh;
  width: auto;
  height: auto;
  background: #000;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  outline: none;
  animation: lb-zoom 320ms var(--ease-out);
}
.vlb-cap{
  color: rgba(255,255,255,.78);
  font-size: 14px;
  letter-spacing: .04em;
  text-align: center;
  max-width: 540px;
}
.vlb-loading{
  color: rgba(255,255,255,.85);
  font-size: 16px;
  letter-spacing: .04em;
  text-align: center;
  max-width: 540px;
}
.vlb-loading[hidden]{ display: none; }

.video-lightbox button{
  position: absolute;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    box-shadow var(--t-med) var(--ease),
    transform var(--t-fast) var(--ease);
  z-index: 2;
}
.video-lightbox button:hover{
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.32);
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
}
.video-lightbox button:active{ transform: scale(.96); }
.video-lightbox button:focus-visible{
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 3px;
}

.vlb-close{ top: 22px; inset-inline-end: 22px; }
.vlb-close:hover{ transform: scale(1.06); }

/* Vertically center via top + negative margin so :hover transforms are unaffected. */
.vlb-prev,
.vlb-next{
  top: 50%;
  margin-top: -28px;     /* half of 56px height */
}
.vlb-prev{ inset-inline-end: 22px; }
.vlb-next{ inset-inline-start: 22px; }
.vlb-prev:hover{ transform: translateX(6px); }   /* in RTL, +X moves toward the page-left edge */
.vlb-next:hover{ transform: translateX(-6px); }

@media (max-width: 1024px){
  .video-grid{ grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 720px){
  .video-grid{ grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .video-tile .play-btn{ width: 56px; height: 56px; }
  .video-tile .play-btn svg{ width: 22px; height: 22px; }
  .video-tile .tile-meta{ padding: 20px 14px 14px; }
  .video-tile .tile-meta h3{ font-size: 13px; }
  .video-tile .tile-meta .tag{ font-size: 10px; margin-bottom: 3px; }

  .video-lightbox{ padding: 12px; }
  .vlb-video{ max-height: 78vh; }
  .vlb-close{ top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; font-size: 22px; }
  .vlb-prev, .vlb-next{ width: 44px; height: 44px; font-size: 24px; margin-top: -22px; }
  .vlb-prev{ inset-inline-end: 12px; }
  .vlb-next{ inset-inline-start: 12px; }
}
@media (max-width: 460px){
  .video-grid{ grid-template-columns: 1fr; gap: 16px; }
  .video-tile{ aspect-ratio: 9 / 14; } /* slightly less tall on single column */
  .video-tile .play-btn{ width: 64px; height: 64px; }
  .video-tile .play-btn svg{ width: 26px; height: 26px; }
}

/* -------- Testimonial cards -------- */
.testimonials{
  display: flex;            /* fallback layout if the Masonry CDN is unavailable */
  flex-wrap: wrap;
  align-items: flex-start;  /* don't stretch short cards to row height */
  gap: 22px;
  position: relative;       /* positioning context for Masonry's absolute items */
}
.testimonials .testimonial{
  width: calc((100% - 44px) / 3);   /* 3 columns; 2 × 22px horizontal gutter */
}
/* Masonry is active: it absolutely-positions each card and manages the container
   height. Horizontal gutter comes from Masonry's gutter option; the vertical
   gutter from each card's margin-bottom. */
.testimonials.is-masonry{ display: block; }
.testimonials.is-masonry .testimonial{ margin-bottom: 22px; }
.testimonial{
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-med) var(--ease),
              box-shadow var(--t-med) var(--ease),
              border-color var(--t-med) var(--ease),
              background var(--t-med) var(--ease);
}
.testimonial:hover{
  transform: translateY(-4px);
  background: var(--glass-bg-strong);
  box-shadow: var(--shadow);
  border-color: rgba(184, 150, 90, .5);
}
.testimonial .stars{
  display: inline-flex;
  gap: 3px;
  color: var(--gold);
  margin-bottom: 14px;
}
.testimonial .stars svg{ width: 16px; height: 16px; }
.testimonial blockquote{
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  flex: 1;
}
.testimonial .who{
  display: flex; flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}
.testimonial .who .name{
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.testimonial .who .biz{
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .02em;
}

/* -------- Form -------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}

.form{
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
}
.form h2{
  font-family: var(--font-sans);
  font-size: 22px;
  margin-bottom: 24px;
}

.field{
  position: relative;
  margin-bottom: 20px;
}
.field input,
.field textarea{
  width: 100%;
  padding: 22px 18px 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid rgba(74, 65, 58, 0.16);
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.field textarea{
  min-height: 130px;
  resize: vertical;
  padding-top: 24px;
}
.field input:focus,
.field textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(184, 106, 79, .14);
}
.field label{
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  font-size: 14px;
  color: var(--ink-mute);
  pointer-events: none;
  transition: transform var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  background: transparent;
  padding: 0 4px;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label{
  transform: translateY(-12px) scale(.82);
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 4px;
}

.field--err input,
.field--err textarea{ border-color: #C0463F; }
.field-msg{
  margin-top: 8px;
  font-size: 13px;
  color: #C0463F;
  display: none;
}
.field--err .field-msg{ display: block; }

.form-status{
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  display: none;
}
.form-status.is-success{
  display: block;
  background: #E7EFE3;
  color: #355c2e;
  border: 1px solid #BAD2AE;
}
.form-status.is-error{
  display: block;
  background: #F8E0DD;
  color: #8E2A1F;
  border: 1px solid #E5B3AD;
}

.form .btn{ width: 100%; justify-content: center; padding: 18px; font-size: 16px; }

/* Contact card — dark veil over marble. Backdrop-blur lets marble veins
   read faintly at the edges, giving the dark block depth instead of flatness. */
.contact-card{
  background: rgba(26, 23, 20, 0.82);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  color: #F0E9DD;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-card::after{
  content: "";
  position: absolute;
  top: -40px;
  inset-inline-end: -40px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 106, 79, .35), transparent 70%);
}
.contact-card h2{ color: #FFF7EB; font-size: 26px; }
.contact-card p{ color: rgba(240,233,221,.78); }

.contact-rows{
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.contact-row{
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #F0E9DD;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.contact-row:hover{
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateY(-2px);
}
.contact-row .ico-c{
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(201,123,95,.20);
  color: var(--accent-soft);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .ico-c svg{ width: 20px; height: 20px; }
.contact-row .meta{ display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-row .meta .lab{ font-size: 12px; color: rgba(240,233,221,.6); letter-spacing: .08em; text-transform: uppercase; }
.contact-row .meta .val{ font-size: 15px; font-weight: 500; }
.contact-row .arr-c{ color: rgba(240,233,221,.5); transition: transform var(--t-fast) var(--ease); }
.contact-row:hover .arr-c{ transform: translateX(-4px); color: var(--accent-soft); }

/* -------- FAQ accordion -------- */
.faq{ display: grid; gap: 12px; max-width: 820px; margin-inline: auto; }
.faq details{
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease);
}
.faq details[open]{
  background: var(--glass-bg-strong);
  border-color: rgba(184, 150, 90, .5);
  box-shadow: var(--shadow-sm);
}
.faq summary{
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary .plus{
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 18px;
  transition: transform var(--t-med) var(--ease), background var(--t-fast) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary .plus{
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
}
/* JS in script.js drives the height animation via the Web Animations
   API. CSS just keeps the answer wrapper free of conflicting layout
   and handles the gentle fade-in of the inner text. */
.faq .ans{
  overflow: hidden;
}
.faq .ans .ans-inner{
  padding: 0 26px 24px;
  color: var(--ink-soft);
  line-height: 1.7;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms ease 60ms, transform 260ms ease 60ms;
}
.faq details[open] .ans .ans-inner{
  opacity: 1;
  transform: none;
}

/* -------- Values strip -------- */
.values{
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
  text-align: center;
  padding: 48px 0;
  border-block: 1px solid var(--line);
}
.value{
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
  font-weight: 700;
  position: relative;
}
.value::after{
  content: "·";
  position: absolute;
  inset-inline-end: -32px;
  color: var(--accent);
  font-size: 30px;
  opacity: .6;
}
.value:last-child::after{ display: none; }

/* -------- CTA Band -------- */
.cta-band{
  /* Dark veil over the marble — onyx tile in a couture-frame layout */
  background: rgba(26, 23, 20, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band::before{
  content: "";
  position: absolute;
  top: -120px; inset-inline-start: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(closest-side, rgba(184, 106, 79, .42), transparent 70%);
  border-radius: 50%;
}
.cta-band::after{
  content: "";
  position: absolute;
  bottom: -160px; inset-inline-end: -160px;
  width: 460px; height: 460px;
  background: radial-gradient(closest-side, rgba(184, 150, 90, .26), transparent 70%);
  border-radius: 50%;
}
.cta-band > *{ position: relative; z-index: 1; }
.cta-band h2{
  color: #FFF7EB;
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}
.cta-band p{
  color: rgba(240,233,221,.78);
  margin: 0 auto 28px;
  max-width: 580px;
}

/* -------- Footer — onyx anchor over the marble canvas -------- */
.site-footer{
  background: rgba(20, 18, 16, 0.88);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  backdrop-filter: blur(24px) saturate(120%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 80px 0 28px;
  margin-top: 0;
  color: rgba(240, 233, 221, 0.72);
}
.foot-grid{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.foot-col h4{
  font-family: var(--font-serif);
  color: #FFF7EB;
  font-size: 18px;
  margin-bottom: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.foot-col p{
  font-size: 14px;
  line-height: 1.7;
  max-width: 360px;
  color: rgba(240, 233, 221, 0.72);
}
.foot-col ul{
  list-style: none;
  margin: 0; padding: 0;
  display: grid; gap: 10px;
}
.foot-col a{
  color: rgba(240, 233, 221, 0.78);
  font-size: 14px;
}
.foot-col a:hover{ color: var(--accent-soft); }

.foot-socials{
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.foot-socials a{
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(240, 233, 221, 0.85);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.foot-socials a:hover{
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--accent);
}
.foot-socials svg{ width: 18px; height: 18px; }

.foot-bottom{
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(240, 233, 221, 0.55);
}
.foot-bottom a{ color: rgba(240, 233, 221, 0.65); }
.foot-bottom a:hover{ color: var(--accent-soft); }

/* -------- Floating WhatsApp button -------- */
.wa-float{
  position: fixed;
  bottom: 22px;
  right: 22px;
  left: auto;
  z-index: 50;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,.55);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.wa-float:hover{
  transform: scale(1.08) translateY(-2px);
  color:#fff;
  box-shadow: 0 18px 36px -10px rgba(37,211,102,.65);
}
.wa-float svg{ width: 32px; height: 32px; display: block; }
.wa-float::after{
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,.35);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping{
  0%{ transform: scale(1); opacity:.7; }
  100%{ transform: scale(1.5); opacity: 0; }
}

/* ============================================================
   PREMIUM DECORATION — ambient halos, scroll-linked parallax,
   accent shimmers and gradient borders. Adds depth without
   competing with content. JS sets --scroll-y on <html>.
   ============================================================ */

:root{ --scroll-y: 0px; }

/* (Page-wide fixed orbs removed — they bled through transparent sections
   and got cut by the wave dividers, creating an ugly artifact. Per-section
   halos still drift inside .section--alt via ::after, and the hero blobs
   still animate inside their containers.) */

/* ---- Scroll-linked parallax halos in alt sections ----
   Two soft orbs per section that slide opposite the scroll direction,
   creating a sense of depth as the page moves. */
.section{ position: relative; }
.section--alt{ overflow: hidden; }

/* Single warm orb drifting at the lower corner of accented sections.
   (::before is reserved for the wave divider below.) */
.section--alt::after{
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  bottom: -18%;
  inset-inline-end: -10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(184, 150, 90, .22), transparent 72%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  transform: translate3d(0, calc(var(--scroll-y, 0px) * -0.18), 0);
}
.section--alt > *{ position: relative; z-index: 2; }

/* ---- Cream sections occasionally get a single warm orb ---- */
.section:not(.section--alt):not(.section--ink) + .section:not(.section--alt):not(.section--ink){
  /* Skip — this would double-stack on consecutive cream sections */
}

/* ---- Pullquote stage halo ---- */
.pullquote{
  position: relative;
  z-index: 1;
}
.pullquote::before{
  content: "";
  position: absolute;
  inset: -30% -10%;
  background:
    radial-gradient(ellipse 55% 70% at 50% 50%, rgba(236, 208, 194, .32), transparent 70%),
    radial-gradient(ellipse 80% 40% at 50% 100%, rgba(184, 150, 90, .14), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

/* ---- Stats band micro-glow + animated sweep ---- */
.stats{ position: relative; isolation: isolate; }
.stats::before{
  content: "";
  position: absolute;
  inset: -28px;
  z-index: -1;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(184, 150, 90, .12), transparent 70%);
  filter: blur(32px);
  border-radius: var(--radius-lg);
}
.stats::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 247, 235, .55) 48%,
    rgba(244, 220, 208, .35) 52%,
    transparent 70%
  );
  background-size: 220% 220%;
  background-position: 100% 0%;
  mix-blend-mode: overlay;
  pointer-events: none;
  opacity: .6;
  animation: sheen-sweep 9s var(--ease) infinite;
}
@keyframes sheen-sweep{
  0%   { background-position: 100% 0%; }
  100% { background-position: -20% 0%; }
}

/* ---- Card top-edge gradient stripe on hover ---- */
.card{ position: relative; overflow: hidden; }
.card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--gold), var(--accent-deep));
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--t-med) var(--ease);
  z-index: 2;
}
.card:hover::before{ transform: scaleX(1); }
/* Subtle radial spotlight on hover */
.card::after{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 123, 95, .08), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
  z-index: 0;
}
.card:hover::after{ opacity: 1; }
.card > *{ position: relative; z-index: 1; }

/* ---- Hero (small) — extra blob like the home hero ---- */
.hero--small{ position: relative; overflow: hidden; }
.hero--small::before{
  content: "";
  position: absolute;
  width: 540px; height: 540px;
  inset-inline-start: -160px;
  top: -100px;
  background: radial-gradient(closest-side, rgba(244, 220, 208, .6), transparent 75%);
  filter: blur(20px);
  z-index: 0;
  animation: blob 22s var(--ease) infinite alternate;
  opacity: .85;
  pointer-events: none;
}
.hero--small::after{
  content: "";
  position: absolute;
  width: 440px; height: 440px;
  inset-inline-end: -140px;
  bottom: -160px;
  background: radial-gradient(closest-side, rgba(237, 224, 194, .55), transparent 75%);
  filter: blur(22px);
  z-index: 0;
  animation: blob 28s var(--ease) -8s infinite alternate-reverse;
  opacity: .85;
  pointer-events: none;
}
.hero--small > *{ position: relative; z-index: 1; }

/* ============================================================
   DIAGONAL SLANT CUT BETWEEN SECTIONS
   Each section under <main> (and the footer) is clipped to a
   slanted top edge so consecutive sections meet at a diagonal
   instead of a horizontal seam. Confident, contemporary,
   editorial. Slant is ~100 px tall on desktop (~4° angle on a
   1440 px viewport) and 56 px on mobile.
   ============================================================ */

main > .section,
.site-footer{
  position: relative;
  z-index: 1;                                   /* later siblings paint on top */
  margin-top: -100px;                            /* pull up to overlap the section above */
  padding-top: calc(var(--section-y) + 100px);   /* compensate so content keeps its breathing room */
  clip-path: polygon(0 100px, 100% 0, 100% 100%, 0 100%);
  /* clip-path clips visually but doesn't prevent absolute-positioned children
     (e.g. .pullquote::before's -10% horizontal halo) from contributing to the
     parent's scrollWidth, which leaks through to <html> on narrow viewports.
     overflow:clip contains it without creating a scroll container or breaking
     position:fixed descendants. */
  overflow: clip;
}

.site-footer{
  padding-top: 180px;                            /* original 80 + 100 overlap */
}

/* First section under main has no slant (sits directly below the hero
   with no preceding section to slant against) */
main > .section:first-of-type{
  clip-path: none;
  margin-top: 0;
  padding-top: var(--section-y);
}

@media (max-width: 720px){
  main > .section,
  .site-footer{
    margin-top: -56px;
    padding-top: calc(var(--section-y) + 56px);
    clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  }
  .site-footer{ padding-top: 136px; }            /* mobile 80 + 56 */
  main > .section:first-of-type{
    clip-path: none;
    margin-top: 0;
    padding-top: var(--section-y);
  }
}

/* ---- Floating accent orbs in CTA band (already has blobs — add a slow pulse) ---- */
.cta-band{
  position: relative;
}
.cta-band::after{
  /* Override: extend the existing ::after with parallax-friendly slow drift */
  animation: cta-drift 16s var(--ease) infinite alternate;
}
@keyframes cta-drift{
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-30px, -20px, 0) scale(1.08); }
}

/* ---- Contact card — soft accent halo ---- */
.contact-card{ position: relative; isolation: isolate; }

/* ---- Testimonial cards: gold-edge glow on hover ---- */
.testimonial::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(201,168,107,.2), transparent 40%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  z-index: 0;
}
.testimonial:hover::before{ opacity: 1; }
.testimonial > *{ position: relative; z-index: 1; }

/* ---- Reveal variants for choreography variety ---- */
.reveal-x{
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out);
}
[dir="rtl"] .reveal-x{ transform: translateX(40px); }
.reveal-x.is-visible{ opacity: 1; transform: none; }

/* ---- Reduced-motion: disable all decorative animations ---- */
@media (prefers-reduced-motion: reduce){
  body::before, body::after,
  .stats::after,
  .cta-band::after,
  .hero--small::before, .hero--small::after{
    animation: none !important;
  }
  .section--alt::before, .section--alt::after{ transform: none !important; }
}

/* -------- Responsive -------- */
@media (max-width: 1024px){
  :root{ --section-y: 80px; }
  .hero-grid{ grid-template-columns: 1fr; gap: 48px; }
  .hero--small .hero-grid{ grid-template-columns: 1fr; }   /* about: stack text + portrait, not a cramped 2-col */
  .hero-portrait{ max-width: 460px; margin-inline: auto; }
  /* Home only: the portrait moves in-flow (between the lede and the CTA) via the
     inline twin, so hide its side-column copy. Other pages keep their portrait. */
  .page-home .hero-grid > .hero-portrait-frame{ display: none; }
  .page-home .hero-portrait-frame--inline{ display: block; margin-top: 24px; }
  .cards--4{ grid-template-columns: repeat(2, 1fr); }
  .cards--3{ grid-template-columns: repeat(2, 1fr); }
  .stats{ grid-template-columns: repeat(2, 1fr); padding: 48px 24px; }
  .svc{ grid-template-columns: 1fr; gap: 36px; }
  .svc--reverse > .svc-text,
  .svc--reverse > .svc-media{ order: unset; }
  .testimonials .testimonial{ width: calc((100% - 22px) / 2); }   /* 2 columns */
  .contact-grid{ grid-template-columns: 1fr; gap: 36px; }
  .process{ grid-template-columns: repeat(2, 1fr); }
  .process::before{ display: none; }
  .portfolio{ grid-template-columns: repeat(6, 1fr); grid-auto-rows: 160px; }
  .tile.s-1, .tile.s-7, .tile.s-11{ grid-column: span 6; grid-row: span 2; }
  .tile.s-4, .tile.s-5{ grid-column: span 6; grid-row: span 2; }
  .tile{ grid-column: span 3; grid-row: span 1; }
}

@media (max-width: 720px){
  :root{ --gutter: 20px; --section-y: 64px; }
  body{ font-size: 16px; }
  .nav-links, .nav-cta{ display: none; }
  .nav-toggle{ display: inline-flex; }
  .brand img{ height: 36px; max-width: 180px; }
  .site-header.is-scrolled .brand img{ height: 30px; }
  /* Mobile menu open → warm, slightly-darker header so the logo reads against it
     instead of the stark cream of the open drawer. Keyed off the drawer being open,
     not the shared .no-scroll (lightboxes set that too). The toggle keeps its own
     white background, so the open "X" stays exactly as-is. 74,65,58 = --ink-soft. */
  body:has(.nav-drawer.is-open) .site-header{ background: rgba(74, 65, 58, 0.40); }
  .hero{ padding: 130px 0 70px; }
  .hero h1{ font-size: clamp(34px, 8vw, 46px); }
  .hero-meta{ flex-direction: column; align-items: flex-start; gap: 14px; }
  .cards--4, .cards--3, .cards--2{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 36px 18px; }
  .testimonials .testimonial{ width: 100%; }   /* 1 column */
  .form{ padding: 28px 22px; }
  .contact-card{ padding: 28px 22px; }
  .cta-band{ padding: 48px 28px; }
  .foot-grid{ grid-template-columns: 1fr; gap: 36px; }
  .foot-bottom{ flex-direction: column; align-items: flex-start; }
  /* Portfolio: clean uniform 2-col grid on mobile (no irregular masonry).
     Use aspect-ratio per tile so images frame consistently regardless of
     row-height, and let "feature" tiles take full width with a wider crop. */
  .portfolio{
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    grid-auto-flow: row;
    gap: 12px;
  }
  .tile{
    grid-column: span 1;
    grid-row: span 1;
    aspect-ratio: 4 / 5;
  }
  .tile.s-1, .tile.s-4, .tile.s-7, .tile.s-11{
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 10;
  }
  /* Tile captions: always visible on mobile (no hover state on touch).
     Lighter gradient so the image still reads. */
  .tile-cap{
    opacity: 1;
    transform: none;
    padding: 14px 16px;
    background: linear-gradient(to top, rgba(26,23,20,.82), rgba(26,23,20,.10) 55%, transparent 80%);
  }
  .tile-cap .tag{ font-size: 11px; margin-bottom: 2px; }
  .tile-cap h4{ font-size: 14px; line-height: 1.3; }

  /* Filter chips: horizontal scroll instead of wrapping into a messy block */
  .filter-chips{
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    margin-inline: calc(var(--gutter) * -1);
    padding: 4px var(--gutter) 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }
  .filter-chips::-webkit-scrollbar{ display: none; }
  .chip{
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 9px 16px;
    font-size: 13px;
  }

  /* Lightbox: bigger touch targets, clearer close placement */
  .lightbox{ padding: 12px; }
  .lightbox-img{ max-width: 100%; max-height: 70vh; }
  .lb-prev, .lb-next{ width: 44px; height: 44px; font-size: 24px; }
  .lb-close{ top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; font-size: 22px; }
  .lb-prev{ inset-inline-end: 14px; }
  .lb-next{ inset-inline-start: 14px; }
  .lightbox-cap{ bottom: 16px; font-size: 13px; padding-inline: 16px; }
  .values{ gap: 14px; padding: 32px 0; }
  .value::after{ inset-inline-end: -16px; }
}

/* -------- Touch devices (no hover) -------- */
@media (hover: none){
  /* Always show portfolio captions — touch users can't trigger hover */
  .tile-cap{
    opacity: 1;
    transform: none;
    background: linear-gradient(to top, rgba(26,23,20,.82), rgba(26,23,20,.10) 55%, transparent 80%);
  }
  .tile:hover img{ transform: none; }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-portrait img{ animation: none; }
  .hero::before, .hero::after{ animation: none; }
  .reveal{ opacity: 1; transform: none; }
  .reveal-blur{ filter: none !important; }
  /* Kill scroll-linked parallax (these read --scroll-y / --py, not @keyframes) */
  [data-parallax]{ transform: none !important; }
  .page-home .hero-portrait{ transform: rotate(-1.5deg) !important; }
  .hero--small .hero-portrait{ transform: none !important; }
  .scroll-progress{ display: none; }
  .wa-float::after{ display: none; }
}

/* ===========================================================
   Legal pages — privacy.html, terms.html
   =========================================================== */
.legal-updated{
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-prose{
  max-width: 880px;
  margin-inline: auto;
  padding: 56px clamp(28px, 5vw, 64px);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
  position: relative;
}
.legal-prose::before{
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid rgba(184, 150, 90, 0.25);
  pointer-events: none;
  z-index: -1;
}
.legal-prose h2{
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
  position: relative;
  padding-inline-start: 18px;
}
.legal-prose h2::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: linear-gradient(to bottom, var(--gold), var(--accent));
  border-radius: 2px;
}
.legal-prose h2:first-child{ margin-top: 0; }
.legal-prose p{
  margin: 0 0 16px;
}
.legal-prose strong{
  color: var(--ink);
  font-weight: 700;
}
.legal-prose a{
  color: var(--accent-deep);
  border-bottom: 1px solid rgba(142, 74, 51, 0.35);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.legal-prose a:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.legal-list{
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.legal-list li{
  position: relative;
  padding-inline-start: 22px;
}
.legal-list li::before{
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(184, 150, 90, 0.18);
}

@media (max-width: 700px){
  .legal-prose{
    padding: 36px 24px;
    font-size: 15.5px;
  }
  .legal-prose h2{ font-size: 21px; margin-top: 36px; }
}

/* ===========================================================
   Cookie consent banner
   =========================================================== */
.cookie-banner{
  position: fixed;
  bottom: 22px;
  left: 22px;
  right: 22px;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(20, 18, 16, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px -22px rgba(0, 0, 0, 0.55);
  color: rgba(240, 233, 221, 0.88);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 380ms var(--ease-out), transform 380ms var(--ease-out);
}
.cookie-banner.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner__text{
  flex: 1;
  font-size: 14px;
  line-height: 1.6;
}
.cookie-banner__text strong{
  display: block;
  color: #FFF7EB;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.cookie-banner__text a{
  color: var(--gold-soft);
  border-bottom: 1px solid rgba(232, 217, 184, 0.4);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.cookie-banner__text a:hover{
  color: var(--accent-soft);
  border-bottom-color: var(--accent-soft);
}
.cookie-banner__accept{
  flex-shrink: 0;
  padding: 11px 22px;
  border: none;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #FFF7EB;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px -10px rgba(142, 74, 51, 0.65);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), filter var(--t-fast) var(--ease);
}
.cookie-banner__accept:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(142, 74, 51, 0.75);
  filter: brightness(1.05);
}
.cookie-banner__accept:focus-visible{
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

/* When the banner is visible, lift the WhatsApp float so they don't collide. */
body.has-cookie-banner .wa-float{
  bottom: 112px;
  transition: bottom 380ms var(--ease-out);
}

@media (max-width: 640px){
  .cookie-banner{
    bottom: 14px;
    left: 14px;
    right: 14px;
    padding: 16px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .cookie-banner__text{
    flex-basis: 100%;
    font-size: 13px;
  }
  .cookie-banner__accept{
    flex-basis: 100%;
    padding: 12px 22px;
    text-align: center;
  }
  body.has-cookie-banner .wa-float{ bottom: 168px; }
}

/* ===========================================================
   Accessibility widget (תפריט נגישות) — WCAG 2.0 AA / IS 5568
   Discreet floating toggle (bottom-left) + preferences panel.
   Injected by script.js so it appears on every page.
   =========================================================== */

/* --- Floating toggle: small & discreet when collapsed --- */
.a11y-toggle{
  position: fixed;
  bottom: 22px;
  left: 22px;
  right: auto;
  z-index: 55;
  width: 46px; height: 46px;
  border: 1px solid rgba(184, 150, 90, 0.55);   /* thin gold ring */
  border-radius: 50%;
  background: #1A1714;                            /* --ink */
  color: #F4ECDD;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0.9;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.a11y-toggle:hover{ opacity: 1; transform: scale(1.06); box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.6); }
.a11y-toggle:focus-visible{ outline: 2px solid var(--gold-soft); outline-offset: 3px; opacity: 1; }
.a11y-toggle svg{ width: 26px; height: 26px; display: block; }

/* Lift above the cookie banner while it is visible (mirror of .wa-float). */
body.has-cookie-banner .a11y-toggle{ bottom: 112px; transition: bottom 380ms var(--ease-out); }

/* --- Panel --- */
.a11y-panel{
  position: fixed;
  bottom: 80px;
  left: 22px;
  right: auto;
  z-index: 70;
  width: min(320px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 120px));
  overflow-y: auto;
  padding: 18px;
  background: rgba(20, 18, 16, 0.96);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px -22px rgba(0, 0, 0, 0.6);
  color: rgba(240, 233, 221, 0.92);
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom left;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.a11y-panel.is-open{ opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.a11y-panel[hidden]{ display: none; }

.a11y-panel__head{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a11y-panel__title{ margin: 0; font-size: 17px; font-weight: 700; color: #FFF7EB; letter-spacing: -0.01em; }
.a11y-panel__close{
  appearance: none; border: none; background: transparent; color: rgba(240, 233, 221, 0.7);
  width: 30px; height: 30px; border-radius: 8px; font-size: 24px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.a11y-panel__close:hover{ background: rgba(255, 255, 255, 0.08); color: #fff; }
.a11y-panel__close:focus-visible{ outline: 2px solid var(--gold-soft); outline-offset: 2px; }

/* Text-size row */
.a11y-fontrow{ display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.a11y-fontrow > span{ flex: 1; font-size: 14px; color: rgba(240, 233, 221, 0.85); }
.a11y-fontrow button{
  appearance: none; cursor: pointer; min-width: 42px; height: 38px; padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); color: #F4ECDD; font-family: inherit; font-weight: 600; font-size: 15px;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), transform 0.12s var(--ease);
}
.a11y-fontrow button:hover{ background: rgba(184, 150, 90, 0.18); border-color: rgba(184, 150, 90, 0.5); }
.a11y-fontrow button:active{ transform: translateY(1px); }
.a11y-fontrow button:focus-visible{ outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.a11y-fontrow button[disabled]{ opacity: 0.4; cursor: default; }

/* Option toggles */
.a11y-opt{
  display: flex; align-items: center; gap: 10px; width: 100%;
  appearance: none; cursor: pointer;
  padding: 11px 12px; margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px;
  background: rgba(255, 255, 255, 0.03); color: rgba(240, 233, 221, 0.92);
  font-family: inherit; font-size: 14px; font-weight: 500;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.a11y-opt svg{ width: 20px; height: 20px; flex-shrink: 0; opacity: 0.85; }
.a11y-opt__lbl{ flex: 1; text-align: start; }
.a11y-opt__check{ font-size: 13px; opacity: 0; }
.a11y-opt:hover{ background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.22); }
.a11y-opt:focus-visible{ outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.a11y-opt[aria-pressed="true"]{
  background: linear-gradient(135deg, rgba(184, 150, 90, 0.92), rgba(184, 150, 90, 0.72));
  border-color: rgba(184, 150, 90, 0.9); color: #1A1714; font-weight: 700;
}
.a11y-opt[aria-pressed="true"] svg{ opacity: 1; }
.a11y-opt[aria-pressed="true"] .a11y-opt__check{ opacity: 1; }

/* Reset + statement link */
.a11y-reset{
  width: 100%; appearance: none; cursor: pointer; margin-top: 4px;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid rgba(214, 120, 90, 0.4); background: rgba(214, 120, 90, 0.08);
  color: #F3C9BC; font-family: inherit; font-size: 14px; font-weight: 600;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.a11y-reset:hover{ background: rgba(214, 120, 90, 0.16); border-color: rgba(214, 120, 90, 0.6); }
.a11y-reset:focus-visible{ outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.a11y-statement{
  display: block; text-align: center; margin-top: 12px; padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px; color: rgba(240, 233, 221, 0.7);
}
.a11y-statement:hover{ color: var(--gold-soft); }

@media (max-width: 640px){
  .a11y-panel{ left: 14px; right: 14px; width: auto; bottom: 74px; }
  body.has-cookie-banner .a11y-toggle{ bottom: 168px; }
}

/* =========================================================
   Preference MODES — classes toggled on <html>
   ========================================================= */
/* Text scaling via root zoom — reliable on this px-based layout. */
html.a11y-fs-1{ zoom: 1.10; }
html.a11y-fs-2{ zoom: 1.20; }
html.a11y-fs-3{ zoom: 1.30; }
html.a11y-fs-4{ zoom: 1.40; }

/* High contrast (dark) */
html.a11y-contrast body{ background: #000 !important; }
html.a11y-contrast :where(header, main, footer, section, article, aside, nav, div, ul, ol, li, p, span, h1, h2, h3, h4, h5, h6, button, a, figure, blockquote, label, strong, em, time, small){
  background-color: transparent !important;
  background-image: none !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a *{ color: #ffea00 !important; }
html.a11y-contrast .btn,
html.a11y-contrast button:not(.a11y-opt):not(.a11y-toggle){
  background: #000 !important; color: #ffea00 !important; border: 2px solid #ffea00 !important;
}
html.a11y-contrast img{ filter: grayscale(1) contrast(1.05); }
/* Keep the accessibility panel itself legible in contrast mode (ID = high specificity). */
html.a11y-contrast #a11y-panel{ background: #0b0b0b !important; border-color: #fff !important; }
html.a11y-contrast #a11y-panel *{ color: #fff !important; }
html.a11y-contrast #a11y-panel .a11y-opt[aria-pressed="true"],
html.a11y-contrast #a11y-panel .a11y-opt[aria-pressed="true"] *{ background: #ffea00 !important; color: #000 !important; }

/* Grayscale — applied to the root element, which (per the Filter Effects spec)
   does NOT become a containing block for fixed descendants, so .wa-float and
   the a11y controls stay pinned. */
html.a11y-grayscale{ filter: grayscale(100%); }

/* Highlight links */
html.a11y-links a{
  text-decoration: underline !important; text-underline-offset: 3px !important;
  outline: 1px dashed currentColor; outline-offset: 2px;
  background: rgba(255, 221, 87, 0.28) !important;
}

/* Readable font */
html.a11y-readable,
html.a11y-readable :where(body, p, a, span, li, h1, h2, h3, h4, h5, h6, button, input, textarea, label, strong, em, blockquote, div, time, small){
  font-family: Arial, "Helvetica Neue", "Segoe UI", sans-serif !important;
  letter-spacing: normal !important;
}

/* Pause animations / motion */
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after{
  animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important; transition-delay: 0s !important;
  scroll-behavior: auto !important;
}

/* Big cursor */
html.a11y-cursor, html.a11y-cursor *{
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M6 4 L6 32 L13 25 L18 37 L24 34 L19 23 L29 23 Z' fill='black' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") 5 3, auto !important;
}

/* ===========================================================
   Clients rail — "בין לקוחותיי"
   Instagram-highlights-style circular brand bubbles. Each bubble
   is a link that opens the brand's IG story-highlight in a new tab.
   Desktop: a centered row that wraps. Mobile: one swipeable,
   scroll-snapping row that bleeds to the screen edges.
   (Markup + a "how to add a client" guide live in portfolio.html.)
   =========================================================== */
.clients-rail{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 34px 26px;
  max-width: 1080px;
  margin-inline: auto;
  padding: 6px;
}

.client{
  flex: 0 0 auto;
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  color: var(--ink);
}

/* Metallic gold ring with a clean inner gap — echoes the IG highlight look */
.client-ring{
  --ring: 118px;
  position: relative;
  width: var(--ring);
  height: var(--ring);
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 140deg,
      #C9A35E, #EBD49B, #A9823F, #E7C98B, #C9A35E);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}

.client-bubble{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
  border: 3px solid var(--bg);   /* white gap between ring and content */
  display: grid;
  place-items: center;
}

/* Real logo / IG profile pic — fills the circle like an IG highlight */
.client-bubble img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Monogram fallback shown when no logo image is supplied */
.client-mono{
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--gold);
  background: radial-gradient(circle at 50% 32%, #FBF6EC, #EFE6D5);
}

.client-name{
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-soft);
  max-width: 130px;
  transition: color var(--t-fast) var(--ease);
}

/* Hover — lift the ring, warm the name */
.client:hover .client-ring{
  transform: translateY(-5px) scale(1.045);
  box-shadow: var(--shadow);
}
.client:hover .client-name{ color: var(--accent); }
.client:focus-visible{ outline: none; }
.client:focus-visible .client-ring{
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

/* Mobile: wrap all brands into a centered grid — every logo visible, no horizontal scroll */
@media (max-width: 640px){
  .clients-rail{
    gap: 22px 12px;
  }
  .client{ width: 94px; }
  .client-ring{ --ring: 80px; }
  .client-name{ font-size: 13px; }
}
@media (max-width: 360px){
  .client{ width: 86px; }
  .client-ring{ --ring: 74px; }
}

