:root {
  --concrete: #E4E5E3;
  --chalk: #F4F4F2;
  --navy: #0A1730;
  --steel: #5B6270;
  --gold: #B08D4F;
  --gold-hover: #C29D5D;

  --font: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1360px;
  --header-h: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  background: var(--concrete);
  color: var(--navy);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--focus, var(--navy)); outline-offset: 3px; }
.hero, .journey, .lightbox, .site-footer, .mobile-bar { --focus: var(--gold); }
::selection { background: var(--navy); color: var(--chalk); }
html { accent-color: var(--navy); caret-color: var(--navy); scrollbar-color: var(--steel) var(--concrete); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

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

.skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 30;
  background: var(--navy); color: var(--chalk); padding: .75rem 1rem;
}
.skip:focus { top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.25rem;
  font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-lg { min-height: 56px; padding-inline: 2rem; font-size: 1.125rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--chalk);
  border-bottom: 1px solid rgb(10 23 48 / .08);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 2rem; }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 40px; width: auto; mix-blend-mode: multiply; }
.site-nav { display: flex; align-items: center; gap: 2.25rem; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; padding-block: .75rem;
  background: linear-gradient(var(--gold), var(--gold)) no-repeat right bottom / 0 1px;
  transition: background-size .3s var(--ease);
}
.site-nav a:not(.btn):hover { background-size: 100% 1px; }
.menu-toggle { display: none; }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: flex-end;
  color: var(--chalk); background: var(--navy);
}
.hero-poster, .hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-poster { object-fit: cover; }
/* The video stays invisible (with any native play button) until it really plays; blocked autoplay shows only the photo. */
.js .hero-media { opacity: 0; transition: opacity .8s var(--ease); }
.js .hero-media.is-playing { opacity: 1; }
.hero-media { object-fit: cover; }
/* iOS shows a big play button when autoplay is blocked (Low Power Mode). Show the clean poster instead. */
.hero-media::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.hero-media::-webkit-media-controls { display: none !important; }
.hero-shade { background: linear-gradient(to top, rgb(10 23 48 / .82), rgb(10 23 48 / .35) 55%, rgb(10 23 48 / .2)); }
.hero-content { padding-block: 4rem clamp(3rem, 9vh, 6.5rem); }
.hero-title { font-size: clamp(2.6rem, 7.2vw, 6rem); max-width: 12ch; }
.hero-sub { font-size: clamp(1.0625rem, 1.6vw, 1.3rem); max-width: 34ch; margin-block: 1.25rem 2.25rem; color: rgb(244 244 242 / .88); }

@media (prefers-reduced-motion: no-preference) {
  .hero-title, .hero-sub { animation: rise .7s var(--ease) both; }
  .hero-sub { animation-delay: .12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Journey: skeleton to finish */
.journey { --p: 1; position: relative; height: 250dvh; background: var(--navy); }
.journey-stage { position: sticky; top: 0; height: 100dvh; overflow: hidden; color: var(--chalk); }
.journey-frame { position: absolute; inset: 0; }
.journey-frame img { width: 100%; height: 100%; object-fit: cover; }
.journey-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 23 48 / .6), rgb(10 23 48 / .25) 45%); }
/* Images crossfade between 15% and 85% of the scroll; words never show together. */
.journey-after { opacity: clamp(0, calc((var(--p) - .15) / .7), 1); }
.journey-word-before { opacity: clamp(0, calc(1 - var(--p) * 2.5), 1); transform: translateY(calc(var(--p) * -40px)); }
.journey-word-after { opacity: clamp(0, calc((var(--p) - .6) * 2.5), 1); transform: translateY(calc((1 - var(--p)) * 40px)); }
.journey-word {
  position: absolute; z-index: 1;
  inset-inline-start: var(--gutter); top: calc(var(--header-h) + 4vh);
  font-size: clamp(5rem, 19vw, 17rem); font-weight: 700; line-height: .9; letter-spacing: -0.03em;
}
.journey-caption {
  position: absolute; z-index: 1;
  inset-inline-start: var(--gutter); bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: 26ch; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.4;
}
.journey-caption::before { content: ""; display: block; width: 56px; height: 1px; background: var(--gold); margin-bottom: 1.25rem; }

/* The owner chose to keep the skeleton-to-finish transition even with "Reduce Motion" enabled. */

