/* Desklo homepage: the page layer over the film. */

@font-face { font-family: "Frank Ruhl"; font-weight: 300; font-display: swap; src: url(fonts/frank-ruhl-libre-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl"; font-weight: 400; font-display: swap; src: url(fonts/frank-ruhl-libre-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl"; font-weight: 500; font-display: swap; src: url(fonts/frank-ruhl-libre-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Frank Ruhl"; font-weight: 300; font-display: swap; src: url(fonts/frank-ruhl-libre-hebrew-300-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl"; font-weight: 400; font-display: swap; src: url(fonts/frank-ruhl-libre-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl"; font-weight: 500; font-display: swap; src: url(fonts/frank-ruhl-libre-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }

:root {
  /* blue hour */
  --sky-0: #101a2a;
  --sky-1: #1f2a57;
  --haze: #8d88b8;
  --steel: #b3bad3;
  /* lamp light: the filament warms through amber to paper white */
  --filament: #a5582b;
  --tungsten: #f0b65e;
  --lit: #f6ead7;

  --serif: "Frank Ruhl", "Frank Ruehl CLM", Georgia, serif;
  --sans: "Plex", "Segoe UI", system-ui, sans-serif;

  /* type scale, perfect fourth from 19px body */
  --t-xs: 13px;
  --t-s: 15px;
  --t-body: 19px;
  --t-l: 25px;
  --t-xl: 34px;

  --pad: 56px;
  --frame: 1360px;
  --bar: 68px;
}
@media (max-width: 759px) { :root { --pad: 16px; --bar: 56px; --t-body: 17px; } }

* { box-sizing: border-box; }
html { background: var(--sky-0); }
body {
  margin: 0;
  background: var(--sky-0);
  color: var(--lit);
  font: 400 var(--t-body)/1.6 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(he) body, body:lang(he) { font-feature-settings: normal; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tungsten); outline-offset: 3px; border-radius: 3px; }

.skip { position: fixed; z-index: 50; inset-inline-start: var(--pad); top: 8px; padding: 8px 12px; background: var(--lit); color: #141a2e; font: 500 var(--t-s) var(--sans); transform: translateY(-200%); }
.skip:focus { transform: none; }

/* ---------- film ---------- */
#film { position: fixed; inset: 0; z-index: 0; }
/* Dims the room behind a lifted screen: same as brightness(1 - opacity), but a
   cheap compositor fade instead of a full-screen filter pass every frame. */
#dim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; will-change: opacity; }
#film canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the live rooms, shown once every room in view has loaded: until then the
   film's own frame is drawn below, the same picture, so the switch is unseen */
#film #live { visibility: hidden; }
#film #live.on { visibility: visible; }
#grain {
  position: absolute; inset: -40px; opacity: .07; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
/* The dark glow around the rooms spans only a few shades: in 8 bits (and
   after #dim) it shows as stripes. The grain above uses overlay, which is
   nearly nothing on dark colours; this one is plain grey noise on top of the
   film (after #dim), faint, moving: it dithers the steps away. */
#dither {
  position: absolute; inset: -40px; opacity: .045; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='d'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='1' seed='7' stitchTiles='stitch'/><feColorMatrix values='1.6 0 0 0 -.3 1.6 0 0 0 -.3 1.6 0 0 0 -.3 0 0 0 0 1'/></filter><rect width='100%' height='100%' filter='url(%23d)'/></svg>");
  animation: grain .8s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-17px, 9px); } 66% { transform: translate(11px, -14px); } 100% { transform: translate(0, 0); } }
#film::after { /* lens vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 55%, transparent 55%, rgba(6, 9, 26, .55) 100%);
}

#lampglow {
  position: absolute; left: 0; top: 0; width: 520px; height: 520px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 196, 120, .75), rgba(240, 160, 80, .28) 45%, rgba(240, 160, 80, 0));
  mix-blend-mode: screen;
}
#plates { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plate {
  position: absolute; left: 0; top: 0; transform-origin: 0 0;
  width: 720px; height: 60px; display: flex; align-items: center; padding-inline: 34px;
  font: 500 30px/1 var(--sans); letter-spacing: .04em; color: rgba(222, 226, 240, .5);
  white-space: nowrap; backface-visibility: hidden;
}
.plate[hidden] { display: none; }

