/* TR Topolski — story sections below the hero.
   Continues the hero's language: gold micro-eyebrow at wide tracking, very
   light large Hebrew display, hairline gold rules, generous vertical air. */

:root {
  --shell: 1280px;
  --shell-narrow: 820px;
  /* Three distinct rhythms. Everything used to share one value, so every
     boundary landed with identical weight and the page read as a stack of
     equal slabs rather than a sequence. */
  --gap-section: clamp(84px, 10vh, 148px);    /* between story sections */
  --gap-media: clamp(56px, 7vh, 104px);       /* between adjacent media  */
  --gap-inner: clamp(32px, 4.5vh, 64px);      /* inside a section        */
  --line: rgba(199, 165, 126, 0.22);
}

/* The hero canvas is position:fixed. This block is opaque and sits above it,
   so the story scrolls up over the frame sequence instead of compositing
   with it. */
.page-flow {
  position: relative;
  z-index: 6;
  background: var(--ink);
}

/* Once the journey is over, the hero's own chrome must not float above the
   story. hero.js sets .past-hero on <body> when the scroll track is behind us. */
.chapter-rail,
.captions,
.scroll-cue {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

body.past-hero .chapter-rail,
body.past-hero .captions,
body.past-hero .scroll-cue {
  opacity: 0;
  visibility: hidden;
}

/* Header goes from gradient-over-photo to solid once it is over content. */
body.past-hero .site-header {
  /* No backdrop-filter here. A blur on a fixed bar re-composites the strip
     behind it on every scrolled frame, and the header sits over the whole
     page. An opaque fill costs nothing and looks the same over near-black. */
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid rgba(199, 165, 126, 0.14);
}

.shell {
  width: min(100% - clamp(36px, 8vw, 128px), var(--shell));
  margin-inline: auto;
}

.shell--narrow {
  max-width: var(--shell-narrow);
}

.section {
  padding-block: var(--gap-section);
}

/* These end on full-bleed media, which carries its own weight — a full
   section pad underneath would read as a dead gap. */
.section--projects,
.section--showrooms {
  padding-block-end: 0;
}

/* ---------- shared type ---------- */

.eyebrow {
  display: block;
  margin-block-end: 18px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: var(--gold);
}

/* Default is start-aligned (right, in RTL). A page where every heading is
   centred has no reading direction — the eye has nowhere to enter. One
   section stays centred on purpose, as a change of pace. */
.section__head {
  margin-block-end: var(--gap-inner);
}

.section__head--center {
  text-align: center;
}

.section__head--center .section__lead {
  margin-inline: auto;
}

.section__head--sub {
  margin-block-end: calc(var(--gap-inner) * 0.5);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  margin-inline-end: 12px;
  vertical-align: middle;
  background: var(--gold);
  opacity: 0.55;
}

.section__head--center .eyebrow::before {
  display: none;
}

.section__lead {
  max-width: 46ch;
  margin: clamp(18px, 2.4vh, 28px) 0 0;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(244, 241, 236, 0.6);
}

.section__title {
  margin: 0;
  font-size: clamp(29px, 4.4vw, 62px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
}

.section__title--en {
  direction: ltr;
  font-weight: 300;
  letter-spacing: 0.01em;
}

.prose {
  max-width: 58ch;
  color: rgba(244, 241, 236, 0.74);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  font-weight: 300;
  line-height: 1.95;
}

.prose p + p {
  margin-block-start: 1.4em;
}

.prose__note {
  margin-block-start: 2em;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-soft);
}

.prose__note::before {
  content: "";
  display: block;
  width: 34px;
  height: 1px;
  margin: 0 0 14px;
  background: var(--line);
}

/* TR STONE is the centred moment, so its prose follows. */
.section--stone .prose {
  margin-inline: auto;
  text-align: center;
}

.section--stone .prose__note::before {
  margin-inline: auto;
}

/* About: heading and body side by side. Two columns give the eye somewhere
   to start and somewhere to go — a single centred column does not. */
.section--about .shell:first-of-type {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.section--about .section__head {
  margin-block-end: 0;
}

/* ---------- marquee ----------
   The track holds two identical halves and slides by exactly one of them, so
   the loop is seamless. sections.js clones the strip until each half is wider
   than the container — otherwise the row runs dry mid-slide.

   direction:ltr belongs on the CONTAINER, not just the track.
   The track is a `width: max-content` box ~6000px wide. Inside an RTL block
   it gets right-aligned, so its left edge starts around -4650px and the
   animation drags it further left until the row is empty. Resetting the
   container's direction anchors the track at x:0. Only images live in here,
   so the reset costs nothing. */
.marquee {
  direction: ltr;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  will-change: transform;
  animation: marquee var(--speed, 60s) linear infinite;
}

.marquee__track--reverse {
  animation-direction: reverse;
}

.marquee__track img {
  display: block;
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  opacity: 0.82;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track {
  animation-play-state: paused;
}

.marquee--suppliers {
  margin-block: clamp(56px, 8vh, 96px);
}

.marquee--suppliers .marquee__track img {
  height: clamp(26px, 2.4vw, 34px);
  margin-inline-end: clamp(48px, 6vw, 96px);
}

.logo-wall {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3.4vh, 42px);
  margin-block-start: var(--gap-media);
  padding-block: clamp(52px, 7vh, 88px);
  border-block: 1px solid var(--line);
}

.logo-wall .marquee__track img {
  height: clamp(48px, 5vw, 74px);
  margin-inline-end: clamp(40px, 5vw, 84px);
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin: 0;
  padding-block: clamp(16px, 3vh, 40px);
  text-align: center;
}

.stat__label {
  font-size: 13px;
  font-weight: 300;
  color: rgba(244, 241, 236, 0.6);
}

.stat__value {
  margin: 6px 0 0;
  font-size: clamp(34px, 4.6vw, 62px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--gold);
  direction: ltr;
}

.stat__note {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 300;
  color: rgba(244, 241, 236, 0.5);
}

.awards {
  margin-block-start: clamp(48px, 7vh, 88px);
  text-align: center;
}

.awards img {
  width: min(100%, 620px);
  opacity: 0.78;
}

/* ---------- film bands ----------
   These used to be identical full-width 558px slabs butted straight against
   each other and against the sections above and below — no gap anywhere, so
   the page read as a filmstrip. Now they alternate weight (a full-bleed
   plate, then an inset one) and always carry air around them. */

/* No own margin. A film sitting next to a section used to add its margin to
   that section's padding, and because both were vh-based the pair ballooned
   on tall screens — over 400px of dead black between TR STONE and the clip
   below it at 1300px viewport height. The neighbouring section's padding is
   the gap; films only space themselves against each other. */
.film {
  position: relative;
  z-index: 1;
  margin: 0;
  line-height: 0;
}

.film + .film {
  margin-block-start: var(--gap-media);
}

.film__frame {
  overflow: hidden;
  background: #000;
}

/* sections.js nudges this as the plate crosses the viewport, so the media
   drifts against the page instead of sitting welded to it.
   will-change is applied only while the plate is on screen — leaving it on
   permanently keeps four oversized video layers composited for the whole
   page, which costs GPU memory the hero's scrub needs. */
.film__video.is-drifting {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .film__video {
    will-change: auto;
    transform: none !important;
  }
}

.film__video {
  display: block;
  width: 100%;
  object-fit: cover;
}

/* the wide plate — edge to edge, tall */
.film--full .film__video {
  height: clamp(320px, 76vh, 840px);
}

/* the quiet one — held inside the text column, shorter, so the two never
   read as the same object */
.film--inset .film__frame {
  width: min(100% - clamp(36px, 8vw, 128px), var(--shell));
  margin-inline: auto;
}

.film--inset .film__video {
  height: clamp(240px, 50vh, 520px);
}

.film__cap {
  width: min(100% - clamp(36px, 8vw, 128px), var(--shell));
  margin: 18px auto 0;
  font-size: 11.5px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.14em;
  color: rgba(244, 241, 236, 0.42);
}

.film__cap::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-inline-end: 10px;
  vertical-align: middle;
  background: var(--gold);
  opacity: 0.5;
}

/* ---------- project gallery ---------- */

/* Photo order is compositional, not textual — the render reads BIG → tower →
   towers → glass → גב ים left to right. An RTL grid flips that, so reset the
   direction here and keep RTL only where words live. */
.gallery {
  direction: ltr;
  margin-block-start: var(--gap-inner);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}

.gallery__item {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.86);
  transform: scale(1.02);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), filter 0.7s ease;
}

