/* =======================================================
   DMO Architects — Bright, organized, professional theme
   RTL Hebrew · Mobile-first
   ======================================================= */

:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-2:      #f7f3ec;        /* warm cream — alternating sections */
  --bg-3:      #efe8d8;        /* deeper cream — accent strips */
  --bg-deep:   #14233a;        /* deep navy — footer / dark CTA */
  --surface:   #ffffff;

  /* Lines */
  --line:        #e6dfd1;      /* warm beige hairline */
  --line-strong: #cfc4ad;
  --line-cool:   #e2e8f0;

  /* Text */
  --text:        #14233a;      /* deep navy-charcoal */
  --text-2:      #2c3e57;
  --text-dim:    #56657c;
  --text-mute:   #8a93a3;
  --text-on-dark:#f4ecdb;

  /* Brand */
  --accent:        #1f3a5f;    /* navy — primary CTA */
  --accent-hover:  #2c4f7f;
  --accent-deep:   #142a47;
  --accent-soft:   #e8eef6;
  --gold:          #a47e3b;    /* restrained warm gold — small accents only */
  --gold-soft:     #f4ead4;

  /* Status */
  --success: #16a34a;
  --danger:  #c0392b;
  --whatsapp:#25d366;

  /* Shape */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(20,35,58,.06);
  --shadow:    0 6px 18px -8px rgba(20,35,58,.18);
  --shadow-lg: 0 18px 40px -20px rgba(20,35,58,.22);

  /* Motion */
  --ease:     cubic-bezier(.2,.6,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  /* Layout */
  --container: 1200px;
  --nav-h:     72px;
  --pad-x:     20px;

  /* Type */
  --font-sans:  'Heebo', 'Segoe UI', 'Noto Sans Hebrew', system-ui, -apple-system, sans-serif;
  --font-serif: 'Heebo', 'Segoe UI', system-ui, sans-serif; /* serif retired — keep var for safety */

  --fs-body: 1rem;
  --fs-h1:   clamp(1.875rem, 4.6vw, 3rem);
  --fs-h2:   clamp(1.5rem, 3.6vw, 2.25rem);
  --fs-h3:   1.125rem;
  --fs-lead: 1.0625rem;
}

/* ========= Reset ========= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  overflow-x: clip;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; -webkit-tap-highlight-color: transparent; }
input, textarea, select, button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 700; color: var(--text); letter-spacing: 0; }

/* ========= Containers / sections ========= */
.container {
  width: 100%;
  max-width: var(--container);
  padding-inline: var(--pad-x);
  margin-inline: auto;
}
.section { padding-block: 64px; position: relative; }
@media (min-width: 900px) { .section { padding-block: 88px; } }

/* ========= Utilities ========= */
.is-serif { font-family: var(--font-sans); font-weight: 700; font-style: normal; letter-spacing: 0; }
.is-accent { color: var(--accent); }
.accent { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
}

.section-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.section-head--split {
  display: flex; flex-direction: column; gap: 14px;
  text-align: start; max-width: none; margin-bottom: 32px;
  align-items: flex-start;
}
.section-head--split > * { margin-inline: 0; }
@media (min-width: 800px) {
  .section-head--split {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}
.section-title {
  font-size: var(--fs-h2);
  margin-top: 14px;
  color: var(--text);
  font-weight: 800;
  line-height: 1.2;
}
.section-sub { color: var(--text-dim); margin-top: 12px; }
.lead { color: var(--text-2); font-size: var(--fs-lead); line-height: 1.8; }

.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;
}
.skip-link {
  position: absolute;
  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;
}
.skip-link:focus {
  position: fixed;
  top: 12px; inset-inline-start: 12px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0;
  overflow: visible; clip: auto; clip-path: none;
  white-space: normal;
  background: var(--accent); color: #fff;
  border-radius: 6px;
  outline: 2px solid #fff;
  z-index: 10000;
}

/* ========= Buttons ========= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0;
  border: 1.5px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--ghost {
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-deep); }
.btn--link {
  min-height: auto;
  padding: 8px 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 700;
  position: relative;
}
.btn--link:hover { color: var(--accent-hover); }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 16px 30px; min-height: 54px; font-size: 1rem; }

/* ========= Preloader (kept minimal) ========= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: #fff;
  display: grid; place-items: center;
  transition: opacity .35s ease, visibility .35s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; gap: 14px; place-items: center; }
.preloader__logo { width: 110px; height: 36px; }
.preloader__text {
  fill: var(--accent);
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 4px;
}
.preloader__bar {
  width: 140px; height: 2px;
  background: var(--line);
  border-radius: 4px; overflow: hidden;
}
.preloader__bar span {
  display: block; height: 100%; width: 30%;
  background: var(--accent);
  animation: loading 1.1s linear infinite;
}
@keyframes loading {
  0%   { margin-inline-start: -40%; width: 40%; }
  50%  { width: 60%; }
  100% { margin-inline-start: 100%; width: 40%; }
}

/* ========= Scroll progress (subtle) ========= */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0;
  height: 2px; z-index: 200;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width .12s linear;
}

