/* RD Advise – landing page styles
   "Gilded atelier": ivory plaster, brushed gold, walnut and espresso, all taken from the office photos and the logo.
   Gold surfaces use a real brushed-gold texture cut from the logo (assets/brand/gold.webp), never a CSS gradient.
   Every colour lives in :root. Mobile first, RTL, logical properties. */

/* ---------- Fonts (self-hosted, from fontsource) ---------- */
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/assistant-hebrew-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Assistant";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/assistant-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bona Nova";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/bona-nova-hebrew-400-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Bona Nova";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/bona-nova-hebrew-700-normal.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Bona Nova";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("/assets/fonts/bona-nova-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bona Nova";
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("/assets/fonts/bona-nova-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url("/assets/fonts/cinzel-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("/assets/fonts/cinzel-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  /* Colour: sampled from the RD Advise photos and logo */
  --ink: #2E210F;          /* espresso: text, dark grounds */
  --ink-soft: #5A4D36;     /* secondary text */
  --gold: #BD9957;         /* brushed gold (flat fallback for the texture) */
  --gold-light: #DEBA72;   /* gold highlight: gold text on espresso */
  --gold-deep: #744212;    /* bronze: coloured text and links on light grounds */
  --wood: #775B41;         /* walnut */
  --deep: #2E210F;         /* espresso grounds */
  --ivory: #F7F1E6;        /* plaster wall: page ground */
  --linen: #EDE3D1;        /* alternate grounds */
  --stone: #DDCEB4;        /* lines */
  --white: #FFFFFF;

  --hairline: color-mix(in srgb, var(--gold) 55%, transparent);
  --hairline-soft: color-mix(in srgb, var(--gold) 30%, transparent);
  --on-dark-line: color-mix(in srgb, var(--gold-light) 30%, transparent);

  /* Brushed metal and wood, cut from the logo itself */
  --gold-tex: url("/assets/brand/gold.webp");
  --wood-tex: url("/assets/brand/wood.webp");

  --shadow: 0 18px 40px -22px rgba(46, 33, 15, .30);
  --shadow-lift: 0 30px 60px -26px rgba(46, 33, 15, .38);
  --header-glass: color-mix(in srgb, var(--ivory) 90%, transparent);

  /* Clouds */
  --puff: clamp(56px, 10vw, 130px);

  /* Hero image focal point */
  --hero-focus: 50% 50%;

  /* Type */
  --font-body: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-head: "Bona Nova", "Times New Roman", Georgia, serif;
  --font-num: "Cinzel", "Bona Nova", Georgia, serif;
  --fs-h1: clamp(2.15rem, 8.4vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 6.4vw, 3.05rem);
  --fs-h3: 1.32rem;

  /* Layout */
  --gutter: 22px;
  --container: min(100% - 2 * var(--gutter), 1160px);
  --section-pad: 84px;
  --header-h: 72px;

  /* Shape: square, tailored corners */
  --radius: 4px;
  --radius-btn: 2px;

  --tap: 48px;
  --btn-h: 54px;

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

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

@media (min-width: 1024px) {
  :root { --section-pad: 128px; --header-h: 88px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  font-size: 112.5%; /* 18px */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-block-start: calc(var(--header-h) + 16px);
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 768px) {
  html { font-size: 118.75%; } /* 19px */
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  overflow-x: clip;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
}

html.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; color: var(--ink); }
h1, h2 { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-h1); line-height: 1.12; }
h2 { font-size: var(--fs-h2); line-height: 1.18; }
h3 { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; line-height: 1.3; }
p, li, dd { text-wrap: pretty; overflow-wrap: break-word; }

a { color: var(--gold-deep); text-decoration-thickness: 1px; text-underline-offset: .28em; transition: color .25s var(--ease-out); }
a:hover { color: var(--ink); }

.nowrap { white-space: nowrap; }
.phone, [dir="ltr"] { unicode-bidi: isolate; }
.phone { direction: ltr; white-space: nowrap; }

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
/* Lenis already eases every step; native smooth scrolling on top of it doubles the easing and makes it stutter */
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Scrollbars: gold on linen (the page and the site's own scroll areas only) ---------- */
html, .menu, textarea { scrollbar-color: var(--gold) var(--linen); }
html::-webkit-scrollbar, .menu::-webkit-scrollbar, textarea::-webkit-scrollbar { width: 12px; height: 12px; }
html::-webkit-scrollbar-track, .menu::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track { background: var(--linen); }
html::-webkit-scrollbar-thumb, .menu::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb { background: var(--gold); border: 3px solid var(--linen); border-radius: 999px; }
html::-webkit-scrollbar-thumb:hover, .menu::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ---------- Focus ---------- */
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }
main:focus { outline: none; }
.on-dark :focus-visible, .menu :focus-visible { outline-color: var(--gold-light); }
.on-dark .panel :focus-visible { outline-color: var(--gold-deep); }

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: currentColor; }

.container { width: var(--container); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 820px); margin-inline: auto; }

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  inset-block-start: 8px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 20px;
  background: var(--ink);
  color: var(--ivory);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--ivory); }

