/* TR Topolski — v2 overrides, driven by MAIN DESCTOP 3.psd / MOBILE.psd.
   Loaded only on the v2 page template; the approved front page never sees it. */

.is-v2 {
  /* Sampled from a JPEG before; this is the authored value. */
  --gold: #c4a57e;
  --gold-soft: rgba(196, 165, 126, 0.55);
  --line: rgba(196, 165, 126, 0.22);

  /* The PSD uses exactly two weights and a four-step scale:
     16 / 26.7 / 40 / 80. Everything here derives from that. */
  --t-body: clamp(14px, 1.05vw, 16px);
  --t-mid: clamp(20px, 2vw, 26.7px);
  --t-lg: clamp(28px, 3vw, 40px);
  --t-xl: clamp(46px, 5.6vw, 80px);
}

.is-v2 .section__title,
.is-v2 .caption__title,
.is-v2 .stat__value,
.is-v2 .hero-loader__brand {
  /* Heebo Thin — the display face in the design. Nothing heavier. */
  font-weight: 100;
}

.is-v2 .section__title {
  font-size: var(--t-lg);
  line-height: 1.18;
}

.is-v2 .stat__value {
  font-size: var(--t-xl);
}

.is-v2 .eyebrow,
.is-v2 .fcol__title,
.is-v2 .split__cap h3,
.is-v2 .btn {
  font-weight: 600;
}

.is-v2 .eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
}

.is-v2 .eyebrow--center {
  text-align: center;
}

.is-v2 .eyebrow--center::before {
  display: none;
}

.is-v2 .prose,
.is-v2 .section__lead,
.is-v2 .fcol__line,
.is-v2 .field label {
  font-weight: 100;
  font-size: var(--t-body);
}

/* Real vector wordmark in place of the typeset stand-in.
   Scoped to <body>, not <main>: the header sits outside <main>, so an
   .is-v2 selector never reached it and the text fallback kept showing. */
.trt-v2 .brand__mark,
.trt-v2 .brand__text {
  display: none;
}

.trt-v2 .brand {
  width: 157px;
  height: 31px;
  background: url("../img/v2/logo.png") no-repeat center / contain;
}

/* The supplier strip was rendering at 34px tall against a native height of
   58px — roughly half the size the design draws them, and a third the size of
   the client rows further down, which is why it read as an afterthought.
   58px is the ceiling on purpose: that is 1:1 with the source, so the marks
   stay crisp instead of being upscaled. */
.is-v2 .marquee--suppliers .marquee__track img {
  height: clamp(38px, 4vw, 58px);
  margin-inline-end: clamp(44px, 5.2vw, 88px);
}

@media (max-width: 760px) {
  .is-v2 .marquee--suppliers .marquee__track img {
    height: 40px;
    margin-inline-end: 40px;
  }
}

/* ---------- media with a blur placeholder ----------
   The wrapper carries an inlined ~900-byte blur of the photograph, so the slot
   is the right colours from the first paint. The real file fades in over it
   once decoded, instead of snapping in from black. */
.is-v2 .media {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.is-v2 .media > img {
  opacity: 0;
  transition: opacity 0.55s ease;
}

.is-v2 .media > img.is-loaded {
  opacity: 1;
}

/* Without JS the fade never fires, so never hide the image in the first place. */
html:not(.js) .is-v2 .media > img {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .is-v2 .media > img {
    transition: none;
  }
}

/* ---------- המוצרים שלנו ----------
   A tab bar over a full-bleed render: pick a category, the photograph and
   the copy change beneath it. */

.products {
  position: relative;
  z-index: 1;
}

.products__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: clamp(18px, 2.4vh, 30px) clamp(16px, 3vw, 40px);
  border-block-end: 1px solid rgba(255, 255, 255, 0.09);
}

.products__tab {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px clamp(12px, 1.6vw, 26px);
  background: none;
  border: 0;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.28s ease;
}

.products__tab:last-child {
  border-inline-start: 0;
}

.products__tab i {
  font-style: normal;
  font-weight: 100;
  opacity: 0.7;
}

.products__tab:hover,
.products__tab:focus-visible {
  color: #fff;
}