/* ========= Header / Navigation ========= */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__row {
  display: flex; align-items: center; gap: 16px;
  justify-content: space-between;
  min-height: var(--nav-h);
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text { display: grid; line-height: 1; gap: 3px; }
.logo__text strong {
  font-family: var(--font-sans);
  font-size: 1.125rem; font-weight: 800; letter-spacing: 2px;
  color: var(--text);
}
.logo__text em {
  font-style: normal; font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 1.5px; color: var(--text-dim); text-transform: uppercase;
}
.logo--light { color: var(--text-on-dark); }
.logo--light .logo__mark { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.logo--light .logo__text strong { color: #fff; }
.logo--light .logo__text em { color: rgba(244,236,219,.7); }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; }
.nav__list a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 6px;
  transition: color .15s ease, background .15s ease;
}
.nav__list a:hover { color: var(--accent); background: var(--accent-soft); }
.nav__list a.is-active,
.nav__list a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.header__cta { display: none; }

@media (min-width: 900px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
}

.menu-toggle {
  width: 44px; height: 44px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent);
  display: flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.menu-toggle span {
  width: 22px; height: 2px; background: currentColor;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
}

.mobile-nav {
  position: fixed; top: var(--nav-h); inset-inline: 0; bottom: 0;
  background: #fff;
  padding: 22px var(--pad-x) 30px;
  transform: translateY(-14px) scale(.985);
  transform-origin: top center;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity .32s var(--ease-out), transform .32s var(--ease-out), visibility .32s;
  z-index: 90;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-top: 1px solid var(--line);
}
.mobile-nav[data-open="true"] {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 6px;
}
.mobile-nav a {
  display: flex; align-items: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 6px; font-size: 1.0625rem; font-weight: 600;
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ========= HERO ========= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 28px) 0 60px;
  background: #0d1014;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.hero__canvas,
.hero__grid,
.hero__noise,
.hero__scroll { display: none !important; }

/* Background construction video */
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* Shadowy overlay for readability */
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,10,14,.78) 0%, rgba(8,10,14,.55) 45%, rgba(8,10,14,.35) 100%),
    linear-gradient(180deg, rgba(8,10,14,.35) 0%, rgba(8,10,14,.15) 40%, rgba(8,10,14,.55) 100%);
}
[dir="rtl"] .hero__overlay {
  background:
    linear-gradient(270deg, rgba(8,10,14,.78) 0%, rgba(8,10,14,.55) 45%, rgba(8,10,14,.35) 100%),
    linear-gradient(180deg, rgba(8,10,14,.35) 0%, rgba(8,10,14,.15) 40%, rgba(8,10,14,.55) 100%);
}

.hero__inner {
  position: relative; z-index: 2;
  display: grid; gap: 28px;
}
.hero__copy { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
  }
}

/* Hero slideshow */
.hero__media {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.35), 0 8px 22px -12px rgba(0,0,0,.18);
  aspect-ratio: 4 / 3;
  background: #111;
}
@media (min-width: 900px) {
  .hero__media { aspect-ratio: 5 / 6; max-height: 560px; }
}
.hero__slides {
  position: absolute; inset: 0;
}
.hero__slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6s ease-out;
  will-change: opacity, transform;
}
.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.hero__media-frame {
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: inherit;
}
@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .3s ease; transform: none; }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 0.75rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 700;
  flex-wrap: wrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.hero__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(164,126,59,.25);
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.2;
  letter-spacing: 0;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
.hero__title .line { display: block; }
.hero__title .line > span { display: inline; }
.hero__title .is-accent {
  color: var(--gold);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 800;
}
.hero__title .is-serif.is-accent {
  color: var(--gold);
  font-style: normal;
  font-family: var(--font-sans);
  font-weight: 800;
}
.hero__lede {
  max-width: 640px;
  color: rgba(244,236,219,.92);
  font-size: 1rem;
  line-height: 1.85;
  margin: 4px 0 0;
  text-shadow: 0 1px 6px rgba(0,0,0,.5);
}
.hero .btn--ghost {
  color: #fff;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(2px);
}
.hero .btn--ghost:hover {
  color: #fff;
  border-color: #fff;
  background: rgba(255,255,255,.14);
}
.hero__cta {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 4px;
}
.hero__cta .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .hero__cta .btn { flex: 1 1 100%; }
}

@media (min-width: 900px) {
  .hero { padding: calc(var(--nav-h) + 40px) 0 80px; }
}