/* ---------- Ornaments ---------- */
/* line · diamond · line, in brushed gold */
.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: 18px;
}
.ornament::before, .ornament::after {
  content: "";
  width: 52px;
  height: 2px;
  background: var(--gold) var(--gold-tex) center / cover;
}
.ornament i {
  width: 9px;
  height: 9px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: rotate(45deg);
}
.section-head--center .ornament, .ornament--center { justify-content: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-block-end: 14px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .28em;
  line-height: 1.4;
  color: var(--gold-deep);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); }
.on-dark .eyebrow { color: var(--gold-light); }

.section-head { margin-block-end: 44px; max-width: 46rem; }
.section-head p { margin-block-start: 14px; color: var(--ink-soft); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

@media (min-width: 1024px) {
  .section-head { margin-block-end: 64px; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  max-width: 100%;
  padding: 8px 34px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: color .35s var(--ease-out), background-color .35s var(--ease-out), border-color .35s var(--ease-out),
    transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}

/* an espresso panel slides in from the start side on hover */
.btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-calm);
}

.btn-primary {
  background: var(--gold) var(--gold-tex) center / cover;
  border-color: color-mix(in srgb, var(--ink) 25%, transparent);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--white) 40%, transparent), 0 14px 28px -16px rgba(116, 66, 18, .65);
}

.btn-secondary {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.btn:active { transform: scale(.98); }
.btn .icon { transition: transform .35s var(--ease-out); }

@media (hover: hover) {
  .btn:hover::after { transform: scaleX(1); }
  .btn-primary:hover { color: var(--gold-light); border-color: var(--ink); }
  .btn-secondary:hover { color: var(--ivory); }
  .btn:hover .icon { transform: translateX(-3px); }
}

.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn[aria-disabled="true"]::after { display: none; }
.btn[aria-disabled="true"]:active { transform: none; }

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-group .btn { width: 100%; max-width: 420px; }

@media (min-width: 640px) {
  .btn-group { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .btn-group .btn { width: auto; }
}

/* ---------- Header ---------- */
.scroll-sentinel { position: absolute; inset-block-start: 0; inset-inline: 0; height: 8px; pointer-events: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--ivory);
  border-block-end: 1px solid var(--hairline-soft);
  transition: background-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--header-glass);
  box-shadow: 0 1px 0 var(--hairline), 0 12px 30px -22px rgba(46, 33, 15, .4);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
html.menu-open .site-header { background: var(--deep); border-color: var(--on-dark-line); box-shadow: none; }
html.menu-open .site-header .logo { opacity: 1; }

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  margin-inline-end: auto;
  transition: transform .4s var(--ease-out);
}
.logo img { width: auto; height: 52px; }
@media (hover: hover) { .logo:hover { transform: scale(1.03); } }

@media (min-width: 1024px) {
  .logo img { height: 66px; }
}

.site-nav { display: none; }
.nav-list { list-style: none; padding: 0; display: flex; gap: 6px; }

.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding-inline: 14px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
}
.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 9px;
  height: 2px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-calm);
}
.nav-list a:hover { color: var(--gold-deep); }
.nav-list a:hover::after, .nav-list a:focus-visible::after { transform: scaleX(1); }

.header-cta { display: none; }

/* Menu button: three fine lines */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink);
  transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}

.menu-bars,
.menu-bars::before,
.menu-bars::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease-out), background-color .2s var(--ease-out);
}
.menu-bars { position: relative; }
.menu-bars::before, .menu-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-bars::before { top: -7px; }
.menu-bars::after { top: 7px; }

