/* ==========================================================================
   Opening screen. Palette locked 12.10.2026: metal. The marked word
   is chrome on black and blue on light: here
   «מכונה» in chrome, line two in metal, the sub in Light. Desktop numbers from the 1920 frame,
   phone numbers (below 900) from the 393 frame. Every length is N * --u.
   ========================================================================== */
@font-face { font-family: "Discovery FS"; font-weight: 300; font-display: swap; src: url("../fonts/discovery-fs-light.woff2") format("woff2"); }
@font-face { font-family: "Discovery FS"; font-weight: 400; font-display: swap; src: url("../fonts/discovery-fs-regular.woff2") format("woff2"); }
@font-face { font-family: "Discovery FS"; font-weight: 500; font-display: swap; src: url("../fonts/discovery-fs-medium.woff2") format("woff2"); }
@font-face { font-family: "Discovery FS"; font-weight: 700; font-display: swap; src: url("../fonts/discovery-fs-bold.woff2") format("woff2"); }

:root {
  --black: #050505;
  --soft-white: #F7F7F7;
  --silver: #B8B8B8;
  --silver-dark: #747474;
  --brushed: linear-gradient(135deg, #3D3D3D 0%, #B8B8B8 32%, #FFFFFF 50%, #747474 72%, #E6E6E6 100%);
  --blue: linear-gradient(90deg, #34C8FF, #2B7FFF);
  --chrome: linear-gradient(180deg, #FFFFFF 0%, #D9D9D9 38%, #7A7A7A 52%, #E9E9E9 66%, #8C8C8C 100%);
  --metal: linear-gradient(180deg, #FFFFFF 0%, #B8B8B8 55%, #8A8A8A 100%);
  --f-body: "Discovery FS", "Segoe UI", Arial, sans-serif;
  --ink: var(--black);
  --paper: var(--soft-white);
}
html, body { background: var(--black); }
body { font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
.ph { display: none; }

/* ---- stage --------------------------------------------------------------- */
.hero__stage { background: var(--black); }
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__shade { will-change: opacity; }
.hero__still, .hero__scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.hero__scene { opacity: 0; }
.hero__still { object-position: calc(-8 * 1vw) center; }   /* matches the canvas: subject clear of the text */
.hero.is-live .hero__scene { opacity: 1; }
.hero.is-live .hero__still { visibility: hidden; }
/* the text side stays dark whatever the camera does */
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(270deg, var(--black) 0%, rgba(5,5,5,.94) 40%, rgba(5,5,5,0) 70%),
    linear-gradient(0deg, var(--black) 0%, rgba(5,5,5,0) 26%);
}

/* ---- text column --------------------------------------------------------- */
.hero__col {
  position: absolute; right: calc(160 * var(--u)); top: 50%;
  transform: translateY(calc(-50% - 40 * var(--u)));
  display: flex; flex-direction: column; align-items: flex-start; text-align: right;
  will-change: transform, opacity;
}
.hero__kicker { margin: 0; font-weight: 500; font-size: calc(24 * var(--u)); letter-spacing: .12em; color: var(--silver); }
.hero__title { margin: calc(36 * var(--u)) 0 0; font-weight: 700; font-size: calc(74 * var(--u)); line-height: 1.12; color: var(--soft-white); }
.hero__title > span { display: block; white-space: nowrap; }
.hero__hl { font-weight: inherit; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__l2 { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin: calc(40 * var(--u)) 0 0; width: calc(820 * var(--u)); font-weight: 300; font-size: calc(28 * var(--u)); line-height: 1.55; color: #F2F2F2; text-wrap: pretty; }
.hero__cta {
  margin-top: calc(56 * var(--u)); padding: calc(22 * var(--u)) calc(44 * var(--u));
  border-radius: 999px; background: var(--brushed); color: var(--black);
  font-weight: 500; font-size: calc(24 * var(--u)); line-height: 1; text-decoration: none;
  transition: filter .28s cubic-bezier(.22,1,.36,1);
}
.hero__cta:hover { filter: brightness(1.08); }
.hero__cta:focus-visible { outline: 1px solid rgba(255,255,255,.82); outline-offset: calc(6 * var(--u)); }

.hero__foot { position: absolute; left: calc(160 * var(--u)); right: calc(160 * var(--u)); bottom: calc(56 * var(--u)); will-change: opacity; }
.hero__rule { height: 1px; margin-bottom: calc(32 * var(--u)); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(230,230,230,.5), rgba(255,255,255,.04)); }
.hero__trust { margin: calc(28 * var(--u)) 0 0; font-size: calc(20 * var(--u)); letter-spacing: .04em; color: var(--silver-dark); }

/* ---- after the pin ------------------------------------------------------- */
.next { min-height: 70vh; min-height: 70svh; display: grid; place-content: center; text-align: center; gap: calc(16 * var(--u)); padding: calc(120 * var(--u)) calc(24 * var(--u)); }
.next__tag { margin: 0; font-size: calc(20 * var(--u)); color: var(--silver-dark); letter-spacing: .04em; }
.next__title { margin: 0; font-size: calc(56 * var(--u)); font-weight: 700; color: var(--soft-white); }

/* ---- phone: the 393 frame ------------------------------------------------- */
@media (max-width: 899px) {
  .ph { display: inline; }
  .hero__stage { height: 100svh; }
  .hero__media { bottom: auto; height: calc(430 * var(--u)); }
  .hero__still, .hero__scene { object-position: center top; }
  .hero__still { object-position: center top; }
  .hero__media { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 70%, transparent 100%); }
  .hero__shade { background: linear-gradient(0deg, var(--black) 0%, var(--black) calc(100% - 330 * var(--u)), rgba(5,5,5,0) calc(100% - 190 * var(--u))); }
  .hero__col { right: calc(24 * var(--u)); left: calc(24 * var(--u)); top: auto; bottom: calc(100 * var(--u)); transform: none; }
  .hero__kicker { font-size: calc(13 * var(--u)); }
  .hero__title { margin-top: calc(14 * var(--u)); font-size: calc(38 * var(--u)); line-height: 1.16; }
  .hero__sub { margin-top: calc(16 * var(--u)); width: 100%; font-size: calc(16 * var(--u)); line-height: 1.55; }
  .hero__cta { margin-top: calc(24 * var(--u)); padding: calc(15 * var(--u)) calc(28 * var(--u)); font-size: calc(16 * var(--u)); }
  .hero__foot { left: calc(24 * var(--u)); right: calc(24 * var(--u)); bottom: calc(32 * var(--u)); }
  .hero__rule { margin-bottom: calc(19 * var(--u)); }
  .hero__trust { margin-top: calc(16 * var(--u)); font-size: calc(13 * var(--u)); letter-spacing: .03em; }
  .next__tag { font-size: calc(13 * var(--u)); }
  .next__title { font-size: calc(30 * var(--u)); }
}

/* ---- reduced motion: the still and the text, nothing moves --------------- */
@media (prefers-reduced-motion: reduce) {
  .hero__scene { display: none; }
  .hero .hero__still { visibility: visible; }
  .hero__stage { height: 100vh; }
}
