/* ==========================================================================
   כהן בנייה והשקעות בע"מ — main stylesheet
   RTL-first (Hebrew) and LTR-ready (English): layout uses logical properties
   (inline-start / inline-end), so switching <html dir> flips the design.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #070f1b;
  --navy-900: #0b1626;
  --navy-850: #0f1c30;
  --navy-800: #13243b;
  --navy-700: #1b3352;
  --navy-600: #264468;

  --gold-200: #f6e6b4;
  --gold-300: #efd48c;
  --gold-400: #e0bb62;
  --gold-500: #c9a14a;
  --gold-600: #a8822f;
  --gold-700: #85641e;
  --gold-grad: linear-gradient(135deg, #f7e3a3 0%, #dcb661 38%, #b98a30 68%, #e8c977 100%);

  --stone-50: #fbf9f5;
  --stone-100: #f4f0e8;
  --stone-200: #e8e1d4;
  --stone-300: #d6ccba;

  --ink-900: #121c2b;
  --ink-700: #2c3a4f;
  --ink-500: #566274;
  --on-dark: #e9eef5;
  --on-dark-muted: #a9b5c6;

  --wa-icon: #1aa34a;   /* WhatsApp green, 3:1 against white icon */
  --wa-btn: #13804a;    /* WhatsApp green, 4.5:1 against white text */
  --danger: #b42318;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(10, 20, 35, .05), 0 3px 10px rgba(10, 20, 35, .05);
  --shadow: 0 18px 40px -18px rgba(10, 20, 35, .28);
  --shadow-lg: 0 34px 70px -24px rgba(10, 20, 35, .42);

  --header-h: 84px;
  --container: 1220px;
  --font-body: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", "Heebo", Georgia, serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--stone-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-300); color: var(--navy-900); }

/* while the English dictionary is applied on load (prevents a flash of Hebrew) */
html.lang-pending body { opacity: 0; }