.menu-toggle[aria-expanded="true"] { color: var(--gold-light); border-color: var(--on-dark-line); }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-7px) rotate(-45deg); }

html:not(.js) .menu-toggle { display: none; }

/* Phone menu: a full espresso room with gold numerals */
.menu {
  position: fixed;
  inset-inline: 0;
  inset-block-start: var(--header-h);
  z-index: 55;
  height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--deep);
  color: var(--ivory);
  visibility: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-calm), visibility 0s linear .55s;
}

.menu.is-open {
  visibility: visible;
  clip-path: inset(0 0 0 0);
  transition: clip-path .55s var(--ease-calm), visibility 0s linear 0s;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: var(--container);
  margin-inline: auto;
  padding-block: 16px calc(36px + env(safe-area-inset-bottom));
}

.menu-list { list-style: none; padding: 0; counter-reset: menu; }
.menu-list li { counter-increment: menu; border-block-end: 1px solid var(--on-dark-line); }

.menu-list a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  min-height: 72px;
  padding-block: 16px;
  font-family: var(--font-head);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--ivory);
  text-decoration: none;
}
.menu-list a::before {
  content: counter(menu, decimal-leading-zero);
  font-family: var(--font-num);
  font-size: .9rem;
  letter-spacing: .1em;
  color: var(--gold-light);
}
.menu-list a:hover, .menu-list a:active { color: var(--gold-light); }

.menu-list li, .menu-cta {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s var(--ease-out), transform .55s var(--ease-calm);
}
.menu.is-open .menu-list li, .menu.is-open .menu-cta { opacity: 1; transform: none; }
.menu.is-open .menu-list li:nth-child(1) { transition-delay: .1s; }
.menu.is-open .menu-list li:nth-child(2) { transition-delay: .16s; }
.menu.is-open .menu-list li:nth-child(3) { transition-delay: .22s; }
.menu.is-open .menu-list li:nth-child(4) { transition-delay: .28s; }
.menu.is-open .menu-cta { transition-delay: .36s; }

.menu-cta { display: flex; flex-direction: column; gap: 14px; }
.menu-cta .btn { width: 100%; }
.menu-phone { color: var(--stone); }
.menu-phone a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; color: var(--gold-light); }

@media (min-width: 1024px) {
  .site-nav { display: block; }
  .header-cta { display: inline-flex; min-height: 48px; padding-inline: 26px; }
  .menu-toggle, .menu { display: none; }
}

/* ---------- Hero: the photo fills the first screen, the page slides over it ---------- */
.hero {
  position: relative;
  z-index: 0;
  width: 100%;
  height: calc(100svh - var(--header-h));
  min-height: 360px;
  overflow: hidden;
  background: var(--linen);
}

.hero-media {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-media {
      animation: hero-parallax linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 100lvh;
    }
  }
}

@keyframes hero-parallax {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, 50lvh, 0); }
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-focus);
}

.js .hero-img { opacity: 0; transform: scale(1.06); transition: opacity .8s var(--ease-out), transform 2s var(--ease-calm); }
.js .hero.is-loaded .hero-img { opacity: 1; transform: none; }
.hero.is-empty .hero-img { display: none; }

/* Everything after the hero is a sheet that rises over it */
.sheet { position: relative; z-index: 2; }

/* ---------- Clouds: the top edge of the sheet, drifting over the bottom of the photo ---------- */
.clouds {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% - 1px);
  /* tall enough for the biggest puff at its biggest breath; plain overflow: hidden clips the sides
     (the layers are wider than the screen so they can sway) and the bottom, never the round tops */
  height: calc(var(--puff) * 1.2);
  pointer-events: none;
  overflow: hidden;
}

.clouds-layer {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: 0;
  height: 100%;
  animation: cloud-sway 5s ease-in-out infinite alternate;
}

.clouds-layer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--puff) * .3);
  background: var(--cloud-color);
}

.clouds-layer span {
  position: absolute;
  bottom: 0;
  left: calc(var(--x) * 1%);
  width: calc(var(--s) * var(--puff) * 1.35);
  aspect-ratio: 1.35 / 1;
  border-radius: 50%;
  background: var(--cloud-color);
  translate: -50% 38%;
  transform-origin: 50% 100%;
  animation: cloud-breathe var(--d, 11s) ease-in-out var(--delay, 0s) infinite alternate;
}