.gallery__item:hover img {
  filter: none;
  transform: scale(1.06);
}

/* ---------- showrooms ---------- */

.split {
  /* Same as .gallery: logistics centre sits left, showroom right, as drawn. */
  direction: ltr;
  margin-block-start: var(--gap-inner);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.split__item {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.split__item img {
  display: block;
  width: 100%;
  height: clamp(320px, 56vh, 660px);
  object-fit: cover;
}

.split__cap {
  /* ...but the caption is Hebrew, so put it back. */
  direction: rtl;
  position: absolute;
  inset-inline: clamp(20px, 3vw, 46px);
  inset-block-end: clamp(20px, 3.4vh, 44px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}

.split__cap h3 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.9vw, 27px);
  font-weight: 300;
  color: #fff;
}

.split__cap p {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244, 241, 236, 0.82);
}

.split__item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0) 52%);
}

.split__cap {
  z-index: 2;
}

/* ---------- contact ---------- */

.lead-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: end;
  margin-block-start: clamp(8px, 2vh, 24px);
}

/* Same trap as the skip link: a negative offset widens an RTL document
   instead of hiding the field. Clip it in place. */
.lead-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.field label {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(244, 241, 236, 0.62);
}

.field input {
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  border: 1px solid rgba(244, 241, 236, 0.22);
  border-radius: 0;
  color: #fff;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 300;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.field input:hover {
  border-color: rgba(244, 241, 236, 0.4);
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(199, 165, 126, 0.05);
}

