/* =========================================================
   ATELIER BOUTIQUE — main stylesheet
   Mobile-first · RTL · no frameworks
   ========================================================= */

:root {
  /* Brand palette */
  --espresso: #34251F;
  --cream: #EDE2D0;
  --taupe: #A67C5B;
  --ivory: #FAF7F1;
  --cocoa: #76513B;
  --gold: #C5A77D;

  /* Derived */
  --ink: var(--espresso);
  --ink-soft: #5A463C;          /* body text on light, AA */
  --line: rgba(52, 37, 31, .14);
  --line-light: rgba(237, 226, 208, .18);
  --error: #9A3B2E;
  --success: #4E6046;

  /* Type */
  --serif: "Cormorant Garamond", "Frank Ruhl Libre", Georgia, serif;
  --serif-he: "Frank Ruhl Libre", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", "Assistant", "Segoe UI", Arial, sans-serif;
  --display-he: "Frank Ruhl Libre", Georgia, serif;

  /* Layout */
  --gutter: clamp(16px, 5vw, 56px);
  --maxw: 1320px;
  --section: clamp(80px, 11vw, 156px);
  --radius: 14px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  min-height: 100vh;
  font-family: var(--sans);
  font-size: clamp(16px, 1.05vw + 11px, 18px);
  line-height: 1.7;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; padding: 0; }
:where(h1, h2, h3, p) { overflow-wrap: break-word; }
[hidden] { display: none !important; }
/* English lines inside the Hebrew page keep LTR punctuation but align right */
:where(h1, h2, h3, p, dd)[lang="en"][dir="ltr"] { text-align: right; }

::selection { background: var(--gold); color: var(--espresso); }

:focus-visible {
  outline: 2px solid var(--cocoa);
  outline-offset: 3px;
  border-radius: 4px;
}
/* on dark backgrounds the cocoa ring is too faint — use gold (6.5:1 on espresso) */
.beyond :focus-visible,
.footer :focus-visible,
.nav.is-open :focus-visible { outline-color: var(--gold); }
main:focus { outline: none; } /* skip-link target */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--espresso);
  color: var(--ivory);
  border-radius: 999px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em; /* labels are Hebrew now — no wide tracking */
  color: var(--cocoa);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 96px);
  line-height: .98;
  letter-spacing: -.01em;
  color: var(--espresso);
}
.section-title em,
.hero__title em,
.footer__name em,
.logo__word em {
  font-style: italic;
  color: var(--cocoa);
}
.section-title :lang(he),
.section-title:lang(he) { font-family: var(--serif-he); }
.section-title :lang(en),
.section-title:lang(en) { font-family: var(--serif); }

.section-lead {
  max-width: 34em;
  color: var(--ink-soft);
  font-size: 1.06em;
}
.section-lead a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--gold); }

.section { padding-block: var(--section); position: relative; }

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head--light .section-title { color: var(--cream); }
.section-head--light .section-title em { color: var(--gold); }
.section-head--light .eyebrow { color: var(--gold); }
.section-head--light .section-lead { color: rgba(237, 226, 208, .78); }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  --fg: var(--espresso);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid transparent;
  position: relative;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), background-size .55s var(--ease-out), transform .4s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .45s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(-6px); }
.btn:active { transform: scale(.98); }

.btn--solid {
  --fg: var(--ivory);
  background: linear-gradient(var(--cocoa), var(--cocoa)) no-repeat bottom / 100% 0%, var(--espresso);
}
.btn--solid:hover { background-size: 100% 100%, auto; }

.btn--line { border-color: rgba(52, 37, 31, .35); }
.btn--line:hover { border-color: var(--espresso); background: rgba(52, 37, 31, .04); }

.btn--ghost {
  min-height: 42px;
  padding: 8px 20px;
  font-size: 14px;
  border-color: rgba(52, 37, 31, .3);
}
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

.btn--whatsapp { border-color: rgba(52, 37, 31, .3); gap: 10px; }
.btn--whatsapp:hover { background: var(--espresso); color: var(--ivory); }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 247, 241, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
  position: relative;
  z-index: 2;
}
.logo__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  letter-spacing: .04em;
  color: var(--espresso);
  transition: transform .8s var(--ease-out), background-color .4s;
}
.logo:hover .logo__mark { transform: rotate(-12deg); background: var(--cream); }
.logo__word {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .26em;
  font-weight: 500;
  white-space: nowrap;
}
.logo__word em { font-weight: 400; }

.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__list a {
  position: relative;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .02em;
  padding-block: 6px;
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a[aria-current="true"]::after { transform: scaleX(1); }
.nav__menu-note { display: none; }

.nav__toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(52, 37, 31, .25);
}
.nav__toggle-lines,
.nav__toggle-lines::before {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .5s var(--ease-out), top .3s var(--ease);
}
.nav__toggle-lines { top: 20px; transform: translateX(-50%); }
.nav__toggle-lines::before { content: ""; top: 6px; transform: translateX(-50%); left: 50%; }