.icon {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon-fill { fill: currentColor; stroke: none; }
[dir="ltr"] .flip-ltr { transform: scaleX(-1); }

.skip-link {
  position: absolute; z-index: 1000; top: -80px; inset-inline-start: 16px;
  padding: 10px 18px; border-radius: 10px;
  background: var(--gold-400); color: var(--navy-900);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { position: relative; padding-block: clamp(76px, 9vw, 124px); }
.section--stone { background: var(--stone-100); }
.section--dark { background: var(--navy-900); color: var(--on-dark); }

.section-head { max-width: 740px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-head--center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-size: .92rem; font-weight: 600; letter-spacing: .02em;
  color: var(--gold-700);
}
.kicker::before, .section-head--center .kicker::after {
  content: ""; width: 30px; height: 2px; border-radius: 2px; background: var(--gold-grad);
}
.section--dark .kicker, .kicker--light { color: var(--gold-400); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  color: var(--navy-900); text-wrap: balance;
}
.section--dark .section-title { color: #fff; }
.section-lead { margin-top: 16px; font-size: 1.125rem; color: var(--ink-500); text-wrap: pretty; }
.section--dark .section-lead { color: var(--on-dark-muted); }
.text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--btn-h); padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 1rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 12px 26px -12px rgba(201, 161, 74, .75); }
.btn-gold:hover { box-shadow: 0 18px 34px -14px rgba(201, 161, 74, .9); }
.btn-ghost-light {
  color: #fff; border-color: rgba(255, 255, 255, .42); background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
}
.btn-ghost-light:hover { color: var(--gold-200); border-color: var(--gold-300); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { color: #fff; background: var(--navy-900); }
.btn-whatsapp { background: var(--wa-btn); color: #fff; }
.btn-whatsapp:hover { background: #0f6d3e; }
.btn-sm { --btn-h: 42px; padding: 0 18px; font-size: .95rem; }
.btn-lg { --btn-h: 58px; padding: 0 32px; font-size: 1.06rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 100; top: 0; inset-inline: 0;
  height: var(--header-h); color: #fff;
  transition: background-color .3s, box-shadow .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 15, 27, .7), rgba(7, 15, 27, 0));
  transition: opacity .3s;
}
.site-header.is-solid, .header-solid .site-header, .nav-open .site-header {
  background: rgba(11, 22, 38, .96);
  backdrop-filter: saturate(1.2) blur(12px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55);
}
.site-header.is-solid::before, .header-solid .site-header::before, .nav-open .site-header::before { opacity: 0; }
.header-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: #fff; text-decoration: none; }
.brand-mark { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.32rem;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.brand-sub { margin-top: 3px; font-size: .8rem; color: var(--on-dark-muted); }

.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav ul a {
  display: block; padding: 9px 13px; border-radius: 999px;
  font-size: .98rem; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .86);
  white-space: nowrap; transition: color .2s, background-color .2s;
}
.main-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav ul a[aria-current="page"], .main-nav ul a.is-active { color: var(--gold-300); }
.nav-mobile-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.lang-switch button {
  min-width: 40px; padding: 7px 11px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255, 255, 255, .82);
  font-size: .85rem; font-weight: 700; line-height: 1; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: var(--gold-grad); color: var(--navy-900); }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: #fff; white-space: nowrap;
}
.header-phone .icon { width: 19px; height: 19px; color: var(--gold-400); }
.header-phone:hover { color: var(--gold-200); }
.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06);
  color: #fff; cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 1320px) {
  .header-phone span { display: none; }
}
@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .nav-toggle { display: inline-flex; }
  .header-cta, .header-phone { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 14px 20px 26px;
    background: var(--navy-900); border-top: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 40px 60px -30px rgba(0, 0, 0, .7);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav ul a { padding: 13px 14px; border-radius: 12px; font-size: 1.12rem; }
  .nav-mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: .7rem; }
  .brand-mark { width: 36px; height: 36px; }
  .header-actions { gap: 6px; }
  .lang-switch button { min-width: 32px; padding: 6px 7px; font-size: .8rem; }
  .nav-toggle { width: 42px; height: 42px; }
}
@media (max-width: 370px) {
  .brand-name { font-size: .9rem; }
  .brand-sub { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; background: var(--navy-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 45%; }
[dir="ltr"] .hero-media img { transform: scaleX(-1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(8, 17, 30, .95) 0%, rgba(8, 17, 30, .84) 32%, rgba(8, 17, 30, .38) 66%, rgba(8, 17, 30, .12) 100%),
    linear-gradient(to top, rgba(8, 17, 30, .92) 0%, rgba(8, 17, 30, 0) 42%);
}
[dir="ltr"] .hero::after {
  background:
    linear-gradient(to right, rgba(8, 17, 30, .95) 0%, rgba(8, 17, 30, .84) 32%, rgba(8, 17, 30, .38) 66%, rgba(8, 17, 30, .12) 100%),
    linear-gradient(to top, rgba(8, 17, 30, .92) 0%, rgba(8, 17, 30, 0) 42%);
}
.hero-content { padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px)); }
.hero-copy { max-width: 780px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 8px 16px; border-radius: 999px;
  background: rgba(201, 161, 74, .14); border: 1px solid rgba(224, 187, 98, .38);
  color: var(--gold-200); font-size: .92rem; font-weight: 500;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(224, 187, 98, .2); }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.4rem, 4.8vw, 4.15rem); line-height: 1.08; letter-spacing: -.01em;
  text-wrap: balance;
}
.hero h1 .text-gold { display: block; padding-bottom: .08em; }
.hero-lead {
  max-width: 590px; margin-top: 24px;
  font-size: clamp(1.06rem, 1.35vw, 1.22rem); font-weight: 300; color: rgba(233, 238, 245, .9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; }
.hero-contact a {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; text-decoration: none; color: #fff;
}
.hero-contact a:hover { color: var(--gold-200); }
.hero-contact .icon { width: 19px; height: 19px; color: var(--gold-400); }
.hero-contact .icon-fill { color: #4fd17f; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(44px, 7vh, 80px);
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-stats li { padding: 26px 24px 32px; border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.hero-stats li:first-child { padding-inline-start: 0; border-inline-start: 0; }
.stat-value {
  display: block;
  font-family: var(--font-display); font-weight: 900; line-height: 1.05;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.stat-label { display: block; margin-top: 8px; font-size: .93rem; line-height: 1.45; color: var(--on-dark-muted); }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats li { padding: 20px 18px 22px; border-top: 1px solid rgba(255, 255, 255, .08); }
  .hero-stats li:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
  .hero-stats li:nth-child(-n+2) { border-top: 0; }
}
@media (max-width: 700px) {
  .hero { min-height: auto; }
  .hero::after, [dir="ltr"] .hero::after {
    background: linear-gradient(to top, rgba(8, 17, 30, .97) 0%, rgba(8, 17, 30, .82) 48%, rgba(8, 17, 30, .5) 100%);
  }
  .hero-media img, [dir="ltr"] .hero-media img { transform: none; object-position: center; }
  .hero-content { padding-top: calc(var(--header-h) + 56px); }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(44px, 6vw, 92px); align-items: center; }
.about-text p + p { margin-top: 16px; }
.about-text p { color: var(--ink-700); }
.about-text .lead-strong { font-size: 1.15rem; color: var(--ink-900); }
.values { display: grid; gap: 14px; margin-top: 34px; }
.value {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--stone-200); box-shadow: var(--shadow-sm);
}
.value-letter {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: var(--navy-900); color: var(--gold-300);
  font-family: var(--font-display); font-weight: 900; font-size: 1.55rem; line-height: 1;
}
.value h3 { font-size: 1.1rem; color: var(--navy-900); }
.value p { margin-top: 2px; font-size: .97rem; line-height: 1.6; color: var(--ink-500); }
.about-actions { margin-top: 30px; }

.about-media { position: relative; padding-bottom: 64px; padding-inline-end: 64px; }
.about-img-main { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; }
.about-img-main img { width: 100%; height: 100%; object-fit: cover; }
.about-img-sec {
  position: absolute; bottom: 0; inset-inline-end: 0; width: 54%;
  overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3;
  border: 7px solid var(--stone-50); box-shadow: var(--shadow-lg);
}
.about-img-sec img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; top: 34px; inset-inline-start: -26px;
  padding: 18px 22px 16px; border-radius: var(--radius);
  background: var(--navy-900); color: #fff; box-shadow: var(--shadow-lg); text-align: center;
}
.about-badge strong {
  display: block; font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.about-badge span { display: block; margin-top: 6px; font-size: .85rem; color: var(--on-dark-muted); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 520px) {
  .about-media { padding-bottom: 48px; padding-inline-end: 36px; }
  .about-badge { inset-inline-start: -8px; top: 20px; padding: 14px 16px 12px; }
  .about-badge strong { font-size: 1.9rem; }
}

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
  position: relative; overflow: hidden;
  padding: 30px 26px 30px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--stone-200); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.service-card::after {
  content: ""; position: absolute; bottom: 0; inset-inline: 0; height: 3px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
[dir="ltr"] .service-card::after { transform-origin: left; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service-card:hover::after { transform: scaleX(1); }
.service-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px;
  border-radius: 16px; background: var(--navy-900); color: var(--gold-400);
}
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 8px; font-size: 1.17rem; color: var(--navy-900); }
.service-card p { font-size: .98rem; line-height: 1.65; color: var(--ink-500); }

.turnkey {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center;
  margin-top: clamp(40px, 6vw, 64px); padding: clamp(30px, 5vw, 56px);
  border-radius: var(--radius-lg); background: var(--navy-900); color: var(--on-dark);
  box-shadow: var(--shadow-lg);
}
.turnkey::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(224, 187, 98, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 187, 98, .07) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 20% 50%, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at 20% 50%, #000 10%, transparent 70%);
}
.turnkey h3 { font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.2rem); color: #fff; text-wrap: balance; }
.turnkey p { margin-top: 16px; color: var(--on-dark-muted); }
.turnkey .btn { margin-top: 26px; }
.check-list { display: grid; gap: 14px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.55; }
.check-list .icon {
  width: 28px; height: 28px; padding: 5px; margin-top: 1px;
  border-radius: 50%; background: rgba(224, 187, 98, .16); color: var(--gold-300); stroke-width: 2.6;
}