.clouds-front { --cloud-color: var(--ivory); }
.clouds-back {
  --cloud-color: var(--white);
  opacity: .9;
  bottom: calc(var(--puff) * .14);
  animation-duration: 6.5s;
  animation-direction: alternate-reverse;
}

@keyframes cloud-sway {
  from { transform: translateX(-3.5%); }
  to { transform: translateX(3.5%); }
}

@keyframes cloud-breathe {
  from { transform: scale(.88); }
  to { transform: scale(1.12); }
}

/* ---------- Intro: a framed title page ---------- */
.intro {
  position: relative;
  padding-block: 36px 84px;
  background: var(--ivory);
  text-align: center;
}

.intro-frame {
  position: relative;
  isolation: isolate;
  padding: 52px 20px 46px;
  border: 1px solid var(--hairline);
}
/* the second, inner rule of the double frame */
.intro-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}
/* the RD monogram as a faint watermark */
.intro-frame::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  top: 24px;
  margin-inline: auto;
  width: min(84%, 520px);
  aspect-ratio: 640 / 395;
  background: url("/assets/brand/rd-mark.webp") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}

/* brushed-gold diamonds on the four corners of the frame */
.frame-corner {
  position: absolute;
  width: 11px;
  height: 11px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: rotate(45deg);
}
.frame-corner--1 { top: -6px; right: -6px; }
.frame-corner--2 { top: -6px; left: -6px; }
.frame-corner--3 { bottom: -6px; right: -6px; }
.frame-corner--4 { bottom: -6px; left: -6px; }

.intro h1 { max-width: 15em; margin-inline: auto; }

.tagline {
  margin-block-start: 16px;
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 5.2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--gold-deep);
  text-wrap: balance;
}

/* the highlighted word gets a brushed-gold underline that draws itself */
.swoosh { position: relative; display: inline-block; }
.swoosh::after {
  content: "";
  position: absolute;
  inset-inline: -2%;
  bottom: -.02em;
  height: 3px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 1.1s var(--ease-calm) .5s;
}
.js .intro.is-in .swoosh::after, html:not(.js) .swoosh::after { transform: scaleX(1); }

.ornament--center { margin-block: 22px 6px; }

.hero-sub { margin: 16px auto 0; max-width: 32em; color: var(--ink-soft); font-size: 1.1rem; }
.intro .btn-group { margin-block-start: 32px; }

@media (min-width: 640px) {
  .intro-frame { padding: 66px 48px 58px; }
}

@media (min-width: 1024px) {
  .intro { padding-block: 56px 128px; }
  .intro-frame { padding: 92px 80px 80px; }
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-pad); }
.bg-sand { background: var(--ivory); }
.bg-sand-2 { background: var(--linen); }
.bg-white { background: var(--white); }
.section--dark { background: var(--deep); color: var(--ivory); }
.section--dark h2 { color: var(--ivory); }

/* Illustrations: hung like works in a gallery, in a double gold frame */
.ill { width: 100%; height: auto; }

.art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  padding: 30px 24px;
  background: var(--linen);
  border: 1px solid var(--hairline);
}
.art::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}
.bg-sand-2 .art { background: var(--ivory); }
.art .ill { animation: float 7s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.split { display: grid; gap: 40px; align-items: center; }
.split > * { min-width: 0; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 88px; }
}

/* ---------- "We are here" list: Roman numerals between hairlines ---------- */
.check-list { list-style: none; padding: 0; counter-reset: here; border-block-start: 1px solid var(--hairline); }

.check-list li {
  counter-increment: here;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 2px;
  border-block-end: 1px solid var(--hairline-soft);
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  transition: padding .45s var(--ease-calm), color .3s var(--ease-out);
}
.check-list li::before {
  content: counter(here, upper-roman);
  flex: none;
  min-width: 2.4em;
  font-family: var(--font-num);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--gold-deep);
}
@media (hover: hover) {
  .check-list li:hover { padding-inline-start: 12px; color: var(--gold-deep); }
}

/* ---------- Services ---------- */
.cards { list-style: none; padding: 0; display: grid; gap: 28px; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease-calm), box-shadow .5s var(--ease-out), border-color .4s var(--ease-out);
}
/* inner hairline: each card reads as a framed certificate */
.card::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
  transition: border-color .4s var(--ease-out);
}