@media (max-width: 960px) {
  .nav__toggle { display: inline-block; }
  .nav__cta { display: none; }
  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 110px var(--gutter) 48px;
    background: var(--espresso);
    color: var(--cream);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .7s var(--ease-out), visibility 0s .7s;
  }
  .nav__list { flex-direction: column; gap: 6px; }
  .nav__list a {
    display: inline-block;
    font-family: var(--serif);
    font-size: clamp(38px, 11vw, 64px);
    font-weight: 400;
    letter-spacing: .04em;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s var(--ease), transform .7s var(--ease-out), color .3s;
  }
  .nav__list a:hover { color: var(--gold); }
  .nav__list li:nth-child(1) a { transition-delay: .10s; }
  .nav__list li:nth-child(2) a { transition-delay: .15s; }
  .nav__list li:nth-child(3) a { transition-delay: .20s; }
  .nav__list li:nth-child(4) a { transition-delay: .25s; }
  .nav__list li:nth-child(5) a { transition-delay: .30s; }
  .nav__list li:nth-child(6) a { transition-delay: .35s; }
  .nav__menu-note {
    display: block;
    font-size: 14px;
    color: rgba(237, 226, 208, .7);
    border-top: 1px solid var(--line-light);
    padding-top: 20px;
  }

  .nav.is-open .nav__menu {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .7s var(--ease-out), visibility 0s 0s;
  }
  .nav.is-open .nav__list a { opacity: 1; transform: none; }
  .nav.is-open .logo { color: var(--cream); }
  .nav.is-open .logo__mark { color: var(--cream); }
  .nav.is-open .logo__word em { color: var(--gold); }
  .nav.is-open .nav__toggle { color: var(--cream); border-color: var(--line-light); }
  .nav.is-open .nav__toggle-lines { top: 22px; transform: translateX(-50%) rotate(45deg); }
  .nav.is-open .nav__toggle-lines::before { top: 0; transform: translateX(-50%) rotate(-90deg); }
  .nav.is-open.is-scrolled { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 420px) {
  .logo__word { font-size: 14px; letter-spacing: .2em; }
  .logo__mark { width: 34px; height: 34px; font-size: 13px; }
}

/* =========================================================
   DEVICE FRAMES (shared)
   ========================================================= */
.browser {
  position: relative;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(52, 37, 31, .06),
    0 30px 60px -30px rgba(52, 37, 31, .35);
  border: 1px solid rgba(52, 37, 31, .08);
}
.browser__bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding-inline: 10px;
  background: #F3EEE6;
  border-bottom: 1px solid rgba(52, 37, 31, .06);
  direction: ltr;
}
.browser__bar i { width: 7px; height: 7px; border-radius: 50%; background: rgba(52, 37, 31, .18); }
.browser__bar span {
  margin-inline: auto;
  padding: 1px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  font-size: 9px;
  letter-spacing: .06em;
  color: rgba(52, 37, 31, .55);
  white-space: nowrap;
}

.phone {
  position: relative;
  padding: 5%;
  border-radius: 16% / 7.6%;
  background: #241915;
  box-shadow:
    inset 0 0 0 1px rgba(237, 226, 208, .14),
    0 30px 50px -24px rgba(52, 37, 31, .55);
}
.phone::after { /* notch */
  content: "";
  position: absolute;
  top: 3.4%;
  left: 50%;
  width: 26%;
  height: 2.2%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #241915;
  z-index: 2;
}

.screen {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
}
.screen--desktop { aspect-ratio: 16 / 10; }
.screen--phone { aspect-ratio: 9 / 19.5; border-radius: 12% / 5.6%; }

/* =========================================================
   HERO — typographic, quiet, editorial
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  padding-top: 112px;
  padding-bottom: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(70% 60% at 0% 0%, rgba(237, 226, 208, .75), transparent 70%),
    var(--ivory);
  overflow: hidden;
}
/* studio photo (portrait): a tall editorial panel on the left (desktop), the top of the screen (phone) */
.hero__media {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  inset: 0 0 26% 0; /* phone: top part of the hero */
}
.hero__img {
  display: block;
  width: 100%;
  height: calc(100% + 60px); /* room for the gentle parallax */
  object-fit: cover;
  object-position: 62% 58%; /* keeps the laptop, coffee, candle and plant in view */
  transform: translate3d(0, calc(var(--hero-shift, 0px) - 30px), 0);
  will-change: transform;
}
.js .hero__img { animation: heroSettle 2.4s var(--ease-out) both; }
@keyframes heroSettle { from { opacity: 0; scale: 1.06; } to { opacity: 1; scale: 1; } }
.hero__media::after { /* soft hand-off into the page — no heavy veil over the photo itself */
  content: "";
  position: absolute;
  inset: -2px 0; /* covers the photo's edge so no hairline shows */
  background:
    linear-gradient(180deg, rgba(250, 247, 241, .8) 0, rgba(250, 247, 241, .55) 150px, rgba(250, 247, 241, 0) 230px),
    linear-gradient(0deg, var(--ivory) 0, var(--ivory) 6%, rgba(250, 247, 241, .82) 24%, rgba(250, 247, 241, 0) 52%);
}
@media (min-width: 700px) {
  .hero__media { inset: 0; direction: ltr; } /* full width */
  .hero__img { width: 118%; max-width: none; object-position: 50% 60%; } /* a little wider: the laptop sits right of the headline, the shelf edge is cropped */
  .hero__media::after { /* light veil only behind the text (left), the desk stays untouched */
    background:
      linear-gradient(180deg, rgba(250, 247, 241, .82) 0, rgba(250, 247, 241, .4) 70px, rgba(250, 247, 241, 0) 150px),
      linear-gradient(0deg, var(--ivory) 0, rgba(250, 247, 241, 0) 16%),
      linear-gradient(90deg, rgba(250, 247, 241, .86) 0%, rgba(250, 247, 241, .72) 34%, rgba(250, 247, 241, .3) 48%, rgba(250, 247, 241, 0) 60%);
  }
}
@media (min-width: 700px) {
  /* all hero text lives in the right column, beside the photo — never on it */
  .hero .hero__inner { width: 47%; max-width: none; margin-inline: auto 0; padding-inline: clamp(28px, 3.5vw, 56px) var(--gutter); }
  .hero .hero__title { font-size: clamp(54px, 7.4vw, 140px); }
  .hero .hero__title .line--offset { padding-inline-start: 0; }
  .hero .hero__foot { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 699px) {
  .hero__inner { justify-content: flex-end; } /* headline sits below the photo */
  .hero__kicker { margin-bottom: auto; }
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(40px, 6vh, 72px);
}
.hero__kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.hero__rule { flex: 0 1 120px; height: 1px; background: var(--gold); }
.hero__kicker > span:not(.hero__rule) { white-space: nowrap; }
@media (max-width: 379px) {
  .hero__kicker { flex-wrap: wrap; row-gap: 4px; }
  .hero__rule { display: none; }
}
@media (max-width: 699px) {
  .hero__seal { display: none; }
  .hero__kicker { gap: 10px; font-size: 10px; letter-spacing: .24em; }
  .hero__rule { flex: 1 1 24px; }
}

.hero__title {
  font-family: var(--display-he);
  font-weight: 300;
  font-size: clamp(64px, 13.4vw, 204px);
  line-height: .98;
  letter-spacing: -.025em;
  color: var(--espresso);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--cocoa); }