/* ========= STATS BAR (under hero) ========= */
.stats {
  background: var(--bg-2, #f5f7fa);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 88px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 0;
  max-width: 1100px;
  margin-inline: auto;
  align-items: stretch;
}
@media (min-width: 800px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 16px;
  position: relative;
}
@media (min-width: 800px) {
  .stat + .stat::before {
    content: "";
    position: absolute;
    inset-block: 8px;
    inset-inline-start: 0;
    width: 1px;
    background: var(--line);
  }
}
.stat strong {
  display: block;
  font-size: 4rem;
  font-weight: 900;
  color: var(--accent, var(--text));
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 16px;
  white-space: nowrap;
}
@media (min-width: 800px) {
  .stat strong { font-size: 4.5rem; }
}
@media (min-width: 1100px) {
  .stat strong { font-size: 5rem; }
}
.stat span {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* ========= SERVICES ========= */
.services {
  background: var(--bg-2);
}
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 700px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  position: relative;
}
.service:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.service__num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .14em;
  margin-bottom: 12px;
}
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 10px;
  margin-bottom: 18px;
}
.service__icon svg { width: 28px; height: 28px; }
.service h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text);
}
.service p {
  color: var(--text-dim);
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.service ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.service ul li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.service ul li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ========= ABOUT ========= */
.about { background: #fff; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}
.about__media {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.about__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.about__image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.about__image:hover img { transform: scale(1.03); }
.about__image--main { aspect-ratio: 4/5; }
.about__image--sub {
  position: absolute;
  width: 55%;
  bottom: -24px;
  inset-inline-start: -16px;
  aspect-ratio: 4/3;
  border: 4px solid #fff;
}
@media (max-width: 600px) {
  .about__image--sub { display: none; }
}
.about__badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  width: 84px; height: 84px;
  display: grid; place-items: center;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.about__badge span {
  display: block; font-size: 0.625rem; letter-spacing: .14em; text-transform: uppercase; opacity: .85;
}
.about__badge strong {
  display: block; font-size: 1.375rem; font-weight: 800; line-height: 1;
}
.about__content { display: grid; gap: 18px; }
.about__list {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; gap: 10px;
}
.about__list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.9375rem;
  color: var(--text-2);
  font-weight: 500;
}
.about__list li span {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line);
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.about__actions {
  display: flex; gap: 18px; flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

/* Inline highlights inside the about copy */
.about__content .hl-color { color: var(--gold); }
.about__content strong { font-weight: 800; color: var(--text); }
.about__content strong.hl-color { color: var(--gold); }
.about__content u {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Word-by-word reveal inside the about content (RTL chronological) */
.about__content [data-words] .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  transition-delay: calc(min(var(--i, 0), 70) * 30ms);
  will-change: opacity, transform;
}
.about__content.is-visible [data-words] .word {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .about__content [data-words] .word {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========= PROCESS ========= */
.process { background: var(--bg-2); }
.process__list {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 700px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process__list { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.process__step {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
}
.process__num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: .14em;
  margin-bottom: 10px;
}
.process__step h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
  color: var(--text);
}
.process__step p {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.65;
}

/* ========= PROJECTS (homepage grid) ========= */
.projects { background: #fff; }
.projects__filters,
.projects-list__filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  background: #fff;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  font-size: 0.875rem; font-weight: 600;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.projects__grid,
.projects-list__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 700px) { .projects__grid, .projects-list__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .projects__grid, .projects-list__grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--text);
}
.card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__caption { padding: 18px 20px 22px; }
.card__caption h3 {
  font-size: 1.0625rem;
  margin: 0 0 6px;
  color: var(--text);
}
.card__caption p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

/* ========= PROJECTS — homepage CTA ========= */
.projects__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.projects__cta p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-dim);
}

/* ========= GALLERY STRIP — rotating photo marquee ========= */
.gallery-strip {
  background: var(--bg-2);
  padding-block: 64px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.gallery-strip .section-head {
  padding-inline: var(--pad-x);
  margin-bottom: 32px;
}
.gallery-strip__viewport {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.gallery-strip__viewport.is-dragging { cursor: grabbing; }
.gallery-strip__track {
  display: flex;
  width: max-content;
  gap: 18px;
  will-change: transform;
}
.gallery-strip__item {
  flex: 0 0 auto;
  width: clamp(220px, 30vw, 360px);
  aspect-ratio: 4/3;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.gallery-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* ========= TESTIMONIALS ========= */
.testimonials { background: var(--bg-2); }
.testimonials__viewport {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  /* Soft fade at both edges so cards drift in/out elegantly */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.testimonials__viewport.is-dragging { cursor: grabbing; }
.testimonials__track {
  display: flex;
  width: max-content;
  gap: 16px;
  will-change: transform;
}
.testi {
  flex: 0 0 min(420px, 86vw);
  padding: 28px 26px 26px;
  display: grid;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
@media (min-width: 700px) {
  .testi { padding: 32px 30px 28px; }
}
.testi__quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: .6;
  color: var(--gold);
  font-weight: 700;
  height: 24px;
}
.testi p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text-2);
  margin: 0;
  font-weight: 500;
}
.testi footer {
  display: grid;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.testi footer strong {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}
.testi footer span {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.testimonials__nav {
  display: flex; gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.round-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  display: grid; place-items: center;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.round-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.round-btn svg { width: 18px; height: 18px; }

/* ========= FAQ ========= */
.faq { background: #fff; }
.faq__wrap { max-width: 840px; margin: 0 auto; }
.faq__list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open],
.faq__item:hover { border-color: var(--accent); }
.faq__item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  list-style: none;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  margin-inline-start: auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .25s ease;
  line-height: 1;
}
.faq__item[open] summary::after { content: "−"; }
.faq__item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ========= CTA strip ========= */
.cta {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  text-align: center;
}
.cta__wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 18px; }
.cta__title {
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}
.cta__title .is-serif { color: var(--gold); font-family: var(--font-sans); font-style: normal; font-weight: 800; }
.cta p {
  margin: 0;
  color: rgba(244,236,219,.78);
  font-size: 1rem;
}
.cta__buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.4);
}
.cta .btn--ghost:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.cta .btn--primary {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.cta .btn--primary:hover { background: var(--gold-soft); color: var(--accent-deep); border-color: var(--gold-soft); }

/* ========= CONTACT ========= */
.contact { background: var(--bg-2); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.contact__info { display: grid; gap: 16px; align-content: start; }
.contact__details {
  list-style: none; padding: 0; margin: 8px 0 0;
  display: grid; gap: 10px;
}
.contact__details li {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 8px;
  flex-shrink: 0;
}
.contact__icon svg { width: 20px; height: 20px; }
.contact__details li > div { display: grid; gap: 2px; min-width: 0; }
.contact__details li > div > span:first-child {
  font-size: 0.6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
}
.contact__details li a,
.contact__details li p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 600;
}
.contact__details li a:hover { color: var(--accent); }

.contact__social {
  display: flex; gap: 8px;
  margin-top: 6px;
}
.contact__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.contact__social a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.contact__social a svg { width: 18px; height: 18px; }

/* Brand-colored contact icons (centered) */
.contact__social--brand {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
  flex-wrap: wrap;
}
.contact__social--brand .contact__social-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 0;
  background: #888;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.35);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), filter .2s ease;
}
.contact__social--brand .contact__social-btn svg {
  width: 26px;
  height: 26px;
}
.contact__social--brand .contact__social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -12px rgba(0,0,0,.45);
  filter: brightness(1.05);
}
.contact__social-btn--whatsapp { background: #25D366; }
.contact__social-btn--phone    { background: #1A73E8; }
.contact__social-btn--mail     { background: #EA4335; }

/* Contact form */
.contact__form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: grid;
  gap: 14px;
}
@media (min-width: 700px) {
  .contact__form { padding: 32px 28px; }
}
.field { position: relative; }
.field--2 { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 0; background: transparent; border: 0; }
@media (min-width: 600px) { .field--2 { grid-template-columns: 1fr 1fr; } }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 14px 14px 8px;
  font: inherit;
  color: var(--text);
  transition: border-color .2s ease, box-shadow .2s ease;
  min-height: 52px;
}
.field textarea { min-height: 120px; resize: vertical; padding-top: 18px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field label {
  position: absolute;
  inset-inline-start: 14px;
  top: 14px;
  font-size: 0.9375rem;
  color: var(--text-mute);
  pointer-events: none;
  background: #fff;
  padding: 0 4px;
  transition: top .2s ease, font-size .2s ease, color .2s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field select:valid + label,
.field select:focus + label {
  top: -8px;
  font-size: 0.6875rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
}
.field-note {
  font-size: 0.75rem;
  color: var(--text-mute);
  margin: 0;
  text-align: center;
}
.field-note a { color: var(--accent); text-decoration: underline; }
.form-ok {
  background: rgba(22,163,74,.08);
  color: var(--success);
  border: 1px solid rgba(22,163,74,.3);
  border-radius: 6px;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

/* ========= FOOTER ========= */
.footer {
  background: var(--bg-deep);
  color: var(--text-on-dark);
  padding: 56px 0 0;
}
.footer__grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(244,236,219,.1);
}
@media (min-width: 700px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
}
.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.footer__brand p {
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: rgba(244,236,219,.7);
  line-height: 1.7;
}
.footer__links {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
  font-size: 0.9rem;
}
.footer__links li,
.footer__links a {
  color: rgba(244,236,219,.72);
}
.footer__links a:hover { color: var(--gold); }
.footer__social {
  margin-top: 14px;
}
.footer__social a {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.footer__social a:hover { background: var(--gold); color: var(--accent-deep); border-color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 22px 0 14px;
  font-size: 0.8125rem;
  color: rgba(244,236,219,.55);
}
.footer__legal {
  display: flex; flex-wrap: wrap;
  gap: 18px;
  padding-bottom: 28px;
  font-size: 0.8125rem;
}
.footer__legal a {
  color: rgba(244,236,219,.65);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer__legal a:hover { color: #fff; }

/* ========= Floating WhatsApp & back-to-top ========= */
.wa {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 24px;
  z-index: 200;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 14px 30px -8px rgba(0,0,0,.45), 0 8px 22px -8px rgba(37,211,102,.55);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255,255,255,.3), 0 18px 36px -10px rgba(37,211,102,.7); }
.wa svg { width: 28px; height: 28px; }
.wa__label { display: none; }
.wa__pulse { display: none; }

.to-top {
  position: fixed;
  bottom: 88px;
  inset-inline-start: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s ease, color .2s ease;
  z-index: 94;
  box-shadow: var(--shadow-sm);
}
.to-top.is-visible { opacity: 1; transform: none; visibility: visible; }
.to-top:hover { background: var(--accent); color: #fff; }
.to-top svg { width: 18px; height: 18px; }

/* Custom cursor turned off — hide if present */
.cursor { display: none !important; }

/* ========= SUB-HERO (inner pages) ========= */
.subhero {
  padding: calc(var(--nav-h) + 16px) 0 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.subhero__inner { display: grid; gap: 10px; }
.projects-list.section { padding-block: 32px; }
@media (min-width: 900px) { .projects-list.section { padding-block: 48px; } }
.projects-list .section-head { margin-bottom: 24px; }
.subhero h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.subhero h1 .is-serif.is-accent {
  color: var(--accent);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 800;
}
.subhero p {
  color: var(--text-dim);
  max-width: 760px;
  margin: 0;
  line-height: 1.8;
}
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.crumbs a { color: var(--accent); }
.crumbs .sep { color: var(--text-mute); }

/* ========= PROJECT CARD (project list) ========= */
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.project-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.project-card__media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__count {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  background: rgba(20,35,58,.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
}
.project-card__body { padding: 18px 20px 22px; display: grid; gap: 8px; flex: 1; }
.project-card__tag {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.project-card__body h3 { font-size: 1.0625rem; margin: 0; color: var(--text); }
.project-card__sum {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.65;
}
.project-card__meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: 4px;
}
.project-card__cta {
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  width: auto;
}
.project-card__cta svg {
  width: 16px;
  height: 16px;
}

.project-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

/* ========= PROJECT DETAIL ========= */
.project-detail { background: #fff; }
.project-detail__top {
  display: grid; gap: 18px;
  padding: calc(var(--nav-h) + 32px) 0 28px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.project-detail__top h1 {
  font-size: var(--fs-h1);
  font-weight: 800;
  color: var(--text);
}
.project-detail__intro {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 760px;
  margin: 0;
}
.project-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 12px 0 0;
}
@media (min-width: 700px) { .project-meta { grid-template-columns: repeat(3, 1fr); } }
.project-meta__item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .project-meta__item { border-bottom: 0; border-inline-end: 1px solid var(--line); }
  .project-meta__item:last-child { border-inline-end: 0; }
}
.project-meta__item:last-child { border-bottom: 0; }
.project-meta__item span {
  display: block;
  font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 700;
  margin-bottom: 4px;
}
.project-meta__item strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
  font-weight: 700;
}

.project-highlights {
  background: var(--bg-2);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  margin: 24px 0;
}
.project-highlights h2 { font-size: 1.125rem; margin-bottom: 14px; }
.project-highlights ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
}
.project-highlights li {
  display: flex; gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.project-highlights li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.gallery__item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-3);
  cursor: zoom-in;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }

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

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(20,35,58,.92);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.lightbox.is-open { display: flex; }
.lightbox-open { overflow: hidden; }
.lightbox__stage {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.lightbox__img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
}
.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--accent);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,.3);
  transition: background .2s ease, transform .2s ease;
}
.lightbox__btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__btn--prev { inset-inline-end: -8px; }
.lightbox__btn--next { inset-inline-start: -8px; }
.lightbox__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--text);
  display: grid; place-items: center;
}
.lightbox__close:hover { background: #fff; }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__counter {
  position: absolute;
  bottom: -32px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 0.875rem;
}

/* ========= 404 / error ========= */
.error-hero {
  min-height: calc(100svh - var(--nav-h));
  display: grid; place-items: center;
  background: var(--bg-2);
  text-align: center;
  padding: calc(var(--nav-h) + 32px) 20px 60px;
}
.error-hero__inner { max-width: 640px; display: grid; gap: 18px; }
.error-hero__code {
  font-size: clamp(4rem, 14vw, 7rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0;
}
.error-hero__title {
  font-size: var(--fs-h2);
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.error-hero__lede { color: var(--text-dim); margin: 0; }
.error-hero__cta {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-top: 8px;
}

/* ========= LEGAL pages (privacy / terms / accessibility) ========= */
.legal { background: #fff; }
.legal-prose {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  padding: 0;
  color: var(--text-2);
}
.legal-prose h1 {
  font-size: var(--fs-h1);
  margin-bottom: 8px;
}
.legal-prose h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.legal-prose h2:first-of-type { padding-top: 0; border-top: 0; margin-top: 18px; }
.legal-prose h3 {
  font-size: 1.125rem;
  margin: 22px 0 8px;
  color: var(--text);
}
.legal-prose p,
.legal-prose li {
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--text-2);
}
.legal-prose ul,
.legal-prose ol {
  padding-inline-start: 22px;
  margin: 10px 0;
}
.legal-prose ul li::marker { color: var(--accent); }
.legal-prose ol li::marker { color: var(--accent); font-weight: 700; }
.legal-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-prose a:hover { color: var(--accent-hover); }
.legal-prose strong { color: var(--text); }
.legal-prose dl {
  display: grid;
  gap: 6px;
  margin: 14px 0;
}
.legal-prose dl div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.legal-prose dt {
  font-weight: 700;
  color: var(--text);
}
.legal-prose dd {
  margin: 0;
}
.legal-prose dd a { color: var(--accent); }
.legal-prose dd a:hover { color: var(--accent-hover); }

.legal-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-dim);
  margin: 16px 0 24px;
}
.legal-meta span { display: inline-flex; gap: 6px; }
.legal-meta strong { color: var(--text); font-weight: 700; }

.legal-toc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 28px;
  counter-reset: toc;
}
.legal-toc h3 { color: var(--accent); margin-bottom: 10px; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: .12em; }
.legal-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  display: grid; gap: 6px;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: inline-flex;
  gap: 8px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
}
.legal-toc a::before {
  content: counter(toc, decimal) ".";
  color: var(--accent);
  font-weight: 700;
  min-width: 22px;
}
.legal-toc a:hover { color: var(--accent); }