.card-art {
  position: relative;
  overflow: hidden;
  margin: 18px 18px 0;
  padding: 60px 20px 22px;
  background: var(--linen);
}
.card-art .ill { position: relative; z-index: 1; transform-origin: 50% 100%; transition: transform .8s var(--ease-calm); }

.card-tag {
  position: absolute;
  z-index: 2;
  inset-block-start: 16px;
  inset-inline-start: 18px;
  font-family: var(--font-num);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--gold-deep);
}

.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; flex: 1; padding: 26px 30px 32px; }
.card-body h3 { font-size: 1.45rem; }
.card-body > p { margin-block-start: 6px; color: var(--ink-soft); }
.card-body > .fit-title { margin-block-start: 22px; }

.fit-title {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--gold-deep);
}

.fit-list { list-style: none; padding: 0; margin-block: 6px 0; display: grid; gap: 6px; }
.fit-list li { position: relative; padding-inline-start: 22px; color: var(--ink-soft); }
.fit-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 2px;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: rotate(45deg);
}

.card .btn { margin-block-start: auto; width: 100%; font-size: .98rem; }
/* space above the button; the button itself sits at the bottom so both cards line up */
.card-body > :nth-last-child(2) { margin-block-end: 30px; }

@media (hover: hover) {
  .card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); border-color: var(--hairline); }
  .card:hover::after { border-color: var(--hairline); }
  .card:hover .card-art .ill { transform: scale(1.04); }
}

@media (min-width: 900px) {
  .cards--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; gap: 36px; }
}

/* ---------- About ---------- */
.about-text .lead { font-family: var(--font-head); font-size: 1.32rem; line-height: 1.6; color: var(--ink); }
.about-sub {
  margin-block-start: 34px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .2em;
  color: var(--gold-deep);
}
.about-text > p:not(.lead) { margin-block-start: 10px; color: var(--ink-soft); }

.place-list { list-style: none; padding: 0; margin-block-start: 10px; border-block-start: 1px solid var(--hairline-soft); }
.place-list li {
  position: relative;
  padding: 14px 2px;
  padding-inline-start: 28px;
  border-block-end: 1px solid var(--hairline-soft);
  font-weight: 600;
  line-height: 1.5;
}
.place-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 4px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-block-start: -4px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: rotate(45deg);
}

/* ---------- Professions: an espresso room of brushed-gold numerals ---------- */
.expertise-layout { display: grid; gap: 34px; }
.expertise-layout .section-head { margin-block-end: 0; }

.expertise { list-style: none; padding: 0; border-block-start: 1px solid var(--on-dark-line); }

.expertise li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
  border-block-end: 1px solid var(--on-dark-line);
  transition: padding .5s var(--ease-calm), background-color .5s var(--ease-out);
}

/* brushed-gold lettering: the logo's metal clipped to the numerals (readable on espresso) */
.expertise-num {
  flex: none;
  min-width: 2.2em;
  font-family: var(--font-num);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--gold-light);
  background: var(--gold-tex) center / cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.expertise-name {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ivory);
}

@media (hover: hover) {
  .expertise li:hover { padding-inline-start: 18px; background: color-mix(in srgb, var(--gold) 7%, transparent); }
}

@media (forced-colors: active) {
  .expertise-num { -webkit-text-fill-color: currentColor; background: none; }
}

@media (min-width: 900px) {
  .expertise-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 88px; align-items: start; }
  .expertise-layout .section-head { position: sticky; top: calc(var(--header-h) + 40px); }
  .expertise-name { font-size: 1.4rem; }
}

/* ---------- FAQ: a hairline list ---------- */
.faq-list { border-block-start: 1px solid var(--hairline); }
.faq-item { border-block-end: 1px solid var(--hairline-soft); }
.faq-item h3 { font-size: 1.2rem; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  min-height: 76px;
  padding: 18px 2px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  text-align: start;
  line-height: 1.4;
  transition: color .3s var(--ease-out);
}
.faq-q:hover { color: var(--gold-deep); }