.hero__foot {
  display: grid;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__lead { max-width: 26em; font-size: clamp(16px, 1.2vw, 18px); color: var(--ink-soft); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }

.hero__seal {
  position: absolute;
  top: 0;
  left: var(--gutter); /* physical side: the svg itself is LTR */
  width: clamp(96px, 12vw, 176px);
  height: auto;
  overflow: visible;
  direction: ltr; /* SVG text on a path must run LTR inside the RTL page */
}
.hero__seal text { font-family: var(--sans); fill: var(--cocoa); }
.hero__seal textPath { font-size: 13.4px; letter-spacing: .32em; font-weight: 500; }
.hero__seal-ring { transform-origin: 100px 100px; animation: spin 48s linear infinite; }
.hero__media ~ .hero__inner .hero__seal { display: none; } /* the studio photo now carries the visual weight */
.hero__seal-inner { fill: none; stroke: var(--gold); stroke-width: 1; }
.hero__seal-mono { font-family: var(--serif) !important; font-style: italic; font-size: 30px; fill: var(--espresso) !important; }

@media (min-width: 900px) {
  .hero__title .line--offset { padding-inline-start: 11vw; }
  .hero__foot { grid-template-columns: 1fr auto; align-items: end; }
}

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 600;
}
.link-arrow::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(.4); }

/* intro animation */
.js .intro {
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(var(--d, 0) * 90ms + 120ms);
}
.intro[data-d="2"] { --d: 2; }
.intro[data-d="3"] { --d: 3; }
.intro[data-d="4"] { --d: 4; }
.intro[data-d="5"] { --d: 5; }
.js .hero__title .intro { animation-name: riseLine; animation-duration: 1.3s; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes riseLine { from { transform: translateY(105%); } to { transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes mockScroll {
  0%, 12% { transform: translateY(0); }
  88%, 100% { transform: translateY(calc(-100% + 216.6cqw)); }
}
.screen--scroll .mock { animation: mockScroll 16s ease-in-out infinite alternate; }

/* =========================================================
   SELECTED WORK — KOVO as the feature
   ========================================================= */
.work { background: var(--ivory); }
.work__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.work__index { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--cocoa); }

.feature { display: grid; gap: clamp(24px, 3vw, 40px); }
.feature__name {
  margin-top: clamp(20px, 3vw, 36px);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(84px, 21vw, 300px);
  line-height: .82;
  letter-spacing: .14em;
  color: var(--espresso);
}

.feature + .feature {
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 1px solid var(--line);
}
.feature__num { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--cocoa); }
.feature__num + .feature__name { margin-top: 4px; }
.feature__name--long { font-size: clamp(52px, 11.5vw, 168px); letter-spacing: .1em; }
.feature__stage--solar { background: #DCE6E0; }
.feature__stage {
  position: relative;
  padding: 6% 12% 8% 5%;
  border-radius: var(--radius);
  background: #E9DCCB;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
}
.feature__stage::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
  z-index: -1;
  transition: transform 1.4s var(--ease-out);
}
.feature__stage .browser { transition: transform 1s var(--ease-out); }
.feature__stage .phone {
  position: absolute;
  width: 15%;
  right: 4%;
  bottom: 7%;
  transition: transform 1s var(--ease-out);
}
.feature:hover .feature__stage .browser { transform: translateY(-6px); }
.feature:hover .feature__stage .phone { transform: translateY(-14px) rotate(-1.5deg); }
.feature:hover .feature__stage::before { transform: translate(-8%, 10%); }

.feature__meta { display: grid; gap: 24px; padding-top: 4px; }
.feature__facts { display: grid; gap: 14px; }
.feature__facts dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--cocoa);
}
.feature__facts dd { font-size: 16px; }
.project__desc { color: var(--ink-soft); max-width: 32em; }
.project__actions { display: flex; flex-wrap: wrap; gap: 8px 28px; align-self: end; }
.project__btn {
  display: inline-flex;
  gap: 10px;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  transition: gap .4s var(--ease-out), color .3s;
}
.project__btn:hover { gap: 16px; color: var(--cocoa); }