.products__tab.is-active {
  color: var(--gold);
}

.products__tab.is-active i {
  opacity: 1;
}

.products__stage {
  position: relative;
  min-height: clamp(420px, 74vh, 780px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.products__shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.products__shot.is-on {
  opacity: 1;
}

.products__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.products__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* The tab bar swaps between five renders, some near-white. The scrim has
     to hold the copy legible against the brightest of them, not just the
     dark stone that happens to be first. */
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 34%, rgba(0, 0, 0, 0.12) 62%, rgba(0, 0, 0, 0) 82%),
    linear-gradient(to left, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 52%);
}

.products__panel {
  position: relative;
  z-index: 2;
  grid-area: 1 / 1;
  width: min(100% - clamp(36px, 8vw, 128px), var(--shell));
  margin-inline: auto;
  padding-block-end: clamp(34px, 5vh, 66px);
  max-width: 100%;
}

.products__panel[hidden] {
  display: none;
}

.products__num {
  display: block;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
  font-size: var(--t-xl);
  font-weight: 100;
  line-height: 1;
  color: var(--gold);
}

.products__name {
  margin: 6px 0 14px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
  font-size: var(--t-mid);
  font-weight: 600;
  color: #fff;
}

.products__body {
  max-width: 48ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75);
  margin: 0;
  font-size: var(--t-body);
  font-weight: 100;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.88);
}

.products__body--awaiting {
  color: var(--gold-soft);
}

.products__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-start: clamp(20px, 3vh, 34px);
  padding: 11px 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  font-size: 14px;
  font-weight: 100;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.products__cta i {
  font-style: normal;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.products__cta:hover,
.products__cta:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.products__cta:hover i {
  transform: translateX(-5px);
}

/* The products stage ends on a full-bleed image and the film below is also
   full-bleed. .products is not a .section, so it carries no padding, and
   films deliberately have no margin of their own — which left the two welded
   together. Space them like any two adjacent media blocks. */
.products + .film,
.products + .section {
  margin-block-start: var(--gap-media);
}

/* ---------- TR STONE ----------
   Plain black. The photograph behind the statement fought the type and the
   block reads stronger as a clean dark beat. */

.section--stone {
  position: relative;
  background: var(--ink);
}

.stone__bg {
  display: none;
}

.section--stone > .shell {
  position: relative;
  z-index: 2;
}

/* ---------- film plates on white ----------
   Full-bleed video welded band to band and made the page relentless. The
   clips now sit inset on a white field, the same plate treatment as the light
   variant — which also gives the dark build somewhere to breathe. */

.is-v2 .film {
  margin-block: 0;
  padding-block: clamp(52px, 7.5vh, 96px);
  background: #fff;
}

.is-v2 .products + .film {
  margin-block-start: 0;
}

.is-v2 .film + .film {
  margin-block-start: 0;
  padding-block-start: 0;
}

.is-v2 .film__frame {
  width: min(100% - clamp(36px, 9vw, 160px), 1180px);
  margin-inline: auto;
  background: #000;
}

.is-v2 .film--full .film__video {
  height: clamp(300px, 58vh, 600px);
}

.is-v2 .film--inset .film__video {
  height: clamp(240px, 46vh, 470px);
}

.is-v2 .film__cap {
  width: min(100% - clamp(36px, 9vw, 160px), 1180px);
  color: rgba(20, 18, 15, 0.55);
}

.is-v2 .film__cap::before {
  background: #a98753;
  opacity: 1;
}

/* ---------- ARC & Designers ----------
   A large flat field of #c4a57e read as a muddy slab, and the form sat hard
   right leaving a dead third of the band. It works better as a white card
   attached to the press-wall plate: centred, and fields as rules rather than
   boxes so they read as somewhere to write. Shared by both variants. */

.is-v2 .arc__plate img {
  width: min(100% - clamp(36px, 9vw, 160px), 1180px);
}

.is-v2 .arc__band {
  width: min(100% - clamp(36px, 9vw, 160px), 1180px);
  margin: 0 auto;
  padding: clamp(38px, 5.5vh, 68px) clamp(24px, 4vw, 72px);
  background: #fbfaf8;
}

.is-v2 .arc__band .shell {
  width: 100%;
  padding-inline: 0;
}

.is-v2 .arc__band-inner {
  flex-direction: column;
  align-items: center;
  gap: clamp(26px, 3.4vh, 44px);
  text-align: center;
}

.is-v2 .arc__pitch {
  max-width: 30ch;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 600;
  line-height: 1.35;
  color: #14120f;
}

.is-v2 .arc__form {
  justify-content: center;
  gap: clamp(14px, 1.8vw, 26px);
}

.is-v2 .arc__form input {
  width: clamp(150px, 15vw, 196px);
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-block-end: 1px solid rgba(20, 18, 15, 0.26);
  color: #14120f;
  transition: border-color 0.25s ease;
}

.is-v2 .arc__form input::placeholder {
  /* Solid ink, not grey — the labels double as the only field names here, so
     they have to read at a glance rather than whisper. */
  color: #14120f;
  opacity: 1;
}

.is-v2 .arc__form input:hover {
  border-block-end-color: rgba(20, 18, 15, 0.45);
}

.is-v2 .arc__form input:focus {
  background: transparent;
  border-block-end-color: #a98753;
}

.is-v2 .arc__form button {
  padding: 14px 34px;
  background: #14120f;
  border-color: #14120f;
  color: #fbfaf8;
}

.is-v2 .arc__form button:hover,
.is-v2 .arc__form button:focus-visible {
  background: #a98753;
  border-color: #a98753;
  color: #fff;
}

@media (max-width: 760px) {
  .is-v2 .arc__form {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .is-v2 .arc__form input,
  .is-v2 .arc__form button {
    width: 100%;
    justify-content: center;
  }
}


.arc {
  padding-block-start: var(--gap-section);
}

.arc__head {
  text-align: center;
  margin-block-end: var(--gap-inner);
}

.arc__plate {
  margin: 0;
  line-height: 0;
}

.arc__plate img {
  display: block;
  width: min(100% - clamp(36px, 8vw, 128px), var(--shell));
  margin-inline: auto;
}

/* The gold band is the one warm surface on the whole page — it is what makes
   this section read as an invitation rather than another dark slab. */
.arc__band {
  margin-block-start: clamp(28px, 4vh, 52px);
  padding-block: clamp(22px, 3.2vh, 40px);
  background: var(--gold);
}

.arc__band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 30px);
}