@media (max-width: 1080px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .turnkey { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Why us ---------- */
.why { isolation: isolate; overflow: hidden; }
.why::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/why-bg.webp") center / cover no-repeat;
  opacity: .1; filter: grayscale(.4);
}
.why::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(224, 187, 98, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 187, 98, .06) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(255, 255, 255, .09);
}
.why-item { padding: 36px 32px; background: rgba(11, 22, 38, .94); transition: background-color .3s; }
.why-item:hover { background: rgba(19, 36, 59, .96); }
.why-item .icon { width: 34px; height: 34px; margin-bottom: 18px; color: var(--gold-400); stroke-width: 1.6; }
.why-item h3 { margin-bottom: 8px; font-size: 1.16rem; color: #fff; }
.why-item p { font-size: .98rem; line-height: 1.65; color: var(--on-dark-muted); }
@media (max-width: 960px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } .why-item { padding: 28px 24px; } }

/* ---------- Process ---------- */
.process-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process-step {
  position: relative; padding: 30px 28px 30px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--stone-200);
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: block; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 3.1rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.4px var(--gold-500);
}
.process-step h3 { margin-bottom: 8px; font-size: 1.17rem; color: var(--navy-900); }
.process-step p { font-size: .98rem; line-height: 1.65; color: var(--ink-500); }
@media (max-width: 960px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .process-list { grid-template-columns: 1fr; } }