/* ========= Reveal animations (subtle) ========= */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
[data-reveal="right"] { transform: translateX(20px); }
[data-reveal="left"]  { transform: translateX(-20px); }
[data-reveal="right"].is-visible,
[data-reveal="left"].is-visible { transform: none; }

/* ========= Accessibility toolbar (kept) ========= */
.a11y {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  z-index: 1000;
  font-family: var(--font-sans);
}
.a11y__trigger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  padding: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.22), 0 12px 26px -8px rgba(0,0,0,.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.a11y__trigger svg { width: 24px; height: 24px; flex-shrink: 0; display: block; }
.a11y__trigger-label {
  position: absolute;
  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;
}
.a11y__trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.a11y__trigger:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 18px 36px -10px rgba(31,58,95,.7);
}
.a11y__panel {
  position: absolute;
  bottom: calc(100% + 12px); inset-inline-end: 0;
  width: min(340px, calc(100vw - 36px));
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.3);
  padding: 18px;
  border: 1px solid var(--line);
  display: grid; gap: 14px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.a11y__panel.is-open { transform: none; opacity: 1; pointer-events: auto; }
.a11y__head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.a11y__head h2 { font-size: 1rem; font-weight: 800; color: var(--text); margin: 0; }
.a11y__close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 6px;
  color: var(--text);
}
.a11y__close:hover { background: var(--bg-2); }
.a11y__close svg { width: 18px; height: 18px; }
.a11y__group { display: grid; gap: 8px; }
.a11y__label {
  font-size: 0.6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 700;
}
.a11y__row {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-2);
  border-radius: 8px;
  padding: 6px;
}
.a11y__btn {
  width: 38px; height: 38px;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  font-weight: 700; font-size: 1.125rem;
  display: grid; place-items: center;
}
.a11y__btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.a11y__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a11y__readout {
  flex: 1; text-align: center;
  font-weight: 700; font-size: 0.875rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.a11y__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.a11y__opt {
  display: grid; grid-template-columns: 28px 1fr;
  align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-2);
  color: var(--text);
  border-radius: 8px;
  font-size: 0.8125rem; font-weight: 600;
  text-align: start;
  border: 2px solid transparent;
  min-height: 46px;
}
.a11y__opt:hover { background: var(--accent-soft); }
.a11y__opt[aria-pressed="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.a11y__opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.a11y__opt-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: grid; place-items: center;
  background: #fff;
  color: var(--accent);
  font-weight: 700; font-size: 0.875rem;
}
.a11y__opt[aria-pressed="true"] .a11y__opt-icon { background: rgba(255,255,255,.18); color: #fff; }
.a11y__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  font-size: 0.8125rem;
}
.a11y__reset {
  color: var(--accent);
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
}
.a11y__reset:hover { background: var(--accent-soft); }
.a11y__statement { color: var(--text); text-decoration: underline; font-weight: 600; }
.a11y__statement:hover { color: var(--accent); }