/* Shared section rhythm */
.section-title { font-size: clamp(2.25rem, 5vw, 4rem); margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* Services */
.services { background: var(--chalk); padding-block: clamp(5rem, 12vw, 9rem); }
.services-list { list-style: none; padding: 0; border-top: 1px solid rgb(10 23 48 / .14); }
.service { padding-block: 1.75rem; border-bottom: 1px solid rgb(10 23 48 / .14); outline-offset: -2px; }
.service h3 { font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.1; }
.service p { color: var(--steel); margin-top: .5rem; max-width: 40ch; }
.service-img { margin-top: 1.25rem; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.services-types { margin-top: 2.5rem; font-weight: 500; font-size: 1.25rem; }
.services-panel { display: none; }

@media (hover: hover) and (min-width: 1024px) {
  .services-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .service { cursor: default; transition: padding .3s var(--ease); }
  .service h3 { color: rgb(10 23 48 / .62); transition: color .3s var(--ease); }
  .service.is-active h3 { color: var(--navy); }
  .service.is-active { padding-inline-start: 1rem; }
  .service-img { display: none; }
  .services-panel {
    display: block; position: sticky; top: calc(var(--header-h) + 2rem);
    aspect-ratio: 4 / 5; overflow: hidden; background: var(--concrete);
  }
  .services-panel img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .3s var(--ease);
  }
  .services-panel img.is-active { opacity: 1; }
}

/* Projects carousel */
.projects { padding-block: clamp(5rem, 12vw, 9rem); overflow: hidden; }
.projects-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
.projects-head .section-title { margin-bottom: 1rem; }
.projects-lead { color: var(--steel); max-width: 44ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.carousel-nav { display: flex; gap: .5rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.car-btn {
  min-width: 44px; min-height: 44px; padding: .55rem 1.25rem;
  background: none; border: 1px solid rgb(10 23 48 / .3); font-weight: 500; cursor: pointer;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.car-btn:hover:not(:disabled) { border-color: var(--navy); }
.car-btn:disabled { opacity: .35; cursor: default; }

.gallery {
  list-style: none; margin: 0; padding: 0 var(--gutter) .75rem;
  display: flex; gap: .75rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  /* "mandatory" froze Chrome's renderer here (RTL + start padding); proximity still settles on a photo. */
  scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: thin;
  /* Align the first photo with the page content on wide screens. */
  padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  scroll-padding-inline-start: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.gallery:focus-visible { outline-offset: -2px; }
.gallery li {
  flex: 0 0 auto; scroll-snap-align: start;
  height: clamp(340px, 62vh, 600px); aspect-ratio: 3 / 4; max-width: 82vw;
}
.gallery li.g-wide { aspect-ratio: 3 / 2; max-width: 88vw; }
.gallery button { display: block; width: 100%; height: 100%; padding: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--steel); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
@media (max-width: 767px) {
  .gallery li { height: min(68vh, 108vw); }
  .carousel-nav { display: none; }
}

/* Lightbox */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
  padding: 0; border: 0; background: rgb(10 23 48 / .96); color: var(--chalk);
}
.lightbox::backdrop { background: rgb(10 23 48 / .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox-img { max-width: calc(100vw - 2 * var(--gutter)); max-height: calc(100dvh - 9rem); object-fit: contain; touch-action: pan-y; user-select: none; }
.lb-btn {
  position: absolute; min-width: 44px; min-height: 44px; padding: .5rem 1rem;
  background: none; border: 1px solid rgb(244 244 242 / .35); color: var(--chalk); cursor: pointer;
  transition: border-color .2s var(--ease);
}
.lb-btn:hover { border-color: var(--gold); }
.lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb-prev { bottom: 1.5rem; inset-inline-start: var(--gutter); }
.lb-next { bottom: 1.5rem; inset-inline-end: var(--gutter); }
@media (prefers-reduced-motion: no-preference) {
  .lightbox[open] .lightbox-img { animation: lb-in .2s var(--ease); }
}
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } }

/* Process */
.process { background: var(--chalk); padding-block: clamp(5rem, 12vw, 9rem); }
.steps { list-style: none; padding: 0; display: grid; gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--gold); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step); display: block;
  font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; line-height: 1; color: var(--steel); margin-bottom: 1.5rem;
}
.steps h3 { font-size: 1.375rem; }
.steps p { color: var(--steel); margin-top: .5rem; max-width: 30ch; }
.steps strong { color: var(--navy); font-weight: 700; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 3rem 2.5rem; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Contact */
.contact { padding-block: clamp(5rem, 12vw, 9rem); }
.contact-grid { display: grid; gap: 3rem; }
.contact-lead { font-size: 1.25rem; max-width: 34ch; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.5rem; }
.contact-phone { font-size: 1.75rem; font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.contact-phone:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.contact-area { margin-top: 1.5rem; color: var(--steel); }

/* Footer */
.site-footer { background: var(--navy); color: rgb(244 244 242 / .8); padding-block: 2.5rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.5rem; }
.footer-logo { background: var(--chalk); padding: .6rem .9rem; }
.footer-logo img { height: 34px; width: auto; mix-blend-mode: multiply; }
.site-footer a { color: var(--chalk); text-decoration: none; font-weight: 500; }
.site-footer p { margin-inline-start: auto; font-size: .9375rem; }
@media (max-width: 767px) { .site-footer p { margin-inline-start: 0; width: 100%; } }

/* Mobile contact bar */
.mobile-bar { display: none; }

@media (max-width: 767px) {
  :root { --header-h: 64px; }
  .brand img { height: 34px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .menu-toggle-bars, .menu-toggle-bars::before {
    display: block; width: 22px; height: 2px; background: var(--navy); position: relative;
    transition: transform .25s var(--ease);
  }
  .menu-toggle-bars::before { content: ""; position: absolute; top: 7px; }
  .menu-toggle-bars { transform: translateY(-3.5px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(-7px) rotate(-90deg); }

  .site-nav {
    position: absolute; inset-inline: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--chalk); padding: .5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid rgb(10 23 48 / .08);
  }
  .site-nav:not(.is-open) { display: none; }
  .site-nav a:not(.btn) { font-size: 1.25rem; padding-block: .9rem; border-bottom: 1px solid rgb(10 23 48 / .08); background: none; }
  .site-nav .btn { margin-top: 1.25rem; }

  /* Keep hero CTA and journey caption above the fixed contact bar. */
  .hero-content { padding-bottom: calc(56px + env(safe-area-inset-bottom) + 2.5rem); }
  .journey-caption { bottom: calc(56px + env(safe-area-inset-bottom) + 2rem); }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--navy);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; min-height: 56px;
    color: var(--chalk); text-decoration: none; font-weight: 500;
  }
  .mobile-bar a + a { background: var(--gold); color: var(--navy); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