.faq-sign {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  transition: background-color .35s var(--ease-out), transform .55s var(--ease-calm), border-color .35s var(--ease-out);
}
.faq-sign::before, .faq-sign::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 13px;
  height: 1.5px;
  background: var(--gold-deep);
  transition: transform .55s var(--ease-calm), background-color .35s var(--ease-out);
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item.is-open .faq-sign { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq-item.is-open .faq-sign::before, .faq-item.is-open .faq-sign::after { background: var(--gold-light); }
.faq-item.is-open .faq-sign::after { transform: rotate(0deg); }

/* smooth open and close: the row animates from 0fr to 1fr */
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .55s var(--ease-calm);
}
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a-inner p {
  padding: 0 2px 24px;
  padding-inline-end: 56px;
  color: var(--ink-soft);
  transition: opacity .4s var(--ease-out) .1s, transform .55s var(--ease-calm) .05s;
}
.js .faq-item:not(.is-open) .faq-a-inner p { opacity: 0; transform: translateY(-8px); }

/* ---------- Contact ---------- */
.contact { background: var(--deep); color: var(--ivory); }
.contact h2 { color: var(--ivory); }
.contact-intro { margin-block-start: 16px; font-family: var(--font-head); font-size: 1.3rem; color: var(--gold-light); }

.contact-head { display: grid; gap: 28px; align-items: center; margin-block-end: 48px; }
.contact-head .art {
  width: min(100%, 360px);
  background: color-mix(in srgb, var(--ivory) 6%, transparent);
  border-color: var(--on-dark-line);
}
.contact-head .art::before { border-color: color-mix(in srgb, var(--gold-light) 18%, transparent); }

.contact-grid { display: grid; gap: 26px; align-items: start; }
.contact-grid > * { min-width: 0; }

@media (min-width: 900px) {
  .contact-head { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 56px; }
  .contact-head .art { width: 100%; }
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

.panel {
  position: relative;
  padding: 32px 22px;
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--ink);
}
.panel::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--hairline);
  pointer-events: none;
}
@media (min-width: 640px) { .panel { padding: 46px 42px; } }

.panel h3 { margin-block-end: 22px; font-size: 1.5rem; }

.field { position: relative; }
.field + .field { margin-block-start: 26px; }
.field-label, .field legend {
  display: block;
  margin-block-end: 6px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--gold-deep);
}
.field-hint { font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }
.field fieldset { border: 0; padding: 0; min-width: 0; }

/* fields drawn as a single line, like a signature line */
.input {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 10px 2px;
  border: 0;
  border-block-end: 1px solid var(--ink-soft);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.5;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
textarea.input { min-height: 104px; resize: vertical; }
.input:hover { border-color: var(--gold-deep); }
.input:focus-visible { outline: none; border-color: var(--gold-deep); box-shadow: 0 2px 0 var(--gold-deep); }
.input[aria-invalid="true"] { border-color: var(--gold-deep); box-shadow: 0 2px 0 var(--gold-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 6px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 6px 18px;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius-btn);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.3;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.chip:hover span { border-color: var(--gold-deep); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--gold-light); }
.chip input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
[data-invalid] .chip span { border-color: var(--gold-deep); border-width: 2px; }

.field-error { margin-block-start: 6px; font-weight: 700; color: var(--ink); }
.field-error:empty { display: none; }
.field-error::before { content: "שימו לב: "; color: var(--gold-deep); }

.preview {
  position: relative;
  margin-block-start: 28px;
  padding: 18px 20px;
  background: var(--linen);
}
.preview::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}
.preview-title { font-size: .8rem; font-weight: 800; letter-spacing: .18em; color: var(--gold-deep); }
.preview-text { margin-block-start: 6px; white-space: pre-wrap; font-family: var(--font-head); font-size: 1.12rem; color: var(--ink); }
.preview.is-bump { animation: bump .4s var(--ease-out); }
@keyframes bump { 0% { opacity: .6; } 100% { opacity: 1; } }

.form-actions { margin-block-start: 28px; }
.form-actions .btn { width: 100%; }
.form-note { margin-block-start: 12px; color: var(--ink-soft); }

.direct-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.direct-list .btn { width: 100%; }

.contact-details { margin-block-start: 26px; padding-block-start: 22px; border-block-start: 1px solid var(--hairline-soft); color: var(--ink-soft); }
.contact-details strong { color: var(--ink); font-family: var(--font-head); font-size: 1.15rem; }
.contact-details a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 700; }

/* ---------- Phone action bar ---------- */
.action-bar { display: none; }