@media (max-width: 719px) {
  .feature__stage { padding: 8% 20% 14% 5%; }
  .feature__stage .phone { width: 26%; }
}
@media (min-width: 900px) {
  .feature__meta { grid-template-columns: 1fr 1.4fr auto; gap: 56px; align-items: start; }
}

/* =========================================================
   BILINGUAL TYPE — Hebrew leads, English is the accent
   ========================================================= */
.tag-en {
  margin-inline-start: .45em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .6em;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--cocoa);
  white-space: nowrap;
}
.eyebrow .tag-en { font-size: 15px; letter-spacing: .02em; }
.title-echo {
  margin-top: -4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--cocoa);
}

/* =========================================================
   BEYOND THE SURFACE — an exploded view of a page
   ========================================================= */
.beyond {
  --p: .5; /* scroll progress, set by JS */
  position: relative;
  padding-block: clamp(88px, 11vw, 150px);
  background:
    radial-gradient(60% 70% at 15% 40%, rgba(118, 81, 59, .45), transparent 70%),
    var(--espresso);
  color: var(--cream);
  overflow: hidden;
}
.beyond__inner { display: grid; gap: 48px; align-items: center; }
.eyebrow--light { color: var(--gold); }
.eyebrow--light .tag-en { color: rgba(237, 226, 208, .7); }
.beyond__title {
  margin-top: 18px;
  font-family: var(--display-he);
  font-weight: 300;
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -.015em;
  color: var(--ivory);
}
.beyond__title em { font-style: normal; color: var(--gold); }
.beyond__lead { margin-top: 20px; max-width: 30em; color: rgba(237, 226, 208, .8); }

.layers { margin-top: 36px; border-top: 1px solid var(--line-light); }
.layers li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 12px;
  align-items: baseline;
  padding-block: 14px;
  border-bottom: 1px solid var(--line-light);
}
.layers__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); }
.layers__name { font-family: var(--display-he); font-size: 21px; line-height: 1.3; color: var(--ivory); transition: color .4s; }
.layers__name .tag-en { color: rgba(237, 226, 208, .62); }
.layers__note { font-size: 15px; color: rgba(237, 226, 208, .74); }
.layers li:hover .layers__name { color: var(--gold); }

.beyond__visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(300px, 40vw, 520px);
  margin: 0;
  perspective: 1600px;
  order: -1; /* on phones the drawing comes first */
}
.stack {
  --spread: calc(16px + var(--p) * 58px);
  position: relative;
  width: min(380px, 66vw);
  aspect-ratio: 4 / 3;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-38deg);
}
.stack__plane {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  border: 1px solid rgba(197, 167, 125, .5);
  background: rgba(237, 226, 208, .05);
  overflow: hidden;
  transform: translateZ(calc(var(--z) * var(--spread)));
  transition: transform .9s var(--ease-out), opacity .5s var(--ease), border-color .5s var(--ease);
}
.stack__plane i, .stack__plane b { position: absolute; display: block; }
.stack__plane--1 { --z: 3; background: var(--ivory); border-color: rgba(250, 247, 241, .9); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .55); }
.stack__plane--2 { --z: 2; }
.stack__plane--3 { --z: 1; background-image: repeating-linear-gradient(90deg, rgba(197, 167, 125, .22) 0 1px, transparent 1px 16.66%); }
.stack__plane--4 { --z: 0; background: rgba(20, 14, 11, .55); }