#badge { position: fixed; z-index: 4; inset-inline-start: var(--pad); bottom: 14px; margin: 0; font: 500 11px/1 var(--sans); color: rgba(179, 186, 211, .45); pointer-events: none; }
@media (max-width: 759px) { #badge { bottom: auto; top: calc(var(--bar) - 6px); } }

/* the sky darkens toward the top, so the bar reads over anything below it */
body::before { content: ""; position: fixed; z-index: 15; left: 0; right: 0; top: 0; height: calc(var(--bar) + 40px); pointer-events: none;
  background: linear-gradient(rgba(10, 15, 40, .82), rgba(10, 15, 40, .5) 55%, rgba(10, 15, 40, 0)); }

/* ---------- bar ---------- */
#bar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: var(--bar);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--frame); margin-inline: auto; padding-inline: var(--pad);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--lit); text-decoration: none; font: 500 23px/1 var(--serif); letter-spacing: -.005em; }
.wordmark svg { width: 20px; height: 20px; color: var(--steel); }
.bar-end { display: flex; align-items: center; gap: 22px; }
.lang { display: flex; gap: 2px; font: 500 var(--t-xs)/1 var(--sans); }
.lang button { background: none; border: 0; padding: 8px 8px 9px; color: rgba(179, 186, 211, .7); cursor: pointer; position: relative; }
.lang button[aria-pressed="true"] { color: var(--lit); }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; background: var(--tungsten); border-radius: 1px; }
.bar-cta {
  font: 500 var(--t-s)/1 var(--sans); color: var(--sky-0); text-decoration: none;
  background: var(--tungsten); padding: 11px 16px 12px; border-radius: 4px;
  box-shadow: 0 0 0 0 rgba(240, 182, 94, 0); transition: box-shadow .4s, background .4s;
}
.bar-cta:hover { background: #f6c77c; box-shadow: 0 0 28px 2px rgba(240, 182, 94, .35); }
.bar-cta .short { display: none; }
.bar-login { font: 500 var(--t-s)/1 var(--sans); color: var(--lit); text-decoration: none; padding: 11px 4px 12px; }
.bar-login:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* Phones: both buttons stay in the bar, smaller; the language reads as two short marks. */
@media (max-width: 759px) {
  .wordmark { font-size: 20px; }
  .wordmark span { display: none; }
  .bar-end { gap: 10px; }
  .lang button { padding: 8px 5px 9px; }
  .bar-cta { padding: 9px 11px 10px; font-size: 14px; white-space: nowrap; }
  .bar-cta .long { display: none; }
  .bar-cta .short { display: inline; }
  .bar-login { font-size: 14px; white-space: nowrap; }
}

/* ---------- directory: one slab mark per segment ---------- */
#directory {
  position: fixed; z-index: 20; inset-inline-end: 22px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px;
}
#directory button {
  /* row-reverse: the mark first, on the page's edge; flex-start lines every
     mark up on that edge (flex-end set each beside its hidden label: a zigzag). */
  display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-direction: row-reverse;
  background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--steel);
  font: 500 var(--t-xs)/1 var(--sans);
}
#directory .mark { width: 18px; height: 3px; border-radius: 1px; background: rgba(179, 186, 211, .35); transition: width .5s cubic-bezier(.2, .8, .2, 1), background .5s; }
#directory .lbl { opacity: 0; transform: translateX(6px); transition: opacity .3s, transform .3s; white-space: nowrap; pointer-events: none;
  /* Readable over a product window: a small night-coloured backing. */
  padding: 4px 8px; border-radius: 5px; background: rgba(12, 16, 30, .88); }