/* Docked to the very bottom of the phone screen; it steps aside over the contact section and the footer */
@media (max-width: 1023px) {
  .action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px max(var(--gutter), env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom));
    background: var(--deep);
    border-block-start: 1px solid var(--on-dark-line);
    box-shadow: 0 -14px 34px -16px rgba(46, 33, 15, .55);
    visibility: hidden;
    transform: translate3d(0, 110%, 0);
    transition: transform .6s var(--ease-calm), visibility 0s linear .6s;
    will-change: transform;
  }

  .action-bar.is-visible {
    visibility: visible;
    transform: translate3d(0, 0, 0);
    transition: transform .6s var(--ease-calm), visibility 0s linear 0s;
  }

  .action-bar .btn { min-height: 52px; padding-inline: 12px; box-shadow: none; }
  .action-bar .btn-secondary { border-color: var(--gold-light); color: var(--gold-light); }
  .action-bar .btn-secondary::after { background: var(--gold); }
  .action-bar .btn-secondary:active { color: var(--ink); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 64px calc(32px + env(safe-area-inset-bottom));
  background: var(--deep);
  color: var(--ivory);
  border-block-start: 1px solid var(--on-dark-line);
}

.footer-grid { display: grid; gap: 30px; align-items: start; }
.footer-grid > * { min-width: 0; }

.logo--plate { display: inline-flex; justify-self: start; margin: 0; }
.logo--plate img { height: 96px; width: auto; }

.site-footer a { color: var(--ivory); }
.site-footer a:hover { color: var(--gold-light); }

.footer-contact strong { display: block; font-family: var(--font-head); font-size: 1.25rem; color: var(--gold-light); }
.footer-contact a { display: inline-flex; align-items: center; min-height: var(--tap); }

.footer-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; column-gap: 26px; }
.footer-links a { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 600; letter-spacing: .04em; }

.footer-copy {
  margin-block-start: 30px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--on-dark-line);
  color: var(--stone);
  letter-spacing: .06em;
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Inner pages (credits, accessibility, 404) ---------- */
.page-head { padding-block: 64px 28px; }
.page-head h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.page-head h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin-block-start: 20px;
  background: var(--gold) var(--gold-tex) center / cover;
}
.page-head p { margin-block-start: 18px; color: var(--ink-soft); max-width: 40em; }

.prose { padding-block-end: var(--section-pad); }
.prose h2 { font-size: clamp(1.45rem, 5vw, 2rem); margin-block: 42px 12px; }
.prose p, .prose ul { max-width: 42em; }
.prose p + p { margin-block-start: 12px; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose ul li { position: relative; padding-inline-start: 24px; }
.prose ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 3px;
  top: .72em;
  width: 7px;
  height: 7px;
  background: var(--gold) var(--gold-tex) center / cover;
  transform: rotate(45deg);
}
.prose a { display: inline-flex; align-items: center; min-height: var(--tap); }

.link-list { list-style: none; padding: 0; display: grid; gap: 4px; }

.credit-card {
  position: relative;
  padding: 30px 28px;
  border: 1px solid var(--stone);
  background: var(--white);
}
.credit-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}
.credit-card + .credit-card { margin-block-start: 18px; }
.credit-card h2 { margin: 0 0 6px; font-size: 1.4rem; }
.credit-card p { color: var(--ink-soft); }

.notfound { padding-block: 88px var(--section-pad); text-align: center; }
.notfound .eyebrow { justify-content: center; }
.notfound p:not(.eyebrow) { margin: 18px auto 30px; max-width: 30em; color: var(--ink-soft); }

/* ---------- Entrance animations (only when JS runs) ---------- */
/* Keyframes with backwards fill: after the entrance each element's own hover transitions take over */
.js .reveal:not(.is-in), .js .reveal-zoom:not(.is-in) { opacity: 0; }
.js .reveal.is-in { animation: rise-in 1.2s var(--ease-calm) calc(var(--i, 0) * 110ms) backwards; }
.js .reveal-zoom.is-in { animation: zoom-in 1.4s var(--ease-calm) calc(var(--i, 0) * 110ms) backwards; }

@keyframes rise-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal:not(.is-in), .js .reveal-zoom:not(.is-in) { opacity: 1; }
  .js .hero-img { transform: none; }
  .js .swoosh::after { transform: scaleX(1); }
}