/* layer 1 — the surface everyone sees */
.ui-bar   { inset: 7% 7% auto 7%; height: 4%; border-bottom: 1px solid rgba(52, 37, 31, .2); }
.ui-title { right: 7%; top: 24%; width: 46%; height: 11%; border-radius: 3px; background: var(--espresso); }
.ui-sub   { right: 7%; top: 41%; width: 36%; height: 5%; border-radius: 3px; background: rgba(52, 37, 31, .25); }
.ui-btn   { right: 7%; top: 54%; width: 20%; height: 8%; border-radius: 99px; background: var(--cocoa); }
.ui-img   { left: 7%; top: 22%; width: 34%; height: 64%; border-radius: 99px 99px 4px 4px; background: linear-gradient(170deg, var(--cream), #D9C3A6 70%, var(--taupe)); }
/* layer 2 — typography */
.type-glyph { right: 8%; top: 10%; font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(40px, 6vw, 64px); line-height: 1; color: var(--cream); }
.type-line { right: 8%; height: 3px; border-radius: 2px; background: rgba(237, 226, 208, .45); }
.type-line--1 { top: 52%; width: 62%; }
.type-line--2 { top: 64%; width: 48%; }
.type-line--3 { top: 76%; width: 34%; background: var(--gold); }
/* layer 3 — structure */
.grid-box { border: 1px dashed rgba(197, 167, 125, .7); border-radius: 4px; }
.grid-box--a { inset: 10% 8% 58% 8%; }
.grid-box--b { inset: 48% 8% 10% 52%; }
.grid-box--c { inset: 48% 52% 10% 8%; }
/* layer 4 — code */
.code-line { right: 9%; height: 4px; border-radius: 2px; background: rgba(237, 226, 208, .35); }
.code-line--1 { top: 16%; width: 38%; background: var(--gold); }
.code-line--2 { top: 30%; width: 56%; right: 15%; }
.code-line--3 { top: 44%; width: 44%; right: 15%; background: rgba(166, 124, 91, .9); }
.code-line--4 { top: 58%; width: 60%; right: 21%; }
.code-line--5 { top: 72%; width: 30%; background: var(--gold); }

/* hovering a layer in the list lights it up in the drawing */
.stack[data-active] .stack__plane { opacity: .28; }
.stack[data-active="1"] .stack__plane--1,
.stack[data-active="2"] .stack__plane--2,
.stack[data-active="3"] .stack__plane--3,
.stack[data-active="4"] .stack__plane--4 { opacity: 1; border-color: var(--gold); }

.stack__caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: rgba(237, 226, 208, .55);
  white-space: nowrap;
}

@media (min-width: 960px) {
  .beyond__inner { grid-template-columns: 1fr 1fr; gap: 72px; }
  .beyond__visual { order: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .beyond { --p: .65 !important; }
}

/* =========================================================
   THE STUDIO — services + approach + process, one section
   ========================================================= */
.studio { background: var(--cream); }
.studio__head { display: grid; gap: 18px; margin-bottom: clamp(44px, 6vw, 80px); }
.studio__title,
.contact__title {
  font-family: var(--display-he);
  font-weight: 300;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.04;
  letter-spacing: -.015em;
  color: var(--espresso);
}
.studio__title em,
.contact__title em { font-style: normal; color: var(--cocoa); }
.studio__lead { max-width: 34em; font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-soft); }

.studio__grid { display: grid; gap: 48px; }
.studio__label {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--espresso);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--espresso);
}
.studio__label .tag-en { font-size: 16px; }

.svc li {
  display: grid;
  gap: 2px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}
.svc__name {
  font-family: var(--display-he);
  font-size: clamp(21px, 1.8vw, 26px);
  line-height: 1.15;
  transition: transform .6s var(--ease-out), color .3s;
}
.svc__note { font-size: 15px; color: var(--ink-soft); }
.svc li:hover .svc__name { transform: translateX(-8px); color: var(--cocoa); }

.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 10px;
  align-items: baseline;
  padding-block: 15px;
  border-bottom: 1px solid var(--line);
}
.steps__num { grid-row: span 2; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--cocoa); }
.steps__name { font-family: var(--display-he); font-size: 21px; line-height: 1.2; transition: color .3s; }
.steps__note { font-size: 15px; color: var(--ink-soft); }
.steps li:hover .steps__name { color: var(--cocoa); }

@media (min-width: 1024px) {
  .studio__head {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "eb eb" "title lead" "echo lead";
    align-items: end;
    column-gap: 80px;
  }
  .studio__head .eyebrow { grid-area: eb; }
  .studio__title { grid-area: title; }
  .studio__head .title-echo { grid-area: echo; }
  .studio__lead { grid-area: lead; }
  .studio__grid { grid-template-columns: 1fr 1.15fr; gap: 80px; }
  .steps li { grid-template-columns: 40px 150px 1fr; }
  .steps__num { grid-row: auto; }
}

/* =========================================================
   THE DIFFERENCE — template vs. tailored, drag to compare
   ========================================================= */
.diff { background: var(--ivory); }
.diff + .contact { border-top: 1px solid var(--line); }
.diff__inner { display: grid; gap: 40px; align-items: center; }
.diff__head { display: grid; gap: 16px; }
.diff__title {
  font-family: var(--display-he);
  font-weight: 300;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.06;
  letter-spacing: -.015em;
  color: var(--espresso);
}
.diff__title em { font-style: normal; color: var(--cocoa); }
.diff__lead { max-width: 30em; color: var(--ink-soft); }
.diff__points { margin-top: 8px; border-top: 1px solid var(--line); }
.diff__points li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.diff__from { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(52, 37, 31, .35); }
.diff__to { color: var(--espresso); font-weight: 600; }
.diff__to::before { content: "←"; margin-inline-end: 10px; color: var(--gold); font-weight: 400; }