[dir="rtl"] #directory .lbl { transform: translateX(-6px); }
#directory:hover .lbl, #directory:focus-within .lbl { opacity: .85; transform: none; }
#directory button[aria-current="true"] .mark { width: 32px; background: var(--tungsten); box-shadow: 0 0 12px rgba(240, 182, 94, .6); }
#directory button[aria-current="true"] .lbl { color: var(--lit); }
#directory .mark i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--lit); border-radius: 1px; }
@media (max-width: 999px) { #directory { display: none; } }

/* ---------- chapters ---------- */
#chapters { position: fixed; inset: 0; z-index: 5; pointer-events: none; }
.chapter { position: absolute; inset: 0; visibility: hidden; }
.chapter.on { visibility: visible; }
.chapter .frame { position: relative; height: 100%; max-width: var(--frame); margin-inline: auto; padding-inline: var(--pad); }
.headline {
  position: absolute; inset-inline-start: var(--pad); top: calc(var(--bar) + 56px);
  margin: 0; max-width: 12.4em; text-wrap: balance;
  font: 300 clamp(40px, 5.6vw, 86px)/1.02 var(--serif); letter-spacing: -.022em;
  transform-origin: top left; will-change: transform;
}
[dir="rtl"] .headline { transform-origin: top right; letter-spacing: 0; font-weight: 400; line-height: 1.08; }
.headline .wd { transition: none; }
.chapter-body {
  position: absolute; inset-inline-start: var(--pad); top: calc(var(--bar) + 56px);
  margin: 0; max-width: min(23em, 380px); color: var(--steel); font-size: var(--t-body); line-height: 1.6; text-wrap: pretty;
  will-change: transform, filter, opacity;
}
[dir="rtl"] .chapter-body { line-height: 1.7; }

.chapter-hero { --hero-size: clamp(42px, 5.4vw, 84px); }
.chapter-hero .headline {
  font-size: var(--hero-size); max-width: none; top: calc(var(--bar) + 3vh);
  inset-inline: var(--pad); text-align: center; transform-origin: top center !important;
}
/* the paragraph sits under the two-line slogan; the room fills the lower half */
.chapter-hero .chapter-body { top: calc(var(--bar) + 3vh + var(--hero-size) * 2.2 + 18px); inset-inline: 0; margin-inline: auto; max-width: 40em; text-align: center; color: var(--lit); opacity: .9; }
.chapter-hero .chapter-body::before { /* a pool of shade so the words read over any frame */
  content: ""; position: absolute; z-index: -1; inset: -48px -90px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(10, 15, 40, .62), rgba(10, 15, 40, 0));
}
.go {
  pointer-events: auto; position: absolute; left: 50%; bottom: 34px; margin-left: -110px; width: 220px; justify-content: center;
  display: inline-flex; align-items: center; gap: 14px; background: none; border: 0; padding: 10px 0; cursor: pointer;
  color: var(--lit); font: 500 var(--t-s)/1 var(--sans);
}
.go .shaft { position: relative; width: 2px; height: 34px; background: rgba(179, 186, 211, .25); overflow: hidden; border-radius: 1px; }
.go .shaft::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: var(--tungsten); animation: shaft 2.4s cubic-bezier(.6, 0, .3, 1) infinite; }
@keyframes shaft { 0% { top: -12px; } 70%, 100% { top: 34px; } }

@media (max-width: 759px) {
  .headline { font-size: clamp(32px, 9.4vw, 44px); top: calc(var(--bar) + 28px); max-width: 100%; inset-inline-end: var(--pad); }
  .chapter-hero .headline { font-size: clamp(40px, 11.4vw, 54px); top: calc(var(--bar) + 20px); }
  .chapter-hero .chapter-body { top: auto; bottom: 96px; inset-inline: var(--pad); font-size: 16px; }
  .go { bottom: 28px; }
  .chapter-floor .chapter-body { inset-inline-end: var(--pad); font-size: 16px; top: auto; bottom: 30px; max-width: none; }
}

/* ---------- product screens layer ---------- */
#screens { position: fixed; inset: 0; z-index: 8; pointer-events: none; }
#screens .app { position: absolute; left: 0; top: 0; transform-origin: 0 0; backface-visibility: hidden; }
#screens .app.presented { pointer-events: auto; }

/* ---------- finale (normal flow over the film) ---------- */
#track { position: relative; z-index: 1; }
#finale {
  position: absolute; z-index: 6; left: 0; right: 0;
  max-width: var(--frame); margin-inline: auto; padding-inline: var(--pad);
}
.finale-inner { max-width: 560px; padding-bottom: 18vh; }
.finale-title { margin: 0 0 40px; font: 300 clamp(36px, 4.6vw, 68px)/1.04 var(--serif); letter-spacing: -.02em; max-width: 11em; }
[dir="rtl"] .finale-title { font-weight: 400; letter-spacing: 0; line-height: 1.1; }