/* ---------- Projects (home preview) ---------- */
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(34px, 5vw, 54px); }
.projects-head .section-head { margin-bottom: 0; }
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 250px; gap: 18px;
}
.project-card {
  position: relative; isolation: isolate; overflow: hidden; display: block;
  border-radius: var(--radius-lg); background: var(--navy-800);
  color: #fff; text-decoration: none;
}
.project-card:first-child { grid-column: span 2; grid-row: span 2; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(7, 15, 27, .86) 0%, rgba(7, 15, 27, .1) 52%, rgba(7, 15, 27, 0) 100%);
}
.project-meta { position: absolute; bottom: 0; inset-inline: 0; z-index: 2; padding: 20px 22px; }
.project-cat { display: block; font-size: .8rem; font-weight: 600; color: var(--gold-300); }
.project-title { display: block; margin-top: 2px; font-size: 1.06rem; font-weight: 600; line-height: 1.35; }
.project-card:first-child .project-title { font-size: 1.3rem; }
@media (max-width: 900px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .project-card:first-child { grid-column: 1 / -1; grid-row: span 2; }
  .project-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .projects-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .project-card:first-child { grid-row: span 1; }
}

/* ---------- Behind the scenes (video) ---------- */
.onsite { isolation: isolate; overflow: hidden; }
.onsite::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at 15% 50%, rgba(201, 161, 74, .14), transparent 55%);
}
.field-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.field-text p { color: var(--on-dark-muted); font-size: 1.08rem; }
.field-text p + p { margin-top: 14px; }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.follow-label { margin-top: 32px; font-weight: 600; color: #fff; }
.phone-frame {
  position: relative; width: min(330px, 78vw); margin-inline: auto; aspect-ratio: 9 / 16;
  padding: 10px; border-radius: 38px;
  background: linear-gradient(150deg, #22344f, #0a1422);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 29px; background: #000; }
.video-play {
  position: absolute; inset: 10px; display: grid; place-items: center;
  border: 0; border-radius: 29px; cursor: pointer; color: var(--navy-900);
  background: linear-gradient(to top, rgba(0, 0, 0, .5), rgba(0, 0, 0, .05));
}
.video-play span {
  display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%;
  background: var(--gold-grad); box-shadow: 0 0 0 12px rgba(224, 187, 98, .22);
  transition: transform .25s var(--ease);
}
.video-play:hover span { transform: scale(1.07); }
.video-play .icon { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.phone-frame.is-playing .video-play { display: none; }
.field-tag {
  position: absolute; top: 30px; inset-inline-start: -18px; z-index: 2;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px;
  background: #fff; color: var(--navy-900); font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-lg);
}
.field-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .2); }
@media (max-width: 860px) { .field-grid { grid-template-columns: 1fr; } .field-media { order: 2; } }

/* ---------- Service areas ---------- */
.regions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.regions li {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  background: var(--navy-900); color: #fff; font-weight: 600;
}
.regions .icon { width: 18px; height: 18px; color: var(--gold-400); }
.towns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin-inline: auto; }
.towns li {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--stone-200);
  color: var(--ink-700); font-weight: 500; box-shadow: var(--shadow-sm);
}
.towns li.more { background: transparent; border-style: dashed; box-shadow: none; color: var(--ink-500); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 8vw, 100px); color: #fff; background: var(--navy-900); }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../img/cta-band.webp") center / cover no-repeat; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(8, 17, 30, .94) 0%, rgba(8, 17, 30, .84) 55%, rgba(8, 17, 30, .7) 100%); }
[dir="ltr"] .cta-band::after { background: linear-gradient(to right, rgba(8, 17, 30, .94) 0%, rgba(8, 17, 30, .84) 55%, rgba(8, 17, 30, .7) 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px 40px; flex-wrap: wrap; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); max-width: 680px; text-wrap: balance; }
.cta-inner p { margin-top: 12px; max-width: 620px; color: var(--on-dark-muted); font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border-radius: var(--radius); background: #fff; border: 1px solid var(--stone-200);
  text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
}
a.contact-item:hover { transform: translateY(-2px); border-color: var(--gold-400); box-shadow: var(--shadow); }
.contact-icon {
  flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px;
  background: var(--navy-900); color: var(--gold-400);
}
.contact-icon .icon { width: 23px; height: 23px; }
.contact-icon.is-wa { background: var(--wa-icon); color: #fff; }
.contact-label { display: block; font-size: .86rem; color: var(--ink-500); }
.contact-value { display: block; font-size: 1.06rem; font-weight: 600; color: var(--navy-900); overflow-wrap: anywhere; }

.form-card {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--stone-200); box-shadow: var(--shadow);
}
.form-card h3 { margin-bottom: 22px; font-family: var(--font-display); font-size: 1.55rem; color: var(--navy-900); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .93rem; font-weight: 600; color: var(--ink-700); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--stone-300); border-radius: 12px; background: var(--stone-50);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(201, 161, 74, .2);
}
.field [aria-invalid="true"] { border-color: #d92d20; }
.field-error { font-size: .86rem; color: var(--danger); }
.field-error:empty { display: none; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-actions .btn { flex: 1 1 200px; }
.form-note { margin-top: 14px; font-size: .86rem; color: var(--ink-500); }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding-top: 76px; background: var(--navy-950); color: var(--on-dark-muted); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.25fr; gap: 40px; padding-bottom: 52px; }
.footer-brand .brand { margin-bottom: 18px; }
.footer-about { max-width: 360px; line-height: 1.7; }
.footer-title { margin-bottom: 16px; font-size: 1.02rem; font-weight: 700; color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--gold-400); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); color: #fff; transition: background-color .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--gold-grad); color: var(--navy-900); transform: translateY(-2px); }
.social .icon { width: 20px; height: 20px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .88rem;
}
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: var(--gold-300); }
.footer-bottom nav { display: flex; gap: 18px; flex-wrap: wrap; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Floating WhatsApp + mobile action bar ---------- */
.fab-whatsapp {
  position: fixed; z-index: 90; bottom: 24px; inset-inline-end: 24px;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa-icon); color: #fff; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5);
  transition: transform .2s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.07); }