.arc__pitch {
  margin: 0;
  font-size: var(--t-mid);
  font-weight: 600;
  color: var(--ink);
}

.arc__form {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.arc__form input {
  width: clamp(130px, 13vw, 180px);
  padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(8, 8, 8, 0.55);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 100;
}

.arc__form input::placeholder {
  color: rgba(8, 8, 8, 0.66);
  opacity: 1;
}

.arc__form input:focus {
  outline: none;
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.22);
}

.arc__form button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: var(--gold);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.arc__form button i {
  font-style: normal;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.arc__form button:hover,
.arc__form button:focus-visible {
  background: transparent;
  color: var(--ink);
}

.arc__form button:hover i {
  transform: translateX(-5px);
}

/* The sub-heading follows a full-bleed gallery, so it needs its own air —
   the gallery has no bottom margin to lend it. */
.is-v2 .section__head--sub {
  margin-block-start: var(--gap-inner);
}

/* ---------- projects, plates at authored resolution ---------- */

.gallery--v2 {
  grid-template-columns: repeat(5, 1fr);
}

.gallery--v2 .gallery__item {
  aspect-ratio: 3 / 4;
}

.gallery--v2 .gallery__item img {
  filter: grayscale(0.2) brightness(0.9);
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .gallery--v2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery--v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .arc__band-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .arc__form {
    flex-direction: column;
    align-items: stretch;
  }

  .arc__form input,
  .arc__form button {
    width: 100%;
    justify-content: center;
  }

  /* The tab row cannot wrap to four lines on a phone — let it scroll. */
  .products__tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .products__tabs::-webkit-scrollbar {
    display: none;
  }

  .products__tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 620px) {
  .gallery--v2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