.field input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-block-start: clamp(14px, 2.4vh, 30px);
  padding: 15px 40px;
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background-color 0.32s ease, color 0.32s ease;
}

.btn i {
  font-style: normal;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover,
.btn:focus-visible {
  background: transparent;
  color: var(--gold);
}

.btn:hover i,
.btn:focus-visible i {
  transform: translateX(-5px);
}

.form-note {
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 300;
  text-align: center;
}

.form-note--ok {
  border-color: rgba(199, 165, 126, 0.5);
  color: var(--gold);
}

.form-note--error {
  border-color: rgba(214, 120, 100, 0.5);
  color: #e0a294;
}

.form-note a {
  color: inherit;
  text-decoration: underline;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(64px, 9vh, 112px) clamp(28px, 4vh, 44px);
  border-block-start: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 0.8fr;
  gap: clamp(28px, 4vw, 64px);
}

.fcol__title {
  margin: 0 0 16px;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.fcol__line {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(244, 241, 236, 0.66);
}

.fcol__nums {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.fcol__nums li {
  display: flex;
  gap: 10px;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(244, 241, 236, 0.66);
}

.fcol__nums a,
.fcol__nums b {
  font-weight: 400;
  color: rgba(244, 241, 236, 0.9);
}

.fcol__nums a:hover {
  color: var(--gold);
}

.fcol__badges {
  width: 108px;
  margin-block-end: 18px;
  opacity: 0.8;
}

.site-footer__base {
  margin: clamp(40px, 6vh, 72px) 0 0;
  padding-block-start: 22px;
  border-block-start: 1px solid rgba(244, 241, 236, 0.08);
  font-size: 12px;
  font-weight: 300;
  color: rgba(244, 241, 236, 0.42);
  text-align: center;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 940px) {
  /* Two columns need room to breathe; below this they fight. */
  .section--about .shell:first-of-type {
    grid-template-columns: 1fr;
    gap: var(--gap-inner);
  }

  .section--about .section__head {
    margin-block-end: 0;
  }
}

@media (max-width: 1000px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery__item:nth-child(4),
  .gallery__item:nth-child(5) {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .lead-form {
    grid-template-columns: 1fr;
  }

  .btn {
    justify-self: stretch;
    justify-content: center;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item {
    aspect-ratio: 1 / 1;
  }

  .gallery__item:nth-child(5) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .film--full .film__video {
    height: clamp(240px, 52vh, 460px);
  }

  .film--inset .film__video {
    height: clamp(200px, 38vh, 340px);
  }

  /* Fewer logos fit, so the row must travel proportionally faster to keep
     the same perceived pace. */
  .logo-wall .marquee__track {
    animation-duration: calc(var(--speed, 60s) * 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee__track {
    animation: none;
    /* Without motion the duplicate strips are dead weight and the row would
       sit off-centre; show one and centre it. */
    width: 100%;
    justify-content: center;
  }

  .marquee__track img:not(:first-child) {
    display: none;
  }

  .gallery__item img {
    transition: none;
  }
}

/* ---- form field direction ----
   Nothing declared a direction, so each field inherited whatever the engine
   felt like: WebKit and Blink force LTR on type="email" and type="tel"
   because they hold non-linguistic data, while the Hebrew name field stayed
   RTL. The result was one field reading right-to-left and the next one
   left-to-right in the same row.

   Every field is right-ALIGNED, so the form reads as one RTL block. Phone and
   email keep LTR flow, because "050-1234567" and an address must not be
   reordered -- they just sit on the right where the eye expects them. */

.field input,
.arc__form input {
  text-align: right;
  direction: rtl;
}

.field input[type="tel"],
.field input[type="email"],
.field input[type="url"],
.field input[type="number"],
.arc__form input[type="tel"],
.arc__form input[type="email"] {
  direction: ltr;
  text-align: right;
}

/* placeholders follow the field, so the row looks even before anything is typed */
.field input::placeholder,
.arc__form input::placeholder {
  text-align: right;
  direction: rtl;
}