.cmp { position: relative; margin: 0; }
.cmp__frame {
  --pos: 36%;
  position: relative;
  aspect-ratio: 16 / 10;
  container-type: inline-size;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -50px rgba(52, 37, 31, .45);
  direction: ltr;
  user-select: none;
}
.cmp__layer { position: absolute; inset: 0; font-size: 1cqw; }
.cmp__layer--tailored { clip-path: inset(0 0 0 var(--pos)); }
.cmp__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-1px);
  background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(52, 37, 31, .12);
}
.cmp__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--espresso);
  color: var(--ivory);
  font-size: 18px;
  box-shadow: 0 8px 20px -6px rgba(52, 37, 31, .5);
  transition: transform .4s var(--ease-out);
}
.cmp:hover .cmp__knob { transform: translate(-50%, -50%) scale(1.08); }
.cmp:has(.cmp__range:focus-visible) .cmp__knob { outline: 2px solid var(--cocoa); outline-offset: 4px; }
.cmp__tag {
  position: absolute;
  top: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  direction: rtl;
}
.cmp__tag--a { left: 14px; background: rgba(255, 255, 255, .92); color: #3b4350; }
.cmp__tag--b { right: 14px; background: var(--espresso); color: var(--ivory); }
.cmp__range { /* invisible, but drives the comparison by mouse, touch and keyboard */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.cmp__caption { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* the generic template */
.tpl { height: 100%; background: #f4f5f7; color: #3b4350; font-family: Arial, sans-serif; }
.tpl__nav { display: flex; align-items: center; gap: 2.4em; padding: 2em 4em; background: #fff; border-bottom: 1px solid #e3e6ea; }
.tpl__nav b { margin-right: auto; font-size: 1.8em; color: #2f6fed; letter-spacing: .05em; }
.tpl__nav span { width: 5em; height: .9em; border-radius: .3em; background: #d4d8de; }
.tpl__nav i { font-style: normal; font-size: 1.3em; padding: .5em 1.3em; border-radius: .3em; background: #2f6fed; color: #fff; }
.tpl__hero { display: grid; grid-template-columns: 1fr 1fr; gap: 4em; padding: 4em; align-items: center; }
.tpl__img { position: relative; aspect-ratio: 4 / 3; border-radius: .6em; background: #cfd5dd; }
.tpl__img span { position: absolute; left: 30%; bottom: 25%; width: 40%; height: 35%; background: #b5bdc8; clip-path: polygon(0 100%, 40% 20%, 60% 60%, 75% 35%, 100% 100%); }
.tpl__copy b { display: block; font-size: 3.4em; line-height: 1.15; color: #1f2733; margin-bottom: .6em; }
.tpl__copy span { display: block; height: 1em; margin-bottom: .8em; border-radius: .3em; background: #d4d8de; }
.tpl__copy span:nth-of-type(2) { width: 70%; }
.tpl__copy i { display: inline-block; margin-top: 1.2em; font-style: normal; font-size: 1.4em; padding: .7em 1.6em; border-radius: .3em; background: #2f6fed; color: #fff; }
.tpl__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4em; padding: 0 4em; }
.tpl__cards div { padding: 2em; border-radius: .6em; background: #fff; box-shadow: 0 .3em 1em rgba(0, 0, 0, .06); }
.tpl__cards u { display: block; width: 3em; height: 3em; border-radius: 50%; background: #dbe6fd; margin-bottom: 1.2em; }
.tpl__cards span { display: block; height: .8em; margin-bottom: .7em; border-radius: .3em; background: #dde1e6; }

/* the same page, tailored */
.tld { height: 100%; background: var(--ivory); color: var(--espresso); font-family: "DM Sans", "Assistant", sans-serif; }
.tld__nav { display: flex; align-items: center; gap: 3em; padding: 2.4em 4em; font-size: 1.15em; letter-spacing: .14em; text-transform: uppercase; }
.tld__nav b { order: 9; margin-left: auto; font-family: "Cormorant Garamond", serif; font-weight: 500; font-size: 1.6em; letter-spacing: .26em; }
.tld__nav em { color: var(--cocoa); }
.tld__hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3em; padding: 2em 4em 3em; align-items: end; }
.tld__img { order: -1; } /* photo on the left, words on the right — the visible side at the start */
.tld__copy small { display: block; font-size: 1em; letter-spacing: .3em; color: var(--cocoa); margin-bottom: 1.6em; }
.tld__copy b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 400; font-size: 5.6em; line-height: .98; }
.tld__copy b em { color: var(--cocoa); }
.tld__copy i { display: inline-block; margin-top: 2.2em; font-style: normal; font-size: 1.3em; padding: .9em 2em; border-radius: 99em; background: var(--espresso); color: var(--ivory); }
.tld__img { aspect-ratio: 4 / 4.4; border-radius: 99em 99em .6em .6em; background: url("../img/studio-desk-480.webp") center 62% / cover; }
.tld__row { display: flex; justify-content: space-between; margin: 0 4em; padding-top: 1.6em; border-top: 1px solid var(--line); font-family: "Cormorant Garamond", serif; font-style: italic; font-size: 1.7em; color: var(--cocoa); }

@media (min-width: 1024px) {
  .diff__inner { grid-template-columns: 1fr 1.45fr; gap: 72px; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--ivory); }
.contact__inner { display: grid; gap: 48px; }
.contact__intro { display: grid; gap: 20px; align-content: start; }
.contact__lead { font-size: clamp(16px, 1.25vw, 19px); color: var(--ink-soft); }
.contact__facts { display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.contact__facts li { position: relative; padding-inline-start: 18px; }
.contact__facts li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .8em;
  width: 9px;
  height: 1px;
  background: var(--gold);
}
.contact__details { display: grid; gap: 14px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact__details li { display: grid; gap: 2px; }
.contact__details span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--cocoa);
}
.contact__details a {
  justify-self: start;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 28px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.contact__details a:hover { border-color: var(--gold); }
.contact__intro .btn--whatsapp { justify-self: start; margin-top: 4px; }

.form {
  display: grid;
  gap: 26px;
  padding-top: 4px;
}
.form__row { display: grid; gap: 26px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--cocoa);
}
.field label span { color: var(--cocoa); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(52, 37, 31, .28);
  border-radius: 0;
  background: transparent;
  font-size: 17px;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field input[dir="ltr"] { text-align: right; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--cocoa) 50%), linear-gradient(135deg, var(--cocoa) 50%, transparent 50%);
  background-position: 12px 50%, 6px 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-left: 28px;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--espresso);
  box-shadow: 0 1px 0 0 var(--espresso);
}
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-bottom-color: var(--error); box-shadow: 0 1px 0 0 var(--error); }
.field__error { min-height: 1.2em; font-size: 13px; color: var(--error); line-height: 1.3; }

.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.form__legal { font-size: 13px; color: var(--ink-soft); }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.form__submit[aria-busy="true"] { opacity: .7; pointer-events: none; }
.form__submit:disabled { opacity: .5; cursor: not-allowed; }
.form__submit:disabled { background-size: 100% 0%, auto; }

.form__notice {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(197, 167, 125, .18);
  border: 1px solid rgba(197, 167, 125, .55);
  font-size: 14px;
  color: var(--espresso);
}
.form__status:empty { display: none; }
.form__status {
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
.form__status.is-success { background: rgba(78, 96, 70, .1); color: var(--success); border: 1px solid rgba(78, 96, 70, .3); }
.form__status.is-error { background: rgba(154, 59, 46, .08); color: var(--error); border: 1px solid rgba(154, 59, 46, .3); }

@media (min-width: 1024px) {
  .contact__inner { grid-template-columns: 1fr 1.15fr; gap: 96px; align-items: start; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--espresso);
  color: var(--cream);
  padding-block: clamp(64px, 9vw, 120px) 36px;
}
.footer a { transition: color .3s; }
.footer a:hover { color: var(--gold); }
.footer__top {
  display: grid;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-light);
}
.footer__name {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: .14em;
  line-height: 1;
}
.footer__name em { color: var(--gold); }
.footer__tagline {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(237, 226, 208, .7);
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 600; }
.footer__contact { display: grid; gap: 8px; font-size: 15px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(237, 226, 208, .68);
}
.footer__legal { display: flex; gap: 24px; }
@media (min-width: 900px) {
  .footer__top { grid-template-columns: 1.6fr 1fr auto; align-items: end; }
  .footer__nav { flex-direction: column; gap: 10px; }
}

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  width: min(1180px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: var(--ivory);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: rgba(36, 25, 21, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal[open] { animation: modalIn .6s var(--ease-out); }
.modal[open]::backdrop { animation: fadeIn .4s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__inner { display: grid; gap: 32px; padding: clamp(20px, 4vw, 48px); }
.modal__head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.modal__cat { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--cocoa); }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; margin-top: 6px; }
.modal__close {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(52, 37, 31, .25);
  font-size: 15px;
  transition: background-color .3s, color .3s, transform .5s var(--ease-out);
}
.modal__close:hover { background: var(--espresso); color: var(--ivory); transform: rotate(90deg); }

.modal__stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: end;
  padding: clamp(16px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--cream);
}
.modal__stage .phone { width: 46%; max-width: 240px; justify-self: center; }
@media (min-width: 760px) {
  .modal__stage { grid-template-columns: 1fr 200px; gap: 40px; }
  .modal__stage .phone { width: 100%; }
}

.modal__body { display: grid; gap: 32px; }
.modal__desc { font-family: var(--serif-he); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.6; }
.modal__concept { margin-top: 14px; font-size: 13px; color: var(--cocoa); }
.modal__specs { display: grid; gap: 22px; }
.modal__specs dt { font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--cocoa); margin-bottom: 6px; }
.modal__specs dd ul:not(.swatches) li { position: relative; padding-inline-start: 18px; color: var(--ink-soft); }
.modal__specs dd ul:not(.swatches) li::before { content: ""; position: absolute; inset-inline-start: 0; top: .8em; width: 8px; height: 1px; background: var(--gold); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches li { display: grid; justify-items: center; gap: 4px; font-size: 10px; letter-spacing: .06em; color: var(--ink-soft); direction: ltr; }
.swatches i { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
@media (min-width: 860px) { .modal__body { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

.modal__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }

/* =========================================================
   LEAD POPUP — quiet card, bottom corner (sheet on mobile)
   ========================================================= */
.lead {
  position: fixed;
  z-index: 45;
  bottom: 24px;
  inset-inline-end: 24px; /* left side in RTL — leaves the headline and text free */
  width: min(400px, calc(100% - 48px));
  max-height: calc(100vh - 120px);
  max-height: calc(100svh - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 34px 30px 26px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, var(--cream) 0, var(--ivory) 140px),
    var(--ivory);
  box-shadow: 0 30px 70px -36px rgba(52, 37, 31, .45), 0 2px 0 rgba(52, 37, 31, .03);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .7s var(--ease-out);
}
.lead.is-open { opacity: 1; transform: none; }
.lead:focus { outline: none; }
.lead:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.lead::before { /* thin gold line on top */
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 30px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.lead__close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(52, 37, 31, .2);
  font-size: 13px;
  transition: background-color .3s, color .3s, transform .5s var(--ease-out);
}
.lead__close:hover { background: var(--espresso); color: var(--ivory); transform: rotate(90deg); }
.lead__mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--cocoa);
}
.lead__kicker { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--cocoa); }
.lead__title {
  margin-top: 4px;
  font-family: var(--display-he);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.05;
  color: var(--espresso);
}
.lead__title em { font-style: normal; color: var(--cocoa); }
.lead__text { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.lead__form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.lead__form > :nth-child(n+3) { grid-column: 1 / -1; } /* name + phone share a row */
.lead__form .field input,
.lead__form .field select { min-height: 42px; font-size: 16px; }
.lead__form .field__error { min-height: 0; }
.lead__form .field__error:empty { display: none; }
.lead__optional { font-weight: 400; letter-spacing: 0; color: var(--ink-soft); }
.lead__submit { width: 100%; margin-top: 4px; }
.lead__note { font-size: 13px; color: var(--ink-soft); text-align: center; }
.lead__legal { font-size: 12px; color: var(--ink-soft); text-align: center; }
.lead__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.lead__status:empty { display: none; }
.lead__status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 14px; outline: none; }
.lead__status a { text-decoration: underline; text-underline-offset: 3px; }
.lead__status.is-success { background: rgba(78, 96, 70, .1); color: var(--success); border: 1px solid rgba(78, 96, 70, .3); }
.lead__status.is-error { background: rgba(154, 59, 46, .08); color: var(--error); border: 1px solid rgba(154, 59, 46, .3); }

@media (max-width: 560px) {
  .lead {
    inset-inline: 0;
    bottom: 0;
    width: 100%;
    max-height: 82vh;
    max-height: 82svh;
    padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
    transform: translateY(100%);
  }
  .lead.is-open { transform: none; }
  .lead__mark { display: none; }
  .lead__kicker { margin-top: 0; padding-inline-end: 44px; }
  .lead__title { margin-top: 0; padding-inline-end: 44px; font-size: 25px; }
  .lead__text { margin-top: 8px; font-size: 14px; line-height: 1.55; }
  .lead__form { gap: 8px 12px; margin-top: 10px; }
  .lead__form .field { gap: 2px; }
  .lead__form .field input,
  .lead__form .field select { min-height: 40px; padding-block: 6px; }
  .lead__submit { min-height: 48px; }
}

/* =========================================================
   CONSENT — small privacy card (Google Analytics choice)
   Compact, no page overlay. Desktop: bottom corner. Mobile: small floating card.
   ========================================================= */
.consent {
  position: fixed;
  z-index: 46;
  bottom: 20px;
  inset-inline-start: 20px; /* right side in RTL — the lead popup uses the other corner */
  width: min(340px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: 18px 20px 16px;
  border-radius: 12px;
  border: 1px solid rgba(166, 124, 91, .28);
  background: var(--ivory);
  box-shadow: 0 1px 2px rgba(52, 37, 31, .06), 0 16px 36px -22px rgba(52, 37, 31, .38);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out);
}
.consent.is-open { opacity: 1; transform: none; }
.consent:focus { outline: none; }
.consent:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 3px; }
.consent::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 20px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--taupe), transparent);
  opacity: .55;
}
.consent__title {
  font-family: var(--display-he);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.3;
  color: var(--espresso);
}
.consent__text { margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ink-soft); }
.consent__policy {
  white-space: nowrap;
  color: var(--cocoa);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(166, 124, 91, .6);
  transition: color .3s var(--ease);
}
.consent__policy:hover { color: var(--espresso); text-decoration-color: currentColor; }
.consent__state { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--cocoa); }
.consent__prefs { display: grid; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.consent__row { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; cursor: pointer; }
.consent__row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--espresso); }
.consent__row input:disabled { cursor: not-allowed; }
.consent__row-text { display: grid; gap: 2px; font-size: 13px; }
.consent__row-text strong { color: var(--espresso); }
.consent__row-text span { font-size: 12px; color: var(--ink-soft); }
.consent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.consent__btn {
  flex: 1 1 0;
  min-width: 96px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.consent__btn--accept { background: var(--espresso); color: var(--ivory); }
.consent__btn--accept:hover { background: var(--cocoa); }
.consent__btn--reject { background: transparent; color: var(--espresso); border-color: rgba(52, 37, 31, .3); }
.consent__btn--reject:hover { border-color: var(--espresso); background: rgba(166, 124, 91, .08); }
.consent__btn:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 2px; }
.consent__link { font-size: 13px; font-weight: 600; padding: 6px 2px; border-bottom: 1px solid var(--gold); }
.consent__link:hover { color: var(--cocoa); }
.footer__consent { font: inherit; color: inherit; transition: color .3s; }
.footer__consent:hover { color: var(--gold); }
@media (max-width: 560px) {
  .consent {
    inset-inline: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-height: 70vh;
    max-height: 70svh;
    padding: 14px 16px 12px;
  }
  .consent::before { inset-inline: 16px; }
  .consent__title { font-size: 15px; }
  .consent__text { margin-top: 4px; font-size: 12.5px; line-height: 1.5; }
  .consent__actions { margin-top: 12px; gap: 8px; }
  .consent__btn { min-height: 44px; }
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease), transform 1.2s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.legal { padding-top: 140px; padding-bottom: var(--section); background: var(--ivory); }
.legal__inner { max-width: 780px; display: grid; gap: 22px; }
.legal h1 { font-family: var(--serif-he); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1.15; }
.legal h2 { font-family: var(--serif-he); font-weight: 500; font-size: 24px; margin-top: 24px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold); }
.legal__updated { font-size: 14px; color: var(--cocoa); }
.legal__back { justify-self: start; margin-top: 24px; }

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