/* WhatsApp & to-top sit on the start; A11y on the end side. Keep clear. */
@media (max-width: 640px) {
  .wa { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
  .to-top { bottom: 80px; inset-inline-start: 18px; }
  .a11y { bottom: 18px; inset-inline-end: 18px; }
  .a11y__trigger { width: 48px; height: 48px; }
}

/* ========= Accessibility modes ========= */
html.a11y-high-contrast,
html.a11y-high-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-high-contrast a,
html.a11y-high-contrast .nav__list a,
html.a11y-high-contrast .footer__links a,
html.a11y-high-contrast h1,
html.a11y-high-contrast h2,
html.a11y-high-contrast h3,
html.a11y-high-contrast h4,
html.a11y-high-contrast p,
html.a11y-high-contrast li,
html.a11y-high-contrast span,
html.a11y-high-contrast label,
html.a11y-high-contrast strong,
html.a11y-high-contrast em,
html.a11y-high-contrast dt,
html.a11y-high-contrast dd,
html.a11y-high-contrast summary { color: #fff !important; }
html.a11y-high-contrast .is-accent,
html.a11y-high-contrast .accent,
html.a11y-high-contrast .eyebrow { color: #ffd24a !important; background: transparent !important; }
html.a11y-high-contrast a:not(.btn):not(.logo) { color: #ffd24a !important; text-decoration: underline !important; }
html.a11y-high-contrast .btn--primary { background: #ffd24a !important; color: #000 !important; border: 2px solid #000 !important; }
html.a11y-high-contrast .btn--ghost,
html.a11y-high-contrast .chip { background: #000 !important; border-color: #fff !important; color: #fff !important; }
html.a11y-high-contrast .service,
html.a11y-high-contrast .card,
html.a11y-high-contrast .testi,
html.a11y-high-contrast .stat,
html.a11y-high-contrast .faq__item,
html.a11y-high-contrast .contact__details li,
html.a11y-high-contrast .contact__form,
html.a11y-high-contrast .field input,
html.a11y-high-contrast .field textarea,
html.a11y-high-contrast .field select,
html.a11y-high-contrast .project-card,
html.a11y-high-contrast .project-meta,
html.a11y-high-contrast .gallery__item,
html.a11y-high-contrast .project-highlights,
html.a11y-high-contrast .legal-prose,
html.a11y-high-contrast .header,
html.a11y-high-contrast .testimonials__viewport {
  background: #000 !important;
  border-color: #fff !important;
  color: #fff !important;
}
html.a11y-high-contrast .hero,
html.a11y-high-contrast .subhero,
html.a11y-high-contrast .about,
html.a11y-high-contrast .services,
html.a11y-high-contrast .process,
html.a11y-high-contrast .projects,
html.a11y-high-contrast .testimonials,
html.a11y-high-contrast .faq,
html.a11y-high-contrast .stats,
html.a11y-high-contrast .cta,
html.a11y-high-contrast .contact,
html.a11y-high-contrast .footer,
html.a11y-high-contrast .legal { background: #000 !important; }

html.a11y-invert { filter: invert(100%) hue-rotate(180deg); background: #fff; }
html.a11y-invert img,
html.a11y-invert video,
html.a11y-invert svg.preserve { filter: invert(100%) hue-rotate(180deg); }

html.a11y-grayscale { filter: grayscale(100%); }
html.a11y-grayscale.a11y-invert { filter: grayscale(100%) invert(100%) hue-rotate(180deg); }

html.a11y-readable,
html.a11y-readable body,
html.a11y-readable * {
  font-family: 'Heebo', 'Arial', 'Segoe UI', sans-serif !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: 1.85 !important;
}
html.a11y-no-motion,
html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-big-cursor,
html.a11y-big-cursor body,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path fill='%23000' stroke='%23fff' stroke-width='1.5' d='M4 2 L4 26 L11 19 L15 28 L19 26 L15 17 L24 17 Z'/></svg>") 4 2, auto !important;
}
html.a11y-links a:not(.btn):not(.logo) {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  color: var(--accent) !important;
  font-weight: 700 !important;
}

/* ========= Blog post body typography =========
   Targets long-form article bodies in /blog where content is written
   as plain h2/p/ul/ol inside a max-width container. */
main > article.subhero ~ section .container > h2,
main > article.subhero ~ section .container > h3,
main > article.subhero ~ section .container > p,
main > article.subhero ~ section .container > ul,
main > article.subhero ~ section .container > ol {
  color: var(--text-2);
}
main > article.subhero ~ section .container > h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 32px 0 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  line-height: 1.3;
}
main > article.subhero ~ section .container > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
main > article.subhero ~ section .container > h3 {
  font-size: 1.125rem;
  margin: 22px 0 8px;
  color: var(--text);
}
main > article.subhero ~ section .container > p {
  font-size: 1rem;
  line-height: 1.85;
  margin: 0 0 14px;
}
main > article.subhero ~ section .container > ul,
main > article.subhero ~ section .container > ol {
  padding-inline-start: 22px;
  margin: 0 0 16px;
}
main > article.subhero ~ section .container > ul li,
main > article.subhero ~ section .container > ol li {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 6px;
}
main > article.subhero ~ section .container > ul li::marker { color: var(--accent); }
main > article.subhero ~ section .container > ol li::marker { color: var(--accent); font-weight: 800; }
main > article.subhero ~ section .container > p strong,
main > article.subhero ~ section .container > ul li strong,
main > article.subhero ~ section .container > ol li strong {
  color: var(--text);
  font-weight: 700;
}

/* ========= Motion polish ========= */

/* Page fade in/out */
body {
  opacity: 0;
  animation: page-in .5s var(--ease-out) forwards;
}
body.is-leaving {
  animation: page-out .25s ease forwards;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes page-out {
  to { opacity: 0; transform: translateY(-4px); }
}

/* Animated underline on desktop nav links */
.nav__list a {
  position: relative;
}
.nav__list a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: inline-end;
  transition: transform .35s var(--ease-out);
}
.nav__list a:hover::after,
.nav__list a.is-active::after,
.nav__list a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: inline-start;
}

/* Mobile nav stagger entrance */
.mobile-nav ul li {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
  transition-delay: 0s;
}
.mobile-nav[data-open="true"] ul li {
  opacity: 1;
  transform: none;
}
.mobile-nav[data-open="true"] ul li:nth-child(1) { transition-delay: .06s; }
.mobile-nav[data-open="true"] ul li:nth-child(2) { transition-delay: .10s; }
.mobile-nav[data-open="true"] ul li:nth-child(3) { transition-delay: .14s; }
.mobile-nav[data-open="true"] ul li:nth-child(4) { transition-delay: .18s; }
.mobile-nav[data-open="true"] ul li:nth-child(5) { transition-delay: .22s; }
.mobile-nav[data-open="true"] ul li:nth-child(6) { transition-delay: .26s; }
.mobile-nav .btn--primary {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease-out) .32s, transform .4s var(--ease-out) .32s;
}
.mobile-nav[data-open="true"] .btn--primary {
  opacity: 1;
  transform: none;
}

/* Reveal stagger via CSS variable set in JS */
[data-reveal] {
  transition-delay: var(--reveal-delay, 0s);
}

/* Project card hover lift */
.project-card {
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -22px rgba(0,0,0,.30);
}

/* Button press feedback */
.btn:active { transform: translateY(1px) scale(.98); }

/* Subtle CTA arrow drift */
.project-card__cta svg {
  transition: transform .3s var(--ease-out);
}
.project-card:hover .project-card__cta svg {
  transform: translateX(-4px);
}

/* Logo gentle hover */
.logo {
  transition: transform .35s var(--ease-out);
}
.logo:hover { transform: translateY(-1px); }

/* Header elevates on scroll */
.header {
  transition: box-shadow .3s ease, background .3s ease, backdrop-filter .3s ease;
}
.header.is-scrolled {
  box-shadow: 0 6px 24px -16px rgba(0,0,0,.18);
}

@media (prefers-reduced-motion: reduce) {
  body, body.is-leaving { animation: none; opacity: 1; }
  .mobile-nav ul li, .mobile-nav .btn--primary { opacity: 1; transform: none; transition: none; }
  .project-card:hover { transform: none; }
}

/* Tighter section transitions per design feedback */
.testimonials.section { padding-block-start: 36px; }
.projects.section { padding-block-end: 32px; }
.faq.section { padding-block-start: 36px; }

/* ========= Print ========= */
@media print {
  .header, .wa, .to-top, .a11y, .scroll-progress, .preloader, .footer__legal, .cursor { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