.record {
  background: #f5f6f9; color: #141a2e; border-radius: 6px; padding: 26px 28px 22px;
  font: 400 var(--t-s)/1.5 var(--sans);
  box-shadow: 0 30px 80px -30px rgba(3, 6, 20, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
.record h2 { margin: 0; font: 600 var(--t-s)/1.3 var(--sans); }
.record .note { margin: 4px 0 18px; color: #5a6178; font-size: var(--t-xs); }
.record ol { list-style: none; margin: 0; padding: 0; }
.record li { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 2px 14px; padding: 13px 0 12px; }
.record li::before { /* the rule is inked first, then the entry */
  content: ""; position: absolute; top: 0; inset-inline-start: 0; height: 1px; width: 100%;
  background: #d9dde6; transform: scaleX(var(--ink, 0)); transform-origin: left;
}
[dir="rtl"] .record li::before { transform-origin: right; }
.record time { grid-row: span 2; font: 500 var(--t-xs)/1.9 var(--sans); color: #5a6178; font-variant-numeric: tabular-nums; opacity: var(--text, 0); }
.record .what { font-weight: 500; opacity: var(--text, 0); }
.record .status { font-size: var(--t-xs); color: #5a6178; opacity: var(--text, 0); display: flex; align-items: center; gap: 7px; }
.record .status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c7ccd8; flex: none; }
.record li[data-s="approved"] .status { color: #22573e; }
.record li[data-s="approved"] .status::before { background: #2f7a57; }
.record li[data-s="waiting"] .status::before { background: var(--tungsten); }

.facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; color: var(--steel); max-width: 30em; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.facts li::before { content: ""; width: 14px; height: 3px; margin-top: .75em; border-radius: 1px; background: rgba(240, 182, 94, .7); }
.price { margin: 40px 0 0; font: 400 var(--t-xl)/1.15 var(--serif); }
.price-note { margin: 8px 0 0; color: var(--steel); font-size: var(--t-s); max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 32px; }
.cta {
  display: inline-block; font: 500 17px/1 var(--sans); text-decoration: none; color: #141a2e;
  background: var(--tungsten); padding: 17px 24px 18px; border-radius: 5px;
  box-shadow: 0 0 0 0 rgba(240, 182, 94, 0), 0 0 40px -6px rgba(240, 182, 94, .45);
  transition: background .5s, box-shadow .5s;
}
.cta:hover { background: #f8cf8b; box-shadow: 0 0 0 6px rgba(240, 182, 94, .12), 0 0 60px 0 rgba(240, 182, 94, .55); }
.cta:active { background: #d99a3d; box-shadow: 0 0 20px -4px rgba(240, 182, 94, .3); }
.cta2 { color: var(--lit); font: 500 var(--t-s)/1 var(--sans); text-underline-offset: 5px; text-decoration-color: rgba(246, 234, 215, .35); }
.cta2:hover { text-decoration-color: var(--tungsten); }

@media (prefers-reduced-motion: reduce) {
  #grain { animation: none; }
  .go .shaft::after { animation: none; top: 11px; }
  html { scroll-snap-type: none; }
}

/* Reading side: the text stands on a soft shade of night, never on bare
   blinds or bookshelves (it fades out towards the room). */
#film::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0; transition: opacity .8s ease;
  background: linear-gradient(90deg, rgba(16, 26, 42, .78) 0%, rgba(16, 26, 42, .5) 26%, rgba(16, 26, 42, 0) 50%);
}
[dir="rtl"] #film::before { background: linear-gradient(270deg, rgba(16, 26, 42, .78) 0%, rgba(16, 26, 42, .5) 26%, rgba(16, 26, 42, 0) 50%); }
@media (max-width: 759px) { #film::before { background: linear-gradient(180deg, rgba(16, 26, 42, .6) 0%, rgba(16, 26, 42, 0) 40%, rgba(16, 26, 42, 0) 70%, rgba(16, 26, 42, .7) 100%); } }
.headline, .chapter-body, .finale-title, .facts, .price, .price-note { text-shadow: 0 1px 14px rgba(10, 15, 40, .9), 0 0 2px rgba(10, 15, 40, .6); }
body[data-kind="floor"] #film::before, body[data-kind="finale"] #film::before { opacity: 1; }
/* Text scrolling up (the finale) slides under the bar into a soft night, never onto the wordmark. */
body::before {
  content: ""; position: fixed; z-index: 19; top: 0; left: 0; right: 0; height: calc(var(--bar) + 36px); pointer-events: none;
  background: linear-gradient(to bottom, rgb(16, 26, 42) 0%, rgb(16, 26, 42) 62%, rgba(16, 26, 42, 0) 100%);
}

/* The price, on the first screen. */
.hero-price { display: block; margin-top: 12px; font-weight: 600; color: var(--lit); }