.fab-whatsapp .icon { width: 30px; height: 30px; }
.fab-whatsapp::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa-icon); animation: pulse 2.6s infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.55); opacity: 0; } }
.mobile-bar { display: none; }
@media (max-width: 768px) {
  .fab-whatsapp { display: none; }
  .mobile-bar {
    position: fixed; z-index: 95; bottom: 0; inset-inline: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
    background: rgba(11, 22, 38, .97); backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  .mobile-bar .btn { --btn-h: 48px; padding: 0 12px; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
}

/* ---------- Inner page hero (projects / accessibility) ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(50px, 8vw, 96px)); padding-bottom: clamp(46px, 6vw, 80px);
  background: var(--navy-900); color: #fff;
}
.page-hero--image::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("../img/projects-hero.webp") center / cover no-repeat; opacity: .42;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(11, 22, 38, 1) 0%, rgba(11, 22, 38, .55) 60%, rgba(11, 22, 38, .75) 100%),
    linear-gradient(rgba(224, 187, 98, .05) 1px, transparent 1px) 0 0 / 46px 46px,
    linear-gradient(90deg, rgba(224, 187, 98, .05) 1px, transparent 1px) 0 0 / 46px 46px;
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .92rem; color: var(--on-dark-muted); }
.breadcrumb a { color: var(--on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb .icon { width: 16px; height: 16px; }
.page-title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.3rem, 4.8vw, 3.7rem); line-height: 1.1; }
.page-lead { max-width: 720px; margin-top: 16px; font-size: 1.12rem; color: rgba(233, 238, 245, .86); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.filter-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1.5px solid var(--stone-300); border-radius: 999px; background: #fff;
  color: var(--ink-700); font-size: .96rem; font-weight: 600; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter-btn:hover { border-color: var(--navy-700); }
.filter-btn[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.filter-count { padding: 1px 8px; border-radius: 999px; background: var(--stone-100); color: var(--ink-500); font-size: .78rem; }
.filter-btn[aria-pressed="true"] .filter-count { background: rgba(255, 255, 255, .14); color: var(--gold-200); }

@media (max-width: 600px) {
  .filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px; padding-bottom: 4px; scroll-padding-inline: 16px;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter-btn { flex: none; }
}
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.gallery-item {
  position: relative; isolation: isolate; overflow: hidden; display: block; width: 100%;
  padding: 0; border: 0; border-radius: var(--radius); aspect-ratio: 4 / 3;
  background: var(--stone-200); cursor: zoom-in; text-align: start;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gi-caption {
  position: absolute; bottom: 0; inset-inline: 0; z-index: 2;
  padding: 40px 16px 14px; color: #fff; font-size: .95rem; font-weight: 500; line-height: 1.4;
  background: linear-gradient(to top, rgba(7, 15, 27, .88), rgba(7, 15, 27, 0));
}
.gi-cat { display: block; margin-bottom: 2px; font-size: .76rem; font-weight: 600; color: var(--gold-300); }
.gi-play {
  position: absolute; top: 50%; left: 50%; z-index: 2; transform: translate(-50%, -60%);
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 0 0 10px rgba(224, 187, 98, .25);
}
.gi-play .icon { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; }
.gallery-status { padding: 40px 0; text-align: center; color: var(--ink-500); }
.gallery-status strong { display: block; margin-bottom: 6px; color: var(--ink-900); }
.gallery-more { display: flex; justify-content: center; margin-top: 36px; }
.gallery-more[hidden] { display: none; }

/* lightbox (native <dialog>) */
.lightbox {
  width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0;
  border: 0; background: rgba(5, 10, 18, .97); color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(5, 10, 18, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.lb-counter { font-size: .95rem; color: var(--on-dark-muted); }
.lb-stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 78px; touch-action: pan-y; }
.lb-stage img, .lb-stage video {
  max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); user-select: none;
}
.lb-stage video { max-height: 100%; background: #000; }
.lb-btn {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .07); color: #fff;
  cursor: pointer; transition: background-color .2s, border-color .2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, .16); border-color: var(--gold-300); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-prev { inset-inline-start: 14px; }
.lb-next { inset-inline-end: 14px; }
[dir="ltr"] .lb-prev .icon, [dir="ltr"] .lb-next .icon { transform: scaleX(-1); }
.lb-caption { padding: 14px 24px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.lb-cat { display: block; font-size: .85rem; font-weight: 600; color: var(--gold-300); }
.lb-title { display: block; margin-top: 2px; font-size: 1.1rem; font-weight: 600; }
@media (max-width: 700px) {
  .lb-stage { padding: 0 6px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; width: 44px; height: 44px; background: rgba(5, 10, 18, .65); }
}

/* ---------- Prose pages ---------- */
.prose { max-width: 820px; }
.prose h2 { margin: 42px 0 12px; font-family: var(--font-display); font-size: 1.6rem; color: var(--navy-900); }
.prose p { margin: 0 0 14px; color: var(--ink-700); }
.prose ul { margin: 0 0 18px; padding-inline-start: 22px; list-style: disc; color: var(--ink-700); }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy-700); font-weight: 600; }
.prose .meta { margin-top: 36px; font-size: .92rem; color: var(--ink-500); }

/* 404 */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; background: var(--navy-900); color: #fff; padding: 120px 24px 60px; }
.notfound .code { font-family: var(--font-display); font-weight: 900; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; }
.notfound p { margin: 14px 0 30px; color: var(--on-dark-muted); font-size: 1.15rem; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .container { padding-inline: 16px; }
}

@media print {
  .site-header, .fab-whatsapp, .mobile-bar, .hero-media, .cta-band::before { display: none !important; }
  body { padding: 0; background: #fff; }
}

/* ---------- Projects with several photos (gallery.js) ---------- */
.gi-count, .pc-count {
  position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: rgba(7, 15, 27, .72); color: #fff;
  font-size: .8rem; font-weight: 600; line-height: 1.3; pointer-events: none;
}
.gi-count .icon, .pc-count .icon { width: 16px; height: 16px; stroke-width: 2; }
.lb-desc {
  max-width: 760px; margin: 8px auto 0; font-size: .95rem; line-height: 1.6;
  color: var(--on-dark-muted); white-space: pre-line; max-height: 4.9em; overflow-y: auto;
}
.lb-desc[hidden], .lb-strip[hidden] { display: none; }
.lb-strip { display: flex; gap: 8px; max-width: 100%; margin-top: 12px; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: thin; }
.lb-thumb {
  flex: none; width: 64px; height: 48px; padding: 0; overflow: hidden;
  border: 2px solid transparent; border-radius: 8px; background: #000; opacity: .55; cursor: pointer;
  transition: opacity .2s, border-color .2s;
}
.lb-thumb:first-child { margin-inline-start: auto; }
.lb-thumb:last-child { margin-inline-end: auto; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb[aria-current="true"] { opacity: 1; border-color: var(--gold-300); }
@media (max-width: 700px) {
  .lb-thumb { width: 52px; height: 40px; }
  .lb-desc { max-height: 3.3em; font-size: .9rem; }
}

/* ---------- Video sound: silent videos and background music (gallery.js) ---------- */
.lb-play {
  position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 84px; height: 84px; padding: 0; border: 0; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-900); cursor: pointer;
  box-shadow: 0 0 0 12px rgba(224, 187, 98, .25), 0 24px 50px -12px rgba(0, 0, 0, .7);
}
.lb-play .icon { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; stroke: none; }
.lb-music { position: relative; margin-inline-start: auto; }
.lb-music[hidden] { display: none; }
.lb-music.is-off { opacity: .65; }
.lb-music.is-off::after {
  content: ""; position: absolute; width: 30px; height: 2px; border-radius: 2px;
  background: currentColor; transform: rotate(-45deg);
}

/* ---------- Accessibility menu (assets/js/a11y.js) ---------- */
.a11y-toggle {
  position: fixed; z-index: 96; bottom: 24px; inset-inline-start: 24px;
  display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border-radius: 50%;
  border: 2px solid var(--gold-400); background: var(--navy-900); color: #fff; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); transition: background-color .2s;
}
.a11y-toggle .icon { width: 30px; height: 30px; stroke-width: 1.8; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--navy-700); }
.a11y-toggle:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.a11y-panel {
  position: fixed; z-index: 97; bottom: 90px; inset-inline-start: 24px;
  width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto;
  padding: 18px; border: 1px solid var(--stone-200); border-radius: var(--radius);
  background: #fff; color: var(--ink-900); box-shadow: var(--shadow-lg);
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel button { font: inherit; color: inherit; cursor: pointer; }
.a11y-panel button:focus-visible, .a11y-panel a:focus-visible { outline: 3px solid var(--gold-600); outline-offset: 2px; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.a11y-head h2 { margin: 0; font-family: var(--font-body); font-size: 1.2rem; font-weight: 700; color: var(--ink-900); }
.a11y-close {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--stone-300); background: #fff; font-size: 1.5rem; line-height: 1;
}
.a11y-size {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--stone-100); font-weight: 600;
}
.a11y-size-ctrl { display: flex; align-items: center; gap: 8px; direction: ltr; }
.a11y-size-ctrl button {
  min-width: 46px; height: 42px; padding: 0 8px; border: 1px solid var(--stone-300);
  border-radius: var(--radius-sm); background: #fff; font-weight: 700;
}
.a11y-size-ctrl button:disabled { opacity: .4; cursor: default; }
.a11y-size output { min-width: 3.4em; text-align: center; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 78px; padding: 10px 8px; border: 1px solid var(--stone-300); border-radius: var(--radius-sm);
  background: #fff; font-size: .95rem; text-align: center;
}
.a11y-grid button:hover { border-color: var(--gold-600); }
.a11y-grid button[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.a11y-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.a11y-reset {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px;
  border: 1px solid var(--stone-300); border-radius: var(--radius-sm); background: #fff; font-weight: 600;
}
.a11y-reset .icon { width: 18px; height: 18px; }
.a11y-foot a { color: var(--ink-900); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 768px) {
  .a11y-toggle { bottom: calc(80px + env(safe-area-inset-bottom)); inset-inline-start: 12px; width: 48px; height: 48px; }
  .a11y-toggle .icon { width: 26px; height: 26px; }
  .a11y-panel {
    bottom: calc(140px + env(safe-area-inset-bottom)); inset-inline: 12px; width: auto;
    max-height: calc(100vh - 170px - env(safe-area-inset-bottom));
  }
}
@media print { .a11y-bar { display: none !important; } }

/* settings chosen in the menu (classes on <html>) */
html.a11y-text-1 { font-size: 112%; }
html.a11y-text-2 { font-size: 125%; }
html.a11y-text-3 { font-size: 140%; }
html.a11y-contrast { --ink-500: var(--ink-900); --ink-700: var(--ink-900); --on-dark-muted: #fff; --on-dark: #fff; filter: contrast(1.3); }
html.a11y-gray { filter: grayscale(1); }
html.a11y-gray.a11y-contrast { filter: grayscale(1) contrast(1.3); }
html.a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; }
html.a11y-links a:not(.btn) { outline: 2px solid var(--gold-500); outline-offset: 2px; }
html.a11y-font, html.a11y-font * { font-family: Arial, "Segoe UI", Helvetica, sans-serif !important; }
html.a11y-spacing body { letter-spacing: .06em; word-spacing: .16em; }
html.a11y-spacing p, html.a11y-spacing li, html.a11y-spacing figcaption { line-height: 1.9 !important; }
html.a11y-still { scroll-behavior: auto; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2.5 19 13.6l-6.4 1.1 3.6 6.4-2.8 1.5-3.5-6.5L5.1 20z' fill='black' stroke='white' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 3 2, auto !important;
}
/* with larger text on small screens, keep the header in fixed sizes so the menu button stays on screen */
@media (max-width: 600px) {
  html[class*="a11y-text-"] .brand-name { font-size: 16px; }
  html[class*="a11y-text-"] .brand-sub { display: none; }
  html[class*="a11y-text-"] .lang-switch button { font-size: 13px; }
}
@media (max-width: 420px) {
  html[class*="a11y-text-"] .brand-name { font-size: 14px; }
}
