/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* Every scene is a world with its own light. These are real colours so the
   page can glide from one world to the next. */
@property --w1    { syntax: '<color>'; inherits: true; initial-value: #000; }
@property --w2    { syntax: '<color>'; inherits: true; initial-value: #000; }
@property --w3    { syntax: '<color>'; inherits: true; initial-value: #00121c; }
@property --amb-a { syntax: '<color>'; inherits: true; initial-value: #01b7ff; }
@property --amb-b { syntax: '<color>'; inherits: true; initial-value: #1a4bff; }

html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font: var(--type-body);
  letter-spacing: var(--tracking-text);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--color-bg) 85%, transparent); }
.tile :focus-visible { outline-offset: -3px; }

/* ══ LIQUID GLASS ═════════════════════════════════════════════ */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 .5px var(--glass-edge), var(--glass-shadow);
}

/* the chrome follows the world: light glass over a light world */
html[data-world="light"] :is(.nav, .rail, .toast) {
  --glass-bg: rgba(255, 255, 255, .7); --glass-edge: rgba(255, 255, 255, .8); --glass-highlight: rgba(255, 255, 255, .95);
  --glass-shadow: 0 8px 30px rgba(40, 20, 40, .1); --glass-lens: #fff;
  --color-text: #1d1d1f; --color-text-2: #6e6e73; --color-text-3: #a1a1a6; --color-tab: rgba(29, 29, 31, .58); --color-separator: rgba(0, 0, 0, .1);
}
html[data-world="dark"] :is(.nav, .rail, .toast) {
  --glass-bg: rgba(30, 30, 32, .62); --glass-edge: rgba(255, 255, 255, .14); --glass-highlight: rgba(255, 255, 255, .2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, .35); --glass-lens: rgba(255, 255, 255, .16);
  --color-text: #f5f5f7; --color-text-2: #a1a1a6; --color-text-3: #6e6e73; --color-tab: rgba(245, 245, 247, .62); --color-separator: rgba(255, 255, 255, .14);
}

/* ══ NAV ══════════════════════════════════════════════════════
   Name on the left, the site's pages in the middle, and on the right
   the contact as icons - copy the email, open the résumé - then theme. */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 18px var(--space-7); pointer-events: none; }
.nav-inner { position: relative; display: flex; align-items: center; gap: 8px; max-width: 1380px; margin-inline: auto; }
.nav-inner > * { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 16px 4px 4px; border-radius: var(--radius-pill); color: var(--color-text); font: var(--type-eyebrow); font-size: .9375rem; letter-spacing: -.01em; transition: background .6s var(--ease-apple), color .6s; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: #000 url(assets/legacy/hero.jpg) no-repeat; background-size: 92px auto; background-position: -28px -13px;
  box-shadow: 0 0 0 .5px rgba(255, 255, 255, .15), 0 0 18px rgba(1, 183, 255, .35);
}
.tabs { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 2px; padding: 4px; border-radius: var(--radius-pill); transition: background .6s var(--ease-apple); }
.tabs-lens { position: absolute; inset-block: 4px; border-radius: var(--radius-pill); background: var(--glass-lens); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 2px 10px rgba(0, 0, 0, .14); pointer-events: none; }
.tabs-lens--ready { transition: left .55s var(--ease-lens), width .55s var(--ease-lens), background .6s; }
.tab { position: relative; z-index: 1; padding: 8px 16px; border-radius: var(--radius-pill); font: var(--type-eyebrow); font-size: .875rem; letter-spacing: -.01em; color: var(--color-tab); white-space: nowrap; transition: color .3s var(--ease-apple); }
.tab:hover, .tab[aria-current="true"] { color: var(--color-text); }
.nav-links { display: flex; gap: 8px; margin-inline-start: auto; }
.nav-tools { display: flex; }
.round-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--color-text); transition: transform .3s var(--ease-bounce), background .6s; }
.round-btn:hover { transform: scale(1.06); }
.round-btn:active { transform: scale(.9); }
.round-btn svg { width: 18px; height: 18px; }
.toast {
  position: fixed; inset-block-start: 74px; inset-inline-end: 48px; z-index: 120;
  padding: 9px 16px; border-radius: var(--radius-pill);
  font: 500 .8125rem/1.2 var(--font-text); color: var(--color-text);
  opacity: 0; translate: 0 -8px; pointer-events: none;
  transition: opacity .3s var(--ease-apple), translate .5s var(--ease-spring);
}
.toast.is-on { opacity: 1; translate: 0 0; }

/* ══ THE WORLD ════════════════════════════════════════════════
   A fixed backdrop: the world's own gradient, two drifting lights in
   the project's colours, a third under the pointer, and a fine grain. */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--w1) 0%, var(--w2) 55%, var(--w3) 100%); }
.ambient::before, .ambient::after {
  content: ''; position: absolute; width: 80vmax; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--amb-a), transparent);
  opacity: var(--glow, .3); animation: amb-a 26s ease-in-out infinite alternate;
}
.ambient::before { inset-block-start: -40vmax; inset-inline-end: -26vmax; }
.ambient::after { inset-block-end: -46vmax; inset-inline-start: -28vmax; background: radial-gradient(closest-side, var(--amb-b), transparent); opacity: calc(var(--glow, .3) * .8); animation-name: amb-b; animation-duration: 32s; }
@keyframes amb-a { to { transform: translate(-14vmax, 10vmax) scale(1.15); } }
@keyframes amb-b { to { transform: translate(16vmax, -8vmax) scale(.9); } }
html[data-world="light"] .ambient { --glow: .2; }
.ambient-glow { position: absolute; inset: 0; background: radial-gradient(40vmax circle at calc(50% + var(--mx, 0) * 100%) calc(50% + var(--my, 0) * 100%), color-mix(in srgb, var(--amb-a) 12%, transparent), transparent 70%); }
.ambient-grain {
  position: absolute; inset: 0; opacity: .08; mix-blend-mode: overlay;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══ TIMELINE ═════════════════════════════════════════════════
   One stop per world; the line fills to where you are. Hover opens
   the names. */
.rail {
  position: fixed; z-index: 90; inset-inline-start: 16px; inset-block-start: 50%; translate: 0 -50%;
  padding: 8px; border-radius: 24px;
  transition: background .4s var(--ease-apple), box-shadow .4s var(--ease-apple), padding .4s var(--ease-spring);
}
.rail:hover { padding-inline-end: 18px; background: var(--glass-bg); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 1px 0 var(--glass-highlight), inset 0 0 0 .5px var(--glass-edge), var(--glass-shadow); }
.rail ol { position: relative; z-index: 1; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rail::before, .rail-fill { content: ''; position: absolute; inset-block-start: 20px; inset-inline-start: 19.5px; width: 1px; }
.rail::before { inset-block-end: 20px; background: var(--color-separator); }
.rail-fill { height: calc((100% - 40px) * var(--progress, 0)); background: linear-gradient(var(--p-cyan-400), var(--amb-a)); box-shadow: 0 0 10px var(--amb-a); transition: height .9s var(--ease-spring); }
.rail a { display: flex; align-items: center; height: 24px; }
.rail a i { position: relative; width: 24px; height: 24px; flex: none; display: grid; place-items: center; }
.rail a i::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-3); transition: all .6s var(--ease-bounce); }
.rail a.is-past i::before { background: var(--color-text-2); }
.rail a.is-on i::before { width: 12px; height: 12px; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent), 0 0 18px var(--c); }
.rail a:hover i::before { transform: scale(1.4); }
.rail a span {
  max-width: 0; overflow: hidden; white-space: nowrap;
  font: 600 .75rem/1 var(--font-text); letter-spacing: 0; color: var(--color-text-2);
  opacity: 0; transition: max-width .5s var(--ease-spring), opacity .3s var(--ease-apple), margin .5s var(--ease-spring);
}
.rail:hover a span { max-width: 140px; opacity: 1; margin-inline-start: 10px; }
.rail a.is-on span, .rail a:hover span { color: var(--color-text); }

/* ══ SCENES ═══════════════════════════════════════════════════
   One screen per world. They snap; while one hands over to the next the
   outgoing one sinks back and blurs as the next comes up. */
@media (min-height: 520px) {
  html { scroll-snap-type: y mandatory; }
}
.scene {
  position: relative; min-height: 100dvh;
  display: grid; place-items: center;
  padding: 88px 56px 32px 88px;
  scroll-snap-align: start; scroll-snap-stop: always;
  view-timeline: --scene block;
}
.bento {
  --gap: 14px;
  --W: min(1380px, calc(100vw - 144px));
  --H: clamp(540px, calc(100dvh - 120px), 900px);
  --cw: calc((var(--W) - 3 * var(--gap)) / 4);
  --rh: calc((var(--H) - 5 * var(--gap)) / 6);
  --r: min(calc(var(--rh) * 1.06), calc(var(--cw) * .4));
  position: relative;
  display: grid; grid-template-columns: repeat(4, var(--cw)); grid-template-rows: repeat(6, var(--rh)); gap: var(--gap);
}
.slot { position: relative; min-width: 0; min-height: 0; perspective: 1000px; }
.scene[hidden], main[hidden] { display: none !important; }
html:is([data-page="lab"], [data-page="ai"]) .rail { display: none; }

/* scroll-linked hand-over between worlds */
@supports (animation-timeline: view()) {
  @media (min-height: 520px) and (prefers-reduced-motion: no-preference) {
    .bento, .intro-copy {
      animation: scene-pass linear both;
      animation-timeline: --scene;
      animation-range: cover 10% cover 90%;
    }
  }
}
@keyframes scene-pass {
  0%       { opacity: 0; transform: translateY(9vh) scale(.94); filter: blur(10px); }
  45%, 55% { opacity: 1; transform: none; filter: none; }
  100%     { opacity: 0; transform: translateY(-7vh) scale(.95); filter: blur(10px); }
}

/* ══ INTRO ════════════════════════════════════════════════════ */
.scene--intro { padding-inline: 96px 56px; color: #f5f5f7; overflow-x: clip; }
.intro { position: relative; width: min(1320px, 100%); height: calc(100dvh - 120px); min-height: 480px; display: flex; align-items: center; }
.intro-photo {
  position: absolute; z-index: 0; inset-block-start: 50%; inset-inline-end: -12%;
  height: min(100%, 880px); aspect-ratio: 1688 / 1175;
  translate: 0 -50%; transform-origin: 50% 48%;
  transform: scale(calc(1 + var(--leave, 0) * .35)); opacity: calc(1 - var(--leave, 0) * 1.15);
  animation: photo-in 1.8s var(--ease-spring) .1s both;
}
.intro-photo img { width: 100%; height: 100%; -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent); mask-image: radial-gradient(closest-side, #000 64%, transparent); }
.intro-photo::after {   /* the circle's own light, breathing */
  content: ''; position: absolute; inset-inline-start: 49.9%; inset-block-start: 48.3%; width: 40.3%; aspect-ratio: 1;
  translate: -50% -50%; border-radius: 50%; mix-blend-mode: screen;
  box-shadow: 0 0 90px 24px rgba(1, 183, 255, .38), 0 0 220px 60px rgba(26, 75, 255, .18);
  animation: halo-breathe 6s ease-in-out infinite;
}
@keyframes halo-breathe { 50% { opacity: .55; scale: 1.06; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.12); filter: blur(20px); } }
.intro-copy { position: relative; z-index: 2; max-width: 620px; }
.intro-k { display: flex; align-items: center; gap: 10px; margin-block-end: 22px; font: var(--type-eyebrow); font-size: .9375rem; color: var(--p-cyan-400); animation: rise 1s var(--ease-spring) both; }
.intro-k::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--p-cyan-400); box-shadow: 0 0 12px var(--p-cyan-400); animation: halo-breathe 2.4s ease-in-out infinite; }
.intro-h { font: 700 clamp(4rem, 8.6vw, 8.75rem)/.9 var(--font-display); letter-spacing: -.055em; }
.intro-h > span {
  display: inline-block; padding-block-end: .06em;
  background: linear-gradient(180deg, #fff 35%, #9ba3ad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: word-in 1.3s var(--ease-spring) both;
}
.intro-h > span:nth-child(2) { animation-delay: .14s; }
.intro-h i { font-style: normal; -webkit-text-fill-color: var(--p-cyan-400); }
@keyframes word-in { from { opacity: 0; transform: translateY(.4em); filter: blur(16px); } }
.intro-line { max-width: 25ch; margin-block-start: 30px; font: 500 clamp(1.125rem, 1.6vw, 1.5rem)/1.35 var(--font-text); letter-spacing: -.01em; color: #a1a1a6; text-wrap: balance; animation: rise 1.1s var(--ease-spring) .35s both; }
.intro-count { margin-block-start: 40px; font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #6e6e73; animation: rise 1s var(--ease-spring) .55s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.intro-cue { position: absolute; z-index: 2; inset-block-end: 0; left: 50%; width: 1px; height: 56px; overflow: hidden; background: linear-gradient(transparent, rgba(255, 255, 255, .2)); opacity: calc(1 - var(--leave, 0) * 4); }
.intro-cue::after { content: ''; position: absolute; inset-inline-start: -1px; width: 3px; height: 16px; border-radius: 2px; background: var(--p-cyan-400); animation: cue 2s var(--ease-apple) infinite; }
@keyframes cue { from { translate: 0 -16px; } to { translate: 0 56px; } }

/* ══ TILE ═════════════════════════════════════════════════════
   Two kinds of card per world - a light one and a deep one - like the
   white and the midnight cards on Apple's Siri page. */
.tile {
  --rx: 0deg; --ry: 0deg; --s: 1;
  --muted: var(--card-muted);
  position: relative; isolation: isolate;
  width: 100%; height: 100%;
  overflow: hidden;
  display: flex; flex-direction: column;
  padding: var(--tile-pad);
  border-radius: var(--radius-tile);
  background: var(--card);
  color: var(--card-ink);
  box-shadow: var(--card-shadow);
  text-align: start;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--s));
  transition: transform .7s var(--ease-spring), box-shadow .45s var(--ease-apple), background .5s var(--ease-apple),
              opacity .7s var(--ease-apple) var(--d, 0s), translate 1.1s var(--ease-spring) var(--d, 0s), scale 1.1s var(--ease-spring) var(--d, 0s);
}
.tile { container-type: size; }
.tone-deep { background: var(--deep); color: var(--deep-ink); --muted: var(--deep-muted); }
.tile.is-tilting { --s: 1.015; transition-duration: .14s, .45s, .5s, .7s, 1.1s, 1.1s; box-shadow: var(--card-shadow), 0 30px 60px -20px rgba(0, 0, 0, .35); }
button.tile:active, a.tile:active { --s: .98; transition-duration: .15s; }
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: 6; border-radius: inherit;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .14), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease-apple); pointer-events: none;
}
.tile.is-tilting::before { opacity: 1; }
.js .tile { opacity: 0; translate: 0 64px; scale: .9; --d: .45s; }
.js .scene.is-active .tile { opacity: 1; translate: 0 0; scale: 1; --d: calc(.1s + var(--i) * 85ms); }

.world-light { --card: #fff; --card-ink: #1d1d1f; --card-muted: #6e6e73; --card-shadow: 0 30px 60px -36px rgba(60, 30, 60, .35), inset 0 0 0 1px rgba(255, 255, 255, .9); --deep-muted: rgba(255, 255, 255, .66); }
.world-dark  { --card-ink: #f5f5f7; --card-muted: rgba(245, 245, 247, .6); --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .05); --deep-muted: rgba(255, 255, 255, .62); }
:where(.world-dark) .tile { background: linear-gradient(180deg, color-mix(in oklab, var(--card) 94%, #fff), var(--card)); }
:where(.world-dark) .tile.tone-deep { background: var(--deep); }

.tile-k { position: relative; z-index: 3; font: 600 .8125rem/1.2 var(--font-text); letter-spacing: 0; color: var(--muted); }
.eyebrow { position: relative; z-index: 2; font: var(--type-eyebrow); color: var(--color-accent); margin-block-end: 6px; }
.headline { position: relative; z-index: 2; font: var(--type-tile); letter-spacing: var(--tracking-display); text-wrap: balance; }
.tile-btn {
  position: absolute; inset-block-end: 16px; inset-inline-end: 16px; z-index: 5;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: rgba(0, 0, 0, .06); color: currentColor; transition: background .3s var(--ease-apple);
}
.tile:hover .tile-btn { background: rgba(0, 0, 0, .12); }
.tile-btn svg { width: 13px; height: 13px; }
.icon3d { position: relative; z-index: 2; width: 64px; height: 64px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); transition: transform .6s var(--ease-bounce); }

/* White cubes: covers that sit on white */
.tile--white { background: #fff; color: #1d1d1f; padding: 0; }
.tile--white .tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-spring); }
.tile--white:hover .tile-img { transform: scale(1.04); }
.tile-img { position: absolute; z-index: 0; pointer-events: none; }

/* ══ HERO: the world's name ═══════════════════════════════════ */
.tile--hero { container-type: size; background: var(--hero-bg); color: var(--hero-ink); padding: clamp(18px, 2vw, 30px); justify-content: space-between; }
.hero-top { position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 12px; font: 600 .8125rem/1.2 var(--font-text); letter-spacing: 0; }
.hero-k span { opacity: .66; font-weight: 500; }
.hero-idx { opacity: .6; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hero-main { position: relative; z-index: 3; }
.tile--hero:not(.has-socket):not(.bare) .hero-main { margin-block: auto 22px; max-width: 64%; }
.has-socket .hero-main { text-align: center; margin-block-end: auto; margin-block-start: 4%; }
.hero-name {
  font: 700 min(clamp(3rem, 5.6vw, 6rem), 31cqh, calc(100cqw / var(--len, 8) * 1.45))/.92 var(--font-display); letter-spacing: -.05em; padding-block-end: .06em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-name i { font-style: normal; }
.hero-line { max-width: 34ch; margin-block-start: min(10px, 3cqh); font: 500 min(clamp(.9375rem, 1.1vw, 1.0625rem), 7cqh)/1.4 var(--font-text); letter-spacing: -.005em; opacity: .78; text-wrap: balance; }
.l-short { display: none; }
@container (max-height: 250px), (max-width: 400px) { .hero-scope { display: none; } .hero-line:has(.l-short) .l-full { display: none; } .hero-line .l-short { display: inline; } }
.has-socket .hero-line { margin-inline: auto; }
.hero-foot { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.swatches { display: flex; }
.swatches i {
  width: 22px; height: 22px; border-radius: 50%; margin-inline-end: -6px;
  background: var(--c); box-shadow: 0 0 0 2px var(--swatch-ring, rgba(255, 255, 255, .5)), 0 4px 10px rgba(0, 0, 0, .18);
  transition: margin .6s var(--ease-bounce), transform .6s var(--ease-bounce);
}
.tile--hero:hover .swatches i { margin-inline-end: 5px; transform: translateY(-3px); }
.hero-scope { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; max-width: 46%; }
.hero-scope span { padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); font: 600 .6875rem/1.2 var(--font-text); letter-spacing: 0; backdrop-filter: blur(6px); }
.has-socket .hero-scope { max-width: calc(50% - var(--r) - 16px); }
.hero-ink-dark .hero-scope span { background: rgba(0, 0, 0, .06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.hero-ink-dark { --swatch-ring: rgba(0, 0, 0, .12); }
/* the name comes in like Apple's headlines: up and out of a blur */
.js .hero-name, .js .hero-line, .js .hero-top, .js .hero-foot { opacity: 0; translate: 0 18px; filter: blur(10px); transition: opacity .8s var(--ease-apple) var(--hd), translate 1.1s var(--ease-spring) var(--hd), filter .9s var(--ease-apple) var(--hd); --hd: .4s; }
.js .scene.is-active :is(.hero-name, .hero-line, .hero-top, .hero-foot) { opacity: 1; translate: 0 0; filter: none; }
.js .scene.is-active .hero-top { --hd: .2s; }
.js .scene.is-active .hero-name { --hd: .3s; }
.js .scene.is-active .hero-line { --hd: .42s; }
.js .scene.is-active .hero-foot { --hd: .55s; }

/* ══ SOCKET: an object set into the bento ═════════════════════
   The hero and the two cards under it give way in a circle; the object
   sits in that circle, its words turning around it. */
.cut-b  { -webkit-mask: radial-gradient(circle at 50% calc(100% + var(--gap) / 2), #0000 calc(var(--r) - .5px), #000 var(--r)); mask: radial-gradient(circle at 50% calc(100% + var(--gap) / 2), #0000 calc(var(--r) - .5px), #000 var(--r)); }
.cut-tr { -webkit-mask: radial-gradient(circle at calc(100% + var(--gap) / 2) calc(var(--gap) / -2), #0000 calc(var(--r) - .5px), #000 var(--r)); mask: radial-gradient(circle at calc(100% + var(--gap) / 2) calc(var(--gap) / -2), #0000 calc(var(--r) - .5px), #000 var(--r)); }
.cut-tl { -webkit-mask: radial-gradient(circle at calc(var(--gap) / -2) calc(var(--gap) / -2), #0000 calc(var(--r) - .5px), #000 var(--r)); mask: radial-gradient(circle at calc(var(--gap) / -2) calc(var(--gap) / -2), #0000 calc(var(--r) - .5px), #000 var(--r)); }
.socket {
  position: relative; z-index: 4; place-self: center;
  width: calc(var(--r) * 2 + 64px); aspect-ratio: 1;
  display: grid; place-items: center; pointer-events: none;
}
.socket-core {
  position: relative; width: calc(var(--r) * 2 - 22px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; pointer-events: auto;
}
.ring-text { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 50s linear infinite; }
.ring-text text { font: 600 7px/1 var(--font-text); letter-spacing: .1em; fill: var(--ring-ink, rgba(255, 255, 255, .5)); }
.ring-text--dash circle { fill: none; stroke: var(--ring-ink, rgba(255, 255, 255, .4)); stroke-width: .8; stroke-dasharray: 1.5 4; }
@keyframes spin { to { rotate: 360deg; } }
.js .socket { opacity: 0; scale: .6; rotate: -40deg; transition: opacity .6s var(--ease-apple), scale 1.2s var(--ease-bounce), rotate 1.4s var(--ease-spring); }
.js .scene.is-active .socket { opacity: 1; scale: 1; rotate: 0deg; transition-delay: .45s; }

/* ══ MOMENT: a line in the product's own voice ════════════════ */
.moment { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 12px; font: 600 clamp(1.125rem, 1.55vw, 1.5rem)/1.18 var(--font-display); letter-spacing: -.02em; text-wrap: balance; }
.moment b { font-weight: 600; background: var(--grad-m, var(--grad)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.quote {
  width: 28px; height: 24px; border-radius: 8px; display: grid; place-items: center;
  background: var(--grad-q, linear-gradient(135deg, var(--amb-a), var(--amb-b))); color: #fff;
  font: 800 1.25rem/1 Georgia, serif; font-style: normal; padding-block-start: 8px;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--amb-a) 35%, transparent);
}

/* ══ DEVICES ══ */
.tile--device { container-type: size; }
.phone {
  position: absolute; z-index: 2;
  left: 50%; inset-block-start: 50%;
  width: 74%; aspect-ratio: 9 / 19.5;
  translate: -50% -50%;
  border-radius: 14% / 6.46%; padding: 6px;   /* an iPhone's corner, at any size */
  background: #1d1d1f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), inset 0 0 0 1.5px #3a3a3c, 0 30px 60px rgba(0, 0, 0, .3);
  transition: translate .8s var(--ease-spring);
}
.tile--device .phone { inset-block: auto -6%; width: min(100cqw, calc((100cqh - 96px) * .52)); translate: -50% 0; }
.tile--device:has(.moment):not(.no-bleed) .phone { inset-block: calc(var(--tile-pad) + 116px) auto; width: min(92cqw, calc((100cqh - 100px) * .56)); }
.tile--device:hover .phone { translate: -50% -10px; }
.tile--device.no-bleed .phone { inset-block-end: 3%; width: min(96cqw, calc((100cqh - 104px) * .46)); }
.tile--device:is(:hover, :focus-within) .phone { translate: -50% -10px; }
.screen { position: relative; height: 100%; overflow: hidden; border-radius: 12.5% / 5.8%; background: #fff; }
.screen::after { content: ''; position: absolute; z-index: 9; inset-block-start: 7px; left: 50%; translate: -50% 0; width: 32%; height: 12px; border-radius: 8px; background: #000; pointer-events: none; }
.shot { width: 100%; height: auto; }
.shot--fill { height: 100%; object-fit: cover; object-position: top; }
.scroller .shot { transition: transform 1.2s var(--ease-spring); }
.tile:hover .scroller .shot { transform: translateY(calc(-1 * var(--travel, 0px))); transition: transform var(--scroll-time, 6s) cubic-bezier(.45, 0, .55, 1) .25s; }

/* ══ FEATURE: a badge, a line of circuit, a title and a line ══ */
.tile--feature { justify-content: flex-end; }
.feat { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.feat[dir="rtl"] { align-items: flex-start; text-align: right; }
.badge {
  width: 54px; height: 54px; margin-block-end: 10px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--b) 55%, #fff) 0%, var(--b) 48%, color-mix(in srgb, var(--b) 70%, #000) 100%);
  color: #fff; font-size: 1.5rem;
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--b) 12%, transparent), inset 0 2px 4px rgba(255, 255, 255, .45), inset 0 -4px 8px rgba(0, 0, 0, .18), 0 12px 24px color-mix(in srgb, var(--b) 40%, transparent);
  transition: transform .6s var(--ease-bounce);
}
.badge svg { width: 24px; height: 24px; }
.badge img { width: 70%; height: 70%; object-fit: contain; }
.tile:hover .badge { transform: translateY(-4px) rotate(-6deg); }
.badge--coral { --b: #ff3d6e; } .badge--orange { --b: #ff8a3d; } .badge--red { --b: #e7192e; } .badge--ink { --b: #2c2c2e; }
.badge--blue { --b: #1a73ff; } .badge--yellow { --b: #ffb800; color: #1d1d1f; } .badge--green { --b: #1f8a6a; }
.badge--white { --b: #ffffff; color: #1d1d1f; }
.badge--glass { --b: #3b6cff; }
.feat-k { font: 600 .75rem/1.2 var(--font-text); letter-spacing: 0; color: var(--accent-k, var(--amb-a)); }
.feat-t { font: 700 clamp(1rem, 1.3vw, 1.25rem)/1.2 var(--font-display); letter-spacing: -.015em; }
.feat-d { max-width: 30ch; font: 400 clamp(.8125rem, .95vw, .9375rem)/1.45 var(--font-text); letter-spacing: 0; color: var(--muted); }
.trace { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.trace path { fill: none; stroke: color-mix(in srgb, currentColor 16%, transparent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.trace .run { stroke: var(--amb-a); stroke-width: 2.5; stroke-dasharray: 12 88; stroke-dashoffset: 100; filter: drop-shadow(0 0 4px var(--amb-a)); }
.scene.is-active .trace .run { animation: run 3.4s linear infinite; }
@keyframes run { to { stroke-dashoffset: 0; } }
.node { position: absolute; z-index: 2; inset-inline-start: var(--x); inset-block-start: var(--y); width: 9px; height: 9px; translate: -50% -50%; border-radius: 50%; background: var(--amb-a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amb-a) 22%, transparent), 0 0 12px var(--amb-a); }
.scene.is-active .node { animation: node-pulse 3.4s ease-in-out infinite; }
@keyframes node-pulse { 85% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--amb-a) 22%, transparent), 0 0 12px var(--amb-a); } 92% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--amb-a) 0%, transparent), 0 0 22px var(--amb-a); } }

/* ══ ILLUSTRATED CARD: glossy icons on a soft glow, faint UI behind ══ */
.tile--illo { justify-content: flex-end; }
.illo { position: absolute; inset: 0 0 38%; z-index: 1; pointer-events: none; }
.illo::before { content: ''; position: absolute; inset: 6% 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--glow-c, var(--amb-a)) 26%, transparent), transparent); filter: blur(6px); }
.illo-ui { position: absolute; border-radius: 14px; background: rgba(255, 255, 255, .55); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.illo-ui::before { content: ''; position: absolute; inset: 10px 12px auto; height: 7px; border-radius: 4px; background: rgba(0, 0, 0, .06); }
.illo-ui::after { content: ''; position: absolute; inset: 24px 12px auto; height: 7px; width: 54%; border-radius: 4px; background: rgba(0, 0, 0, .045); }
.illo-ring { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); width: var(--s); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--glow-c, var(--amb-a)) 35%, transparent); }
.scene.is-active .illo-ring { animation: spin 30s linear infinite; }
.gloss {
  position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y);
  width: var(--s, 64px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  display: grid; place-items: center; padding: calc(var(--s, 64px) * .26);
  background: radial-gradient(circle at 34% 26%, color-mix(in srgb, var(--b) 45%, #fff) 0%, var(--b) 52%, color-mix(in srgb, var(--b) 72%, #000) 100%);
  color: #fff;
  box-shadow: 0 0 0 calc(var(--s, 64px) * .1) rgba(255, 255, 255, .75), 0 0 0 calc(var(--s, 64px) * .1 + 1px) rgba(0, 0, 0, .04), 0 16px 34px color-mix(in srgb, var(--b) 38%, transparent), inset 0 3px 6px rgba(255, 255, 255, .5);
  animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--k, 0) * -1.6s);
}
.gloss svg { width: 100%; height: 100%; }
.gloss--white { --b: #f4f4f6; color: #1d1d1f; }
@keyframes bob { 50% { translate: -50% calc(-50% - 7px); } }
.illo-pin { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: #ff5a5f; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(255, 90, 95, .4); }
.illo-pin::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; background: rgba(255, 90, 95, .25); animation: halo 3s ease-out infinite; animation-delay: calc(var(--k, 0) * -.8s); z-index: -1; }
.illo-me { position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y); width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%; background: #1a73ff; border: 3px solid #fff; box-shadow: 0 0 0 16px rgba(26, 115, 255, .12); }
.illo-copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.illo-copy b { font: 700 clamp(1rem, 1.3vw, 1.25rem)/1.2 var(--font-display); letter-spacing: -.015em; }
.illo-copy p { max-width: 32ch; font: 400 clamp(.8125rem, .95vw, .9375rem)/1.45 var(--font-text); letter-spacing: 0; color: var(--muted); }

/* ══ MOMENTS THAT MOVE ════════════════════════════════════════ */
/* marquee */
.tile--marquee { padding: 0; justify-content: center; }
.mq { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 26s linear infinite; }
.mq-track > div { display: flex; align-items: center; flex: none; }
.mq span { padding-inline: .3em; font: 800 clamp(1.75rem, 3.2vw, 3.25rem)/1.1 var(--font-display); letter-spacing: -.035em; white-space: nowrap; color: var(--c, currentColor); }
.mq i { font-style: normal; font-size: 1.25rem; opacity: .45; }
@keyframes mq { to { transform: translateX(-50%); } }
/* palette stripes */
.tile--palette { padding: 0; background: #0c0c0c; }
.stripes { position: absolute; inset: 0; display: flex; gap: 6px; padding: 6px; }
.stripes i { position: relative; flex: 1; border-radius: 18px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: flex 1s var(--ease-spring); }
.stripes i span { position: absolute; inset-block-end: 12px; left: 50%; translate: -50% 0; writing-mode: vertical-rl; rotate: 180deg; font: 600 .6875rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .85); mix-blend-mode: difference; opacity: 0; transition: opacity .4s; }
.scene.is-active .stripes i { animation: stripe 7s var(--ease-apple) infinite; animation-delay: calc(var(--i) * -1.4s); }
.stripes:hover i { animation-play-state: paused; }
.stripes i:hover { flex: 3.2; }
.stripes i:hover span { opacity: 1; }
@keyframes stripe { 0%, 100% { flex: 1; } 25% { flex: 2.6; } 50% { flex: 1; } }
/* scattered chips */
.tile--chips { padding: clamp(18px, 1.8vw, 26px); }
.chip-f {
  position: absolute; z-index: 3; left: var(--x); top: var(--y);
  display: flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 99px; white-space: nowrap;
  font: 600 .8125rem/1.2 var(--font-text); letter-spacing: 0;
  background: var(--chip-bg, rgba(255, 255, 255, .08)); color: inherit;
  box-shadow: inset 0 0 0 1px var(--chip-edge, rgba(255, 255, 255, .14)), 0 10px 22px rgba(0, 0, 0, .14);
  rotate: var(--r);
  transition: scale .4s var(--ease-bounce), background .3s, opacity .6s var(--ease-apple) var(--cd, 0s), translate 1s var(--ease-bounce) var(--cd, 0s);
}
.js .chip-f { opacity: 0; translate: 0 -40px; }
.js .scene.is-active .chip-f { opacity: 1; translate: 0 0; --cd: calc(.5s + var(--k) * 90ms); }
.scene.is-active .chip-f { animation: chip-float 6s ease-in-out infinite; animation-delay: calc(var(--k) * -1.1s); }
@keyframes chip-float { 50% { transform: translateY(-6px); } }
button.chip-f:hover { scale: 1.07; }
button.chip-f:active { scale: .94; }
.world-light .chip-f { --chip-bg: #fff; --chip-edge: rgba(0, 0, 0, .06); }
/* the switch */
.tile--toggle { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.tg-copy { display: flex; flex-direction: column; gap: 3px; }
.tg-copy b { font: 700 1rem/1.2 var(--font-display); letter-spacing: -.01em; }
.tg-state { font: 500 .8125rem/1.2 var(--font-text); color: var(--muted); }
.switch { position: relative; flex: none; width: 92px; height: 50px; border-radius: 25px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06); transition: background .5s var(--ease-apple); }
.switch i { position: absolute; inset-block-start: 4px; inset-inline-start: 4px; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 34% 30%, #ffe0c2 0%, #ff8a3d 30%, #ff2d6f 66%, #a6127e 100%); box-shadow: 0 6px 14px rgba(255, 70, 90, .45); transition: translate .55s var(--ease-bounce); }
.switch img { width: 150%; max-width: none; margin: -25%; mix-blend-mode: screen; }
.is-on .switch { background: color-mix(in srgb, #ff2d6f 40%, #2a0c1c); }
.is-on .switch i { translate: 42px 0; }

/* ══ TIDHAR - a light world with no frames ════════════════════
   Nothing sits in a card here: the phone, the building and the app's
   own cards float on the world, each with its own soft shadow. */
.tile.bare { background: none; box-shadow: none; padding: 0; overflow: visible; }
.tile.bare::before { display: none; }
.tile--hero-bare { justify-content: flex-start; gap: 14px; padding: 4px 4px 0; }
.tile--hero-bare .hero-top { justify-content: flex-start; gap: 18px; color: #3d5a50; }
.tile--hero-bare .hero-name { font-size: min(clamp(3.5rem, 7vw, 7.25rem), 38cqh, calc(100cqw / var(--len, 8) * 1.45)); }
.tile--hero-bare .hero-line { font-size: clamp(1rem, 1.35vw, 1.3125rem); max-width: 30ch; color: #2c3e37; opacity: 1; }
.tile--hero-bare .hero-foot { justify-content: flex-start; gap: 18px; margin-block-start: auto; }
.tile--hero-bare .hero-scope { display: none; }
.tile--hero-bare .hero-scope span { background: rgba(255, 255, 255, .7); box-shadow: 0 4px 12px rgba(15, 61, 49, .08); color: #0f3d31; }
.ui-card { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 28px; background: #fff; color: #14332b; box-shadow: 0 40px 70px -40px rgba(15, 61, 49, .45), 0 2px 6px rgba(15, 61, 49, .05); letter-spacing: 0; transition: transform .8s var(--ease-spring), box-shadow .8s var(--ease-spring); }
.tile.bare:hover .ui-card { transform: translateY(-6px); box-shadow: 0 50px 80px -40px rgba(15, 61, 49, .5), 0 2px 6px rgba(15, 61, 49, .05); }
/* the 3D family, no words */
.icons-card { container-type: inline-size; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 22px; }
.constellation { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; }
.constellation span { display: grid; place-items: center; }
.constellation img { width: min(38cqi, 104px); filter: drop-shadow(0 14px 16px rgba(20, 51, 43, .2)); animation: icon-bob 5s ease-in-out infinite; animation-delay: calc(var(--i) * -1.25s); }
.icons-card .tile-k { text-align: center; color: #7a8f87; }
@keyframes icon-bob { 50% { transform: translateY(-7px) rotate(-3deg); } }
/* the site, in a photo: a play button and three words */
.photo-card { background: url(assets/tidhar/site-photo.jpg) center 60% / cover; display: grid; place-items: center; }
.photo-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 38, 30, .55)); }
.photo-card .update-play { position: relative; inset: auto; z-index: 2; width: 58px; height: 58px; box-shadow: 0 0 0 10px rgba(255, 255, 255, .25), 0 12px 30px rgba(0, 0, 0, .3); }
.scene.is-active .photo-card .update-play { animation: play-pulse 2.8s ease-in-out infinite; }
@keyframes play-pulse { 50% { box-shadow: 0 0 0 18px rgba(255, 255, 255, .08), 0 12px 30px rgba(0, 0, 0, .3); } }
.update-play svg { width: 14px; height: 14px; margin-inline-start: 3px; }
.photo-tag { position: absolute; z-index: 2; inset-block-end: 16px; inset-inline-start: 16px; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font: 600 .75rem/1 var(--font-text); }
.tile.bare:hover .photo-card { background-size: auto 112%; }
.update-play { display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .94); color: #0e4a3b; }
/* the building, floating, and the four stages on the app's arc */
.tile--tidhar-building { display: block; }
.stage-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage-arc path { fill: none; stroke: #9cb8ad; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.arc-stage {
  position: absolute; z-index: 3; width: clamp(46px, 4.4vw, 62px); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; background: #fff; box-shadow: 0 10px 22px rgba(15, 61, 49, .2);
  transition: scale .6s var(--ease-bounce), box-shadow .4s var(--ease-apple);
}
.arc-stage:nth-of-type(1) { left: 14%; top: 12%; }
.arc-stage:nth-of-type(2) { left: 7.8%; top: 38%; }
.arc-stage:nth-of-type(3) { left: 7.8%; top: 64%; }
.arc-stage:nth-of-type(4) { left: 14%; top: 90%; }
.arc-stage img { width: 100%; height: 100%; padding: 4px; border-radius: 50%; object-fit: contain; }
.arc-stage.is-on { scale: 1.2; box-shadow: 0 0 0 4px #e9c46a, 0 14px 28px rgba(15, 61, 49, .3); }
.arc-stage.is-done::after { content: '✓'; position: absolute; inset-block-start: -2px; inset-inline-end: -2px; width: 18px; height: 18px; border-radius: 50%; background: #2fa37f; color: #fff; font: 700 .625rem/18px var(--font-text); text-align: center; }
.js .arc-stage { opacity: 0; scale: .4; }
.js .scene.is-active .arc-stage { opacity: 1; scale: 1; transition-delay: calc(.5s + var(--i) * .12s); }
.js .scene.is-active .arc-stage.is-on { scale: 1.2; transition-delay: 0s; }
.building-float { position: absolute; z-index: 2; inset-inline-end: 0; inset-block-end: 8%; width: 74%; filter: drop-shadow(0 26px 30px rgba(15, 61, 49, .28)); animation: icon-bob 7s ease-in-out infinite; }
.building-shadow { position: absolute; z-index: 1; inset-inline: 34% 6%; inset-block-end: 4%; height: 22px; border-radius: 50%; background: radial-gradient(closest-side, rgba(15, 61, 49, .28), transparent); animation: shadow-breathe 7s ease-in-out infinite; }
@keyframes shadow-breathe { 50% { transform: scaleX(.86); opacity: .7; } }
/* the phone, standing free, with its drawer rising as you scroll -
   three layers of the same screen: the green head that stays, the white
   drawer that climbs over it and then scrolls, and the tab bar on top */
.tile--tidhar-phone { container-type: size; }
.tile--tidhar-phone .phone { width: min(100cqw, calc(100cqh * .45)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), inset 0 0 0 1.5px #3a3a3c, 0 50px 80px -30px rgba(15, 61, 49, .55); }
.drawer-demo { container-type: inline-size; background: #0f4d3d; }
.dd-bg { position: absolute; inset: 0 0 auto; width: 100%; }
.dd-dim { position: absolute; inset: 0; background: #06231b; opacity: 0; }
.dd-sheet { position: absolute; inset-inline: 0; top: calc(358 / 390 * 100cqw); height: 400cqw; overflow: hidden; border-radius: 6cqw 6cqw 0 0; }
.dd-sheet img { width: 100%; margin-block-start: calc(-358 / 390 * 100cqw); }
.dd-tabs { position: absolute; z-index: 3; inset-inline: 0; inset-block-end: 0; height: calc(96 / 390 * 100cqw); background: url(assets/tidhar/home-e2.png) center bottom / 100% auto no-repeat; }
.dd-touch { position: absolute; z-index: 4; left: 50%; top: 78%; width: 13cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: rgba(255, 255, 255, .35); box-shadow: 0 0 0 1.2cqw rgba(255, 255, 255, .25), 0 4cqw 10cqw rgba(0, 0, 0, .25); opacity: 0; }
.scene.is-active .dd-sheet { animation: dd-rise 9s var(--ease-apple) .8s infinite; }
.scene.is-active .dd-sheet img { animation: dd-scroll 9s var(--ease-apple) .8s infinite; }
.scene.is-active .dd-dim { animation: dd-dim 9s var(--ease-apple) .8s infinite; }
.scene.is-active .dd-touch { animation: dd-touch 9s var(--ease-apple) .8s infinite; }
@keyframes dd-rise   { 0%, 12% { transform: none; box-shadow: none; } 34%, 84% { transform: translateY(-68cqw); box-shadow: 0 -3cqw 10cqw rgba(0, 0, 0, .25); } 98%, 100% { transform: none; box-shadow: none; } }
@keyframes dd-scroll { 0%, 38% { transform: none; } 60%, 74% { transform: translateY(-112cqw); } 86%, 100% { transform: none; } }
@keyframes dd-dim    { 0%, 12% { opacity: 0; } 34%, 84% { opacity: .38; } 98%, 100% { opacity: 0; } }
@keyframes dd-touch  { 0%, 9% { opacity: 0; top: 80%; } 13% { opacity: 1; top: 80%; } 32% { opacity: 1; top: 40%; } 36% { opacity: 0; top: 36%; }
                       40% { opacity: 0; top: 78%; } 43% { opacity: 1; top: 78%; } 58% { opacity: 1; top: 40%; } 62%, 100% { opacity: 0; top: 36%; } }
.tile--tidhar-phone .proto-btn { position: absolute; z-index: 4; left: 50%; inset-block-end: 4%; translate: -50% 0; }
.proto-btn {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px 8px 12px; border-radius: 99px;
  background: rgba(20, 30, 26, .55); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 .5px rgba(255, 255, 255, .16);
  color: #fff; font: 600 .75rem/1 var(--font-text); letter-spacing: 0; white-space: nowrap;
  transition: background .3s var(--ease-apple), transform .3s var(--ease-bounce);
}
.proto-btn:hover { background: rgba(20, 30, 26, .75); }
.proto-btn:active { transform: scale(.95); }
.proto-btn svg { width: 9px; height: 9px; }
.is-live .proto-btn { background: #2fa37f; }
.proto-frame { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; border: 0; background: #0b2f26; }
.is-live .scroller .shot { visibility: hidden; }
.tile--tidhar-proto { justify-content: center; align-items: flex-start; }
.proto-cta {
  display: flex; align-items: center; gap: 12px; padding: 10px 22px 10px 10px; border-radius: 99px;
  background: #0f3d31; color: #fff; font: 600 .9375rem/1.15 var(--font-display); letter-spacing: -.01em; text-align: start;
  box-shadow: 0 20px 40px -16px rgba(15, 61, 49, .6), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .4s var(--ease-bounce), background .4s;
}
.proto-cta svg { flex: none; width: 40px; height: 40px; padding: 13px 12px 13px 14px; border-radius: 50%; background: #e9c46a; color: #0f3d31; }
.proto-cta:hover { transform: translateY(-3px); }
.proto-cta:active { transform: scale(.96); }
.is-live .proto-cta { background: #2fa37f; }

/* ══ CHECK-IN - a night world, and the orb ════════════════════ */
.socket--checkin .socket-core::before { content: ''; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 110, .45), transparent 65%); filter: blur(14px); animation: breathe 5s ease-in-out infinite; }
.orb { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), 0 0 0 11px rgba(11, 42, 74, .06), 0 30px 60px rgba(239, 2, 77, .35); }
.orb img { border-radius: 50%; }
.orb img { width: 100%; height: 100%; animation: float 6s ease-in-out infinite; transition: transform .6s var(--ease-bounce), filter .6s var(--ease-apple); }
.orb:hover img { transform: scale(1.06); filter: brightness(1.1); }
.orb::after { content: ''; position: absolute; inset: 24%; border-radius: 50%; border: 2px solid rgba(255, 140, 90, .9); opacity: 0; pointer-events: none; }
.orb.is-pulse::after { animation: ring .9s var(--ease-apple); }
@keyframes ring { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.7); } }
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes breathe { 50% { transform: scale(1.1); opacity: .55; } }
.tile--checkin-phone { background: radial-gradient(120% 70% at 30% 90%, #3a0f22 0%, #1a0f15 64%); }
.orb-aura { position: absolute; z-index: 0; inset-inline-start: -40%; inset-block-end: -10%; width: 180%; max-width: none; filter: blur(40px); opacity: .4; animation: breathe 7s ease-in-out infinite; pointer-events: none; }
/* the phone: scroll the home screen; the assistant opens out of the orb */
.phone--live .screen { container-type: inline-size; }
.screen-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.screen-scroll::-webkit-scrollbar { display: none; }
.fab, .chat-head img { border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffe0c2 0%, #ff8a3d 30%, #ff2d6f 66%, #a6127e 100%); box-shadow: 0 6px 18px rgba(255, 70, 90, .4); }
.fab { position: absolute; z-index: 3; inset-inline-start: 7cqw; inset-block-end: 9cqw; width: 19cqw; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; transition: transform .35s var(--ease-bounce); }
.fab img { width: 100%; height: 100%; }
.is-pressing .fab { transform: scale(.82); }
.is-burst .fab { transform: scale(1.3); opacity: 0; transition: transform .5s var(--ease-apple), opacity .3s .1s; }
.burst {
  position: absolute; z-index: 4; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 16% 91%, #ffe0c2 0%, #ff8a3d 18%, #ff2d6f 45%, #a6127e 80%);
  clip-path: circle(0 at 16.5% 91.5%);
  transition: clip-path .6s cubic-bezier(.65, 0, .35, 1), opacity .5s ease .35s;
}
.is-burst .burst { clip-path: circle(160% at 16.5% 91.5%); }
.is-chat .burst { opacity: 0; }
.chat {
  position: absolute; z-index: 5; inset: 0;
  display: flex; flex-direction: column;
  padding: 13cqw 5cqw 5cqw;
  background: #fff; color: #1d1d1f;
  font: 500 5.4cqw/1.35 var(--font-text); letter-spacing: 0;
  opacity: 0; transform: translateY(6cqw) scale(.97); pointer-events: none;
  transition: opacity .45s var(--ease-apple), transform .7s var(--ease-spring);
}
.tile--checkin-phone.is-chat .chat, .fx-fa.is-chat .chat { opacity: 1; transform: none; pointer-events: auto; }
.chat-head { display: flex; align-items: center; gap: 2.5cqw; padding-block-end: 3cqw; border-block-end: 1px solid #f0ebe6; }
.chat-head img { width: 8cqw; height: 8cqw; object-fit: cover; }
.is-chat .chat-head img { animation: avatar-in .7s var(--ease-bounce) .2s backwards; }
@keyframes avatar-in { from { transform: scale(2.4); } }
.chat-head b { font-weight: 700; flex: 1; }
.chat-x { width: 8cqw; height: 8cqw; border-radius: 50%; background: #f2f2f4; font-size: 4cqw; color: #6e6e73; }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3cqw; padding-block: 4cqw; scrollbar-width: none; }
.chat-log::-webkit-scrollbar { display: none; }
.msg { max-width: 86%; animation: msg-in .45s var(--ease-spring); }
.msg--ai { align-self: flex-start; padding-inline-start: 7cqw; position: relative; }
.msg--ai::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: .3em; width: 5cqw; height: 5cqw; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffe0c2, #ff8a3d 30%, #ff2d6f 66%, #a6127e); }
.msg--me { align-self: flex-end; padding: 2.5cqw 4cqw; border-radius: 5cqw; background: #f5efe9; }
.msg--typing { display: flex; gap: 1.5cqw; padding-block: 1.5cqw; }
.msg--typing i { width: 2cqw; height: 2cqw; border-radius: 50%; background: #c7c7cc; animation: dot 1s ease-in-out infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; }
.msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 40% { transform: translateY(-1.5cqw); background: #ff6a3d; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(3cqw); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 2cqw; padding-block: 2cqw; }
.chat-chips button { padding: 1.6cqw 3.2cqw; border-radius: 99px; border: 1px solid #ece6e0; background: #fff; font-size: 4.8cqw; font-weight: 600; transition: background .25s, transform .25s var(--ease-bounce); }
.is-chat .chat-chips button { animation: chip-in .5s var(--ease-spring) backwards; }
.is-chat .chat-chips button:nth-child(1) { animation-delay: 1.5s; }
.is-chat .chat-chips button:nth-child(2) { animation-delay: 1.62s; }
.is-chat .chat-chips button:nth-child(3) { animation-delay: 1.74s; }
@keyframes chip-in { from { opacity: 0; transform: translateY(3cqw) scale(.9); } }
.chat-chips button:hover { background: #fff3ec; }
.chat-chips button:active { transform: scale(.94); }
.chat-input { display: flex; align-items: center; gap: 2cqw; padding: 3cqw 4cqw; border-radius: 4cqw; background: #faf7f4; border: 1px solid #f0ebe6; color: #8e8e93; }
.chat-input i { font-style: normal; color: #ff2d6f; }
/* the resort: the app's promise, in its own photo */
.tile--checkin-resort { justify-content: space-between; color: #fff; background: #0b0a0d; }
.resort-photo { position: absolute; inset: 0; z-index: 0; background: url(assets/work/checkin-resort.jpg) center 62% / cover; transition: scale 6s linear; }
.tile--checkin-resort::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(170deg, rgba(10, 8, 12, .7) 0%, rgba(10, 8, 12, .1) 50%, rgba(10, 8, 12, .55)); }
.tile--checkin-resort:hover .resort-photo { scale: 1.08; }
.resort-line { position: relative; z-index: 2; align-self: flex-end; padding: 7px 13px; border-radius: 99px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font: 600 .75rem/1.2 var(--font-text); letter-spacing: 0; }
.brand-word { position: relative; z-index: 2; font: 800 1.75rem/1 var(--font-display); letter-spacing: -.04em; color: #fff; display: flex; align-items: center; gap: 6px; }
.brand-word b { font-weight: 800; }
.brand-word::before { content: ''; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #ffe0c2, #ff8a3d 30%, #ff2d6f 66%, #a6127e); box-shadow: 0 4px 12px rgba(255, 70, 90, .35); }
.tile--checkin-chips .chip-f { --chip-bg: rgba(255, 255, 255, .07); }
.chip-f--price { --chip-bg: #fff !important; color: #1d1d1f; font-size: 1.0625rem; font-weight: 800; padding: 10px 16px; }
.chip-f--price small { font-size: .75rem; font-weight: 600; color: #6e6e73; }
.chip-f--orb { width: 64px; height: 64px; padding: 0; justify-content: center; overflow: hidden; --chip-bg: radial-gradient(circle at 34% 30%, #ffe0c2 0%, #ff8a3d 30%, #ff2d6f 66%, #a6127e 100%) !important; box-shadow: 0 0 0 6px rgba(255, 255, 255, .06), 0 12px 26px rgba(255, 45, 111, .45) !important; }
.chip-f--orb img { width: 100%; }

/* ══ BANK HAPOALIM - a light world, red in the elements ═══════ */
.tile--award { background: linear-gradient(180deg, #fffaf0 0%, #fbf0d8 100%); justify-content: flex-end; }
.trophy-stage { position: absolute; inset: 0 0 40%; display: grid; place-items: center; }
.trophy-rays { position: absolute; width: 120%; aspect-ratio: 1; background: repeating-conic-gradient(from 0deg, rgba(233, 196, 106, .28) 0 6deg, transparent 6deg 18deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 70%); mask: radial-gradient(closest-side, #000 20%, transparent 70%); }
.scene.is-active .trophy-rays { animation: spin 40s linear infinite; }
.icon3d--trophy { position: relative; width: min(58%, 150px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 22px rgba(184, 134, 43, .4)); animation: float 6s ease-in-out infinite; }
.tile--award .feat-k { color: #b8862b; }
.hero-diamond { position: absolute; z-index: 2; inset-inline-end: 10%; inset-block-start: 30%; width: 92px; aspect-ratio: 1; border-radius: 18px; rotate: 45deg; background: linear-gradient(135deg, #fff 0%, #ffe3e6 100%); box-shadow: 0 24px 44px rgba(120, 0, 10, .35), inset 0 2px 0 #fff; animation: icon-bob 7s ease-in-out infinite; }
.hero-diamond::after { content: ''; position: absolute; inset: 26%; border-radius: 10px; background: #e7192e; }
.tile--hapoalim-hero .tile-img { object-position: 50% 62%; }
.devices { position: absolute; z-index: 1; inset: 12% 12% 48% 12%; pointer-events: none; }
.dev-web { position: absolute; inset: 0 14% 8% 0; border-radius: 12px; background: #fbf6ec; box-shadow: 0 10px 24px rgba(0, 0, 0, .1), inset 0 0 0 1px rgba(0, 0, 0, .05); display: flex; flex-direction: column; gap: 7px; padding: 24px 12px 12px; transition: transform .8s var(--ease-spring); }
.dev-web::before { content: ''; position: absolute; inset: 9px auto auto 10px; width: 26px; height: 6px; background: radial-gradient(circle 3px, #e7192e 98%, transparent) 0 0 / 9px 6px repeat-x; opacity: .6; }
.dev-web b { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .07); }
.dev-web b:first-child { height: 26px; border-radius: 6px; background: #e7192e; width: 70%; }
.dev-web b:last-child { width: 55%; }
.dev-app { position: absolute; inset-inline-end: 0; inset-block-end: -10%; width: 30%; aspect-ratio: 9 / 18; border-radius: 12px; background: #fff; border: 3px solid #1d1d1f; box-shadow: 0 14px 26px rgba(0, 0, 0, .2); display: flex; flex-direction: column; gap: 5px; padding: 14px 6px 6px; transition: transform .8s var(--ease-spring); }
.dev-app b { height: 18%; border-radius: 5px; background: #e7192e; }
.dev-app b + b { height: 8%; background: rgba(0, 0, 0, .08); }
.tile--hapoalim-scope:hover .dev-web { transform: translate(-4px, -4px); }
.tile--hapoalim-scope:hover .dev-app { transform: translate(4px, -8px) rotate(4deg); }
.tile--hapoalim-mq { background: #e7192e; color: #fff; }

/* ══ MACCABIAH - a deep world, the Games' own colours ═════════ */
.tile--hero-mac { padding: 0; }
.tile--hero-mac .collage { position: absolute; inset: -10%; z-index: 0; background: url(assets/work/mac-collage.jpg) center / cover; translate: calc(var(--px, 0) * -14px) calc(var(--py, 0) * -10px); transition: translate 1s var(--ease-spring), scale 1.4s var(--ease-spring); }
.tile--hero-mac:hover .collage { scale: 1.05; }
.tile--hero-mac::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26, 22, 80, .55) 0%, rgba(26, 22, 80, .1) 40%, rgba(26, 22, 80, .85) 100%); }
.tile--hero-mac > :is(.hero-top, .hero-main, .hero-foot) { margin: clamp(20px, 2vw, 30px); }
.tile--hero-mac .hero-main { margin-block: auto 0; }
.tile--hero-mac .hero-name { font-size: min(clamp(3rem, 5.6vw, 6rem), 31cqh, calc((100cqw - 64px) / var(--len, 8) * 1.4)); }
.tile--hero-mac .hero-top, .tile--hero-mac .hero-foot { margin-block: clamp(20px, 2vw, 30px); }
.sticker { position: absolute; z-index: 2; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); transition: translate 1s var(--ease-spring); pointer-events: none; }
.sticker--comet   { width: 22%; inset-inline-end: 6%; inset-block-start: 14%; translate: calc(var(--px, 0) * 30px) calc(var(--py, 0) * 24px); animation: icon-bob 7s ease-in-out infinite; }
.sticker--arc     { width: 16%; inset-inline-end: 30%; inset-block-start: 8%; translate: calc(var(--px, 0) * -22px) calc(var(--py, 0) * -16px); animation: icon-bob 8s ease-in-out infinite reverse; }
.tile--mac-phone { background: radial-gradient(110% 70% at 50% 100%, #3b4bd8 0%, #1d1a5c 72%); }
.tile--mac-mq { background: #2a2470; }
.tile--mac-mq .mq span { color: var(--c); text-transform: uppercase; }
.tile--mac-mq .mq span[style*="#fff"] { text-transform: none; }
.tile--mac-badge { background: #f7b52c; color: #2a2470; justify-content: flex-end; align-items: center; }
.mac-badge { position: absolute; left: 50%; inset-block-start: 44%; width: 74%; translate: -50% -50%; animation: badge-spin 14s linear infinite; filter: drop-shadow(0 12px 18px rgba(42, 36, 112, .3)); }
@keyframes badge-spin { 50% { rotate: 8deg; scale: 1.04; } }
.mac-tag { position: relative; z-index: 2; font: 800 .75rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; }
.tile--mac-kit { background: #f0566e; color: #fff; justify-content: flex-end; }
.sticker--quarter { width: 40%; inset-inline-end: -4%; inset-block-end: -8%; animation: icon-bob 6s ease-in-out infinite; }
.sticker--comet2 { width: 34%; inset-inline-start: 10%; inset-block-start: 10%; animation: icon-bob 7s ease-in-out infinite reverse; }
.sticker--arc2 { width: 24%; inset-inline-end: 22%; inset-block-start: 6%; animation: icon-bob 5s ease-in-out infinite; }
.tile--mac-kit:hover .sticker { translate: 0 -8px; }
.mac-label { position: relative; z-index: 3; align-self: flex-start; padding: 8px 12px 10px; background: #fff; color: #2a2470; }
.mac-label p { font: 700 .6875rem/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #00aee9; }
.mac-label h3 { font: 900 1.375rem/1.05 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }

/* ══ RE:BAR - a lime world, white and black ═══════════════════ */
.tile--hero-rebar .hero-name { font-weight: 800; letter-spacing: -.065em; }
.loop { position: absolute; z-index: 2; inset-inline-start: -6%; width: 112%; overflow: visible; pointer-events: none; }
.loop path { fill: none; stroke: #000; stroke-width: 18; stroke-linecap: round; stroke-dasharray: 3521; stroke-dashoffset: 3521; }
.loop--hero { inset-block-end: -4%; width: 78%; inset-inline-start: auto; inset-inline-end: -8%; }
.tile--hero-rebar .hero-main { position: relative; z-index: 3; }
.scene.is-active .loop path { animation: draw 2.6s cubic-bezier(.65, 0, .35, 1) .6s forwards; }
.tile:hover .loop path { animation: redraw 1.8s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes redraw { 0% { stroke-dashoffset: 3521; } 100% { stroke-dashoffset: 0; } }
.tile--rebar-cups { padding: 16px; background: #6f9e8f url(assets/work/rebar-cups.jpg) no-repeat center / auto 118%; transition: background-position 1.4s var(--ease-spring); }
.tile--rebar-cups:hover { background-position: 68% 50%; }
.pill { position: relative; z-index: 3; align-self: flex-start; padding: 6px 13px; border-radius: 99px; background: #000; color: #fff; font: 600 .75rem/1.2 var(--font-text); }
.tile--rebar-q { --juice: #5ea531; --level: 18%; background: #fff; color: #000; }
.rebar-q-text { position: relative; z-index: 2; font: 800 1.75rem/.98 var(--font-display); letter-spacing: -.05em; }
.rebar-hint { position: relative; z-index: 2; margin-block-start: 8px; font: 600 .75rem/1 var(--font-text); color: #6e6e73; }
.drink { position: absolute; z-index: 1; inset-inline: 0; inset-block-end: 0; height: var(--level); background: var(--juice); transition: height 1.2s var(--ease-spring), background .8s var(--ease-apple); }
.wave { position: absolute; inset-block-start: -9px; inset-inline-start: 0; width: 200%; height: 10px; background: radial-gradient(circle at 10px 0, transparent 9px, var(--juice) 10px) 0 0 / 20px 10px repeat-x; animation: wave 2.4s linear infinite; }
@keyframes wave { to { transform: translateX(-20px); } }
.tile--rebar-stats { background: #5ea531; color: #fff; justify-content: center; align-items: center; }
.stat-flip { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.stat-flip b { font: 800 clamp(2.5rem, 4vw, 3.75rem)/1 var(--font-display); letter-spacing: -.05em; direction: ltr; font-variant-numeric: tabular-nums; }
.stat-flip span { font: 600 .9375rem/1.2 var(--font-text); letter-spacing: 0; opacity: .9; }
.spark { position: absolute; inset: auto 0 0; width: 100%; height: 34%; overflow: visible; }
.spark { clip-path: inset(0 100% 0 0); }
.spark path { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.scene.is-active .spark { animation: spark 2.2s var(--ease-apple) .5s forwards; }
@keyframes spark { to { clip-path: inset(0 0 0 0); } }
.tile--rebar-punch { background: #000; color: #5ea531; justify-content: space-between; padding: 20px 22px; }
.tile--rebar-punch::after { content: ''; position: absolute; inset: 0; z-index: 0; background: repeating-linear-gradient(135deg, transparent 0 22px, rgba(94, 165, 49, .06) 22px 23px); pointer-events: none; }
.punch-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: baseline; }
.punch-logo { font: 800 2.125rem/1 var(--font-display); letter-spacing: -.06em; }
.rb-word { font: 700 1.125rem/1 var(--font-display); letter-spacing: -.04em; color: #5ea531; }
.rb-word b { color: #fff; font-weight: 700; }
.punch-cups { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.punch-cups i { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: 10px; background: rgba(255, 255, 255, .08); color: rgba(94, 165, 49, .45); transition: background .3s var(--ease-apple), color .3s; }
.punch-cups svg { width: 62%; }
.punch-cups i.is-on { background: #5ea531; color: #000; }
.punch-cups i.is-on svg path:first-child { fill: currentColor; }
.scene.is-active .punch-cups i { animation: cup-in .6s var(--ease-bounce) backwards; animation-delay: calc(.6s + var(--i) * 50ms); }
@keyframes cup-in { from { transform: translateY(14px) scale(.7); opacity: 0; } }
.punch-line { position: relative; z-index: 2; align-self: flex-end; font: 700 .875rem/1.2 var(--font-text); letter-spacing: 0; color: #fff; }
.tile--rebar-punch.is-full { background: #5ea531; color: #000; }
.tile--rebar-punch.is-full .punch-line, .tile--rebar-punch.is-full .rb-word b { color: #000; }
.tile--rebar-punch.is-full .rb-word { color: #2f5a14; }
.tile--rebar-mq { background: #000; }
.tile--rebar-product { background: #fff; color: #000; align-items: center; justify-content: space-between; padding: 14px; text-align: center; }
.product-cup { width: 66%; flex: 1; min-height: 0; background: url(assets/work/rebar-cups.jpg) no-repeat 36.6% 72% / 560% auto; border-radius: 16px; transition: transform .8s var(--ease-spring); }
.tile--rebar-product:hover .product-cup { transform: translateY(-4px) rotate(-3deg); }
.product-copy { display: flex; flex-direction: column; gap: 2px; margin-block: 8px; }
.product-copy b { font: 700 1rem/1.1 var(--font-display); letter-spacing: -.03em; }
.product-copy span { font: 400 .6875rem/1.3 var(--font-text); color: #6e6e73; letter-spacing: 0; }
.product-add { padding: 8px 18px; border-radius: 99px; background: #000; color: #fff; font: 600 .8125rem/1 var(--font-text); letter-spacing: 0; transition: transform .3s var(--ease-bounce), background .3s; }
.product-add:active { transform: scale(.94); }
.product-badge { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: 11px; background: #5ea531; color: #fff; font: 700 .75rem/22px var(--font-text); font-style: normal; text-align: center; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s var(--ease-bounce); }
.has-items .product-badge { opacity: 1; transform: none; }
.tile--rebar-app { background: #5ea531; color: #000; justify-content: space-between; }
.rb-heavy { position: relative; z-index: 3; font: 800 2.25rem/.92 var(--font-display); letter-spacing: -.06em; }
.loop--small { inset-inline-start: -30%; inset-block-end: 18%; width: 170%; }
.loop--small path { stroke-width: 26; }
.rb-meta { position: relative; z-index: 3; font: 600 .75rem/1 var(--font-text); color: #2f5a14; }

/* ══ BALCONY - a soft world: white cards, coral light ═════════
   The refresh, drawn on a 390-wide screen: every size below is in
   --u (one point on that screen), so it scales with the phone. */
.tile--sos { container-type: size; justify-content: flex-end; align-items: stretch; }
.tile--sos::before { display: none; }
.tile--sos::after { content: ''; position: absolute; inset: -20% -20% auto; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 90, 95, .4), transparent); z-index: 0; }
.sos-core {
  position: absolute; z-index: 2; left: 50%; inset-block-start: 42%; translate: -50% -50%;
  width: min(50%, 34cqh, 150px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: radial-gradient(circle at 36% 28%, #ff9a8f 0%, #ff5a5f 50%, #d93a45 100%); color: #fff;
  box-shadow: inset 0 4px 10px rgba(255, 255, 255, .35), inset 0 -10px 20px rgba(150, 20, 30, .3), 0 24px 50px rgba(255, 90, 95, .45);
  transition: scale .3s var(--ease-bounce), background .5s; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.sos-core::before, .sos-core::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 90, 95, .55); animation: sos-wave 2.6s ease-out infinite; pointer-events: none; }
.sos-core::after { animation-delay: 1.3s; }
@keyframes sos-wave { from { transform: scale(1); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.sos-core b { font: 800 clamp(1.75rem, 2.6vw, 2.5rem)/1 var(--font-display); letter-spacing: .02em; }
.sos-core span { font: 600 .75rem/1 var(--font-text); opacity: .85; }
.sos-core svg { position: absolute; inset: -7px; width: calc(100% + 14px); height: calc(100% + 14px); rotate: -90deg; overflow: visible; }
.sos-core circle { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: 289; }
.sos-core.is-holding { scale: .94; }
.sos-core.is-holding circle { stroke-dashoffset: 0; transition: stroke-dashoffset 3s linear; }
.tile--sos.is-sent .sos-core { background: radial-gradient(circle at 36% 28%, #7be29a 0%, #34c759 55%, #1f9a44 100%); }
.tile--sos.is-sent .sos-core b { font-size: 0; }
.tile--sos.is-sent .sos-core b::after { content: '✓'; font-size: clamp(2rem, 3vw, 3rem); }
.tile--sos.is-sent .sos-core span { font-size: 0; }
.tile--sos.is-sent .sos-core span::after { content: 'Sent'; font-size: .75rem; }
.tile--sos .illo-copy, .tile--room .illo-copy { position: relative; z-index: 2; }
.hero-logo { position: absolute; z-index: 2; inset-inline-end: 8%; inset-block-start: 26%; width: 112px; border-radius: 28px; rotate: -8deg; box-shadow: 0 30px 50px rgba(255, 90, 95, .4); animation: icon-bob 7s ease-in-out infinite; }
.tile--balcony-phone { background: radial-gradient(120% 60% at 50% 100%, #ffe4df 0%, #fff 70%); }
.tile--balcony-before { background: #f3f1ee; justify-content: space-between; }
.before-phone { position: absolute; left: 50%; inset-block-start: 54%; translate: -50% -50%; width: 52%; aspect-ratio: 390 / 844; border-radius: 18px; padding: 3px; background: #c7c7cc; overflow: hidden; transition: rotate 1s var(--ease-spring), scale 1s var(--ease-spring); }
.tile--balcony-before:hover .before-phone { rotate: -4deg; scale: .96; }
.before-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; filter: saturate(.6); opacity: .9; }
.before-tag, .after-tag { position: relative; z-index: 2; font: 600 .8125rem/1 var(--font-text); }
.before-tag { color: #8e8e93; }
.after-tag { align-self: flex-end; color: #ff5a5f; }
.bal-screen { container-type: inline-size; background: #f6f5f2; }
.bal {
  --u: calc(100cqw / 390); --coral: #ff5a5f; --ink: #141516;
  position: absolute; inset: 0; overflow: hidden;
  font-family: var(--font-text); color: var(--ink); letter-spacing: 0;
  background: #ece8df url(assets/work/balcony-map.png) center 62% / cover;
}
.bal::after { content: ''; position: absolute; inset: 0; z-index: 7; background: rgba(0, 0, 0, .28); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease-apple); }
.bal.is-sheet::after { opacity: 1; }
.bal::before { content: ''; position: absolute; inset: 0 0 auto; height: calc(240 * var(--u)); z-index: 1; background: linear-gradient(#f6f5f2 0%, rgba(246, 245, 242, .85) 62%, transparent); pointer-events: none; }
.glass-l {
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 .5px rgba(0, 0, 0, .06), 0 calc(6 * var(--u)) calc(22 * var(--u)) rgba(0, 0, 0, .08);
}
.bal svg { width: 100%; height: 100%; }
.bal-head { position: absolute; z-index: 5; inset-block-start: calc(54 * var(--u)); inset-inline: calc(16 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); }
.bal-privacy { flex: 1; height: calc(46 * var(--u)); border-radius: calc(23 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); padding-inline: calc(16 * var(--u)); font: 600 calc(15 * var(--u))/1 var(--font-text); text-align: start; }
.bal-privacy i { width: calc(18 * var(--u)); height: calc(18 * var(--u)); color: var(--coral); }
.bal-privacy b { margin-inline-start: auto; opacity: .35; font-size: calc(18 * var(--u)); }
.bal-avatar { width: calc(46 * var(--u)); height: calc(46 * var(--u)); flex: none; border-radius: 50%; background: #cdeed7; display: grid; place-items: center; font-size: calc(24 * var(--u)); box-shadow: 0 0 0 calc(2 * var(--u)) #fff; }
.bal-actions { position: absolute; z-index: 5; inset-block-start: calc(114 * var(--u)); inset-inline: calc(10 * var(--u)); display: flex; justify-content: space-between; }
.bal-act { width: 25%; display: flex; flex-direction: column; align-items: center; gap: calc(6 * var(--u)); font: 500 calc(11 * var(--u))/1.2 var(--font-text); text-align: center; }
.bal-act i { width: calc(50 * var(--u)); height: calc(50 * var(--u)); border-radius: calc(16 * var(--u)); display: grid; place-items: center; padding: calc(13 * var(--u)); }
.bal-act:active i { transform: scale(.92); }
.bal-act:last-child i { background: var(--coral); color: #fff; box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(255, 90, 95, .35); }
.bal-map { position: absolute; inset: 0; z-index: 2; }
.bal-loc { position: absolute; inset-block-start: calc(222 * var(--u)); inset-inline-start: calc(16 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(9 * var(--u)) calc(14 * var(--u)); border-radius: calc(20 * var(--u)); font: 600 calc(13 * var(--u))/1 var(--font-text); }
.bal-loc i { width: calc(14 * var(--u)); height: calc(14 * var(--u)); color: var(--coral); }
.bal-ctrls { position: absolute; inset-block-start: calc(222 * var(--u)); inset-inline-end: calc(16 * var(--u)); display: flex; flex-direction: column; border-radius: calc(22 * var(--u)); overflow: hidden; }
.bal-ctrls button { width: calc(44 * var(--u)); height: calc(44 * var(--u)); padding: calc(12 * var(--u)); color: var(--ink); }
.bal-ctrls button + button { box-shadow: inset 0 .5px 0 rgba(0, 0, 0, .08); }
.bal-pin {
  position: absolute; inset-inline-start: var(--x); inset-block-start: var(--y);
  width: calc(30 * var(--u)); height: calc(30 * var(--u)); translate: -50% -50%;
  border-radius: 50%; background: var(--coral); border: calc(2.5 * var(--u)) solid #fff;
  box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(200, 40, 45, .35);
  transition: transform .4s var(--ease-bounce);
}
.bal-pin::before { content: '!'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font: 800 calc(15 * var(--u))/1 var(--font-text); }
.bal-pin::after { content: ''; position: absolute; inset: calc(-14 * var(--u)); border-radius: 50%; background: rgba(255, 90, 95, .22); z-index: -1; animation: halo 3s ease-out infinite; }
.bal-pin:nth-of-type(2)::after { animation-delay: .7s; }
.bal-pin:nth-of-type(3)::after { animation-delay: 1.4s; }
.bal-pin:nth-of-type(4)::after { animation-delay: 2.1s; }
@keyframes halo { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.bal-pin.is-on { transform: scale(1.25); }
.bal-me { position: absolute; inset-inline-start: 56%; inset-block-start: 52%; width: calc(16 * var(--u)); height: calc(16 * var(--u)); translate: -50% -50%; border-radius: 50%; background: #1a73ff; border: calc(3 * var(--u)) solid #fff; box-shadow: 0 0 0 calc(22 * var(--u)) rgba(26, 115, 255, .14); transition: opacity .4s; }
.is-hidden-me .bal-me { opacity: 0; }
.bal-card {
  position: absolute; inset-inline: calc(16 * var(--u)); inset-block-end: calc(108 * var(--u));
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: calc(2 * var(--u)) calc(10 * var(--u));
  padding: calc(14 * var(--u)) calc(16 * var(--u)); border-radius: calc(22 * var(--u));
  opacity: 0; transform: translateY(calc(16 * var(--u))); pointer-events: none;
  transition: opacity .35s var(--ease-apple), transform .55s var(--ease-spring);
}
.bal-card.is-on { opacity: 1; transform: none; pointer-events: auto; }
.bal-card-t { font: 700 calc(15 * var(--u))/1.2 var(--font-text); }
.bal-card-m { grid-row: 2; font: 500 calc(12 * var(--u))/1.3 var(--font-text); color: #6e6e73; }
.bal-card-go { grid-row: 1 / 3; grid-column: 2; padding: calc(9 * var(--u)) calc(16 * var(--u)); border-radius: calc(18 * var(--u)); background: var(--ink); color: #fff; font: 600 calc(13 * var(--u))/1 var(--font-text); }
.bal-feed {
  position: absolute; z-index: 4; inset-inline: 0; inset-block: calc(196 * var(--u)) 0;
  display: flex; flex-direction: column; gap: calc(10 * var(--u));
  padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(110 * var(--u));
  border-radius: calc(28 * var(--u)) calc(28 * var(--u)) 0 0;
  background: #fbfaf8; box-shadow: 0 calc(-8 * var(--u)) calc(30 * var(--u)) rgba(0, 0, 0, .08);
  transform: translateY(102%); transition: transform .6s var(--ease-spring);
}
.bal[data-view="feed"] .bal-feed { transform: none; }
.bal-grab { align-self: center; width: calc(38 * var(--u)); height: calc(5 * var(--u)); border-radius: 3px; background: #d1d1d6; display: block; }
.bal-seg { display: grid; grid-template-columns: 1fr 1fr; padding: calc(3 * var(--u)); border-radius: calc(14 * var(--u)); background: #eeedea; }
.bal-seg button { padding: calc(8 * var(--u)); border-radius: calc(11 * var(--u)); font: 600 calc(13 * var(--u))/1 var(--font-text); color: #6e6e73; transition: background .3s, color .3s; }
.bal-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 calc(2 * var(--u)) calc(8 * var(--u)) rgba(0, 0, 0, .08); }
.bal-search { display: flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(10 * var(--u)) calc(12 * var(--u)); border-radius: calc(12 * var(--u)); background: #eeedea; font: 500 calc(13 * var(--u))/1 var(--font-text); color: #8e8e93; }
.bal-search i { width: calc(15 * var(--u)); height: calc(15 * var(--u)); }
.bal-flag { align-self: flex-start; padding: calc(4 * var(--u)) calc(10 * var(--u)); border-radius: calc(10 * var(--u)); font: 700 calc(11 * var(--u))/1.3 var(--font-text); }
.bal-flag--help { background: #fff1dd; color: #b8701a; }
.bal-flag--urgent { background: #ffe5e6; color: #d6373d; }
.bal-event { display: flex; gap: calc(10 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(18 * var(--u)); background: #fff; box-shadow: 0 calc(2 * var(--u)) calc(12 * var(--u)) rgba(0, 0, 0, .05); }
.bal-ava { position: relative; flex: none; width: calc(38 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(12 * var(--u)); background: #dff2e3; color: #3d8a52; display: grid; place-items: center; font: 700 calc(16 * var(--u))/1 var(--font-text); }
.bal-ava i { position: absolute; inset-block-end: calc(-5 * var(--u)); inset-inline-end: calc(-5 * var(--u)); min-width: calc(18 * var(--u)); height: calc(18 * var(--u)); padding-inline: calc(4 * var(--u)); border-radius: calc(9 * var(--u)); background: var(--coral); color: #fff; font: 700 calc(10 * var(--u))/calc(18 * var(--u)) var(--font-text); font-style: normal; }
.bal-event > div { display: flex; flex-direction: column; gap: calc(3 * var(--u)); min-width: 0; }
.bal-event b { font: 700 calc(14 * var(--u))/1.25 var(--font-text); }
.bal-ev-src { display: flex; align-items: center; gap: calc(5 * var(--u)); font: 500 calc(11 * var(--u))/1 var(--font-text); color: #6e6e73; }
.bal-ev-src i { width: calc(12 * var(--u)); height: calc(12 * var(--u)); }
.bal-ev-meta { font: 500 calc(11 * var(--u))/1.2 var(--font-text); color: #8e8e93; }
.bal-tags { display: flex; gap: calc(4 * var(--u)); }
.bal-tags span { padding: calc(2 * var(--u)) calc(7 * var(--u)); border-radius: calc(8 * var(--u)); background: #f2f1ee; font: 600 calc(10 * var(--u))/1.4 var(--font-text); }
.bal-ev-last { font: 400 calc(11.5 * var(--u))/1.35 var(--font-text); color: #3a3a3c; }
.bal-ev-last b { font-size: inherit; }
.bal-tabs {
  position: absolute; z-index: 6; inset-inline: calc(14 * var(--u)); inset-block-end: calc(22 * var(--u));
  height: calc(68 * var(--u)); border-radius: calc(34 * var(--u));
  display: flex; align-items: center; padding-inline: calc(6 * var(--u));
}
.bal-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: calc(3 * var(--u)); color: #8e8e93; font: 600 calc(10 * var(--u))/1 var(--font-text); transition: color .3s; }
.bal-tab svg { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
.bal-tab.is-on { color: var(--ink); }
.bal-sos {
  position: relative; width: calc(58 * var(--u)); height: calc(58 * var(--u)); flex: none; margin-inline-end: calc(4 * var(--u));
  border-radius: 50%; background: var(--coral); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgba(255, 90, 95, .45);
  transition: transform .3s var(--ease-bounce);
  touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.bal-sos b { font: 800 calc(16 * var(--u))/1 var(--font-text); }
.bal-sos span { font: 600 calc(7 * var(--u))/1.2 var(--font-text); opacity: .9; }
.bal-sos svg { position: absolute; inset: calc(-4 * var(--u)); width: calc(100% + 8 * var(--u)); height: calc(100% + 8 * var(--u)); rotate: -90deg; }
.bal-sos circle { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; }
.bal-sos.is-holding { transform: scale(.94); }
.bal-sos.is-holding circle { stroke-dashoffset: 0; transition: stroke-dashoffset 3s linear; }
.bal-sheet {
  position: absolute; z-index: 8; inset-inline: 0; inset-block-end: 0;
  display: flex; flex-direction: column; gap: calc(8 * var(--u));
  padding: calc(12 * var(--u)) calc(16 * var(--u)) calc(30 * var(--u));
  border-radius: calc(28 * var(--u)) calc(28 * var(--u)) 0 0; background: #fff;
  transform: translateY(105%); transition: transform .6s var(--ease-spring);
}
.bal.is-sheet .bal-sheet { transform: none; }
.bal-sheet-t { font: 700 calc(18 * var(--u))/1.2 var(--font-text); margin-block: calc(4 * var(--u)); }
.bal-mode { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)); border-radius: calc(16 * var(--u)); background: #f6f5f2; text-align: start; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) transparent; transition: box-shadow .3s, background .3s; }
.bal-mode i { flex: none; width: calc(40 * var(--u)); height: calc(40 * var(--u)); padding: calc(10 * var(--u)); border-radius: calc(12 * var(--u)); background: #fff; }
.bal-mode span { display: flex; flex-direction: column; gap: calc(2 * var(--u)); font: 400 calc(11.5 * var(--u))/1.3 var(--font-text); color: #6e6e73; }
.bal-mode b { font: 700 calc(14 * var(--u))/1.2 var(--font-text); color: var(--ink); }
.bal-mode.is-on { background: #fff4f3; box-shadow: inset 0 0 0 calc(1.5 * var(--u)) var(--coral); }
.bal-mode.is-on i { color: var(--coral); }
.bal-set { margin-block-start: calc(6 * var(--u)); padding: calc(14 * var(--u)); border-radius: calc(16 * var(--u)); background: var(--ink); color: #fff; font: 600 calc(15 * var(--u))/1 var(--font-text); }
.bal-sent {
  position: absolute; z-index: 9; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  background: var(--coral); color: #fff; text-align: center;
  font: 800 calc(22 * var(--u))/1.2 var(--font-text); padding: calc(30 * var(--u));
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-apple);
}
.bal-sent span { font: 600 calc(14 * var(--u))/1 var(--font-text); opacity: .9; }
.bal.is-sent .bal-sent { opacity: 1; pointer-events: auto; }

/* ══ HOTEL - a warm world, yellow and black ═══════════════════ */
.tile--room { justify-content: flex-end; }
.room-core { position: absolute; z-index: 2; left: 50%; inset-block-start: 36%; translate: -50% -50%; width: min(72%, 200px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #2a2a2e 0%, #0d0d0f 70%); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 196, 0, .18); transition: scale .4s var(--ease-bounce); }
.room-core:active { scale: .96; }
.key-ring { position: absolute; inset: 6%; width: 88%; height: 88%; rotate: -90deg; }
.key-ring circle { fill: none; stroke: #ffcc00; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 190 74; transform-origin: 50% 50%; animation: orbit 12s linear infinite; transition: stroke-dasharray 1s var(--ease-spring), stroke .6s; }
@keyframes orbit { to { transform: rotate(360deg); } }
.tile--room.is-open .key-ring circle { stroke-dasharray: 264 0; stroke: #34c759; }
.room { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.room > span { font: 500 .8125rem/1 var(--font-text); color: #8e8e93; }
.room b { font: 600 clamp(2.25rem, 3.4vw, 3.25rem)/1 var(--font-display); letter-spacing: -.04em; }
.room em { font: 600 .75rem/1.2 var(--font-text); font-style: normal; color: #ffcc00; }
.tile--room.is-open .room em { color: #34c759; }
.tile--hero-hotel .hero-name { letter-spacing: -.055em; }
.tile--hotel-hero .tile-img { object-position: 50% 45%; }
.order-row { display: flex; align-items: center; gap: 10px; margin-block-start: 8px; }
.order-row b { font: 700 1.25rem/1 var(--font-display); }
.order-btn { padding: 9px 16px; border-radius: 99px; background: #1d1d1f; color: #fff; font: 600 .8125rem/1 var(--font-text); transition: background .4s var(--ease-apple), transform .3s var(--ease-bounce); }
.order-btn:active { transform: scale(.94); }
.is-ordered .order-btn { background: #34c759; }
.tile--hotel-chips { background: #0d0d0f; color: #fff; }
.tile--hotel-chips .chip-f { --chip-bg: rgba(255, 196, 0, .12); --chip-edge: rgba(255, 196, 0, .3); }
.tile--hotel-chips .tile-k { color: #ffcc00; }

/* ══ WORLD TEXTURES ═══════════════════════════════════════════
   Some worlds have their own paper under the bento. */
.bento { z-index: 1; }
.scene--blueprint::before, .scene--ruled::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* construction: blueprint paper */
.scene--blueprint::before {
  background-image: linear-gradient(rgba(15, 61, 49, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 61, 49, .075) 1px, transparent 1px),
                    linear-gradient(rgba(15, 61, 49, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 61, 49, .035) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  -webkit-mask: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 85%); mask: radial-gradient(ellipse at 50% 50%, #000 35%, transparent 85%);
}
/* a bank: the fine guilloché of a banknote */
.scene--ruled::before {
  background: repeating-radial-gradient(circle at 8% 115%, rgba(231, 25, 46, .07) 0 1px, transparent 1px 16px),
              repeating-radial-gradient(circle at 96% -15%, rgba(231, 25, 46, .05) 0 1px, transparent 1px 20px);
  -webkit-mask: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000); mask: linear-gradient(90deg, #000, transparent 30%, transparent 70%, #000);
}

/* ══ CHECK-IN - a world of flights ════════════════════════════ */
.tile--hero-sky { container-type: size; }
.ci-badge { display: inline-flex; padding: 7px 12px; border-radius: 99px; background: #fff; box-shadow: 0 6px 18px rgba(11, 42, 74, .18); }
.ci-badge img { height: 17px; width: auto; }
.cloud { position: absolute; z-index: 1; inset-inline-start: 0; width: 150px; height: 46px; border-radius: 50px; background: #fff; opacity: .9; filter: blur(1.5px);
  box-shadow: 34px -16px 0 4px #fff, 78px 2px 0 -4px #fff; animation: cloud 44s linear infinite; pointer-events: none; }
.cloud--a { inset-block-start: 22%; }
.cloud--b { inset-block-start: 54%; scale: .7; opacity: .65; animation-duration: 60s; animation-delay: -26s; }
.cloud--c { inset-block-start: 6%; scale: .5; opacity: .55; animation-duration: 76s; animation-delay: -50s; }
@keyframes cloud { from { translate: -260px 0; } to { translate: calc(100cqw + 120px) 0; } }
.flight { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.flight > path { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.plane-g path { fill: #fff; filter: drop-shadow(0 3px 4px rgba(11, 42, 74, .3)); }
.tile--checkin-phone { background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%); }
.tile--checkin-phone .fab, .fx-fa .fab { inset: auto; left: 50%; top: 20.5cqw; width: 10cqw; translate: -50% -50%; box-shadow: 0 0 0 1.6cqw rgba(255, 255, 255, .7), 0 6px 18px rgba(255, 70, 90, .4); }
.tile--checkin-phone .burst { background: radial-gradient(circle at 50% 9.5%, #ffe0c2 0%, #ff8a3d 18%, #ff2d6f 45%, #a6127e 80%); clip-path: circle(0 at 50% 9.5%); }
.tile--checkin-phone.is-burst .burst { clip-path: circle(160% at 50% 9.5%); }
/* departures */
.tile--board { gap: 12px; padding: clamp(16px, 1.6vw, 22px); background: linear-gradient(180deg, #0f3157, #0b2a4a); }
.board-k { display: flex; justify-content: space-between; font: 700 .6875rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #ffcf5a; }
.board-clock { color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; }
.board-rows { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }
.board-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; font: 700 clamp(.75rem, .9vw, .875rem)/1 'SF Mono', ui-monospace, Menlo, monospace; color: #fff; }
.board-row span:nth-of-type(2) { display: none; }
.flap { padding: 6px 7px; border-radius: 6px; letter-spacing: .1em; background: linear-gradient(180deg, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .05) 50%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); white-space: nowrap; overflow: hidden; }
.board-row em { font: 600 .6875rem/1 var(--font-text); font-style: normal; color: #4cd964; }
/* the boarding pass */
.tile--pass { flex-direction: row; padding: 0; background: #fff; color: #0b2a4a;
  -webkit-mask: radial-gradient(circle 11px at 74% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 74% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle 11px at 74% 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle 11px at 74% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.pass-main { flex: 0 0 74%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(16px, 1.6vw, 22px); border-inline-end: 2px dashed #d6e2ee; }
.pass-k { display: flex; justify-content: space-between; align-items: center; font: 600 .6875rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #7d93aa; }
.pass-k img { height: 13px; }
.pass-route { display: flex; align-items: center; justify-content: space-between; font: 800 clamp(1.75rem, 2.6vw, 2.5rem)/1 var(--font-display); letter-spacing: -.02em; }
.pass-route i { font-style: normal; font-size: 1.25rem; color: #EF024D; animation: hop 3s ease-in-out infinite; }
@keyframes hop { 50% { transform: translateX(6px) translateY(-3px); } }
.pass-meta { display: flex; justify-content: space-between; gap: 6px; font: 500 .6875rem/1.3 var(--font-text); color: #7d93aa; }
.pass-meta span { display: flex; flex-direction: column; }
.pass-meta b { font: 700 .9375rem/1.2 var(--font-text); color: #0b2a4a; }
.pass-stub { flex: 1; display: grid; place-items: center; background: linear-gradient(180deg, #EF024D, #FF842A); }
.barcode { width: 46%; height: 70%; background: repeating-linear-gradient(180deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); opacity: .9; border-radius: 2px; }
.tile--checkin-chips { background: linear-gradient(180deg, #ffffff, #fff4ea); }
.tile--checkin-chips .chip-f { --chip-bg: #fff; --chip-edge: rgba(11, 42, 74, .08); color: #0b2a4a; }

/* ══ TIDHAR - a world of construction ═════════════════════════ */
.crane { position: absolute; z-index: 1; inset-inline-end: 6%; inset-block-start: -16%; height: 96%; width: auto; overflow: visible; pointer-events: none; }
.crane path, .crane rect { fill: none; stroke: #c9a24a; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.crane .crane-cab { fill: #e9c46a; }
.crane-load rect { fill: #1f8a6a; stroke: none; }
.crane-trolley { transform: translateX(120px); }
.crane-cable { transform-box: fill-box; transform-origin: top; }
.building-site { position: absolute; z-index: 2; inset-inline-end: 0; inset-block-end: 6%; width: 72%; }
.building-site .building-float { position: relative; inset: auto; width: 100%; }
.scene.is-active .building-float { animation: build 2.8s steps(12, end) .5s both, icon-bob 7s ease-in-out 3.4s infinite; }
@keyframes build { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
.building-site .building-shadow { inset-inline: 10% 6%; inset-block-end: -6%; }
.floor-chip { position: absolute; z-index: 3; inset-inline-end: 4%; inset-block-end: 2%; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 99px; background: #0f3d31; color: #fff; font: 600 .8125rem/1 var(--font-text); box-shadow: 0 12px 26px rgba(15, 61, 49, .3); }
.floor-chip i { width: 8px; height: 8px; border-radius: 50%; background: #e9c46a; box-shadow: 0 0 0 4px rgba(233, 196, 106, .25); animation: halo-breathe 1.6s ease-in-out infinite; }
.floor-chip b { font-variant-numeric: tabular-nums; color: #e9c46a; }

/* ══ HAPOALIM - the order of a bank ═══════════════════════════ */
.tile--hero-bank { justify-content: space-between; }
.tile--hero-bank::after { content: ''; position: absolute; inset: 0; z-index: 0; background: repeating-radial-gradient(circle at 110% 120%, rgba(255, 255, 255, .09) 0 1px, transparent 1px 12px); pointer-events: none; }
.tile--hero-bank .hero-main { max-width: 80%; }
.tile--hero-bank .hero-name { font-size: min(clamp(3.5rem, 6.6vw, 7rem), 36cqh, calc(100cqw / var(--len, 8) * 1.45)); }
.tile--browser { padding: 0; background: #fff; color: #1d1d1f; }
.browser-bar { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; background: #f3f2ef; border-block-end: 1px solid rgba(0, 0, 0, .06); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ddd9d3; }
.browser-bar i:first-child { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar span { margin-inline: auto; padding: 4px 40px; border-radius: 8px; background: #fff; font: 500 .75rem/1.2 var(--font-text); color: #6e6e73; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.browser-view { position: relative; flex: 1; overflow: hidden; }
.site-shot { width: 100%; height: auto; }
.scene.is-active .site-shot { animation: site-scroll var(--scroll-long, 26s) ease-in-out 1.2s infinite alternate; }
.tile--browser:hover .site-shot { animation-play-state: paused; }
@keyframes site-scroll { 0%, 6% { transform: none; } 94%, 100% { transform: translateY(calc(-1 * var(--travel, 0px))); } }
.tile--crop { padding: 0; }
.crop { position: absolute; inset: 0; background: var(--src) var(--pos) / var(--zoom) auto no-repeat; transition: background-size 1.2s var(--ease-spring); }
.tile--crop:hover .crop { background-size: calc(var(--zoom) * 1.06) auto; }
.bank-k { position: absolute; z-index: 3; inset-block-end: 14px; inset-inline-start: 14px; padding: 6px 12px; border-radius: 99px; background: #1d1d1f; color: #fff; font: 600 .75rem/1.2 var(--font-text); }
.bank-k--light { background: rgba(255, 255, 255, .9); color: #1d1d1f; }
.tile--hapoalim-app .tile-img { object-fit: contain; padding: 8px 8px 0; }
.tile--seal { justify-content: space-between; text-align: center; align-items: center; background: #1d1d1f; }
.seal-k { font: 600 .6875rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.seal-t { font: 700 clamp(1.5rem, 2.3vw, 2.25rem)/1.02 var(--font-display); letter-spacing: -.03em; color: #fff; }
.seal-line { display: flex; align-items: center; gap: 10px; width: 100%; font: 700 .75rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: #ff4d5e; }
.seal-line i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #ff4d5e); }
.seal-line i:last-child { background: linear-gradient(90deg, #ff4d5e, transparent); }

/* ══ RE:BAR - the site, on a desk and in a hand ═══════════════ */
.tile--rebar-phone { background: linear-gradient(180deg, #ffffff, #eef6d3); }
.tile--rebar-phone .phone { width: min(80%, calc(100cqh * .44)); }
.tile--rebar-phone { container-type: size; }

/* ══ BALCONY - before and after, one over the other ═══════════ */
.tile--compare { padding: 0; background: radial-gradient(90% 80% at 50% 100%, #ffe7e3 0%, #ffffff 70%); }
.cmp { --split: 50%; position: absolute; z-index: 2; left: 50%; inset-block-start: 50%; translate: -50% -50%; height: 90%; aspect-ratio: 390 / 844; border-radius: 30px; overflow: hidden; background: #f6f5f2; box-shadow: 0 0 0 6px #1d1d1f, 0 40px 70px -24px rgba(120, 30, 40, .4); touch-action: none; cursor: ew-resize; }
.cmp-before { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(.7); }
.cmp-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--split)); }
.cmp-line { position: absolute; z-index: 3; inset-block: 0; inset-inline-start: var(--split); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); pointer-events: none; }
.cmp-line b { position: absolute; inset-block-start: 50%; left: 50%; translate: -50% -50%; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #1d1d1f; font: 700 .8125rem/1 var(--font-text); box-shadow: 0 8px 18px rgba(0, 0, 0, .2); }
.cmp-label { position: absolute; z-index: 1; inset-block-start: 50%; translate: 0 -50%; font: 700 clamp(1.5rem, 2.6vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; }
.cmp-label--before { inset-inline-start: 7%; color: #b8b2ad; }
.cmp-label--after { inset-inline-end: 7%; background: var(--grad-m); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.tile--balcony-phone { background: radial-gradient(120% 60% at 50% 100%, #ffe4df 0%, #fff 70%); }

/* ══ HOTEL - the finale ═══════════════════════════════════════ */
.tile--hero-hotel { justify-content: space-between; }
.tile--hero-hotel .hero-main { max-width: 100%; margin-block-end: 0; }
.tile--hero-hotel .hero-name { font-size: min(clamp(4.5rem, 9.4vw, 10rem), 44cqh, calc(100cqw / var(--len, 8) * 1.5)); line-height: .86; letter-spacing: -.07em; white-space: nowrap; }
.tile--hero-hotel .hero-line { font-size: clamp(1rem, 1.3vw, 1.25rem); font-weight: 600; opacity: .8; }
.hero-ring { position: absolute; z-index: 1; inset-inline-end: 4%; inset-block-end: -70%; width: 34%; overflow: visible; pointer-events: none; }
.hero-ring circle { fill: none; stroke: #0d0d0f; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 190 74; transform-origin: 50% 50%; animation: orbit 14s linear infinite; }
.scene.is-unlocked .hero-ring circle { stroke: #34c759; stroke-dasharray: 264 0; transition: stroke .6s, stroke-dasharray 1s var(--ease-spring); }
.scene.is-unlocked .tile--hero-hotel { animation: thump .9s var(--ease-bounce); }
@keyframes thump { 30% { scale: 1.025; } }
.tile--hotel-phone { background: radial-gradient(120% 70% at 50% 100%, #4a3500 0%, #17150f 70%); }
.ht-screen { container-type: inline-size; background: #fbfaf7; }
.ht { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 4.4cqw; padding: 15cqw 6cqw 6cqw; font-family: var(--font-text); color: #0d0d0f; letter-spacing: 0; }
.ht-top { display: flex; flex-direction: column; gap: 1cqw; }
.ht-top b { font: 800 7.4cqw/1.1 var(--font-display); letter-spacing: -.02em; }
.ht-top span { font: 500 3.6cqw/1.2 var(--font-text); color: #8e8e93; }
.ht-dial { position: relative; align-self: center; width: 66cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 40% 30%, #2c2c30 0%, #0d0d0f 70%); color: #fff; box-shadow: 0 6cqw 14cqw rgba(0, 0, 0, .25), inset 0 0 0 1px rgba(255, 255, 255, .06); transition: scale .4s var(--ease-bounce); }
.ht-dial:active { scale: .96; }
.ht-dial .key-ring { position: absolute; inset: 6%; width: 88%; height: 88%; rotate: -90deg; }
.ht .room > span { font-size: 3.6cqw; }
.ht .room b { font-size: 15cqw; }
.ht .room em { font-size: 3.4cqw; }
.tile--hotel-phone.is-open .key-ring circle { stroke-dasharray: 264 0; stroke: #34c759; }
.tile--hotel-phone.is-open .room em { color: #34c759; }
.ht-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.ht-row span { display: flex; flex-direction: column; gap: 1cqw; padding: 3cqw; border-radius: 4cqw; background: #f1efe9; font: 500 3.2cqw/1.2 var(--font-text); color: #6e6e73; }
.ht-row b { font: 700 4.2cqw/1 var(--font-text); color: #0d0d0f; }
.ht-k { font: 700 4.6cqw/1 var(--font-display); }
.ht-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 2.6cqw; }
.ht-cards span { display: flex; flex-direction: column; gap: 1cqw; padding: 3.2cqw; border-radius: 4.4cqw; background: #ffcc00; font: 600 3.4cqw/1.2 var(--font-text); }
.ht-cards i { font-size: 8cqw; font-style: normal; }
.ht-cards b { font: 800 4.6cqw/1 var(--font-display); }
.confetti { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; }

/* ══ CHECK-IN, cleaner: the app's own screens instead of decoration ══ */
.tile--uicrop { padding: 0; background: #fff; }
.ui-crop { position: absolute; inset: 0; overflow: hidden; }
.ui-crop img { width: 100%; max-width: none; margin-block-start: calc(var(--y) / 390 * -100%); transition: transform 1.2s var(--ease-spring); }
.tile--uicrop:hover .ui-crop img { transform: translateY(-14px); }
.socket--checkin .socket-core::before { background: radial-gradient(circle, rgba(239, 2, 77, .28), transparent 65%); }

/* ══ BACKLOG - the door, half and half ═════════════════════ */
.scene--split { padding: 0; }
.split { position: absolute; inset: 0; display: flex; }
.half { position: relative; flex: 1; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(28px, 5vw, 72px) clamp(28px, 4vw, 56px) clamp(104px, 13vh, 140px); transition: flex 1s var(--ease-spring), filter .8s var(--ease-apple); }
.split:hover .half:not(:hover) { filter: saturate(.7) brightness(.85); }
.half:hover { flex: 1.35; }
.half-copy { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 10px; }
.half-k { font: 600 .8125rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.half-name { font: 700 clamp(3rem, 5.6vw, 6.5rem)/.92 var(--font-display); letter-spacing: -.055em; white-space: nowrap; }
.half-line { max-width: 30ch; font: 500 clamp(1rem, 1.3vw, 1.25rem)/1.4 var(--font-text); opacity: .75; }
.half-go { position: relative; z-index: 3; align-self: flex-start; display: inline-flex; align-items: center; margin-block-start: 22px; padding: 10px 18px; border-radius: 99px; font: 600 .875rem/1 var(--font-text); transition: transform .5s var(--ease-bounce), background .4s; }
.half:hover .half-go { transform: translateX(-4px) scale(1.05); }
.split-head { position: absolute; z-index: 4; left: 50%; inset-block-end: 26px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 18px; border-radius: 18px; pointer-events: none; color: #fff; background: rgba(12, 10, 14, .55); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15); }
.split-head b { font: 700 1.375rem/1 var(--font-display); letter-spacing: -.01em; }
.split-head span { font: 500 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
/* the hotel: soft, warm, fresh */
.half--hotel { background: radial-gradient(120% 90% at 30% 20%, #fff7cf 0%, #ffe680 45%, #ffcf3a 100%); color: #2b2100; }
.half-sun { position: absolute; inset-block-start: -20%; inset-inline-start: -10%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .85), transparent); animation: breathe 9s ease-in-out infinite; }
.half-ring { position: absolute; inset-block-start: 14%; inset-inline-end: 8%; width: 46%; overflow: visible; }
.half-ring circle { fill: none; stroke: rgba(43, 33, 0, .14); stroke-width: 1.2; stroke-dasharray: 3 6; transform-origin: 50% 50%; animation: orbit 60s linear infinite; }
.half-phones { position: absolute; z-index: 2; inset-block-start: 16%; inset-inline-end: 4%; width: 66%; mix-blend-mode: multiply; animation: icon-bob 8s ease-in-out infinite; transition: scale 1.2s var(--ease-spring); }
.half--hotel:hover .half-phones { scale: 1.05; }
.half--hotel .half-go { background: #2b2100; color: #ffe680; }
/* Check-in: in the dark, waiting to be found */
.half--checkin { --lx: 60%; --ly: 40%; background: radial-gradient(120% 90% at 70% 10%, #1a0a1a 0%, #07060a 60%); color: #f5f5f7; }
.half-hidden {
  position: absolute; z-index: 1; inset-block-start: 10%; left: 50%; width: min(58%, 380px); translate: -50% 0; rotate: -6deg;
  border-radius: 34px; box-shadow: 0 0 0 6px #1d1d1f, 0 40px 80px rgba(0, 0, 0, .6);
  -webkit-mask: radial-gradient(circle 190px at var(--mlx, 50%) var(--mly, 30%), #000 0%, rgba(0, 0, 0, .9) 35%, rgba(0, 0, 0, .04) 100%);
          mask: radial-gradient(circle 190px at var(--mlx, 50%) var(--mly, 30%), #000 0%, rgba(0, 0, 0, .9) 35%, rgba(0, 0, 0, .04) 100%);
  opacity: .9; animation: peek 9s ease-in-out infinite;
}
.half--checkin.is-lit .half-hidden { animation: none; }
@keyframes peek { 0%, 100% { --mlx: 30%; --mly: 20%; } 33% { --mlx: 75%; --mly: 45%; } 66% { --mlx: 35%; --mly: 70%; } }
@property --mlx { syntax: '<length-percentage>'; inherits: true; initial-value: 50%; }
@property --mly { syntax: '<length-percentage>'; inherits: true; initial-value: 30%; }
.half-orb { position: absolute; z-index: 2; inset-block-start: 30%; inset-inline-start: 10%; width: 54px; border-radius: 50%; box-shadow: 0 0 40px rgba(239, 2, 77, .6); animation: halo-breathe 4s ease-in-out infinite; }
.half--checkin .half-name { color: rgba(245, 245, 247, .45); transition: color .8s var(--ease-apple); }
.half--checkin:is(:hover, :focus-visible) .half-name { color: #f5f5f7; }
.half--checkin:focus-visible .half-hidden { --mlx: 55%; --mly: 40%; animation: none; }
.half--checkin .half-go { background: linear-gradient(90deg, #EF024D, #FF842A); color: #fff; }
/* Clalit: tender, quiet, in teal */
.half--clalit { background: radial-gradient(120% 90% at 50% 15%, #f4fbf9 0%, #cfeee7 45%, #8fd6c7 100%); color: #0b3f3c; }
.half-rings { position: absolute; inset-block-start: 10%; left: 50%; width: 80%; aspect-ratio: 1; translate: -50% 0; }
.half-rings i { position: absolute; inset: calc(var(--n, 0) * 12%); border-radius: 50%; border: 1.5px solid rgba(14, 91, 87, .18); animation: breathe 7s ease-in-out infinite; }
.half-rings i:nth-child(2) { --n: 1; animation-delay: -2.3s; } .half-rings i:nth-child(3) { --n: 2; animation-delay: -4.6s; }
.half-phones--clalit { mix-blend-mode: normal; inset-inline-end: auto; left: 50%; translate: -50% 0; width: 72%; inset-block-start: 14%; }
.half--clalit .half-go { background: #0e5b57; color: #e6f7f3; }
/* inner pages: a way back */
.back-pill { display: none; padding: 10px 16px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: var(--color-text); }
html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .back-pill { display: inline-flex; }
html[data-world="light"] .back-pill { --glass-bg: rgba(255, 255, 255, .7); color: #1d1d1f; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ══ MOBILE - every world flows; the bento folds into two columns ══ */


/* ══ SITES ON SCREENS - a display and a phone, side by side ═════ */
.tile--devices { padding: 0; container-type: size; background: radial-gradient(90% 70% at 50% 100%, color-mix(in srgb, var(--amb-a) 12%, #fff) 0%, #fff 72%); }
.dev-stage { --pw: min(18cqw, 31cqh); --mw: min(calc(100cqw - var(--pw) * .58 - 48px), calc(72cqh * 1.6)); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.tile--devices-bank .dev-stage { flex-direction: row-reverse; }
.tile--devices-bank .dev-phone { margin-inline: 0 calc(var(--pw) * -.42) !important; }
.monitor::after { content: ''; position: absolute; z-index: -1; inset-inline: 22%; inset-block-end: -6px; height: 14px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); filter: blur(4px); }
.monitor { position: relative; flex: none; width: var(--mw); transition: translate 1s var(--ease-spring); }
.monitor-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 12px; border: 7px solid #111214; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 40px 70px -30px rgba(0, 0, 0, .45); }
.monitor-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.monitor-neck { display: block; width: 14%; height: calc(var(--mw) * .07); margin-inline: auto; background: linear-gradient(180deg, #a9a9ae, #dcdce0 40%, #c4c4c9); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); }
.monitor-foot { display: block; width: 32%; height: 7px; margin-inline: auto; border-radius: 4px; background: linear-gradient(90deg, #bdbdc2, #dedee2 50%, #bdbdc2); box-shadow: 0 10px 18px rgba(0, 0, 0, .14); }
.tile--devices .dev-phone { position: relative; inset: auto; translate: none; z-index: 3; flex: none; align-self: center; width: var(--pw); margin-inline-start: calc(var(--pw) * -.42); margin-block-start: calc(var(--mw) * .22); padding: 4px; transition: translate 1s var(--ease-spring); }
.tile--devices:hover .monitor { translate: 0 -4px; }
.tile--devices:hover .dev-phone { translate: 0 -10px; }
.tile--devices .screen::after, .tile--hapoalim-app .screen::after { display: none; }
.screen::after { height: auto; aspect-ratio: 126 / 37; width: 30%; inset-block-start: 2.2%; }
/* the side scroll: the site moves sideways, a screen at a time */
.side-strip { --k: 0; display: flex; width: calc(var(--n) * 100%); height: 100%; transform: translateX(calc(-100% / var(--n) * var(--k))); transition: transform 1.2s var(--ease-spring); }
.side-strip > img:only-child { width: 100%; height: 100%; object-fit: fill; }
.side-strip--m img { flex: none; width: calc(100% / var(--n)); height: 100%; object-fit: cover; object-position: top; }
.side-dots { position: absolute; inset-block-end: 8px; left: 50%; translate: -50% 0; display: flex; gap: 5px; padding: 4px 7px; border-radius: 99px; background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); }
.side-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .5s var(--ease-spring), background .3s; }
.side-dots i.is-on { width: 16px; background: #fff; }
/* the Hapoalim app, with the website's own floating notes */
.tile--hapoalim-app { background: radial-gradient(110% 60% at 50% 100%, #ffe1e4 0%, #ffffff 70%); }
.float-card { position: absolute; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 48%; padding: 12px 10px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: 0 16px 34px rgba(120, 0, 10, .16), inset 0 0 0 1px rgba(0, 0, 0, .04); font: 700 .75rem/1.25 var(--font-text); letter-spacing: 0; color: #1d1d1f; text-align: center; animation: icon-bob 6s ease-in-out infinite; }
.float-card i { font-style: normal; font-size: 1.375rem; color: #e7192e; }
.float-card--a { inset-inline-start: 3%; inset-block-start: 58%; }
.float-card--b { inset-inline-end: 3%; inset-block-start: 34%; animation-delay: -3s; }

/* ══ BALCONY - the operations view ══════════════════════════════ */
.tile--radar { padding: 0; background: #120b0c; color: #fff; }
.radar-map { position: absolute; inset: 0; background: url(assets/work/balcony-map.png) center / cover; filter: grayscale(1) invert(1) brightness(.5) contrast(1.25); opacity: .5; }
.tile--radar::after { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 70% at 50% 52%, transparent 30%, rgba(18, 11, 12, .85) 100%); pointer-events: none; }
.radar-rings, .radar-sweep { position: absolute; z-index: 1; left: 50%; inset-block-start: 52%; width: min(92%, 130cqh); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; }
.tile--radar { container-type: size; }
.radar-rings { background: repeating-radial-gradient(circle, transparent 0 calc(16.6% - 1px), rgba(255, 90, 95, .28) calc(16.6% - 1px) 16.6%); }
.radar-sweep { background: conic-gradient(from 0deg, rgba(255, 90, 95, .42), rgba(255, 90, 95, 0) 24%); animation: spin 4.5s linear infinite; }
.radar-dot { position: absolute; z-index: 2; inset-inline-start: var(--x); inset-block-start: var(--y); width: 12px; height: 12px; translate: -50% -50%; border-radius: 50%; opacity: 0; scale: .2; transition: opacity .5s var(--ease-apple), scale .7s var(--ease-bounce); }
.scene.is-active .radar-dot { opacity: 1; scale: 1; transition-delay: calc(.7s + var(--i) * .5s); }
.radar-dot--help { background: #ff5a5f; box-shadow: 0 0 0 4px rgba(255, 90, 95, .3), 0 0 18px #ff5a5f; }
.radar-dot--help::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 90, 95, .7); animation: sos-wave 2s ease-out infinite; }
.radar-dot--safe { background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .25); }
.radar-me { position: absolute; z-index: 2; left: 50%; inset-block-start: 52%; width: 14px; height: 14px; translate: -50% -50%; border-radius: 50%; background: #1a73ff; border: 3px solid #fff; box-shadow: 0 0 0 12px rgba(26, 115, 255, .2); }
.radar-k { position: absolute; z-index: 3; inset-block-start: 16px; inset-inline-start: 16px; display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .15); font: 600 .75rem/1 var(--font-text); letter-spacing: .04em; }
.radar-k i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 10px #ff5a5f; animation: halo-breathe 1.2s ease-in-out infinite; }
.radar-count { position: absolute; z-index: 3; inset-inline: 16px; inset-block-end: 16px; display: flex; align-items: baseline; gap: 6px; padding: 12px 16px; border-radius: 16px; background: rgba(24, 14, 15, .72); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); font: 600 .9375rem/1.2 var(--font-text); }
.radar-count b { font: 800 1.5rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.radar-count span { margin-inline-start: auto; font-size: .8125rem; color: #ff8a86; }
.tile--team { gap: 10px; }
.team-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.team-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; font: 600 .8125rem/1.2 var(--font-text); letter-spacing: 0; }
.team-ava { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font: 700 .625rem/1 var(--font-text); }
.team-row b { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.team-row em { flex: none; font: 600 .6875rem/1 var(--font-text); font-style: normal; padding: 5px 8px; border-radius: 99px; transition: background .4s, color .4s; }
.team-row--safe em { background: rgba(52, 199, 89, .16); color: #4cd964; }
.team-row--safe em::after { content: 'Safe ✓'; }
.team-row--help em { background: rgba(255, 90, 95, .18); color: #ff8a86; }
.team-row--help em::after { content: 'Needs help'; }
.team-row--wait em { background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .6); }
.team-row--wait em::after { content: 'No answer'; }
.js .team-row { opacity: 0; translate: 12px 0; transition: opacity .5s var(--ease-apple), translate .8s var(--ease-spring); }
.js .scene.is-active .team-row { opacity: 1; translate: 0 0; transition-delay: calc(.5s + var(--i) * .1s); }
.tile--balcony-phone { background: radial-gradient(120% 60% at 50% 100%, #3a1416 0%, #1b1416 70%); }

/* ══ ABOUT ME - calmer, in the same language ═══════════════════ */
.about { position: relative; z-index: 1; width: min(1180px, 100%); display: grid; grid-template-columns: auto 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.about-photo { position: relative; height: min(calc(100dvh - 200px), 660px); aspect-ratio: 4 / 5; border-radius: 40px; overflow: hidden; background: #000; box-shadow: 0 50px 90px -40px rgba(0, 40, 80, .45); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.6s var(--ease-spring); }
.about-photo:hover img { scale: 1.04; }
.about-tag { position: absolute; inset-block-end: 18px; inset-inline-start: 18px; padding: 9px 14px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: var(--color-text); }
.about-copy { display: flex; flex-direction: column; gap: 18px; max-width: 54ch; }
.about-k { font: var(--type-eyebrow); font-size: .9375rem; color: var(--p-cyan-600); }
.about-h { font: 700 clamp(3rem, 6vw, 5.75rem)/.95 var(--font-display); letter-spacing: -.05em; padding-block-end: .06em; margin-block-end: 6px;
  background: linear-gradient(100deg, #1d1d1f 30%, #1a4bff 75%, #01b7ff); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-h i { font-style: normal; -webkit-text-fill-color: #01b7ff; }
.about-copy > p:not([class]) { font: 400 clamp(1rem, 1.25vw, 1.1875rem)/1.6 var(--font-text); color: #424245; text-wrap: pretty; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block-start: 8px; }
.about-btn { display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 99px; background: #1d1d1f; color: #fff; font: 600 .9375rem/1 var(--font-text); transition: transform .4s var(--ease-bounce), background .3s; }
.about-btn + .about-btn { background: rgba(0, 0, 0, .06); color: #1d1d1f; }
.about-btn:hover { transform: translateY(-2px); }
.about-btn:active { transform: scale(.96); }
.js .about-photo, .js .about-copy > * { opacity: 0; translate: 0 26px; filter: blur(8px); transition: opacity .8s var(--ease-apple) var(--ad, 0s), translate 1.1s var(--ease-spring) var(--ad, 0s), filter .9s var(--ease-apple) var(--ad, 0s); }
.js .scene.is-active .about-photo, .js .scene.is-active .about-copy > * { opacity: 1; translate: 0 0; filter: none; }
.js .scene.is-active .about-copy > :nth-child(1) { --ad: .15s; } .js .scene.is-active .about-copy > :nth-child(2) { --ad: .25s; }
.js .scene.is-active .about-copy > :nth-child(3) { --ad: .38s; } .js .scene.is-active .about-copy > :nth-child(4) { --ad: .48s; }
.js .scene.is-active .about-copy > :nth-child(5) { --ad: .58s; } .js .scene.is-active .about-copy > :nth-child(6) { --ad: .68s; }
.cv { position: relative; z-index: 1; width: min(1180px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cv-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.4vw, 32px); border-radius: 30px; background: #fff; color: #1d1d1f; box-shadow: 0 30px 60px -36px rgba(20, 40, 80, .3), inset 0 0 0 1px rgba(255, 255, 255, .9); }
.cv-card--exp, .cv-card--do, .cv-card--work { grid-column: span 2; }
.cv-card--tools, .cv-card--hello { grid-column: span 1; }
.cv-card--work { grid-column: span 2; }
.cv-k { font: 600 .8125rem/1 var(--font-text); letter-spacing: .02em; color: #86868b; }
.cv-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; }
.cv-row b { font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; }
.cv-row span { grid-row: 2; font: 500 1rem/1.4 var(--font-text); color: #6e6e73; }
.cv-row em { grid-row: 1 / 3; grid-column: 2; align-self: center; font: 600 .75rem/1 var(--font-text); font-style: normal; padding: 6px 10px; border-radius: 99px; background: rgba(1, 183, 255, .12); color: #0077c2; }
.cv-note { font: 400 .9375rem/1.5 var(--font-text); color: #6e6e73; }
.cv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cv-chips span { padding: 8px 13px; border-radius: 99px; background: #f2f2f5; font: 600 .875rem/1 var(--font-text); }
.cv-list { display: flex; flex-direction: column; gap: 10px; font: 600 1.0625rem/1.2 var(--font-text); }
.cv-list span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 10px; border-radius: 50%; background: linear-gradient(135deg, #01b7ff, #1a4bff); vertical-align: middle; }
.cv-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cv-links a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 16px; background: #f5f5f7; transition: background .3s, transform .4s var(--ease-bounce); }
.cv-links a:hover { background: #ebf6ff; transform: translateY(-2px); }
.cv-links b { font: 700 1rem/1.2 var(--font-display); }
.cv-links span { font: 500 .75rem/1.2 var(--font-text); color: #86868b; }
.cv-hello { font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -.02em; }
.js .cv-card { opacity: 0; translate: 0 40px; scale: .96; transition: opacity .7s var(--ease-apple) var(--cd, 0s), translate 1.1s var(--ease-spring) var(--cd, 0s), scale 1.1s var(--ease-spring) var(--cd, 0s); }
.js .scene.is-active .cv-card { opacity: 1; translate: 0 0; scale: 1; }
.js .scene.is-active .cv-card:nth-child(2) { --cd: .08s; } .js .scene.is-active .cv-card:nth-child(3) { --cd: .16s; }
.js .scene.is-active .cv-card:nth-child(4) { --cd: .24s; } .js .scene.is-active .cv-card:nth-child(5) { --cd: .32s; }
html[data-page="about"] .rail { display: none; }

/* ══ SMALL CARDS - each one simplifies itself when there's less room ══ */
@container (max-height: 205px) { .hero-foot { display: none; } }
@container (max-height: 120px) {   /* a one-row hero keeps its place in the count: the index sits in the corner */
  .hero-top { position: absolute; inset-block-start: var(--tile-pad, 18px); inset-inline-end: var(--tile-pad, 18px); font-size: .6875rem; }
  .tile--hero-bare .hero-top { inset-block-start: 2px; inset-inline-end: 2px; }
  .hero-top .hero-k { display: none; }
}
@container (max-height: 260px) { .tile--feature .badge, .tile--feature .feat-k { display: none; } }
@container (max-height: 190px) { .tile--feature .feat-d { display: none; } }
@container (max-width: 300px) { .board-row em { display: none; } .board-row { font-size: .6875rem; gap: 6px; } .flap { padding: 5px; letter-spacing: .04em; } }
@container (max-width: 240px) { .team-row b { display: none; } .team-row { justify-content: space-between; } }
@container (max-height: 236px) { .team-row:nth-child(n + 4) { display: none; } .team-row { padding: 3px 6px; } }
@container (max-height: 170px) { .team-row:nth-child(n + 3) { display: none; } .tile--team .tile-k { display: none; } }
@container (max-width: 260px) { .chip-f { padding: 5px 9px; font-size: .625rem; } }
@container (max-height: 150px) { .tile--chips .tile-k { display: none; } .tile--chips .chip-f:nth-child(n + 4) { display: none; } .tile--chips .chip-f:nth-child(2) { top: 14%; } .tile--chips .chip-f:nth-child(3) { top: 52%; } }
@container (max-height: 110px) { .team-row:nth-child(n + 2) { display: none; } }
@container (max-height: 180px) { .mac-label p { display: none; } .mac-label h3 { font-size: .9375rem; } }
@container (max-height: 200px) { .punch-line { display: none; } .product-copy span { display: none; } .product-add { padding: 6px 12px; font-size: .6875rem; } }
@container (max-height: 200px) { .tile--hotel-order .feat-t { font-size: .875rem; } .tile--hotel-order .order-row { margin-block-start: 2px; } }

/* ══ CLALIT - 40 weeks ══════════════════════════════════════════ */
.tile--clalit-cover { display: grid; place-items: center; }
.breath { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 165, 151, .2), transparent); animation: breathe 8s ease-in-out infinite; }
.clalit-float { position: relative; z-index: 2; width: min(100%, calc(100cqh * 1.08)); filter: drop-shadow(0 30px 40px rgba(14, 91, 87, .22)); animation: icon-bob 8s ease-in-out infinite; }
.tile--clalit-screens { display: grid; place-items: center; overflow: hidden; }
.clalit-screens { width: auto; height: min(96cqh, calc(100cqw * 1.5)); max-width: 100cqw; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(14, 91, 87, .18)); transition: translate 1.2s var(--ease-spring); }
.tile--clalit-screens:hover .clalit-screens { translate: 0 -6px; }
.tile--week { align-items: center; justify-content: center; background: linear-gradient(180deg, #ffffff, #effaf7); }
.week-ring { position: absolute; left: 50%; inset-block-start: 50%; width: min(78cqw, 78cqh); translate: -50% -50%; rotate: -90deg; overflow: visible; }
.week-ring circle { fill: none; stroke: #e1f2ee; stroke-width: 6; }
.week-ring .week-arc { stroke: #22a597; stroke-linecap: round; stroke-dasharray: 0 40; transition: stroke-dasharray 1.8s var(--ease-spring) .4s; }
.scene.is-active .week-ring .week-arc { stroke-dasharray: 18 40; }
.week-n { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; color: #0e5b57; }
.week-n b { font: 800 min(16cqh, 4.5rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.week-n span { font: 600 .75rem/1.2 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #5a8f8a; }
.tile--study { flex-direction: row; align-items: center; gap: clamp(12px, 2cqw, 24px); background: #0e5b57; color: #e6f7f3; --muted: rgba(230, 247, 243, .7); }
.tile--study .tile-k { position: absolute; inset-block-start: 14px; inset-inline-start: var(--tile-pad); }
.study-n b { font: 800 min(52cqh, 4rem)/1 var(--font-display); letter-spacing: -.04em; }
.study-t { font: 600 .9375rem/1.3 var(--font-text); max-width: 22ch; }
@container (max-height: 160px) { .study-t { font-size: .75rem; } .tile--study .tile-k { display: none; } }

/* ══ CRITIQUE · ROUND 1 ══════════════════════════════════════════
   Four designers and a head of design looked at every world on desktop
   and mobile; these are the fixes that came out of it. */
/* the intro: a solid name, the five clients one tap away */
.intro-h > span { background: none; -webkit-text-fill-color: #f5f5f7; }
.intro-h i { -webkit-text-fill-color: var(--p-cyan-400); }
.intro-photo::after { box-shadow: 0 0 60px 12px rgba(1, 183, 255, .22), 0 0 140px 30px rgba(26, 75, 255, .1); }
.intro-line { max-width: 30ch; }
.intro-work { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 36px; animation: rise 1s var(--ease-spring) .55s both; }
.intro-work a { padding: 9px 15px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: rgba(245, 245, 247, .8); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); transition: background .3s, color .3s, transform .4s var(--ease-bounce); }
.intro-work a:is(:hover, :focus-visible) { background: rgba(1, 183, 255, .18); color: #fff; transform: translateY(-2px); }
.intro-see { display: none; }
/* Tidhar: one call to action; a lighter crane; the icons fill their card */
.crane path, .crane rect { stroke: rgba(15, 74, 58, .5); stroke-width: 1.6; }
.crane .crane-cab { fill: #e9c46a; stroke: rgba(15, 74, 58, .5); }
.icons-card { padding: 18px; }
.constellation { gap: 10px; }
.constellation img { width: min(42cqi, 124px); }
/* Check-in: the assistant smaller, quieter, sitting in its socket */
.bento[data-key="checkin"] { --r: min(calc(var(--rh) * .6), calc(var(--cw) * .23)); }
.socket--checkin .socket-core::before { display: none; }
.orb { box-shadow: 0 20px 40px rgba(239, 2, 77, .25); }
.cloud { z-index: 0; }
.cloud--a { inset-block-start: 2%; } .cloud--b { inset-block-start: 82%; } .cloud--c { inset-block-start: 70%; }
.tile--hero-sky { --hero-bg: linear-gradient(180deg, #2468e6 0%, #4f9bff 45%, #9ccbff 72%, #ffd0b0 100%); background: var(--hero-bg); }
.tile--hero-sky :is(.hero-name, .hero-line) { filter: drop-shadow(0 1px 14px rgba(11, 42, 74, .35)); }
.tile--hero-sky .hero-idx { color: rgba(11, 42, 74, .6); opacity: 1; }
.pass-main, .pass-route, .pass-meta b { color: #0b2a4a; }
.pass-route i { color: #0b2a4a; }
.tile--uicrop .ui-crop img { width: var(--w, 112%); margin-inline-start: var(--x, -6%); margin-block-start: calc(var(--y) / 390 * -1 * var(--w, 112%)); }
/* Hapoalim: nothing cut at the edges */
.bank-k { inset-block: 14px auto; }
.float-card { width: 44%; }
.float-card--a { inset-inline-start: 2%; inset-block-start: 66%; }
.float-card--b { inset-inline-end: 2%; inset-block-start: 26%; }
/* rebar: the scope in a row, the cup on its own, the numbers plain */
.tile--hero-rebar .hero-foot { flex-direction: column; align-items: flex-start; gap: 10px; }
.tile--hero-rebar .hero-scope { justify-content: flex-start; max-width: none; }
.tile--hero-rebar .loop--hero { z-index: 0; }
.product-cup { background-position: 31% 72%; background-size: 620% auto; }
.spark { display: none; }
.stat-note { position: relative; z-index: 2; margin-top: 10px; text-align: center; font: 600 .6875rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; opacity: .72; }
@container (max-height: 170px) { .stat-note { display: none; } }
@container (max-width: 300px) { .radar-count { font-size: .75rem; white-space: nowrap; padding: 9px 12px; } .radar-count b { font-size: 1.125rem; } }
@container (max-width: 220px) { .radar-count span { display: none; } }
.sos-core { width: max(72px, min(56cqw, 60cqh, 150px)) !important; }
/* the hotel: no stock phones - the door to 837, which opens when you unlock */
.tile--door { padding: 0; background: radial-gradient(90% 70% at 50% 100%, #3a2a00 0%, #17150f 70%); color: #fff; perspective: 1400px; }
.door-scene { position: absolute; left: 50%; inset-block-start: 46%; width: min(46cqw, 34cqh * 1.1); aspect-ratio: 1 / 2.05; translate: -50% -50%; }
.door-light { position: absolute; inset: 0; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #fff6d6, #ffcc00 70%, #ff9f0a); box-shadow: 0 0 0 10px #0c0b08, 0 0 0 12px rgba(255, 196, 0, .22); }
.door-welcome { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font: 800 min(6.5cqw, 7cqh, 1.75rem)/1.05 var(--font-display); letter-spacing: -.03em; color: #2b2100; opacity: 0; transition: opacity .6s var(--ease-apple) .35s; }
.door { position: absolute; inset: 0; border-radius: 6px 6px 0 0; background: linear-gradient(90deg, #232019, #2f2a20 60%, #262219); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset -14px 0 30px rgba(0, 0, 0, .35); transform-origin: left center; transition: transform 1.4s var(--ease-spring), box-shadow 1s; }
.door::before { content: ''; position: absolute; inset: 9% 14% 54%; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.door::after { content: ''; position: absolute; inset: 52% 14% 8%; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.door-plate { position: absolute; inset-block-start: 30%; left: 50%; translate: -50% 0; padding: 4px 10px; border-radius: 6px; background: #ffcc00; color: #1d1d1f; font: 800 min(5cqw, 1.125rem)/1 var(--font-display); letter-spacing: .02em; }
.door-handle { position: absolute; inset-block-start: 50%; inset-inline-end: 12%; width: 9%; height: 2.4%; border-radius: 4px; background: linear-gradient(#e8e2cf, #a39a7f); }
.door-lock { position: absolute; inset-block-start: 55.5%; inset-inline-end: 13%; width: 5%; aspect-ratio: 1; border-radius: 50%; background: #ff5a3d; box-shadow: 0 0 10px #ff5a3d; transition: background .4s, box-shadow .4s; }
.door-hint { position: absolute; inset-block-end: 18px; inset-inline: 0; text-align: center; font: 600 .8125rem/1 var(--font-text); color: rgba(255, 255, 255, .55); transition: opacity .4s; }
.tile--door.is-open .door { transform: rotateY(-72deg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 30px 0 60px rgba(0, 0, 0, .5); }
.tile--door.is-open .door-lock { background: #34c759; box-shadow: 0 0 10px #34c759; }
.tile--door.is-open .door-welcome { opacity: 1; }
.tile--door.is-open .door-hint { opacity: 0; }
.hero-ring circle { stroke-width: 5; stroke: rgba(0, 0, 0, .18); }
.tile--hero-hotel .hero-name { letter-spacing: -.055em; word-spacing: .06em; }
.tile--hero-hotel .hero-idx { color: rgba(0, 0, 0, .62); opacity: 1; }
.tile--hotel-chips .chip-f::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ffcc00; }
/* Maccabiah: the words read over the collage */
.tile--hero-mac::after { background: linear-gradient(180deg, rgba(26, 22, 80, .55) 0%, rgba(26, 22, 80, .4) 30%, rgba(26, 22, 80, .92) 78%), linear-gradient(90deg, rgba(26, 22, 80, .55), transparent 60%); }
.tile--hero-mac .hero-top { text-shadow: 0 1px 12px rgba(0, 0, 0, .4); }
.tile--mac-mq .mq { -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* Backlog: the title under the nav, Check-in's ghost screen clear of its words */
.half--checkin .half-hidden { inset-inline-start: auto; inset-inline-end: -6%; translate: none; width: 44%; }
.half--checkin::after { content: ''; position: absolute; inset: 0; z-index: 2; background: linear-gradient(to top, #0b0710 0 34%, transparent 66%); pointer-events: none; }
@media (hover: none) { .half--checkin .half-name { color: #f5f5f7; } }
.half:is(:hover, :focus-visible) { flex: 1.35; }
/* About: flat and warm; the work as small worlds */
html[data-page="about"] .ambient { --glow: 0; }
.cv { align-items: start; }
.cv-chips--tools span { background: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.cv-links { grid-template-columns: repeat(3, 1fr); }
.cv-links a { position: relative; background: var(--wc, #1d1d1f); color: #fff; padding: 14px 16px 16px; }
.cv-links a span { color: rgba(255, 255, 255, .75); }
.cv-links a i { position: absolute; inset-block-start: 12px; inset-inline-end: 14px; font-style: normal; opacity: .8; transition: translate .4s var(--ease-bounce); }
.cv-links a:hover { background: var(--wc, #1d1d1f); filter: brightness(1.08); }
.cv-links a:hover i { translate: 3px 0; }
.cv-links-nh { --wc: #1d1d1f; }
.cv-card--work { grid-column: span 3; }
.cv-card--hello { grid-column: span 1; }

/* ══ TABLET - the composed bento on fixed rows ═════════════════ */
@media (min-width: 701px) and (max-width: 1099px) {
  .nav { padding: 16px 24px; }
  .rail { display: none; }
  .scene { min-height: 100dvh; padding: 80px 24px 32px; }
  .scene--intro { padding-inline: 32px; }
  .bento { --gap: 12px; --W: calc(100vw - 48px); --rh: clamp(76px, calc((100dvh - 112px - 5 * var(--gap)) / 6), 140px); }
  .tile { --tile-pad: 18px; border-radius: 24px; }
  .moment { font-size: 1.0625rem; }
  .intro-photo { inset-inline-end: -30%; opacity: calc(.75 - var(--leave, 0)); }
}

/* ══ PHONES - last, so they win ═════════════════════════════════ */
@media (max-width: 700px) {
  .nav { position: absolute; padding: 14px 16px; }
  .tabs { position: fixed; inset-inline: 16px; inset-block-end: calc(12px + env(safe-area-inset-bottom)); translate: none; justify-content: space-between; }
  .tab { flex: 1; min-height: 48px; display: grid; place-items: center; padding: 12px 4px; font-size: .8125rem; font-weight: 600; text-align: center; }
  .nav-tools { position: static; }
  html:not([data-scene="intro"]):not([data-page="about"]) :is(.nav .brand, .nav-links, .nav-tools) { display: none; }
  html[data-scene="intro"] .nav .brand { display: none; }
  .round-btn { width: 44px; height: 44px; }
  .toast { position: fixed; inset-block-start: 70px; inset-inline-end: 20px; }
  .rail { display: none; }
  .scene { min-height: 100svh; padding: calc(16px + env(safe-area-inset-top)) 14px calc(84px + env(safe-area-inset-bottom)); }
  .scene--intro, html[data-page="about"] .scene { padding-block-start: 70px; }
  .scene--intro { padding-block-end: 90px; }
  .intro { height: auto; min-height: calc(100svh - 170px); flex-direction: column; justify-content: flex-start; padding-block-start: 12px; }
  .intro-photo { position: relative; inset: auto; translate: none; order: 2; width: 132%; height: auto; margin-block-start: -8px; align-self: center; }
  .intro-h { font-size: clamp(3.25rem, 16vw, 5rem); }
  .intro-line { font-size: 1.0625rem; margin-block-start: 18px; }
  .intro-count { margin-block-start: 20px; }
  .intro-cue { display: none; }
  .bento {
    --gap: 10px; --cw: calc((100vw - 28px - var(--gap)) / 2); --rh: calc((100svh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5 * var(--gap)) / 6);
    --r: calc(var(--rh) * .72);
    width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(6, var(--rh));
  }
  .cut-b, .cut-tr, .cut-tl { -webkit-mask: none; mask: none; }
  .socket { width: calc(var(--r) * 2 + 16px); place-self: end center; margin-block-end: calc(var(--rh) * -.5); }
  .socket-core { width: calc(var(--r) * 2 - 30px); }
  .tile { --tile-pad: 16px; border-radius: 22px; }
  .tile--hero { padding: 18px; }
  .hero-line { font-size: .875rem; }
  .hero-scope { display: none; }
  .moment { font-size: 1rem; gap: 8px; }
  .quote { width: 22px; height: 19px; font-size: 1rem; }
  .tile--device .phone { width: min(84cqw, calc((100cqh - 96px) * .5)); }
  .phone { padding: 4px; }
  .feat-t, .illo-copy b { font-size: .9375rem; }
  .feat-d, .illo-copy p { font-size: .75rem; }
  .badge { width: 42px; height: 42px; margin-block-end: 6px; }
  .badge svg { width: 19px; height: 19px; }
  .trace, .node { display: none; }
  .mq span { font-size: 1.75rem; }
  .chip-f { padding: 7px 11px; font-size: .6875rem; }
  .chip-f--price { font-size: .875rem; }
  .chip-f--orb { width: 48px; height: 48px; }
  .switch { width: 76px; height: 42px; }
  .switch i { width: 34px; height: 34px; }
  .is-on .switch i { translate: 34px 0; }
  .constellation img { width: 30cqi; }
  .rebar-q-text { font-size: 1.375rem; }
  .punch-logo { font-size: 1.375rem; }
  .punch-cups { gap: 3px; }
  .punch-line { font-size: .6875rem; }
  .rb-heavy { font-size: 1.5rem; }
  .hero-logo, .hero-diamond { width: 64px; inset-block-start: 18%; }
  .proto-cta { font-size: .8125rem; inset-inline: 10px; inset-block-end: 10px; padding: 9px 12px 9px 9px; }
  .proto-cta svg { width: 28px; height: 28px; padding: 9px 8px 9px 10px; }
  .mac-label h3 { font-size: 1.0625rem; }
  .socket--checkin { place-self: end end; width: calc(var(--rh) * 1.1); margin: 0 6px 6px 0; }
  .socket--checkin .socket-core { width: 100%; }
  .pass-k span { display: none; }
  .float-card { display: none; }
  .crane { height: 70%; }
  .about { grid-template-columns: 1fr; gap: 16px; align-content: start; }
  .about-photo { height: 34svh; border-radius: 26px; justify-self: start; }
  .about-h { font-size: 2.75rem; }
  .about-copy { gap: 10px; }
  .about-copy > p:not([class]) { font-size: .9375rem; }
  .about-copy > p:not([class]):nth-of-type(n + 3) { display: none; }
  .cv { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cv-card { padding: 16px; border-radius: 22px; gap: 10px; }
  .cv-card--exp, .cv-card--do, .cv-card--work { grid-column: span 2; }
  .cv-card--tools { display: none; }
  .cv-card--hello { grid-column: span 2; }
  .cv-row b { font-size: 1.125rem; }
  .cv-note { display: none; }
  .cv-chips span { padding: 6px 10px; font-size: .75rem; }
  .cv-links a { padding: 8px 10px; }
  .cv-hello { font-size: 1rem; }
  .scene--split { min-height: 100svh; }
  .split { flex-direction: column; }
  .half { padding: 24px 20px 64px; }
  .half:hover { flex: 1; }
  .half-name { font-size: 3rem; }
  .half-hidden { width: 46%; inset-block-start: 6%; }
  .half-phones { width: 44%; inset-block-start: 10%; inset-inline-end: 4%; }
  .half { justify-content: flex-end; padding-block-end: 22px; }
  .half-name { font-size: 2.5rem; }
  .half-line { font-size: .875rem; max-width: 26ch; }
  .half-k { font-size: .6875rem; }
  .half-rings, .half-phones--clalit { width: 46%; inset-block-start: 4%; }
  .split-head { display: none; }
  html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .nav-inner .back-pill { display: inline-flex; position: fixed; inset-block-start: calc(12px + env(safe-area-inset-top)); inset-inline-end: 14px; z-index: 5; }
  html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .scene { padding-block-start: 60px; }
  html:is([data-page="lab"], [data-page="ai"]) .bento { --rh: calc((100svh - 144px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5 * var(--gap)) / 6); }
  :is(.tile-btn, .proto-cta, .order-btn, .product-add, .half-go, .cv-links a, .back-pill, .pv-mode) { min-height: 44px; }   /* never the miniature UI inside a phone */
  .board-row { font-size: .6875rem; }
  .pass-route { font-size: 1.375rem; }
  .cmp-label { display: none; }
  .crane { height: 80%; inset-block-start: -6%; }
  .floor-chip { font-size: .6875rem; padding: 6px 10px 6px 8px; }
  .scene--blueprint::before, .scene--ruled::before { display: none; }
}


/* ══ PHONES · ROUND 1 ═══════════════════════════════════════════ */
@media (max-width: 700px) {
  .intro-work { display: none; }
  .intro-see { display: inline-flex; align-items: center; min-height: 44px; margin-block-start: 22px; padding: 0 18px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .16); }
  .intro-photo { width: 150%; margin-block-start: auto; }
  .socket--checkin { display: none !important; }
  .cut-b { -webkit-mask: none; mask: none; }
  .tile--hapoalim-app .moment { display: none; }
  .tile--hapoalim-app .phone { inset-block: 5% auto !important; width: min(36cqw, calc(92cqh * .46)) !important; }
  .tile--hapoalim-app .float-card { display: flex; width: 32%; font-size: .625rem; padding: 8px; }
  .tile--hapoalim-app .float-card i { font-size: 1rem; }
  .float-card--a { inset-inline-start: 2%; inset-block-start: 56%; } .float-card--b { inset-inline-end: 2%; inset-block-start: 18%; }
  .half--checkin .half-hidden { width: 52%; inset-block-start: 6%; inset-inline-end: 4%; }
  .half-go { position: static; align-self: flex-start; min-height: 40px; display: inline-flex; align-items: center; margin-block-start: 10px; }
  .half-copy { gap: 6px; }
  .about-photo { justify-self: stretch; height: auto; aspect-ratio: 16 / 11; }
  .about-photo img { object-position: 50% 35%; }
  .about-tag { white-space: nowrap; font-size: .75rem; }
  .about-copy > p:not([class]):nth-of-type(n + 3) { display: block; }
  .cv-links { grid-template-columns: 1fr 1fr; }
  .cv-links a { padding: 10px 12px 12px; }
  .cv-card--work { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .tile, .js .socket, .js .chip-f, .js .hero-name, .js .hero-line, .js .hero-top, .js .hero-foot { opacity: 1; translate: none; scale: none; rotate: none; filter: none; }
  .loop path { stroke-dashoffset: 0; }
  .spark { clip-path: none; }
}

/* ════ MOTION LAYER (motion.md) - keep this at the very end ════ */
/* ── 1 · THE TIDE - one world hands over to the next ─────────────
   Outgoing bento sinks up and back, the next surfaces from below, and
   behind both a band of the next world's light rises through the page. */
@supports (animation-timeline: view()) {
  @media (min-height: 520px) and (prefers-reduced-motion: no-preference) {
    .bento, .intro-copy, .split, .about, .cv {
      animation: world-in linear both, world-out linear forwards;
      animation-timeline: --scene, --scene;
      animation-range: entry 0% entry 100%, exit 0% exit 100%;
    }
  }
}
@keyframes world-in {   /* one calm rise: no overshoot, no second motion on top */
  from { opacity: 0; transform: translate3d(0, 5vh, 0) scale(.975); animation-timing-function: cubic-bezier(.33, 0, .2, 1); }
  to   { opacity: 1; transform: none; }
}
@keyframes world-out {
  from { opacity: 1; transform: none; animation-timing-function: cubic-bezier(.5, 0, .75, 0); }
  to   { opacity: 0; transform: translate3d(0, -3vh, 0) scale(.98); }
}
.ambient-tide {
  position: absolute; inset-inline: -20vw; inset-block-start: 100%; height: 95vh;
  background: radial-gradient(48% 58% at 30% 55%, var(--tide-a, transparent), transparent 70%),
              radial-gradient(44% 52% at 72% 45%, var(--tide-b, transparent), transparent 70%);
  opacity: 0; will-change: transform, opacity; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { .ambient-tide { display: none; } }

/* ── 2 · BLOOM - tiles arrive in a wave from the world's name ──────
   --i is now distance from the hero (0–5), written by bloom(). */
@media (prefers-reduced-motion: no-preference) {
  .js .tile { translate: 0 36px; scale: .94; --d: .3s; }
  .js .scene.is-active .tile { --d: calc(.06s + var(--i) * 75ms); }
}

/* ── 3 · NAMES - kicker → words rise from their slots → full stop lands
   → line → swatches pop. No blur anywhere. ──────────────────────── */
.hero-name { background: none; -webkit-text-fill-color: currentColor; --name-bg: var(--grad); --hd: .24s; }
.intro-h   { --name-bg: linear-gradient(#f5f5f7 0 0); --dot: var(--p-cyan-400); --hd: .3s; }   /* solid, per critique round 1 */
.intro .intro-h > .nw { animation: none; background: none; padding-block-end: .26em; }   /* neutralise the old .intro-h > span word-in */
.about-h   { background: none; -webkit-text-fill-color: currentColor; --name-bg: linear-gradient(100deg, #1d1d1f 30%, #1a4bff 75%, #01b7ff); --dot: #01b7ff; --hd: .35s; }
.nw { display: inline-block; overflow: hidden; vertical-align: top; padding: .2em .06em .26em; margin: -.2em -.06em -.26em; }
.nw > span {   /* one gradient across the whole name: each word shows its own slice of it */
  display: inline-block; padding-block-end: .22em; margin-block-end: -.22em;   /* room for descenders inside the painted box */
  background: var(--name-bg) calc(-1 * var(--wx, 0px)) 0 / var(--nw, 100%) 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nw .dot { display: inline-block; font-style: normal; -webkit-text-fill-color: var(--dot, currentColor); transform-origin: 50% 80%; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero-name { opacity: 1; translate: none; filter: none; transition: none; }
  .js :is(.hero-top, .hero-line, .hero-foot) { opacity: 0; translate: 0 14px; filter: none;
    transition: opacity .3s var(--ease-apple), translate .4s var(--ease-apple); }
  .js .scene.is-active :is(.hero-top, .hero-line, .hero-foot) { opacity: 1; translate: 0 0;
    transition: opacity .8s var(--ease-apple) var(--hd), translate 1.1s var(--ease-spring) var(--hd); }
  .js .scene.is-active .hero-top  { --hd: .12s; }
  .js .scene.is-active .hero-line { --hd: calc(.46s + var(--n, 1) * 75ms); }
  .js .scene.is-active .hero-foot { --hd: calc(.64s + var(--n, 1) * 75ms); }
  .js .nw > span { translate: 0 calc(100% + .55em); transition: translate .45s var(--ease-apple); }
  .js .nw .dot { scale: 0; transition: scale .3s var(--ease-apple); }
  .js .scene.is-active .nw > span { translate: 0 0;
    transition: translate 1.05s var(--ease-spring) calc(var(--hd, .2s) + var(--k) * 75ms); }
  .js .scene.is-active .nw .dot { scale: 1;
    transition: scale .75s var(--ease-bounce) calc(var(--hd, .2s) + var(--n, 1) * 75ms + .3s); }
  .js .swatches i { scale: 0; }
  .js .scene.is-active .swatches i { scale: 1;
    transition: scale .6s var(--ease-bounce) calc(.8s + var(--n, 1) * 75ms + var(--i) * 55ms), margin .6s var(--ease-bounce), transform .6s var(--ease-bounce); }
  .js .about-photo, .js .about-copy > * { filter: none; }
}

/* ── 4 · RE:BAR - three phones, drawn together by one thick line ──── */
.tile--rebar-steps { padding: 0; background: #fff; color: #000; }
.rb-steps { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; padding: 3cqh 2cqw; }
.rb-loop { position: absolute; z-index: 1; left: 16.67%; width: 66.67%; height: auto; top: calc(50% + 3cqh); translate: 0 -56%; overflow: visible; pointer-events: none; }
.rb-loop path { fill: none; stroke: #000; stroke-width: 24; stroke-linecap: round; stroke-linejoin: round; }
.rb-step { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 2.4cqh; }
.rb-step-k { display: flex; align-items: center; gap: 10px; font: 800 clamp(.8125rem, 1.15vw, 1.0625rem)/1.1 var(--font-display); letter-spacing: -.02em; white-space: nowrap; }
.rb-step-k b { width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: 50%; background: #5ea531; }
.rb-step-phone { position: relative; inset: auto; translate: none; width: auto; height: min(74cqh, 100cqh - 76px); padding: 5px; }
.rb-step-phone .screen::after { display: none; }   /* the screenshots carry their own status bar */
@media (hover: hover) { .rb-step:hover .rb-step-phone { translate: 0 -6px; } }
@container (max-width: 520px) {   /* phones: the row sits high, the line runs underneath, curling between them */
  .rb-steps { align-items: start; padding: 3cqh 2cqw 0; }
  .rb-step { gap: 6px; }
  .rb-step-k { gap: 5px; font-size: .625rem; }
  .rb-step-phone { height: min(68cqh, 100cqh - 120px); padding: 3px; }
  /* the line ties the three phones together across their feet */
  .rb-loop { z-index: 3; left: -3%; width: 106%; top: auto; bottom: 1cqh; translate: none; }
  .rb-loop path { stroke-width: 30; }
}

/* ── 5 · MOMENTS - the request lights up as it's spoken ─────────── */
@media (prefers-reduced-motion: no-preference) {
  .js .moment :is(b, .mw) { opacity: .14; transition: opacity .25s var(--ease-apple); }
  .js .scene.is-active .moment :is(b, .mw) { opacity: 1; transition: opacity .5s var(--ease-apple) calc(.75s + var(--k, 0) * 95ms); }
  .js .moment .quote { opacity: 0; scale: .5; transition: opacity .2s, scale .2s; }
  .js .scene.is-active .moment .quote { opacity: 1; scale: 1; transition: opacity .3s var(--ease-apple) .55s, scale .7s var(--ease-bounce) .55s; }
}

/* ── 6 · INTRO - the cyan circle opens like an aperture ──────────── */
.intro-photo { animation: aperture 1.8s var(--ease-spring) .1s backwards; }
.intro-photo img { animation: settle 2.6s var(--ease-spring) .1s backwards; }
@keyframes aperture { from { clip-path: circle(0% at 50% 48%); } to { clip-path: circle(75% at 50% 48%); } }
@keyframes settle { from { scale: 1.14; } }
.intro-photo::after { animation-duration: 8s; }   /* the halo breathes slower */
.intro-k::before { animation: none; }

/* ── 7 · ONE LIFE PER WORLD - everything else holds still ────────── */
.constellation img, .building-shadow, .floor-chip i { animation: none; }
.scene.is-active .building-float { animation: build 2.8s steps(12, end) .5s both; }
.scene.is-active .photo-card .update-play { animation: none; }
/* Poalim: the website on the monitor reads itself, section by section */
.tile--devices-bank .monitor-screen > img { height: auto; }
@keyframes browse {
  0%, 12%   { transform: translateY(0); }
  22%, 34%  { transform: translateY(-15%); }
  44%, 56%  { transform: translateY(-30%); }
  66%, 78%  { transform: translateY(-45%); }
  94%, 100% { transform: translateY(0); }
}
.float-card { animation: none; }
/* 40 weeks: the breath carries it */
.clalit-float { animation: none; }
/* Maccabiah: the marquee carries it; stickers hold still (they still lean with the pointer) */
.sticker, .mac-badge { animation: none; }
.scene.is-active .stripes i { animation: none; }
.mq i { width: .3em; height: .3em; margin-inline: .5em; border-radius: 50%; border: .07em solid currentColor; opacity: .45; flex: none; }
/* rebar: the next empty cup invites a tap */
.scene.is-active .punch-cups i.is-on + i:not(.is-on) { animation: cup-in .6s var(--ease-bounce) backwards calc(.6s + var(--i) * 50ms), invite 3s var(--ease-apple) 3s infinite; }
@keyframes invite { 0%, 50%, 100% { translate: 0 0; color: rgba(94, 165, 49, .45); } 20% { translate: 0 -3px; color: #5ea531; } }
/* Balcony: one ping leaves you every 4 s; each person lights up as it reaches them */
.radar-rings i, .radar-k i, .illo-pin::after, .bal-pin::after, .gloss, .hero-logo { animation: none; }
.radar-me::after { content: ''; position: absolute; left: 50%; inset-block-start: 50%; width: var(--reach, 400px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1.5px solid rgba(91, 130, 255, .6); scale: 0; opacity: 0; pointer-events: none; }
.scene.is-active .radar-me::after { animation: ping 4s linear 1.6s infinite; }
@keyframes ping { 0% { scale: 0; opacity: .9; } 60%, 100% { scale: 1; opacity: 0; } }
.radar-dot--help { color: #ffab1f; } .radar-dot--safe { color: #34c759; }
.radar-dot::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; background: radial-gradient(closest-side, currentColor, transparent); opacity: 0; }
.scene.is-active .radar-dot::before { animation: blip 4s linear infinite; animation-delay: calc(1.6s + var(--t, 0s)); }
@keyframes blip { 0% { opacity: .85; scale: 1.7; } 18%, 100% { opacity: 0; scale: 1; } }
.radar-dot--help::after, .sos-core::before, .sos-core::after { display: none; }
.scene.is-active .illo-ring { animation: none; }
.bal-pin.is-on::after { animation: halo 2.4s ease-out infinite; }
/* Check-in: the plane flies its route; the orb only glows */
.orb img, .pass-route i { animation: none; }
.socket--checkin .socket-core::before { animation-duration: 8s; }
/* Hotel: the dial turns, slowly; unlocking sends one ring of light */
.hero-ring circle { animation-duration: 28s; }
.scene.is-active .chip-f { animation: none; }
.scene.is-unlocked .tile--hero-hotel { animation: none; }
.unlock-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #34c759; pointer-events: none; }
/* Backlog: the light in the dark, the sun, the rings; the phones hold still */
.half-phones, .half-orb, .half-ring circle { animation: none; }
/* About: the portrait drifts */
.scene.is-active .about-photo img { animation: drift 24s ease-in-out 1.6s infinite alternate; }
@keyframes drift { to { transform: scale(1.06) translate(-1%, -1.2%); } }

/* ── 8 · TOUCH - lift, light, press. No 3D tilt. ─────────────────── */
.tile { transform: translate3d(0, var(--lift, 0px), 0) scale(var(--s)); }
.tile::before { background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 0%), rgba(255, 255, 255, .16), transparent 60%); }
@media (hover: hover) and (pointer: fine) {
  .tile:not(.bare, .has-cut, .tile--device):hover { --lift: -4px; }
  .tile:hover::before { opacity: 1; }
  .world-light .tile:not(.bare, .has-cut):hover { box-shadow: var(--card-shadow), 0 34px 60px -34px rgba(40, 20, 40, .38); }
}
button.tile:active, a.tile:active { --s: .975; transition-duration: .12s; }
/* every button: quick in (100ms), springs back out (550ms bounce) */
:is(.round-btn, .proto-btn, .proto-cta, .product-add, .order-btn, .about-btn, .half-go, .bal-card-go, .bal-set, .chat-chips button, .back-pill, .cv-links a) {
  transition: scale .55s var(--ease-bounce), transform .5s var(--ease-bounce), background-color .3s var(--ease-apple), color .3s var(--ease-apple);
}
:is(.round-btn, .proto-btn, .proto-cta, .product-add, .order-btn, .about-btn, .half-go, .bal-card-go, .bal-set, .chat-chips button, .back-pill, .cv-links a):active {
  transform: none; scale: .94; transition-duration: .1s;
}
.tile-btn svg { transition: translate .5s var(--ease-spring); }
.tile:hover .tile-btn svg { translate: 1.5px -1.5px; }

/* ── 9 · PAGES - Home ↔ Backlog ↔ About pass through depth;
   the three Not-happen panels rise left to right ─────────────────── */
html[data-vt="page"] .nav { view-transition-name: nav; }
html[data-vt="page"]::view-transition-old(root) { animation: page-out .4s var(--ease-apple) both; }
html[data-vt="page"]::view-transition-new(root) { animation: page-in .75s var(--ease-spring) both; }
@keyframes page-out { to { opacity: 0; scale: .965; } }
@keyframes page-in { from { opacity: 0; scale: 1.025; } }
@media (prefers-reduced-motion: no-preference) {
  .half--clalit { --h: 1; } .half--checkin { --h: 2; }
  .js .scene--split .half { clip-path: inset(100% 0 0 0);
    transition: clip-path 1.15s var(--ease-spring) calc(var(--h, 0) * 90ms), flex 1s var(--ease-spring), filter .8s var(--ease-apple); }
  .js .scene--split.is-active .half { clip-path: inset(0 0 0 0); }
  .js .scene--split .half-copy { opacity: 0; translate: 0 22px; transition: opacity .3s, translate .4s; }
  .js .scene--split.is-active .half-copy { opacity: 1; translate: 0 0;
    transition: opacity .7s var(--ease-apple) calc(.4s + var(--h, 0) * 90ms), translate 1.1s var(--ease-spring) calc(.4s + var(--h, 0) * 90ms); }
}

/* ── 10 · HYGIENE - off-stage loops sleep; nothing loops on layout ── */
.scene:not(.is-active) .tile *, .scene:not(.is-active) .tile *::before, .scene:not(.is-active) .tile *::after,
.scene:not(.is-active) .socket * { animation-play-state: paused; }
.dd-touch { top: 0; }   /* the finger in Tidhar's drawer demo: transform, not top */
@keyframes dd-touch {
  0%, 9% { opacity: 0; transform: translateY(176cqw); }  13% { opacity: 1; transform: translateY(176cqw); }
  32%    { opacity: 1; transform: translateY(88cqw); }   36% { opacity: 0; transform: translateY(79cqw); }
  40%    { opacity: 0; transform: translateY(172cqw); }  43% { opacity: 1; transform: translateY(172cqw); }
  58%    { opacity: 1; transform: translateY(88cqw); }   62%, 100% { opacity: 0; transform: translateY(79cqw); }
}
.rail-fill { height: calc(100% - 40px); transform: scaleY(var(--progress, 0)); transform-origin: top; transition: transform .9s var(--ease-spring); }
.ambient-glow {   /* the pointer light moves a pre-painted layer instead of repainting a full-screen gradient */
  inset: -50vmax; will-change: transform;
  background: radial-gradient(40vmax circle at 50% 50%, color-mix(in srgb, var(--amb-a) 12%, transparent), transparent 70%);
  transform: translate3d(calc(var(--mx, 0) * 100vw), calc(var(--my, 0) * 100vh), 0); transition: transform 1.2s var(--ease-spring);
}

/* Hotel's order card on short phones: the dish and the button, side by side */
@container (max-height: 120px) {
  .tile.tile--hotel-order { padding-block: 8px; }
  .tile--hotel-order .feat { gap: 4px; }
  .tile--hotel-order .feat-t { font-size: .8125rem; line-height: 1.15; }
  .tile--hotel-order .order-row { margin-block-start: 4px; gap: 8px; }
  .tile--hotel-order .order-row b { font-size: 1rem; }
  .tile--hotel-order .order-btn { padding: 8px 14px; min-height: 40px; }
}


/* ══ CRITIQUE · ROUND 2 ═════════════════════════════════════════ */
/* motion: once a world has bloomed it stays built - leaving is world-out's job,
   and coming back never replays it from empty */
.js .scene.was-seen .tile { opacity: 1; translate: 0 0; scale: 1; }
.js .scene.is-active .tile { --d: calc(.04s + var(--i) * 55ms); }

/* Tidhar: the site's video update opens the live prototype */
.tile--tidhar-photo { padding: 0; cursor: pointer; text-align: start; }
@container (max-height: 180px) {
  .photo-card .update-play { width: 40px; height: 40px; translate: 0 -14px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), 0 8px 20px rgba(0, 0, 0, .3); }
  .photo-card .photo-tag { font-size: .6875rem; }
}

/* Check-in: legible chips on the sky; crops that end in a fade, never mid-word */
.tile--hero-sky .hero-scope span { background: rgba(11, 42, 74, .32); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .25); color: #fff; }
.tile--hero-sky .hero-idx { opacity: 1; color: #0b2a4a; }
.tile--uicrop .ui-crop { -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
.tile--trip .ui-crop { -webkit-mask: none; mask: none; }

/* Hapoalim: white and red, so the red hero leads; the crop fades at its edges */
.tile--seal-light { background: #fff; color: #1d1d1f; }
.tile--seal-light .seal-k { color: #86868b; }
.tile--seal-light .seal-t { color: #1d1d1f; }
.tile--seal-light .seal-line { color: #e7192e; }
.tile--seal-light .seal-line i { background: linear-gradient(90deg, transparent, #e7192e); }
.tile--seal-light .seal-line i:last-child { background: linear-gradient(90deg, #e7192e, transparent); }
[data-key="hapoalim-float"] .crop { -webkit-mask: linear-gradient(180deg, transparent 0, transparent 9%, #000 22%, #000 90%, transparent); mask: linear-gradient(180deg, transparent 0, transparent 9%, #000 22%, #000 90%, transparent); }

/* Balcony: who sees you - the tile and the phone are one setting */
.tile--privacy { justify-content: space-between; gap: 12px; }
.pv-modes { display: flex; flex-direction: column; gap: 6px; }
.pv-mode { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(191, 208, 255, .1); color: #f3f1ec; text-align: start; transition: background .3s var(--ease-apple), box-shadow .3s var(--ease-apple); }
.pv-mode i { grid-row: span 2; width: 30px; height: 30px; padding: 7px; border-radius: 10px; background: rgba(191, 208, 255, .08); color: #bfd0ff; transition: background .3s, color .3s; }
.pv-mode i svg { width: 100%; height: 100%; }
.pv-mode b { font: 600 .875rem/1.2 var(--font-text); letter-spacing: 0; }
.pv-mode span { font: 500 .6875rem/1.25 var(--font-text); letter-spacing: 0; color: rgba(243, 241, 236, .5); }
.pv-mode:hover { background: rgba(255, 255, 255, .07); }
.pv-mode.is-on { background: rgba(46, 92, 235, .16); box-shadow: inset 0 0 0 1.5px #2e5ceb; }
.pv-mode.is-on i { background: #2e5ceb; color: #fff; }
@container (max-height: 170px) { .tile--privacy .tile-k { display: none; } .pv-mode span { display: none; } .pv-mode { padding-block: 6px; } .pv-mode i { grid-row: auto; } }

/* Hotel: the dish sits on the card, the order at its foot; the app has the rest of the stay */
.tile--hotel-order .feat { flex: 1; }
.tile--hotel-order .badge { margin-block-end: auto; }
@container (max-height: 260px) { .tile--hotel-order .badge { display: grid; } .tile--hotel-order .feat-k { display: block; } }
@container (max-height: 160px) { .tile--hotel-order .badge, .tile--hotel-order .feat-k { display: none; } }
.ht-stay { display: flex; align-items: center; justify-content: space-between; gap: 2.6cqw; padding: 3.2cqw 3.6cqw; border-radius: 4.4cqw; background: #f2f0ea; font: 500 3cqw/1.2 var(--font-text); color: #6e6e73; }
.ht-stay span:first-child { display: flex; flex-direction: column; gap: .6cqw; }
.ht-stay b { font: 700 3.6cqw/1 var(--font-text); color: #0d0d0f; }
.ht-late { padding: 2cqw 3.2cqw; border-radius: 99px; background: #0d0d0f; color: #ffcc00; font: 600 3cqw/1 var(--font-text); }
.ht-tabs { position: absolute; inset: auto 4cqw 4cqw; display: flex; justify-content: space-around; padding: 2.6cqw 2cqw; border-radius: 6cqw; background: rgba(255, 255, 255, .9); box-shadow: 0 2cqw 6cqw rgba(0, 0, 0, .08), inset 0 0 0 1px rgba(0, 0, 0, .05); }
.ht-tabs span { display: flex; flex-direction: column; align-items: center; gap: .8cqw; font: 600 2.4cqw/1 var(--font-text); color: #a1a1a6; }
.ht-tabs svg { width: 5.4cqw; height: 5.4cqw; }
.ht-tabs .is-on { color: #0d0d0f; }
.door-hint-m { display: none; }

/* Clalit: the screens on a card of their own; the study, a quiet note */
.tile--clalit-screens { place-items: end start; }
.tile--clalit-screens .clalit-screens { height: 115cqh; max-width: none; translate: 10% 14%; }
.tile--clalit-screens:hover .clalit-screens { translate: 10% 12%; }
.tile--study { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-content: center; column-gap: clamp(16px, 2.4cqw, 28px); row-gap: 4px; background: #fff; color: #0e5b57; --muted: rgba(14, 91, 87, .66); }
.tile--study .study-n { grid-column: 1; grid-row: 1 / 3; align-self: center; }
.tile--study .tile-k { position: static; grid-column: 2; grid-row: 1; align-self: end; color: var(--muted); }
.tile--study .study-t { grid-column: 2; grid-row: 2; align-self: start; }
.study-n b { font: 800 min(clamp(3rem, 6cqw, 5rem), 86cqh) / 1 var(--font-display); letter-spacing: -.04em; }
.study-t { font: 500 1rem/1.35 var(--font-text); max-width: 40ch; color: #0e5b57; }

/* About: the grid hangs from the nav; Selected work is tinted, solid only when you point at it */
.cv { align-items: stretch; }
.cv-links a { background: color-mix(in srgb, var(--wc, #1d1d1f) 10%, #fff); color: #1d1d1f; padding-inline-start: 32px; }
.cv-links a::before { content: ''; position: absolute; inset-block-start: 18px; inset-inline-start: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--wc, #1d1d1f); }
.cv-links a span { color: #6e6e73; }
.cv-links a:hover { background: var(--wc, #1d1d1f); color: #fff; filter: none; }
.cv-links a:hover span { color: rgba(255, 255, 255, .78); }
.cv-links a:hover::before { background: #fff; }

/* ── phones ── */
@media (max-width: 700px) {
  /* Tidhar: the building site comes too - crane, the floors going up, the stages on their arc */
  .tile--tidhar-building { container-type: size; }
  .tile--tidhar-building .crane { height: 82%; inset-block-start: -4%; inset-inline-end: 10%; }
  .tile--tidhar-building .building-site { width: 58%; inset-block-end: 6%; inset-inline-end: 4%; }
  .tile--tidhar-building .arc-stage { width: 44px; }
  .tile--tidhar-building .arc-stage:nth-of-type(1) { left: 15%; top: 17%; } .tile--tidhar-building .arc-stage:nth-of-type(2) { left: 9%; top: 39%; }
  .tile--tidhar-building .arc-stage:nth-of-type(3) { left: 9%; top: 61%; } .tile--tidhar-building .arc-stage:nth-of-type(4) { left: 15%; top: 83%; }
  .tile--tidhar-proto .proto-cta { inset: 0; white-space: normal; text-align: start; line-height: 1.2; border-radius: 22px; }

  /* rebar: the promise in one row; the monitor, then the steps */
  .tile--hero-rebar .hero-name { font-size: 2.75rem; }
  .tile--rebar-steps .rb-steps { column-gap: 14px; }
  .tile--rebar-steps .rb-step-k { font-size: .75rem; white-space: normal; text-align: start; max-width: 100%; align-items: flex-start; }
  .tile--rebar-steps .rb-step-k b { flex: none; }
  .tile--rebar-steps .rb-step-phone { height: min(62cqh, 100cqh - 120px, (100cqw - 52px) / 3 * 2.05); }   /* three phones always fit across */
  .tile--clalit-cover .clalit-float { width: min(100%, calc(100cqh * 1.08)); }

  /* Hapoalim: the app, large, rising out of its card - no floating notes */
  .tile--hapoalim-app .float-card { display: none !important; }
  .tile--hapoalim-app .phone { width: 54cqw !important; inset-block: 8% auto !important; }

  /* Hotel: the hint points at the phone */
  .door-hint-d { display: none; } .door-hint-m { display: inline; }

  /* Clalit: the app on its rings, big; the week stays inside its ring */
  .week-n span { font-size: min(.75rem, 6.5cqw); letter-spacing: .06em; }
  .study-t { font-size: .9375rem; }

  /* Backlog: all three doors above the tab bar, and the page says what it is */
  .scene--split .split { inset-block-end: calc(84px + env(safe-area-inset-bottom)); }
  .scene--split .split-head { display: flex; inset-block: calc(14px + env(safe-area-inset-top)) auto; inset-inline-start: 20px; translate: none; align-items: flex-start; color: #2b2100; }
  .half--clalit .half-rings, .half--clalit .half-phones--clalit { width: 36%; inset-inline-start: auto; inset-inline-end: 6%; translate: none; inset-block-start: 8%; }
  .half--hotel .half-copy { padding-block-start: 34px; }

  /* About is a page to read, not a deck */
  html[data-page="about"] { scroll-snap-type: y proximity; }
  .about-page .scene { scroll-snap-stop: normal; }
  .cv { margin-block-start: 0; }

  /* the tab bar fits on small phones; the way back is a real target */
  .tab { flex: 1 1 auto; padding-inline: 10px; }
  .back-pill { padding-inline: 16px; align-items: center; }
}
@media (max-width: 379px) { .tab { font-size: .75rem; letter-spacing: -.02em; padding-inline: 6px; } }
@container (max-width: 260px) {   /* a narrow study note stacks: the label, the number, the words */
  .tile--study { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr; align-content: start; row-gap: 6px; }
  .tile--study .tile-k { grid-column: 1; grid-row: 1; align-self: start; } .tile--study .study-n { grid-column: 1; grid-row: 2; } .tile--study .study-t { grid-column: 1; grid-row: 3; }
  .tile--study .study-n b { font-size: 2.75rem; }
  .tile--study .study-t { font-size: .8125rem; }
}
@container (max-height: 70px) { .tile--study .tile-k { display: none; } }
@container (max-height: 100px) {   /* rebar's one-row hero on short phones */
  .tile--hero-rebar .hero-name { font-size: 2.25rem; }
  .tile--hero-rebar .hero-line { font-size: .8125rem; }
}
@container (max-height: 84px) { .tile--hero-rebar .hero-name { font-size: 1.875rem; } .tile--hero-rebar .hero-line { font-size: .75rem; } }

/* ══ ROUND 3 ═══════════════════════════════════════════════════ */
/* screenshots that carry their own status bar get no second, fake island */
.tile--tidhar-phone .screen::after, .tile--mac-phone .screen::after { display: none; }
/* Check-in's ghost: inside its half, and quieter than the name in front of it */
.half--checkin .half-hidden { inset-inline-end: 4%; }
/* a phone under a spoken line sits centred in the space that's left, not adrift below a gap */
.tile--device.no-bleed:has(.moment) .phone { inset-block: calc(var(--tile-pad) + 56px + 50cqh) auto; translate: -50% -50%; }
@media (max-width: 700px) {
  .half--checkin .half-hidden { inset-block-start: 4%; width: 40%; opacity: .4; }
  .half--checkin::after { background: linear-gradient(to top, #0b0710 0 55%, transparent 85%); }
  /* rebar: the line ties the phones at their feet, with no dead white beneath */
  .tile--rebar-steps .rb-loop { left: -12%; width: 124%; bottom: 4cqh; }
}
/* the live prototype: loaded unseen, shown when it's ready - never a blank white phone */
.proto-frame { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease-apple); }
.tile--tidhar-phone.is-live.is-ready .proto-frame { opacity: 1; pointer-events: auto; }
.proto-loading { position: absolute; z-index: 6; left: 50%; inset-block-end: 13%; translate: -50% 0; display: none; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: rgba(11, 47, 38, .88); color: #fff; font: 600 .75rem/1 var(--font-text); white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile--tidhar-phone.is-live:not(.is-ready) .proto-loading { display: flex; }
.proto-loading i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #e9c46a; animation: proto-spin .8s linear infinite; }
@keyframes proto-spin { to { rotate: 360deg; } }


/* ══ ROUND 4 · what didn't work ═════════════════════════════════ */
/* Tidhar's live prototype: a way out, and the page scrolls over it until you click in */
.proto-done { position: absolute; z-index: 7; inset-block-start: 12px; inset-inline-end: 12px; display: none; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 99px; font: 600 .75rem/1 var(--font-text); color: #fff; --glass-bg: rgba(11, 47, 38, .72); }
.tile--tidhar-phone.is-live .proto-done { display: inline-flex; }
.tile--tidhar-phone.is-live { cursor: pointer; }
.tile--tidhar-phone.is-live.is-ready .proto-frame { pointer-events: none; }
.tile--tidhar-phone.is-live.is-ready.is-engaged .proto-frame { pointer-events: auto; }

/* Check-in: the orb in the app is a real target; on a phone the chat is a sheet you can read */
.fab { overflow: visible; }
.fab img { border-radius: 50%; }
.fab::after { content: ''; position: absolute; inset: -16px; }
.chat.is-sheet {
  position: fixed; z-index: 60; inset: auto 12px calc(84px + env(safe-area-inset-bottom)) 12px; height: min(62svh, 540px);
  container-type: inline-size; padding: 18px 16px 14px; border-radius: 26px; font-size: 15px;
  box-shadow: 0 30px 80px rgba(11, 42, 74, .35), inset 0 0 0 1px rgba(0, 0, 0, .04);
  opacity: 0; transform: translateY(24px) scale(.98); pointer-events: none;
}
.chat.is-sheet.is-open { opacity: 1; transform: none; pointer-events: auto; }
.chat.is-sheet .chat-x { width: 44px; height: 44px; font-size: 1rem; }
.chat.is-sheet .chat-chips button { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.chat.is-sheet .msg { font-size: .9375rem; }
@media (max-width: 700px) { .tile--checkin-phone { cursor: pointer; } }

/* rebar and Hapoalim: the pager under a site is real */
.side-dots button { position: relative; width: 6px; height: 6px; padding: 0; border-radius: 3px; background: rgba(255, 255, 255, .55); transition: width .5s var(--ease-spring), background .3s; }
.side-dots button::after { content: ''; position: absolute; inset: -9px -4px; }
.side-dots button.is-on { width: 16px; background: #fff; }
.side-dots button:hover { background: #fff; }
.tile--devices .monitor { cursor: pointer; }

/* Maccabiah on touch: the long screen scrolls on its own (there's no hover to start it) */
@media (hover: none) {
  .scene.is-active .scroller .shot { animation: site-scroll var(--scroll-time, 6s) ease-in-out 1.2s infinite alternate; }
  .is-live .scroller .shot { animation: none; }
}

/* the door: you can press it */
.tile--door { cursor: pointer; }
.tile--door:is(:hover, :focus-visible):not(.is-open) .door { transform: rotateY(-6deg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset -14px 0 30px rgba(0, 0, 0, .35), 1.5px 0 0 rgba(255, 196, 0, .7), 0 0 26px rgba(255, 196, 0, .25); }
.order-btn { white-space: nowrap; }

/* Hotel: the services are a list, as in the app; the ring sits whole and closes when the room opens */
.tile--hotel-chips { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.tile--hotel-chips .tile-k { margin-block-end: auto; }
.tile--hotel-chips .chip-f { position: relative; left: auto; top: auto; rotate: none; width: 100%; padding: 11px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--chip-edge); }
.scene.is-active .tile--hotel-chips .chip-f { animation: none; }
.tile--hotel-chips .chip-f::after { content: '›'; margin-inline-start: auto; font-size: 1rem; opacity: .5; }
.tile--hotel-chips .chip-f { padding-block: 9px; }
@container (max-height: 185px) { .tile--hotel-chips .chip-f:nth-of-type(n + 4) { display: none; } }
@container (max-height: 140px) { .tile--hotel-chips .chip-f:nth-of-type(n + 3) { display: none; } }
@container (max-height: 100px) { .tile--hotel-chips .tile-k { display: none; } }

/* Tidhar: the current stage says its name */
.stage-cap { position: absolute; z-index: 4; inset-inline-start: calc(14% + 44px); inset-block-start: var(--y, 30%); max-width: 26ch; display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 10px 24px rgba(15, 61, 49, .12); color: #0f3d31; text-align: right; pointer-events: none; }
.stage-cap b { font: 700 .875rem/1.2 var(--font-text); }
.stage-cap span { font: 500 .75rem/1.35 var(--font-text); color: #3d5a50; }
.stage-cap:empty, .stage-cap b:empty { display: none; }

/* Clalit: Week / 18 / of 40 */
.week-n { gap: 2px; }

/* Balcony: the map is a hint of streets, never labels; four people fit the team */
.team-rows { justify-content: space-evenly; }

/* Check-in: crops end in a soft fade into the card */
.tile--uicrop::after { content: ''; position: absolute; z-index: 2; inset: auto 0 0; height: 48px; background: linear-gradient(transparent, var(--card, #fff)); pointer-events: none; }
.tile--trip::after { display: none; }

/* the end of the five hands on to the next page */
.hero-next { position: relative; z-index: 4; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: #fff; --glass-bg: rgba(255, 255, 255, .1); }
.next-door { display: none; }

/* rebar: the punch card says what it does; the steps can be drawn again */
.punch-hint { position: relative; z-index: 2; margin-block-start: 6px; font: 600 .6875rem/1 var(--font-text); letter-spacing: .04em; color: rgba(94, 165, 49, .75); }
.tile--rebar-steps { cursor: pointer; }
.rb-replay { position: absolute; z-index: 3; inset-block-end: 12px; inset-inline-end: 16px; font: 600 .6875rem/1 var(--font-text); color: #86868b; opacity: 0; transition: opacity .4s; }
.tile--rebar-steps:hover .rb-replay { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .mq-track { transform: translateX(-12%); }
  .tile--mac-mq .mq { -webkit-mask: none; mask: none; }
  .side-strip { transition: none; }
}

@media (max-width: 700px) {
  /* rebar: the line runs behind the three phones at mid-height, as on desktop; the phones take the room */
  .tile--rebar-steps .rb-steps { align-content: center; align-items: center; padding-block: 2cqh; }
  .tile--rebar-steps .rb-loop { z-index: 0; left: 2%; width: 96%; top: 56%; bottom: auto; translate: 0 -50%; }
  .tile--rebar-steps .rb-step { position: relative; z-index: 1; }
  .tile--rebar-steps .rb-step-phone { height: min(80cqh, 100cqh - 70px, (100cqw - 52px) / 3 * 2.05); }
  .rb-replay { opacity: 1; inset-block-end: 8px; inset-inline-end: 12px; font-size: .625rem; }
  .tile--rebar-steps.was-replayed .rb-replay { opacity: 0; }

  /* Balcony: privacy mode as three icon segments */
  .tile--privacy { padding: 10px; gap: 0; justify-content: center; }
  .tile--privacy .tile-k { display: none; }
  .pv-modes { flex-direction: row; gap: 6px; }
  .pv-mode { flex: 1; min-height: 44px; display: grid; place-items: center; grid-template-columns: 1fr; padding: 0; }
  .pv-mode i { grid-row: auto; width: 34px; height: 34px; }
  .pv-mode b, .pv-mode span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  /* the door: light glass, and the title clear of the hotel's phones */
  .half--hotel .half-phones { inset-block-start: 5%; width: 40%; }
  .scene--split .split-head { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
  .scene--split .split-head b { font-size: 1rem; }

  /* Tidhar: stages a little smaller so the gold ring never touches its neighbour; the caption is a pill */
  .tile--tidhar-building .arc-stage { width: 38px; }
  .tile--tidhar-building .arc-stage.is-on { scale: 1.08; }
  .stage-cap { inset-inline-start: calc(15% + 30px); padding: 5px 10px; border-radius: 99px; }
  .stage-cap span { display: none; }
  .stage-cap b { font-size: .6875rem; }

  /* each unshipped app points to the next door, above the tab bar */
  html:is([data-page="lab"], [data-page="ai"]) .next-door:not([hidden]) { display: inline-flex; position: fixed; z-index: 30; inset-inline-start: 14px; inset-block-start: calc(12px + env(safe-area-inset-top)); align-items: center; min-height: 44px; padding: 0 16px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: var(--color-text); }
  html[data-world="light"] .next-door { --glass-bg: rgba(255, 255, 255, .78); color: #1d1d1f; }
  .hero-next { min-height: 44px; }
}
@container (max-height: 230px) {   /* Tidhar's building site on short phones */
  .tile--tidhar-building .crane { height: 64%; inset-block-start: -10%; }
  .tile--tidhar-building .building-site { width: auto; height: 78cqh; }
  .tile--tidhar-building .building-site .building-float { width: auto; height: 100%; }
  .tile--tidhar-building .arc-stage { width: 34px; }
}
/* the tab bar fits even a very narrow window */
@media (max-width: 320px) { .tab { font-size: .6875rem; padding-inline: 4px; letter-spacing: -.02em; } }
/* Check-in's phone: the screen's last banner repeats the trip tile, so it stays below the fold */
.tile--checkin-phone .screen > .shot { height: 112%; object-fit: cover; object-position: 50% 0; }
.tile--hotel-chips .chip-f:nth-child(n) { top: auto; }   /* the old scatter offsets don't apply to a list */

/* ── the narrowest windows (small phones, a side panel) ── */
@container (max-width: 170px) {   /* the departures board on a narrow card */
  .board-k { letter-spacing: .06em; font-size: .5625rem; }
  .board-k .board-clock { display: none; }
  .board-row { gap: 6px; font-size: .5625rem; }
  .board-row .flap { letter-spacing: .02em; padding-inline: 5px; }
}
@container (max-height: 100px) {   /* Hotel's order card at its smallest */
  .tile--hotel-order .feat-t { font-size: .75rem; }
  .tile--hotel-order .order-btn { min-height: 34px; padding: 6px 12px; }
}
@container (max-width: 280px) { .tile--rebar-steps .rb-step-k { font-size: .5625rem; gap: 3px; } }
@container (max-width: 130px) { .pv-modes { gap: 3px; } .pv-mode { min-height: 40px; } .pv-mode i { width: 26px; height: 26px; padding: 5px; } }
@media (max-width: 360px) {
  .cv { grid-template-columns: 1fr; }
  .cv-card { grid-column: auto !important; }
  .proto-cta { font-size: .75rem; }
  .radar-k { font-size: .625rem; }
}
@container (max-width: 125px) { .board-row > span { display: none; } .board-row { grid-template-columns: 1fr; } }
@media (max-width: 300px) {
  .tile--tidhar-proto .proto-cta svg { display: none; }
  .tile--tidhar-proto .proto-cta { padding-inline: 12px; justify-content: center; }
  .tile--hotel-order .order-row b { font-size: .875rem; }
  .tile--hotel-order .order-btn { padding-inline: 9px; }
}
@container (max-width: 125px) { .pass-route { font-size: .9375rem !important; } .pass-meta span:nth-child(3) { display: none; } }


/* ══ BALCONY - back to coral (Daniel's call) ══════════════════════
   The red sweep turns over the rings; people who need help pulse red. */
.radar-me::after, .radar-dot::before { display: none; }
.radar-dot--help::after { display: block; }
.sos-core::before, .sos-core::after { display: block; }
.radar-sweep { display: block; }
/* the hero as it was: the whole line, the palette and the scope, when the card is wide enough to hold them */
@container (max-height: 250px) and (min-width: 520px) {
  .tile--hero-balcony .hero-line .l-full { display: inline; }
  .tile--hero-balcony .hero-line .l-short { display: none; }
  .tile--hero-balcony .hero-foot { display: flex; }
  .tile--hero-balcony .hero-scope { display: flex; }
  .tile--hero-balcony .hero-line { max-width: 30ch; }
}
/* SOS on a short card: the button alone */
@container (max-height: 130px) { .tile--sos .illo-copy { display: none; } .tile--sos .sos-core { inset-block-start: 50%; } }
/* the team: as many people as the card holds, always from the top */
.tile--team .team-row:nth-child(n) { display: flex; }
.tile--team .tile-k { display: block; }
@container (max-height: 150px) { .tile--team .team-row:nth-child(n + 4) { display: none; } }
@container (max-height: 120px) { .tile--team .team-row:nth-child(n + 3) { display: none; } .tile--team .tile-k { display: none; } }
@container (max-height: 60px) { .tile--team .team-row:nth-child(n + 2) { display: none; } }


/* ══ LOGOS - each world signs with its own mark ═══════════════════ */
.hero-name--logo { display: block; line-height: 0; }
.hero-name--logo img { display: block; width: auto; max-width: 100%; height: var(--lh, 64px); object-fit: contain; object-position: left center; }
.logo--tidhar   { --lh: clamp(44px, 26cqh, 92px); }
.logo--hapoalim { --lh: clamp(30px, 17cqh, 60px); }
.logo--maccabiah { --lh: clamp(40px, 25cqh, 150px); }
.logo--rebar    { --lh: clamp(34px, 12cqh, 70px); }
.logo--checkin  { --lh: clamp(34px, 19cqh, 70px); }
.tile--hero-sky .hero-name--logo img { margin-inline: auto; object-position: center; filter: drop-shadow(0 6px 24px rgba(11, 42, 74, .25)); }
.tile--hero-sky .hero-name--logo { display: flex; justify-content: center; }
.js .hero-name--logo img { opacity: 0; translate: 0 22px; transition: opacity .7s var(--ease-apple) .15s, translate 1s var(--ease-spring) .15s; }
.js .scene.is-active .hero-name--logo img { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) { .js .hero-name--logo img { opacity: 1; translate: none; transition: none; } }
@container (max-height: 120px) { .hero-name--logo img { height: min(var(--lh), 44cqh); } }

/* ══ TIDHAR - a task from the app, signed on the line ═══════════════ */
.tile--tidhar-sign { padding: 0; text-align: right; cursor: pointer; }
.sign-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; container-type: size; }
.sign-k { font: 600 .75rem/1 var(--font-text); color: #7a8f87; }
.sign-ico { width: min(34cqw, 92px); filter: drop-shadow(0 12px 16px rgba(20, 51, 43, .18)); align-self: center; margin-block: 2cqh; }
.sign-t { font: 700 clamp(.9375rem, 1.2vw, 1.0625rem)/1.3 var(--font-text); color: #14332b; }
.sign-due { padding: 4px 9px; border-radius: 99px; background: #fde8ea; color: #c62f45; font: 600 .6875rem/1 var(--font-text); }
.sign-pad { position: relative; width: 100%; height: 64px; margin-block-start: auto; border-block-end: 1.5px dashed #c9d6cf; }
.sign-pad::before { content: '×'; position: absolute; inset-inline-start: 2px; inset-block-end: 4px; font: 600 .875rem/1 var(--font-text); color: #9cb8ad; }
.sign-pad svg { position: absolute; inset: 0 8% 6px; width: 84%; height: 100%; overflow: visible; }
.sign-pad path { fill: none; stroke: #0f3d31; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tile--tidhar-sign.is-signed .sign-pad path { stroke-dashoffset: 0; }
.sign-btn { align-self: stretch; display: grid; place-items: center; min-height: 40px; border-radius: 99px; background: #0f4a3a; color: #fff; font: 600 .8125rem/1 var(--font-text); transition: background .4s var(--ease-apple); }
.tile--tidhar-sign.is-signed .sign-btn { background: #2fa37f; }
@container (max-height: 300px) { .sign-ico { display: none; } .sign-card { gap: 8px; padding: 16px; } }
@container (max-height: 210px) { .sign-k, .sign-due { display: none; } .sign-pad { height: 44px; } }

/* ══ TIDHAR - the 3D family: one in front, the rest as a picker ═════ */
.tile--tidhar-icons .icons-card { align-items: center; justify-content: space-between; gap: 10px; padding: 22px 18px 18px; background: radial-gradient(90% 60% at 50% 38%, #f1f6f3 0%, #ffffff 70%); }
.ic-stage { position: relative; flex: 1; width: 100%; display: grid; place-items: center; }
.ic-stage img { grid-area: 1 / 1; width: min(62cqi, 170px); filter: drop-shadow(0 22px 26px rgba(20, 51, 43, .22)); opacity: 0; scale: .82; translate: 0 10px; transition: opacity .5s var(--ease-apple), scale .7s var(--ease-spring), translate .7s var(--ease-spring); }
.ic-stage img.is-on { opacity: 1; scale: 1; translate: 0 0; animation: icon-bob 5s ease-in-out infinite; }
.ic-name { font: 700 .9375rem/1 var(--font-text); color: #14332b; }
.ic-pick { display: flex; gap: 8px; }
.ic-pick button { width: min(40px, 21cqi); height: auto; aspect-ratio: 1; padding: 5px; border-radius: 12px; background: #f3f6f4; box-shadow: inset 0 0 0 1px rgba(15, 61, 49, .06); transition: background .3s, box-shadow .3s, scale .3s var(--ease-bounce); }
.ic-pick button img { width: 100%; height: 100%; object-fit: contain; }
.ic-pick button.is-on { background: #fff; box-shadow: 0 0 0 2px #e9c46a, 0 6px 14px rgba(15, 61, 49, .12); }
.ic-pick button:hover { scale: 1.06; }
@media (prefers-reduced-motion: reduce) { .ic-stage img.is-on { animation: none; } }

/* ══ BALCONY - the phone rises from the foot of its card, as it was ══ */
@media (min-width: 701px) {
  .tile--balcony-phone .phone { inset-block: auto -6%; width: min(82cqw, calc((100cqh - 96px) * .52)); }
}

/* ══ HAPOALIM on a phone - a one-row hero, the board, then the app large ══ */
@media (max-width: 700px) {
  .tile--hapoalim-app .phone { width: 48cqw !important; inset-block: 6% auto !important; }
}

/* ══ ROUND 5 ═══════════════════════════════════════════════════ */
/* reduced motion: jumps, not glides */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* the pager sits under the monitor, never on the site */
.monitor > .side-dots { position: absolute; inset-block: calc(100% + 4px) auto; left: 50%; translate: -50% 0; gap: 10px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.monitor > .side-dots button { background: rgba(0, 0, 0, .22); }
.monitor > .side-dots button.is-on { background: #1d1d1f; }
.side-dots button::after { inset: -10px -5px; }
@media (pointer: coarse) { .side-dots button::after { inset: -16px -8px; } }

/* Backlog on desktop: the title is plain type under the tabs; the three artworks share one line */
.split-head { inset-block: 92px auto; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); color: #1d1d1f; }
@media (min-width: 701px) {
  .half-phones, .half-phones--clalit { width: auto; height: 40vh; inset-block-start: 16vh; }
  .half-phones--clalit { left: 50%; translate: -50% 0; }
  .half--clalit .half-rings { inset-block-start: 13vh; }
  .half--checkin .half-hidden { width: auto; height: 40vh; inset-block-start: 16vh; inset-inline-end: 10%; }
}
.half--checkin .half-name { color: rgba(245, 245, 247, .72); }
@media (hover: none) {   /* on touch, the light passes over Check-in's hidden screen by itself */
  .half--checkin:not(.is-lit) .half-hidden { animation: peek 9s ease-in-out infinite, look 6s ease-in-out 1s infinite alternate; }
}
@property --mlx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --mly { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@keyframes look { 0% { --mlx: 20%; --mly: 20%; } 50% { --mlx: 75%; --mly: 45%; } 100% { --mlx: 40%; --mly: 80%; } }

/* Hotel: the services are a listing, not buttons */
.tile--hotel-chips .chip-f::after { content: none; }
.tile--hotel-chips .chip-f { --chip-edge: transparent; background: none; box-shadow: inset 0 -.5px 0 rgba(255, 196, 0, .22); border-radius: 0; padding-inline: 2px; }

/* Clalit: the phones rise from the foot of their card; the study keeps its label */
.tile--clalit-screens { display: grid; place-items: end center; }
.tile--clalit-screens .clalit-screens { height: 96cqh; width: auto; translate: 0 6%; }
.tile--clalit-screens:hover .clalit-screens { translate: 0 4%; }
@media (min-width: 701px) { .tile--study .tile-k { display: block; } .study-n b { font-size: clamp(3.5rem, 5cqw, 5rem); } }

/* Check-in: the screen sits under its own status band */
.tile--checkin-phone .screen > .shot { width: 100%; height: auto; object-fit: initial; margin-block-start: 9%; }

/* a spoken line never sits under its phone on a narrow card */
@container (max-width: 150px) { .moment { font-size: .8125rem; gap: 4px; } }

@media (max-width: 700px) {
  /* Backlog: the page title gets its own band above the three doors */
  .scene--split .split { inset-block-start: calc(56px + env(safe-area-inset-top)); }
  .scene--split .split-head { inset-block-start: calc(12px + env(safe-area-inset-top)); color: #f5f5f7; text-shadow: none; }
  .scene--split .split-head span { font-size: .625rem; letter-spacing: .08em; white-space: nowrap; }
  .half--hotel .half-copy { padding-block-start: 0; }
  .half--hotel .half-phones { inset-block-start: 8%; width: 34%; }
  .half--hotel .half-line, .half--clalit .half-line { max-width: 58%; }

  /* the way back on the left, the next door on the right */
  html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .nav-inner .back-pill { inset-inline-start: 14px; inset-inline-end: auto; }
  html:is([data-page="lab"], [data-page="ai"]) .next-door:not([hidden]) { inset-inline-end: 14px; inset-inline-start: auto; }

  /* rebar: the line runs in its own band under the phones, whole */

  /* Tidhar: the phone itself opens the prototype */
  .tile--tidhar-phone { cursor: pointer; }
  .tile--tidhar-phone:active { scale: .98; }


  /* Check-in: the route stays out of the words */
  .tile--hero-sky .flight { top: 22%; }

  /* the intro: the whole portrait above the tab bar */
  .intro { justify-content: space-between; }
  .intro-photo { margin-block-start: 8px; }
  .scene--intro { padding-block-end: 100px; }
}
@container (max-width: 280px) { .tile--rebar-steps .rb-step-k { font-size: .75rem; } .tile--rebar-steps .rb-step-k > :not(b) { display: none; } }
@media (max-width: 340px) { .scene--split .split-head span { display: none; } }
@media (max-width: 320px) { .tabs-lens { inset-block: 5px; } }
@media (max-width: 300px) { .back-pill, .next-door { padding-inline: 12px; font-size: .75rem; } }
/* desktop: the next door rides in the nav, next to the way back */
@media (min-width: 701px) {
  html:is([data-page="lab"], [data-page="ai"]) .next-door:not([hidden]) { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 99px; font: 600 .8125rem/1 var(--font-text); color: var(--color-text); }
  html[data-world="light"] .next-door { --glass-bg: rgba(255, 255, 255, .7); color: #1d1d1f; }
}

/* one-row heroes on short phones: the mark first, then as much of the line as fits */
@container (max-height: 110px) {
  .hero-name--logo img { height: min(var(--lh), 34cqh); }
  .tile--hero .hero-line { font-size: .8125rem; line-height: 1.25; }
}
@container (max-height: 64px) { .tile--hero:has(.hero-name--logo) .hero-line { display: none; } }
@container (max-height: 90px) { .tile--hero-bare .hero-line { font-size: .75rem; } }
/* Balcony's count on a narrow card */
@container (max-width: 200px) { .radar-count .rc-w { display: none; } }
@container (max-width: 150px) { .radar-count { font-size: .6875rem; padding: 8px 10px; gap: 4px; } .radar-count b { font-size: 1rem; } }
.radar-count .rc-w { font-style: normal; }
@container (max-height: 300px) { .logo--maccabiah { --lh: clamp(40px, 22cqh, 120px); } }
@container (max-width: 260px) { .tile--hero-rebar .hero-scope span:nth-child(n + 2) { display: none; } }


/* ══ ROUND 6 · fixes ═══════════════════════════════════════════ */
/* rebar: the replay hint is a small ↻, never on a label */
.rb-replay { inset-block: auto 8px; inset-inline: auto 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .06); color: #1d1d1f; font-size: .875rem; }
.tile--rebar-steps.was-replayed .rb-replay { opacity: 0; }

/* Check-in: the orb sits on the app's own orb again; the screen keeps its own status bar */
.tile--checkin-phone .screen > .shot { margin-block-start: 0; }
.tile--checkin-phone .screen::after { display: none; }
@media (max-width: 700px) { .tile--hero-sky .ci-badge { display: none; } }

/* Hotel: the door swings in real 3D, on its hinge, and settles like a heavy door */
.door-scene { perspective: 900px; perspective-origin: 0% 50%; transform-style: preserve-3d; }
.door { transition: transform 1.6s cubic-bezier(.2, .9, .25, 1.02), box-shadow 1s; }
.door::before, .door::after { backface-visibility: hidden; }
.tile--door.is-open .door { transform: rotateY(-78deg); }
@media (prefers-reduced-motion: reduce) { .door { transition: opacity .3s; } .tile--door.is-open .door { transform: none; opacity: 0; } }

/* Balcony: the beam leads - bright at its leading edge, fading behind */
.radar-sweep { background: conic-gradient(from 0deg, rgba(255, 90, 95, 0) 0 74%, rgba(255, 90, 95, .10) 82%, rgba(255, 90, 95, .45) 99.5%, rgba(255, 150, 150, .9) 100%); }

/* Balcony: hold-to-SOS keeps the thumb; a glow fills while you hold */
.sos-core, .bal-sos { touch-action: none; }
@property --hold { syntax: '<number>'; inherits: false; initial-value: 0; }
.sos-core { --hold: 0; transition: --hold .3s linear, scale .3s var(--ease-bounce), background .5s; box-shadow: inset 0 4px 10px rgba(255, 255, 255, .35), inset 0 -10px 20px rgba(150, 20, 30, .3), 0 24px 50px rgba(255, 90, 95, .45), 0 0 0 calc(var(--hold) * 36px) rgba(255, 90, 95, .16); }
.sos-core.is-holding { --hold: 1; transition: --hold 3s linear, scale .3s var(--ease-bounce); }

/* rebar: the add-to-cart card reads in one row */
@container (max-height: 180px) {
  .tile--rebar-product { flex-direction: row; align-items: center; justify-content: flex-start; text-align: start; gap: 12px; }
  .tile--rebar-product .product-cup { flex: none; height: 100%; width: auto; aspect-ratio: 1; }
  .tile--rebar-product .product-copy { display: flex; flex: 1; margin: 0; }
  .tile--rebar-product .product-copy span { display: none; }
  .tile--rebar-product .product-add { align-self: center; }
}

/* the outro: the end of the five */
.scene:has(.outro) { padding-block: 80px 60px; }
.outro { position: relative; z-index: 2; width: min(760px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; color: #f5f5f7; }
.outro-k { font: var(--type-eyebrow); font-size: .9375rem; color: #ff8a86; }
.outro-h { font: 700 clamp(3rem, 7vw, 6.5rem)/.95 var(--font-display); letter-spacing: -.05em; background: linear-gradient(180deg, #fff 35%, #ffc2bd); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-block-end: .08em; }
.outro-line { max-width: 34ch; font: 500 clamp(1.0625rem, 1.5vw, 1.375rem)/1.4 var(--font-text); color: #a1a1a6; text-wrap: balance; }
.outro-actions { justify-content: center; }
.outro .about-btn--mail { background: #fff; color: #1d1d1f; }
.outro .about-btn:not(.about-btn--mail) { background: rgba(255, 255, 255, .1); color: #fff; }
.outro-more { display: flex; gap: 22px; margin-block-start: 6px; font: 600 .9375rem/1 var(--font-text); }
.outro-more a { color: #f5f5f7; opacity: .7; transition: opacity .3s; }
.outro-more a:hover { opacity: 1; }
.js .outro > * { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease-apple), translate 1.1s var(--ease-spring); }
.js .scene.is-active .outro > * { opacity: 1; translate: 0 0; }
.js .scene.is-active .outro > :nth-child(2) { transition-delay: .08s; } .js .scene.is-active .outro > :nth-child(3) { transition-delay: .16s; }
.js .scene.is-active .outro > :nth-child(4) { transition-delay: .24s; } .js .scene.is-active .outro > :nth-child(5) { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .js .outro > * { opacity: 1; translate: none; transition: none; } }

/* the narrow pane: nothing pushes the page sideways */
.cv > *, .cv-card, .cv-links a { min-width: 0; }
.about-page { overflow-x: clip; }
.cv-links b, .cv-links span { overflow-wrap: anywhere; }
.hero-idx { white-space: nowrap; }
@container (max-width: 300px) { .hero-idx { display: none; } }
@media (max-width: 300px) {
  .cv-links { grid-template-columns: 1fr; }
  .tile--hero-balcony .hero-logo { width: 44px; inset-block: auto 14px; }
  .half-phones, .half-rings { width: 30%; opacity: .5; }
  .tab { padding-inline: 8px; }
}

@media (max-width: 700px) {
  /* the unshipped apps: room under the fixed pills */
  html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .scene { padding-block-start: calc(72px + env(safe-area-inset-top)); }
  html:is([data-page="lab"], [data-page="ai"]) .bento { --rh: calc((100svh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5 * var(--gap)) / 6); }
  /* one-row heroes: the mark at the start, the short line at the end */
  .tile--hero-bank .hero-main, .tile--hero-rebar .hero-main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .tile--hero-bank .hero-line, .tile--hero-rebar .hero-line { max-width: 16ch; font-size: .75rem; text-align: end; }
}
@container (max-height: 180px) {
  .tile--rebar-product .product-copy { min-width: 0; }
  .tile--rebar-product .product-copy b { font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tile--rebar-product .product-add { flex: none; padding: 7px 12px; font-size: .75rem; }
}
@media (min-width: 701px) {   /* the card is one row tall on desktop: cup, name, button side by side */
  .tile--rebar-product { flex-direction: row; align-items: center; justify-content: flex-start; text-align: start; gap: 12px; }
  .tile--rebar-product .product-cup { flex: none; height: 100%; width: auto; aspect-ratio: 1; }
  .tile--rebar-product .product-copy { display: flex; flex: 1; min-width: 0; margin: 0; }
  .tile--rebar-product .product-add { flex: none; }
}
.tile--rebar-product .product-copy b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.1; }
@container (max-width: 250px) { .tile--rebar-product .product-copy { display: none; } }

/* ══ ROUND 6 · MOTION - one hand-over, and a moment in every world ═══ */

/* the bento gathers toward its hero, each tile from its own side */
@media (prefers-reduced-motion: no-preference) {
  .js .scene .bento > .slot > .tile { translate: var(--bx, 0px) var(--by, 36px); }
  .js .scene:is(.is-active, .was-seen) .bento > .slot > .tile { translate: 0 0; }
}

/* logos ink in, in their reading direction, with one pass of light */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-name--logo { position: relative; }
  .js .hero-name--logo img { opacity: 1; translate: none; clip-path: inset(-10% 100% -10% 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) .22s; }
  .js .logo--rtl img { clip-path: inset(-10% 0 -10% 100%); }
  .js .scene:is(.is-active, .was-seen) .hero-name--logo img { clip-path: inset(-10% 0); }
  .hero-name--logo { width: fit-content; overflow: hidden; }
  .tile--hero-sky .hero-name--logo { margin-inline: auto; }
  .hero-name--logo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .7) 50%, transparent 65%); translate: -120% 0; opacity: 0;
    -webkit-mask: var(--logo-src) center / contain no-repeat; mask: var(--logo-src) center / contain no-repeat; -webkit-mask-origin: content-box; }
  .scene.is-active .hero-name--logo::after { animation: logo-sheen 1.1s cubic-bezier(.32, .72, 0, 1) 1.2s both; }
  .scene.is-active .logo--rtl::after { animation-name: logo-sheen-rtl; }
}
@keyframes logo-sheen { 0% { translate: -120% 0; opacity: 1; } 100% { translate: 120% 0; opacity: 0; } }
@keyframes logo-sheen-rtl { 0% { translate: 120% 0; opacity: 1; } 100% { translate: -120% 0; opacity: 0; } }

/* phones and monitors settle in once, as their world arrives */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .scene .tile--device .phone:not(.rb-step-phone), .scene .monitor { animation: none; }
  }
}
@keyframes tilt-in { from { transform: perspective(1200px) rotateX(14deg) translateY(8%) scale(.95); } }

/* Backlog: the door you pick becomes the project */
::view-transition-group(nh-door) { animation-duration: .8s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-old(nh-door), ::view-transition-new(nh-door) { height: 100%; object-fit: cover; }
.split:has(.half:hover) .half:not(:hover) { filter: saturate(.6) brightness(.82); }

/* rebar: the cup in flight */
.cup-fly { position: fixed; z-index: 70; width: 22px; height: 22px; pointer-events: none; color: #5ea531; }
.cup-fly > i { display: block; width: 100%; height: 100%; }
.cup-fly svg { width: 100%; height: 100%; }
.tile--rebar-punch.is-full .punch-cups i { animation: cup-fill .5s var(--ease-spring) both; animation-delay: calc(var(--i) * 45ms); }
@keyframes cup-fill { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.tile--rebar-punch.is-full::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 30%, #5ea53155 50%, transparent 70%); animation: punch-sheen 1.2s cubic-bezier(.32, .72, 0, 1) .45s both; }
@keyframes punch-sheen { from { translate: -100% 0; } to { translate: 100% 0; } }

/* Balcony: the SOS shockwave, and the people it reaches */
.sos-ring { position: fixed; z-index: 45; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; border: 2px solid rgba(255, 90, 95, .9); box-shadow: 0 0 30px rgba(255, 90, 95, .6); pointer-events: none; mix-blend-mode: screen; }
.radar-dot--help.is-reached { background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .3), 0 0 18px #34c759; transition: background .4s, box-shadow .4s; }
.radar-dot--help.is-reached::after { border-color: rgba(52, 199, 89, .6); }

/* odometer digits */
.count .odo { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; font: inherit; line-height: 1; }
.count .odo-col { display: flex; flex-direction: column; font: inherit; line-height: 1; translate: 0 calc(var(--d) * -1em); transition: translate 1.3s cubic-bezier(.32, .72, 0, 1) calc(var(--k) * 90ms); }
.count .odo-col > b { display: block; height: 1em; font: inherit; line-height: 1; }
@media (prefers-reduced-motion: reduce) { .count .odo-col { transition: none; } }

/* Hotel: the light spills onto the floor, and the whole page warms */
.door-spill { position: absolute; z-index: -1; inset-inline: -40% -40%; inset-block: 100% -60%; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); background: linear-gradient(#ffcc00aa, transparent 85%); transform-origin: 50% 0; scale: 1 0; opacity: 0; transition: scale 1.2s cubic-bezier(.2, .9, .25, 1) .15s, opacity .8s .15s; filter: blur(6px); }
.tile--door.is-open .door-spill { scale: 1 1; opacity: 1; }
.tile--door { background: radial-gradient(60% 50% at 50% 0%, rgba(255, 196, 0, .14), transparent 70%), radial-gradient(90% 70% at 50% 100%, #3a2a00 0%, #17150f 70%); }
.door-scene { width: min(54cqw, 40cqh * 1.1); }
.ambient.is-warm { --amb-a: #ffcc00 !important; transition: --amb-a 1.4s; }
.ht-note { margin: 0; padding: 0 3.6cqw; max-height: 0; opacity: 0; overflow: hidden; font: 600 3cqw/1.3 var(--font-text); color: #2fa37f; transition: max-height .3s, opacity .3s, translate .3s; translate: 0 6px; }
.ht-note.is-on { max-height: 8cqw; opacity: 1; translate: 0 0; }
.tile--hotel-chips .chip-f { cursor: pointer; }
.tile--hotel-chips .chip-f:hover { background: rgba(255, 196, 0, .08); }

/* Check-in: the stub tears; the barcode scans once; Siri's light rings the screen when the assistant wakes */
.pass-stub { transform-origin: 0 100%; transition: transform .8s cubic-bezier(.34, 1.3, .64, 1); }
.tile--pass { cursor: pointer; }
.tile--pass:hover .pass-stub, .tile--pass.is-torn .pass-stub { transform: translateX(8px) rotate(5deg); }
.barcode { position: relative; }
.barcode::after { content: ''; position: absolute; inset-inline: -4px; height: 2px; top: 0; background: #fff; box-shadow: 0 0 10px #fff; opacity: 0; }
.scene.is-active .barcode::after { animation: scan 1.1s cubic-bezier(.45, 0, .55, 1) 1.2s both; }
@keyframes scan { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@property --ga { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.edge-glow { position: fixed; inset: 0; z-index: 80; pointer-events: none; padding: 3px; border-radius: 0; background: conic-gradient(from var(--ga), #EF024D, #FF842A, #2f80ff, #a6127e, #EF024D); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); filter: blur(8px); animation: edge-glow 1.5s cubic-bezier(.32, .72, 0, 1) both; }
@keyframes edge-glow { 0% { --ga: 0deg; opacity: 0; } 30% { opacity: .85; } 100% { --ga: 270deg; opacity: 0; } }

/* the intro: each client chip glows in its world's colour */
.intro-work a { transition: box-shadow .4s var(--ease-apple), color .3s; }
.intro-work a:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--c), 0 0 24px -6px var(--c); color: #fff; }

/* Hapoalim: the WINNER rules draw outward */
@media (prefers-reduced-motion: no-preference) {
  .seal-line i { scale: 0 1; transition: scale .9s cubic-bezier(.65, 0, .35, 1) .9s; transform-origin: right center; }
  .seal-line i:last-child { transform-origin: left center; }
  .scene:is(.is-active, .was-seen) .seal-line i { scale: 1 1; }
}

/* About: Selected work fills from its edge on hover */
.cv-links a { position: relative; overflow: hidden; isolation: isolate; }
.cv-links a::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--wc); opacity: .16; transform-origin: left center; scale: 0 1; transition: scale .6s cubic-bezier(.32, .72, 0, 1); }
.cv-links a:is(:hover, :focus-visible)::after { scale: 1 1; }
.cv-links a i { transition: translate .5s var(--ease-bounce); }
.cv-links a:is(:hover, :focus-visible) i { translate: 4px 0; }

/* Tidhar: your own signature */
.sign-pad { touch-action: none; cursor: crosshair; }
.sign-own { fill: none; stroke: #0f3d31; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Clalit: the pair rises centred and bleeds off the foot */
.tile--clalit-screens { place-items: end center; background: radial-gradient(70% 60% at 50% 100%, #d9f2ec, #fff 70%); }
.tile--clalit-screens .clalit-screens { height: 124cqh; translate: 0 18%; max-width: none; }
.tile--clalit-screens:hover .clalit-screens { translate: 0 15%; }

/* the tab lens takes the world's colour */
.tabs-lens { background: color-mix(in oklab, var(--amb-a, #fff) 22%, var(--glass-lens)); box-shadow: inset 0 1px 0 var(--glass-highlight), 0 2px 10px rgba(0, 0, 0, .14), 0 0 24px -6px color-mix(in oklab, var(--amb-a, transparent) 60%, transparent); }

/* the glass catches the light when a site turns */
@property --gl { syntax: '<percentage>'; inherits: true; initial-value: -120%; }
.monitor-screen::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); translate: var(--gl) 0; }
@media (min-width: 701px) { .tile--rebar-product .product-cup { height: min(100%, calc(100cqw - 84px)); } }

/* Hapoalim: the whole site in a browser, scrolling itself from the top to the foot */
.tile--site-scroll { padding: 14px; background: linear-gradient(180deg, #fff, #fbeff0); }
.browser { position: relative; height: 100%; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 24px 40px -24px rgba(120, 0, 10, .35); }
.browser-bar { flex: none; display: flex; align-items: center; gap: 5px; padding: 8px 10px; background: #f3f1ee; border-block-end: 1px solid rgba(0, 0, 0, .05); font: 500 .625rem/1 var(--font-text); color: #86868b; }
.browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: #d8d4cf; }
.browser-bar span { flex: 1; margin-inline-start: 6px; padding: 4px 8px; border-radius: 6px; background: #fff; text-align: center; }
.browser-view { position: relative; flex: 1; overflow: hidden; container-type: size; }
.browser-view img { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .tile--site-scroll .browser-view img { animation: site-tour 42s cubic-bezier(.45, 0, .55, 1) infinite alternate; animation-play-state: paused; }
  .scene.is-active .tile--site-scroll .browser-view img { animation-play-state: running; }
  .scene.is-active .tile--site-scroll:hover .browser-view img { animation-play-state: paused; }
}
@keyframes site-tour { 0%, 4% { translate: 0 0; } 96%, 100% { translate: 0 calc(-100% + 100cqh); } }
@container (max-width: 220px) { .browser-bar i { display: none; } .browser-bar span { margin: 0; padding-inline: 4px; font-size: .5625rem; overflow: hidden; white-space: nowrap; text-overflow: clip; } }

/* Hapoalim: the site on the monitor alone - the app keeps the only phone */
.tile--monitor-only .dev-stage { justify-content: center; --mw: min(calc(100cqw - 56px), calc(76cqh * 1.6)); }

/* the tiles assemble while their world rises in, not all at once when it reaches the middle */
.js .scene.was-seen:not(.is-active) .tile { --d: calc(.04s + var(--i) * 55ms); }

/* ══ rebar - the app's own steps, from the site's "get the app!" ═══ */
.rb-step-img { position: relative; display: block; height: min(80cqh, 100cqh - 70px); width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .14)); transition: translate .6s var(--ease-spring); }
@media (hover: hover) { .rb-step:hover .rb-step-img { translate: 0 -6px; } }
@media (max-width: 700px) { .tile--rebar-steps .rb-step-img { height: auto; width: 100%; max-height: 72cqh; } }

/* ══ HAPOALIM - a usability test, running ══════════════════════════ */
.tile--ut { gap: 10px; padding: 18px; background: #fff; color: #1d1d1f; }
.ut-k { display: flex; align-items: center; gap: 8px; font: 600 .75rem/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase; color: #86868b; }
.ut-rec { width: 8px; height: 8px; border-radius: 50%; background: #e7192e; box-shadow: 0 0 0 4px rgba(231, 25, 46, .15); }
.scene.is-active .ut-rec { animation: halo-breathe 1.4s ease-in-out infinite; }
.ut-time { margin-inline-start: auto; font-variant-numeric: tabular-nums; color: #1d1d1f; letter-spacing: .02em; }
.ut-t { font: 700 clamp(1.0625rem, 1.4vw, 1.375rem)/1.15 var(--font-display); letter-spacing: -.02em; }
.ut-tasks { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ut-tasks li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #f6f4f2; font: 500 .8125rem/1.3 var(--font-text); color: #6e6e73; transition: background .4s var(--ease-apple), color .4s, box-shadow .4s; }
.ut-tasks li i { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #d2d2d7; display: grid; place-items: center; transition: background .4s, box-shadow .4s; }
.ut-tasks li.is-now { background: #fff; color: #1d1d1f; box-shadow: 0 0 0 1.5px #e7192e, 0 10px 24px -12px rgba(231, 25, 46, .4); }
.ut-tasks li.is-now i { box-shadow: inset 0 0 0 1.5px #e7192e; }
.ut-tasks li.is-done { color: #1d1d1f; }
.ut-tasks li.is-done i { background: #2fa37f; box-shadow: none; }
.ut-tasks li.is-done i::after { content: '✓'; color: #fff; font: 700 .625rem/1 var(--font-text); }
.ut-wave { display: flex; align-items: center; gap: 3px; height: 28px; }
.ut-wave i { flex: 1; height: 20%; border-radius: 2px; background: #e7192e; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .ut-wave i { animation: ut-wave 1.2s ease-in-out infinite; animation-delay: calc(var(--i) * -97ms); }
}
@keyframes ut-wave { 0%, 100% { height: 18%; } 30% { height: 90%; } 60% { height: 40%; } }
@container (max-height: 300px) { .ut-t { display: none; } .ut-tasks li:nth-child(n + 4) { display: none; } }
@container (max-height: 220px) { .ut-wave { display: none; } .ut-tasks li:nth-child(n + 3) { display: none; } }

/* ══ MACCABIAH - in the Games' own language: white type, no badges, flat shapes ══ */
.tile--mac-phone .moment .quote { display: none; }
.tile--mac-phone .moment b { background: none; -webkit-text-fill-color: #fff; color: #fff; }
.tile--mac-kit .sticker { filter: none; }
.mac-label { padding: 0; background: none; color: #fff; }
.mac-label p { color: rgba(255, 255, 255, .8); }

/* ══ 40 WEEKS - the case study's own language: teal rings, the ✱, soft screens ══ */
.tile--clalit-fan { padding: 0; background: radial-gradient(80% 70% at 50% 60%, #e3f5f1 0%, #ffffff 70%); overflow: hidden; }
.cl-ring { position: absolute; border-radius: 50%; border: clamp(10px, 2.2cqw, 22px) solid transparent; background: linear-gradient(135deg, #22a597, #0e5b57) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0); opacity: .9; }
.cl-ring--a { width: 78cqh; aspect-ratio: 1; left: 50%; inset-block-start: 50%; translate: -62% -46%; }
.cl-ring--b { width: 34cqh; aspect-ratio: 1; left: 50%; inset-block-start: 50%; translate: 46% -88%; opacity: .55; }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .cl-ring--a { animation: cl-orbit 24s linear infinite; }
  .scene.is-active .cl-ring--b { animation: cl-orbit 18s linear infinite reverse; }
}
@keyframes cl-orbit { to { rotate: 360deg; } }
.cl-fan { position: absolute; inset: 0; display: grid; place-items: center; }
.cl-screen { display: block; height: auto; filter: drop-shadow(0 24px 36px rgba(14, 91, 87, .22)); }
.cl-fan .cl-screen { grid-area: 1 / 1; width: auto; height: min(84cqh, 100cqw * .52); transition: translate 1s var(--ease-spring), rotate 1s var(--ease-spring), scale 1s var(--ease-spring); }
.cl-screen--c { z-index: 2; }
.cl-screen--l { translate: -46% 6%; rotate: -8deg; scale: .86; }
.cl-screen--r { translate: 46% 6%; rotate: 8deg; scale: .86; }
.tile--clalit-fan:hover .cl-screen--l { translate: -58% 3%; rotate: -11deg; }
.tile--clalit-fan:hover .cl-screen--r { translate: 58% 3%; rotate: 11deg; }
.js .scene:not(.was-seen) .cl-screen--l, .js .scene:not(.was-seen) .cl-screen--r { translate: 0 6%; rotate: 0deg; }
@container (max-width: 380px) { .cl-fan .cl-screen { height: min(78cqh, 100cqw * .6); } .cl-screen--l { translate: -38% 6%; } .cl-screen--r { translate: 38% 6%; } }

.tile--persona { gap: 8px; background: #fff; color: #0e5b57; }
.persona-face { width: clamp(56px, 30cqw, 104px); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px #e3f5f1; margin-block-start: 4px; }
.persona-name { display: flex; flex-direction: column; gap: 2px; }
.persona-name b { font: 700 1.0625rem/1.15 var(--font-display); letter-spacing: -.01em; }
.persona-name span { font: 500 .75rem/1 var(--font-text); color: #5a8f8a; }
.persona-q { font: 500 .875rem/1.4 var(--font-text); color: #1d1d1f; }
.persona-dot { display: flex; align-items: center; gap: 8px; margin-block-start: auto; padding: 8px 12px; border-radius: 99px; background: #e9f7f0; color: #1f7a4a; font: 600 .75rem/1 var(--font-text); align-self: flex-start; }
.persona-dot i { width: 9px; height: 9px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 0 rgba(47, 191, 113, .5); }
.scene.is-active .persona-dot i { animation: green-dot 2s ease-out infinite; }
@keyframes green-dot { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(47, 191, 113, 0); } }
@container (max-height: 420px) { .tile--persona .tile-k { display: none; } }
@container (max-height: 300px) { .persona-q { display: none; } }
@container (max-height: 160px) {   /* one row on a phone: face, name, the dot */
  .tile--persona { flex-direction: row; align-items: center; gap: 12px; padding-block: 10px; }
  .tile--persona .tile-k { display: none; }
  .persona-face { width: min(52px, 60cqh); margin: 0; flex: none; }
  .persona-name { min-width: 0; }
  .persona-name b { font-size: .9375rem; }
  .persona-dot { margin: 0 0 0 auto; align-self: center; flex: none; }
}

.tile--clalit-onboard { display: grid; place-items: center; padding: 14px; background: linear-gradient(180deg, #ffffff, #eef8f6); }
.cl-screen--solo { width: auto; height: auto; max-width: 100%; max-height: 100%; }

.tile--clalit-feat { justify-content: center; background: #0e5b57; color: #e6f7f3; }
.cl-feats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.cl-feats li { display: flex; align-items: center; gap: 7px; font: 600 .875rem/1.2 var(--font-text); opacity: .55; transition: opacity .5s var(--ease-apple); }
.cl-feats li.is-on { opacity: 1; }
.cl-ast { width: 16px; height: 16px; flex: none; }
.cl-ast path { fill: none; stroke: #9fe0d4; stroke-width: 3.2; stroke-linecap: round; }
.cl-feats li.is-on .cl-ast { rotate: 90deg; transition: rotate .8s var(--ease-spring); }

.tile--clalit-proc { justify-content: center; background: #fff; }
.cl-proc { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 0; list-style: none; }
.cl-proc::before { content: ''; position: absolute; inset-inline: 7px; inset-block-start: 7px; height: 2px; background: #e3f5f1; }
.cl-proc::after { content: ''; position: absolute; inset-inline-start: 7px; inset-block-start: 7px; height: 2px; width: calc(100% - 14px); background: #22a597; transform-origin: left center; scale: 0 1; transition: scale 2s cubic-bezier(.65, 0, .35, 1) .4s; }
.scene:is(.is-active, .was-seen) .cl-proc::after { scale: 1 1; }
.cl-proc li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; font: 600 .8125rem/1.2 var(--font-text); color: #0e5b57; text-align: center; }
.cl-proc li:first-child { align-items: flex-start; } .cl-proc li:last-child { align-items: flex-end; }
.cl-proc i { width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #22a597; transition: background .4s calc(.4s + var(--i) * .5s); }
.scene:is(.is-active, .was-seen) .cl-proc i { background: #22a597; }
.cl-proc li:last-child span { color: #1d1d1f; }
@media (prefers-reduced-motion: reduce) { .cl-proc::after { scale: 1 1; transition: none; } .cl-proc i { background: #22a597; transition: none; } }
@container (max-width: 300px) { .cl-proc li { font-size: .6875rem; } .cl-feats li { font-size: .75rem; } }
@container (max-height: 160px) { .persona-dot .pd-more { display: none; } }
@container (max-width: 300px) and (max-height: 160px) { .persona-name span { display: none; } }
@container (max-width: 240px) and (max-height: 160px) { .persona-dot { font-size: 0; gap: 0; padding: 8px; } }
@container (max-height: 110px) { .tile--study .tile-k { display: none; } .tile--study .study-n b { font-size: 2rem; } .tile--study .study-t { font-size: .6875rem; line-height: 1.25; } }
@container (max-width: 200px) and (max-height: 160px) { .persona-name { display: none; } }
@container (max-height: 160px) and (max-width: 200px) { .tile--study .study-t { font-size: .6875rem; } }
@media (max-width: 700px) {   /* the persona is one row on a phone: face, name, the green dot */
  .tile--persona { flex-direction: row; align-items: center; gap: 12px; padding-block: 10px; }
  .tile--persona .tile-k, .tile--persona .persona-q { display: none; }
  .tile--persona .persona-face { width: 48px; margin: 0; flex: none; }
  .tile--persona .persona-name { min-width: 0; flex: 1; }
  .tile--persona .persona-dot { margin: 0; align-self: center; flex: none; }
  .tile--persona .persona-dot .pd-more { display: none; }
}
@media (max-width: 300px) { .tile--persona .persona-name span { display: none; } .tile--persona .persona-name b { font-size: .8125rem; } }
@container (max-width: 130px) { .tile--study .study-t { font-size: .625rem; } .tile--study .study-n b { font-size: 1.75rem; } }

/* ══ CASE STUDIES - the original portfolio's template, set properly ══ */
html[data-page="case"] { scroll-snap-type: none; }
html[data-page="case"] .ambient { --w1: #f7f7f5; --w2: #f7f7f5; --w3: #ffffff; --glow: 0; }
html[data-page="case"] .ambient::before, html[data-page="case"] .ambient-tide { display: none; }
html[data-page="case"] .rail { display: none; }
html[data-page="case"] .back-pill { display: inline-flex; --glass-bg: rgba(255, 255, 255, .78); color: #1d1d1f; }
.case-page { position: relative; z-index: 1; }
.case { --cs-w: min(1120px, calc(100vw - 48px)); color: var(--cs-ink); padding-block: 120px 40px; font-family: var(--font-text); letter-spacing: 0; }
.case > * { width: var(--cs-w); margin-inline: auto; }
.case p, .case li { font: 400 1.0625rem/1.65 var(--font-text); color: #3a3a3c; }
.case b { color: #1d1d1f; font-weight: 700; }

/* the cover */
.cs-cover { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; min-height: 72svh; }
.cs-cover-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 18px; }
.cs-kicker { font: 600 .8125rem/1 var(--font-text) !important; letter-spacing: .14em !important; text-transform: uppercase; color: #86868b !important; }
.cs-cover h1 { font: 700 clamp(2.75rem, 6vw, 5rem)/.98 var(--font-display); letter-spacing: -.045em; color: #1d1d1f; }
.cs-intro { font-size: 1.25rem !important; line-height: 1.55 !important; max-width: 34ch; }
.cs-role { font-weight: 500 !important; color: #1d1d1f !important; }
.cs-note { display: flex; align-items: center; gap: 10px; }
.cs-cover-img { position: relative; z-index: 2; width: 100%; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .14)); }
.cs-decor { position: absolute; pointer-events: none; user-select: none; }
.cs-decor--cover { z-index: 1; inset-inline-end: -6%; inset-block-start: 4%; width: 52%; opacity: .95; }
.cs--bar-top .cs-decor--cover { width: 46%; inset-inline-end: 2%; }
.cs-decor--side { inset-inline-end: -4%; inset-block-start: -40px; width: 160px; z-index: 0; }
.cs-decor--proto { inset-inline-start: -2%; inset-block-end: 0; width: 260px; z-index: 0; }
.cs-ast { width: 18px; height: 18px; flex: none; }
.cs-ast path { fill: none; stroke: var(--cs-accent); stroke-width: 3.4; stroke-linecap: round; }

/* sections and their headings */
.cs-block { position: relative; padding-block: 72px; }
.cs-block:nth-of-type(even)::before { content: ''; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc((100vw - var(--cs-w)) / -2); background: #f2f2f0; }
.cs-h { position: relative; z-index: 1; margin-block-end: 28px; font: 600 clamp(1.75rem, 3.2vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -.03em; color: #1d1d1f; }
.cs--bar-left .cs-h { padding-inline-start: 22px; }
.cs--bar-left .cs-h::before { content: ''; position: absolute; inset-inline-start: 0; inset-block: .12em; width: 5px; border-radius: 3px; background: var(--cs-accent); }
.cs--bar-top .cs-h { padding-block-start: 22px; }
.cs--bar-top .cs-h::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: 0; width: 72px; height: 6px; border-radius: 3px; background: var(--cs-accent); }
.cs-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.cs-body > .cs-fig, .cs-body > .cs-feature { max-width: none; width: var(--cs-w); }
.cs-sub { margin-block-start: 14px; font: 700 1.125rem/1.3 var(--font-text); color: #1d1d1f; }
.cs-lead { font: 600 1.5rem/1.2 var(--font-display) !important; color: #1d1d1f !important; letter-spacing: -.02em; }
.cs-dots, .cs-dashes { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cs-dots li, .cs-dashes li { position: relative; padding-inline-start: 26px; }
.cs-dots li::before { content: ''; position: absolute; inset-inline-start: 2px; inset-block-start: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--cs-accent); }
.cs-dashes li::before { content: ''; position: absolute; inset-inline-start: 0; inset-block-start: .78em; width: 14px; height: 3px; border-radius: 2px; background: var(--cs-accent); }
.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0; padding: 0; list-style: none; }
.cs-chips li { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 8px 20px -12px rgba(0, 0, 0, .2); font-size: .9375rem !important; color: #1d1d1f !important; }
.cs-chips li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-accent); }

/* process cards */
.cs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 44px 34px; margin: 56px 0 0; padding: 0; list-style: none; counter-reset: step; }
.cs-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 58px 22px 30px; border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 30px 50px -34px rgba(0, 0, 0, .3), 0 1px 0 rgba(0, 0, 0, .03); }
.cs-card + .cs-card::before { content: '→'; position: absolute; inset-inline-start: -28px; inset-block-start: 50%; translate: 0 -50%; font: 400 1.5rem/1 var(--font-text); color: var(--cs-accent); }
.cs-card-ico { position: absolute; inset-block-start: -34px; left: 50%; translate: -50% 0; width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .3); color: #1d1d1f; }
.cs-card-ico svg { width: 30px; height: 30px; }
.cs-card h3 { margin-block-end: 8px; font: 600 1.375rem/1.15 var(--font-display); letter-spacing: -.02em; color: #1d1d1f; }
.cs-card ul { margin: 0; padding: 0; list-style: none; }
.cs-card li { font-size: .9375rem !important; line-height: 1.75 !important; color: #3a3a3c; }
.cs-soon { display: flex; align-items: center; gap: 6px; margin-block-start: 10px; font-size: .8125rem !important; color: #86868b !important; }
.cs-soon .cs-ast { width: 12px; height: 12px; }

/* numbers in rings, and what people said */
.cs-split { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 56px; }
.cs-rings { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.cs-ring { position: relative; display: grid; place-items: center; aspect-ratio: 1; margin: 0; padding: 18%; text-align: center; }
.cs-ring:nth-child(2) { grid-row: span 2; align-self: center; }
.cs-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.cs-ring circle { fill: none; stroke: var(--cs-accent); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.6s cubic-bezier(.32, .72, 0, 1) calc(.2s + var(--i) * .25s); }
.cs-split.is-in .cs-ring circle { stroke-dasharray: var(--p) 100; }
.cs-ring b { font: 800 clamp(1.75rem, 3.2vw, 2.5rem)/1 var(--font-display); letter-spacing: -.03em; }
.cs-ring figcaption { margin-block-start: 6px; font: 400 .875rem/1.35 var(--font-text); color: #3a3a3c; }
.cs-quotes { display: flex; flex-direction: column; gap: 18px; }
.cs-quotes blockquote { position: relative; margin: 0; font: 500 1.375rem/1.45 var(--font-display); letter-spacing: -.01em; color: #1d1d1f; }
.cs-quotes blockquote::before { content: '“'; color: var(--cs-accent); font-weight: 800; margin-inline-end: 4px; }
.cs-quotes blockquote::after { content: '”'; color: var(--cs-accent); font-weight: 800; margin-inline-start: 2px; }

/* the persona */
.cs-persona { position: relative; margin-block-start: 90px; padding: 96px clamp(24px, 6vw, 80px) 56px; border-radius: 56px; background: #fff; text-align: center; box-shadow: 0 40px 70px -46px rgba(0, 0, 0, .35); }
.cs-persona-photo { position: absolute; inset-block-start: -64px; left: 50%; translate: -50% 0; width: 128px; height: 128px; border-radius: 50%; box-shadow: 0 0 0 4px var(--cs-accent), 0 18px 30px -14px rgba(0, 0, 0, .35); }
.cs-persona-name { font: 500 1.75rem/1.1 var(--font-display); letter-spacing: -.02em; color: #1d1d1f; }
.cs-persona-place { margin-block-start: 6px; font-size: .875rem !important; letter-spacing: .04em; color: #6e6e73 !important; }
.cs-persona-bio { max-width: 62ch; margin: 18px auto 0; }
.cs-persona-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-block-start: 44px; text-align: start; }
.cs-persona-cols > div + div { padding-inline-start: 48px; border-inline-start: 1px solid #e5e5ea; }
.cs-persona-cols h4 { margin-block: 18px 6px; font: 700 1rem/1.3 var(--font-text); color: #1d1d1f; }
.cs-persona-q { margin: 0 0 8px; font: 500 1.625rem/1.4 var(--font-display); letter-spacing: -.015em; color: #1d1d1f; text-align: center; }
.cs-persona-q::before, .cs-persona-q::after { color: var(--cs-accent); font-weight: 800; }
.cs-persona-q::before { content: '“ '; } .cs-persona-q::after { content: ' ”'; }

/* the ideation flow */
.cs-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 8px 0; padding: 0; list-style: none; }
.cs-flow li { padding: 22px 26px; min-width: 150px; border-radius: 20px; background: #fff; text-align: center; font: 500 1.0625rem/1.3 var(--font-text) !important; color: #1d1d1f !important; box-shadow: 0 20px 34px -24px rgba(0, 0, 0, .3); }
.cs-flow > i { font-style: normal; font-size: 1.25rem; color: var(--cs-accent); }

/* pictures and the UI */
.cs-fig { margin: 10px 0; display: grid; place-items: center; }
.cs-fig img { max-width: 100%; height: auto; border-radius: 18px; }
.cs-fig--tall img { max-height: 1500px; width: auto; }
.cs-feature { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 6vw, 80px); margin-block: 30px; }
.cs-feature:nth-of-type(even) { grid-template-columns: 1fr auto; }
.cs-feature:nth-of-type(even) .cs-feature-shots { order: 2; }
.cs-feature-shots { display: flex; gap: 18px; justify-content: center; }
.cs-feature-shots img { width: auto; height: min(560px, 70svh); max-width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .14)); }
.cs-feature--wide .cs-feature-shots img { height: auto; width: min(560px, 100%); }
.cs-feature-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 34ch; }
.cs-feature-copy h3 { font: 700 1.25rem/1.25 var(--font-text); color: #1d1d1f; }
.cs-feature-copy p { margin: 0; }
.cs-feature-copy--big p { font: 500 clamp(1.5rem, 2.6vw, 2.125rem)/1.3 var(--font-display) !important; letter-spacing: -.02em; color: #1d1d1f !important; }
.cs-feature-copy .cs-ast { width: 26px; height: 26px; }
.cs-pin { width: 12px; height: 12px; border-radius: 50%; background: var(--cs-accent); box-shadow: 0 0 0 6px color-mix(in srgb, var(--cs-accent) 18%, transparent); }

/* the prototype, and the thank you */
.cs-proto { text-align: center; }
.cs-proto .cs-h { display: inline-block; }
.cs-proto-link { position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 18px; color: #1d1d1f; }
.cs-proto-link img { width: min(320px, 70vw); filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .18)); transition: translate .6s var(--ease-spring); }
.cs-proto-link:hover img { translate: 0 -8px; }
.cs-proto-link span { padding: 12px 22px; border-radius: 99px; background: #1d1d1f; color: #fff; font: 600 .9375rem/1 var(--font-text); }
.cs-thanks { padding-block: 100px 40px; text-align: center; }
.cs-thanks-h { font: 700 clamp(3rem, 8vw, 6.5rem)/1 var(--font-display) !important; letter-spacing: -.04em; color: #1d1d1f !important; }
.cs-thanks-by { display: inline-flex; align-items: center; gap: 10px; margin-block-start: 16px; font: 500 1.375rem/1 var(--font-display) !important; color: #1d1d1f !important; }
.cs-thanks-nav { display: flex; justify-content: center; gap: 24px; margin-block-start: 44px; font-weight: 600 !important; }
.cs-thanks-nav a { color: #1d1d1f; opacity: .7; transition: opacity .3s; }
.cs-thanks-nav a:hover { opacity: 1; }

/* the hero's way in */
.hero-case { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; background: rgba(0, 0, 0, .86); color: #fff; font: 600 .8125rem/1 var(--font-text); white-space: nowrap; transition: gap .4s var(--ease-spring), background .3s; }
.hero-case i { font-style: normal; }
.tile--hero:hover .hero-case { gap: 12px; background: #000; }
.tile--hero-bare .hero-case { background: var(--deep, #0e5b57); }

/* as you read: each block rises in once */
@media (prefers-reduced-motion: no-preference) {
  .js :is(.cs-cover, .cs-block, .cs-fig, .cs-feature, .cs-thanks) { opacity: 0; translate: 0 36px; transition: opacity .9s var(--ease-apple), translate 1.1s var(--ease-spring); }
  .js :is(.cs-cover, .cs-block, .cs-fig, .cs-feature, .cs-thanks).is-in { opacity: 1; translate: 0 0; }
}

@media (max-width: 700px) {
  .case { --cs-w: calc(100vw - 32px); padding-block: 84px 100px; }
  .case p, .case li { font-size: 1rem; }
  .cs-cover { grid-template-columns: 1fr; gap: 24px; min-height: 0; }
  .cs-cover-img { width: 90%; justify-self: center; }
  .cs-decor--cover { width: 80%; inset-block-start: auto; inset-block-end: 0; }
  .cs-block { padding-block: 52px; }
  .cs-cards { gap: 52px; }
  .cs-card + .cs-card::before { content: '↓'; left: 50%; inset-block-start: -46px; translate: -50% 0; }
  .cs-split, .cs-persona-cols { grid-template-columns: 1fr; gap: 28px; }
  .cs-persona-cols > div + div { padding: 0; border: 0; }
  .cs-persona { padding: 84px 22px 40px; border-radius: 36px; }
  .cs-feature, .cs-feature:nth-of-type(even) { grid-template-columns: 1fr; gap: 22px; }
  .cs-feature:nth-of-type(even) .cs-feature-shots { order: 0; }
  .cs-feature-shots img { height: auto; width: min(260px, 70vw); }
  .cs-feature-shots:has(img + img) img { width: calc(50% - 9px); }
  .cs-flow { flex-direction: column; align-items: stretch; }
  .cs-flow > i { text-align: center; rotate: 90deg; }
  .cs-decor--side, .cs-decor--proto { width: 110px; }
}
.cs-cover { min-height: min(72svh, 760px); }
html[data-page="case"] .ambient-glow, html[data-page="case"] .ambient-tide { display: none; }
.case-page { background: #f7f7f5; }
html[data-page="case"], html[data-page="case"] body { background: #f7f7f5; }
.cs-flow { flex-wrap: nowrap; }
.cs-flow li { flex: 1; min-width: 0; }
.cs-proto { display: flex; flex-direction: column; align-items: center; }
.cs-proto .cs-h { display: block; }
.cs--bar-left .cs-proto .cs-h { padding-inline-start: 22px; }
.cs-feature:has(.cs-feature-shots:empty) { grid-template-columns: 1fr; justify-items: center; margin-block: 0 30px; }
.cs-feature:has(.cs-feature-shots:empty) .cs-feature-shots { display: none; }
.cs-feature:has(.cs-feature-shots:empty) .cs-feature-copy { align-items: center; text-align: center; max-width: 46ch; }
.cs-feature--wide { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.cs-feature--wide:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }

/* ══ HOTEL - the app's own screens, the case study's brush and ring ══ */
.tile--hotel-shots { padding: 0; background: #fbf6e9; overflow: hidden; display: grid; place-items: center; }
.ht-brush { position: absolute; inset-inline-start: -4%; inset-block-start: -12%; height: 130%; width: auto; opacity: .9; pointer-events: none; }
.ht-shots { position: relative; z-index: 1; width: auto; height: 108cqh; max-width: 104cqw; object-fit: contain; translate: 0 10%; filter: drop-shadow(0 24px 34px rgba(60, 40, 0, .22)); transition: translate 1s var(--ease-spring); }
.tile--hotel-shots:hover .ht-shots { translate: 0 6%; }
.tile--hotel-stat { display: grid; place-items: center; background: #17150f; color: #fff; }
.ht-ring { position: absolute; width: min(86cqw, 86cqh); aspect-ratio: 1; rotate: -90deg; }
.ht-ring circle { fill: none; stroke: #ffcc00; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s cubic-bezier(.32, .72, 0, 1) .5s; }
.scene:is(.is-active, .was-seen) .ht-ring circle { stroke-dasharray: 80 100; }
.ht-stat { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 62cqw; text-align: center; }
.ht-stat b { font: 800 min(18cqh, 2.75rem)/1 var(--font-display); letter-spacing: -.03em; }
.ht-stat span { font: 500 min(.8125rem, 5.4cqw)/1.3 var(--font-text); color: rgba(255, 255, 255, .7); }
@container (max-height: 150px) { .ht-stat span { display: none; } }
@media (prefers-reduced-motion: reduce) { .ht-ring circle { stroke-dasharray: 80 100; transition: none; } }
.tile--hero-bare .hero-foot { padding-block-end: 4px; }
.tile--hero-bare .hero-case { padding-block: 8px; }
/* a hero that opens its case study says so */
.tile-btn--label { width: auto !important; padding-inline: 14px 10px; gap: 6px; border-radius: 99px; }
.tile-btn--label b { font: 600 .8125rem/1 var(--font-text); white-space: nowrap; }
.tile-btn--label svg { width: 14px; height: 14px; }
.ht-stat { max-width: min(62cqw, 56cqh); }
.tile-btn--label { display: inline-flex; align-items: center; height: 36px; background: rgba(0, 0, 0, .86) !important; color: #fff; }
.tile:hover .tile-btn--label { background: #000 !important; gap: 9px; }
.tile--hero-bare .tile-btn--label { background: var(--deep, #0e5b57) !important; }
.case-page { overflow-x: clip; }
@media (max-width: 700px) {
  .cs-rings { grid-template-columns: 1fr 1fr; }
  .cs-ring:nth-child(2) { grid-row: auto; }
  .cs-ring:nth-child(3) { grid-column: 1 / -1; justify-self: center; width: 50%; }
  .cs-ring figcaption { font-size: .75rem; }
}


/* ══ AI PROCESS - the door, and two worlds ═══════════════════════ */
.split--ai .half { color: #fff; }
.half--mazda { background: radial-gradient(120% 90% at 30% 20%, #2a0a10 0%, #0b0b0c 60%); }
.half--menora { background: radial-gradient(120% 90% at 70% 20%, #4a2cb0 0%, #2d1f6b 60%); }
.half-shot { position: absolute; z-index: 1; inset-inline: 8%; inset-block-start: 14vh; width: 84%; height: auto; border-radius: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transition: scale 1.2s var(--ease-spring), translate 1.2s var(--ease-spring); }
.half:hover .half-shot { scale: 1.03; translate: 0 -6px; }
.half--mazda .half-name { color: #fff; } .half--mazda .half-go { background: #a6192e; color: #fff; }
.half--menora .half-go { background: #ffd23f; color: #2d1f6b; }
.split-head--ai { color: #fff; }
@media (max-width: 700px) { .half-shot { inset-block-start: 6%; width: 60%; inset-inline: auto 6%; } }

/* Mazda */
.tile--hero-mazda { background: var(--hero-bg) !important; }
.tile--hero-mazda::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .25) 55%, transparent); pointer-events: none; }
.tile--hero-mazda > * { position: relative; z-index: 1; }
.browser--dark { background: #111; }
.browser--dark .browser-bar { background: #1c1c1e; color: #8e8e93; border-color: rgba(255, 255, 255, .06); }
.browser--dark .browser-bar span { background: #2c2c2e; }
.tile--mazda-site { background: linear-gradient(180deg, #1a1416, #0e0c0d); }
.tile--mazda-mob { background: radial-gradient(120% 70% at 50% 100%, #3a0d16 0%, #141213 70%); }
.tile--mazda-mob .phone { width: min(84cqw, calc((100cqh - 40px) * .48)); }
.mz-scroll { display: block; width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .mz-scroll { animation: site-tour 38s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
  .tile--mazda-mob .screen { container-type: size; }
}
.tile--mazda-menu, .tile--mazda-sales { padding: 0; overflow: hidden; background: #0b0b0c; }
.mz-menu, .mz-sales { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-spring); }
.mz-menu { object-position: 50% 12%; }
.tile--mazda-menu:hover .mz-menu, .tile--mazda-sales:hover .mz-sales { scale: 1.04; }
.mz-k { position: absolute; z-index: 2; inset-block-end: 14px; inset-inline-start: 16px; padding: 6px 12px; border-radius: 99px; background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font: 600 .75rem/1 var(--font-text); }

/* Menora Credit */
.tile--hero-menora { background: var(--hero-bg) !important; }
.tile--hero-menora::after { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(45, 31, 107, .88) 0%, rgba(45, 31, 107, .4) 55%, transparent); pointer-events: none; }
.tile--hero-menora > * { position: relative; z-index: 1; }
.tile--menora-shot { padding: 0; overflow: hidden; background: #fff; }
.mn-shot { position: absolute; inset-inline: 0; inset-block-start: 44px; width: 100%; height: calc(100% - 44px); object-fit: cover; object-position: 50% 30%; transition: object-position 2s var(--ease-spring); }
.tile--menora-shot:hover .mn-shot { object-position: 50% 60%; }
.mn-k { position: absolute; z-index: 2; inset: 0 0 auto; display: flex; align-items: center; gap: 8px; height: 44px; padding-inline: 14px; background: #fff; color: #2d1f6b; font: 600 .8125rem/1 var(--font-text); border-block-end: 1px solid #efebfb; }
.mn-k b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #ffd23f; color: #2d1f6b; font: 800 .75rem/1 var(--font-text); }
.tile--menora-steps { padding: 18px 18px 0; background: linear-gradient(180deg, #ffffff, #efebfb); overflow: hidden; }
.mn-stages { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.mn-stages li { display: flex; align-items: center; gap: 8px; font: 600 .8125rem/1.2 var(--font-text); color: #2d1f6b; opacity: .45; transition: opacity .5s; }
.mn-stages li b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e3dcfb; font: 800 .75rem/1 var(--font-text); transition: background .5s, color .5s; }
.mn-stages li.is-on, .mn-stages li.is-done { opacity: 1; }
.mn-stages li.is-on b { background: #6c3ce0; color: #fff; }
.mn-stages li.is-done b { background: #ffd23f; }
.mn-phones { position: absolute; inset: 64px 0 0; display: flex; justify-content: center; align-items: flex-start; gap: 4%; }
.mn-phone { position: relative; inset: auto; translate: none; width: 28%; height: auto; aspect-ratio: 390 / 844; margin-block-start: calc(var(--i) * 18px); transition: translate 1s var(--ease-spring); }
.tile--menora-steps:hover .mn-phone { translate: 0 -8px; }
.mn-phone .screen::after { display: none; }
@container (max-width: 380px) { .mn-stages li { font-size: 0; gap: 0; } .mn-stages li b { font-size: .75rem; } }

/* ══ MAZDA · round 2 - the street, the showroom ════════════════════ */
.tile--hero-mazda::after { background: linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .42) 38%, transparent 62%), linear-gradient(0deg, rgba(0, 0, 0, .5), transparent 40%); }
.logo--mazda { --lh: clamp(56px, 30cqh, 104px); }
.tile--mz-models { padding: 22px 24px 18px; background: radial-gradient(70% 60% at 50% 72%, #2a1418 0%, #0d0b0c 70%); color: #fff; overflow: hidden; }
.mz-k2 { font: 600 .75rem/1 var(--font-text); letter-spacing: .22em; text-transform: uppercase; color: #c8102e; }
.mz-stage { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.mz-car { grid-area: 1 / 1; width: auto; max-width: 78%; max-height: 100%; height: auto; object-fit: contain; opacity: 0; filter: drop-shadow(0 30px 24px rgba(0, 0, 0, .55)); }
.mz-car.is-on { opacity: 1; }
.mz-floor { position: absolute; z-index: -1; inset-inline: 14%; inset-block-end: 10%; height: 22%; border-radius: 50%; background: radial-gradient(closest-side, rgba(200, 16, 46, .28), transparent); filter: blur(8px); }
.mz-name { font: 300 clamp(1.25rem, 2.2vw, 1.875rem)/1 var(--font-display); letter-spacing: .28em; text-align: center; }
.mz-pick { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-block-start: 14px; }
.mz-pick button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 99px; color: rgba(255, 255, 255, .62); font: 600 .6875rem/1 var(--font-text); letter-spacing: .12em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: color .3s, background .3s, box-shadow .3s; }
.mz-pick button i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.mz-pick button.is-on { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); }
@container (max-width: 420px) { .mz-pick button { font-size: 0; gap: 0; padding: 0 10px; } .mz-pick button i { width: 14px; height: 14px; } }
@container (max-height: 260px) { .mz-k2 { display: none; } .mz-pick { margin-block-start: 8px; } }
.tile--mazda-mob { padding: 0; }
.mz-mob-logo { position: absolute; z-index: 1; inset-block-start: 18px; left: 50%; translate: -50% 0; width: 40px; opacity: .9; }
.tile--mazda-mob .phone { inset-block: auto -4%; width: min(84cqw, calc((100cqh - 70px) * .48)); }
.tile--mazda-mob .screen { overflow: hidden; container-type: size; }
.tile--mz-photo { padding: 0; overflow: hidden; background: #0b0b0c; }
.mz-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease-spring); }
.tile--mz-photo:hover .mz-photo { scale: 1.05; }

/* ══ MENORA CREDIT · round 2 - a calculator you can move ═══════════ */
.tile--hero-menora::after { background: linear-gradient(90deg, rgba(45, 31, 107, .9) 0%, rgba(45, 31, 107, .55) 36%, transparent 64%); }
.logo--menora { --lh: clamp(30px, 14cqh, 56px); }
.tile--mn-calc { padding: 0; background: #fff; color: #2d1f6b; }
.mn-calc { display: flex; flex-direction: column; height: 100%; padding: 20px 20px 18px; gap: 6px; text-align: right; }
.mn-calc-k { font: 700 1.125rem/1.2 var(--font-text); color: #1f1640; margin-block-end: 8px; }
.mn-row { display: flex; align-items: center; justify-content: space-between; font: 500 .8125rem/1 var(--font-text); color: #5a5470; }
.mn-row b { padding: 6px 10px; border-radius: 10px; background: #f1edfd; color: #2d1f6b; font: 700 .9375rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.mn-range { --p: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 10px 0 14px; border-radius: 99px; background: linear-gradient(to left, #ffd23f var(--p), #ece8f6 var(--p)); direction: rtl; cursor: pointer; }
.mn-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #1f1640; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(31, 22, 64, .35); }
.mn-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #1f1640; box-shadow: 0 0 0 4px #fff, 0 4px 12px rgba(31, 22, 64, .35); }
.mn-result { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-block-start: auto; padding: 14px 12px; border-radius: 16px; box-shadow: inset 0 0 0 1px #2d1f6b; text-align: center; }
.mn-result span { font: 500 .8125rem/1 var(--font-text); color: #3b3355; }
.mn-result b { font: 800 clamp(1.75rem, 3vw, 2.375rem)/1 var(--font-text); color: #2d1f6b; font-variant-numeric: tabular-nums; direction: ltr; }
.mn-result small { font: 500 .6875rem/1.3 var(--font-text); color: #7b7590; }
.mn-cta { margin-block-start: 12px; min-height: 44px; border-radius: 10px; background: #ffd23f; color: #1f1640; font: 700 .9375rem/1 var(--font-text); transition: filter .3s; }
.mn-cta:hover { filter: brightness(1.05); }
@container (max-height: 470px) { .mn-calc-k { display: none; } .mn-range { margin-block: 8px 10px; } .mn-cta { display: none; } }
.mn-shot--goal { object-position: 70% 20%; }
.tile--mn-logos { justify-content: center; gap: 14px; background: #fff; overflow: hidden; }
.mn-logos-k { font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #6c3ce0; }
.mn-logos { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mn-logos-track { display: flex; width: max-content; }
.mn-logos-track > div { display: flex; align-items: center; gap: 14px; padding-inline-end: 14px; }
.mn-logos-track span { display: grid; place-items: center; width: clamp(110px, 12cqw, 150px); height: clamp(56px, 32cqh, 76px); border-radius: 16px; background: #f7f5fd; }
.mn-logos-track img { max-width: 72%; max-height: 52%; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) { .scene.is-active .mn-logos-track { animation: mq 28s linear infinite; } .tile--mn-logos:hover .mn-logos-track { animation-play-state: paused; } }
.mz-stage { display: block; }
.mz-car { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
@container (max-height: 330px) {   /* a short calculator: amount, the result, nothing else */
  .mn-calc { padding: 14px 16px 12px; gap: 2px; }
  .mn-calc .mn-row:nth-of-type(2), .mn-range--n { display: none; }
  .mn-range { margin-block: 6px 8px; }
  .mn-result { padding: 8px 10px; }
  .mn-result small { display: none; }
}

/* ══ 40 WEEKS · round 2 - the baby in 3D; a ring you can turn ═════ */
.tile--clalit-baby { padding: 0; display: grid; place-items: end center; background: radial-gradient(80% 60% at 50% 80%, #d9f2ec 0%, #ffffff 70%); overflow: hidden; }
.cl-glow { position: absolute; inset-inline: 10%; inset-block: 30% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(34, 165, 151, .25), transparent); filter: blur(10px); }
.cl-baby { position: relative; width: auto; height: 92cqh; max-width: 92cqw; object-fit: contain; object-position: bottom; translate: 0 6%; filter: drop-shadow(0 24px 36px rgba(14, 91, 87, .22)); transition: translate 1s var(--ease-spring); }
.tile--clalit-baby:hover .cl-baby { translate: 0 3%; }
.tile--week { cursor: grab; touch-action: none; user-select: none; }
.tile--week:active { cursor: grabbing; }
.wk-tri { display: block; margin-block-start: 6px; font: 600 .6875rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #22a597; }
.wk-tri:empty { display: none; }

/* ══ HOTEL · round 2 - the case study's phones, in the light ═══════ */
.ht-hero-phones { position: absolute; z-index: 2; inset-inline-end: 4%; inset-block-start: 50%; translate: 0 -50%; width: auto; height: 118cqh; max-width: 52cqw; object-fit: contain; filter: drop-shadow(0 30px 40px rgba(80, 50, 0, .35)); transition: translate 1.2s var(--ease-spring), rotate 1.2s var(--ease-spring); pointer-events: none; }
.tile--hero-hotel:hover .ht-hero-phones { translate: 0 -53%; rotate: -2deg; }
.ht-hero-brush { position: absolute; z-index: 1; inset-inline-end: -4%; inset-block-start: -18%; height: 150cqh; width: auto; opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.tile--hero-hotel .hero-main, .tile--hero-hotel .hero-top { position: relative; z-index: 3; }
@container (max-width: 520px) { .ht-hero-phones { height: 96cqh; max-width: 44cqw; inset-inline-end: 2%; } .ht-hero-brush { display: none; } }
@container (max-height: 200px) { .ht-hero-phones, .ht-hero-brush { display: none; } }
@container (max-height: 100px) { .tile--hero-hotel .hero-line { font-size: .75rem; } }
.ht-ring circle { transition: stroke-dasharray 1.1s cubic-bezier(.32, .72, 0, 1); }
.ht-n { font: 800 min(18cqh, 2.75rem)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ht-src { position: absolute; inset-block-end: 12px; inset-inline: 0; text-align: center; font: 600 .625rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
@container (max-height: 190px) { .ht-src { display: none; } }

/* ══ RE:BAR · round 2 - the drink, and the brand's colours as chips ═ */
.product-glass { flex: none; height: min(100%, 86cqh); width: auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(200, 40, 80, .25)); transition: translate .8s var(--ease-spring), rotate .8s var(--ease-spring); }
.tile--rebar-product:hover .product-glass { translate: 0 -4px; rotate: -3deg; }
.tile--rebar-product .product-cup { display: none; }
.tile--hero-rebar .swatches { gap: 6px; }
.tile--hero-rebar .swatches i { margin: 0 !important; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }

/* ══ MENORA CREDIT · the website ═══════════════════════════════════ */
.tile--hero-mnsite { overflow: hidden; }
.mn-bars { position: absolute; z-index: 0; inset-block: -20% -20%; inset-inline-end: 4%; width: 52%; pointer-events: none; }
.mn-bars i { position: absolute; inset-block: 0; width: 18%; border-radius: 999px; rotate: -32deg; transform-origin: center; }
.mn-bars i:nth-child(1) { inset-inline-end: 52%; background: #2d1f6b; opacity: .55; }
.mn-bars i:nth-child(2) { inset-inline-end: 28%; background: #8f6cf0; opacity: .55; }
.mn-bars i:nth-child(3) { inset-inline-end: 4%; background: #c9b8ff; opacity: .5; }
@media (prefers-reduced-motion: no-preference) { .scene.is-active .mn-bars i { animation: mn-bar 9s ease-in-out infinite alternate; animation-delay: calc(var(--n, 0) * -1s); } .mn-bars i:nth-child(2) { --n: 3; } .mn-bars i:nth-child(3) { --n: 6; } }
@keyframes mn-bar { to { translate: 0 -8%; } }
.tile--hero-mnsite .hero-top, .tile--hero-mnsite .hero-main, .tile--hero-mnsite .hero-foot { position: relative; z-index: 2; }

/* the hero, live */
.tile--mn-aud { padding: 0; overflow: hidden; background: #fff; }
.mn-aud { position: absolute; inset: 0; }
.mn-aud-switch { position: absolute; z-index: 3; inset-block-start: 14px; left: 50%; translate: -50% 0; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 99px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 6px 20px rgba(45, 31, 107, .18); }
.mn-aud-switch button { position: relative; z-index: 1; min-height: 32px; padding: 0 14px; border-radius: 99px; font: 600 .75rem/1 var(--font-text); color: #2d1f6b; white-space: nowrap; transition: color .35s; }
.mn-aud-switch button.is-on { color: #fff; }
.mn-aud-switch i { position: absolute; z-index: 0; inset-block: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 99px; background: #2d1f6b; transition: translate .55s var(--ease-spring); }
.tile--mn-aud[style*="--k: 1"] .mn-aud-switch i { translate: -100% 0; }
.mn-aud-pane { position: absolute; inset: 0; background: var(--bg) 30% 50% / cover; opacity: 0; transition: opacity .8s var(--ease-apple); }
.mn-aud-pane.is-on { opacity: 1; }
.mn-aud-pane::after { content: ''; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(255, 255, 255, .92) 0%, rgba(255, 255, 255, .7) 34%, transparent 62%); }
.mn-aud-copy { position: absolute; z-index: 2; inset-block-start: 50%; inset-inline-start: 24px; translate: 0 -40%; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 46%; text-align: right; }
.mn-aud-copy b { font: 800 clamp(1.5rem, 3.4cqw, 2.375rem)/1.05 var(--font-text); color: #2d1f6b; }
.mn-aud-copy p { font: 500 clamp(.6875rem, 1.6cqw, .875rem)/1.45 var(--font-text); color: #3b3355; }
.mn-aud-cta { margin-block-start: 4px; padding: 9px 16px; border-radius: 10px; background: #1f1640; color: #fff; font: 600 .75rem/1 var(--font-text); }
.mn-aud-n { position: absolute; z-index: 2; inset-block-end: 14px; inset-inline-end: 18px; font: 600 .6875rem/1 var(--font-text); color: #2d1f6b; letter-spacing: .06em; }
.mn-aud-pane.is-on .mn-aud-copy { animation: mn-in .8s var(--ease-spring) both; }
@keyframes mn-in { from { opacity: 0; translate: 0 -30%; } }
@container (max-width: 480px) { .mn-aud-copy { max-width: 62%; } .mn-aud-copy p { display: none; } }

/* the products */
.tile--mn-prod { padding: 0; overflow: hidden; background: #fff; }
.mn-prod { position: absolute; inset: 0; display: flex; flex-direction: column; }
.mn-prod-tabs { position: relative; z-index: 3; display: flex; gap: 6px; padding: 14px 16px 10px; }
.mn-prod-tabs button { min-height: 32px; padding: 0 14px; border-radius: 99px; font: 600 .75rem/1 var(--font-text); color: #3b3355; background: #f4f2fb; transition: background .35s, color .35s; }
.mn-prod-tabs button.is-on { background: var(--c); color: #fff; }
.mn-prod-pane { position: absolute; inset: 56px 0 0; display: grid; grid-template-rows: 1fr auto; opacity: 0; transition: opacity .6s var(--ease-apple); }
.mn-prod-pane.is-on { opacity: 1; }
.mn-prod-pane img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 40%; }
.mn-prod-pane.is-on img { animation: mn-zoom 3.8s ease-out both; }
@keyframes mn-zoom { from { scale: 1.06; } }
.mn-prod-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 18px 18px; border-block-start: 4px solid var(--c); text-align: right; }
.mn-prod-copy b { font: 800 clamp(1.25rem, 2.6cqw, 1.75rem)/1.1 var(--font-text); color: var(--c); }
.mn-prod-copy p { font: 500 .8125rem/1.45 var(--font-text); color: #3b3355; max-width: 52ch; }
.mn-prod-copy span { font: 700 .75rem/1 var(--font-text); color: #1f1640; }
@container (max-width: 420px) { .mn-prod-tabs button { padding: 0 10px; font-size: .6875rem; } .mn-prod-copy p { display: none; } }
@media (prefers-reduced-motion: reduce) { .mn-prod-pane.is-on img, .mn-aud-pane.is-on .mn-aud-copy { animation: none; } }

.tile--mn-page { background: linear-gradient(180deg, #ffffff, #efebfb); }
.tile--mn-mob { padding: 0; background: radial-gradient(120% 70% at 50% 100%, #e3dcfb 0%, #ffffff 70%); }
.tile--mn-mob .phone { inset-block: auto -4%; width: min(84cqw, calc((100cqh - 30px) * .48)); }
.tile--mn-mob .screen { overflow: hidden; container-type: size; }
@media (prefers-reduced-motion: no-preference) { .scene.is-active .tile--mn-mob .mz-scroll { animation: site-tour 34s cubic-bezier(.45, 0, .55, 1) infinite alternate; } }
.mn-aud-switch { inset-inline-start: auto; left: 50%; right: auto; }

/* ══ TIDHAR · round 3 - the building rises softly; a 5.0 on the store ══ */
.tile--tidhar-building .stage-arc, .tile--tidhar-building .arc-stage, .tile--tidhar-building .stage-cap { display: none; }
.tile--tidhar-building .building-site { inset-inline: 0; margin-inline: auto; width: min(66%, 78cqh * 1.1); inset-block-end: 4%; }
.tile--tidhar-building .crane { inset-inline-end: 4%; }
@property --rise { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.scene.is-active .building-float, .scene.was-seen .building-float {
  animation: rise 2.8s cubic-bezier(.4, 0, .6, 1) .5s both, icon-bob 7s ease-in-out 3.6s infinite;
  -webkit-mask: linear-gradient(to top, #000 calc(var(--rise) - 10%), transparent var(--rise));
          mask: linear-gradient(to top, #000 calc(var(--rise) - 10%), transparent var(--rise));
}
@keyframes rise {
  from { --rise: 0%; translate: 0 4%; opacity: .2; }
  30% { opacity: 1; }
  to { --rise: 112%; translate: 0 0; opacity: 1; }
}
.scene.is-active .building-site .building-shadow { animation: shadow-grow 2.8s cubic-bezier(.4, 0, .6, 1) .5s both; }
@keyframes shadow-grow { from { scale: .55 1; opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .scene.is-active .building-float, .scene.was-seen .building-float { animation: none; -webkit-mask: none; mask: none; } }

.tile--tidhar-rating { padding: 0; }
.rate-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; container-type: size; }
.rate-logo { width: min(46%, 120px); height: auto; margin-block-end: 4px; }
.rate-n { display: flex; align-items: baseline; gap: 6px; }
.rate-n b { font: 800 clamp(2.75rem, 26cqh, 4.5rem)/1 var(--font-display); letter-spacing: -.04em; color: #0f3d31; }
.rate-n span { font: 600 .8125rem/1 var(--font-text); color: #7a8f87; }
.rate-stars { display: flex; gap: 4px; }
.rate-stars i { font-style: normal; font-size: clamp(1.125rem, 9cqh, 1.625rem); line-height: 1; color: #e9c46a; }
.rate-src { font: 600 .75rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: #7a8f87; }
@media (prefers-reduced-motion: no-preference) {
  .js .rate-stars i { opacity: 0; scale: .4; transition: opacity .4s, scale .6s var(--ease-bounce); }
  .js .scene:is(.is-active, .was-seen) .rate-stars i { opacity: 1; scale: 1; }
  .js .scene:is(.is-active, .was-seen) .rate-stars i:nth-child(1) { transition-delay: .6s; } .js .scene:is(.is-active, .was-seen) .rate-stars i:nth-child(2) { transition-delay: .72s; }
  .js .scene:is(.is-active, .was-seen) .rate-stars i:nth-child(3) { transition-delay: .84s; } .js .scene:is(.is-active, .was-seen) .rate-stars i:nth-child(4) { transition-delay: .96s; }
  .js .scene:is(.is-active, .was-seen) .rate-stars i:nth-child(5) { transition-delay: 1.08s; }
}
@container (max-height: 220px) { .rate-logo { display: none; } }
@container (max-height: 130px) { .rate-src { display: none; } .rate-card { gap: 4px; } }
.tile--tidhar-building .building-site { z-index: 2; width: min(88%, 96cqh * 1.25); inset-block-end: 2%; }
.tile--tidhar-building .crane { z-index: 1; height: 92%; inset-block-start: -6%; inset-inline-end: 6%; opacity: .9; }
.tile--tidhar-building .floor-chip { z-index: 3; inset-inline-end: 6%; inset-block-end: 8%; }
.tile--tidhar-building::before { content: ''; position: absolute; z-index: 0; inset-inline: 12%; inset-block: 30% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(233, 196, 106, .22), transparent); pointer-events: none; }

/* ══ AI PROCESS · covers that show the work ═══════════════════════════ */
.half-shot { display: none; }
.ai-mock { position: absolute; z-index: 1; inset-inline: 9%; inset-block-start: 19vh; height: 38vh; transition: translate 1.2s var(--ease-spring); }
.half:hover .ai-mock { translate: 0 -8px; }
.ai-screen { position: absolute; inset-inline: 0 12%; inset-block-start: 0; aspect-ratio: 16 / 10; max-height: 88%; border-radius: 12px; overflow: hidden; border: 8px solid #111214; background: #111; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 70px -30px rgba(0, 0, 0, .6); }
.ai-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ai-stand { position: absolute; inset-inline-start: calc((100% - 12%) / 2 - 7%); width: 14%; height: 7%; inset-block-start: calc(min(88%, (100% * 0) + 88%)); background: linear-gradient(180deg, #a9a9ae, #dcdce0 40%, #c4c4c9); clip-path: polygon(14% 0, 86% 0, 100% 100%, 0 100%); display: none; }
.ai-phone { position: absolute; inset-inline-end: 0; inset-block-end: 0; height: 74%; aspect-ratio: 9 / 19.5; padding: 5px; border-radius: 14% / 6.46%; background: #1d1d1f; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 50px -20px rgba(0, 0, 0, .6); }
.ai-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 12.5% / 5.8%; }
.half--menora .ai-screen { border-color: #1f1640; }
@media (max-width: 700px) {
  .ai-mock { inset-inline: auto 6%; inset-block-start: 8%; width: 58%; height: 52%; }
  .ai-screen { border-width: 4px; border-radius: 8px; }
  .ai-phone { padding: 3px; }
}

/* ══ TIDHAR · the prototype plays on the phone, the player beside it ═══ */
.tile--tidhar-phone .screen { background: #0f3d31; }
.tp-video { object-fit: cover; object-position: top; }
.tile--tidhar-proto { container-type: size; justify-content: center; align-items: stretch; }
.tp-player { display: flex; flex-direction: column; justify-content: center; gap: 12px; width: 100%; height: 100%; padding: 14px 18px; border-radius: 26px; background: #0f3d31; color: #fff; box-shadow: 0 20px 40px -16px rgba(15, 61, 49, .6), inset 0 1px 0 rgba(255, 255, 255, .15); }
.tp-head { display: flex; align-items: center; gap: 12px; margin: 0; }
.tp-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e9c46a; color: #0f3d31; transition: transform .3s var(--ease-bounce); }
.tp-play:hover { transform: scale(1.06); }
.tp-play:active { transform: scale(.94); }
.tp-play svg { width: 14px; height: 14px; }
.tp-i-play, .is-paused .tp-i-pause { display: none; }
.is-paused .tp-i-play { display: inline; }
.tp-t { font: 600 .9375rem/1.15 var(--font-display); letter-spacing: -.01em; }
.tp-time { margin-inline-start: auto; font: 500 .8125rem/1 var(--font-text); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .6); }
.tp-chaps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tp-chaps button { display: flex; flex-direction: column; gap: 7px; padding: 4px 0; color: rgba(255, 255, 255, .55); font: 600 .75rem/1 var(--font-text); text-align: start; transition: color .3s; }
.tp-chaps button:hover, .tp-chaps button.is-now { color: #fff; }
.tp-bar { display: block; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.tp-bar b { display: block; width: 100%; height: 100%; border-radius: inherit; background: #e9c46a; transform-origin: left; transform: scaleX(var(--p, 0)); }
@container (max-height: 104px) {
  .tp-player { flex-direction: row; align-items: center; padding-block: 10px; }
  .tp-t, .tp-time { display: none; }
  .tp-chaps { flex: 1; }
}
@container (max-width: 260px) {
  .tp-player { padding: 14px; gap: 10px; }
  .tp-t { display: none; }
  .tp-chaps { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
}
@media (max-width: 700px) { .tp-play { width: 44px; height: 44px; } }

/* the rating, by its stores */
.rate-src { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font: 600 .75rem/1 var(--font-text); letter-spacing: 0; text-transform: none; color: #3c5049; }
.rate-store { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rate-store img { width: 18px; height: 18px; }

/* ══ HAPOALIM · a first-click test on a wireframe of the app ══════════ */
.tile--fc { gap: 12px; }
.fc-q { margin: 0; min-height: 2.6em; font: 700 clamp(.9375rem, 1.25vw, 1.125rem)/1.3 var(--font-text); color: #1d1d1f; }
.fc-wire { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: #f4f1ee; overflow: hidden; }
.fc-head { flex: none; width: 42%; height: 8px; border-radius: 99px; background: #e7192e; }
.fc-bal { flex: none; height: 34px; border-radius: 12px; background: #fff; }
.fc-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fc-acts span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 9px; border-radius: 12px; background: #fff; font: 600 .6875rem/1 var(--font-text); color: #3a3a3c; transition: box-shadow .35s var(--ease-apple), color .35s; }
.fc-acts span i { width: 20px; height: 20px; border-radius: 7px; background: #fbe3e5; }
.fc-acts span.is-hit { color: #e7192e; box-shadow: 0 0 0 2px #e7192e, 0 10px 24px -10px rgba(231, 25, 46, .5); }
.fc-acts span.is-hit::after { content: '✓'; position: absolute; inset-block-start: -7px; inset-inline-end: -7px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #2fa37f; color: #fff; font: 700 .625rem/1 var(--font-text); animation: fc-pop .4s var(--ease-bounce) both; }
.fc-row { flex: none; height: 9px; border-radius: 99px; background: #e5e1dc; }
.fc-row:nth-child(5) { width: 78%; }
.fc-row:nth-child(6) { width: 56%; }
.fc-taps { position: absolute; inset: 0; pointer-events: none; }
.fc-tap { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(231, 25, 46, .7); box-shadow: 0 0 0 5px rgba(231, 25, 46, .16); animation: fc-pop .45s var(--ease-bounce) both; }
@keyframes fc-pop { from { scale: 0; opacity: 0; } }
.fc-cap { margin: 0; font: 500 .75rem/1.35 var(--font-text); color: #86868b; }
@container (max-height: 340px) { .fc-cap { display: none; } }
@container (max-height: 280px) { .fc-row, .fc-bal { display: none; } }
.fc-wire { flex: none; margin-block: auto; gap: 9px; padding: 14px; }
.fc-bal { height: 48px; }
.fc-acts span { padding: 14px 4px 12px; gap: 8px; font-size: .75rem; }
.fc-acts span i { width: 24px; height: 24px; }
/* small: the bars alone, and the part you're in named beside play */
.tp-now { display: none; }
@container (max-width: 260px) {
  .tp-player { padding: 12px 14px; gap: 10px; }
  .tp-t, .tp-time { display: none; }
  .tp-now { display: block; font: 600 .875rem/1.1 var(--font-display); }
  .tp-chaps { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .tp-chaps button { padding: 8px 0; }
  .tp-chaps span { display: none; }
}
/* the first-click card gives up its extras as it gets shorter */
.fc-wire { flex: 0 1 auto; min-height: 0; }
.fc-acts span.is-hit::after { inset-block-start: 5px; inset-inline-end: 5px; width: 16px; height: 16px; }
@container (max-height: 520px) { .fc-cap { display: none; } }
@container (max-height: 440px) {
  .fc-row { display: none; }
  .fc-bal { height: 30px; }
  .fc-acts span { padding: 10px 4px 9px; gap: 6px; }
  .fc-acts span i { width: 20px; height: 20px; }
}
@container (max-height: 330px) { .fc-bal { display: none; } }
@container (max-height: 120px) {
  .tp-player { flex-direction: row; align-items: center; }
  .tp-now { display: none; }
  .tp-chaps { flex: 1; }
}

/* ══ BACKLOG · Check-in in the trio's language: light into red, a bold ring, a plane on its orbit ══ */
.split { --art-top: max(16vh, 146px); --art-h: min(40vh, calc(57vh - var(--art-top))); }
.half--checkin { background: radial-gradient(120% 90% at 50% 15%, #fff1ed 0%, #ffb7b0 45%, #ff5d66 100%); color: #4a0718; }
.half--checkin::after { content: none; }
.half--checkin .half-name, .half--checkin:hover .half-name { color: #4a0718; }
.half--checkin .half-k, .half--checkin .half-line { color: #4a0718; }
.half--checkin .half-go { background: linear-gradient(90deg, #ef024d, #ff842a); color: #fff; }
.ci-art { position: absolute; z-index: 2; left: 50%; inset-block-start: var(--art-top); translate: -50% 0; height: var(--art-h); aspect-ratio: 330 / 300; transition: translate 1.2s var(--ease-spring); }
.half--checkin:hover .ci-art { translate: -50% -8px; }
.ci-rings, .ci-fly { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ci-fly { z-index: 3; }
.ci-orbit { fill: none; stroke: rgba(74, 7, 24, .2); stroke-width: 1.2; stroke-dasharray: 3 6; }
.ci-ring { fill: none; stroke: url(#ci-ring); stroke-width: 14; transform-box: fill-box; transform-origin: center; animation: orbit 40s linear infinite; }
.ci-ring--s { stroke-width: 11; animation-direction: reverse; animation-duration: 30s; }
.ci-plane { fill: #ef024d; }
.ci-art .half-phone { position: absolute; z-index: 2; inset: 3% auto auto 50%; translate: -50% 0; height: 94%; width: auto; aspect-ratio: 9 / 19.5; filter: drop-shadow(0 30px 40px rgba(120, 0, 30, .3)); }
.half-phone .screen::after { display: none; }
@media (min-width: 701px) {
  .half-phones, .half-phones--clalit { height: var(--art-h); inset-block-start: var(--art-top); }
  .half--clalit .half-rings { inset-block-start: calc(var(--art-top) - 3vh); }
}
@media (max-width: 700px) {
  .ci-art { inset-inline: auto 4%; inset-block-start: 6%; translate: none; height: 88%; }
  .half--checkin:hover .ci-art { translate: 0 -4px; }
}
@media (prefers-reduced-motion: reduce) { .ci-ring { animation: none; } .ci-plane { display: none; } }
@media (max-width: 700px) { .ci-art { width: 36%; height: auto; inset-block-start: 9%; inset-inline: auto 5%; } }
/* short phones: the three halves keep their whole copy */
@media (max-width: 700px) and (max-height: 700px) {
  .scene--split .half-k { display: none; }
  .scene--split .half-name { font-size: 2.25rem; }
  .scene--split .half-line { font-size: .875rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
  .scene--split .half-go { margin-block-start: 10px; }
}

/* ══ BACKLOG · Balcony joins the trio: light into coral, a radar around the phone ══ */
.half--balcony { background: radial-gradient(120% 90% at 50% 15%, #fff3f0 0%, #ffcdc6 45%, #ff8a80 100%); color: #3d0c0e; }
.half--balcony .half-go { background: #3d0c0e; color: #ffd1cb; }
.half--balcony:hover .ci-art { translate: -50% -8px; }
.bal-art { container-type: inline-size; }
.bal-arc { fill: none; stroke: url(#bal-ring); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 68 32; transform-box: fill-box; transform-origin: center; animation: orbit 36s linear infinite; }
.bal-sweep { position: absolute; z-index: 1; inset: 50% auto auto 50%; width: 88%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 90, 95, .38), rgba(255, 90, 95, 0) 22%, transparent); animation: bal-spin 6s linear infinite; }
@keyframes bal-spin { to { rotate: 360deg; } }
.bal-pin { position: absolute; z-index: 3; left: var(--x); top: var(--y); width: 8.5cqw; aspect-ratio: 1; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: #ff5a5f; box-shadow: 0 0 0 1.2cqw rgba(255, 255, 255, .8), 0 2cqw 5cqw -1cqw rgba(255, 45, 58, .55); color: #fff; font: 800 5cqw/1 var(--font-text); }
.bal-pin::before { content: '!'; }
.bal-pin::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #ff5a5f; opacity: .5; animation: bal-ping 2.4s var(--ease-apple) calc(var(--k) * .8s) infinite; z-index: -1; }
@keyframes bal-ping { from { scale: 1; opacity: .5; } to { scale: 2.6; opacity: 0; } }
@media (min-width: 1px) { .scene--split .half--balcony { --h: 2; } }
@media (max-width: 700px) { .half--balcony:hover .ci-art { translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .bal-arc, .bal-sweep, .bal-pin::after { animation: none; } }

/* ══ CHECK-IN · it launched, as FlyAll's product - the logo stays, the colours are the live site's ══
   blue #1B5ECE → purple #824AEA → pink #F63DE4, ink #040F21, cool whites */
#checkin .tile--hero-sky { --hero-bg: linear-gradient(180deg, #1b5ece 0%, #4f6ff0 40%, #8e6cf2 70%, #f2a8ee 100%); }
#checkin .tile--hero-sky :is(.hero-name, .hero-line) { filter: drop-shadow(0 1px 14px rgba(4, 15, 33, .35)); }
#checkin .tile--hero-sky .hero-idx { color: rgba(255, 255, 255, .85); }
#checkin .tile--hero-sky .hero-scope span { background: rgba(4, 15, 33, .28); }
#checkin .plane-g path { filter: drop-shadow(0 3px 4px rgba(4, 15, 33, .3)); }
#checkin .tile--board { background: linear-gradient(180deg, #13214a, #040f21); }
#checkin .board-k { color: #c8a8ff; }
#checkin .tile--pass, #checkin .pass-main, #checkin .pass-route, #checkin .pass-meta b { color: #040f21; }
#checkin .pass-route i { color: #824aea; }
#checkin .pass-stub { background: linear-gradient(180deg, #1b5ece, #824aea 55%, #f63de4); }
#checkin .tile--checkin-phone { background: linear-gradient(180deg, #ffffff 0%, #eef0ff 100%); }
#checkin .tile--checkin-phone .fab, #checkin .chat-head img, .fx-fa .fab, .fx-fa .chat-head img { background: none; box-shadow: 0 0 0 1.6cqw rgba(255, 255, 255, .7), 0 6px 18px rgba(130, 74, 234, .45); }
#checkin .chat-head img, .fx-fa .chat-head img { box-shadow: 0 4px 12px rgba(130, 74, 234, .35); }
#checkin .tile--checkin-phone .burst { background: radial-gradient(circle at 50% 9.5%, #e9f0ff 0%, #6f8cf5 20%, #824aea 48%, #f63de4 85%); }
#checkin .chat, .fx-fa .chat { color: #040f21; }
#checkin .chat-head, .fx-fa .chat-head { border-block-end-color: #e8edf4; }
#checkin .msg--me, .fx-fa .msg--me { background: #fff; box-shadow: inset 0 0 0 1.5px #1b5ece; }
#checkin .msg--ai, .fx-fa .msg--ai { padding: 2.5cqw 4cqw 2.5cqw 8cqw; border: 1.5px solid transparent; border-radius: 5cqw; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #1b5ece, #824aea, #f63de4) border-box; }
#checkin .msg--ai::before, .fx-fa .msg--ai::before { inset-inline-start: 2cqw; inset-block-start: 2.6cqw; background: url(assets/work/checkin-orb-fa.svg) center / cover; }
#checkin .msg--typing, .fx-fa .msg--typing { padding-inline: 4cqw; }
@keyframes dot-fa { 40% { transform: translateY(-1.5cqw); background: #824aea; } }
#checkin .msg--typing i, .fx-fa .msg--typing i { animation-name: dot-fa; }
#checkin .chat-chips button, .fx-fa .chat-chips button { border-color: #e2e8f4; color: #040f21; }
#checkin .chat-chips button:hover, .fx-fa .chat-chips button:hover { background: #f1f4fd; }
#checkin .chat-input, .fx-fa .chat-input { background: #f4f7fd; border-color: #e2e8f4; }
#checkin .chat-input i, .fx-fa .chat-input i { color: #824aea; }
#checkin .socket--checkin .socket-core::before { background: radial-gradient(circle, rgba(130, 74, 234, .32), transparent 65%); }
.edge-glow { background: conic-gradient(from var(--ga), #1b5ece, #824aea, #f63de4, #4f6ff0, #1b5ece); }
/* the live site's pieces sit on their own cool white */
#checkin .tile--fa { background: #f4f7fd; }
#checkin .tile--fa .ui-crop img { width: 100%; margin: 0; }
#checkin .tile--fa::after { background: linear-gradient(transparent, #f4f7fd); }
#checkin .tile--trip.tile--fa::after { display: none; }

/* ══ TIDHAR · round 4 - a real bento again: every piece in its card, the player under its phone,
   the building standing on its street, the rating in order ══ */
/* the building: a scene in a card - sky above, the street at the card's edge, no floating */
#tidhar .tile--tidhar-building { padding: 0; background: linear-gradient(180deg, #e6efe9 0%, #f2f1e8 72%, #f6f1e2 100%); }
#tidhar .tile--tidhar-building::before { content: none; }
#tidhar .tile--tidhar-building .building-site { inset: auto 0 0; width: 100%; height: auto; margin: 0; }
#tidhar .tile--tidhar-building .building-float { position: relative; display: block; width: 100%; height: auto; filter: none; }
#tidhar .building-shadow { display: none; }
#tidhar.scene:is(.is-active, .was-seen) .building-float { animation: rise 2.6s cubic-bezier(.4, 0, .6, 1) .4s both; }
#tidhar .tile--tidhar-building .crane { z-index: 1; height: 78%; inset-block-start: 4%; inset-inline-end: 8%; opacity: .75; }
#tidhar .tile--tidhar-building .floor-chip { inset: 18px auto auto 18px; }
@media (prefers-reduced-motion: reduce) { #tidhar .building-float { animation: none; -webkit-mask: none; mask: none; } }

/* the phone, and right under it the player that runs it */
#tidhar .tile--tidhar-phone { padding: 18px 14px 14px; justify-content: space-between; align-items: center; gap: 12px; background: radial-gradient(120% 70% at 50% 30%, #eef5f1 0%, #ffffff 75%); }
#tidhar .tile--tidhar-phone .phone { position: relative; inset: auto; flex: 1; min-height: 0; width: auto; height: auto; aspect-ratio: 9 / 19.5; max-width: 100%; translate: none; box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 30px 50px -24px rgba(15, 61, 49, .5); }
#tidhar .tile--tidhar-phone .tp-player { flex: none; width: 100%; display: flex; align-items: center; gap: 10px; height: auto; padding: 8px 10px 8px 8px; border-radius: 22px; background: #0f3d31; box-shadow: 0 14px 28px -16px rgba(15, 61, 49, .7); }
#tidhar .tile--tidhar-phone .tp-play { width: 34px; height: 34px; }
#tidhar .tile--tidhar-phone .tp-play svg { width: 12px; height: 12px; }
#tidhar .tile--tidhar-phone .tp-chaps { flex: 1; gap: 5px; }
#tidhar .tile--tidhar-phone .tp-chaps button { gap: 6px; padding: 4px 0; font-size: .625rem; }
@media (max-width: 700px) {
  #tidhar .tile--tidhar-phone { padding: 12px 10px 10px; gap: 8px; }
  #tidhar .tile--tidhar-phone .tp-player { padding: 6px; gap: 6px; }
  #tidhar .tile--tidhar-phone .tp-play { width: 44px; height: 44px; flex: none; }
  #tidhar .tile--tidhar-phone .tp-chaps span { display: none; }
  #tidhar .tile--tidhar-phone .tp-chaps button { padding-block: 12px; }
}

/* the rating: the app, the score, then each store on its own row */
#tidhar .tile--tidhar-rating { padding: clamp(16px, 1.6vw, 22px); gap: 12px; justify-content: space-between; background: linear-gradient(180deg, #ffffff 0%, #f6f8f5 100%); }
.rate-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; }
.rate-head img { height: 22px; width: auto; }
.rate-head span { font: 600 .6875rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #7a8f87; }
.rate-score { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 0; }
.rate-score b { font: 800 clamp(2.75rem, 22cqh, 4.75rem)/.9 var(--font-display); letter-spacing: -.045em; color: #0f3d31; }
.rate-score .rate-stars { display: flex; gap: 3px; }
.rate-score .rate-stars i { font-style: normal; font-size: clamp(1rem, 7cqh, 1.375rem); line-height: 1; color: #e9b949; }
.rate-stores { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 61, 49, .08); }
.rate-stores li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font: 600 .8125rem/1 var(--font-text); color: #1d1d1f; }
.rate-stores li + li { border-block-start: 1px solid rgba(15, 61, 49, .08); }
.rate-stores img { width: 22px; height: 22px; flex: none; }
.rate-stores span { flex: 1; }
.rate-stores b { font-weight: 700; color: #0f3d31; font-variant-numeric: tabular-nums; }
.rate-stores b i { font-style: normal; color: #e9b949; }
@container (max-height: 260px) { .rate-head span { display: none; } .rate-stores li { padding: 7px 10px; } }
@container (max-height: 200px) { .rate-head { display: none; } }
#tidhar .tile--tidhar-phone .tp-player { flex-direction: row; }
#tidhar .tile--tidhar-phone .tp-chaps { display: grid; grid-template-columns: repeat(4, 1fr); }
@container (max-width: 200px) {
  .rate-stores li { gap: 6px; padding: 8px; font-size: .6875rem; }
  .rate-stores img { width: 16px; height: 16px; }
  .rate-score b { font-size: 2.5rem; }
}

/* ══ HAPOALIM · the usability test, with its heatmap ══════════════════ */
.tile--fc .ut-k { width: 100%; }
.fc-mode { display: inline-flex; margin-inline-start: auto; padding: 2px; border-radius: 99px; background: #f1eeeb; text-transform: none; letter-spacing: 0; }
.fc-mode b { padding: 4px 9px; border-radius: 99px; font: 600 .6875rem/1 var(--font-text); color: #86868b; transition: background .4s var(--ease-apple), color .4s; }
.fc-mode b.is-on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.fc-heatmap { position: absolute; inset: 0; z-index: 1; pointer-events: none; filter: url(#fc-heat); opacity: 0; transition: opacity .9s var(--ease-apple); }
.fc-blob { position: absolute; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .34), rgba(0, 0, 0, .16) 45%, transparent); }
.tile--fc.is-heat .fc-heatmap { opacity: 1; }
.fc-taps { z-index: 2; }
.fc-tap { transition: opacity .6s var(--ease-apple), scale .6s var(--ease-apple); }
.tile--fc.is-heat .fc-tap { opacity: .0; scale: .6; }
.fc-acts span.is-hit { z-index: 3; }
.fc-legend { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 .6875rem/1 var(--font-text); color: #86868b; }
.fc-legend i { flex: 1; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #1a66ff, #19c2e6, #47d16b, #ffd21f, #ff6a1a, #f2102a); }
.fc-defs { position: absolute; }
@container (max-height: 520px) { .fc-legend { display: none; } }
.fc-q { transition: opacity .35s var(--ease-apple), translate .45s var(--ease-apple); }
.fc-q.is-out { opacity: 0; translate: 0 -6px; }
.fc-legend { display: flex; }
@container (max-height: 520px) { .fc-legend { display: flex; } }
@container (max-height: 400px) { .fc-legend { display: none; } }
/* the heat sits over the screen, the way a heatmap tool draws it */
.fc-heatmap { z-index: 4; mix-blend-mode: multiply; }
.fc-taps { z-index: 5; }
.tile--fc .fc-wire { margin-block: 4px auto; }

/* ══ MACCABIAH · the screen opens the way the prototype does: the header in from the side ══ */
.mac-stack { position: relative; }
.mac-stack img { display: block; width: 100%; }
.mac-stack .mac-head, .mac-stack .mac-band { position: absolute; inset-inline: 0; }
.mac-stack .mac-band { z-index: 1; }
.mac-stack .mac-head { z-index: 2; }
@media (prefers-reduced-motion: no-preference) {
  #maccabiah.scene.is-active .mac-head { animation: mac-head-in .62s cubic-bezier(.22, .9, .3, 1) .45s both; }
  #maccabiah.scene.is-active .mac-band { animation: mac-band-in .55s cubic-bezier(.22, .9, .3, 1) 1.05s both; }
}
@keyframes mac-head-in { from { translate: -100% 0; } }
@keyframes mac-band-in { from { translate: 0 -100%; clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* ══ RE:BAR · a fruit where the add-to-cart card was ═══════════════════ */
.tile--rebar-fruit { padding: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 62%, #eef6d2 0%, #ffffff 72%); }
.rb-fruit { width: min(74%, 82cqh); height: auto; rotate: -8deg; filter: drop-shadow(0 18px 22px rgba(120, 20, 30, .22)); transition: rotate 1.2s var(--ease-spring), scale 1.2s var(--ease-spring); }
.tile--rebar-fruit:hover .rb-fruit { rotate: 4deg; scale: 1.06; }
@media (prefers-reduced-motion: no-preference) { .scene.is-active .rb-fruit { animation: icon-bob 6s ease-in-out infinite; } }
/* the test card's header wraps before it ever spills */
.tile--fc .ut-k { flex-wrap: wrap; row-gap: 8px; }
@container (max-width: 230px) { .fc-mode { margin-inline-start: 0; } }
@container (max-width: 170px) { .fc-mode b:not(.is-on) { display: none; } }
/* on a phone the icon card is small: the icon alone, taking turns */
@media (max-width: 700px) {
  #tidhar .tile--tidhar-icons .ic-pick, #tidhar .tile--tidhar-icons .ic-name { display: none; }
  #tidhar .tile--tidhar-icons .icons-card { justify-content: center; padding: 10px; }
}
/* the building and the phone stand on the page itself, no card behind them */
#tidhar .tile--tidhar-building, #tidhar .tile--tidhar-phone { background: none; box-shadow: none; }
#tidhar .tile--tidhar-building { overflow: visible; }
#tidhar .tile--tidhar-phone { padding: 0 0 2px; }

/* ══ RE:BAR · the strawberry as your cursor ══════════════════════════ */
.berry-cursor { position: fixed; z-index: 9999; inset: 0 auto auto 0; width: 42px; height: auto; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(120, 20, 30, .3)); will-change: transform; }
#rebar.has-berry, #rebar.has-berry * { cursor: none !important; }
.tile--rebar-fruit { cursor: pointer; }
.rb-fruit { transition: rotate 1.2s var(--ease-spring), scale 1.2s var(--ease-spring), opacity .4s var(--ease-apple); }
.tile--rebar-fruit.is-picked .rb-fruit { opacity: .18; scale: .9; animation-play-state: paused; }

/* ══ CHECK-IN · the orb: it turns, and sparkles drift off it - the AI, alive ══ */
#checkin .orb--fa { container-type: inline-size; isolation: isolate; box-shadow: 0 0 0 10px rgba(255, 255, 255, .7), 0 0 0 11px rgba(4, 15, 33, .05), 0 30px 60px rgba(130, 74, 234, .4); }
#checkin .orb--fa::after { border-color: rgba(246, 61, 228, .85); }
.orb-ball { position: absolute; inset: 0; z-index: 1; border-radius: 50%; overflow: hidden; background: #6d55ec; }
.orb-ball > i { position: absolute; inset: -25%; background: conic-gradient(from 0deg, #1b5ece, #824aea, #f63de4, #b46cf2, #4f6ff0, #1b5ece); filter: blur(9px); animation: orb-spin 6s linear infinite; }
.orb-ball::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 24%, rgba(255, 255, 255, .6), transparent 46%), radial-gradient(circle, transparent 60%, rgba(40, 10, 90, .28) 100%); }
@keyframes orb-spin { to { rotate: 360deg; } }
#checkin .orb .orb-mark { position: absolute; z-index: 2; inset: 25% 26%; width: 48%; height: auto; border-radius: 0; filter: drop-shadow(0 3px 8px rgba(40, 10, 90, .35)); animation: float 6s ease-in-out infinite; }
#checkin .orb:hover .orb-mark { transform: scale(1.08); }
.orb-sparks { position: absolute; inset: 0; z-index: 3; pointer-events: none; animation: orb-spin 30s linear infinite; }
.orb-sparks i { position: absolute; left: 50%; top: 50%; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2); background: var(--c); opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  --a: calc(var(--i) * 137.5deg); animation: orb-spark 3.4s cubic-bezier(.2, .7, .3, 1) calc(var(--i) * -.243s) infinite; }
@keyframes orb-spark {
  0%   { opacity: 0; transform: rotate(var(--a)) translateY(-34cqw) rotate(calc(-1 * var(--a))) scale(.2); }
  18%  { opacity: 1; }
  70%  { opacity: .9; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-82cqw) rotate(calc(-1 * var(--a) + 120deg)) scale(1); }
}
.orb-sparks { filter: drop-shadow(0 0 3px rgba(246, 61, 228, .9)) drop-shadow(0 0 6px rgba(130, 74, 234, .6)); }
@media (prefers-reduced-motion: reduce) { .orb-ball > i, .orb-sparks, #checkin .orb .orb-mark { animation: none; } .orb-sparks { display: none; } }
.orb-sparks { filter: drop-shadow(0 0 4px rgba(246, 61, 228, 1)) drop-shadow(0 0 10px rgba(130, 74, 234, .8)); }
/* a few stars that twinkle on the rim */
.orb-twinkles { position: absolute; inset: 0; z-index: 3; pointer-events: none; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .95)) drop-shadow(0 0 10px rgba(246, 61, 228, .8)); }
.orb-twinkles i { position: absolute; left: 50%; top: 50%; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2); background: #fff; opacity: 0;
  clip-path: polygon(50% 0, 58% 42%, 100% 50%, 58% 58%, 50% 100%, 42% 58%, 0 50%, 42% 42%);
  transform: rotate(var(--a)) translateY(-60cqw) rotate(calc(-1 * var(--a)));
  animation: orb-twinkle 2.6s ease-in-out calc(var(--i) * .52s) infinite; }
@keyframes orb-twinkle {
  0%, 100% { opacity: 0; scale: .2; rotate: 0deg; }
  45%      { opacity: 1; scale: 1; rotate: 45deg; }
  70%      { opacity: .2; scale: .5; rotate: 70deg; }
}
@media (prefers-reduced-motion: reduce) { .orb-twinkles i { animation: none; opacity: .8; } }
/* the rating, centred: the logo on top, then 5.0, its stars, and what it is */
#tidhar .tile--tidhar-rating { align-items: center; justify-content: center; gap: clamp(14px, 6cqh, 28px); text-align: center; }
.rate-logo2 { width: min(52%, 150px); height: auto; }
#tidhar .rate-score { align-items: center; gap: 8px; }
.rate-label { margin-block-start: 2px; font: 600 .6875rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #7a8f87; }
@container (max-height: 200px) { .rate-logo2 { width: min(44%, 110px); } }

/* ══ HAPOALIM · the usability test, grown up: the real screen under 20% black, the heat on its real buttons ══ */
.tile--ut2 { gap: 12px; background: #fff; }
.tile--ut2 .ut-rec { background: #1d1d1f; box-shadow: 0 0 0 4px rgba(0, 0, 0, .08); }
.tile--ut2 .ut-k { color: #6e6e73; }
.tile--ut2 .fc-mode { background: #f2f2f2; }
.tile--ut2 .fc-q { min-height: 0; font-weight: 600; color: #1d1d1f; }
.ut-screen { position: relative; flex: 1; min-height: 0; align-self: center; aspect-ratio: 390 / 615; max-width: 100%; overflow: hidden; border-radius: 14px; background: #eee; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.ut-screen > img { position: absolute; inset-inline: 0; top: calc(-45 / 615 * 100%); width: 100%; height: auto; }
.ut-scrim { position: absolute; inset: 0; z-index: 1; background: rgba(0, 0, 0, .2); }
.ut-t { position: absolute; z-index: 2; border-radius: 999px; transition: box-shadow .5s var(--ease-apple); }
.ut-t.is-hit { box-shadow: 0 0 0 1.5px #fff, 0 0 0 4px rgba(0, 0, 0, .25); }
.tile--ut2 .fc-heatmap { z-index: 3; mix-blend-mode: normal; }
.tile--ut2.is-heat .fc-heatmap { opacity: .82; }
.tile--ut2 .fc-taps { z-index: 4; }
.tile--ut2 .fc-tap { width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: #fff; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3); }
.tile--ut2 .fc-blob { width: 30%; }
.tile--ut2 .fc-legend span { color: #6e6e73; }
@container (max-height: 300px) { .tile--ut2 .fc-q { display: none; } }

/* ══ OUTRO · it closes in the opening's own colours ═══════════════════ */
.outro-k { display: inline-flex; align-items: center; gap: 10px; color: var(--p-cyan-400); }
.outro-k::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--p-cyan-400); box-shadow: 0 0 12px var(--p-cyan-400); animation: halo-breathe 2.4s ease-in-out infinite; }
.outro-h { background: linear-gradient(180deg, #ffffff 40%, #bfeaff); -webkit-background-clip: text; background-clip: text; }
#outro::before { content: ''; position: absolute; z-index: 0; left: 50%; inset-block-start: 50%; width: min(70vmin, 640px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(1, 183, 255, .22), rgba(26, 75, 255, .08) 60%, transparent); filter: blur(10px); pointer-events: none; }
/* the way on: two quieter buttons under the main two */
.outro-more { gap: 10px; flex-wrap: wrap; justify-content: center; margin-block-start: 2px; }
.outro-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); color: #f5f5f7; font: 600 .9375rem/1 var(--font-text); opacity: 1 !important; transition: background .3s var(--ease-apple), box-shadow .3s; }
.outro-btn:hover { background: rgba(1, 183, 255, .12); box-shadow: inset 0 0 0 1px rgba(1, 183, 255, .6); }
.outro-btn span { transition: translate .4s var(--ease-spring); }
.outro-btn:hover span { translate: 3px 0; }

/* ══ MACCABIAH · after the app's own store visuals ═══════════════════ */
.tile--ms { padding: 0; background: #282367; color: #fff; overflow: hidden; }
.ms-head { position: relative; z-index: 2; display: block; width: 100%; height: auto; }
/* all events: the headline on top, the app tilted under it, a comet trailing */
#maccabiah .tile--mac-phone { justify-content: flex-start; }
#maccabiah .ms-phone { position: absolute; z-index: 1; inset: auto -8% -12% auto; width: 80%; max-width: none; rotate: -12deg; transform-origin: 70% 100%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15), 0 40px 70px -20px rgba(0, 0, 0, .55); transition: rotate 1.2s var(--ease-spring), translate 1.2s var(--ease-spring); }
#maccabiah .tile--mac-phone:hover .ms-phone { rotate: -8deg; translate: 0 -10px; }
.ms-comet { position: absolute; z-index: 2; inset: auto auto 4% -10%; width: 58%; rotate: 8deg; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { #maccabiah.is-active .ms-comet { animation: ms-comet 1.4s cubic-bezier(.2, .8, .3, 1) .9s both; } }
@keyframes ms-comet { from { translate: -60% 30%; opacity: 0; } }
/* open chat: a globe that turns, a line that draws, the athletes popping in */
.tile--ms-chat { justify-content: space-between; }
.ms-globe { position: relative; flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; container-type: size; }
.ms-globe svg { width: min(88cqw, 88cqh); height: auto; overflow: visible; }
.ms-globe-lines { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.6; }
.ms-zig { fill: none; stroke: #f7b52c; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.ms-ava { position: absolute; z-index: 2; left: var(--x); top: var(--y); width: min(26cqw, 24cqh); aspect-ratio: 1; translate: -50% -50%; }
.ms-ava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, .35); }
.ms-bub { position: absolute; left: 70%; top: -6%; display: flex; align-items: center; gap: 5px; padding: 5px 9px 5px 5px; border-radius: 99px; background: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .25); white-space: nowrap; }
.ms-bub b { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #2a2470; color: #fff; font: 700 .5625rem/1 var(--font-text); }
.ms-bub i { display: block; width: 26px; height: 4px; border-radius: 2px; background: #d6d6e0; }
.ms-bub i + i { width: 16px; }
.ms-ava:nth-of-type(1) .ms-bub { left: 62%; top: auto; bottom: 74%; }
@media (prefers-reduced-motion: no-preference) {
  #maccabiah.is-active .ms-zig { animation: ms-draw 1.3s cubic-bezier(.6, 0, .3, 1) .3s both; }
  #maccabiah.is-active .ms-ava { animation: ms-pop .6s var(--ease-bounce) calc(1.1s + var(--k) * .35s) both; }
  #maccabiah.is-active .ms-bub { animation: ms-bub .5s var(--ease-bounce) calc(1.4s + var(--k) * .35s) both; }
}
@keyframes ms-draw { from { stroke-dashoffset: 100; } }
@keyframes ms-pop { from { scale: 0; opacity: 0; } }
@keyframes ms-bub { from { scale: .4; opacity: 0; transform-origin: 0 100%; } }
/* the store's portrait shots, shown from their top */
.tile--ms-shot { display: block; }
.ms-frame { position: relative; width: 100%; aspect-ratio: var(--ar); transition: scale 1.2s var(--ease-spring); }
.ms-frame img { display: block; width: 100%; height: 100%; }
.tile--ms-shot:hover .ms-frame { scale: 1.03; }
.ms-live-dot { position: absolute; left: 78.34%; top: 2.52%; width: 2.2%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 0 rgba(239, 38, 54, .7); animation: ms-live 1.6s ease-out infinite; }
@keyframes ms-live { to { box-shadow: 0 0 0 10px rgba(239, 38, 54, 0); } }
@media (prefers-reduced-motion: reduce) { .ms-live-dot { animation: none; } }
/* the phone sits lower, its head in view; the store shots fit whole - their indigo is the card's */
#maccabiah .ms-phone { inset: auto -14% -34% auto; width: 84%; }
@media (min-width: 701px) {
  .tile--ms-shot { display: flex; justify-content: center; }
  .ms-frame { width: auto; height: 100%; max-width: 100%; }
}
@media (max-width: 700px) {
  #maccabiah .ms-phone { inset: auto -22% -40% auto; width: 96%; }
  .ms-comet { width: 50%; }
}
.ms-ava:nth-of-type(2) .ms-bub, .ms-ava:nth-of-type(3) .ms-bub { left: auto; right: 70%; flex-direction: row-reverse; padding: 5px 5px 5px 9px; }
@container (max-height: 300px) { .tile--hero-mac .hero-scope { display: none; } }

/* ══ MACCABIAH · press the M25: the screen wins gold ═════════════════ */
#maccabiah .tile--hero .hero-name--logo { cursor: pointer; transition: scale .5s var(--ease-bounce); }
#maccabiah .tile--hero .hero-name--logo:hover { scale: 1.04; }
#maccabiah .tile--hero .hero-name--logo:active { scale: .97; }
.win { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.win-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.win-glow { position: absolute; left: 50%; inset-block-start: 36%; width: min(90vmin, 900px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 181, 44, .42), rgba(240, 86, 110, .14) 55%, transparent); animation: win-glow 1.2s var(--ease-apple) both; }
@keyframes win-glow { from { scale: .2; opacity: 0; } }
.win-medal { position: absolute; left: 50%; inset-block-start: 8vh; width: clamp(150px, 22vmin, 230px); translate: -50% 0; transform-origin: 50% 0; animation: win-drop 1.6s cubic-bezier(.34, 1.4, .64, 1) both, win-swing 2.6s ease-in-out 1.1s 1 both; }
@keyframes win-drop { from { translate: -50% -120vh; } }
@keyframes win-swing { 0% { rotate: 0deg; } 25% { rotate: 5deg; } 55% { rotate: -3deg; } 80% { rotate: 1.5deg; } 100% { rotate: 0deg; } }
.win-ribbon { display: block; width: 46%; height: clamp(90px, 14vmin, 150px); margin-inline: auto; margin-block-end: -12%;
  background: linear-gradient(90deg, #00aee9 0 20%, #f7b52c 20% 40%, #f0566e 40% 60%, #7e4ea2 60% 80%, #3b4bd8 80%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%); box-shadow: inset 0 -20px 30px rgba(0, 0, 0, .2); }
.win-disc { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 34% 28%, #fff4c2 0%, #ffd45a 26%, #f7b52c 52%, #c98410 100%);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .35), inset 0 0 0 12px rgba(170, 110, 10, .35), 0 30px 60px rgba(20, 10, 60, .45); }
.win-disc img { width: 54%; height: auto; filter: drop-shadow(0 2px 3px rgba(120, 70, 0, .45)); }
.win-disc::after { content: ''; position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .75) 48%, transparent 58%); translate: -100% 0; animation: win-shine 1.4s ease-in-out 1.2s both; }
@keyframes win-shine { to { translate: 100% 0; } }
.win.is-out .win-medal { animation: win-away 1.6s cubic-bezier(.4, 0, .2, 1) forwards; }
.win.is-out .win-glow { transition: opacity 1.4s var(--ease-apple); opacity: 0; }
@keyframes win-away { to { translate: -50% -12vh; scale: .82; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .win-medal, .win-glow, .win-disc::after { animation: none; } .win.is-out .win-medal { animation: none; transition: opacity 1s; opacity: 0; } }

/* ══ HAPOALIM · a family stepping out of its card ═════════════════════ */
.tile--fam { overflow: visible; }
.fam-card { position: absolute; inset: 34% 0 0; border-radius: var(--radius-tile); background: linear-gradient(180deg, #ffffff 0%, #fdeced 100%); box-shadow: var(--card-shadow); }
.fam-clip { position: absolute; inset: 0; overflow: hidden; border-radius: 0 0 var(--radius-tile) var(--radius-tile); }
.fam-img { position: absolute; left: 50%; inset-block-end: 0; width: 168%; max-width: none; height: auto; translate: -50% 0; transition: scale 1.2s var(--ease-spring); transform-origin: 50% 100%; }
.tile--fam:hover .fam-img { scale: 1.03; }
@media (prefers-reduced-motion: no-preference) {
  #hapoalim:is(.is-active, .was-seen) .fam-img { animation: fam-rise 1.3s cubic-bezier(.22, .9, .3, 1) .35s both; }
}
@keyframes fam-rise { from { translate: -50% 22%; opacity: 0; } 40% { opacity: 1; } }
.fam-card { inset-block-start: 46%; }
.fam-img { width: 150%; }
.fam-card { inset-block-start: 40%; }
.fam-img { width: 162%; }

/* ══ MACCABIAH · calmer: the app upright and still - only its screen plays ══ */
#maccabiah .tile--mac-still { justify-content: center; align-items: center; padding: 16px; transform: none !important; }
#maccabiah .tile--mac-still .phone { position: relative; inset: auto; margin: 0; width: min(100%, calc((100cqh - 32px) * .4615)); rotate: none; translate: none; }
@media (prefers-reduced-motion: no-preference) {
  #maccabiah.is-active .tile--mac-still .scroller .shot { animation: site-scroll var(--scroll-time, 6s) ease-in-out 2.4s infinite alternate; }
}
#maccabiah .tile:hover .scroller .shot { transform: none; }
/* the athletes' globe, in the Games' bright blue */
.tile--mac-chat2 { background: radial-gradient(120% 90% at 50% 30%, #2bc4f5 0%, #00aee9 55%, #0091c9 100%); justify-content: center; }
.tile--mac-chat2 .ms-globe-lines { stroke: rgba(255, 255, 255, .7); }
.tile--mac-chat2 .ms-bub b { background: #00aee9; }
.ms-tag { position: absolute; z-index: 3; inset: auto auto 16px 18px; margin: 0; font: 900 .9375rem/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; color: #fff; }
#maccabiah .tile--mac-still .phone { overflow: hidden; min-height: 0; }

/* ══ CHECK-IN · the hero clean of tags; the boarding pass the full height of its column ══ */
#checkin .tile--hero .ci-badge, #checkin .tile--hero .hero-scope { display: none; }
#checkin .tile--pass { flex-direction: column;
  -webkit-mask: radial-gradient(circle 11px at 0 78%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 78%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 11px at 0 78%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% 78%, #0000 98%, #000) right / 51% 100% no-repeat; }
#checkin .pass-main { flex: 0 0 78%; gap: 10px; border-inline-end: 0; border-block-end: 2px dashed #dcd6f2; container-type: inline-size; }
#checkin .pass-route { flex-direction: column; align-items: flex-start; justify-content: center; flex: 1; gap: 2px; font-size: min(30cqw, 5.5rem); }
#checkin .pass-route i { display: flex; align-items: center; gap: 8px; width: 100%; font-size: .32em; color: #824aea; rotate: 90deg; width: auto; translate: .35em 0; animation: none; }
#checkin .pass-meta { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
#checkin .pass-stub { flex: 1; transform-origin: 0 0; }
#checkin .barcode { width: 72%; height: 46%; background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 4px, #fff 4px 5px, transparent 5px 8px); }
#checkin .barcode::after { inset-block: -4px; inset-inline: auto; width: 2px; height: auto; left: 0; top: auto; }
#checkin.scene.is-active .barcode::after { animation: scan-x 1.1s cubic-bezier(.45, 0, .55, 1) 1.2s both; }
@keyframes scan-x { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
#checkin .tile--pass:hover .pass-stub, #checkin .tile--pass.is-torn .pass-stub { transform: translateY(8px) rotate(-4deg); }

/* ══ OUTRO · only the way on ══ */
.outro-more { margin-block-start: 10px; }

/* ══ BACK TO THE TOP · fills as you go down; pressed, the arrow takes off on a beam ══ */
.to-top { position: fixed; z-index: 95; inset: auto 24px 28px auto; width: 50px; height: 50px; opacity: 0; scale: .5; pointer-events: none; transition: opacity .4s var(--ease-apple), scale .55s var(--ease-bounce), transform .3s var(--ease-bounce), background .6s; }
.to-top.is-on { opacity: 1; scale: 1; pointer-events: auto; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.to-top-ring circle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .55; transition: stroke-dashoffset .2s linear; }
.to-top-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.to-top::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(1, 183, 255, .8); opacity: 0; pointer-events: none; }
.to-top.is-flying::after { animation: tt-ring .8s cubic-bezier(.2, .7, .3, 1) both; }
.to-top.is-flying .to-top-arrow { animation: tt-fly 1.4s cubic-bezier(.5, 0, .2, 1) both; }
@keyframes tt-ring { from { scale: 1; opacity: 1; } to { scale: 2.4; opacity: 0; } }
@keyframes tt-fly { 0% { translate: 0 0; } 12% { translate: 0 4px; } 34% { translate: 0 -80px; opacity: 0; } 35% { translate: 0 22px; opacity: 0; } 100% { translate: 0 0; opacity: 1; } }
.to-top-beam { position: fixed; z-index: 94; top: 0; width: 3px; margin-inline-start: -1.5px; border-radius: 3px; pointer-events: none; transform-origin: 50% 100%;
  background: linear-gradient(to top, #fff, rgba(1, 183, 255, .9) 30%, rgba(26, 75, 255, .5) 70%, transparent);
  box-shadow: 0 0 14px rgba(1, 183, 255, .9), 0 0 30px rgba(26, 75, 255, .5); animation: tt-beam 1.2s cubic-bezier(.3, .7, .2, 1) both; }
@keyframes tt-beam { 0% { scale: 1 0; opacity: 1; } 40% { scale: 1 1; opacity: 1; } 100% { scale: 1 1; opacity: 0; translate: 0 -30%; } }
@media (max-width: 700px) { .to-top { inset: auto 14px calc(92px + env(safe-area-inset-bottom)) auto; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .to-top-beam, .to-top.is-flying .to-top-arrow, .to-top.is-flying::after { animation: none; } }

/* ══ CHECK-IN · the experiences offer, in its own type ══════════════ */
@font-face { font-family: 'SimplerPro'; src: url(assets/fonts/SimplerPro-Regular.woff) format('woff'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'SimplerPro'; src: url(assets/fonts/SimplerPro-Bold.woff) format('woff'); font-weight: 700; font-display: swap; }
.tile--fa-exp { padding: 0; background: linear-gradient(180deg, #2f4bac 0%, #5445ba 48%, #a742bc 100%); color: #fff; }
.fa-exp { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(6px, 2.6cqh, 12px); padding: clamp(12px, 6cqw, 20px); font-family: 'SimplerPro', var(--font-text); container-type: size; }
.fa-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.fa-card { position: relative; aspect-ratio: 126 / 234; border-radius: 9px; overflow: hidden; box-shadow: 0 6px 14px rgba(20, 10, 70, .35); }
.fa-card img { width: 100%; height: 100%; object-fit: cover; }
.fa-card b { position: absolute; inset: auto 3px 4px; padding: 3px 0; border-radius: 99px; background: #fff; color: #040f21; font: 700 clamp(.5rem, 4.2cqw, .6875rem)/1 'SimplerPro', var(--font-text); text-align: center; }
.fa-pill { align-self: flex-start; margin: 2px 0 0; padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); font: 700 clamp(.6875rem, 5cqw, .8125rem)/1.2 'SimplerPro', var(--font-text); }
.fa-h { margin: 0; font: 700 clamp(1.0625rem, 10cqw, 1.625rem)/1.05 'SimplerPro', var(--font-text); letter-spacing: -.01em; text-wrap: balance; }
.fa-cta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; border-radius: 99px; background: #fff; color: #1b5ece; font: 700 clamp(.75rem, 5.4cqw, .875rem)/1.1 'SimplerPro', var(--font-text); box-shadow: 0 8px 18px rgba(20, 10, 70, .25); }
.fa-cta i { font-style: normal; font-size: 1.2em; }
.fa-count { display: flex; justify-content: center; align-items: flex-start; gap: 6px; margin: 0; }
.fa-count span { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fa-count b { font: 700 clamp(1rem, 9cqw, 1.5rem)/1 'SimplerPro', var(--font-text); font-variant-numeric: tabular-nums; }
.fa-count i { font: 400 clamp(.5625rem, 4cqw, .6875rem)/1 'SimplerPro', var(--font-text); font-style: normal; opacity: .85; }
.fa-count em { font-style: normal; font-weight: 700; opacity: .6; line-height: 1.2; }
@container (max-height: 300px) { .fa-pill { display: none; } }
@container (max-height: 250px) { .fa-cta { display: none; } }
@container (max-height: 190px) { .fa-cards { display: none; } }

/* ══ CHECK-IN · the phone: the live site's first screen on mobile, still ══ */
.ci-stack { position: relative; }
.ci-stack > img { display: block; width: 100%; height: auto; }
#checkin .tile--checkin-phone .screen > .shot { width: 100%; height: auto; margin: 0; object-fit: initial; }
#checkin .tile--checkin-phone .ci-stack .fab, .fx-fa .ci-stack .fab { top: calc(161 / 1624 * 100%); left: 50%; width: 7.6cqw; translate: -50% -50%; }
#checkin .tile--checkin-phone .burst { background: radial-gradient(circle at 50% 3%, #e9f0ff 0%, #6f8cf5 20%, #824aea 48%, #f63de4 85%); clip-path: circle(0 at 50% 3%); }
#checkin .tile--checkin-phone.is-burst .burst { clip-path: circle(160% at 50% 3%); }

/* ══ HOTEL · bright, like the app: home, open the room, order to where you are, housekeeping ══ */
/* the home screen, upright, its ring live */
#hotel .tile--ht-phone { justify-content: center; align-items: center; padding: 16px; background: radial-gradient(110% 70% at 50% 100%, #ffe58a 0%, #fff6d6 55%, #ffffff 100%); transform: none !important; }
#hotel .tile--ht-phone .phone { position: relative; inset: auto; margin: 0; translate: none; overflow: hidden; min-height: 0; width: min(100%, calc((100cqh - 32px) * .4615)); box-shadow: inset 0 0 0 1.5px #3a3a3c, 0 34px 60px -26px rgba(120, 80, 0, .45); }
#hotel .tile--ht-phone .screen { background: #fff; }
#hotel .tile--ht-phone .shot--fill { object-position: 50% 0; }
.ht-hot { position: absolute; z-index: 3; left: 49.8%; top: 26.4%; width: 56%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; cursor: pointer; }
.ht-fill { position: absolute; z-index: 2; left: 49.8%; top: 26.4%; width: 56%; aspect-ratio: 1; translate: -50% -50%; rotate: -90deg; pointer-events: none; overflow: visible; }
.ht-fill circle { fill: none; stroke: #ffcc00; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1s cubic-bezier(.6, 0, .2, 1); }
.tile--ht-phone.is-open .ht-fill circle { stroke-dashoffset: 0; }
/* open the room: the app's own ring */
.tile--ht-open { padding: 0; display: grid; place-items: center; background: radial-gradient(90% 90% at 50% 40%, #ffffff 0%, #fff4cf 100%); }
.ht-open { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; width: min(78%, 74cqh); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #ffffff 0%, #f1f1f1 70%, #e4e4e4 100%); box-shadow: 0 18px 40px -14px rgba(120, 80, 0, .35), inset 0 2px 6px rgba(255, 255, 255, .9); color: #0d0d0f; text-align: center; cursor: pointer; transition: scale .5s var(--ease-bounce); container-type: inline-size; }
.ht-open:hover { scale: 1.03; }
.ht-open:active { scale: .97; }
.ht-open svg { position: absolute; inset: -6%; width: 112%; height: 112%; rotate: -90deg; overflow: visible; }
.ht-open-track { fill: none; stroke: #d6d6d6; stroke-width: 5; }
.ht-open-arc { fill: none; stroke: #ffcc00; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 50; transition: stroke-dashoffset 1.1s cubic-bezier(.6, 0, .2, 1); }
.tile--ht-open.is-open .ht-open-arc { stroke-dashoffset: 0; }
.ht-open-k { font: 500 clamp(.6875rem, 11cqw, 1rem)/1 var(--font-text); color: #6e6e73; }
.ht-open b { font: 800 clamp(1.75rem, 34cqw, 3.5rem)/1 var(--font-display); letter-spacing: -.04em; }
.ht-open em { font: 600 clamp(.5625rem, 8.5cqw, .75rem)/1.2 var(--font-text); font-style: normal; color: #b07d00; }
.tile--ht-open.is-open .ht-open em { color: #1d1d1f; }
/* order via location: the hotel, drawn the app's way; the courier rides to you */
.tile--ht-deliver { padding: clamp(14px, 1.6vw, 22px); gap: 10px; background: #fff; color: #0d0d0f; }
.hd-k { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 clamp(.9375rem, 1.3vw, 1.125rem)/1 var(--font-text); }
.hd-k i { width: 10px; height: 10px; border-radius: 50%; background: #ffcc00; }
.hd-map { position: relative; flex: 1; min-height: 0; display: grid; place-items: center; }
.hd-svg { display: block; width: 100%; max-height: 100%; overflow: visible; }
.hd-ground { fill: #fbf8ef; }
.hd-walk { fill: none; stroke: #efe7d2; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.hd-tree circle { fill: #ffd84d; stroke: #1d1d1f; stroke-width: 1.6; }
.hd-b rect { fill: #fff; stroke: #1d1d1f; stroke-width: 1.8; }
.hd-b text, .hd-door text { font: 600 15px var(--font-text); fill: #1d1d1f; text-anchor: middle; }
.hd-door text { font-size: 12px; fill: #6e6e73; }
.hd-door rect { fill: #fff; stroke: #1d1d1f; stroke-width: 1.6; }
.hd-door--me rect { fill: #ffcc00; }
.hd-door--me text { fill: #1d1d1f; font-weight: 700; }
.hd-pool { fill: #dcefff; stroke: #1d1d1f; stroke-width: 1.8; }
.hd-wave { fill: none; stroke: #7cbcf0; stroke-width: 2; stroke-linecap: round; }
.hd-bed { fill: #fff; stroke: #1d1d1f; stroke-width: 1.5; }
.hd-bed--me { fill: #ffcc00; }
.hd-route { fill: none; stroke: #1d1d1f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 9; opacity: 0; transition: opacity .4s; }
.hd-route.is-on { opacity: 1; animation: hd-ants 1.2s linear infinite; }
@keyframes hd-ants { to { stroke-dashoffset: -22; } }
.hd-scooter { position: absolute; z-index: 2; left: 0; top: 0; width: 13%; height: auto; pointer-events: none; will-change: transform; }
.hd-map { place-items: start; }
.hd-pin { position: absolute; z-index: 3; translate: -50% -150%; padding: 5px 10px; border-radius: 99px; background: #1d1d1f; color: #fff; font: 600 .6875rem/1 var(--font-text); white-space: nowrap; opacity: 0; scale: .7; transition: opacity .35s, scale .5s var(--ease-bounce); }
.hd-pin::after { content: ''; position: absolute; left: 50%; top: 100%; width: 8px; height: 8px; translate: -50% -50%; rotate: 45deg; background: inherit; }
.hd-pin.is-on { opacity: 1; scale: 1; }
.tile--ht-deliver.is-delivered .hd-pin.is-on { background: #ffcc00; color: #1d1d1f; }
.hd-toast { position: absolute; z-index: 3; inset: auto auto 4% 4%; margin: 0; padding: 7px 12px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); font: 600 .75rem/1.2 var(--font-text); opacity: 0; translate: 0 6px; transition: opacity .4s, translate .5s var(--ease-spring); }
.tile--ht-deliver.is-delivered .hd-toast { opacity: 1; translate: 0 0; }
.hd-choose { display: flex; justify-content: center; gap: clamp(18px, 3vw, 40px); }
.hd-choose button { display: flex; flex-direction: column; align-items: center; gap: 6px; font: 500 .8125rem/1.2 var(--font-text); color: #1d1d1f; }
.hd-choose i { display: grid; place-items: center; width: clamp(40px, 4vw, 52px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05); transition: background .4s, scale .5s var(--ease-bounce); }
.hd-choose svg { width: 46%; height: 46%; fill: none; stroke: #1d1d1f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hd-choose button.is-on { font-weight: 700; }
.hd-choose button.is-on i { background: #ffcc00; box-shadow: 0 8px 20px -8px rgba(200, 140, 0, .6); }
.hd-choose button:hover i { scale: 1.06; }
/* housekeeping: cleaned, with a little sparkle; and what the room needs */
.tile--ht-clean { padding: clamp(14px, 1.5vw, 20px); gap: 12px; background: #fff; color: #0d0d0f; }
.hc-status { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: 18px; background: linear-gradient(135deg, #fff4cf, #ffe58a); }
.hc-k { margin: 0; font: 600 .6875rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; color: #8a6400; }
.hc-status b { font: 700 clamp(1.0625rem, 1.5vw, 1.375rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.hc-status > span:last-child { font: 500 .8125rem/1.2 var(--font-text); color: #5c4a14; }
.hc-sparks { position: absolute; inset: 10px 12px auto auto; width: 44px; height: 36px; }
.hc-sparks i { position: absolute; width: 12px; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px rgba(255, 196, 0, .9)); animation: hc-tw 2.2s ease-in-out infinite; }
.hc-sparks i:nth-child(1) { right: 0; top: 0; }
.hc-sparks i:nth-child(2) { right: 18px; top: 16px; width: 9px; animation-delay: -.7s; }
.hc-sparks i:nth-child(3) { right: 4px; top: 22px; width: 7px; animation-delay: -1.4s; }
@keyframes hc-tw { 0%, 100% { scale: .3; opacity: .2; rotate: 0deg; } 50% { scale: 1; opacity: 1; rotate: 45deg; } }
.hc-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; align-content: center; }
.hc-ic { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; font: 500 .6875rem/1.15 var(--font-text); color: #1d1d1f; text-align: center; }
.hc-ic img { width: min(100%, 52px); aspect-ratio: 1; padding: 9px; border-radius: 50%; background: #fff; box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04); transition: scale .5s var(--ease-bounce); }
.hc-ic:hover img { scale: 1.06; }
.hc-badge { position: absolute; top: -2px; right: 14%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #1d1d1f; color: #fff; font: 700 .625rem/18px var(--font-text); font-style: normal; opacity: 0; scale: .5; transition: opacity .3s, scale .4s var(--ease-bounce); }
.hc-ic.has-n .hc-badge { opacity: 1; scale: 1; }
.hc-note { margin: 0; font: 500 .8125rem/1.3 var(--font-text); color: #6e6e73; }
@container (max-height: 380px) { .hc-grid .hc-ic:nth-child(n + 4) { display: none; } }
@container (max-height: 260px) { .hc-note { display: none; } .hc-ic span { display: none; } }
@media (prefers-reduced-motion: reduce) { .hc-sparks i, .hd-route.is-on { animation: none; } }
.hd-map { flex: none; width: min(100%, calc((100cqh - 150px) * 1.5)); aspect-ratio: 3 / 2; align-self: center; display: block; margin-block: auto; }
.hd-svg { width: 100%; height: 100%; max-height: none; }
.ht-open { width: min(66%, 62cqh); }
.hc-ic img { width: min(100%, 62px); }
@container (max-height: 300px) { .hd-choose button { font-size: .75rem; } }
/* the map: one SVG, the courier and the pins inside it, so all of it scales as one */
.hd-map { flex: 1 1 0; min-height: 0; width: 100%; aspect-ratio: auto; margin: 0; display: block; }
.hd-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hd-scooter { position: static; width: auto; }
.hd-pin { position: static; translate: none; padding: 0; background: none; opacity: 1; scale: 1; }
.hd-pin::after { content: none; }
.hd-pin-in { opacity: 0; transform: scale(.6); transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .35s, transform .5s var(--ease-bounce); }
.hd-pin.is-on .hd-pin-in { opacity: 1; transform: none; }
.hd-pin rect, .hd-pin path { fill: #1d1d1f; }
.hd-pin text { font: 700 12px var(--font-text); fill: #fff; text-anchor: middle; }
.tile--ht-deliver.is-delivered .hd-pin.is-on rect, .tile--ht-deliver.is-delivered .hd-pin.is-on path { fill: #ffcc00; }
.tile--ht-deliver.is-delivered .hd-pin.is-on text { fill: #1d1d1f; }
.tile--ht-deliver.is-delivered .hd-pin { background: none; }
@container (max-height: 420px) { .hc-grid .hc-ic:nth-child(n + 4) { display: flex; } }
@container (max-height: 300px) { .hc-grid .hc-ic:nth-child(n + 4) { display: none; } }
@media (max-width: 700px) {
  .hd-choose button { flex-direction: row; gap: 6px; }
  .hd-choose i { width: 34px; }
  .hd-toast { font-size: .6875rem; padding: 5px 9px; }
}
@media (max-width: 700px) { .tile--hero-hotel .hero-top { position: absolute; } }
.hd-toast { inset: 2% auto auto 50%; translate: -50% -6px; white-space: nowrap; }
.tile--ht-deliver.is-delivered .hd-toast { translate: -50% 0; }
/* Poalim's family, round 2: a solid red card, the frame white, the family out over its top and sides */
#hapoalim .tile--fam { z-index: 4; overflow: visible; }
#hapoalim .fam-card { inset: 38% 0 0; background: linear-gradient(160deg, #ef2b3d 0%, #e7192e 55%, #c3101f 100%); box-shadow: 0 30px 60px -28px rgba(195, 16, 31, .6); }
#hapoalim .fam-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(120% 80% at 30% 0%, rgba(255, 255, 255, .22), transparent 60%); }
#hapoalim .fam-img { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 158%; max-width: none; height: auto; translate: -50% 0; filter: drop-shadow(0 18px 24px rgba(120, 0, 16, .28));
  clip-path: inset(-100% -100% 0 -100%); }
@media (prefers-reduced-motion: no-preference) {
  #hapoalim:is(.is-active, .was-seen) .fam-img { animation: fam-rise2 1.3s cubic-bezier(.22, .9, .3, 1) .35s both; }
}
@keyframes fam-rise2 { from { translate: -50% 16%; opacity: 0; } 45% { opacity: 1; } }
#hapoalim .tile--fam:hover .fam-img { scale: 1.03; }
/* two layers: the framed photo inside the red card, and the people alone stepping out of it */
#hapoalim .fam-card { overflow: hidden; }
#hapoalim .fam-card .fam-img { filter: none; clip-path: none; }
#hapoalim .fam-img--framed { bottom: 0; width: calc(158% * 100 / 62); }
#hapoalim .fam-card { --h: 62%; }
#hapoalim .fam-img--framed { width: 158%; }

/* ══ MACCABIAH · the app card says what it is; the prototype plays in a loop ══ */
#maccabiah .tile--mac-still { justify-content: flex-start; gap: 0; padding: 0; background: #282367; }
.mac-say { display: block; width: 100%; height: auto; flex: none; }
#maccabiah .tile--mac-still .phone { flex: none; margin: 4px auto 16px; width: min(calc(100% - 40px), calc((100cqh - 100cqw * .442 - 24px) * .4615)); }
/* the loop: the header slides in from the side, the Games band drops in, the day scrolls down and back, then it all goes round again */
@media (prefers-reduced-motion: no-preference) {
  #maccabiah.is-active .tile--mac-still .mac-head { animation: mac-loop-head 12s cubic-bezier(.22, .9, .3, 1) infinite both; }
  #maccabiah.is-active .tile--mac-still .mac-band { animation: mac-loop-band 12s cubic-bezier(.22, .9, .3, 1) infinite both; }
  #maccabiah.is-active .tile--mac-still .scroller .shot { animation: mac-loop-scroll 12s ease-in-out infinite both; }
}
@keyframes mac-loop-head { 0%, 3% { translate: -100% 0; } 9%, 92% { translate: 0 0; } 97%, 100% { translate: -100% 0; } }
@keyframes mac-loop-band { 0%, 8% { translate: 0 -100%; clip-path: inset(100% 0 0 0); } 13%, 91% { translate: 0 0; clip-path: inset(0); } 95%, 100% { translate: 0 -100%; clip-path: inset(100% 0 0 0); } }
@keyframes mac-loop-scroll { 0%, 22% { transform: none; } 56%, 64% { transform: translateY(calc(-1 * var(--travel, 0px))); } 86%, 100% { transform: none; } }
/* the yellow badge: press it and win */
.tile--mac-badge { cursor: pointer; }
.tile--mac-badge .mac-badge { transition: rotate .6s var(--ease-bounce), scale .6s var(--ease-bounce); }
.tile--mac-badge:hover .mac-badge { rotate: -6deg; scale: 1.06; }
.tile--mac-badge:active .mac-badge { scale: .96; }

/* ══ CASE STUDY UNDER ITS WORLD · a calmer room to read in ══════════════
   One template for every story: a header, numbered chapters in the order
   they were told, the end. Warm white, a 680px column, 18px type at 1.7. */
html[data-inline] { scroll-snap-type: none; }
.cs-inline { --csi-ink: #1d1d1f; --csi-soft: #4a5553; --csi-line: #e3ebe8; --csi-bg: #fbfcfb;
  position: relative; z-index: 2; background: var(--csi-bg); color: var(--csi-ink); font-family: var(--font-text); letter-spacing: 0; }
.cs-inline::before { content: ''; position: absolute; inset: -72px 0 auto; height: 72px; background: linear-gradient(to bottom, transparent, var(--csi-bg)); pointer-events: none; }
.csi-grid { display: grid; grid-template-columns: 200px minmax(0, 720px); justify-content: center; gap: clamp(40px, 6vw, 88px); padding: clamp(72px, 10vh, 120px) 32px clamp(96px, 14vh, 160px); }
/* the chapters, beside you as you read */
.csi-toc { position: sticky; top: 104px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
.csi-toc-k { margin: 0; font: 700 1.0625rem/1.2 var(--font-display); letter-spacing: -.01em; }
.csi-toc ol { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; border-inline-start: 2px solid var(--csi-line); }
.csi-toc button { display: flex; gap: 10px; width: 100%; padding: 7px 12px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--csi-soft); font: 500 .875rem/1.35 var(--font-text); text-align: start; transition: color .3s, border-color .3s; }
.csi-toc button span { font-variant-numeric: tabular-nums; color: #8a9693; }
.csi-toc button:hover, .csi-toc button.is-on { color: var(--csi-ink); border-inline-start-color: var(--csi-a); }
.csi-toc button.is-on span { color: var(--csi-a); }
/* the header */
.csi-main { min-width: 0; }
.csi-kicker { margin: 0 0 14px; font: 700 .8125rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--csi-a); }
.csi-title { margin: 0; font: 700 clamp(2.25rem, 4.6vw, 3.5rem)/1.04 var(--font-display); letter-spacing: -.035em; text-wrap: balance; }
.csi-intro { margin: 22px 0 0; font: 400 clamp(1.125rem, 1.5vw, 1.3125rem)/1.6 var(--font-text); color: var(--csi-soft); max-width: 62ch; }
.csi-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px 24px; margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--csi-line); }
.csi-meta dt { font: 600 .75rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #6b7774; }
.csi-meta dd { margin: 8px 0 0; font: 500 1rem/1.4 var(--font-text); }
.csi-cover { margin: 40px 0 0; padding: clamp(20px, 4vw, 48px); border-radius: 28px; background: radial-gradient(120% 90% at 50% 10%, #ffffff 0%, #e6f4f1 60%, #cfeee7 100%); }
.csi-cover img { display: block; width: min(100%, 560px); height: auto; margin-inline: auto; }
/* chapters */
.csi-sec { margin-top: clamp(80px, 12vh, 128px); scroll-margin-top: 96px; }
.csi-num { margin: 0 0 10px; font: 700 .875rem/1 var(--font-text); letter-spacing: .08em; color: var(--csi-a2); font-variant-numeric: tabular-nums; }
.csi-h { margin: 0 0 24px; font: 700 clamp(1.75rem, 3vw, 2.375rem)/1.12 var(--font-display); letter-spacing: -.03em; }
.csi-body { display: flex; flex-direction: column; gap: 22px; }
.csi-body p, .csi-note p { margin: 0; font: 400 var(--g-body)/1.7 var(--font-text); color: #2b3130; max-width: var(--g-measure); }
.csi-sub, .csi-body h4 { margin: 18px 0 -6px; font: 600 1.3125rem/1.3 var(--font-display); letter-spacing: -.015em; }
.csi-lead { margin: 10px 0 0; font: 600 1.375rem/1.3 var(--font-display); color: var(--csi-a); }
.csi-dots, .csi-dashes { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.csi-dots li, .csi-dashes li { position: relative; padding-inline-start: 28px; font: 400 1.125rem/1.65 var(--font-text); color: #2b3130; max-width: 64ch; }
.csi-dots li::before { content: ''; position: absolute; inset-inline-start: 4px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--csi-a2); }
.csi-dashes li::before { content: '-'; position: absolute; inset-inline-start: 0; color: var(--csi-a2); font-weight: 700; }
.csi-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.csi-chips li { padding: 7px 14px; border-radius: 99px; background: #eef5f3; font: 500 .9375rem/1.2 var(--font-text); }
.csi-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.csi-flow li { padding: 10px 16px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line), 0 8px 20px -14px rgba(14, 91, 87, .35); font: 600 1rem/1.2 var(--font-text); text-transform: capitalize; }
.csi-flow > i { font-style: normal; color: var(--csi-a2); font-weight: 700; }
.csi-fig { margin: 10px 0; padding: clamp(12px, 2vw, 24px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line); }
.csi-fig img { display: block; width: 100%; height: auto; border-radius: 12px; }
.csi-fig--tall img { width: min(100%, 520px); margin-inline: auto; }
/* the process: three steps, side by side */
.csi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.csi-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line), 0 20px 40px -32px rgba(14, 91, 87, .4); }
.csi-card-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 14px; background: #e6f4f1; color: var(--csi-a); }
.csi-card-ico svg { width: 22px; height: 22px; }
.csi-card-k { margin: 0; font: 700 .75rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--csi-a2); }
.csi-card h4 { margin: 0; font: 700 1.1875rem/1.25 var(--font-display); letter-spacing: -.015em; text-transform: capitalize; }
.csi-card ul { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.csi-card li { font: 400 .9375rem/1.45 var(--font-text); color: var(--csi-soft); }
/* the persona */
.csi-persona { display: flex; flex-direction: column; gap: 20px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line), 0 30px 60px -44px rgba(14, 91, 87, .45); }
.csi-persona-top { display: flex; align-items: center; gap: 18px; }
.csi-persona-photo { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px #e6f4f1; }
.csi-persona h4 { margin: 0; font: 700 1.5rem/1.15 var(--font-display); letter-spacing: -.02em; }
.csi-persona-place { margin: 6px 0 0; font: 600 .8125rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: #6b7774; }
.csi-persona-bio { margin: 0; font: 400 1.125rem/1.7 var(--font-text); color: #2b3130; }
.csi-quote { margin: 0; padding: 4px 0 4px 22px; border-inline-start: 4px solid var(--csi-a2); }
.csi-quote p { margin: 0; font: 500 clamp(1.25rem, 2vw, 1.5rem)/1.4 var(--font-display); letter-spacing: -.01em; color: var(--csi-a); }
.csi-persona-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.csi-note { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 18px; background: #f3f8f6; }
.csi-note h5 { margin: 0; font: 700 1rem/1.3 var(--font-display); }
.csi-note p { font-size: 1rem; line-height: 1.6; }
/* the UI: each feature, its screens and what it does */
.csi-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(18px, 2.4vw, 28px); border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line); }
.csi-feature-shots { display: flex; justify-content: center; gap: 12px; }
.csi-feature-shots:empty { display: none; }
.csi-feature-shots:empty + .csi-feature-copy { grid-column: 1 / -1; }
.csi-feature-shots img { width: auto; max-width: 100%; max-height: 420px; height: auto; border-radius: 16px; }
.csi-feature-copy { display: flex; flex-direction: column; gap: 10px; }
.csi-feature-copy h4 { margin: 0; font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -.02em; }
.csi-feature-copy p { font-size: 1.0625rem; }
.csi-pin { width: 12px; height: 12px; border-radius: 50%; background: var(--csi-a2); box-shadow: 0 0 0 5px #e6f4f1; }
.csi-ast { width: 22px; height: 22px; fill: none; stroke: var(--csi-a2); stroke-width: 2.4; stroke-linecap: round; }
.csi-proto { display: inline-flex; flex-direction: column; align-items: center; gap: 16px; color: var(--csi-ink); }
.csi-proto img { width: min(300px, 70vw); height: auto; }
.csi-proto span { padding: 12px 22px; border-radius: 99px; background: var(--csi-ink); color: #fff; font: 600 .9375rem/1 var(--font-text); }
/* the end */
.csi-end { margin-top: clamp(96px, 14vh, 140px); padding-top: 48px; border-top: 1px solid var(--csi-line); display: flex; flex-direction: column; gap: 14px; }
.csi-end-h { margin: 0; font: 700 clamp(2.5rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -.04em; }
.csi-end-h i { font-style: normal; color: var(--csi-a2); }
.csi-end-by { margin: 0; font: 500 1rem/1.4 var(--font-text); color: var(--csi-soft); }
.csi-end-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.csi-btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 99px; background: var(--csi-a); color: #fff; font: 600 .9375rem/1 var(--font-text); transition: transform .3s var(--ease-bounce), background .3s; }
.csi-btn--ghost { background: transparent; color: var(--csi-ink); box-shadow: inset 0 0 0 1.5px var(--csi-line); }
.csi-btn:hover { transform: translateY(-2px); }
.cs-inline :is(button, a):focus-visible { outline: 3px solid var(--csi-a2); outline-offset: 3px; border-radius: 10px; }
/* rising in, once */
@media (prefers-reduced-motion: no-preference) {
  .js .cs-inline :is(.csi-head, .csi-sec, .csi-fig, .csi-feature, .csi-card, .csi-end) { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease-apple), translate 1s var(--ease-spring); }
  .js .cs-inline :is(.csi-head, .csi-sec, .csi-fig, .csi-feature, .csi-card, .csi-end).is-in { opacity: 1; translate: 0 0; }
}
@media (max-width: 1000px) {
  .csi-grid { grid-template-columns: minmax(0, 720px); }
  .csi-toc { display: none; }
}
@media (max-width: 700px) {
  .csi-grid { padding: 64px 20px calc(120px + env(safe-area-inset-bottom)); }
  .csi-cards, .csi-persona-cols { grid-template-columns: 1fr; }
  .csi-feature { grid-template-columns: 1fr; }
  .csi-feature-shots img { max-height: 360px; }
  .csi-body p, .csi-dots li, .csi-dashes li, .csi-persona-bio { font-size: 1.0625rem; }
}
.csi-feature-shots { min-width: 0; }
.csi-feature-shots img { flex: 0 1 auto; min-width: 0; object-fit: contain; }
.csi-feature-shots img:not(:only-child) { max-width: calc(50% - 6px); }
.csi-card h4 { text-transform: none; }
/* the win, round 2: no medal - a warm gold light from above while the confetti flies */
.win-glow { inset-block-start: 0; width: min(140vw, 1600px); aspect-ratio: 2 / 1; translate: -50% -55%; background: radial-gradient(closest-side, rgba(255, 207, 64, .38), rgba(255, 180, 0, .12) 55%, transparent); animation: win-glow 1.4s var(--ease-apple) both; }
.win.is-out .win-glow { transition: opacity 1.8s var(--ease-apple); opacity: 0; }
.win.is-out .win-fx { transition: opacity 1.9s var(--ease-apple); }

/* ══ MACCABIAH · the app card, recomposed: the headline, then the phone as big as the card allows,
   standing on the card's bottom edge, the Games' shapes behind it; its opening plays once ══ */
#maccabiah .tile--mac-still { justify-content: flex-start; align-items: stretch; padding: 0; overflow: hidden; }
.mac-stage { position: relative; flex: 1; min-height: 0; container-type: size; }
#maccabiah .tile--mac-still .mac-stage .phone { position: absolute; z-index: 2; left: 50%; bottom: -7%; margin: 0; translate: -50% 0; width: min(84cqw, 51cqh); max-width: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 70px -24px rgba(0, 0, 0, .6); }
#maccabiah .tile--mac-still .mac-stage .screen > .shot { width: 100%; height: auto; }
.mac-shape { position: absolute; z-index: 1; height: auto; pointer-events: none; }
.mac-shape--quarter { width: min(62cqw, 40cqh); left: -10%; top: 2%; }
.mac-shape--arc { width: min(56cqw, 36cqh); right: -16%; top: 24%; }
.mac-shape--comet { width: min(40cqw, 26cqh); left: -6%; bottom: 10%; z-index: 3; rotate: -8deg; }
/* the opening, once each time you arrive: Dana's header slides in from the side, then the Games band drops in */
@media (prefers-reduced-motion: no-preference) {
  #maccabiah.is-active .tile--mac-still .mac-head { animation: mac-head-in .62s cubic-bezier(.22, .9, .3, 1) .45s both; }
  #maccabiah.is-active .tile--mac-still .mac-band { animation: mac-band-in .55s cubic-bezier(.22, .9, .3, 1) 1.05s both; }
  #maccabiah.is-active .tile--mac-still .shot { animation: none; }
  #maccabiah.is-active .mac-shape { animation: mac-shape-in 1s cubic-bezier(.22, .9, .3, 1) .2s both; }
  #maccabiah.is-active .mac-shape--arc { animation-delay: .35s; }
  #maccabiah.is-active .mac-shape--comet { animation-delay: .9s; }
}
@keyframes mac-shape-in { from { opacity: 0; scale: .7; } }
@media (max-width: 700px) {
  #maccabiah .tile--mac-still .mac-stage .phone { width: min(80cqw, 52cqh); bottom: -10%; }
}
/* narrow, tall cards: the phone takes the full width, the shapes grow into the space above it */
#maccabiah .tile--mac-still .mac-stage .phone { width: min(92cqw, 51cqh); }
.mac-shape--quarter { width: min(96cqw, 44cqh); left: -14%; top: 0; }
.mac-shape--arc { width: min(84cqw, 40cqh); right: -24%; top: 16%; }
.mac-shape--comet { width: min(60cqw, 28cqh); left: -10%; bottom: 12%; }
@container (min-aspect-ratio: 1 / 1.6) { .mac-shape--quarter { top: 4%; } }
@media (prefers-reduced-motion: no-preference) {
  .js #maccabiah .tile--mac-still:not(.is-opened) .mac-head { translate: -100% 0; }
  .js #maccabiah .tile--mac-still:not(.is-opened) .mac-band { translate: 0 -100%; clip-path: inset(100% 0 0 0); }
  #maccabiah.is-active .tile--mac-still .mac-head, #maccabiah.is-active .tile--mac-still .mac-band { animation: none; }
  #maccabiah .tile--mac-still.is-opened .mac-head { animation: mac-head-in .62s cubic-bezier(.22, .9, .3, 1) .45s both; }
  #maccabiah .tile--mac-still.is-opened .mac-band { animation: mac-band-in .55s cubic-bezier(.22, .9, .3, 1) 1.05s both; }
}
/* the hotel's small cards on the smallest phones */
@container (max-width: 190px) {
  .hc-k, .hc-sparks { display: none; }
  .hc-status { padding: 10px; }
  .hc-status b { font-size: 1rem; }
  .hc-status > span:last-child { font-size: .75rem; }
  .hc-ic span { font-size: .625rem; }
}
@container (max-width: 130px) {
  .hc-status b { font-size: .875rem; overflow-wrap: anywhere; }
  .hc-grid { gap: 6px 4px; }
}
@container (max-width: 110px) { .ht-open em { display: none; } }
@container (max-height: 120px) { .ht-open em { display: none; } .ht-open-k { font-size: .5625rem; } }
/* mid-size windows: the name folds into its avatar and the pills shorten, so nothing slides under the tabs */
@media (min-width: 701px) and (max-width: 1100px) {
  .brand { padding: 4px; }
  .brand > span:not(.brand-mark) { display: none; }
  .back-pill, .next-door { padding-inline: 12px; font-size: .75rem; }
}
@media (min-width: 701px) and (max-width: 860px) { .next-door:not([hidden]) { display: none; } }
/* mid-size windows, for real: the tabs tighten, "← Backlog" becomes its arrow, and the next door waits for room */
@media (min-width: 701px) and (max-width: 1100px) {
  .nav .tab { padding: 8px 11px; font-size: .8125rem; }
  html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .nav-inner .back-pill { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .nav-inner .back-pill::before { content: '←'; font: 600 .9375rem/1 var(--font-text); }
  html:is([data-page="lab"], [data-page="ai"]) .nav-inner .next-door:not([hidden]) { padding: 10px 12px; font-size: .75rem; }
}
@media (min-width: 701px) and (max-width: 940px) {
  html:is([data-page="lab"], [data-page="ai"]) .nav-inner .next-door:not([hidden]) { display: none; }
}
@media (min-width: 1101px) and (max-width: 1340px) {
  html:is([data-page="lab"]:not([data-scene="backlog"]), [data-page="ai"]:not([data-scene="ai-process"])) .nav-inner .back-pill { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
  .nav-inner .back-pill::before { content: '←'; font: 600 .9375rem/1 var(--font-text); }
}
@media (min-width: 1101px) and (max-width: 1200px) { .brand { padding: 4px; } .brand > span:not(.brand-mark) { display: none; } }
.nav-inner .back-pill { align-items: center; }

/* ══ DESIGN REVIEW · proportions stay put ═══════════════════════════════
   The grid takes its proportions from its width, not from a tall window:
   a near-square or tall screen gets the same composition, centred, with air
   around it - never stretched cards. */
.bento { --H: min(clamp(540px, calc(100dvh - 120px), 900px), calc(var(--W) * .7)); }
@media (min-width: 701px) and (max-width: 1099px) {
  .bento { --rh: min(clamp(76px, calc((100dvh - 112px - 5 * var(--gap)) / 6), 140px), calc((var(--W) * .82 - 5 * var(--gap)) / 6)); }
}
/* Tidhar: the phone is always a phone - sized from its card's width and height, its shape fixed;
   the player under it, as wide as the phone */
#tidhar .tile--tidhar-phone { justify-content: center; align-items: center; gap: 12px; padding: 0; }
#tidhar .tile--tidhar-phone .phone { flex: none; width: min(calc(100cqw - 8px), calc((100cqh - 70px) * .4615)); height: auto; aspect-ratio: 9 / 19.5; max-width: none; min-height: 0; }
#tidhar .tile--tidhar-phone .tp-player { width: min(100cqw, max(186px, calc((100cqh - 70px) * .4615))); flex: none; }
@media (max-width: 700px) {
  #tidhar .tile--tidhar-phone { gap: 8px; }
  #tidhar .tile--tidhar-phone .phone { width: min(calc(100cqw - 6px), calc((100cqh - 64px) * .4615)); }
  #tidhar .tile--tidhar-phone .tp-player { width: 100%; }
}

/* ══ POALIM · the hero is the campaign: a clean red card, the logo and the line on the left,
   the family on the right stepping up out of the card's top ══ */
.tile--hero-fam { background: none !important; box-shadow: none; overflow: visible; padding: calc(24cqh + 22px) clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px); }
.tile--hero-fam::after, .tile--hero-fam::before { content: none !important; }
.pf-card { position: absolute; z-index: 0; inset: 22% 0 0; overflow: hidden; border-radius: var(--radius-tile); background: linear-gradient(160deg, #ef2b3d 0%, #e7192e 52%, #c3101f 100%); box-shadow: 0 34px 70px -34px rgba(195, 16, 31, .65); }
.pf-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(90% 120% at 18% 0%, rgba(255, 255, 255, .16), transparent 55%); pointer-events: none; }
.pf-img { position: absolute; right: 2%; bottom: 0; width: 132cqh; max-width: none; height: auto; pointer-events: none; }
.pf-card .pf-img { right: 2%; }
.pf-img--out { z-index: 2; filter: drop-shadow(0 16px 22px rgba(120, 0, 16, .3)); }
.tile--hero-fam :is(.hero-top, .hero-main, .hero-foot) { position: relative; z-index: 3; max-width: 46%; }
.tile--hero-fam .hero-top { color: rgba(255, 255, 255, .85); }
.tile--hero-fam .hero-main { max-width: 46%; }
.tile--hero-fam .hero-name { font-size: min(clamp(2.75rem, 5vw, 5.5rem), 26cqh, calc(46cqw / var(--len, 8) * 1.45)); }
.tile--hero-fam .hero-foot { justify-content: flex-start; }
@media (prefers-reduced-motion: no-preference) {
  .js #hapoalim .pf-img { opacity: 0; translate: 0 14%; transition: opacity .9s var(--ease-apple) .3s, translate 1.3s cubic-bezier(.22, .9, .3, 1) .3s; }
  .js #hapoalim:is(.is-active, .was-seen) .pf-img { opacity: 1; translate: 0 0; }
}
@media (max-width: 700px) {
  .tile--hero-fam { padding: calc(30cqh + 12px) 14px 14px; }
  .pf-card { inset: 26% 0 0; }
  .pf-img { width: 104cqh; right: -4%; }
  .tile--hero-fam :is(.hero-top, .hero-main, .hero-foot) { max-width: 54%; }
  .tile--hero-fam .hero-top { position: relative; inset: auto; }
}
.tile--hero-fam { padding: 20px clamp(22px, 2.4vw, 34px) clamp(20px, 2.2vw, 30px); justify-content: space-between; }
.tile--hero-fam .hero-top { margin-top: calc(22cqh + 2px); }
.pf-img { width: 146cqh; }
@media (max-width: 700px) {
  .tile--hero-fam { padding: 12px 14px 14px; }
  .tile--hero-fam .hero-top { margin-top: calc(27cqh + 2px); }
  .pf-img { width: 118cqh; right: -6%; }
}
@media (max-width: 700px) {
  /* the hero: the logo and the line stacked on the left, the family on the right */
  .tile--hero-fam .hero-top { display: none; }
  .tile--hero-fam .hero-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; max-width: 48%; margin-top: auto; }
  .tile--hero-fam .hero-line { max-width: none; text-align: start; font-size: .75rem; line-height: 1.3; }
  .tile--hero-fam .hero-line .l-full { display: none; }
  .tile--hero-fam .hero-line .l-short { display: inline; }
  .tile--hero-fam .hero-foot { display: none; }
  .tile--hero-fam .hero-name--logo { --lh: 26px; }
  .pf-card { inset: 22% 0 0; }
  .pf-img { width: 112cqh; right: -8%; }
  /* the app: the phone as big as its card allows, centred */
  #hapoalim .tile--hapoalim-app { justify-content: center; align-items: center; padding: 10px; }
  #hapoalim .tile--hapoalim-app .moment { display: none; }
  #hapoalim .tile--hapoalim-app .phone { position: relative; inset: auto; translate: none; margin: 0; overflow: hidden; width: min(calc(100cqw - 12px), calc((100cqh - 20px) * .4615)); height: auto; aspect-ratio: 9 / 19.5; }
}
@media (max-width: 700px) {
  #hapoalim .tile--hapoalim-app .phone { inset: auto !important; width: min(calc(100cqw - 12px), calc((100cqh - 20px) * .4615)) !important; }
}
@media (max-width: 700px) {
  .tile--hero-fam { justify-content: flex-start; }
  .tile--hero-fam .hero-main { margin-top: calc(24cqh + 6px); max-width: 44%; }
  .tile--hero-fam .hero-line { font-size: .6875rem; }
  .pf-img { width: 104cqh; right: -4%; }
}
@media (max-width: 700px) {
  .tile--hero-fam .pf-img, .tile--hero-fam .pf-card .pf-img { width: 104cqh; right: -4%; }
  .tile--hero-fam .hero-line, .tile--hero-fam .hero-line span { max-width: 40cqw; white-space: normal; }
}

/* back to the top: in the empty left margin, under the progress dots - it never sits on a card */
.to-top { inset: auto auto 26px 22px; width: 44px; height: 44px; }
.to-top-ring circle { stroke-width: 2; opacity: .8; }
.to-top-ring .to-top-track { stroke-dasharray: none; stroke-dashoffset: 0; opacity: .14; }
@media (max-width: 1099px) { .to-top { display: none; } }
/* Maccabiah: the shapes peek out from behind the phone instead of floating in the space above it */
.mac-shape--quarter { width: min(70cqw, 30cqh); left: -12%; top: auto; bottom: 46%; }
.mac-shape--arc { width: min(60cqw, 26cqh); right: -18%; top: auto; bottom: 34%; }
.mac-shape--comet { width: min(44cqw, 20cqh); left: -8%; bottom: 8%; }
/* AI-process heroes on a phone: the tab already says "AI process", so the label steps aside for the logo */
@media (max-width: 700px) { :is(#mazda, #menora-site, #menora) .tile--hero .hero-top { display: none; } }
/* tablets: a little taller than wide screens, never stretched */
@media (min-width: 701px) and (max-width: 1099px) {
  .bento { --rh: min(clamp(76px, calc((100dvh - 112px - 5 * var(--gap)) / 6), 140px), calc((var(--W) * 1 - 5 * var(--gap)) / 6)); }
}
/* the family never takes more than the right half of the card */
.tile--hero-fam .pf-img, .tile--hero-fam .pf-card .pf-img { width: min(146cqh, 60cqw); }
@media (max-width: 700px) { .tile--hero-fam .pf-img, .tile--hero-fam .pf-card .pf-img { width: min(104cqh, 64cqw); } }
@container (max-width: 640px) {
  .tile--hero-fam .hero-foot { display: none; }
  .tile--hero-fam .hero-name--logo { --lh: clamp(28px, 11cqh, 44px); }
  .tile--hero-fam .hero-line { font-size: .75rem; }
}

/* ══ MACCABIAH · the headline gets its air; "Built to move" shows the app moving ══ */
#maccabiah .mac-say { margin: clamp(16px, 4.5cqh, 34px) 0 clamp(4px, 1.2cqh, 10px); }
.tile--mac-move { padding: clamp(16px, 1.8vw, 24px); justify-content: flex-end; background: radial-gradient(120% 140% at 0% 100%, #ff6f85 0%, #f0566e 45%, #e24560 100%); }
.mm-arc { position: absolute; z-index: 0; width: min(46cqh, 30cqw); left: -6%; top: -18%; rotate: 90deg; opacity: .9; pointer-events: none; }
.tile--mac-move .mac-label { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 6px; max-width: 44%; }
.tile--mac-move .mac-label h3 { font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1; }
.mm-replay { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding: 7px 12px 7px 10px; border-radius: 99px; background: rgba(255, 255, 255, .2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); color: #fff; font: 600 .75rem/1 var(--font-text); transition: background .3s, scale .4s var(--ease-bounce); }
.mm-replay:hover { background: rgba(255, 255, 255, .32); }
.mm-replay:active { scale: .94; }
.mm-replay svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile--mac-move.is-playing .mm-replay svg { animation: mm-spin .8s linear infinite; }
@keyframes mm-spin { to { rotate: 360deg; } }
.mm-screen { position: absolute; z-index: 1; right: 5%; top: 50%; height: 84%; aspect-ratio: 640 / 568; translate: 0 -50%; rotate: -4deg; border-radius: clamp(12px, 3cqh, 20px); overflow: hidden; background: #fff; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .5), 0 30px 50px -20px rgba(70, 10, 40, .55); transition: rotate .8s var(--ease-spring), scale .8s var(--ease-spring); }
.tile--mac-move:hover .mm-screen { rotate: -2deg; scale: 1.03; }
.mm-video { display: block; width: 100%; height: 100%; object-fit: cover; }
@container (max-width: 420px) {
  .tile--mac-move .mac-label p { display: none; }
  .tile--mac-move .mac-label { max-width: 46%; }
  .mm-screen { right: -10%; height: 92%; }
}
@container (max-width: 260px) {
  .tile--mac-move .mac-label { display: none; }
  .mm-screen { inset: 8px; height: auto; width: auto; translate: none; rotate: 0deg; }
  .mm-arc { display: none; }
}
@media (prefers-reduced-motion: reduce) { .mm-replay { display: none; } }
/* the phone never rises into the headline above it */
#maccabiah .tile--mac-still .mac-stage .phone { width: min(92cqw, 46cqh); }
@media (max-width: 700px) { #maccabiah .tile--mac-still .mac-stage .phone { width: min(80cqw, 47cqh); } }

/* ══ CASE STUDY TEMPLATE · round 2: every case brings its own tint; the new block types ══ */
.csi-cover { background: radial-gradient(120% 90% at 50% 10%, #ffffff 0%, color-mix(in srgb, var(--csi-tint) 70%, #fff) 55%, var(--csi-tint) 100%); }
.csi-card-ico, .csi-chips li { background: var(--csi-tint); }
.csi-persona-photo { box-shadow: 0 0 0 4px var(--csi-tint); }
.csi-pin { box-shadow: 0 0 0 5px var(--csi-tint); }
.csi-note { background: color-mix(in srgb, var(--csi-tint) 45%, #fff); }
.csi-card-ico { color: var(--csi-a2); }
.csi-tag { align-self: flex-start; display: inline-flex; margin: 16px 0 0; padding: 6px 12px; border-radius: 99px; background: var(--csi-tint); font: 600 .8125rem/1 var(--font-text); }
.csi-cards { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.csi-soon { margin: auto 0 0; padding-top: 8px; font: 600 .8125rem/1 var(--font-text); color: var(--csi-a2); }
.csi-sec--cont { margin-top: clamp(40px, 6vh, 64px); }
.csi-flow li.has-loop { box-shadow: 0 0 0 1px var(--csi-line), 0 0 0 4px var(--csi-tint); }
/* the survey rings and the findings, side by side */
.csi-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.csi-rings { display: flex; flex-direction: column; gap: 14px; }
.csi-ring { display: grid; grid-template-columns: 72px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 16px; margin: 0; padding: 16px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line); }
.csi-ring svg { grid-row: 1 / 3; width: 72px; height: 72px; rotate: -90deg; }
.csi-ring circle { fill: none; stroke: var(--csi-accent-fill, var(--csi-a2)); stroke-width: 8; stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.csi-ring b { font: 800 1.75rem/1 var(--font-display); letter-spacing: -.02em; }
.csi-ring figcaption { font: 400 .9375rem/1.45 var(--font-text); color: var(--csi-soft); }
.csi-quotes { display: flex; flex-direction: column; gap: 12px; }
.csi-quotes .csi-sub { margin: 0 0 4px; }
.csi-quotes blockquote { margin: 0; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--csi-tint) 45%, #fff); font: 500 1.0625rem/1.5 var(--font-text); }
.csi-quotes blockquote::before { content: '“'; display: block; margin-bottom: -8px; font: 800 2rem/1 var(--font-display); color: var(--csi-a2); }
.csi-feature-copy--big p { font: 600 1.375rem/1.35 var(--font-display); }
#hotel-case { --csi-accent-fill: #ffcc00; }
#hotel-case .csi-dots li::before, #hotel-case .csi-pin { background: #ffcc00; }
@media (max-width: 700px) { .csi-split { grid-template-columns: 1fr; } }

/* ══ HOTEL · the isometric island ═══════════════════════════════════ */
.hd-svg.iso { overflow: visible; }
.iso polygon, .iso .iso-trunk, .iso circle { stroke: #1d1d1f; stroke-width: 1.1; stroke-linejoin: round; }
.iso-ground { fill: #f6efdc; }
.iso-slab-r { fill: #e3d3a6; }
.iso-slab-l { fill: #efe2bd; }
.iso-walk { fill: none; stroke: #ece0c0; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.iso-rim { fill: #ffffff; }
.iso-pool-wall { fill: #bfe0fb; }
.iso-pool-wall--l { fill: #a9d4f7; }
.iso-water { fill: url(#iso-water); fill: #8cc8f5; }
.iso-wave { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 6; animation: iso-wave 3s linear infinite; }
@keyframes iso-wave { to { stroke-dashoffset: -32; } }
.iso-box .iso-t { fill: #ffffff; }
.iso-box .iso-l { fill: #f4f1ea; }
.iso-box .iso-r { fill: #e4ded2; }
.iso-rooms .iso-t { fill: #fffdf6; }
.iso-roof .iso-t { fill: #ffd84d; }
.iso-roof .iso-l { fill: #f5c419; }
.iso-roof .iso-r { fill: #e3ae00; }
.iso-bed .iso-t { fill: #fff; }
.iso-bed.iso-me .iso-t { fill: #ffcc00; }
.iso-bed.iso-me .iso-l { fill: #f0b400; }
.iso-bed.iso-me .iso-r { fill: #d9a200; }
.iso-win { fill: #cfe5f7; stroke-width: .9 !important; }
.iso-door { fill: #ffffff; }
.iso-door.iso-me { fill: #ffcc00; }
.iso-awn { fill: #ffcc00; stroke-width: .8 !important; }
.iso-awn--w { fill: #fff; }
.iso-txt { font: 700 13px var(--font-text); fill: #1d1d1f; letter-spacing: .06em; }
.iso-sign { font-size: 15px; letter-spacing: .14em; }
.iso-num { font-size: 10px; fill: #6e6e73; letter-spacing: 0; }
.iso-num--me { fill: #1d1d1f; font-weight: 800; }
.iso-tree .iso-shadow { fill: rgba(120, 90, 20, .16); stroke: none; }
.iso-tree .iso-trunk { stroke: #1d1d1f; stroke-width: 1.6; fill: none; }
.iso-crown { fill: #ffd84d; }
.iso .hd-route { fill: none; stroke: #1d1d1f; stroke-width: 1.8; stroke-dasharray: 2 6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.iso .hd-route.is-on { opacity: 1; animation: hd-ants 1.2s linear infinite; }
.iso .hd-scooter image { filter: drop-shadow(0 3px 3px rgba(80, 60, 0, .25)); }
.iso .hd-pin text { font-size: 11.5px; }
@media (prefers-reduced-motion: reduce) { .iso-wave { animation: none; } }

/* ══ HOTEL · Open Room is a display; housekeeping opens the order sheet ══ */
.ht-open { cursor: default; }
.ht-open:hover, .ht-open:active { scale: 1; }
.ht-open em { color: #8a6400; }
.ht-open-arc { stroke-dashoffset: 30; }
@media (prefers-reduced-motion: no-preference) {
  .js #hotel .ht-open-arc { stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1) .5s; }
  .js #hotel:is(.is-active, .was-seen) .ht-open-arc { stroke-dashoffset: 30; }
}
.tile--ht-clean { position: relative; }
.hc-sheet { position: absolute; z-index: 5; inset: auto 0 0; height: min(86%, 440px); display: flex; flex-direction: column; padding: 18px 16px 16px; border-radius: 24px 24px var(--radius-tile) var(--radius-tile); background: #fff; box-shadow: 0 -16px 40px -18px rgba(60, 40, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  translate: 0 104%; transition: translate .6s cubic-bezier(.32, .72, 0, 1); }
.tile--ht-clean.is-sheet .hc-sheet { translate: 0 0; }
.hc-x { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: #f2f2f4; font: 600 .8125rem/1 var(--font-text); color: #1d1d1f; }
.hc-form, .hc-done { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; text-align: center; }
.hc-sheet-ic { width: 56px; height: 56px; padding: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.5px #1d1d1f; }
.hc-sheet-t { font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.01em; }
.hc-sheet-s { font: 400 .75rem/1.35 var(--font-text); color: #6e6e73; }
.hc-opts { flex: 1; width: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 4px 0; padding: 0; list-style: none; }
.hc-opts li { display: grid; grid-template-columns: 1fr 28px 22px 28px; align-items: center; gap: 4px; padding: 7px 4px 7px 10px; border-radius: 12px; background: #faf8f3; font: 500 .8125rem/1.2 var(--font-text); text-align: start; }
.hc-step { width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); font: 600 1rem/1 var(--font-text); color: #1d1d1f; transition: scale .3s var(--ease-bounce); }
.hc-step:active { scale: .9; }
.hc-n { font: 700 .875rem/1 var(--font-text); text-align: center; font-variant-numeric: tabular-nums; }
.hc-accept { width: 100%; min-height: 42px; border-radius: 12px; background: #1d1d1f; color: #fff; font: 600 .875rem/1 var(--font-text); transition: opacity .3s; }
.hc-accept:disabled { opacity: .35; }
.hc-done { position: absolute; inset: 18px 16px 16px; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .4s; }
.tile--ht-clean.is-sent .hc-form { opacity: 0; pointer-events: none; transition: opacity .25s; }
.tile--ht-clean.is-sent .hc-done { opacity: 1; }
.hc-check { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #ffcc00; }
.hc-check svg { width: 30px; height: 30px; fill: none; stroke: #1d1d1f; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.tile--ht-clean.is-sent .hc-check svg { transition: stroke-dashoffset .5s ease .15s; stroke-dashoffset: 0; }
.tile--ht-clean.is-sent .hc-check { animation: hc-pop .5s var(--ease-bounce) both; }
@keyframes hc-pop { from { scale: .4; } }
.hc-done b { font: 700 1.25rem/1.2 var(--font-display); }
.hc-done-s { font: 500 .8125rem/1.35 var(--font-text); color: #6e6e73; }
.hc-bar { width: 70%; height: 6px; margin-top: 8px; border-radius: 99px; background: #f2eedf; overflow: hidden; }
.hc-bar b { display: block; width: 100%; height: 100%; background: #ffcc00; transform-origin: left; transform: scaleX(.08); }
.tile--ht-clean.is-sent .hc-bar b { transition: transform 3.2s cubic-bezier(.3, .7, .3, 1) .3s; transform: scaleX(.3); }
@container (max-height: 360px) {
  .hc-sheet { height: 100%; border-radius: var(--radius-tile); padding: 12px; }
  .hc-sheet-s { display: none; }
  .hc-sheet-ic { width: 40px; height: 40px; padding: 5px; }
  .hc-opts li { padding: 4px 2px 4px 8px; font-size: .75rem; }
  .hc-opts li:nth-child(n + 3) { display: none; }
  .hc-step { width: 24px; height: 24px; }
  .hc-opts li { grid-template-columns: 1fr 24px 18px 24px; }
  .hc-accept { min-height: 34px; }
  .hc-check { width: 46px; height: 46px; }
}
.csi-cards:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .csi-cards:has(> li:nth-child(4)) { grid-template-columns: 1fr; } }
.hc-sheet { visibility: hidden; transition: translate .6s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .6s; }
.tile--ht-clean.is-sheet .hc-sheet { visibility: visible; transition: translate .6s cubic-bezier(.32, .72, 0, 1), visibility 0s; }
@container (max-height: 300px) {
  .hc-sheet { padding: 10px; }
  .hc-sheet-ic { display: none; }
  .hc-sheet-t { margin-top: 6px; font-size: .9375rem; }
  .hc-x { top: 6px; left: 6px; width: 26px; height: 26px; font-size: .6875rem; }
  .hc-form { gap: 6px; }
  .hc-opts { margin: 0; }
  .hc-opts li:nth-child(n + 2) { display: none; }
  .hc-opts li { padding: 4px 2px 4px 6px; font-size: .6875rem; grid-template-columns: 1fr 22px 16px 22px; gap: 2px; }
  .hc-step { width: 22px; height: 22px; font-size: .875rem; }
  .hc-accept { min-height: 30px; font-size: .75rem; }
  .hc-done b { font-size: 1rem; }
  .hc-done-s { font-size: .6875rem; }
  .hc-check { width: 38px; height: 38px; }
  .hc-check svg { width: 20px; height: 20px; }
}
.hc-sheet-t { padding-inline: 30px; }
@container (max-width: 170px) {
  .hc-opts li { grid-template-columns: 1fr 20px 12px 20px; padding-inline: 5px 2px; font-size: .625rem; }
  .hc-step { width: 20px; height: 20px; font-size: .75rem; }
  .hc-sheet-t { font-size: .8125rem; }
}

/* ══ CHECK-IN · in FlyAll's own design: white and lilac, navy type, the blue→pink gradient ══ */
#checkin, .fx-fa { --fa-g: linear-gradient(90deg, #1b5ece 0%, #824aea 50%, #f63de4 100%); --fa-ink: #040f21; --fa-line: #e6e9f4; }
#checkin .tile { box-shadow: 0 0 0 1px rgba(27, 94, 206, .06), 0 24px 50px -36px rgba(60, 40, 140, .35); }
/* the hero: the logo and the line on the left; the site's photo and its search card on the right */
.tile--hero-fa { --hero-bg: linear-gradient(160deg, #ffffff 0%, #f5f6fe 60%, #f1ecfc 100%); background: var(--hero-bg); color: var(--fa-ink); }
.tile--hero-fa :is(.hero-top, .hero-main, .hero-foot) { position: relative; z-index: 2; max-width: 46%; }
.tile--hero-fa .hero-k, .tile--hero-fa .hero-idx { color: #5b6478; opacity: 1; }
.tile--hero-fa .hero-line { color: #3c465c; opacity: 1; filter: none; }
.tile--hero-fa .hero-name--logo { --lh: clamp(34px, 13cqh, 64px); }
.tile--hero-fa .hero-name--logo img { filter: none; }
.fa-hero-photo { position: absolute; z-index: 1; inset: 12px 12px 12px auto; width: 50%; overflow: hidden; border-radius: calc(var(--radius-tile) - 8px); }
.fa-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.fa-search { position: absolute; z-index: 3; right: calc(12px + 25% - 4%); bottom: 26px; translate: 50% 0; width: min(46%, 300px); display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 24px 48px -20px rgba(40, 30, 110, .4); font-family: 'SimplerPro', var(--font-text); color: var(--fa-ink); }
.fa-tabs { display: flex; gap: 4px; margin: 0; }
.fa-tabs span { padding: 5px 10px; border-radius: 99px; background: #f1f3fb; font: 700 .6875rem/1 'SimplerPro', var(--font-text); color: #5b6478; }
.fa-tabs span.is-on { background: #fff; color: var(--fa-ink); box-shadow: 0 0 0 1px var(--fa-line), 0 4px 10px -4px rgba(40, 30, 110, .25); }
.fa-field { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--fa-line); font: 400 .75rem/1.2 'SimplerPro', var(--font-text); color: #5b6478; }
.fa-field svg { flex: none; width: 15px; height: 15px; fill: none; stroke: #1b5ece; stroke-width: 1.8; }
.fa-cta { margin: 0; padding: 11px; border-radius: 99px; background: var(--fa-g); color: #fff; font: 700 .8125rem/1 'SimplerPro', var(--font-text); text-align: center; }
#checkin .tile--hero-fa .hero-scope span { background: #fff; color: var(--fa-ink); box-shadow: 0 0 0 1px var(--fa-line); }
/* the departures, light */
#checkin .tile--board-fa { background: #fff; color: var(--fa-ink); }
#checkin .tile--board-fa .board-k { color: #824aea; }
#checkin .tile--board-fa .board-clock { color: #8a93a8; }
#checkin .tile--board-fa .board-row { color: var(--fa-ink); }
#checkin .tile--board-fa .flap { background: #f3f4fb; box-shadow: inset 0 0 0 1px var(--fa-line); color: var(--fa-ink); }
#checkin .tile--board-fa .board-row em { color: #1b5ece; }
#checkin .tile--board-fa .board-row > span { color: var(--fa-ink); }
/* the deal card */
.tile--fa-deal { padding: 0; background: linear-gradient(180deg, #ffffff 0%, #f5f3fd 100%); }
.fa-deal { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; padding: clamp(14px, 1.6vw, 20px); font-family: 'SimplerPro', var(--font-text); color: var(--fa-ink); container-type: size; }
.fa-deal-k { margin: 0; font: 700 clamp(1rem, 7cqw, 1.25rem)/1.2 'SimplerPro', var(--font-text); }
.fa-deal-card { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--fa-line), 0 18px 34px -22px rgba(40, 30, 110, .35); }
.fa-deal-img { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.fa-deal-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-spring); }
.tile--fa-deal:hover .fa-deal-img img { scale: 1.05; }
.fa-badge { position: absolute; z-index: 2; left: 50%; top: calc(100% - var(--cap, 96px)); width: 48px; height: 48px; translate: -50% -50%; display: grid; place-items: center; border-radius: 50%; background: #1b5ece; box-shadow: 0 0 0 4px #fff; }
.fa-badge svg { width: 22px; height: 22px; fill: #fff; rotate: -45deg; }
.fa-deal-card figcaption { --cap: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 12px 14px; text-align: center; }
.fa-deal-card b { font: 700 clamp(1.125rem, 9cqw, 1.5rem)/1.1 'SimplerPro', var(--font-text); }
.fa-deal-card span { font: 400 .75rem/1.35 'SimplerPro', var(--font-text); color: #5b6478; }
.fa-deal-card em { margin-top: 2px; font: 700 .8125rem/1 'SimplerPro', var(--font-text); font-style: normal; color: #1b5ece; }
@container (max-height: 300px) { .fa-deal-k { display: none; } .fa-deal-card span { display: none; } }
/* the boarding pass, the site's way */
#checkin .tile--pass { box-shadow: 0 0 0 1px rgba(27, 94, 206, .08), 0 24px 50px -36px rgba(60, 40, 140, .35); }
@media (max-width: 700px) {
  .tile--hero-fa :is(.hero-top, .hero-main, .hero-foot) { max-width: 52%; }
  .fa-hero-photo { inset: 8px 8px 8px auto; width: 44%; }
  .fa-search { display: none; }
}
.fa-deal-k { padding-inline-start: clamp(64px, 30cqw, 96px); }
.fa-deal-img { flex: 1 1 auto; min-height: 64px; }
.fa-deal-img img { position: absolute; inset: 0; }
@container (max-height: 300px) { .fa-deal-card .fa-deal-img { display: block; } .fa-deal-card figcaption span { display: none; } }
.csi-persona-ini { display: grid; place-items: center; background: var(--csi-tint); color: var(--csi-a2); font: 800 1.75rem/1 var(--font-display); letter-spacing: -.02em; }
#balcony-case { --csi-accent-fill: #ff5a5f; }
#balcony-case .csi-dots li::before, #balcony-case .csi-pin { background: #ff5a5f; }
.csi-feature--wide .csi-feature-shots img { max-height: 360px; }
.tile--hero-balcony .hero-scope { display: none !important; }

/* ══ MOBILE · elements sized to their small cards ═══════════════════════ */
@media (max-width: 700px) {
  #tidhar .tile--tidhar-icons .icons-card { container-type: size; padding: 8px; }
  #tidhar .tile--tidhar-icons .ic-stage img { width: min(54cqw, 62cqh); }
  #hotel .tile--ht-open { container-type: size; }
  #hotel .ht-open { width: min(68cqw, 74cqh); }
  #hotel .ht-open svg { inset: -5%; width: 110%; height: 110%; }
}
@container (max-height: 260px) {
  .tile--ht-deliver { gap: 6px; }
  .tile--ht-deliver .hd-toast { display: none; }
  .tile--ht-deliver .hd-k { font-size: .8125rem; }
  .tile--ht-deliver .hd-choose button { flex-direction: row; gap: 6px; font-size: .75rem; }
  .tile--ht-deliver .hd-choose i { width: 28px; }
}

/* ══ BACKLOG · the covers are the products' own brands, as atmosphere - no phones, nothing moves ══ */
.door-brand { position: absolute; z-index: 1; pointer-events: none; left: 50%; inset-block-start: calc(var(--art-top) - 2vh); translate: -50% 0; width: min(calc(var(--art-h) + 4vh), 86%); aspect-ratio: 1; transition: translate 1.2s var(--ease-spring); }
.door-brand svg { position: relative; display: block; width: 100%; height: 100%; overflow: visible; }
.half:hover .door-brand { translate: -50% -8px; }
/* roomie: cream paper, a patch of its isometric town that fades into the paper, a warm light under the name */
.half--hotel { background: radial-gradient(120% 55% at 50% 100%, #ffe27a 0%, rgba(255, 226, 122, 0) 74%), #f8f5ef; color: #202020; }
.half--hotel .half-go { background: #202020; color: #ffcc00; }

/* 40weeks: the week ring from its logo */
.wk-ticks line { stroke: rgba(14, 91, 87, .2); stroke-width: 2.4; stroke-linecap: round; }
.wk-ticks .is-past { stroke: #0e8f86; }
.wk-track { fill: none; stroke: rgba(14, 91, 87, .09); stroke-width: 30; }
.wk-arc { fill: none; stroke-width: 30; stroke-linecap: round; stroke-dasharray: 18 22; }
/* Balcony: its radar, the b at the centre */
.bl-ring { fill: none; stroke: rgba(61, 12, 14, .18); stroke-width: 1.2; }
.bl-ring--d { stroke-dasharray: 3 6; }
.bl-halo { fill: rgba(255, 90, 95, .16); }
.bl-dot { fill: #ff5a5f; stroke: #fff; stroke-width: 3; }
.bl-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, rgba(255, 90, 95, .34), rgba(255, 90, 95, 0) 15%, transparent); }
.bl-mark { position: absolute; left: 50%; top: 50%; width: 19%; translate: -50% -50%; filter: drop-shadow(0 10px 18px rgba(255, 45, 58, .25)); }
/* phones: the mark sits at the right edge, clear of the name */
@media (max-width: 700px) {
  .door-brand { inset-inline: auto -7%; inset-block-start: 13%; translate: none; width: auto; height: 74%; }
  .half:hover .door-brand { translate: 0 -4px; }
}

/* ══ ROOMIE · the hotel app's identity ═══════════════════════════════ */
.logo--roomie { --lh: clamp(40px, 19cqh, 86px); }
.tile--hero-hotel .hero-name--logo img { filter: none; }
.half-name--logo { display: block; line-height: 0; }
.half-name--logo img { display: block; height: clamp(46px, 6.4vw, 92px); width: auto; }
@media (max-width: 700px) { .half-name--logo img { height: 34px; } }
@media (max-width: 700px) and (max-height: 700px) { .scene--split .half-name--logo img { height: 28px; } }
.csi-logo { display: block; height: clamp(32px, 4vw, 46px); width: auto; margin: 0 0 14px; }
/* the island, in roomie's palette */
.iso-ground { fill: #f8f5ef; }
.iso-slab-r { fill: #ddd0aa; }
.iso-slab-l { fill: #ede3c8; }
.iso-walk { stroke: #ede3c8; }
.iso-water { fill: #8fd1f4; }
.iso-pool-wall { fill: #c5e6f9; }
.iso-pool-wall--l { fill: #addcf6; }
.iso-crown { fill: #ffd633; }
.iso polygon, .iso .iso-trunk, .iso circle { stroke: #202020; }
.iso-roof .iso-t { fill: #ffcc00; }
.iso-roof .iso-l { fill: #f0bd00; }
.iso-roof .iso-r { fill: #dcab00; }
.logo--balcony { --lh: clamp(38px, 16cqh, 76px); }
.tile--hero-balcony .hero-name--logo img { filter: none; }
.half--balcony .half-name--logo img { height: clamp(40px, 5.2vw, 76px); }
@media (max-width: 700px) { .half--balcony .half-name--logo img { height: 30px; } }
/* 40weeks × Clalit */
.logo--40w { --lh: clamp(30px, 11cqh, 56px); }
.tile--hero-clalit .hero-name--logo img { filter: none; }
.half--clalit .half-name--logo img { height: clamp(34px, 4.2vw, 62px); }
@media (max-width: 700px) { .half--clalit .half-name--logo img { height: 26px; } }
#clalit-case .csi-logo { height: clamp(28px, 3.4vw, 40px); }
.tile--hero-clalit .logo--40w { --lh: clamp(40px, 17cqh, 86px); }
.tile--hero-clalit .hero-name--logo img { width: auto; max-width: 100%; }
.half--clalit .half-name--logo img { height: auto; width: min(100%, 520px); max-height: 78px; }
@media (max-width: 700px) { .half--clalit .half-name--logo img { width: min(64%, 260px); height: auto; } }
.tile--hero-clalit .logo--40w { --lh: clamp(40px, 9cqw, 80px); }
@media (max-width: 700px) { .tile--hero-clalit .logo--40w { --lh: clamp(30px, 9cqw, 44px); } }

/* ══ ROOMIE · the brand language: cream paper, hairlines, spaced labels, numbered chapters ══ */
#hotel { --rm-ink: #202020; --rm-soft: #6d665a; --rm-line: rgba(32, 32, 32, .09); --rm-paper: #fbf9f4; }
#hotel .tile { background: var(--rm-paper); box-shadow: 0 0 0 1px var(--rm-line), 0 18px 40px -34px rgba(60, 45, 10, .35); }
.rm-k { margin: 0; font: 600 .75rem/1 var(--font-text); letter-spacing: .2em; color: #8a8478; }
.rm-t { margin: 6px 0 0; font: 800 clamp(1.25rem, 1.9vw, 1.75rem)/1.05 var(--font-display); letter-spacing: -.025em; color: var(--rm-ink); }
.rm-l { margin: 4px 0 0; font: 400 clamp(.8125rem, 1vw, .9375rem)/1.35 var(--font-text); color: var(--rm-soft); }
.rm-head { flex: none; }
/* the hero */
.tile--hero-roomie { --hero-bg: #f8f5ef; background: var(--hero-bg) !important; color: var(--rm-ink); }
.tile--hero-roomie .hero-top { color: #8a8478; font: 600 .6875rem/1 var(--font-text); letter-spacing: .2em; text-transform: uppercase; }
.tile--hero-roomie .hero-idx { color: #8a8478 !important; letter-spacing: .2em; }
.tile--hero-roomie .logo--roomie { --lh: clamp(44px, 21cqh, 104px); }
.tile--hero-roomie .hero-main { max-width: 56%; position: relative; z-index: 2; }
.tile--hero-roomie .hero-line { margin-top: 10px; font: 400 clamp(1rem, 1.55vw, 1.5rem)/1.2 var(--font-text); letter-spacing: .06em; color: var(--rm-ink); opacity: 1; }
.tile--hero-roomie .hero-foot .hero-scope, .tile--hero-roomie .hero-foot .swatches { display: none; }
.rm-manifesto { position: absolute; z-index: 2; inset: auto auto clamp(18px, 2.2vw, 30px) clamp(18px, 2.2vw, 30px); margin: 0; font: 500 .6875rem/1.75 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: #8a8478; }
.rm-pattern { position: absolute; z-index: 1; inset: 0 0 0 42%; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 28%); mask: linear-gradient(90deg, transparent, #000 28%); }
.rp { width: 100%; height: 100%; }
.rp-walk { fill: none; stroke: rgba(32, 32, 32, .42); stroke-width: 1; stroke-dasharray: 2 5; }
.rp polygon { stroke: #202020; stroke-width: .9; stroke-linejoin: round; }
.rp-box .rp-t { fill: #fff; } .rp-box .rp-l { fill: #f4f1ea; } .rp-box .rp-r { fill: #e4ded2; }
.rp-door { fill: #ffcc00; }
.rp-pool { fill: #8fd1f4; }
.rp-stem { stroke: #202020; stroke-width: 1.4; fill: none; }
.rp-crown { fill: #ffd633; stroke: #202020; stroke-width: 1; }
.rp-pin path { stroke: #202020; stroke-width: 1.4; }
.rp-pin circle { fill: #ffcc00; stroke: #202020; stroke-width: 1.2; }
.rp-shadow { fill: rgba(120, 90, 20, .18); }
@media (prefers-reduced-motion: no-preference) {
  .rm-pattern .rp { animation: rp-drift 40s linear infinite alternate; }
}
@keyframes rp-drift { to { transform: translate(-3%, -2%) scale(1.04); } }
@container (max-height: 300px) { .rm-manifesto { display: none; } }
@media (max-width: 700px) {
  .tile--hero-roomie .hero-main { max-width: 60%; }
  .rm-pattern { inset: 0 0 0 46%; }
  .rm-manifesto { display: none; }
  .tile--hero-roomie .logo--roomie { --lh: clamp(30px, 26cqh, 52px); }
}
/* 01 Unlock: two keycards, the cream one over the yellow */
.tile--rm-key { padding: clamp(14px, 1.6vw, 22px); container-type: size; }
.rm-cards { position: absolute; inset: auto 8% 9% auto; width: min(54cqw, 40cqh * 1.1); aspect-ratio: 1; }
.rm-card { position: absolute; width: 62%; aspect-ratio: 54 / 86; border-radius: 9%; box-shadow: 0 0 0 1px rgba(32, 32, 32, .12), 0 18px 28px -16px rgba(60, 45, 10, .45); transition: rotate .9s var(--ease-spring), translate .9s var(--ease-spring); }
.rm-card--y { right: 0; bottom: 0; background: #ffcc00; rotate: 9deg; display: grid; place-items: end end; padding: 12%; }
.rm-card--y img { width: 48%; }
.rm-card--c { left: 4%; top: 0; background: #f8f5ef; rotate: -7deg; display: flex; flex-direction: column; padding: 16% 12%; }
.rm-card--c img { width: 92%; }
.rm-card--c b { margin-top: auto; font: 600 clamp(.4375rem, 4cqw, .625rem)/1 var(--font-text); letter-spacing: .24em; text-transform: uppercase; color: var(--rm-ink); }
.rm-card--c i { width: 26%; height: 1px; margin-top: 8%; background: var(--rm-ink); opacity: .5; }
.tile--rm-key:hover .rm-card--c { rotate: -12deg; translate: -6% -4%; }
.tile--rm-key:hover .rm-card--y { rotate: 14deg; translate: 4% 2%; }
@container (max-height: 220px) { .tile--rm-key .rm-l { display: none; } .rm-cards { width: min(48cqw, 56cqh); inset: auto 6% 6% auto; } }
@container (max-height: 150px) { .tile--rm-key .rm-k { display: none; } .tile--rm-key .rm-t { font-size: 1rem; margin: 0; } }
/* 02 Enjoy and 03 Delivered: the numbered headers over what was there */
#hotel .tile--ht-clean { gap: 10px; }
#hotel .tile--ht-clean .hc-status { background: #fff7d6; }
#hotel .tile--ht-deliver .rm-head { margin-bottom: 2px; }
@container (max-height: 300px) { #hotel .tile--ht-clean .rm-l, #hotel .tile--ht-deliver .rm-l { display: none; } }
@container (max-height: 240px) { #hotel .tile--ht-clean .rm-head { display: none; } #hotel .tile--ht-deliver .rm-k { display: none; } #hotel .tile--ht-deliver .rm-t { font-size: 1rem; margin: 0; } }
.rm-pattern { inset: 40px 0 0 40%; }
.rm-cards { width: min(76cqw, 58cqh); inset: auto 4% 4% auto; }
.tile--hero-roomie .hero-idx { position: relative; z-index: 3; }
@media (max-width: 700px) {
  .rm-pattern { display: none; }
  .tile--hero-roomie .hero-main { max-width: 54%; }
  .tile--hero-roomie .hero-line { font-size: .875rem; letter-spacing: .04em; }
  .tile--hero-roomie .hero-idx { display: none; }
}
.rm-cards { width: min(70cqw, 68cqh); inset: auto 9% 6% auto; }
@container (max-height: 160px) { .rm-cards { width: min(44cqw, 80cqh); inset: auto 6% 8% auto; } }
@container (max-height: 160px) { .rm-card--c b, .rm-card--c i { display: none; } }
@container (max-width: 200px) { .rm-card--c b, .rm-card--c i { display: none; } }

/* ══ BACKLOG · each world is three tiles: the app, the hero, one big moment ══ */
@media (min-width: 701px) {
  /* 40 weeks: the baby's screen stands whole in its tall tile */
  #clalit .tile--clalit-baby { place-items: center; }
  #clalit .cl-baby { height: auto; width: 84cqw; max-height: 84cqh; object-position: center; translate: 0 0; }
  #clalit .tile--clalit-baby:hover .cl-baby { translate: 0 -6px; }
  #clalit .cl-glow { inset-block: 25% 15%; }
}
/* roomie's phone card: a line in the guest's voice on top - ink, with the brand's yellow under the name */
#hotel .tile--ht-phone { --mh: 150px; justify-content: flex-start; align-items: stretch; gap: 14px; padding: var(--tile-pad); }
#hotel .tile--ht-phone .moment { color: #202020; }
#hotel .tile--ht-phone .moment b { padding-inline: 2px; background: linear-gradient(transparent 60%, #ffcc00 60%, #ffcc00 92%, transparent 92%); -webkit-text-fill-color: #202020; color: #202020; }
#hotel .tile--ht-phone .quote { background: #ffcc00; color: #202020; box-shadow: 0 4px 12px rgba(255, 204, 0, .45); }
#hotel .tile--ht-phone .phone { margin: auto; width: min(100%, calc((100cqh - var(--mh)) * .4615)); }
@media (max-width: 700px) { #hotel .tile--ht-phone { --mh: 96px; gap: 8px; } }
/* Backlog worlds: three tiles don't need the full height - a lower bento, centred with air */
:is(#hotel, #clalit, #balcony) .bento { --H: max(600px, min(clamp(540px, calc(100dvh - 240px), 640px), calc(var(--W) * .5))); }
@media (min-width: 701px) and (max-width: 1099px) {
  :is(#hotel, #clalit, #balcony) .bento { --rh: min(clamp(64px, calc((100dvh - 220px - 5 * var(--gap)) / 6), 104px), calc((var(--W) * .76 - 5 * var(--gap)) / 6)); }
}
/* a short hero keeps its logo and line; the page already says these never launched */
@container (max-height: 180px) { :is(#hotel, #clalit, #balcony) .tile--hero .hero-idx { display: none; } }
/* ══ FLYALL · Check-in is FlyAll now, as on flyall.co.il: its own logo; the deal card is just its photo ══ */
#checkin .logo--checkin { --lh: clamp(42px, 24cqh, 88px); }
#checkin .pass-k img { height: 18px; }
#checkin .ci-badge img { height: 20px; }
#checkin .fa-deal-card .fa-deal-img { flex: 1 1 auto; }
/* Backlog covers: each product shown by its own art */
.door-brand { container-type: inline-size; }
/* roomie */
.rm-door-art { position: absolute; inset: 4% 0 0; border-radius: 7cqw; overflow: hidden; background: #fffefb; box-shadow: 0 0 0 1px rgba(32, 32, 32, .08), 0 6cqw 12cqw -6cqw rgba(90, 70, 10, .4); }
.rm-door-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 40 weeks */
.wk-ast { fill: none; stroke-width: 5; stroke-linecap: round; }
.wk-ast--teal { stroke: #0e8f86; } .wk-ast--pink { stroke: #ef9f8c; }
.wk-baby { position: absolute; z-index: 2; left: 50%; top: 52%; width: 52%; translate: -50% -50%; filter: drop-shadow(0 4cqw 6cqw rgba(120, 50, 30, .28)); }
/* Balcony */
.bl-ground { fill: #fff6f4; } .bl-block { fill: #f6e3df; } .bl-river { fill: none; stroke: #cfe6f2; stroke-width: 22; stroke-linecap: round; }
.bl-road { fill: none; stroke: #ffffff; stroke-width: 9; stroke-linecap: round; }
.bl-rim { fill: none; stroke: rgba(61, 12, 14, .18); stroke-width: 1.2; stroke-dasharray: 3 6; }
.bl-halo--help { fill: rgba(255, 90, 95, .2); } .bl-halo--safe { fill: rgba(47, 179, 122, .18); }
.bl-dot--help { fill: #ff5a5f; } .bl-dot--safe { fill: #2fb37a; } .bl-dot { stroke: #fff; stroke-width: 3; }
@media (max-width: 700px) { #checkin .pass-k img { height: 13px; } }
/* roomie's case: the new screens - rounded like the app, the prototype's splash too */
#hotel-case .csi-feature-shots img { border-radius: 22px; box-shadow: 0 0 0 1px rgba(32, 32, 32, .06), 0 18px 34px -22px rgba(70, 50, 0, .35); }
#hotel-case .csi-proto img { border-radius: 30px; box-shadow: 0 24px 50px -24px rgba(70, 50, 0, .45); }
/* three steps in a row take the card's full width, the words under them */
#hotel-case .csi-feature:has(.csi-feature-shots img:nth-child(3)) { grid-template-columns: 1fr; }
#hotel-case .csi-feature-shots img:nth-child(3), #hotel-case .csi-feature-shots:has(img:nth-child(3)) img { max-width: calc(33.3% - 8px); max-height: 440px; }
#hotel-case .csi-feature-shots img:only-child { max-height: 380px; }
#hotel-case .csi-proto img { width: min(240px, 60vw); }
/* roomie: its scene spread across the top of the door, no frame - it melts into the paper */
.door-brand--hotel { inset: 0 -6% auto; width: auto; height: auto; aspect-ratio: 1; translate: none; }
.half:hover .door-brand--hotel { translate: 0 -6px; }
.door-brand--hotel .rm-door-art { inset: 0; border-radius: 0; background: none; box-shadow: none; mix-blend-mode: multiply;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 16%, #000 64%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 16%, #000 64%, transparent 100%); }
.door-brand--hotel .rm-door-art img { object-position: 50% 42%; }
@media (max-width: 700px) {
  .door-brand--hotel { inset: 0 -10% 0 46%; height: auto; aspect-ratio: auto; }
  .door-brand--hotel .rm-door-art { -webkit-mask: linear-gradient(90deg, transparent, #000 50%); mask: linear-gradient(90deg, transparent, #000 50%); }
}
/* ══ BACKLOG · the three covers in roomie's proportions: the art spread across the top, edge to edge,
   fading into the paper above the name ══ */
.door-brand { inset: 0 -6% auto; width: auto; height: auto; aspect-ratio: 1; translate: none; }
.half:hover .door-brand { translate: 0 -6px; }
.db-art { position: absolute; inset: 0; -webkit-mask: linear-gradient(180deg, transparent 0, #000 16%, #000 64%, transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 16%, #000 64%, transparent 100%); }
.wk-baby { width: 44%; top: 53%; }
@media (max-width: 700px) {
  .door-brand { inset: 0 -10% 0 46%; height: auto; aspect-ratio: auto; }
  .half:hover .door-brand { translate: 0 -4px; }
  .db-art { -webkit-mask: linear-gradient(90deg, transparent, #000 50%); mask: linear-gradient(90deg, transparent, #000 50%); }
  .wk-baby { width: auto; height: 80%; }
}
/* ══ DESIGN REVIEW, 2026-10-28 ══ */
/* FlyAll: the top cloud drifts below the hero's rounded corner, never clipped by it */
#checkin .tile--hero-sky .cloud--a { inset-block-start: 21%; animation-delay: -30s; }
/* the logo's own shadow was clipped by its ink-in reveal into a dark box; the title's soft shadow stays */
.tile--hero-sky .hero-name--logo img { filter: none; }
#checkin .tile--hero-sky .cloud--c { inset-block-start: 30%; }
/* Balcony: the radar sweeps a drawn city (the app's map was a placeholder) */
.radar-map { background: url(assets/work/balcony-map-drawn.svg) center / cover; filter: none; opacity: .95; }
/* the opening on mid-size screens: the portrait steps right, out from under the name */
@media (min-width: 701px) and (max-width: 1100px) { .intro-photo { inset-inline-end: -46%; } }
/* roomie's hero: the brand board's scene, melting into the paper from the left */
.rm-pattern--art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; mix-blend-mode: multiply; }
.rm-pattern--art { -webkit-mask: linear-gradient(90deg, transparent, #000 34%); mask: linear-gradient(90deg, transparent, #000 34%); }
/* roomie's delivery tile, in proportion: on wide tiles the two places sit in the bottom-left corner and the
   message beside the title, so the island has the tile's whole height */
@media (min-width: 701px) {
  #hotel .tile--ht-deliver .hd-choose { position: absolute; z-index: 3; inset: auto auto clamp(14px, 1.6vw, 22px) clamp(14px, 1.6vw, 22px); flex-direction: column; align-items: flex-start; gap: 10px; }
  #hotel .tile--ht-deliver .hd-choose button { flex-direction: row; gap: 10px; }
  #hotel .tile--ht-deliver .hd-toast { inset: -56px 0 auto auto; translate: 0 -6px; }
  #hotel .tile--ht-deliver.is-delivered .hd-toast { translate: 0 0; }
}
@media (max-width: 700px) {
  #hotel .tile--ht-deliver .hd-choose { position: absolute; z-index: 3; inset: 14px 14px auto auto; gap: 6px; }
  #hotel .tile--ht-deliver .hd-choose button { font-size: .6875rem; gap: 5px; }
  #hotel .tile--ht-deliver .hd-choose i { width: 26px; }
}

/* ══ CASE STUDY · blocks for a product story (Tidhar first): the stage journey, four questions,
   a palette, an icon family, screens side by side, the goal - and a case on a page of its own ══ */
.case-page > .cs-inline::before { content: none; }
.case-page > .cs-inline { min-height: 100vh; }
.case-page .csi-grid { padding-top: clamp(112px, 14vh, 150px); }
/* the stage journey: four stages and the wait between them */
.csi-stages { display: flex; align-items: stretch; gap: 0; margin: 14px 0 0; padding: 0; list-style: none; }
.csi-stages > li:not(.csi-wait) { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line); }
.csi-stages img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 4px; }
.csi-stages b { font: 700 1.0625rem/1.2 var(--font-display); color: var(--csi-a); }
.csi-stages span { font: 400 .875rem/1.45 var(--font-text); color: var(--csi-soft); }
.csi-wait { flex: 0 0 34px; position: relative; display: grid; place-items: center; font-size: 0; }
.csi-wait i { width: 100%; height: 0; border-top: 2px dashed color-mix(in srgb, var(--csi-a) 35%, transparent); }
/* four questions */
.csi-qs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; padding: 0; list-style: none; }
.csi-qs li { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: var(--csi-a); color: #fff; }
.csi-qs span { font: 800 1.75rem/1 var(--font-display); color: #ffb548; font-variant-numeric: tabular-nums; }
.csi-qs b { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.01em; }
.csi-body .csi-qs p { margin: 0; font: 400 .9375rem/1.5 var(--font-text); color: rgba(255, 255, 255, .78); }
/* a palette */
.csi-palette { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.csi-palette li { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line); }
.csi-palette i { display: block; aspect-ratio: 1.15; border-radius: 12px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); margin-bottom: 6px; }
.csi-palette b { font: 700 .9375rem/1.2 var(--font-display); }
.csi-palette code { font: 500 .75rem/1.2 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--csi-soft); }
.csi-palette span { font: 400 .8125rem/1.4 var(--font-text); color: var(--csi-soft); }
/* an icon family */
.csi-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0; padding: 20px; list-style: none; border-radius: 24px; background: radial-gradient(120% 90% at 50% 0%, #ffffff 0%, var(--csi-tint) 100%); box-shadow: 0 0 0 1px var(--csi-line); }
.csi-icons li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.csi-icons img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0, 68, 56, .16)); }
.csi-icons span { font: 500 .8125rem/1.2 var(--font-text); color: var(--csi-soft); }
/* screens side by side */
.csi-shots { display: flex; justify-content: center; gap: clamp(16px, 4vw, 48px); padding: clamp(18px, 3vw, 32px); border-radius: 24px; background: var(--csi-tint); }
.csi-shots figure { flex: 0 1 300px; margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.csi-shots img { display: block; width: 100%; height: auto; border-radius: 26px; box-shadow: 0 24px 46px -26px rgba(0, 50, 40, .45), 0 0 0 1px rgba(0, 0, 0, .05); }
.csi-shots figcaption { font: 600 .875rem/1.3 var(--font-text); color: var(--csi-a); text-align: center; }
/* the goal */
.csi-goal { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 40px); border-radius: 28px; background: var(--csi-a); color: #fff; }
.csi-goal::after { content: ''; position: absolute; inset: auto -40px -60px auto; width: 220px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 181, 72, .55), transparent 70%); }
.csi-goal-k { margin: 0 0 10px; font: 700 .8125rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: #ffb548; }
.csi-goal h4 { margin: 0 0 12px; font: 700 clamp(1.5rem, 3vw, 2.125rem)/1.15 var(--font-display); letter-spacing: -.025em; color: #fff; }
.csi-body .csi-goal p { position: relative; z-index: 1; margin: 0; color: rgba(255, 255, 255, .84); }
@media (max-width: 700px) {
  .csi-stages { flex-direction: column; }
  .csi-wait { flex: 0 0 22px; }
  .csi-wait i { width: 0; height: 100%; border-top: 0; border-inline-start: 2px dashed color-mix(in srgb, var(--csi-a) 35%, transparent); }
  .csi-qs { grid-template-columns: 1fr; }
  .csi-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .csi-shots { gap: 12px; padding: 14px; }
}
/* a case page's back pill already says ← in its words */
html[data-page="case"] .nav-inner .back-pill::before { content: none; }
/* Tidhar: the case-study button sits under the tagline, part of the title */
@media (min-width: 701px) { #tidhar .tile--hero .tile-btn--label { inset-inline: 0 auto; } }

/* ══ CASE STUDIES FROM EVERY WORLD ══ */
/* the outro: one primary way on */
.outro-more .outro-btn--primary { background: #fff; box-shadow: 0 10px 28px -14px rgba(1, 183, 255, .55); color: #0b0b0f; opacity: 1; }
.outro-more .outro-btn--primary:hover { background: #eef9ff; box-shadow: 0 12px 30px -12px rgba(1, 183, 255, .7); }
/* almost every tile opens the case study */
.tile.is-case-link { cursor: pointer; }
/* holding pages */
.case-page .cs-inline:has(.csi-sec:only-of-type) .csi-toc { visibility: hidden; }
/* a hero's case-study button always sits in its corner, whatever the hero does with its children */
.tile.tile--hero > .tile-btn { position: absolute; }

/* ══ THE CASE-STUDY BUTTON · one button everywhere: the same words, the same size; only its colour follows the world ══ */
.tile-btn--label { height: 36px !important; min-height: 0 !important; padding-inline: 14px 10px !important; gap: 6px !important; }
.tile:hover .tile-btn--label { gap: 6px !important; }
.tile-btn--label b { font: 600 .8125rem/1 var(--font-text) !important; letter-spacing: 0; }
.tile-btn--label svg { width: 14px !important; height: 14px !important; }
.tile-btn--flow { position: relative !important; inset: auto !important; align-self: flex-start; margin-top: 10px; flex: none; }
/* Maccabiah on a phone: the pink card is a full-width band - the title and the button on the left, the screen on the right */
@media (max-width: 700px) {
  .tile--mac-move .mac-label { display: flex; max-width: 58%; gap: 4px; }
  .tile--mac-move .mac-label p { display: none; }
  .tile--mac-move .mac-label h3 { font-size: 1.0625rem; white-space: nowrap; }
  .tile--mac-move .tile-btn--flow { margin-top: 6px; }
  .tile--mac-move .mac-label { z-index: 3; }
  .tile--mac-move .mm-screen { inset: 8px 8px 8px auto !important; width: 36% !important; height: auto !important; rotate: 0deg !important; translate: none !important; }
  .tile--mac-move .mm-arc { display: none; }
}
@media (max-width: 300px) { .tile--mac-move .mac-label h3 { display: none; } }

/* ══ CASE STUDY · the opening: a quiet header band with room above it, then the chapters ══ */
.csi-top { display: grid; grid-template-columns: 200px minmax(0, 720px); justify-content: center; column-gap: clamp(40px, 6vw, 88px); padding: clamp(110px, 16vh, 170px) 32px 0; }
.case-page .csi-top { padding-top: clamp(170px, 26vh, 260px); }
.csi-top-k { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--csi-line); align-self: start; }
.csi-top .csi-kicker { margin: 0; font: 600 .75rem/1 var(--font-text); letter-spacing: .16em; }
.csi-top-kind { margin: 0; font: 400 .875rem/1.4 var(--font-text); color: var(--csi-soft); }
.csi-top-main { padding-top: 14px; border-top: 1px solid var(--csi-line); }
.csi-top .csi-logo { height: clamp(26px, 2.6vw, 32px); margin: 10px 0 36px; }
.csi-top .csi-title { max-width: 20ch; font: 600 clamp(2rem, 3.4vw, 2.75rem)/1.16 var(--font-display); letter-spacing: -.026em; }
.csi-top .csi-intro { margin-top: 28px; max-width: 56ch; font: 400 clamp(1.0625rem, 1.3vw, 1.1875rem)/1.75 var(--font-text); }
.csi-top .csi-tag { margin-top: 28px; }
.csi-top .csi-meta { margin-top: 56px; padding-top: 24px; gap: 22px 32px; }
.csi-top .csi-meta dd { line-height: 1.5; color: var(--csi-ink); }
/* the cover spans the header's width, with air on both sides */
.csi-cover--top { width: min(calc(200px + clamp(40px, 6vw, 88px) + 720px), calc(100% - 64px)); margin: clamp(56px, 8vh, 88px) auto 0; }
/* the chapters begin below */
.csi-top + .csi-grid, .csi-cover--top + .csi-grid { padding-top: clamp(24px, 4vh, 48px); }
.case-page .csi-grid { padding-top: clamp(24px, 4vh, 48px); }
.csi-top + .csi-grid .csi-main > .csi-sec:first-child, .csi-cover--top + .csi-grid .csi-main > .csi-sec:first-child { margin-top: clamp(56px, 8vh, 96px); }
@media (max-width: 999px) {
  .csi-top { grid-template-columns: minmax(0, 720px); row-gap: 0; }
  .csi-top-k { flex-direction: row; justify-content: space-between; align-items: baseline; padding-bottom: 0; }
  .csi-top-main { border-top: 0; padding-top: 6px; }
}
@media (max-width: 700px) {
  .csi-top { padding: 112px 20px 0; }
  .case-page .csi-top { padding-top: calc(132px + env(safe-area-inset-top)); }
  .csi-top .csi-logo { margin: 18px 0 26px; }
  .csi-top .csi-title { font-size: 1.875rem; line-height: 1.18; }
  .csi-top .csi-intro { margin-top: 20px; font-size: 1.0625rem; }
  .csi-top .csi-meta { margin-top: 40px; grid-template-columns: 1fr 1fr; }
  .csi-cover--top { width: calc(100% - 40px); margin-top: 40px; }
}
/* Tidhar's prototype starts at the home screen: three chapters */
.tp-chaps, #tidhar .tile--tidhar-phone .tp-chaps { grid-template-columns: repeat(3, 1fr) !important; }
/* rebar's hero: just the logo and its line */
#rebar .tile--hero .hero-scope { display: none; }

/* 40 weeks: the baby's card says what it is - a headline and a line, the screen under them */
#clalit .tile--clalit-baby { display: flex; flex-direction: column; align-items: stretch; padding: clamp(20px, 2.2vw, 28px) clamp(20px, 2.2vw, 28px) 0; }
.cl-head { position: relative; z-index: 2; flex: none; }
.cl-k { margin: 0 0 10px; font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: #22a597; }
.cl-t { margin: 0; font: 700 clamp(1.375rem, 2vw, 1.875rem)/1.12 var(--font-display); letter-spacing: -.022em; color: #0e5b57; }
.cl-l { margin: 10px 0 0; max-width: 30ch; font: 400 clamp(.875rem, 1vw, .9688rem)/1.55 var(--font-text); color: #4f7d79; }
#clalit .tile--clalit-baby .cl-baby { flex: 1 1 0; min-height: 0; width: 100%; height: auto; max-width: none; max-height: none; margin-top: clamp(14px, 2vh, 22px); object-fit: contain; object-position: center top; translate: 0 0; }
#clalit .tile--clalit-baby:hover .cl-baby { translate: 0 -6px; }
#clalit .tile--clalit-baby .cl-glow { inset-block: 40% 0; }
@container (max-height: 420px) { .cl-l { display: none; } }
@container (max-width: 240px) { .cl-l { display: none; } }
@container (max-height: 260px) { .cl-head { display: none; } }
/* phones: the card is wide - the words on the left, the screen on the right */
@media (max-width: 700px) {
  #clalit .tile--clalit-baby { flex-direction: row; align-items: center; gap: 14px; padding: 18px 0 0 18px; }
  #clalit .tile--clalit-baby .cl-head { flex: 1 1 50%; align-self: center; padding-bottom: 18px; }
  #clalit .tile--clalit-baby .cl-t { font-size: 1.25rem; }
  #clalit .tile--clalit-baby .cl-l { font-size: .8125rem; }
  #clalit .tile--clalit-baby .cl-baby { flex: 1 1 50%; align-self: stretch; height: 100%; margin-top: 0; object-position: center bottom; }
}
/* FlyAll's deal: the full photo, the Empire State in the middle */
.tile--fa-deal .fa-deal-img img { object-position: 51% 50%; }
/* rebar: the logo and its line sit at the top, under the client; the button keeps the bottom */
#rebar .tile--hero .hero-main { margin-block: clamp(18px, 7cqh, 48px) auto; }
/* big numbers, in a case */
.csi-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.csi-stats > div { display: flex; flex-direction: column; gap: 8px; padding: 22px 22px 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--csi-line); }
.csi-stats b { font: 700 clamp(2.5rem, 4.6vw, 3.5rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--csi-a); font-variant-numeric: tabular-nums; }
.csi-stats span { font: 400 .9375rem/1.45 var(--font-text); color: var(--csi-soft); }
/* a cover is capped by its height, so a wide one fills the panel and a tall one stays the same */
.csi-cover--top img { width: auto; max-width: 100%; max-height: min(560px, 62vh); margin-inline: auto; }
/* a flow, screen by screen - and, until its screens arrive, quiet phone outlines */
.csi-phones { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); padding: clamp(16px, 2.6vw, 28px); border-radius: 24px; background: var(--csi-tint); }
.csi-phones figure { flex: 0 1 180px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.csi-phones figure img { display: block; width: 100%; height: auto; border-radius: 20px; box-shadow: 0 18px 34px -22px rgba(60, 0, 10, .4), 0 0 0 1px rgba(0, 0, 0, .05); }
.csi-phones figcaption { font: 600 .8125rem/1.3 var(--font-text); color: var(--csi-a); text-align: center; }
.csi-phones.is-empty { flex-direction: column; align-items: stretch; gap: 14px; background: color-mix(in srgb, var(--csi-tint) 60%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--csi-a) 14%, transparent); }
.csi-body .csi-phones-k { margin: 0; font: 600 .75rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--csi-a) 70%, #fff); text-align: center; }
.csi-phones-row { display: flex; justify-content: center; gap: clamp(10px, 2vw, 22px); }
.csi-ph { flex: 0 1 150px; min-width: 0; aspect-ratio: 9 / 19.5; display: flex; flex-direction: column; gap: 9%; padding: 18% 12% 0; border-radius: 22px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--csi-a) 18%, transparent); }
.csi-ph b { display: block; height: 7%; border-radius: 99px; background: color-mix(in srgb, var(--csi-a) 9%, transparent); }
.csi-ph b:nth-child(1) { width: 60%; margin-inline-start: auto; }
.csi-ph b:nth-child(2) { height: 22%; border-radius: 12px; }
.csi-ph b:nth-child(3) { width: 80%; margin-inline-start: auto; }
.csi-ph b:nth-child(4) { width: 46%; margin-inline-start: auto; }
@media (max-width: 700px) { .csi-phones, .csi-phones-row { gap: 8px; } .csi-phones { padding: 14px; } .csi-ph { border-radius: 14px; } }
/* the outlines stay plain; the label fits one line on a phone */
.csi-ph b { display: none; }
@media (max-width: 700px) { .csi-body .csi-phones-k { font-size: .625rem; letter-spacing: .08em; } }

/* ══ ABOUT · experience: a carousel of the places I've worked ══ */
.cv-card--exp, .cv-card--do { grid-column: 1 / -1 !important; }
.cv-exp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cv-exp-nav { display: flex; gap: 8px; margin: 0; }
.cv-exp-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f2f2f5; color: #1d1d1f; font: 600 1rem/1 var(--font-text); transition: background .3s, opacity .3s; }
.cv-exp-btn:hover:not(:disabled) { background: #e6f6ff; }
.cv-exp-btn:disabled { opacity: .35; cursor: default; }
.cv-jobs { display: flex; gap: 14px; margin: 0 -4px; padding: 4px; scroll-padding-inline: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.cv-jobs::-webkit-scrollbar { display: none; }
.cv-jobs:focus-visible { outline: 3px solid #01b7ff; outline-offset: 4px; border-radius: 22px; }
.cv-job { flex: 0 0 clamp(240px, 31.5%, 360px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 22px; border-radius: 22px;
  background: color-mix(in srgb, var(--jc) 7%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--jc) 16%, transparent); }
.cv-job-when { align-self: flex-start; margin: 0; padding: 6px 10px; border-radius: 99px; background: color-mix(in srgb, var(--jc) 14%, #fff); color: color-mix(in srgb, var(--jc) 80%, #000); font: 600 .75rem/1 var(--font-text); }
.cv-job.is-now .cv-job-when { background: var(--jc); color: #fff; }
.cv-job-co { margin: 10px 0 0; font: 700 1.375rem/1.15 var(--font-display); letter-spacing: -.02em; color: #1d1d1f; }
.cv-job-role { margin: 0; font: 500 .9375rem/1.3 var(--font-text); color: #6e6e73; }
.cv-job-line { margin: 6px 0 0; font: 400 .875rem/1.55 var(--font-text); color: #48484c; }
@media (max-width: 700px) {
  .cv-job { flex-basis: 80%; padding: 16px 16px 18px; }
  .cv-job-co { font-size: 1.1875rem; }
  .cv-job-line { font-size: .8125rem; }
  .cv-exp-btn { width: 36px; height: 36px; min-height: 0; }
}

/* ══ MACCABIAH · a case of its own shape, in the Games' colours - the running track
   runs through it: the story, the steps, the reading bar ═════════════════════ */
.cs-mac { --mi: #282367; --mi2: #1b1858; --my: #f7b52c; --mc: #00aee9; --mp: #f0566e; --mv: #7e4ea2; --mcream: #fdfaf4; --ink2: #4a4775;
  --csi-a: #282367; --csi-a2: #f0566e; background: var(--mi); color: #fff; font-family: var(--font-text); overflow-x: clip; }
.cs-mac::before { content: none; }
.mc-wrap { width: min(var(--g-max), calc(100% - 2 * var(--g-margin))); margin-inline: auto; position: relative; }
.mc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.mc-k { margin: 0; font: 700 .8125rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--my); }
.mc-sec--paper .mc-k, .mc-sec--tint .mc-k, .mc-k--ink { color: var(--mp); }
.mc-head { margin: 0 0 18px; }
.mc-head .mc-k { margin-bottom: 16px; }
.mc-h { margin: 0 0 18px; font: 800 clamp(2rem, 4.4vw, 3.5rem)/1 var(--font-display); letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance; }
.mc-head .mc-h { margin: 0; }
.mc-head--flat .mc-h { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.mc-h4 { margin: 80px 0 0; font: 800 clamp(1.25rem, 2vw, 1.625rem)/1.1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; color: var(--my); }
.mc-p { margin: 16px 0 0; max-width: var(--g-measure); font: 400 var(--g-body)/1.7 var(--font-text); color: rgba(255, 255, 255, .82); }
.mc-p--lead { max-width: 62ch; margin-bottom: 40px; }
.mc-p--aside { font-size: 1rem; color: rgba(255, 255, 255, .6); }
.mc-small { margin: 22px 0 0; font: 500 .8125rem/1.4 var(--font-text); color: rgba(255, 255, 255, .55); }
.mc-sec { position: relative; padding: var(--g-sec) 0; }
.mc-sec--dark { background: var(--mi); }
.mc-sec--track, .mc-sec--sos { background: var(--mi2); }
.mc-sec--paper { background: var(--mcream); color: var(--mi); }
.mc-sec--tint { background: #f2f0fa; color: var(--mi); }
:is(.mc-sec--paper, .mc-sec--tint) .mc-p { color: #3c3a66; }
:is(.mc-sec--paper, .mc-sec--tint) .mc-p--aside { color: #7a7799; }
/* the reading bar: three lanes that fill as you read */
.mc-progress { position: fixed; z-index: 30; inset: 0 0 auto; height: 6px; display: grid; grid-template-rows: repeat(3, 1fr); pointer-events: none; }
.mc-progress b { display: block; width: calc(var(--read, 0) * 100%); background: var(--my); transition: width .15s linear; }
.mc-progress b:nth-child(2) { background: var(--mc); width: calc(var(--read, 0) * 96%); } .mc-progress b:nth-child(3) { background: var(--mv); width: calc(var(--read, 0) * 92%); }
/* phones */
.mc-phone { display: block; overflow: hidden; aspect-ratio: 9 / 19.5; border-radius: 13% / 6%; background: #fff; box-shadow: 0 0 0 6px #0d0b2a, 0 34px 60px -30px rgba(0, 0, 0, .55); }
.mc-phone img, .mc-phone video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* hero */
.mc-hero { position: relative; isolation: isolate; padding: clamp(150px, 22vh, 220px) 0 clamp(70px, 10vh, 110px); overflow: hidden; }
.mc-hero-art { position: absolute; z-index: -1; inset: auto 0 0; width: 100%; height: 62%; object-fit: cover; object-position: 50% 40%; opacity: .9;
  -webkit-mask: linear-gradient(180deg, transparent, #000 55%); mask: linear-gradient(180deg, transparent, #000 55%); }
.mc-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, var(--mi) 30%, rgba(40, 35, 103, .55) 62%, rgba(40, 35, 103, .2)); }
.mc-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; }
.mc-logo { display: block; height: clamp(44px, 5vw, 60px); width: auto; margin: 22px 0 26px; }
.mc-title { margin: 0; font: 800 clamp(3rem, 7.4vw, 6.75rem)/.9 var(--font-display); letter-spacing: -.05em; text-transform: uppercase; }
.mc-title span { display: block; }
.mc-title b { display: inline-block; margin-top: .3em; padding: .1em .22em .14em; font-size: .5em; white-space: nowrap; background: #fff; color: var(--mi); font-weight: 800; letter-spacing: -.04em; transform: rotate(-1.5deg); }
.mc-title i { font-style: normal; color: var(--my); }
.mc-lead { margin: 30px 0 0; max-width: var(--g-measure); font: 400 var(--g-lead)/1.6 var(--font-text); color: rgba(255, 255, 255, .86); }
.mc-actions { margin: 28px 0 0; }
.mc-store { display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 14px; border-radius: 14px; background: #000; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .4s var(--ease-spring), background .3s; }
.mc-store:hover { transform: translateY(-2px); background: #111; }
.mc-store img { width: 26px; height: 26px; }
.mc-store span { display: flex; flex-direction: column; font: 700 1.125rem/1.05 var(--font-display); letter-spacing: -.01em; }
.mc-store small { font: 500 .6875rem/1 var(--font-text); letter-spacing: .04em; text-transform: uppercase; opacity: .75; }
.mc-meta { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 14px 30px; margin: 40px 0 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); }
.mc-meta dt { font: 600 .6875rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.mc-meta dd { margin: 7px 0 0; font: 600 .9375rem/1.35 var(--font-text); }
.mc-hero-phones { position: relative; height: clamp(420px, 52vw, 600px); }
.mc-hero-phones .mc-phone { position: absolute; top: 50%; width: 42%; left: 50%; }
.mc-hero-phones .mc-phone:nth-child(1) { translate: -104% -44%; rotate: -8deg; }
.mc-hero-phones .mc-phone:nth-child(2) { translate: -50% -50%; z-index: 2; box-shadow: 0 0 0 6px #0d0b2a, 0 0 0 10px var(--my), 0 40px 70px -30px rgba(0, 0, 0, .6); }
.mc-hero-phones .mc-phone:nth-child(3) { translate: 4% -44%; rotate: 8deg; }

/* the story on a running track: three lanes start, stop for a year (dashed), and finish */
.mc-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 64px 0 0; padding: 0; list-style: none; }
.mc-stop { position: relative; padding: 76px clamp(18px, 3vw, 40px) 0 0; }
.mc-stop-lanes { position: absolute; inset: 0 0 auto; height: 28px; display: flex; flex-direction: column; gap: 8px; clip-path: inset(0 100% 0 0); transition: clip-path 1.2s cubic-bezier(.65, 0, .35, 1) calc(.2s + var(--i) * 1s); }
.mc-stops.is-in .mc-stop-lanes { clip-path: inset(0 -4px 0 0); }
.mc-stop-lanes i { display: block; height: 4px; border-radius: 2px; background: var(--c); }
.mc-stop-lanes i:nth-child(1) { --c: var(--my); } .mc-stop-lanes i:nth-child(2) { --c: var(--mc); } .mc-stop-lanes i:nth-child(3) { --c: var(--mv); }
.mc-stop--pause .mc-stop-lanes i { background: repeating-linear-gradient(90deg, var(--c) 0 12px, transparent 12px 24px); opacity: .55; }
.mc-stop-lanes em { position: absolute; left: 50%; top: 50%; translate: -50% -50%; padding: 5px 12px; border-radius: 99px; background: var(--mi2); box-shadow: inset 0 0 0 1px rgba(240, 86, 110, .6);
  font: 700 .6875rem/1 var(--font-text); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--mp); white-space: nowrap; }
/* the start line of each stop; the last one ends on a chequered finish */
.mc-stop::before { content: ''; position: absolute; z-index: 1; left: 0; top: -10px; width: 4px; height: 48px; border-radius: 2px; background: #fff; }
.mc-stop--pause::before { background: var(--mp); }
.mc-stop--finish::after { content: ''; position: absolute; right: 0; top: -10px; width: 16px; height: 48px; border-radius: 2px; background: repeating-conic-gradient(#fff 0 25%, var(--mi2) 0 50%) 0 0 / 8px 8px;
  opacity: 0; transition: opacity .4s 2.6s; }
.mc-stops.is-in .mc-stop--finish::after { opacity: 1; }
.mc-stop-y { display: block; font: 800 clamp(2.75rem, 5.6vw, 5.25rem)/.9 var(--font-display); letter-spacing: -.05em; white-space: nowrap; }
.mc-stop--pause .mc-stop-y { color: transparent; -webkit-text-stroke: 1.5px var(--mp); }
.mc-stop--finish .mc-stop-y { color: var(--my); }
.mc-stop b { display: block; margin: 16px 0 8px; font: 700 clamp(1.125rem, 1.6vw, 1.3125rem)/1.2 var(--font-display); }
.mc-stop p { margin: 0; max-width: 30ch; font: 400 .9688rem/1.6 var(--font-text); color: rgba(255, 255, 255, .72); }

/* the vision */
.mc-vision { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.mc-vcard { position: relative; aspect-ratio: 1.45; display: grid; place-content: center; justify-items: center; border-radius: 30px; background: #fff; box-shadow: 0 0 0 1.5px var(--mi), 14px 14px 0 0 var(--mp), 26px 26px 0 0 var(--my); }
.mc-vword { margin: 0; font: 800 clamp(2.25rem, 5vw, 4.25rem)/.9 var(--font-display); letter-spacing: -.045em; text-transform: uppercase; color: var(--mi); }
.mc-vbar { margin: 8px 0 0; padding: .1em .3em .14em; background: var(--mi); color: #fff; font: 800 clamp(1.125rem, 2.4vw, 2rem)/1 var(--font-display); letter-spacing: -.02em; text-transform: uppercase; }
.mc-vbar i { font-style: normal; color: var(--my); }
.mc-vtag { position: absolute; display: flex; gap: 6px; align-items: baseline; padding-bottom: 5px; border-bottom: 4px solid var(--c); font: 800 clamp(.75rem, 1.2vw, .9375rem)/1 var(--font-display); text-transform: uppercase; color: var(--mi); }
.mc-vtag small { font: 400 .8125rem/1 var(--font-text); text-transform: none; color: #6a6890; }
.mc-vtag--0 { --c: var(--mp); top: 9%; left: 6%; } .mc-vtag--1 { --c: var(--mc); top: 11%; right: 6%; }
.mc-vtag--2 { --c: var(--mi); bottom: 10%; left: 8%; } .mc-vtag--3 { --c: var(--my); bottom: 8%; right: 6%; }
/* the platform in three layers: slabs of the Games' toned illustrations, stacked */
.mc-layers { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; margin-top: clamp(80px, 11vh, 130px); }
.mc-layers-art { position: relative; height: clamp(320px, 36vw, 460px); container-type: inline-size; }
.mc-slab { position: absolute; left: 50%; top: 50%; width: var(--w); aspect-ratio: 1; margin: calc(var(--w) / -2) 0 0 calc(var(--w) / -2); border-radius: 7cqw;
  background: var(--t) center / cover, var(--c); --lift: 0cqw;
  transform: translateY(calc(var(--y) - var(--lift))) rotateX(58deg) rotateZ(45deg); box-shadow: 1px 1px 0 var(--d), 2px 2px 0 var(--d), 3px 3px 0 var(--d), 4px 4px 0 var(--d), 5px 5px 0 var(--d), 6px 6px 0 var(--d), 7px 7px 0 var(--d), 8px 8px 0 var(--d), 9px 9px 0 var(--d), 10px 10px 0 var(--d), 22px 26px 40px rgba(40, 35, 103, .28);
  transition: transform 1s var(--ease-spring) calc(var(--n) * .16s), opacity .5s calc(var(--n) * .16s); }
.mc-slab--0 { --w: 66cqw; --y: 17cqw; --c: var(--mi); --d: #15123f; --n: 0; z-index: 1; }
.mc-slab--1 { --w: 48cqw; --y: 0cqw; --c: var(--mc); --d: #0079a4; --n: 1; z-index: 2; }
.mc-slab--2 { --w: 30cqw; --y: -15cqw; --c: var(--my); --d: #b67a0b; --n: 2; z-index: 3; }
.js .cs-mac .mc-layers-art:not(.is-in) .mc-slab { --lift: 26cqw; opacity: 0; }
.mc-layers-list { display: flex; flex-direction: column; margin: 22px 0 6px; padding: 0; list-style: none; border-top: 1px solid rgba(40, 35, 103, .14); }
.mc-layers-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(40, 35, 103, .14); }
.mc-layers-list li > i { grid-row: 1 / 3; width: 16px; height: 16px; margin-left: 4px; rotate: 45deg; border-radius: 3px; background: var(--c); }
.mc-layers-list li:nth-child(1) { --c: var(--my); } .mc-layers-list li:nth-child(2) { --c: var(--mc); } .mc-layers-list li:nth-child(3) { --c: var(--mi); }
.mc-layers-list b { font: 800 clamp(1.125rem, 1.7vw, 1.375rem)/1.15 var(--font-display); letter-spacing: -.015em; color: var(--mi); }
.mc-layers-list span { font: 500 .9375rem/1.4 var(--font-text); color: #6a6890; }

/* how it was made: the steps, on lanes, each one jumps to its part */
.mc-steps { position: relative; padding: 46px 0 50px; background: var(--mi); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.mc-steps ol { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 22px 0 0; padding: 0; list-style: none; }
.mc-steps ol::before { content: ''; position: absolute; inset: 9px 0 auto; height: 10px; background: linear-gradient(var(--my) 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(var(--mc) 0 0) 0 4px / 100% 2px no-repeat, linear-gradient(var(--mv) 0 0) 0 8px / 100% 2px no-repeat; opacity: .8; }
.mc-steps button { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 30px 12px 0 0; background: none; color: #fff; text-align: left; font: 700 clamp(.9375rem, 1.3vw, 1.125rem)/1.2 var(--font-display); cursor: pointer; }
.mc-steps button::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--mi); box-shadow: inset 0 0 0 3px #fff; transition: background .3s, scale .4s var(--ease-bounce); }
.mc-steps button span { font: 600 .75rem/1 var(--font-text); letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.mc-steps button:hover::before, .mc-steps button:focus-visible::before { background: var(--my); scale: 1.15; }

/* the research, as a conversation */
.mc-research { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.mc-research .mc-k { margin-bottom: 16px; }
.mc-chat { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 30px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.mc-chat-k { margin: 0 0 4px; font: 600 .75rem/1 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.mc-bubble { align-self: flex-start; max-width: 86%; margin: 0; padding: 13px 17px; border-radius: 20px 20px 20px 6px; background: #fff; color: var(--mi); font: 600 .9688rem/1.4 var(--font-text); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .6); }
.mc-bubble:nth-of-type(even) { align-self: flex-end; border-radius: 20px 20px 6px 20px; background: var(--mc); color: #fff; }
/* three decisions: no boxes - a column each, the whole screen under it */
.mc-dec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 28px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .14); }
.mc-dec li { display: flex; flex-direction: column; gap: 10px; padding: 30px clamp(18px, 2.6vw, 38px) 0; }
.mc-dec li:first-child { padding-left: 0; }
.mc-dec li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.mc-dec-n { font: 800 clamp(3rem, 5vw, 4.5rem)/.9 var(--font-display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--c); }
.mc-dec li:nth-child(1) { --c: var(--mp); } .mc-dec li:nth-child(2) { --c: var(--mc); } .mc-dec li:nth-child(3) { --c: var(--my); }
.mc-dec b { margin-top: 8px; font: 800 1.375rem/1.15 var(--font-display); letter-spacing: -.015em; }
.mc-dec p { margin: 0; font: 400 .9688rem/1.6 var(--font-text); color: rgba(255, 255, 255, .72); }
.mc-dec .mc-phone { width: min(100%, 230px); margin: 26px 0 0; aspect-ratio: 360 / 667; box-shadow: 0 0 0 5px #0d0b2a, 0 30px 50px -30px rgba(0, 0, 0, .7); }

/* the map: the whiteboard as it was, framed */
.mc-map { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.mc-map-fig { margin: 0; }
.mc-map-fig a { display: block; overflow: hidden; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(40, 35, 103, .1), 0 40px 70px -46px rgba(40, 35, 103, .55); }
.mc-map-fig img { display: block; width: 100%; height: auto; transition: scale .8s var(--ease-apple); }
.mc-map-fig a:hover img { scale: 1.02; }
.mc-map-fig figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font: 500 .875rem/1.4 var(--font-text); color: #6a6890; }
.mc-map-fig figcaption span { flex: none; font-weight: 700; color: var(--mi); }

/* who sees what: one phone, and the map as a table - pick a person */
.mc-who { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(30px, 5vw, 72px); align-items: start; }
.mc-who-phone { position: sticky; top: 96px; margin: 0; }
.mc-who-phone .mc-phone { position: relative; box-shadow: 0 0 0 6px #0d0b2a, 0 0 0 10px var(--c), 0 40px 70px -40px rgba(40, 35, 103, .7); transition: box-shadow .5s; }
.mc-who-phone .mc-phone img { position: absolute; inset: 0; opacity: 0; transition: opacity .55s var(--ease-apple); }
.mc-who-phone .mc-phone img.is-on { opacity: 1; }
.mc-who-phone figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; font: 600 .875rem/1 var(--font-text); color: #6a6890; }
.mc-who-phone figcaption i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); transition: background .4s; }
.mc-who-cap { color: var(--mi); font-weight: 800; }
.mc-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px rgba(40, 35, 103, .12), 0 12px 30px -24px rgba(40, 35, 103, .5); }
.mc-seg button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: none; color: #5b5885; font: 700 .9375rem/1 var(--font-display); cursor: pointer; transition: background .3s, color .3s; }
.mc-seg button i { width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.mc-seg button[aria-selected="true"] { background: var(--mi); color: #fff; }
.mc-matrix { width: 100%; margin-top: 22px; border-collapse: collapse; table-layout: fixed; font: 500 .9375rem/1.45 var(--font-text); color: #34315f; }
.mc-matrix th, .mc-matrix td { padding: 15px 14px; text-align: left; vertical-align: top; border-top: 1px solid rgba(40, 35, 103, .12); transition: background .45s, color .45s; }
.mc-matrix thead th { border-top: 0; padding-top: 0; font: 800 .8125rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #8a87ad; }
.mc-matrix thead th[data-a] { box-shadow: inset 0 3px 0 var(--k); padding-top: 14px; }
.mc-matrix thead th:first-child { width: 22%; }
.mc-matrix tbody th { font: 700 .8125rem/1.45 var(--font-text); color: #8a87ad; }
.mc-matrix .is-on { background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--mi); }
.mc-matrix thead th.is-on { color: var(--mi); }
.mc-matrix td.is-none { color: #b9b7d0; }
.mc-matrix td.is-all { background: rgba(255, 255, 255, .6); color: var(--mi); }
.mc-matrix td.is-all em { margin-right: 10px; padding: 3px 9px; border-radius: 99px; background: var(--mi); color: #fff; font: 700 .6875rem/1 var(--font-text); font-style: normal; letter-spacing: .08em; text-transform: uppercase; vertical-align: 1px; }
.mc-who-note { margin: 20px 0 0; padding-left: 14px; border-left: 3px solid var(--mp); font: 500 .9375rem/1.55 var(--font-text); color: #4a4775; max-width: 60ch; }

/* wireframes: the home screen, round after round */
.mc-wires { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 26px); margin: 44px 0 0; padding: 0; list-style: none; }
.mc-wires::before { content: ''; position: absolute; inset: 9px 0 auto; height: 2px; background: repeating-linear-gradient(90deg, rgba(40, 35, 103, .35) 0 6px, transparent 6px 12px); }
.mc-wires li { display: flex; flex-direction: column; gap: 12px; }
.mc-wires-n { position: relative; align-self: flex-start; padding: 3px 9px; border-radius: 99px; background: var(--mcream); box-shadow: inset 0 0 0 1.5px var(--mi); font: 700 .75rem/1.1 var(--font-text); letter-spacing: .08em; color: var(--mi); }
.mc-wires-ph { display: block; overflow: hidden; aspect-ratio: 360 / 780; border-radius: 11% / 5%; background: #fff; box-shadow: 0 0 0 1px rgba(40, 35, 103, .2), 0 24px 40px -30px rgba(40, 35, 103, .5); }
.mc-wires-ph img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mc-wires li:last-child .mc-wires-n { background: var(--my); box-shadow: none; }
.mc-wires li:last-child .mc-wires-ph { box-shadow: 0 0 0 4px #0d0b2a, 0 0 0 7px var(--my), 0 30px 50px -30px rgba(40, 35, 103, .6); }
.mc-wires p { margin: 0; font: 600 .875rem/1.4 var(--font-text); color: #4a4775; }

/* safety: the real Emergency screen, and the tab that opens it */
.mc-sos { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.mc-phone--sos { aspect-ratio: 360 / 667; box-shadow: 0 0 0 6px #0d0b2a, 0 0 0 10px var(--mp), 0 40px 70px -30px rgba(0, 0, 0, .7); }
.mc-sos .mc-head { margin-bottom: 0; }
.mc-bar { position: relative; width: min(100%, 440px); margin: 36px 0 0; }
.mc-bar img { display: block; width: 100%; height: auto; }
.mc-bar-ring { position: absolute; left: 87.2%; top: 32.4%; width: 13%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; box-shadow: 0 0 0 3px var(--mp); }
@media (prefers-reduced-motion: no-preference) {
  .mc-bar-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 3px var(--mp); animation: mc-ring 2.2s cubic-bezier(.2, .6, .3, 1) infinite; }
}
@keyframes mc-ring { from { scale: 1; opacity: .9; } to { scale: 2.1; opacity: 0; } }
.mc-bar figcaption { position: absolute; right: 0; top: calc(100% + 12px); display: flex; align-items: center; gap: 8px; font: 700 .8125rem/1 var(--font-text); letter-spacing: .04em; color: var(--mp); white-space: nowrap; }
.mc-bar figcaption::before { content: ''; width: 1.5px; height: 18px; margin-right: 2px; background: var(--mp); translate: 0 -10px; }

/* in their pocket */
.mc-gal { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 4vw, 48px); margin-top: 30px; }
.mc-gal figure { margin: 0; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.mc-gal .mc-phone { width: min(100%, 280px); }
.mc-gal figcaption { font: 600 .9375rem/1.35 var(--font-text); color: var(--mi); text-align: center; }
/* the intro */
.mc-intro { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; justify-content: center; }
.mc-phone--video { background: var(--mi); box-shadow: 0 0 0 6px #0d0b2a, 0 0 0 10px var(--mc), 0 40px 70px -30px rgba(0, 0, 0, .7); }

/* the graphic language: drag between the Games' illustration and its toned version */
.mc-lang { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.mc-cmp-pick { display: flex; gap: 10px; margin-top: 28px; }
.mc-cmp-pick button { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; background: none; cursor: pointer; font: 600 .75rem/1 var(--font-text); color: #6a6890; }
.mc-cmp-pick img { display: block; width: 64px; aspect-ratio: 1.41; object-fit: cover; border-radius: 10px; box-shadow: 0 0 0 1px rgba(40, 35, 103, .12); transition: box-shadow .3s, translate .4s var(--ease-bounce); }
.mc-cmp-pick button:hover img { translate: 0 -2px; }
.mc-cmp-pick button[aria-pressed="true"] { color: var(--mi); }
.mc-cmp-pick button[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--mcream), 0 0 0 4px var(--mi); }
.mc-cmp { position: relative; margin: 0; overflow: hidden; aspect-ratio: 716 / 506; border-radius: 26px; box-shadow: 0 40px 70px -46px rgba(40, 35, 103, .6); touch-action: pan-y; }
.mc-cmp > img, .mc-cmp-b, .mc-cmp-b img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-cmp-b { clip-path: inset(0 0 0 var(--x)); }
.mc-cmp-ui { position: absolute; right: 7%; bottom: 9%; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mc-cmp-ui b { font: 800 1.0625rem/1.1 var(--font-display); }
.mc-cmp-ui small { font: 500 .8125rem/1.2 var(--font-text); opacity: .9; }
.mc-cmp-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; translate: -1px 0; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .3); pointer-events: none; }
.mc-cmp-line b { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; translate: -50% -50%; border-radius: 50%; background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.mc-cmp-line b::before, .mc-cmp-line b::after { content: ''; position: absolute; top: 50%; width: 7px; height: 7px; border: solid var(--mi); border-width: 0 0 2px 2px; translate: 0 -50%; }
.mc-cmp-line b::before { left: 11px; rotate: 45deg; } .mc-cmp-line b::after { right: 11px; rotate: -135deg; }
.mc-cmp-l { position: absolute; top: 16px; padding: 6px 11px; border-radius: 99px; background: rgba(13, 11, 42, .55); color: #fff; font: 700 .75rem/1 var(--font-text); letter-spacing: .04em; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mc-cmp-l--a { left: 16px; } .mc-cmp-l--b { right: 16px; }
.mc-cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* the launch: what athletes said - big words on lanes, no boxes */
.mc-voices { margin: 6px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, .16); }
.mc-voices li { display: grid; grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); align-items: center; padding: clamp(24px, 3.4vh, 36px) 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.mc-voices-n { display: flex; flex-direction: column; gap: 5px; }
.mc-voices-n i { display: block; height: 4px; border-radius: 2px; background: var(--c); width: 100%; transition: width .6s var(--ease-spring); }
.mc-voices-n i:nth-child(2) { width: 72%; } .mc-voices-n i:nth-child(3) { width: 44%; }
.mc-voices li:nth-child(1) { --c: var(--my); } .mc-voices li:nth-child(2) { --c: var(--mc); } .mc-voices li:nth-child(3) { --c: var(--mp); }
.mc-voices li:hover .mc-voices-n i { width: 100%; }
.mc-voices b { font: 800 clamp(1.75rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.035em; color: #fff; }
.mc-voices p { margin: 0; font: 400 1.0625rem/1.6 var(--font-text); color: rgba(255, 255, 255, .72); }

/* what we learned */
.mc-said { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mc-said > div { padding: 26px 28px; border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(40, 35, 103, .08); }
.mc-said-k { margin: 0 0 12px; font: 800 .875rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--mp); }
.mc-said > div:nth-child(2) .mc-said-k { color: var(--mc); }
.mc-said .mc-p { margin: 0; font-size: 1.0625rem; }
.mc-lesson { margin: 24px 0 0; padding: 28px 30px; border-radius: 26px; background: var(--mi); color: #fff; font: 700 clamp(1.25rem, 2.2vw, 1.75rem)/1.3 var(--font-display); letter-spacing: -.015em; }

/* the end: the app on Google Play - its welcome screen rising out of the Games' arch */
.mc-end { position: relative; overflow: hidden; padding: clamp(90px, 12vh, 140px) 0 0; background: var(--mi2); }
.mc-end-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); align-items: end; }
.mc-end-copy { padding-bottom: clamp(90px, 12vh, 130px); }
.mc-end-logo { display: block; height: 52px; width: auto; margin-bottom: 30px; }
.mc-end .mc-k { margin-bottom: 14px; }
.mc-end-h { margin: 0; font: 800 clamp(2.75rem, 6vw, 5.25rem)/.92 var(--font-display); letter-spacing: -.045em; text-transform: uppercase; }
.mc-end .mc-p { margin-bottom: 26px; }
.mc-end-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 46px 0 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.mc-link { padding: 6px 0; background: none; color: #fff; font: 700 1rem/1 var(--font-display); cursor: pointer; background-image: linear-gradient(var(--my), var(--my)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease-apple); }
.mc-link:hover, .mc-link:focus-visible { background-size: 100% 2px; }
.mc-end-by { margin: 22px 0 0; font: 500 .875rem/1 var(--font-text); color: rgba(255, 255, 255, .5); }
.mc-end-stage { position: relative; height: clamp(420px, 44vw, 580px); }
.mc-end-arch { position: absolute; left: 50%; bottom: 0; width: min(100%, 470px); height: 82%; translate: -50% 0; border-radius: 999px 999px 0 0; object-fit: cover; }
.mc-end-stage .mc-phone { position: absolute; left: 50%; bottom: -16%; width: min(54%, 260px); translate: -50% 0; aspect-ratio: 360 / 667; box-shadow: 0 0 0 6px #0d0b2a, 0 -20px 60px -10px rgba(0, 0, 0, .45); }

/* rising in, once */
@media (prefers-reduced-motion: no-preference) {
  .js .cs-mac .mc-rise { opacity: 0; translate: 0 30px; transition: opacity .8s var(--ease-apple) calc(var(--i, 0) * 90ms), translate 1s var(--ease-spring) calc(var(--i, 0) * 90ms); }
  .js .cs-mac .mc-rise.is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .mc-stop-lanes { clip-path: none; transition: none; } .mc-stop--finish::after { opacity: 1; } .js .cs-mac .mc-layers-art .mc-slab { --lift: 0cqw; opacity: 1; } }

/* tablets */
@media (max-width: 999px) {
  .mc-hero-in, .mc-vision, .mc-layers, .mc-research, .mc-intro, .mc-map, .mc-sos, .mc-lang, .mc-end-in { grid-template-columns: 1fr; }
  .mc-hero-phones { height: clamp(380px, 88vw, 680px); margin-top: 24px; }
  .mc-hero-phones .mc-phone { width: min(42%, 270px); }
  .mc-meta { grid-template-columns: repeat(2, auto); }
  .mc-intro, .mc-sos { justify-items: center; } .mc-intro .mc-phone, .mc-phone--sos { width: min(300px, 70vw); }
  .mc-sos > div { justify-self: stretch; }
  .mc-who { grid-template-columns: minmax(0, 230px) minmax(0, 1fr); }
  .mc-wires { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(150px, 28%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .mc-wires li { scroll-snap-align: start; }
  .mc-wires::before { width: 600%; }
  .mc-steps ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 26px; }
  .mc-steps ol::before { display: none; }
  .mc-end-stage { height: clamp(380px, 70vw, 520px); }
  .mc-end-copy { padding-bottom: 20px; }
}
/* phones */
@media (max-width: 700px) {
  .mc-hero { padding-top: calc(120px + env(safe-area-inset-top)); }
  .mc-meta { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .mc-vcard { aspect-ratio: 1.15; }
  .mc-vtag { font-size: .6875rem; }
  .mc-h4 { margin-top: 60px; }
  /* the track runs down the page */
  .mc-stops { grid-template-columns: 1fr; margin-top: 40px; }
  .mc-stop { padding: 0 0 44px 58px; }
  .mc-stop-lanes { inset: 0 auto 0 0; width: 28px; height: auto; flex-direction: row; clip-path: inset(0 0 100% 0); }
  .mc-stops.is-in .mc-stop-lanes { clip-path: inset(0 0 -4px 0); }
  .mc-stop-lanes i { width: 4px; height: 100%; }
  .mc-stop--pause .mc-stop-lanes i { background: repeating-linear-gradient(180deg, var(--c) 0 12px, transparent 12px 24px); }
  .mc-stop-lanes em { left: 0; top: 50%; translate: -6px -50%; rotate: -90deg; }
  .mc-stop::before { left: -10px; top: 0; width: 48px; height: 4px; }
  .mc-stop--finish { padding-bottom: 34px; }
  .mc-stop--finish::after { right: auto; left: -10px; top: auto; bottom: 0; width: 48px; height: 16px; }
  .mc-stop-y { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .mc-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-dec { grid-template-columns: 1fr; border-top: 0; }
  .mc-dec li, .mc-dec li:first-child { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .mc-dec li + li { margin-top: 36px; }
  .mc-dec .mc-phone { width: min(70%, 240px); }
  .mc-who { grid-template-columns: 1fr; }
  .mc-who-phone { position: relative; top: 0; width: min(62%, 240px); margin-inline: auto; }
  .mc-who-map { order: -1; }
  .mc-seg { display: flex; width: 100%; } .mc-seg button { flex: 1; justify-content: center; padding: 0 8px; font-size: .875rem; }
  /* on a phone the table shows the person picked; rows for everyone stay */
  .mc-matrix thead { display: none; }
  .mc-matrix td[data-a]:not(.is-on) { display: none; }
  .mc-matrix tbody th { width: 34%; }
  .mc-matrix td.is-all em { display: block; width: max-content; margin: 0 0 6px; }
  .mc-wires { grid-auto-columns: 44%; }
  .mc-gal { grid-template-columns: 1fr; } .mc-gal .mc-phone { width: min(70%, 260px); }
  .mc-cmp-pick img { width: 54px; }
  .mc-cmp-ui { right: 5%; bottom: 7%; padding: 10px 12px; } .mc-cmp-ui b { font-size: .9375rem; } .mc-cmp-ui small { font-size: .6875rem; }
  .mc-cmp-l { top: 10px; font-size: .6875rem; } .mc-cmp-l--a { left: 10px; } .mc-cmp-l--b { right: 10px; }
  .mc-voices li { grid-template-columns: 1fr; gap: 12px; }
  .mc-voices-n { width: 60px; }
  .mc-said { grid-template-columns: 1fr; }
  .mc-bar figcaption { font-size: .75rem; }
}

/* ══ FlyAll · the assistant opens the way the live site does: a white panel drops from
   under the header, the header's notch and orb ride down on its bottom edge ══ */
.chat.chat--drop { display: block; padding: 0; background: none; opacity: 1; transform: none; visibility: hidden; pointer-events: none; transition: visibility 0s .62s; font: 500 4.4cqw/1.4 var(--font-text); color: #040f21; }
.tile--checkin-phone.is-chat .chat--drop, .chat--drop.is-sheet.is-open, .fx-fa.is-chat .chat--drop { visibility: visible; pointer-events: auto; transition: none; }
.tile--checkin-phone.is-chat .fab, .fx-fa.is-chat .fab { opacity: 0; transition: opacity .2s; }
/* the panel is clipped just under the header's icons, so it slides out from behind it */
.chat--drop .fa-clip { position: absolute; inset: 11.5cqw 0 0; overflow: hidden; pointer-events: none; }
.chat--drop .fa-panel { position: absolute; inset: 0 0 auto; height: calc(100% - 16cqw); display: flex; flex-direction: column; padding: 7cqw 5cqw 3.2cqw; background: #fff; border-radius: 0 0 5cqw 5cqw; pointer-events: auto;
  translate: 0 calc(-100% + 3.37cqw); box-shadow: 0 0 0 rgba(4, 15, 33, 0); transition: translate .6s cubic-bezier(.55, 0, .7, .2), box-shadow .3s; }
.tile--checkin-phone.is-chat .fa-panel, .chat--drop.is-open .fa-panel, .fx-fa.is-chat .fa-panel { translate: 0 0; box-shadow: 0 6cqw 14cqw -6cqw rgba(4, 15, 33, .32); transition: translate .85s cubic-bezier(.22, 1, .36, 1), box-shadow .6s .2s; }
/* the notch, traced from the site's header: the same curve, the same orb */
.fa-notch { position: absolute; top: calc(100% - 1px); left: 50%; width: 32cqw; translate: -50% 0; pointer-events: none; }
.fa-notch svg { display: block; width: 100%; height: auto; fill: #fff; }
.fa-notch img { position: absolute; left: 50%; top: 6.67cqw; width: 8cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; filter: drop-shadow(0 1.4cqw 2.6cqw rgba(130, 74, 234, .45)); }
.fa-head { display: none; }
/* hello: the orb and Sol's greeting, in the middle of the panel */
.fa-hello { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3cqw; padding-inline: 2cqw; text-align: center; transition: opacity .3s; }
.fa-hello-orb { width: 13cqw; aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 2cqw 4cqw rgba(130, 74, 234, .4)); }
.fa-hello b { font: 700 6cqw/1.5 var(--font-text); color: #040f21; }
.fa-hello p { margin: 0; font: 400 4.1cqw/1.5 var(--font-text); color: #3b4252; }
.is-chat .fa-hello > *, .chat--drop.is-open .fa-hello > * { animation: fa-in .7s var(--ease-spring) backwards; }
.is-chat .fa-hello > :nth-child(1), .chat--drop.is-open .fa-hello > :nth-child(1) { animation-name: fa-orb-in; animation-delay: .3s; }
.is-chat .fa-hello > :nth-child(2), .chat--drop.is-open .fa-hello > :nth-child(2) { animation-delay: .45s; }
.is-chat .fa-hello > :nth-child(3), .chat--drop.is-open .fa-hello > :nth-child(3) { animation-delay: .55s; }
@keyframes fa-in { from { opacity: 0; translate: 0 4cqw; } }
@keyframes fa-orb-in { from { opacity: 0; scale: .35; filter: blur(3px); } }
/* once you ask, the greeting steps aside for the conversation */
.chat--drop .chat-log { display: none; padding-block: 0 3cqw; }
.chat--drop.is-talking .fa-hello { display: none; }
.chat--drop.is-talking .chat-log { display: flex; flex: 1 1 auto; min-height: 0; }
.chat--drop .chat-chips { justify-content: center; padding-block: 0 3cqw; }
.is-chat .chat--drop .chat-chips button, .chat--drop.is-open .chat-chips button { animation: chip-in .5s var(--ease-spring) backwards; }
.chat--drop .chat-chips button:nth-child(1) { animation-delay: .7s !important; }
.chat--drop .chat-chips button:nth-child(2) { animation-delay: .8s !important; }
.chat--drop .chat-chips button:nth-child(3) { animation-delay: .9s !important; }
.chat--drop .chat-chips button { border: 1px solid #e2e8f4; color: #040f21; font-size: 3.8cqw; }
.chat--drop .chat-chips button:hover { background: #f1f4fd; }
/* the field, as on the site: the sparkle, "ask Sol", the send button */
.fa-ask { display: flex; align-items: center; gap: 2.4cqw; height: 13.5cqw; padding-inline: 4cqw 2cqw; border-radius: 99px; background: #fff; border: 1px solid #dfe3ee; box-shadow: 0 2cqw 6cqw -3cqw rgba(27, 94, 206, .28); color: #8a8fa0; font: 400 4.4cqw/1 var(--font-text); }
.fa-spark { width: 6.2cqw; height: 6.2cqw; flex: none; }
.fa-ask span { flex: 1; }
.fa-send { display: grid; place-items: center; width: 9.6cqw; aspect-ratio: 1; flex: none; border-radius: 50%; background: linear-gradient(135deg, #9db0f2, #c39af0); }
.fa-send svg { width: 4.6cqw; height: 4.6cqw; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; scale: -1 1; }
.fa-note { margin: 2.6cqw 0 0; text-align: center; font: 400 2.7cqw/1.3 var(--font-text); color: #6b7080; }
/* the close button takes the place of the header's menu, as on the site */
.chat--drop .chat-x { position: absolute; z-index: 2; top: 7.6cqw; right: 7.5cqw; width: 10cqw; height: 10cqw; translate: 50% -50%; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #2f55d4; font-size: 0;
  opacity: 0; scale: .6; rotate: -90deg; pointer-events: auto; transition: opacity .25s, scale .45s var(--ease-bounce), rotate .45s var(--ease-bounce); }
.chat--drop .chat-x svg { width: 6.2cqw; height: 6.2cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.is-chat .chat--drop .chat-x, .chat--drop.is-open .chat-x { opacity: 1; scale: 1; rotate: 0deg; transition-delay: .15s; }
/* the conversation, in FlyAll's colours wherever the panel is */
.chat--drop .msg { font-size: 4cqw; }
.chat--drop .msg--me { background: #fff; box-shadow: inset 0 0 0 1.5px #1b5ece; }
.chat--drop .msg--ai { padding: 2.5cqw 4cqw 2.5cqw 8cqw; border: 1.5px solid transparent; border-radius: 5cqw; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #1b5ece, #824aea, #f63de4) border-box; }
.chat--drop .msg--ai::before { inset-inline-start: 2cqw; inset-block-start: 2.6cqw; background: url(assets/work/checkin-orb-fa.svg) center / cover; }
.chat--drop .msg--typing { padding-inline: 4cqw; }
/* on a phone the panel drops over the whole page, with the site's header on it */
.chat--drop.is-sheet { position: fixed; z-index: 60; inset: 0; height: auto; padding: 0; border-radius: 0; background: none; box-shadow: none; opacity: 1; transform: none; container-type: inline-size; visibility: hidden; transition: visibility 0s .62s; }
.chat--drop.is-sheet::before { content: ''; position: absolute; inset: 0; background: rgba(4, 15, 33, .38); opacity: 0; transition: opacity .45s; }
.chat--drop.is-sheet.is-open::before { opacity: 1; }
.chat--drop.is-sheet .fa-clip { inset: 0; }
.chat--drop.is-sheet .fa-panel { height: calc(100% - 15cqw); padding-top: calc(5cqw + env(safe-area-inset-top)); translate: 0 calc(-100% - 14cqw); }
.chat--drop.is-sheet.is-open .fa-panel { translate: 0 0; }
.chat--drop.is-sheet .fa-head { display: flex; justify-content: center; margin: 0 0 2cqw; }
.chat--drop.is-sheet .fa-head img { height: 7.5cqw; width: auto; }
.chat--drop.is-sheet .chat-x { top: calc(8.75cqw + env(safe-area-inset-top)); right: 9cqw; width: 44px; height: 44px; }
@media (prefers-reduced-motion: reduce) {
  .chat--drop .fa-panel, .tile--checkin-phone.is-chat .fa-panel, .chat--drop.is-open .fa-panel, .fx-fa.is-chat .fa-panel { transition: none; }
  .chat--drop .fa-hello > *, .chat--drop .chat-chips button { animation: none !important; }
}

/* ══ Maccabiah · "Built to move": a court in the Games' violet; the ball rests on it until you
   tap it - then it's physics, in app.js: bounce, dribble with the cursor, out of the card ══ */
.tile--mac-move { background: radial-gradient(120% 140% at 0% 100%, #9b66c6 0%, #7e4ea2 48%, #5c3484 100%); }
.mm-lines { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 3; pointer-events: none; }
.mm-court { position: absolute; z-index: 1; inset: 0; pointer-events: none; --bs: clamp(46px, 34cqh, 180px); }
.mm-ball { position: absolute; z-index: 2; left: 74%; bottom: 5cqh; width: var(--bs); aspect-ratio: 1; margin-left: calc(var(--bs) / -2); padding: 0; border-radius: 50%; background: none; cursor: grab; pointer-events: auto; touch-action: none; -webkit-tap-highlight-color: transparent; }
.mm-ball:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.mm-squash { display: block; width: 100%; height: 100%; transform-origin: 50% 100%; }
.mm-squash img { display: block; width: 100%; height: 100%; pointer-events: none; user-select: none; filter: drop-shadow(0 .8cqh 1.4cqh rgba(40, 10, 60, .28)); }
.mm-shadow { position: absolute; left: 74%; bottom: 3.6cqh; width: calc(var(--bs) * .86); height: calc(var(--bs) * .13); translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 6, 50, .55), rgba(30, 6, 50, 0)); pointer-events: none; transition: opacity .3s; }
.tile--mac-move.is-playing .mm-shadow { translate: none; transition: none; }
/* resting, it says it's alive: a small hop now and then, and a hint until the first tap */
@media (prefers-reduced-motion: no-preference) {
  .mm-ball[data-mode="rest"] .mm-squash { animation: mm-hop 4.2s cubic-bezier(.3, .7, .4, 1) 1.2s infinite; }
  .scene:not(.is-active) .mm-ball .mm-squash { animation-play-state: paused; }
}
@keyframes mm-hop { 0%, 80%, 100% { translate: 0 0; scale: 1 1; } 84% { translate: 0 -14%; scale: .96 1.04; } 88% { translate: 0 0; scale: 1.1 .88; } 91% { translate: 0 -4%; scale: 1 1; } 94% { translate: 0 0; } }
.mm-ball:hover .mm-squash { scale: 1.04; transition: scale .3s var(--ease-bounce); }
.mm-hint { position: absolute; left: 74%; bottom: calc(5cqh + var(--bs) + 10px); translate: -50% 0; padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); color: #fff; font: 700 .6875rem/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .4s, translate .4s; }
.tile--mac-move.has-played .mm-hint { opacity: 0; translate: -50% 6px; }
/* in play it leaves the card: fixed to the window, its size frozen by the script */
.mm-ball.is-free { position: fixed; z-index: 95; left: 0; top: 0; bottom: auto; margin: 0; cursor: pointer; will-change: transform; }
.mm-ball.is-free .mm-squash { animation: none; scale: none; }
@container (max-width: 260px) { .mm-hint { display: none; } }
@media (max-width: 700px) { .mm-court { --bs: clamp(40px, 34cqh, 110px); } .mm-ball, .mm-shadow, .mm-hint { left: 80%; } .mm-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { .mm-hint { display: none; } .mm-ball { cursor: default; } }

/* ══ rebar · five cups on the card; the fifth bursts the fruit out ══ */
.punch-cups { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 3cqw, 12px); max-width: 300px; }
.punch-cups i { border-radius: 999px; aspect-ratio: 3 / 4; }
.punch-cups svg { width: 52%; }
.fruit-burst { position: fixed; z-index: 70; width: 0; height: 0; pointer-events: none; }
.fruit-burst > * { position: absolute; left: 0; top: 0; display: block; }
.fb-cup { width: auto; filter: drop-shadow(0 24px 30px rgba(20, 40, 0, .3)); }
.fb-fruit { height: auto; filter: drop-shadow(0 10px 14px rgba(20, 30, 0, .22)); }
.fb-fruit.is-near { filter: blur(2.5px) drop-shadow(0 14px 18px rgba(20, 30, 0, .2)); }
.fb-seed { height: auto; aspect-ratio: 1 / 1.5; border-radius: 50%; background: #2c2723; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .25); }

/* ══ About · experience, editorial - the headline on the left, the places on a timeline on the
   right, then three areas of expertise and the tools; one quiet card on the About page ══ */
.xp { --xb: #0a7cff; --xl: #e8f2fd; --xg: #6e6e73; --xh: #e3e3e8; position: relative; z-index: 1; width: min(1240px, 100%); padding: clamp(24px, 3.6vw, 56px) clamp(22px, 4vw, 60px) clamp(22px, 3vw, 40px);
  border-radius: 18px; background: #fbfaf8; color: #1d1d1f; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 70px -40px rgba(40, 30, 10, .28), 0 0 0 1px rgba(0, 0, 0, .04); }
.xp-k { margin: 0; font: 500 .6875rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #8e8e93; }
.xp-top { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(24px, 4vw, 64px); }
.xp-intro { display: flex; flex-direction: column; gap: clamp(18px, 3.2vh, 34px); }
.xp-h { margin: clamp(10px, 3vh, 36px) 0 0; font: 800 clamp(2.5rem, min(5vw, 7.6vh), 4.5rem)/.98 var(--font-display); letter-spacing: -.045em; color: #0b0b0d; }
.xp-h i { font-style: normal; }
.xp-lead { margin: 0; max-width: 30em; font: 400 clamp(1rem, 1.35vw, 1.25rem)/1.6 var(--font-text); color: var(--xg); }
/* the timeline: a hairline with a dot per place; today is filled and lit */
.xp-line { position: relative; margin: 0; padding: 0 0 0 clamp(30px, 3vw, 44px); list-style: none; }
.xp-line::before { content: ''; position: absolute; left: 7px; top: 22px; bottom: 30px; width: 1px; background: #d2d2d7; transform-origin: 50% 0; }
.xp-job { --pt: clamp(12px, 2vh, 20px); position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); padding: var(--pt) clamp(14px, 1.8vw, 24px); }
.xp-job + .xp-job { border-top: 1px solid var(--xh); }
.xp-job::before { content: ''; position: absolute; left: calc(-1 * clamp(30px, 3vw, 44px) + 8px); top: calc(var(--pt) + 1px); width: 15px; height: 15px; translate: -50% 0; border-radius: 50%; background: #fbfaf8; box-shadow: inset 0 0 0 1.5px #b9b9bf; }
.xp-job.is-now { --pt: clamp(16px, 2.6vh, 26px); border-radius: 10px; background: var(--xl); }
.xp-job.is-now + .xp-job { border-top-color: transparent; }
.xp-job.is-now::before { width: 14px; height: 14px; background: var(--xb); box-shadow: 0 0 0 5px rgba(10, 124, 255, .14); }
.xp-when { margin: 0 0 clamp(6px, 1vh, 10px); font: 500 .6875rem/1.2 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8e8e93; }
.is-now .xp-when { color: var(--xb); }
.xp-co { margin: 0; font: 800 clamp(1.375rem, min(2.4vw, 3.6vh), 2rem)/1.08 var(--font-display); letter-spacing: -.035em; color: #0b0b0d; }
.xp-role { margin: 4px 0 0; font: 500 clamp(.9375rem, 1.2vw, 1.125rem)/1.3 var(--font-text); color: var(--xg); }
.xp-what { margin: 0; align-self: center; padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid #d8d8dd; font: 400 clamp(.875rem, 1.05vw, 1rem)/1.6 var(--font-text); color: var(--xg); }
/* expertise: three columns between hairlines */
.xp-skills { margin-top: clamp(22px, 3.6vh, 40px); padding-top: clamp(18px, 3vh, 32px); border-top: 1px solid var(--xh); }
.xp-skills ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: clamp(16px, 2.6vh, 28px) 0 0; padding: 0; list-style: none; }
.xp-skills li { padding: 0 clamp(12px, 1.6vw, 26px); }
.xp-skills li:first-child { padding-left: 0; }
.xp-skills li + li { border-left: 1px solid var(--xh); }
.xp-n { font: 500 .75rem/1 ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .12em; color: #8e8e93; }
.xp-skills h3 { margin: clamp(10px, 1.6vh, 16px) 0 8px; font: 800 clamp(1.125rem, min(1.6vw, 2.9vh), 1.5rem)/1.1 var(--font-display); letter-spacing: -.03em; color: #0b0b0d; }
.xp-skills li p { margin: 0; font: 400 clamp(.875rem, min(1vw, 1.8vh), 1rem)/1.5 var(--font-text); color: var(--xg); }
.xp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; margin: clamp(20px, 3.4vh, 36px) 0 0; padding-top: clamp(16px, 2.6vh, 26px); border-top: 1px solid var(--xh); font: 500 clamp(.9375rem, 1.1vw, 1.0625rem)/1.2 var(--font-text); color: #1d1d1f; }
.xp-tools .xp-k { margin-right: clamp(20px, 3vw, 44px); }
.xp-tools span:not(.xp-k) + span::before { content: '·'; margin: 0 .7em; color: #a1a1a6; }
/* on arrival: the card settles, the line draws down, the places and the skills follow */
.js .xp { opacity: 0; translate: 0 36px; transition: opacity .7s var(--ease-apple), translate 1.1s var(--ease-spring); }
.js .scene.is-active .xp { opacity: 1; translate: 0 0; }
.js .xp-line::before { scale: 1 0; transition: scale 1.2s cubic-bezier(.65, 0, .35, 1) .25s; }
.js .scene.is-active .xp-line::before { scale: 1 1; }
.js .xp-job, .js .xp-skills li { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-apple), translate .8s var(--ease-spring); }
.js .scene.is-active .xp-job { opacity: 1; translate: 0 0; transition-delay: calc(.3s + var(--i) * .12s); }
.js .scene.is-active .xp-skills li { opacity: 1; translate: 0 0; transition-delay: calc(.75s + var(--i) * .1s); }
@media (max-width: 900px) {
  .xp-top { grid-template-columns: 1fr; }
  .xp-intro { gap: 14px; }
  .xp-h { margin-top: 12px; }
}
@media (max-width: 700px) {
  .xp { border-radius: 16px; }
  .xp-job { grid-template-columns: 1fr; gap: 8px; }
  .xp-what { align-self: start; padding-left: 0; border-left: 0; }
  .xp-skills ol { grid-template-columns: 1fr; }
  .xp-skills li, .xp-skills li:first-child { padding: 16px 0; }
  .xp-skills li + li { border-left: 0; border-top: 1px solid var(--xh); }
  .xp-skills li:first-child { padding-top: 0; }
  .xp-tools .xp-k { flex-basis: 100%; margin: 0 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .js .xp, .js .xp-job, .js .xp-skills li { transition: none; } .js .xp-line::before { scale: 1 1; transition: none; } }
/* one screen on a laptop: the headline scales to its column, the timeline gets the room */
@media (min-width: 901px) {
  .xp-top { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3.4vw, 52px); }
  .xp-intro { container-type: inline-size; }
  .xp-h { font-size: clamp(2rem, 10.2cqi, 4.25rem); }
  .xp-job { grid-template-columns: minmax(0, .74fr) minmax(0, 1.26fr); gap: clamp(14px, 1.8vw, 24px); --pt: clamp(10px, 1.6vh, 16px); }
  .xp-job.is-now { --pt: clamp(14px, 2.2vh, 22px); }
  .xp-what { padding-left: clamp(14px, 1.8vw, 24px); font-size: clamp(.8125rem, min(1vw, 1.75vh), .9375rem); line-height: 1.55; }
  .xp-co { font-size: clamp(1.25rem, min(2vw, 3.2vh), 1.75rem); }
  .xp-role { font-size: clamp(.875rem, min(1.1vw, 1.9vh), 1.0625rem); }
  .xp-skills { margin-top: clamp(16px, 2.6vh, 32px); padding-top: clamp(14px, 2.2vh, 26px); }
  .xp-skills ol { margin-top: clamp(10px, 1.8vh, 22px); }
  .xp-skills h3 { margin: clamp(6px, 1.2vh, 12px) 0 6px; font-size: clamp(1.125rem, min(1.8vw, 2.9vh), 1.625rem); }
  .xp-skills li p { font-size: clamp(.8125rem, min(1.05vw, 1.8vh), 1rem); }
  .xp-tools { margin-top: clamp(14px, 2.4vh, 28px); padding-top: clamp(12px, 2vh, 20px); }
}
@media (min-width: 901px) and (max-height: 820px) { .xp-lead { font-size: 1rem; } .xp-h { margin-top: 6px; } }
@media (min-width: 901px) {
  .xp { padding-block: clamp(20px, 3.4vh, 52px) clamp(18px, 2.6vh, 36px); }
  .xp-lead { font-size: clamp(.9375rem, min(1.35vw, 2.15vh), 1.25rem); }
  .xp-h { margin-top: clamp(6px, 2.4vh, 30px); }
}
/* a short laptop screen: the tools sit on the expertise line, top right, so the card stays one screen */
@media (min-width: 901px) and (max-height: 860px) {
  .xp { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .xp-top, .xp-skills { grid-column: 1 / -1; }
  .xp-skills { grid-row: 2; }
  .xp-tools { position: relative; z-index: 1; grid-column: 2; grid-row: 2; align-self: start; margin: calc(clamp(16px, 2.6vh, 32px) + clamp(14px, 2.2vh, 26px) + 1px) 0 0; padding: 0; border: 0; }
  .xp-tools .xp-k { margin-right: 18px; }
}
.chat--drop.is-sheet { z-index: 120; }   /* over the floating tabs, like the site's own panel */
.fruit-burst { z-index: 105; }
.fruit-burst img { max-width: none; }
.chat--drop .msg--ai, #checkin .chat--drop .msg--ai, .fx-fa .chat--drop .msg--ai { padding-block: 2.5cqw; padding-inline: 8.5cqw 4cqw; }
@media (min-width: 901px) {
  #about-more { padding-block: 80px 12px; }
}
@media (min-width: 901px) and (max-height: 920px) {
  .xp { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .xp-top, .xp-skills { grid-column: 1 / -1; }
  .xp-skills { grid-row: 2; }
  .xp-tools { position: relative; z-index: 1; grid-column: 2; grid-row: 2; align-self: start; margin: calc(clamp(16px, 2.6vh, 32px) + clamp(14px, 2.2vh, 26px) + 1px) 0 0; padding: 0; border: 0; }
  .xp-tools .xp-k { margin-right: 18px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .xp-job { --pt: 8px; }
  .xp-job.is-now { --pt: 12px; }
}
/* the who-sees-what table on a phone: each row a label and the picked person's line */
@media (max-width: 700px) {
  .mc-matrix, .mc-matrix tbody { display: block; }
  .mc-matrix tr { display: grid; grid-template-columns: 34% minmax(0, 1fr); border-top: 1px solid rgba(40, 35, 103, .12); }
  .mc-matrix th, .mc-matrix td { border-top: 0; }
  .mc-matrix tbody th { width: auto; }
}
.mc-layers-art { width: min(100%, 520px); height: auto; aspect-ratio: 1 / .9; justify-self: center; }

/* ══ Two languages · a case study can be read in Hebrew: Heebo, right to left. The switch sits
   in the header and shows only while a case study is on screen ══ */
.cs-inline[data-lang="he"] {
  --font-text: 'Heebo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Heebo', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-family: var(--font-text);
}
/* Hebrew isn't tracked: spacing that suits Latin capitals pulls Hebrew letters apart */
.cs-inline[data-lang="he"] :not(svg, svg *) { letter-spacing: 0 !important; }
.lang-btn { font: 700 .75rem/1 var(--font-text); letter-spacing: .02em; }
.lang-btn[lang="he"] { font: 600 .9375rem/1 'Heebo', var(--font-text); }
.lang-btn[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .cs-inline { transition: opacity .18s ease; }
  .cs-inline.is-switching { opacity: 0; }
}
/* right to left: arrows point the way you read */
[dir="rtl"] .tile-btn svg { scale: -1 1; }
[dir="rtl"] .nav-inner .back-pill::before { content: '→'; }
[dir="rtl"] .cs-card + .cs-card::before { content: '←'; }
[dir="rtl"] .i18n-ltr { direction: ltr; unicode-bidi: isolate; }
/* right to left, part two: what slides sideways keeps its own order; the ball's court mirrors;
   the experience timeline runs down the right */
[dir="rtl"] :is(.side-strip, :has(> .side-strip)) { direction: ltr; }
[dir="rtl"] .nav-inner .back-pill::before { content: none; }
@media (min-width: 701px) and (max-width: 1100px) { [dir="rtl"] .nav-inner .back-pill::before { content: '→'; } }
@media (min-width: 1101px) and (max-width: 1340px) { [dir="rtl"] .nav-inner .back-pill::before { content: '→'; } }
[dir="rtl"] :is(.mm-ball, .mm-shadow, .mm-hint) { left: 26%; }
[dir="rtl"] .mm-lines { scale: -1 1; }
@media (max-width: 700px) { [dir="rtl"] :is(.mm-ball, .mm-shadow, .mm-hint) { left: 20%; } }
[dir="rtl"] .xp-line { padding: 0 clamp(30px, 3vw, 44px) 0 0; }
[dir="rtl"] .xp-line::before { left: auto; right: 7px; }
[dir="rtl"] .xp-job::before { left: auto; right: calc(-1 * clamp(30px, 3vw, 44px) + 8px); translate: 50% 0; }
[dir="rtl"] .xp-what { padding-left: 0; padding-right: clamp(14px, 1.8vw, 24px); border-left: 0; border-right: 1px solid #d8d8dd; }
[dir="rtl"] .xp-skills li:first-child { padding-left: clamp(16px, 2.6vw, 40px); padding-right: 0; }
[dir="rtl"] .xp-skills li + li { border-left: 0; border-right: 1px solid var(--xh); }
[dir="rtl"] .xp-tools .xp-k { margin-right: 0; margin-left: clamp(18px, 3vw, 44px); }
@media (max-width: 700px) {
  [dir="rtl"] .xp-what { padding-right: 0; border-right: 0; }
  [dir="rtl"] .xp-skills li, [dir="rtl"] .xp-skills li:first-child { padding: 16px 0; }
  [dir="rtl"] .xp-skills li:first-child { padding-top: 0; }
  [dir="rtl"] .xp-skills li + li { border-right: 0; }
  [dir="rtl"] .xp-tools .xp-k { margin: 0 0 4px; }
}
/* Maccabiah case, right to left: the race runs from the right, the slider compares left-to-right images */
[dir="rtl"] .mc-stop { padding: 76px 0 0 clamp(18px, 3vw, 40px); }
[dir="rtl"] .mc-stop-lanes { clip-path: inset(0 0 0 100%); }
[dir="rtl"] .mc-stops.is-in .mc-stop-lanes { clip-path: inset(0 0 0 -4px); }
[dir="rtl"] .mc-stop::before { left: auto; right: 0; }
[dir="rtl"] .mc-stop--finish::after { right: auto; left: 0; }
[dir="rtl"] .mc-cmp { direction: ltr; }
[dir="rtl"] .mc-steps button { text-align: right; padding: 30px 0 0 12px; }
[dir="rtl"] .mc-steps button::before { left: auto; right: 0; }
[dir="rtl"] .mc-dec li:first-child { padding-left: clamp(18px, 2.6vw, 38px); padding-right: 0; }
[dir="rtl"] .mc-dec li + li { border-left: 0; border-right: 1px solid rgba(255, 255, 255, .14); }
[dir="rtl"] :is(.mc-matrix th, .mc-matrix td) { text-align: right; }
[dir="rtl"] .mc-matrix td.is-all em { margin: 0 0 0 10px; }
[dir="rtl"] .mc-who-note { padding: 0 14px 0 0; border-left: 0; border-right: 3px solid var(--mp); }
[dir="rtl"] .mc-bubble { border-radius: 20px 20px 6px 20px; }
[dir="rtl"] .mc-bubble:nth-of-type(even) { border-radius: 20px 20px 20px 6px; }
@media (max-width: 700px) {
  [dir="rtl"] .mc-stop { padding: 0 58px 44px 0; }
  [dir="rtl"] .mc-stop-lanes { inset: 0 0 0 auto; clip-path: inset(0 0 100% 0); }
  [dir="rtl"] .mc-stops.is-in .mc-stop-lanes { clip-path: inset(0 0 -4px 0); }
  [dir="rtl"] .mc-stop::before { right: -10px; left: auto; }
  [dir="rtl"] .mc-stop--finish::after { left: auto; right: -10px; }
  [dir="rtl"] .mc-stop-lanes em { translate: 6px -50%; rotate: 90deg; }
  [dir="rtl"] .mc-dec li, [dir="rtl"] .mc-dec li:first-child { padding: 28px 0 0; border-right: 0; }
}
/* Backlog doors on a phone, right to left: the art moves to the left, the name and line stay on the right */
@media (max-width: 700px) {
  [dir="rtl"] :is(.door-brand, .door-brand--hotel) { inset: 0 46% 0 -10%; }
  [dir="rtl"] :is(.db-art, .door-brand--hotel .rm-door-art) { -webkit-mask: linear-gradient(270deg, transparent, #000 50%); mask: linear-gradient(270deg, transparent, #000 50%); }
}
[dir="rtl"] .mm-ball.is-free { left: 0; }
/* the ball's hint: point at it with a mouse, tap it with a finger */
.mm-hint--tap { display: none; }
@media (hover: none), (pointer: coarse) { .mm-hint--hover { display: none; } .mm-hint--tap { display: inline; } }
.mm-ball { cursor: default; }

/* ══ RE:BAR · a case in the brand's own language: white, ink and green, Simpler Pro set big and
   lowercase, the loose black line, the fruit - and the site's sideways scroll, rebuilt ══ */
.cs-rb { --rg: #5ea531; --rg2: #4c8a25; --ink: #111; --paper: #f4f4f1; --soft: #5b5b57;
  --font-text: 'SimplerPro', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif; --font-display: var(--font-text);
  --csi-a: #111; --csi-a2: #5ea531; background: #fff; color: var(--ink); font-family: var(--font-text); overflow-x: clip; letter-spacing: 0; }
.cs-rb[data-lang="he"] { --font-text: 'SimplerPro', 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif; --font-display: var(--font-text); }
.cs-rb::before { content: none; }
.rb-wrap { position: relative; width: min(var(--g-max), calc(100% - 2 * var(--g-margin))); margin-inline: auto; }
.rb-k { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 .875rem/1 var(--font-text); letter-spacing: .02em; color: var(--rg); }
.rb-k--sub { margin: clamp(64px, 9vh, 110px) 0 26px; }
.rb-doodle { width: 22px; height: 22px; flex: none; overflow: visible; }
.rb-doodle path, .rbc-loop path { fill: none; stroke: currentColor; stroke-linecap: round; }
.rb-doodle path { stroke-width: 34; }
.rb-head { margin: 0 0 22px; }
.rb-head .rb-k { margin-bottom: 18px; }
.rb-h { margin: 0; max-width: 16ch; font: 700 clamp(2.5rem, 6.4vw, 5.75rem)/.92 var(--font-display); letter-spacing: -.045em; text-transform: lowercase; text-wrap: balance; color: var(--ink); }
.rb-p { margin: 0 0 16px; max-width: var(--g-measure); font: 400 var(--g-body)/1.7 var(--font-text); color: var(--soft); }
.rb-sec { position: relative; padding: var(--g-sec) 0; }
.rb-sec--paper { background: var(--paper); }
.rb-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 99px; font: 700 1rem/1 var(--font-text); transition: transform .4s var(--ease-spring), background .3s, color .3s; }
.rb-btn:hover { transform: translateY(-2px); }
.rb-btn--ink { background: var(--ink); color: #fff; }
.rb-btn--ink:hover { background: var(--rg); }
.rb-btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.rb-btn--white { background: #fff; color: var(--ink); }
.rb-actions { margin: 28px 0 0; }
.rb-fig { margin: 40px 0 0; }
.rb-fig img { display: block; width: 100%; height: auto; border-radius: 24px; background: var(--paper); }
/* the reading bar: a green line */
.rb-progress { position: fixed; z-index: 30; inset: 0 auto auto 0; height: 4px; width: calc(var(--read, 0) * 100%); background: var(--rg); pointer-events: none; }
/* browsers and phones */
.rb-browser { display: block; margin: 0; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 50px 90px -60px rgba(17, 40, 10, .5); }
.rb-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: #f1f1ee; border-bottom: 1px solid #e6e6e1; }
.rb-bar i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcd6; }
.rb-bar b { margin-inline: auto; padding: 4px 14px; border-radius: 99px; background: #fff; font: 500 .75rem/1 var(--font-text); color: #8a8a84; }
.rb-screen { position: relative; display: block; overflow: hidden; }
.rb-screen > img { display: block; width: 100%; height: auto; }
.rb-phone { position: relative; display: block; width: 100%; aspect-ratio: 375 / 780; padding: 7px; border-radius: 40px; background: #111; box-shadow: 0 40px 70px -40px rgba(17, 40, 10, .55); }
.rb-phone-screen { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 33px; background: #fff; container-type: size; }
.rb-phone-screen img { display: block; width: 100%; height: auto; }
/* long screens scroll by themselves, slowly, and rest when you point at them */
@media (prefers-reduced-motion: no-preference) {
  .rbc-scroll img { animation: rbc-scroll 22s cubic-bezier(.45, 0, .55, 1) 1s infinite alternate; }
  .rbc-scroll:hover img, figure:hover .rbc-scroll img { animation-play-state: paused; }
}
@keyframes rbc-scroll { 0%, 8% { translate: 0 0; } 92%, 100% { translate: 0 calc(-100% + 100cqh); } }
.rb-browser--tall { display: block; }
.rb-browser--tall .rb-screen { height: min(68vh, 620px); container-type: size; }

/* hero */
.rb-hero { position: relative; isolation: isolate; padding: clamp(140px, 20vh, 210px) 0 clamp(60px, 8vh, 100px); overflow: hidden; }
.rbc-loop { position: absolute; z-index: -1; pointer-events: none; overflow: visible; color: var(--ink); }
.rbc-loop path { stroke-width: 90; stroke-dasharray: 1; stroke-dashoffset: 1; }
.rbc-loop--hero { width: min(52vw, 640px); inset: -6% -8% auto auto; opacity: .95; }
.cs-rb:not([hidden]) .rbc-loop--hero path { animation: rbc-draw 2.6s cubic-bezier(.65, 0, .35, 1) .3s forwards; }
@keyframes rbc-draw { to { stroke-dashoffset: 0; } }
.rb-fruits { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.rbc-fruit { position: absolute; left: var(--x); top: var(--y); width: calc(clamp(56px, 7vw, 110px) * var(--s)); height: auto; rotate: var(--r);
  translate: -50% calc(-50% - var(--hero, 0) * 160px * (1 + var(--i) * .15)); filter: drop-shadow(0 18px 22px rgba(30, 50, 10, .18)); }
@media (prefers-reduced-motion: no-preference) {
  .cs-rb:not([hidden]) .rbc-fruit { animation: rbc-pop .9s var(--ease-spring) calc(.2s + var(--i) * .08s) backwards, rbc-float 6s ease-in-out calc(var(--i) * .7s) infinite alternate; }
}
@keyframes rbc-pop { from { opacity: 0; scale: .4; } }
@keyframes rbc-float { to { rotate: calc(var(--r) + 10deg); } }
.rb-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(30px, 5vw, 70px); align-items: end; }
.rb-title { margin: 22px 0 0; font: 700 clamp(3.5rem, 10vw, 9.5rem)/.86 var(--font-display); letter-spacing: -.055em; text-transform: lowercase; }
.rb-title span { display: block; }
.rb-title span:last-child { color: var(--rg); }
.rb-title i { font-style: normal; color: var(--ink); }
.rb-lead { margin: 30px 0 0; max-width: var(--g-measure); font: 400 var(--g-lead)/1.6 var(--font-text); color: var(--soft); }
.rbc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin: 0; padding: 24px 0 6px; border-top: 2px solid var(--ink); }
.rbc-meta dt { font: 700 .75rem/1 var(--font-text); letter-spacing: .06em; text-transform: uppercase; color: var(--rg); }
.rbc-meta dd { margin: 8px 0 0; font: 700 1rem/1.35 var(--font-text); }
.rb-hero-shot { margin-top: clamp(50px, 8vh, 90px); }

/* the brief: three values, a row of cups */
.rb-brief { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(30px, 6vw, 90px); }
.rb-brief .rb-head { grid-column: 1 / -1; }
.rb-brief > .rb-p { margin: 0; } .rb-brief > .rb-values { align-self: end; justify-content: flex-end; }
@media (max-width: 999px) { .rb-brief > .rb-values { justify-content: flex-start; } }
.rb-values { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 26px 0 0; font: 700 clamp(1.75rem, 3vw, 2.5rem)/1.1 var(--font-display); letter-spacing: -.03em; }
.rb-values i { font-style: normal; color: var(--rg); }
.rbc-jobs { grid-column: 1 / -1; display: grid; gap: clamp(34px, 5vh, 56px); margin-top: clamp(30px, 5vh, 56px); }
.rbc-job { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 10px clamp(30px, 6vw, 90px); align-items: start; padding-top: clamp(22px, 3.4vh, 34px); border-top: 1px solid #deded8; }
.rbc-job-k { grid-column: 1 / -1; margin: 0; font: 700 .9375rem/1 var(--font-display); letter-spacing: -.01em; color: var(--rg); }
.rbc-job-h { margin: 0; font: 700 clamp(1.75rem, 3.2vw, 2.75rem)/1.04 var(--font-display); letter-spacing: -.04em; color: var(--ink); }
.rbc-job-h i { margin: 0 .28em; font-style: normal; color: var(--rg); }
.cs-rb:not([data-lang="he"]) :is(.rbc-job-h, .rbc-job-k) { text-transform: lowercase; }
.rbc-job-p { margin: .35em 0 0; max-width: 46ch; font: 400 1.0625rem/1.6 var(--font-text); color: var(--soft); }
@media (max-width: 999px) { .rbc-job { grid-template-columns: 1fr; } .rbc-job-p { margin: 0; } }

/* the ribbon: wellness, crossed */
.rb-ribbon { position: relative; height: clamp(150px, 18vw, 230px); overflow: hidden; }
.rb-band { position: absolute; left: -5%; right: -5%; top: 50%; margin: 0; padding: 14px 0; white-space: nowrap; overflow: hidden; }
.rb-band span { display: inline-flex; align-items: baseline; gap: 26px; padding-inline-end: 26px; animation: rbc-marquee 40s linear infinite; }
.rb-band b { font: 700 clamp(1.5rem, 2.6vw, 2.25rem)/1 var(--font-display); letter-spacing: -.02em; }
.rb-band b.is-small { font-size: clamp(1rem, 1.6vw, 1.375rem); font-weight: 400; }
.rb-band--g { background: var(--rg); color: var(--ink); translate: 0 -78%; rotate: -3deg; z-index: 1; }
.rb-band--w { background: #fff; color: var(--ink); translate: 0 -10%; rotate: 2.4deg; box-shadow: 0 0 0 1px rgba(17, 17, 17, .08), 0 18px 40px -24px rgba(17, 17, 17, .3); }
.rb-band--w span { animation-direction: reverse; }
@keyframes rbc-marquee { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .rb-band span { animation: none; } }

/* first sips */
.rbc-strip { margin: 24px 0 0; }
.rbc-strip-in { overflow-x: auto; border-radius: 18px; background: var(--paper); scrollbar-width: thin; }
.rbc-strip-in img { display: block; height: clamp(220px, 26vw, 340px); width: auto; max-width: none; }
.rbc-strip figcaption, .rb-shop figcaption, .rb-phones figcaption, .rb-club figcaption, .rb-slides figcaption, .rb-play figcaption, .rb-half-brand figcaption { margin-top: 12px; font: 700 .875rem/1.35 var(--font-text); color: var(--soft); }

/* half & half */
.rb-half { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px clamp(30px, 5vw, 70px); align-items: start; }
.rb-half .rb-head { grid-column: 1 / -1; }
.rb-half-brand { margin: 28px 0 0; }
.rb-half-brand img { display: block; width: 100%; height: auto; border-radius: 18px; background: #fff; }
.rb-half-shot { margin: 0; }
.rb-half-shot img { box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 50px 90px -60px rgba(17, 40, 10, .45); }
.rb-fig-k { margin: 0 0 14px; font: 700 clamp(1.125rem, 1.6vw, 1.375rem)/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.cs-rb:not([data-lang="he"]) .rb-fig-k { text-transform: lowercase; }

/* four new things */
.rb-four { margin: 34px 0 40px; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.rb-four li { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(0, .8fr); gap: 20px; align-items: baseline; padding: clamp(14px, 2.2vh, 24px) 0; border-bottom: 1px solid #deded8; }
.rb-four-n { font: 700 .875rem/1 var(--font-text); color: var(--rg); }
.rb-four b { font: 700 clamp(2rem, 4.6vw, 4rem)/1 var(--font-display); letter-spacing: -.045em; transition: color .3s, translate .5s var(--ease-spring); }
.rb-four li:hover b { color: var(--rg); translate: 10px 0; }
.rb-four li > span:last-child { font: 400 1.0625rem/1.5 var(--font-text); color: var(--soft); }

/* the spark */
.rb-sec--spark { background: #f7ece4; }
.rb-spark { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px clamp(30px, 5vw, 70px); align-items: center; }
.rb-spark .rb-head { grid-column: 1 / -1; }
.rb-sec--spark .rb-k { color: #8a5a3a; }
.rb-takes { margin: 26px 0 0; padding: 0; list-style: none; }
.rb-takes li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 12px; padding: 14px 0; border-top: 1px solid rgba(80, 40, 20, .16); }
.rb-takes span { grid-row: 1 / 3; font: 700 .875rem/1.6 var(--font-text); color: #8a5a3a; }
.rb-takes b { font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -.02em; }
.rb-takes p { margin: 0; font: 400 1rem/1.5 var(--font-text); color: var(--soft); }
.rb-credit { margin: 14px 0 0; font: 400 .8125rem/1.4 var(--font-text); color: #8a7c74; }
.rb-stack { position: relative; aspect-ratio: 1.25; }
.rb-stack img { position: absolute; width: 74%; height: auto; border-radius: 14px; box-shadow: 0 30px 60px -30px rgba(60, 30, 10, .55); transition: translate .8s var(--ease-spring), rotate .8s var(--ease-spring); }
.rb-stack img:nth-child(1) { left: 0; top: 4%; rotate: -5deg; }
.rb-stack img:nth-child(2) { right: 0; top: 22%; rotate: 4deg; z-index: 2; }
.rb-stack img:nth-child(3) { left: 12%; bottom: 0; rotate: -1deg; z-index: 1; }
.rb-stack:hover img:nth-child(1) { translate: -10px -10px; rotate: -8deg; } .rb-stack:hover img:nth-child(2) { translate: 12px 0; rotate: 7deg; }

/* the brand, made digital */
.rb-kit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 14px; margin: 34px 0 14px; }
.rb-palette { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rb-palette span { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 180px; padding: 16px; border-radius: 20px; background: var(--c); color: #fff; box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .08); }
.rb-palette span:nth-child(3), .rb-palette span:nth-child(4) { color: var(--ink); }
.rb-palette i { display: none; }
.rb-palette b { font: 700 1rem/1.2 var(--font-text); }
.rb-palette code { font: 500 .75rem/1 ui-monospace, Menlo, monospace; opacity: .8; }
.rb-type { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 22px; border-radius: 20px; background: var(--ink); color: #fff; }
.rb-type-aa { margin: 0 0 auto; font: 700 clamp(4rem, 8vw, 7rem)/.9 'SimplerPro', var(--font-text); letter-spacing: -.04em; }
.rb-type-aa span { color: var(--rg); }
.rb-type b { font: 700 1.25rem/1.1 var(--font-text); }
.rb-type p { margin: 0; font: 400 .9375rem/1.5 var(--font-text); color: rgba(255, 255, 255, .7); }
.rb-slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rb-slides figure { margin: 0; }
.rb-slides img { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(17, 17, 17, .08); }

/* the playground: a collage of the options */
.rb-play { display: grid; gap: 26px; margin-top: 34px; }
.rb-play-row { display: flex; gap: 14px; align-items: flex-start; }
.rb-play-row figure { flex: var(--r) 1 0; min-width: 0; margin: 0; }
.rb-play-img { display: block; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .06); }
.rb-play-img img { display: block; width: 100%; height: auto; }
.rb-sum { margin: 44px 0 0; max-width: 30ch; font: 700 clamp(1.5rem, 2.8vw, 2.375rem)/1.2 var(--font-display); letter-spacing: -.025em; }
.rb-sum::before { content: '“'; color: var(--rg); }
.rb-sum::after { content: '”'; color: var(--rg); }

/* the one we built: scroll down, the site slides sideways */
.rb-sec--built { padding-bottom: 0; }
.rb-film { margin: 34px 0 0; overflow: hidden; border-radius: 24px; background: #f2f3f6; }
.rb-film video { display: block; width: 100%; height: auto; }
.rb-side { position: relative; height: calc(var(--n) * 90vh); margin-top: 20px; }
.rb-side-stick { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; }
.rb-side-browser .rb-screen { aspect-ratio: 864 / 540; direction: ltr; }
.rb-side-track { display: block; width: calc(var(--n) * 100%); height: 100%; translate: calc(var(--p, 0) * -100% * (var(--n) - 1) / var(--n)) 0; will-change: translate; }
.rb-side-track img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rb-side-meter { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 0; }
.rb-side-meter span { display: flex; gap: 6px; }
.rb-side-meter i { width: 26px; height: 4px; border-radius: 4px; background: #d8d8d2; transition: background .3s, width .4s var(--ease-spring); }
.rb-side-meter i:nth-child(1) { background: var(--rg); }
.rb-side-meter b { font: 700 .875rem/1 var(--font-text); color: var(--soft); }
.rb-phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 4vw, 56px); padding-bottom: clamp(90px, 13vh, 160px); }
.rb-phones figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.rb-phones .rb-phone { width: min(100%, 290px); aspect-ratio: 668 / 1400; }
.rb-phones .rb-phone-screen img { height: 100%; object-fit: cover; object-position: top; }

/* catalogue & checkout */
.rb-shop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 34px; align-items: start; }
.rb-shop figure { margin: 0; }
.rb-flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); margin: 56px 0 0; padding: 0; list-style: none; }
.rb-flow::before { content: ''; position: absolute; left: 4%; right: 4%; top: 15px; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 16px); opacity: .25; }
.rb-flow li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rb-flow-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--rg); color: #fff; font: 700 .9375rem/1 var(--font-text); }
.rb-flow .rb-phone { width: min(100%, 250px); }
.rb-flow b { font: 700 1rem/1.3 var(--font-text); text-align: center; }

/* for teams */
.rb-b2b { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px clamp(30px, 5vw, 70px); align-items: center; }
.rb-b2b .rb-head { grid-column: 1 / -1; }
.rbc-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.rbc-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 99px; background: #fff; font: 700 .9375rem/1 var(--font-text); box-shadow: inset 0 0 0 1px rgba(17, 17, 17, .1); }
.rbc-steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8125rem; }
.rb-b2b-art { position: relative; padding: 0 0 40px; }
.rb-b2b-art .rb-browser { width: 88%; }
.rb-b2b-phone { position: absolute; right: 0; bottom: 0; width: 28%; }

/* what the eyes said */
.rb-sec--test { background: var(--ink); color: #fff; }
.rb-sec--test .rb-h { color: #fff; }
.rb-sec--test .rb-p { color: rgba(255, 255, 255, .75); }
.rb-test { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(30px, 5vw, 70px); align-items: start; }
.rb-test .rb-head { grid-column: 1 / -1; }
.rb-heat { position: relative; margin: 0; }
.rb-heat img { display: block; width: 100%; height: auto; border-radius: 20px; }
.rb-heat-tag { position: absolute; top: -14px; display: flex; flex-direction: column; gap: 2px; max-width: 46%; padding: 10px 12px; border-radius: 14px; background: #fff; color: var(--soft); font: 400 .8125rem/1.35 var(--font-text); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.rb-heat-tag span { align-self: flex-start; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--rg); color: #fff; font: 700 .75rem/1 var(--font-text); }
.rb-heat-tag b { color: var(--ink); font: 700 .9375rem/1.25 var(--font-text); }
.rb-heat-tag--a { left: 4%; } .rb-heat-tag--b { right: 4%; }
.rb-outcome { grid-column: 1 / -1; margin: 18px 0 0; padding: 22px 26px; border-radius: 20px; background: var(--rg); color: var(--ink); font: 700 clamp(1.125rem, 1.8vw, 1.5rem)/1.35 var(--font-display); letter-spacing: -.01em; }

/* the club */
.rb-tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0 34px; padding: 0; list-style: none; }
.rb-tiers li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 20px 24px; border-radius: 22px; background: var(--paper); }
.rb-tier-cup { position: relative; width: 42px; height: 54px; margin: 18px 0 14px; border: 2.5px solid var(--ink); border-top-width: 4px; border-radius: 4px 4px 9px 9px; overflow: hidden; }
.rb-tier-cup::before { content: ''; position: absolute; left: 60%; top: -24px; width: 3px; height: 26px; background: var(--c); rotate: 14deg; }
.rb-tier-cup i { position: absolute; inset: auto 0 0; height: 0; background: var(--c); transition: height 1.4s var(--ease-spring) calc(.3s + var(--i) * .15s); }
.rb-tiers li.is-in .rb-tier-cup i, .rb-tiers li:not(.rb-rise) .rb-tier-cup i { height: var(--fill); }
.rb-tiers small { font: 400 .875rem/1 var(--font-text); color: var(--soft); }
.rb-tiers b { font: 700 clamp(2rem, 3.6vw, 3rem)/.95 var(--font-display); letter-spacing: -.04em; color: var(--c); }
.rb-tiers li > span:last-child { margin-top: 6px; font: 400 .9375rem/1.4 var(--font-text); color: var(--soft); }
.rb-club { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 14px; align-items: start; }
.rb-club figure { margin: 0; }
.rb-club img { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px rgba(17, 17, 17, .08); }
.rb-club figure:last-child img { max-height: 640px; object-fit: cover; object-position: top; }

/* the end: time to blend */
.rb-end { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 16vh, 180px) 0 clamp(90px, 13vh, 140px); background: var(--rg); color: var(--ink); text-align: center; }
.rbc-loop--end { width: min(44vw, 520px); inset: auto auto -30% -6%; color: #fff; opacity: .35; }
.rbc-loop--end path { stroke-dashoffset: 0; }
.rb-end-logo { display: block; height: 42px; width: auto; margin: 0 auto 26px; }
.rb-end-h { margin: 0; font: 700 clamp(3.5rem, 11vw, 10rem)/.85 var(--font-display); letter-spacing: -.055em; }
.rb-end .rb-p { margin: 22px auto 0; color: rgba(17, 17, 17, .75); }
.rb-end-nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; margin: 46px 0 0; }
.rb-link { padding: 6px 0; background: none; color: var(--ink); font: 700 1rem/1 var(--font-text); cursor: pointer; background-image: linear-gradient(var(--ink), var(--ink)); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .4s var(--ease-apple); }
.rb-link:hover, .rb-link:focus-visible { background-size: 100% 2px; }
.rb-end-by { margin: 22px 0 0; font: 400 .875rem/1 var(--font-text); color: rgba(17, 17, 17, .6); }

/* rising in, once */
@media (prefers-reduced-motion: no-preference) {
  .js .cs-rb .rb-rise { opacity: 0; translate: 0 34px; transition: opacity .8s var(--ease-apple) calc(var(--i, 0) * 80ms), translate 1s var(--ease-spring) calc(var(--i, 0) * 80ms); }
  .js .cs-rb .rb-rise.is-in { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) { .rbc-loop path { stroke-dashoffset: 0; } .rb-tier-cup i { height: var(--fill); } }

/* tablets */
@media (max-width: 999px) {
  .rb-hero-in, .rb-brief, .rb-half, .rb-spark, .rb-b2b, .rb-test, .rb-kit, .rb-club { grid-template-columns: 1fr; }
  .rb-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; } .rb-flow::before { display: none; }
  .rb-side { height: calc(var(--n) * 70vh); }
}
/* phones */
@media (max-width: 700px) {
  .rb-hero { padding-top: calc(118px + env(safe-area-inset-top)); }
  .rbc-loop--hero { width: 90vw; inset: -2% -30% auto auto; opacity: .9; }
  .rbc-fruit { width: calc(46px * var(--s)); }
  .rbc-meta { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rb-four li { grid-template-columns: 34px minmax(0, 1fr); }
  .rb-four li > span:last-child { grid-column: 2; }
  .rb-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rb-palette span { min-height: 110px; }
  .rb-slides { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-play-row { flex-direction: column; gap: 22px; } .rb-play-row figure { flex: none; width: 100%; }
  .rb-play-row figure.is-tall { width: min(62%, 300px); align-self: center; }
  .rb-phones { grid-template-columns: 1fr; justify-items: center; }
  .rb-phones .rb-phone { width: min(76%, 280px); }
  .rb-shop { grid-template-columns: 1fr; }
  .rb-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rb-heat-tag { position: static; max-width: none; margin-top: 10px; }
  .rb-heat { display: flex; flex-direction: column; }
  .rb-side { height: calc(var(--n) * 55vh); }
}
/* rebar, round 2: the sideways stretch is shorter, the steps sit on one line each, the loop
   fits the corner, the cup is a cup */
.rb-side { height: calc(var(--n) * 62vh); }
.rb-side-stick { align-items: center; }
.rb-phones { padding-top: 10px; }
.rbc-steps { display: grid; grid-template-columns: repeat(2, max-content); }
.rbc-steps li { white-space: nowrap; }
.rbc-loop--hero { width: min(40vw, 500px); inset: -14% -4% auto auto; }
.rb-cup, .rb-tier-cup { border-radius: 2px 2px 9px 9px; clip-path: none; transform: perspective(60px) rotateX(-10deg); transform-origin: top; }
.rb-cup::after, .rb-tier-cup::after { content: ''; position: absolute; left: -4px; right: -4px; top: -6px; height: 5px; border-radius: 3px; background: var(--ink); }
.rb-tier-cup { overflow: visible; }
.rb-tier-cup i { border-radius: 0 0 7px 7px; }
.rb-tier-cup::before { top: -30px; }
/* the meter under the browser: each dash lights as its screen comes in */
.rb-side-meter i { background: color-mix(in srgb, var(--rg) calc(clamp(0, (var(--p, 0) * (var(--n) - 1) - var(--i) + 1) * 100, 100) * 1%), #d8d8d2); }
.rb-side-meter i:nth-child(1) { background: var(--rg); }
/* rebar on phones: images keep their own shape, the phones keep their width, the sideways stretch is tight */
@media (max-width: 700px) {
  .rb-fig img { aspect-ratio: auto; object-fit: contain; }
  .rb-phones figure { width: 100%; }
  .rb-phones .rb-phone { width: min(70%, 260px); height: auto; aspect-ratio: 668 / 1400; flex: none; }
  .rb-side { height: calc(var(--n) * 38vh); }
  .rb-side-stick { height: 70vh; top: 15vh; }
  .rb-flow .rb-phone { width: 100%; }
}
.rb-fig--board { overflow-x: auto; border-radius: 24px; scrollbar-width: thin; }
.rb-fig--board img { min-width: 900px; aspect-ratio: 1544 / 520; height: auto; }
.rbc-strip-in img { aspect-ratio: 1525 / 386; }
@media (max-width: 700px) { .rb-fig--board img { min-width: 640px; } }
/* rebar case in Hebrew: what scrolls sideways keeps the site's own direction */
.cs-rb[dir="rtl"] :is(.rbc-strip-in, .rb-fig--board, .rb-side-browser .rb-screen) { direction: ltr; }

/* ══ rebar world, round 3: the monitor plays the site's sideways scroll; the phone stays on the
   home screen; the steps are the order flow on the mobile site - phones joined by the loop ══ */
.rb-scroll-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rb-order-phone { position: relative; z-index: 1; display: block; height: min(78cqh, 100cqh - 70px); aspect-ratio: 750 / 1624; padding: 5px; border-radius: 22px / 10px; border-radius: 13% / 6%; background: #111;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 30px 50px -26px rgba(20, 40, 0, .45); transition: translate .5s var(--ease-spring); }
.rb-order-screen { display: block; height: 100%; overflow: hidden; border-radius: 11% / 5%; background: #fff; }
.rb-order-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media (hover: hover) { .rb-step:hover .rb-order-phone { translate: 0 -6px; } }
@media (max-width: 700px) {
  .tile--rebar-order .rb-step-k { font-size: .6875rem; line-height: 1.15; gap: 5px; align-items: center; }
  .tile--rebar-order .rb-step-k b { width: 1.7em; height: 1.7em; }
  .tile--rebar-order .rb-order-phone { height: min(72cqh, 100cqh - 64px); padding: 3px; }
  .tile--rebar-order .rb-replay { display: none; }
}

/* Tidhar · the crane follows the cursor: the trolley along the jib, the cable up and down */
.tile--tidhar-building .crane-trolley, .tile--tidhar-building .crane-load { will-change: transform; }

/* ══ Bank Hapoalim · Product of the Year: press it and a 3D trophy rises, haloed in gold ══ */
.tile--seal { cursor: pointer; overflow: hidden; }
.trophy-stage { position: absolute; z-index: 2; left: 50%; top: 4%; width: 100%; height: 58%; translate: -50% 0; pointer-events: none; }
.trophy-canvas { position: absolute; inset: -10% 0 0; width: 100%; height: 110%; opacity: 0; transition: opacity .3s; }
.is-trophy .trophy-canvas { opacity: 1; }
.trophy-halo { position: absolute; left: 50%; top: 50%; width: 92%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 110, .95), rgba(255, 170, 40, .45) 45%, rgba(255, 150, 20, 0) 75%); opacity: 0; scale: .3; filter: blur(2px); transition: opacity .5s, scale .9s var(--ease-spring); }
.trophy-rays { position: absolute; left: 50%; top: 50%; width: 130%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 215, 120, .55) 0 6deg, transparent 6deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 72%); mask: radial-gradient(closest-side, #000 20%, transparent 72%); opacity: 0; transition: opacity .5s; }
.is-trophy .trophy-halo { opacity: 1; scale: 1; animation: halo-breathe 1.6s ease-in-out .4s infinite alternate; }
.is-trophy .trophy-rays { opacity: .9; animation: rays-spin 6s linear infinite; }
@keyframes halo-breathe { to { scale: 1.12; } }
@keyframes rays-spin { to { rotate: 360deg; } }
.trophy-sparks i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; background: #ffe7a1; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); opacity: 0; }
.is-trophy .trophy-sparks i { animation: trophy-spark 1.4s cubic-bezier(.2, .7, .3, 1) var(--t) both; }
@keyframes trophy-spark { 0% { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(var(--s)); } 25% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d) * -2.2)) scale(calc(var(--s) * .4)) rotate(180deg); } }
.trophy-stage.is-emoji::after { content: '🏆'; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-size: clamp(2.5rem, 9cqh, 5rem); animation: halo-breathe .8s ease-in-out infinite alternate; }
.tile--seal .seal-t, .tile--seal .seal-line { position: relative; z-index: 3; transition: translate .6s var(--ease-spring); }
.is-trophy .seal-t { translate: 0 8%; }
.is-trophy .seal-line { color: #ffd36e; }
@media (prefers-reduced-motion: reduce) { .is-trophy .trophy-rays { animation: none; } .is-trophy .trophy-halo { animation: none; } }

/* ══ FlyAll · the orb is a switch: it warps the prototype open, and folds it away ══ */
.orb-waves, .orb-burst { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.orb-waves i { position: absolute; inset: 0; border-radius: 50%; padding: 2.2cqw; opacity: 0;
  background: conic-gradient(from 0deg, #1b5ece, #824aea, #f63de4, #4f6ff0, #1b5ece); -webkit-mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.orb.is-warp .orb-waves i { animation: orb-wave 1.1s cubic-bezier(.16, .8, .3, 1) both; }
.orb.is-warp .orb-waves i:nth-child(2) { animation-delay: .12s; } .orb.is-warp .orb-waves i:nth-child(3) { animation-delay: .24s; }
@keyframes orb-wave { 0% { opacity: .95; scale: .8; } 100% { opacity: 0; scale: 2.5; } }
.orb.is-implode .orb-waves i { animation: orb-wave-in .8s cubic-bezier(.5, 0, .2, 1) both; }
.orb.is-implode .orb-waves i:nth-child(2) { animation-delay: .08s; } .orb.is-implode .orb-waves i:nth-child(3) { animation-delay: .16s; }
@keyframes orb-wave-in { 0% { opacity: 0; scale: 2.2; } 40% { opacity: .8; } 100% { opacity: 0; scale: .85; } }
.orb-burst i { position: absolute; left: 50%; top: 50%; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2); background: var(--c); opacity: 0;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); filter: drop-shadow(0 0 4px #f63de4); }
.orb.is-warp .orb-burst i { animation: orb-burst .9s cubic-bezier(.1, .7, .3, 1) .05s both; }
@keyframes orb-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(0) scale(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d))) rotate(140deg) scale(1); } }
.orb.is-warp { animation: orb-pop .9s var(--ease-bounce); }
.orb.is-implode { animation: orb-fold .8s var(--ease-spring); }
@keyframes orb-pop { 0% { scale: 1; } 22% { scale: .84; } 55% { scale: 1.1; } 100% { scale: 1; } }
@keyframes orb-fold { 0% { scale: 1; } 40% { scale: .78; rotate: -40deg; } 100% { scale: 1; rotate: 0deg; } }
.orb.is-warp .orb-ball > i { animation-duration: .7s; }
/* while the prototype is open, the orb stays lit: a halo of its colours turns around it */
.orb-halo { position: absolute; inset: -9%; z-index: 0; border-radius: 50%; opacity: 0; pointer-events: none; transition: opacity .5s, scale .6s var(--ease-spring); scale: .9;
  background: conic-gradient(from 0deg, #1b5ece, #824aea, #f63de4, #4f6ff0, #1b5ece); filter: blur(14px); animation: orb-spin 4s linear infinite; }
.orb.is-open .orb-halo { opacity: .9; scale: 1; }
.orb.is-open .orb-mark { transform: scale(.92); }
@media (prefers-reduced-motion: reduce) { .orb.is-warp, .orb.is-implode, .orb-waves i, .orb-burst i { animation: none !important; } .orb-halo { animation: none; } }

@container (max-width: 190px) { .tile--rebar-punch .punch-hint { display: none; } }

/* About, round 3: no box - the experience and the expertise sit straight on the page */
.xp { border-radius: 0; background: none; box-shadow: none; }
/* six skills: two rows of three on every wide screen (Daniel added 06, 2026-11-07) */
@media (min-width: 901px) {
  .xp-skills ol { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: clamp(20px, 3.4vh, 36px); }
  .xp-skills li:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  [dir="rtl"] .xp-skills li:nth-child(3n + 1) { padding-right: 0; padding-left: clamp(16px, 2.6vw, 40px); border-right: 0; }
}

/* ══ ROOMIE CASE · in roomie's own language - cream paper, ink and one yellow; Outfit for headlines,
   Figtree for reading (Figma iF48… Foundations 81:54048). The research and ideation sit in designed
   bands, and the brand decisions come before the UI. Everything here is scoped to #hotel-case. ══ */
#hotel-case { --cx-y: #ffcc00; --cx-y1: #fff3c2; --cx-ink: #202020; --cx-ink6: #55524b; --cx-ink4: #8e897e; --cx-cream: #f8f5ef; --cx-paper: #fffdf8; --cx-sand: #ede3c8; --cx-line: #e7e0d1; --cx-gold: #a87400;
  --csi-bg: var(--cx-cream); --csi-ink: var(--cx-ink); --csi-soft: var(--cx-ink6); --csi-line: var(--cx-line);
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-text: 'Figtree', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --cx-bleed: clamp(0px, 4vw, 48px); --cx-pad: max(var(--cx-bleed), 22px); --cx-text: #3b3934;
  font-family: var(--font-text); }
#hotel-case[data-lang="he"] { --font-display: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif; --font-text: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif; }
/* type: Outfit headlines, warm ink for reading */
#hotel-case .csi-h { font: 600 clamp(2rem, 3.4vw, 2.75rem)/1.1 var(--font-display); letter-spacing: -.028em; }
:is(#hotel-case, #clalit-case) .csi-num { display: flex; align-items: center; gap: 10px; color: var(--cx-ink); font: 600 .8125rem/1 var(--font-text); letter-spacing: .12em; }
:is(#hotel-case, #clalit-case) .csi-num::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--cx-y); }
#hotel-case :is(.csi-sub, .csi-body h4) { font: 600 1.25rem/1.3 var(--font-display); letter-spacing: -.01em; }
#hotel-case .csi-body p, #hotel-case :is(.csi-dots, .csi-dashes) li { color: #3b3934; }
#hotel-case .csi-dashes li::before { color: var(--cx-ink4); font-weight: 400; }
:is(#hotel-case, #clalit-case) .csi-chips li { background: var(--cx-y1); color: var(--cx-ink); }
#hotel-case .csi-toc-k, #hotel-case .csi-title { font-family: var(--font-display); }
#hotel-case .csi-toc button:hover, #hotel-case .csi-toc button.is-on { border-inline-start-color: var(--cx-y); }
#hotel-case .csi-toc button.is-on span { color: var(--cx-gold); }
#hotel-case .csi-tag { background: var(--cx-y1); }
/* 01 · the process: four stages on roomie's dashed path, a yellow stop for each; the last one still ahead */
:is(#hotel-case, #clalit-case) .csi-cards { position: relative; grid-template-columns: none !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 22px; padding-top: 42px; }
:is(#hotel-case, #clalit-case) .csi-cards::before { content: ''; position: absolute; top: 8px; inset-inline: 9px 0; border-top: 2px dashed color-mix(in srgb, var(--cx-ink4) 60%, transparent); }
:is(#hotel-case, #clalit-case) .csi-card { position: relative; gap: 6px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
:is(#hotel-case, #clalit-case) .csi-card::before { content: ''; position: absolute; top: -42px; inset-inline-start: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--cx-y); box-shadow: 0 0 0 4px var(--csi-bg), 0 0 0 5.5px var(--cx-ink); }
:is(#hotel-case, #clalit-case) .csi-card:has(.csi-soon)::before { background: var(--csi-bg); box-shadow: 0 0 0 4px var(--csi-bg), inset 0 0 0 1.5px var(--cx-ink4); }
:is(#hotel-case, #clalit-case) .csi-card-ico { display: none; }
:is(#hotel-case, #clalit-case) .csi-card-k { color: var(--cx-gold); }
:is(#hotel-case, #clalit-case) .csi-card h4 { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.015em; }
:is(#hotel-case, #clalit-case) .csi-card ul { gap: 8px; margin-top: 10px; }
:is(#hotel-case, #clalit-case) .csi-card li { font: 400 .9375rem/1.45 var(--font-text); color: var(--cx-ink6); }
:is(#hotel-case, #clalit-case) .csi-soon { align-self: flex-start; margin: 14px 0 0; padding: 6px 10px; border-radius: 99px; background: var(--cx-y1); color: var(--cx-ink); }
/* 02 · kickoff: the take-aways numbered, the objective and the problem side by side */
:is(#hotel-case, #clalit-case) .csi-numbered { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cx-line); }
:is(#hotel-case, #clalit-case) .csi-numbered li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--cx-line); }
:is(#hotel-case, #clalit-case) .csi-numbered span { font: 600 1.375rem/1.35 var(--font-display); color: var(--cx-ink); font-variant-numeric: tabular-nums; }
:is(#hotel-case, #clalit-case) .csi-numbered p { margin: 0; }
:is(#hotel-case, #clalit-case) .csi-statements { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 10px 0; }
:is(#hotel-case, #clalit-case) .csi-st { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 30px); border-radius: 24px; background: var(--cx-y1); }
:is(#hotel-case, #clalit-case) .csi-st--1 { background: var(--cx-ink); }
:is(#hotel-case, #clalit-case) .csi-body .csi-st-k { font: 600 .75rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-gold); }
:is(#hotel-case, #clalit-case) .csi-body .csi-st-t { font: 500 clamp(1.125rem, 1.6vw, 1.3125rem)/1.45 var(--font-display); letter-spacing: -.005em; color: var(--cx-ink); }
:is(#hotel-case, #clalit-case) .csi-body .csi-st--1 .csi-st-k { color: var(--cx-y); }
:is(#hotel-case, #clalit-case) .csi-body .csi-st--1 .csi-st-t { color: var(--cx-cream); }
/* 03 · research: the two methods on one sheet of paper, each with its sample size */
:is(#hotel-case, #clalit-case) .csi-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-inline: calc(-1 * var(--cx-bleed)); padding: clamp(26px, 3.6vw, 44px) var(--cx-pad); border-radius: 28px; background: var(--cx-paper); box-shadow: 0 0 0 1px var(--cx-line), 0 30px 60px -48px rgba(70, 50, 0, .35); }
:is(#hotel-case, #clalit-case) .csi-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding-inline-end: clamp(18px, 2.6vw, 34px); }
:is(#hotel-case, #clalit-case) .csi-col + .csi-col { padding-inline: clamp(18px, 2.6vw, 34px) 0; border-inline-start: 1px solid var(--cx-line); }
:is(#hotel-case, #clalit-case) .csi-col .csi-sub { margin: 4px 0 -8px; }
:is(#hotel-case, #clalit-case) .csi-col p, :is(#hotel-case, #clalit-case) .csi-col :is(.csi-dots, .csi-dashes) li { font-size: 1rem; line-height: 1.65; }
:is(#hotel-case, #clalit-case) .csi-col .csi-chips li { font-size: .8125rem; padding: 6px 12px; }
:is(#hotel-case, #clalit-case) .csi-kpi { display: flex; align-items: baseline; gap: 12px; margin: 0; }
:is(#hotel-case, #clalit-case) .csi-kpi b { font: 600 clamp(3rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -.04em; color: var(--cx-ink); box-shadow: inset 0 -.16em 0 var(--cx-y); }
:is(#hotel-case, #clalit-case) .csi-kpi span { font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-ink4); }
/* … and what it found: a dark band - the numbers in yellow, the guests' own words */
#hotel-case .csi-split { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; margin-inline: calc(-1 * var(--cx-bleed)); padding: clamp(28px, 4vw, 52px) var(--cx-pad); border-radius: 28px; background: var(--cx-ink); color: var(--cx-cream); }
#hotel-case .csi-split > :is(.csi-rings, .csi-quotes) { display: contents; }
#hotel-case .csi-split .csi-quotes .csi-sub { order: -1; grid-column: 1 / -1; margin: 0; color: var(--cx-y); font: 600 .75rem/1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; }
#hotel-case .csi-split .csi-ring { order: 0; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto; align-content: start; gap: 14px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
#hotel-case .csi-split .csi-ring svg { grid-row: 1; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(circle, transparent 39%, rgba(248, 245, 239, .14) 40% 48%, transparent 49%); }
#hotel-case .csi-split .csi-ring b { font: 600 clamp(2.25rem, 3.6vw, 3rem)/1 var(--font-display); letter-spacing: -.035em; color: var(--cx-cream); }
#hotel-case .csi-split .csi-ring figcaption { grid-column: 1 / -1; font: 400 .9375rem/1.55 var(--font-text); color: rgba(248, 245, 239, .72); }
#hotel-case .csi-split blockquote { order: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; border-radius: 20px; background: rgba(248, 245, 239, .07); color: var(--cx-cream); font: 500 1.0625rem/1.5 var(--font-display); letter-spacing: -.005em; }
#hotel-case .csi-split blockquote::before { margin: 0; font: 600 2.25rem/.6 var(--font-display); color: var(--cx-y); padding-top: 8px; }
/* 04 · the persona, on roomie's pale yellow: who he is beside what he said, then three notes */
:is(#hotel-case, #clalit-case) .csi-persona { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px clamp(24px, 4vw, 48px); margin-inline: calc(-1 * var(--cx-bleed)); padding: clamp(26px, 4vw, 48px) var(--cx-pad); border-radius: 28px; background: var(--cx-y1); box-shadow: none; }
:is(#hotel-case, #clalit-case) .csi-persona-top { grid-column: 1; }
:is(#hotel-case, #clalit-case) .csi-persona-bio { grid-column: 1; margin: 0; font-size: 1.0625rem; color: var(--cx-text); }
:is(#hotel-case, #clalit-case) .csi-persona .csi-quote { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; padding: 0; border: 0; }
:is(#hotel-case, #clalit-case) .csi-persona .csi-quote p { font: 500 clamp(1.5rem, 2.6vw, 2.125rem)/1.22 var(--font-display); letter-spacing: -.02em; color: var(--cx-ink); text-wrap: balance; }
:is(#hotel-case, #clalit-case) .csi-persona-photo { width: 96px; height: 96px; border-radius: 28px; box-shadow: 0 0 0 4px var(--cx-paper); }
:is(#hotel-case, #clalit-case) .csi-persona h4 { font: 600 1.625rem/1.15 var(--font-display); }
:is(#hotel-case, #clalit-case) .csi-persona-place { color: var(--cx-gold); }
:is(#hotel-case, #clalit-case) .csi-persona-cols { grid-column: 1 / -1; gap: 12px; margin-top: 6px; }
:is(#hotel-case, #clalit-case) .csi-note { padding: 20px; border-radius: 20px; background: var(--cx-paper); box-shadow: 0 0 0 1px rgba(32, 32, 32, .05); }
:is(#hotel-case, #clalit-case) .csi-note h5 { font: 600 1.0625rem/1.3 var(--font-display); }
:is(#hotel-case, #clalit-case) .csi-note p { font-size: .9688rem; color: var(--cx-text); }
/* 05 · the ideation process: four stops on the path; the loops are where it went back and forth */
:is(#hotel-case, #clalit-case) .csi-path { position: relative; padding-top: 48px; }
:is(#hotel-case, #clalit-case) .csi-path ol { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
:is(#hotel-case, #clalit-case) .csi-path ol::before { content: ''; position: absolute; top: 8px; inset-inline: calc(50% / var(--n)); border-top: 2px dashed color-mix(in srgb, var(--cx-ink4) 60%, transparent); }
:is(#hotel-case, #clalit-case) .csi-path li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
:is(#hotel-case, #clalit-case) .csi-path li i { width: 18px; height: 18px; border-radius: 50%; background: var(--cx-y); box-shadow: 0 0 0 4px var(--csi-bg), 0 0 0 5.5px var(--cx-ink); }
:is(#hotel-case, #clalit-case) .csi-path li span { display: block; padding-inline: 6px; font: 500 1.0625rem/1.3 var(--font-display); }
:is(#hotel-case, #clalit-case) .csi-path li span::first-letter { text-transform: uppercase; }
:is(#hotel-case, #clalit-case) .csi-path-loop { position: absolute; top: 14px; height: 30px; inset-inline-start: calc((var(--a) + .5) * 100% / var(--n)); width: calc((var(--z) - var(--a)) * 100% / var(--n)); border: 2px dashed var(--cx-ink4); border-bottom: 0; border-radius: 999px 999px 0 0; }
:is(#hotel-case, #clalit-case) .csi-path-loop::after { content: ''; position: absolute; inset-inline-end: -7px; bottom: -2px; border: 6px solid transparent; border-top: 7px solid var(--cx-ink4); border-bottom: 0; }
/* 06 · ideation: the two directions, and the one that was taken */
:is(#hotel-case, #clalit-case) .csi-choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
:is(#hotel-case, #clalit-case) .csi-choice-opt { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 26px; border-radius: 24px; background: var(--cx-paper); box-shadow: inset 0 0 0 1px var(--cx-line); }
:is(#hotel-case, #clalit-case) .csi-choice-opt.is-pick { background: var(--cx-y1); box-shadow: inset 0 0 0 1.5px var(--cx-ink); }
:is(#hotel-case, #clalit-case) .csi-choice-k { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cx-cream); box-shadow: inset 0 0 0 1px var(--cx-line); font: 600 .9375rem/1 var(--font-display); }
:is(#hotel-case, #clalit-case) .is-pick .csi-choice-k { background: var(--cx-ink); color: var(--cx-y); box-shadow: none; }
:is(#hotel-case, #clalit-case) .csi-choice-opt p { font-size: 1.0625rem; }
:is(#hotel-case, #clalit-case) .csi-choice-opt:not(.is-pick) p { color: var(--cx-ink6); }
:is(#hotel-case, #clalit-case) .csi-choice-tick { position: absolute; top: 22px; inset-inline-end: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--cx-y); box-shadow: 0 0 0 1.5px var(--cx-ink); }
:is(#hotel-case, #clalit-case) .csi-choice-tick::after { content: ''; position: absolute; left: 9px; top: 6px; width: 6px; height: 11px; border: solid var(--cx-ink); border-width: 0 2px 2px 0; rotate: 45deg; }
/* 07–08 · sketches on sand, wireframes on paper - sheets on a table */
#hotel-case .csi-fig { background: var(--cx-paper); box-shadow: 0 0 0 1px var(--cx-line); }
:is(#hotel-case, #clalit-case) .csi-fig--sand, :is(#hotel-case, #clalit-case) .csi-fig--paper { margin-inline: calc(-1 * var(--cx-bleed)); padding: clamp(18px, 3.4vw, 44px); border-radius: 28px; }
:is(#hotel-case, #clalit-case) .csi-fig--sand { background: var(--cx-sand); box-shadow: none; }
:is(#hotel-case, #clalit-case) .csi-fig--sand img { border-radius: 14px; box-shadow: 0 24px 44px -26px rgba(70, 50, 0, .5); }
:is(#hotel-case, #clalit-case) .csi-fig--paper img { border-radius: 10px; }
/* the UI: paper cards on the cream page */
#hotel-case .csi-feature { background: var(--cx-paper); box-shadow: 0 0 0 1px var(--cx-line); }
#hotel-case .csi-feature-copy h4 { font: 600 1.5rem/1.2 var(--font-display); letter-spacing: -.02em; }
#hotel-case .csi-feature-copy--big p { font: 500 1.375rem/1.35 var(--font-display); }
#hotel-case .csi-ast { stroke: var(--cx-gold); }
#hotel-case .csi-end-h { font-family: var(--font-display); font-weight: 600; }
#hotel-case .csi-end-h i { color: var(--cx-y); }
#hotel-case .csi-btn { background: var(--cx-ink); }
/* 09 · brand decisions: each one - what was decided, the artefact, why */
#hotel-case .csi-dec { display: flex; flex-direction: column; gap: 26px; margin-top: 30px; padding-top: 44px; border-top: 1px solid var(--cx-line); }
#hotel-case .csi-body > p + .csi-dec { margin-top: 18px; }
#hotel-case .csi-dec-head h4 { margin: 16px 0 0; max-width: 24ch; font: 600 clamp(1.625rem, 2.8vw, 2.25rem)/1.12 var(--font-display); letter-spacing: -.026em; text-wrap: balance; }
#hotel-case .csi-dec-k { display: flex; align-items: center; gap: 12px; margin: 0; font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-ink6); }
#hotel-case .csi-dec-k span { display: grid; place-items: center; min-width: 36px; height: 24px; padding: 0 8px; border-radius: 99px; background: var(--cx-y); color: var(--cx-ink); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
#hotel-case .csi-dec-art { margin-inline: calc(-1 * var(--cx-bleed)); }
#hotel-case .csi-dec-copy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px clamp(22px, 3vw, 36px); }
#hotel-case .csi-dec-copy p { font-size: 1rem; line-height: 1.7; }
#hotel-case .csi-dec-use { display: flex; flex-direction: column; gap: 14px; }
#hotel-case .csi-body .csi-dec-use-k { font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-ink4); }
#hotel-case .csi-dec-use-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#hotel-case .csi-dec-use figure { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; padding: 18px 12px 16px; border-radius: 22px; background: var(--cx-paper); box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-dec-use img { display: block; width: min(100%, 150px); height: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgba(32, 32, 32, .06), 0 16px 28px -20px rgba(70, 50, 0, .4); }
#hotel-case .csi-dec-use figcaption { font: 500 .875rem/1.35 var(--font-text); color: var(--cx-ink6); text-align: center; }
/* the logo and its variations, on the brand's three grounds */
#hotel-case .csi-logos { display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 12px; }
#hotel-case .csi-logo-t { position: relative; display: grid; place-items: center; margin: 0; padding: 30px 22px 42px; border-radius: 22px; }
#hotel-case .csi-logo-t.is-main { grid-row: span 2; }
#hotel-case .csi-logo-t--paper { background: var(--cx-paper); box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-logo-t--ink { background: var(--cx-ink); }
#hotel-case .csi-logo-t--yellow { background: var(--cx-y); }
#hotel-case .csi-logo-t img { display: block; width: 74%; height: auto; }
#hotel-case .csi-logo-t.is-main img { width: 78%; }
#hotel-case .csi-logo-t img[src$="icon.png"] { width: auto; height: 76px; }
#hotel-case .csi-logo-t img[src*="mark"] { width: 40%; }
#hotel-case .csi-logo-t figcaption { position: absolute; inset-inline-start: 16px; bottom: 14px; font: 600 .6875rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-ink4); }
#hotel-case .csi-logo-t--ink figcaption { color: rgba(248, 245, 239, .55); }
#hotel-case .csi-logo-t--yellow figcaption { color: rgba(32, 32, 32, .62); }
/* the colour system: the three that carry it, then the supporting tokens */
#hotel-case .csi-sw { display: flex; flex-direction: column; gap: 12px; }
#hotel-case .csi-sw-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 12px; }
#hotel-case .csi-sw-big { display: flex; flex-direction: column; gap: 4px; min-height: 210px; padding: 18px 20px 20px; border-radius: 22px; background: var(--c); color: var(--t); box-shadow: inset 0 0 0 1px rgba(32, 32, 32, .08); }
#hotel-case .csi-sw-big code { margin-bottom: auto; font: 500 .8125rem/1 ui-monospace, 'SF Mono', Menlo, monospace; opacity: .78; }
#hotel-case .csi-sw-big b { font: 600 1.25rem/1.2 var(--font-display); }
#hotel-case .csi-sw-big span { font: 400 .875rem/1.45 var(--font-text); opacity: .84; }
#hotel-case .csi-sw-rest { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
#hotel-case .csi-sw-rest li { display: grid; grid-template-columns: 34px minmax(0, 1fr); align-content: start; column-gap: 10px; row-gap: 2px; padding: 12px; border-radius: 16px; background: var(--cx-paper); box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-sw-rest i { grid-row: 1 / 4; width: 34px; height: 34px; border-radius: 10px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(32, 32, 32, .1); }
#hotel-case .csi-sw-rest b { font: 600 .875rem/1.25 var(--font-text); }
#hotel-case .csi-sw-rest code { font: 500 .75rem/1.3 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--cx-ink4); }
#hotel-case .csi-sw-rest span { font: 400 .8125rem/1.4 var(--font-text); color: var(--cx-ink6); }
/* typography: the pair, then the whole ramp from Figma */
#hotel-case .csi-type { display: flex; flex-direction: column; gap: 12px; }
#hotel-case .csi-type-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#hotel-case .csi-type-f { display: flex; flex-direction: column; padding: 22px 24px 24px; border-radius: 22px; background: var(--cx-paper); box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-type-f:first-child { background: var(--cx-ink); color: var(--cx-cream); box-shadow: none; }
#hotel-case .csi-body .csi-type-aa { margin: 0; font: 500 clamp(4rem, 8vw, 5.75rem)/1 var(--f), sans-serif; letter-spacing: -.03em; color: inherit; }
#hotel-case .csi-body .csi-type-n { margin: 18px 0 0; font: 600 1.25rem/1.2 var(--f), sans-serif; color: inherit; }
#hotel-case .csi-body .csi-type-r { margin: 6px 0 0; font: 600 .6875rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-ink4); }
#hotel-case .csi-body .csi-type-x { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--cx-line); font: 500 1.0625rem/1.4 var(--f), sans-serif; color: inherit; }
#hotel-case .csi-body .csi-type-f:first-child .csi-type-x { border-top-color: rgba(248, 245, 239, .16); font-size: 2.75rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--cx-y); }
#hotel-case .csi-type-ramp { margin: 0; padding: clamp(16px, 2.6vw, 28px); border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-type-ramp img { display: block; width: 100%; height: auto; }
/* icons: one drawn large, with its rules - then the family on a grid */
#hotel-case .csi-iconset { display: flex; flex-direction: column; gap: 12px; }
#hotel-case .csi-anatomy { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(20px, 3vw, 36px); padding: clamp(18px, 3vw, 30px); border-radius: 22px; background: var(--cx-paper); box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-anatomy figure { display: grid; place-items: center; aspect-ratio: 1; margin: 0; border-radius: 18px; background: radial-gradient(circle at 50% 56%, #fff 0, #fff 30%, var(--cx-cream) 72%); }
#hotel-case .csi-anatomy figure img { width: min(76%, 216px); height: auto; }
#hotel-case .csi-anatomy ol { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; counter-reset: rm-an; }
#hotel-case .csi-anatomy li { counter-increment: rm-an; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--cx-line); }
#hotel-case .csi-anatomy li:last-child { border-bottom: 0; }
#hotel-case .csi-anatomy li::before { content: counter(rm-an, decimal-leading-zero); grid-row: 1 / 3; padding-top: 4px; font: 600 .75rem/1 var(--font-text); color: var(--cx-gold); }
#hotel-case .csi-anatomy b { font: 600 1.0625rem/1.3 var(--font-display); }
#hotel-case .csi-anatomy span { font: 400 .9375rem/1.5 var(--font-text); color: var(--cx-ink6); }
#hotel-case .csi-icgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 0; overflow: hidden; list-style: none; border-radius: 22px; background: var(--cx-line); box-shadow: 0 0 0 1px var(--cx-line); }
#hotel-case .csi-icgrid li { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; padding: 18px 6px 14px; background: var(--cx-paper); }
#hotel-case .csi-icgrid img { display: block; width: auto; height: 60px; max-width: 86%; object-fit: contain; mix-blend-mode: multiply; }
#hotel-case .csi-icgrid span { font: 500 .8125rem/1.2 var(--font-text); color: var(--cx-ink6); text-align: center; }
/* illustration: the town the brand pattern comes from, and the rooms cut out of it */
#hotel-case .csi-scenes { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
#hotel-case .csi-scenes figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; }
#hotel-case .csi-scenes-map { grid-row: span 2; min-height: 320px; }
#hotel-case .csi-scenes-map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#hotel-case .csi-scene { display: grid; place-items: center; padding: 14px 14px 40px; background: #fff; box-shadow: inset 0 0 0 1px var(--cx-line); }
#hotel-case .csi-scene img { display: block; width: 88%; height: auto; mix-blend-mode: multiply; }
#hotel-case .csi-scenes figcaption { position: absolute; inset-inline-start: 14px; bottom: 14px; font: 600 .6875rem/1 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--cx-ink6); }
#hotel-case .csi-scenes-map figcaption { padding: 7px 11px; border-radius: 99px; background: rgba(255, 253, 248, .92); color: var(--cx-ink); }
@media (max-width: 700px) {
  #hotel-case .csi-type-ramp { overflow-x: auto; overscroll-behavior-x: contain; }
  #hotel-case .csi-type-ramp img { width: 600px; max-width: none; }
  #hotel-case .csi-dec-copy { grid-template-columns: 1fr; }
  #hotel-case .csi-split { grid-template-columns: 1fr; gap: 20px; }
  #hotel-case .csi-split .csi-ring { grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
  #hotel-case .csi-split .csi-ring svg { width: 56px; height: 56px; }
  #hotel-case .csi-split .csi-ring figcaption { grid-column: 2; }
  #hotel-case .csi-split .csi-ring b { grid-column: 2; grid-row: 1; align-self: end; }
}
@media (max-width: 700px) {
  :is(#hotel-case, #clalit-case) { --cx-bleed: 8px; --cx-pad: 20px; }
  :is(#hotel-case, #clalit-case) .csi-cards { grid-template-columns: 1fr !important; grid-auto-flow: row; gap: 30px; padding: 0; padding-inline-start: 38px; }
  :is(#hotel-case, #clalit-case) .csi-cards::before { top: 8px; bottom: 8px; inset-inline: 8px auto; border-top: 0; border-inline-start: 2px dashed color-mix(in srgb, var(--cx-ink4) 60%, transparent); }
  :is(#hotel-case, #clalit-case) .csi-card::before { top: 3px; inset-inline-start: -38px; }
  :is(#hotel-case, #clalit-case) .csi-statements, :is(#hotel-case, #clalit-case) .csi-choice { grid-template-columns: 1fr; }
  :is(#hotel-case, #clalit-case) .csi-cols { grid-template-columns: 1fr; }
  :is(#hotel-case, #clalit-case) .csi-col { padding-inline-end: 0; }
  :is(#hotel-case, #clalit-case) .csi-col + .csi-col { margin-top: 26px; padding: 26px 0 0; border-inline-start: 0; border-top: 1px solid var(--cx-line); }
  :is(#hotel-case, #clalit-case) .csi-persona { grid-template-columns: 1fr; }
  :is(#hotel-case, #clalit-case) .csi-persona .csi-quote { grid-column: 1; grid-row: auto; }
  :is(#hotel-case, #clalit-case) .csi-path li span { font-size: .875rem; padding-inline: 2px; }
  :is(#hotel-case, #clalit-case) .csi-numbered li { grid-template-columns: 40px minmax(0, 1fr); }
  #hotel-case .csi-logos { grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(120px, auto); }
  #hotel-case .csi-logo-t.is-main { grid-row: auto; grid-column: 1 / -1; min-height: 170px; }
  #hotel-case .csi-logo-t img[src$="icon.png"] { height: 60px; }
  #hotel-case .csi-sw-main { grid-template-columns: 1fr; }
  #hotel-case .csi-sw-big { min-height: 124px; }
  #hotel-case .csi-sw-rest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #hotel-case .csi-type-pair { grid-template-columns: 1fr; }
  #hotel-case .csi-anatomy { grid-template-columns: 1fr; }
  #hotel-case .csi-anatomy figure { aspect-ratio: 16 / 10; }
  #hotel-case .csi-icgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #hotel-case .csi-scenes { grid-template-columns: 1fr 1fr; }
  #hotel-case .csi-scenes-map { grid-row: auto; grid-column: 1 / -1; min-height: 0; aspect-ratio: 4 / 3; }
  #hotel-case .csi-dec-use-row { gap: 8px; }
  #hotel-case .csi-dec-use figure { padding: 12px 8px; }
  #hotel-case .csi-dec-use figcaption { font-size: .75rem; }
}
#hotel-case .csi-split { align-items: stretch; }

/* ══ 40 WEEKS CASE · a modest lift in the app's own colours (its style guide: teal #00667D, blue glow #179FB7,
   mist #DAECF0); the style guide broken into its parts; the UI screens at 375 × 800 ══ */
#clalit-case { --cx-y: #179fb7; --cx-y1: #daecf0; --cx-ink: #00667d; --cx-ink6: #50757d; --cx-ink4: #8a9a9c; --cx-cream: #f4f8f8; --cx-paper: #ffffff; --cx-sand: #daecf0; --cx-line: #dce7e8; --cx-gold: #0c849c; --cx-text: #2f3a3c;
  --csi-bg: var(--cx-cream); --csi-line: var(--cx-line); --csi-ink: #1f2b2d; --csi-soft: var(--cx-ink6);
  --cx-bleed: clamp(0px, 4vw, 48px); --cx-pad: max(var(--cx-bleed), 22px); --sg-bg: #f4f4f4; }
#clalit-case .csi-h { letter-spacing: -.03em; }
#clalit-case .csi-body p, #clalit-case :is(.csi-dots, .csi-dashes) li { color: var(--cx-text); }
#clalit-case .csi-kpi span { color: var(--cx-ink6); }
#clalit-case .csi-feature, #clalit-case .csi-fig { box-shadow: 0 0 0 1px var(--cx-line); }
#clalit-case .csi-lead { color: var(--cx-ink); }
#clalit-case .csi-callout { margin: 6px 0 0; padding: 22px 24px; border-radius: 20px; background: var(--cx-y1); color: #173b42; font: 500 1.125rem/1.6 var(--font-display); letter-spacing: -.005em; max-width: none; }
#clalit-case .csi-fig--paper { background: #fff; }
#clalit-case .csi-fig--paper img { border-radius: 8px; }
/* the style guide: one board per part, the artwork on the guide's own grey */
#clalit-case .csi-sg { display: flex; flex-direction: column; gap: 18px; margin-inline: calc(-1 * var(--cx-bleed)); padding: clamp(22px, 3vw, 36px) var(--cx-pad); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px var(--cx-line); }
#clalit-case .csi-sg + .csi-sg { margin-top: 2px; }
#clalit-case .csi-sg-head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--cx-line); }
#clalit-case .csi-sg-n { font: 600 .8125rem/1 var(--font-text); letter-spacing: .08em; color: var(--cx-gold); font-variant-numeric: tabular-nums; }
#clalit-case .csi-sg-head h4 { margin: 0; font: 700 1.375rem/1.2 var(--font-display); letter-spacing: -.015em; color: #1f2b2d; }
/* colour */
#clalit-case .csi-sgc-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: start; gap: 16px; }
#clalit-case .csi-body .csi-sgc-k { margin: 10px 0 0; font: 600 .75rem/1.3 var(--font-text); letter-spacing: .12em; text-transform: uppercase; color: var(--cx-ink6); }
#clalit-case .csi-sgc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
#clalit-case .csi-sgc li { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#clalit-case .csi-sgc i { display: block; height: 72px; margin-bottom: 8px; border-radius: 14px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 40, 50, .1); }
#clalit-case .csi-sgc b { font: 600 .875rem/1.25 var(--font-text); color: #1f2b2d; }
#clalit-case .csi-sgc code { font: 500 .75rem/1.35 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--cx-ink6); overflow-wrap: anywhere; }
/* typography: the face, then the scale with real lines from the app */
#clalit-case .csi-sgt { display: flex; flex-direction: column; gap: 14px; }
#clalit-case .csi-sgt-hero { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#clalit-case .csi-sgt-hero p { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; padding: 18px 10px 14px; border-radius: 18px; background: var(--sg-bg); }
#clalit-case .csi-sgt-hero span { font: 400 clamp(3rem, 6vw, 4.5rem)/1.05 'Open Sans', 'Heebo', sans-serif; color: #1a051d; }
#clalit-case .csi-sgt-hero small { font: 500 .75rem/1 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-ink6); }
#clalit-case .csi-body .csi-sgt-name { margin: 0; font: 600 .9375rem/1 var(--font-text); color: #1f2b2d; }
#clalit-case .csi-sgt-scale { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--cx-line); }
#clalit-case .csi-sgt-scale li { display: grid; grid-template-columns: 44px 150px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--cx-line); }
#clalit-case .csi-sgt-px { font: 700 1rem/1 var(--font-display); color: var(--cx-ink); font-variant-numeric: tabular-nums; }
#clalit-case .csi-sgt-role { display: flex; flex-direction: column; gap: 3px; font: 500 .875rem/1.2 var(--font-text); color: #1f2b2d; }
#clalit-case .csi-sgt-role code { font: 500 .75rem/1 ui-monospace, 'SF Mono', Menlo, monospace; color: var(--cx-ink6); }
#clalit-case .csi-sgt-x { min-width: 0; font-family: 'Open Sans', 'Heebo', sans-serif; line-height: 1.25; text-align: right; overflow-wrap: anywhere; }
/* the main button */
#clalit-case .csi-sgm { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
#clalit-case .csi-sgm figure { margin: 0; }
#clalit-case .csi-sgm-hero { display: grid; place-items: center; min-height: 220px; border-radius: 20px; background: var(--sg-bg); }
#clalit-case .csi-sgm-hero img { width: 140px; height: auto; }
#clalit-case .csi-sgm-spec { display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 6px 4px; }
#clalit-case .csi-sgm-spec div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cx-line); }
#clalit-case .csi-sgm-spec div:last-child { border-bottom: 0; }
#clalit-case .csi-sgm-spec dt { font: 600 .75rem/1.5 var(--font-text); letter-spacing: .1em; text-transform: uppercase; color: var(--cx-ink6); }
#clalit-case .csi-sgm-spec dd { margin: 0; font: 500 .9375rem/1.5 var(--font-text); color: #1f2b2d; }
#clalit-case .csi-sgm-use { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; padding: 16px 12px 14px; border-radius: 20px; background: var(--sg-bg); }
#clalit-case .csi-sgm-use img { width: min(100%, var(--w)); height: auto; }
#clalit-case .csi-sgm-use:nth-of-type(2) { grid-column: 1 / -1; }
#clalit-case .csi-sgm-use:nth-of-type(3) { grid-column: 1 / -1; }
#clalit-case :is(.csi-sgm-use, .csi-sgx-t) figcaption { font: 500 .8125rem/1.35 var(--font-text); color: var(--cx-ink6); text-align: center; }
/* buttons, icons, cards, illustrations, elements: each piece at its own size, on the guide's grey */
#clalit-case .csi-sgx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#clalit-case .csi-sgx-t { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px 12px 12px; border-radius: 18px; background: var(--sg-bg); min-width: 0; }
#clalit-case .csi-sgx-img { flex: 1 1 auto; display: grid; place-items: center; min-height: 0; }
#clalit-case .csi-sgx-img img { display: block; width: min(100%, var(--w)); height: auto; }
#clalit-case .csi-sgx-t.is-primary { grid-column: 1 / -1; padding: 26px 16px 16px; background: linear-gradient(180deg, #eef7f9, var(--sg-bg)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cx-y) 45%, transparent); }
#clalit-case .csi-sgx-t em { display: inline-block; margin-inline-end: 8px; padding: 3px 8px; border-radius: 99px; background: var(--cx-ink); color: #fff; font: 600 .6875rem/1.3 var(--font-text); font-style: normal; letter-spacing: .06em; text-transform: uppercase; }
#clalit-case .csi-sgx--buttons .csi-sgx-t:last-child, #clalit-case .csi-sgx--icons .csi-sgx-t, #clalit-case .csi-sgx--elements .csi-sgx-t:last-child { grid-column: 1 / -1; }
#clalit-case .csi-sgx--icons { grid-template-columns: 1fr; }
#clalit-case .csi-sgx--icons .csi-sgx-t { padding-block: 22px 14px; }
#clalit-case .csi-sgx--ills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#clalit-case .csi-sgx--ills .csi-sgx-img img[src$=".png"] { max-height: 220px; width: auto; max-width: 100%; }
#clalit-case .csi-sgx--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: dense; }
/* the annotated home: numbered pins on the screen, the notes beside it at the same height */
#clalit-case .csi-ann { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) min(300px, 42%) minmax(0, 1fr); gap: clamp(16px, 2.6vw, 30px); margin: 10px calc(-1 * var(--cx-bleed)) 0; padding: clamp(24px, 3.4vw, 40px) var(--cx-pad); border-radius: 28px; background: linear-gradient(180deg, #fff, var(--cx-y1)); box-shadow: 0 0 0 1px var(--cx-line); }
#clalit-case .csi-ann-screen { position: relative; grid-column: 2; grid-row: 1; align-self: start; border-radius: 30px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 50, 60, .08), 0 30px 60px -30px rgba(0, 60, 70, .45); }
#clalit-case .csi-ann-screen img { display: block; width: 100%; height: auto; }
#clalit-case .csi-ann-pin { position: absolute; left: calc(var(--x) / 375 * 100%); top: calc(var(--y) / 800 * 100%); display: grid; place-items: center; width: 24px; height: 24px; translate: -50% -50%; border-radius: 50%; background: #fff; color: var(--cx-gold); font: 600 .75rem/1 var(--font-text); font-style: normal; box-shadow: 0 0 0 1.5px var(--cx-y), 0 6px 14px -4px rgba(0, 80, 95, .35); }   /* soft: white, a teal ring (Daniel: more pleasant) */
#clalit-case .csi-ann-notes { grid-row: 1; display: flex; flex-direction: column; justify-content: space-around; gap: 22px; margin: 0; padding: 18px 0; list-style: none; }
#clalit-case .csi-ann-notes--l { grid-column: 1; }
#clalit-case .csi-ann-notes--r { grid-column: 3; }
#clalit-case .csi-ann-note { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 4px; }
#clalit-case .csi-ann-note.is-l { text-align: end; grid-template-columns: minmax(0, 1fr) 22px; }
#clalit-case .csi-ann-note.is-l .csi-ann-num { grid-column: 2; grid-row: 1; }
#clalit-case .csi-ann-note.is-l > :not(.csi-ann-num) { grid-column: 1; }
#clalit-case .csi-ann-note.is-r > :not(.csi-ann-num) { grid-column: 2; }
#clalit-case .csi-ann-num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cx-y1); color: var(--cx-ink); font: 600 .75rem/1 var(--font-text); }
#clalit-case .csi-ann-note b { font: 600 1rem/1.3 var(--font-display); color: var(--cx-ink); padding-top: 2px; }
#clalit-case .csi-ann-note span:not(.csi-ann-num) { font: 400 .9063rem/1.55 var(--font-text); color: var(--cx-ink6); }
/* the screens, bigger, all at one scale (375 wide each), rounded like the phone */
@media (min-width: 701px) { #clalit-case .csi-feature { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); } }
#clalit-case .csi-feature-shots { padding: 6px 0; }
#clalit-case .csi-feature-shots img { width: min(100%, 300px); max-width: none; max-height: none; border-radius: 26px; box-shadow: 0 0 0 1px rgba(0, 50, 60, .08), 0 24px 48px -28px rgba(0, 60, 70, .5); }
#clalit-case .csi-feature--wide { grid-template-columns: 1fr; }
#clalit-case .csi-feature--wide .csi-feature-shots img { width: calc(50% - 8px); max-width: 300px; }
@media (max-width: 700px) {
  #clalit-case .csi-sgc-row { grid-template-columns: 1fr; gap: 8px; }
  #clalit-case .csi-body .csi-sgc-k { margin: 0; }
  #clalit-case .csi-sgc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #clalit-case .csi-sgt-scale li { grid-template-columns: 34px minmax(0, 1fr); }
  #clalit-case .csi-sgt-x { grid-column: 1 / -1; }
  #clalit-case .csi-sgt-hero span { font-size: 2.5rem; }
  #clalit-case .csi-sgm { grid-template-columns: 1fr; }
  #clalit-case .csi-sgx, #clalit-case .csi-sgx--cards, #clalit-case .csi-sgx--ills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #clalit-case :is(.csi-sgx--cards, .csi-sgx--elements) .csi-sgx-t { grid-column: 1 / -1; }
  #clalit-case .csi-sgx--cards .csi-sgx-t:has(img[style*="--w:1"]) { grid-column: auto; }
  #clalit-case .csi-sgx--buttons .csi-sgx-t { grid-column: 1 / -1; }
  #clalit-case .csi-ann { grid-template-columns: 1fr; }
  #clalit-case .csi-ann-screen { grid-column: 1; grid-row: 1; width: min(78%, 300px); justify-self: center; }
  #clalit-case .csi-ann-notes { grid-column: 1; grid-row: auto; padding: 0; gap: 14px; }
  #clalit-case .csi-ann-note, #clalit-case .csi-ann-note.is-l { text-align: start; grid-template-columns: 22px minmax(0, 1fr); }
  #clalit-case .csi-ann-note.is-l .csi-ann-num { grid-column: 1; }
  #clalit-case .csi-ann-note.is-l > :not(.csi-ann-num) { grid-column: 2; }
  #clalit-case .csi-feature-shots img { width: min(78%, 300px); }
  #clalit-case .csi-feature--wide .csi-feature-shots img { width: calc(50% - 6px); }
}

/* ══ BALCONY CASE · the new UI's screens, and a prototype that runs in the page ══ */
#balcony-case .csi-feature-shots img { border-radius: 26px; box-shadow: 0 0 0 1px rgba(40, 0, 10, .07), 0 24px 46px -28px rgba(80, 10, 20, .45); }
#balcony-case .csi-feature-shots img { width: min(100%, 280px); max-height: none; }
#balcony-case .csi-feature--wide .csi-feature-shots img { width: calc(50% - 8px); max-width: 280px; }
#balcony-case .csi-feature--wide { grid-template-columns: 1fr; }
#balcony-case .csi-feature-shots img[src$=".png"] { border-radius: 26px 26px 0 0; width: min(100%, 320px); }
/* the player: a phone that plays the main flow on its own, the chapters beside it */
.csi-player { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 56px); margin-inline: calc(-1 * clamp(0px, 4vw, 48px)); padding: clamp(24px, 3.6vw, 44px) max(clamp(0px, 4vw, 48px), 22px); border-radius: 28px; background: radial-gradient(120% 90% at 20% 0%, #fff 0%, var(--csi-tint) 100%); box-shadow: 0 0 0 1px var(--csi-line); }
.csi-player-phone { position: relative; padding: 10px; border-radius: 48px; background: #16161a; box-shadow: inset 0 0 0 1.5px #3a3a40, 0 40px 70px -40px rgba(60, 0, 10, .55); }
.csi-player-screen { position: relative; overflow: hidden; aspect-ratio: calc(var(--pw) / var(--ph)); border-radius: 38px; background: #fff; isolation: isolate; }
.csi-player-screen img { position: absolute; inset: 0 0 auto; width: 100%; height: auto; opacity: 0; transition: opacity .45s ease, translate .6s cubic-bezier(.2, .8, .2, 1); translate: 0 6px; }
.csi-player-screen img.is-on { opacity: 1; translate: 0 0; z-index: 1; }
.csi-player-tap { position: absolute; z-index: 3; left: calc(var(--x, -100) / var(--pw) * 100%); top: calc(var(--y, -100) / var(--ph) * 100%); width: 13%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none;
  background: rgba(255, 90, 95, .32); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0, 0, 0, .18), 0 6px 14px rgba(0, 0, 0, .25); }
.csi-player-tap.is-tap { animation: csi-tap .76s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes csi-tap { 0% { opacity: 0; scale: 1.5; } 30% { opacity: 1; scale: 1; } 55% { scale: .82; } 75% { opacity: 1; scale: .9; } 100% { opacity: 0; scale: 1.25; } }
.csi-player-ui { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.csi-body .csi-player-k { margin: 0; font: 600 .75rem/1.2 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--csi-a2); }
.csi-player-chaps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.csi-player-chaps button { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: start; color: var(--csi-soft); font: 600 1.0625rem/1.2 var(--font-display); transition: background .3s, color .3s; }
.csi-player-chaps button:hover { background: rgba(255, 255, 255, .7); color: var(--csi-ink); }
.csi-player-chaps button[aria-current="true"] { background: #fff; color: var(--csi-ink); box-shadow: 0 0 0 1px var(--csi-line), 0 10px 24px -18px rgba(80, 10, 20, .4); }
.csi-player-chaps i { display: block; height: 3px; border-radius: 3px; background: color-mix(in srgb, var(--csi-a2) 16%, transparent); overflow: hidden; }
.csi-player-chaps b { display: block; width: calc(var(--f, 0) * 100%); height: 100%; border-radius: inherit; background: var(--csi-a2); transition: width .4s ease; }
.csi-body .csi-player-cap { display: flex; align-items: baseline; gap: 10px; margin: 0; font: 500 .9375rem/1.4 var(--font-text); color: var(--csi-ink); }
.csi-player-n { font: 700 .8125rem/1 var(--font-text); color: var(--csi-a2); font-variant-numeric: tabular-nums; }
.csi-body .csi-player-ctl { display: flex; align-items: center; gap: 8px; margin: 0; }
.csi-player-play { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 99px; background: var(--csi-ink); color: #fff; font: 600 .9375rem/1 var(--font-text); }
.csi-player-ico { position: relative; width: 12px; height: 14px; }
.csi-player-ico::before { content: ''; position: absolute; inset: 0; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.csi-player-play[aria-pressed="true"] .csi-player-ico::before { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }
.csi-player-prev, .csi-player-next { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--csi-ink); font: 600 1rem/1 var(--font-text); box-shadow: inset 0 0 0 1px var(--csi-line); }
.csi-body .csi-player-note { margin: 0; font-size: .875rem; color: var(--csi-soft); }
@media (max-width: 700px) {
  .csi-player { grid-template-columns: 1fr; justify-items: center; margin-inline: -8px; padding: 22px 16px; }
  .csi-player-phone { width: min(78%, 280px); padding: 8px; border-radius: 40px; }
  .csi-player-screen { border-radius: 32px; }
  .csi-player-ui { width: 100%; }
  .csi-player-chaps { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .csi-player-chaps li { flex: 1 1 calc(50% - 6px); }
  .csi-player-chaps button { padding: 10px 12px; font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) { .csi-player-screen img { transition: none; } }
/* Balcony's prototype phone: light, thin and still, like the other cases (Daniel: no thick black frames) */
.csi-player-phone { padding: 7px; border-radius: 46px; background: linear-gradient(160deg, #ffffff, #eeeef1); box-shadow: 0 0 0 1px rgba(0, 0, 0, .07), 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 50px -30px rgba(60, 0, 10, .35); }
.csi-player-screen { border-radius: 39px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
/* Balcony was built for PassportCard: its stacked logo needs more height than a wordmark to read */
#balcony-case img[src*="passportcard"] { height: clamp(56px, 6vw, 76px); width: auto; max-width: none; }

/* Hebrew fixes for roomie, 40 weeks and Balcony: codes keep their own direction, the type ramp scrolls from its start,
   and roomie's "Backlog" ghost button keeps its transparent look */
.cs-inline[dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
.cs-inline[dir="rtl"] .cs-type-ramp { direction: ltr; }
#hotel-case .csi-btn.csi-btn--ghost { background: transparent; color: var(--csi-ink); }

/* ══ roomie · the UX chapters as coloured panels (2026-10-30, Daniel: "looks cheap, the white doesn't help")
   Each chapter sits on its own panel that runs off the far edge of the page: kickoff on pale yellow,
   research and findings on ink, the persona on yellow, sketches and wireframes on sand, the flow on ink.
   The content drops its cards and sits on the panel itself. ══ */
#hotel-case { overflow-x: clip; --band-in: clamp(28px, 4vw, 56px); }
#hotel-case .csi-sec--band { position: relative; padding-block: clamp(56px, 6.4vw, 92px); --band: var(--cx-y1); }
#hotel-case .csi-sec--band::before { content: ''; position: absolute; z-index: -1; inset-block: 0; inset-inline: calc(-1 * var(--band-in)) -100vmax; border-start-start-radius: 36px; border-end-start-radius: 36px; background: var(--band); }
#hotel-case .csi-band--join { padding-bottom: clamp(28px, 3vw, 44px); }
#hotel-case .csi-band--join::before { border-end-start-radius: 0; }
#hotel-case .csi-band--joined { margin-top: 0; padding-top: clamp(28px, 3vw, 44px); }
#hotel-case .csi-band--joined::before { border-start-start-radius: 0; }
#hotel-case .csi-band--tint { --band: #fff3c2; }
#hotel-case .csi-band--yellow { --band: var(--cx-y); }
#hotel-case .csi-band--sand { --band: var(--cx-sand); }
#hotel-case .csi-band--ink { --band: var(--cx-ink); color: var(--cx-cream); }
#hotel-case .csi-sec--band .csi-h { margin-bottom: clamp(26px, 3vw, 40px); font-size: clamp(2.25rem, 4vw, 3.25rem); }
@media (max-width: 1000px) {
  #hotel-case .csi-sec--band::before { inset-inline: -100vmax; border-radius: 0; }
}

/* kickoff, on pale yellow: the take-aways read as statements, the objective is a paper sheet */
#hotel-case .csi-band--tint .csi-numbered { border-top-color: rgba(32, 32, 32, .14); }
#hotel-case .csi-band--tint .csi-numbered li { border-bottom-color: rgba(32, 32, 32, .14); padding: 22px 0; }
#hotel-case .csi-band--tint .csi-numbered p { font: 500 clamp(1.125rem, 1.5vw, 1.3125rem)/1.45 var(--font-display); letter-spacing: -.008em; color: var(--cx-ink); }
#hotel-case .csi-band--tint .csi-numbered span { color: var(--cx-gold); }
#hotel-case .csi-band--tint .csi-st--0 { background: var(--cx-paper); box-shadow: 0 20px 40px -30px rgba(90, 64, 0, .45); }

/* research + findings, on ink */
#hotel-case .csi-band--ink :is(.csi-num, .csi-h, .csi-sub, .csi-body h4) { color: var(--cx-cream); }
#hotel-case .csi-band--ink .csi-body p, #hotel-case .csi-band--ink :is(.csi-dots, .csi-dashes) li { color: rgba(248, 245, 239, .74); }
#hotel-case .csi-band--ink .csi-body b { color: var(--cx-cream); }
#hotel-case .csi-band--ink .csi-dashes li::before { color: var(--cx-y); }
#hotel-case .csi-band--ink .csi-cols { margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
#hotel-case .csi-band--ink .csi-col + .csi-col { border-inline-start-color: rgba(248, 245, 239, .14); }
#hotel-case .csi-band--ink .csi-kpi b { color: var(--cx-cream); font-size: clamp(3.5rem, 6vw, 5rem); box-shadow: inset 0 -.14em 0 var(--cx-y); }
#hotel-case .csi-band--ink .csi-kpi span { color: var(--cx-y); }
#hotel-case .csi-band--ink .csi-chips li { background: rgba(255, 204, 0, .16); color: var(--cx-y); }
#hotel-case .csi-band--ink .csi-split { margin: 0; padding: clamp(28px, 3vw, 40px) 0 0; border-top: 1px solid rgba(248, 245, 239, .14); border-radius: 0; background: none; }
#hotel-case .csi-band--ink .csi-split .csi-ring b { font-size: clamp(2.75rem, 4.4vw, 3.5rem); }
#hotel-case .csi-band--ink .csi-split blockquote { background: rgba(248, 245, 239, .06); box-shadow: inset 0 0 0 1px rgba(248, 245, 239, .08); }

/* the persona, on yellow */
#hotel-case .csi-band--yellow .csi-persona { margin: 0; padding: 0; background: none; }
#hotel-case .csi-band--yellow .csi-num::before { background: var(--cx-ink); }
#hotel-case .csi-band--yellow :is(.csi-persona-place, .csi-persona-bio) { color: var(--cx-ink); }
#hotel-case .csi-band--yellow .csi-persona-photo { box-shadow: 0 0 0 4px var(--cx-ink); }
#hotel-case .csi-band--yellow .csi-persona .csi-quote p { font-size: clamp(1.75rem, 3vw, 2.5rem); }
#hotel-case .csi-band--yellow .csi-note { background: var(--cx-paper); box-shadow: 0 18px 36px -28px rgba(70, 50, 0, .6); }

/* sketches and wireframes, on sand: the sheets lie straight on the panel */
#hotel-case .csi-band--sand .csi-fig { margin-inline: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
#hotel-case .csi-band--sand .csi-fig--paper { padding: clamp(18px, 3vw, 36px); border-radius: 24px; background: var(--cx-paper); box-shadow: 0 30px 60px -40px rgba(70, 50, 0, .55); }


/* the wireframes: black-and-white blocks, each saying what it does, in a strip that runs to the page edge */
.csi-wires { margin-inline-end: calc((100% - 100vw + 200px + clamp(40px, 6vw, 88px)) / 2); }
@media (max-width: 1000px) { .csi-wires { margin-inline-end: calc((100% - 100vw) / 2); } }
.csi-wires-track { display: flex; gap: clamp(18px, 2vw, 28px); margin: 0; padding: 6px 0 24px; overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; outline-offset: 6px; }
.csi-wires-track::-webkit-scrollbar { display: none; }
.csi-wires-track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.csi-wire { flex: 0 0 clamp(200px, 17vw, 228px); display: flex; flex-direction: column; gap: 8px; scroll-snap-align: start; }
.csi-wire:last-child { margin-inline-end: clamp(20px, 4vw, 56px); }
.csi-wire-k { margin: 0; font: 600 .75rem/1 var(--font-text); letter-spacing: .14em; color: var(--cx-ink6, #55524b); }
.csi-body .csi-wire-h { margin: 0 0 6px; font: 600 1.0625rem/1.25 var(--font-display); letter-spacing: -.01em; }
.csi-wire-phone { display: flex; flex-direction: column; gap: 7px; aspect-ratio: 375 / 700; padding: 18px 12px; border-radius: 26px; background: #fff; box-shadow: inset 0 0 0 1.5px #1a1a1a; color: #1a1a1a; font: 500 10.5px/1.25 var(--font-text); letter-spacing: 0; user-select: none; }
.wf-box, .wf-pair span { display: flex; align-items: center; justify-content: center; padding: 6px 8px; border: 1.25px solid #1a1a1a; border-radius: 7px; text-align: center; }
.wf-box--xs { min-height: 24px; justify-content: flex-start; border-style: dashed; color: #555; font-size: 9.5px; }
.wf-box--s { min-height: 34px; }
.wf-box--m { min-height: 58px; }
.wf-box--l { flex: 1; min-height: 90px; }
.wf-box--fill { min-height: 34px; background: #1a1a1a; color: #fff; }
.wf-ring { display: grid; place-items: center; padding: 4px 0; }
.wf-ring span { display: grid; place-items: center; width: 92px; height: 92px; padding: 10px; border: 1.25px solid #1a1a1a; border-radius: 50%; text-align: center; }
.wf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wf-pair span { min-height: 30px; }
.wf-pair .is-on { background: #1a1a1a; color: #fff; }
.wf-grid { display: flex; flex-direction: column; gap: 5px; }
.wf-grid > span { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; }
.wf-grid i, .wf-row i { aspect-ratio: 1; border: 1.25px solid #1a1a1a; border-radius: 5px; }
.wf-grid small, .wf-row small { font-size: 9.5px; color: #555; text-align: center; }
.wf-row { display: flex; flex-direction: column; gap: 4px; }
.wf-row small { text-align: start; }
.wf-row > span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.wf-gap { flex: 1; }
.csi-wires-nav { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; }
.csi-wires-go { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cx-ink, #202020); color: #fff; font: 600 1rem/1 var(--font-text); cursor: pointer; }
.csi-wires-go:hover { background: #000; }
[dir="rtl"] .csi-wires-go { rotate: 180deg; }
.csi-body .csi-wires-nav span { margin-inline-start: 6px; font: 400 .875rem/1.4 var(--font-text); color: var(--cx-ink6, #55524b); }

/* roomie, round 3: the logo tiles speak for themselves; the decision numbers get a thin yellow rule, not a yellow pill (yellow is the CTA colour) */
#hotel-case .csi-logo-t figcaption { display: none; }
#hotel-case .csi-dec-k span { display: inline-block; min-width: 0; height: auto; padding: 1px 0; padding-inline-start: 12px; border-radius: 0; background: none; border-inline-start: 2px solid var(--cx-y); color: var(--cx-ink); line-height: 1.1; }

/* resting: 30 s without a move and the whole site holds still (idle.js); new CSS animations wait too */
html.is-resting *, html.is-resting *::before, html.is-resting *::after { animation-play-state: paused !important; }

/* rebar's own green (#5EA531, Daniel 2026-10-31): on the green hero the logo's green "re" would vanish, so it goes ink */
.tile--rebar-order .rb-order-phone { rotate: none; }

/* rebar's cover (Daniel 2026-10-31): every background white; the green lives only in type and the logo */
.tile--hero-rebar { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tile--hero-rebar .hero-k, .tile--hero-rebar .hero-k span { color: #5ea531; }
.tile--hero-rebar .hero-case { background: #000; color: #fff; box-shadow: none; }
.tile--rebar-punch, .tile--rebar-punch.is-full { background: #fff; color: #5ea531; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.tile--rebar-punch::after { display: none; }
.tile--rebar-punch .rb-word b, .tile--rebar-punch.is-full .rb-word b { color: #000; }
.tile--rebar-punch .rb-word, .tile--rebar-punch.is-full .rb-word { color: #5ea531; }
.tile--rebar-punch .punch-cups i { background: #fff; color: rgba(94, 165, 49, .4); box-shadow: inset 0 0 0 1.5px rgba(94, 165, 49, .3); }
.tile--rebar-punch .punch-cups i.is-on { background: #fff; color: #5ea531; box-shadow: inset 0 0 0 1.5px #5ea531; }
.tile--rebar-punch .punch-line, .tile--rebar-punch.is-full .punch-line { color: #000; }
.tile--rebar-punch .punch-hint { color: #5ea531; }
.rb-step-k b { background: #000; color: #fff; box-shadow: none; font-weight: 700; }
.tile--hero-rebar .tile-btn--label, .tile--hero-rebar.tile:hover .tile-btn--label { background: #000 !important; color: #fff; box-shadow: none; }

/* Maccabiah (Daniel 2026-10-31): no headings in red - the small kickers on light sections read in the Games' ink */
.mc-sec--paper .mc-k, .mc-sec--tint .mc-k, .mc-k--ink { color: var(--ink2); }
.mc-said-k { color: var(--mi); }

/* ── copy map (2026-10-31): small fits for the rewritten copy ── */
/* Maccabiah: the first version's scope gets its own small heading under the three layers */
.mc-h4--goal { margin: 34px 0 0; color: var(--mi); }
/* a timeline stop without a bold line: the sentence sits under the year */
.mc-stop-y + p { margin-top: 16px; }
/* the note that the map is in Hebrew is for English readers only */
.cs-mac[data-lang="he"] .mc-map .mc-p--aside { display: none; }
/* rebar: the brief's closing line runs under the three areas; the heatmaps' caption sits under them */
.rb-brief > .rbc-after { grid-column: 1 / -1; margin-top: clamp(14px, 2.6vh, 28px); }
.rb-heat > .rb-heat-cap { margin: 16px 0 0; color: #fff; }
/* Maccabiah: the feedback cards follow the heading directly, and the store badge follows the closing line */
.cs-mac .mc-head + .mc-voices { margin-top: 30px; }
.mc-end-copy .mc-end-h + .mc-store { margin-top: 28px; }
/* rebar: the hero now names the project, so its two lines are set smaller than the old two-word slogan */
.cs-rb .rb-title { font-size: clamp(2.75rem, 5.8vw, 5.5rem); }
/* the brief's three areas have no paragraph beside them: their headline takes the full width */
.rbc-job:not(:has(.rbc-job-p)) .rbc-job-h { grid-column: 1 / -1; }
/* the tab bar's labels grew ("About", "More projects"): between 380 and 440 px the tabs tighten so all five fit */
@media (min-width: 380px) and (max-width: 440px) { .tab { padding-inline: 6px; letter-spacing: -.01em; } }
/* rebar's hero card is narrow but tall on desktop: it has room for the whole description */
@media (min-width: 1101px) and (min-height: 700px) { .tile--hero-rebar .hero-line .l-full { display: inline; } .tile--hero-rebar .hero-line .l-short { display: none; } }
/* rebar in Hebrew: the title moves to the right, so the loop goes to the left and turns around */
.cs-rb[dir="rtl"] .rbc-loop--hero { inset: -6% auto auto -8%; scale: -1 1; }
/* rebar's ordering steps: the step titles in a light weight (Daniel) */
.tile--rebar-steps .rb-step-k { font-weight: 300; letter-spacing: -.01em; }
.tile--rebar-steps .rb-step-k b { font-weight: 700; }

/* rebar world (Daniel 2026-10-31): kicker in black; reclub: "re" in ink, cups in black - quiet until punched, then
   an ink ring, an ink cup and only the straw green; the strawberry on white with a smaller, neutral shadow */
.tile--hero-rebar .hero-k, .tile--hero-rebar .hero-k span { color: #000; }
.tile--rebar-punch .punch-logo span { color: #000; }
.tile--rebar-punch .punch-cups i { background: #fff; color: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .14); }
.tile--rebar-punch .punch-cups i.is-on { background: #fff; color: #000; box-shadow: inset 0 0 0 2px #000; }
.tile--rebar-punch .punch-cups i.is-on svg path:first-child { fill: #000; }
.tile--rebar-punch .punch-cups i.is-on svg .cup-straw { stroke: #5ea531; stroke-width: 2.2; }
.tile--rebar-fruit { background: #fff; }
.rb-fruit { filter: drop-shadow(0 10px 12px rgba(20, 20, 20, .2)); }
.tile--hero-rebar .hero-k span { opacity: 1; }
/* reclub, round 2 (Daniel): an empty cup is a black outline, not a faded one; a punched cup is a solid black
   pill with a white cup, and only the straw is green */
.tile--rebar-punch .punch-cups i { background: #fff; color: #000; box-shadow: inset 0 0 0 1.5px #000; }
.tile--rebar-punch .punch-cups i.is-on { background: #000; color: #fff; box-shadow: none; }
.tile--rebar-punch .punch-cups i.is-on svg path:first-child { fill: #fff; }
.tile--rebar-punch .punch-cups i.is-on svg .cup-straw { stroke: #5ea531; stroke-width: 2.2; }
.tile--rebar-steps .rb-step-k { font-weight: 400; }
/* rebar (Daniel: "a black jump" on entering the world): the black cups no longer bounce in from a smaller size;
   they simply fade in, one after another */
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .tile--rebar-punch .punch-cups i { animation: rb-cup-fade .7s ease backwards; animation-delay: calc(.35s + var(--i) * 70ms); }
}
@keyframes rb-cup-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active .tile--rebar-punch .punch-cups i.is-on + i:not(.is-on) { animation: rb-cup-fade .7s ease backwards; animation-delay: calc(.35s + var(--i) * 70ms); }
}

/* ── copy map, English version (2026-10-31) ─────────────────────────────── */
/* a world's heading, above its line (Bank Hapoalim, Tidhar, FlyAll) */
.hero-line .l-h { display: block; margin-block-end: .25em; font-weight: 700; }
/* the Maccabiah gallery: each screen's name, then its line */
.mc-gal figcaption b { display: block; margin-block-end: 2px; font-weight: 800; }
.mc-gal figcaption span { display: block; font-weight: 500; }
/* the Sol demo says it is one: in the portfolio's English, under the product's own note */
.chat--drop .fa-demo { margin: 1.8cqw 0 0; text-align: center; text-wrap: balance; font: 400 2.7cqw/1.35 var(--font-text); color: #6b7080; }
.chat--drop .fa-demo b { display: table; margin: 0 auto 1cqw; padding: .3cqw 1.8cqw; border-radius: 99px; background: #eef1fb; color: #3d4b8a; font-weight: 600; }
/* the Maccabiah card's heading on two lines, not three: the label takes the room left of the ball */
@container (min-width: 421px) { .tile--mac-move .mac-label { max-width: 60%; } .tile--mac-move .mac-label h3 { text-wrap: balance; } }
/* phones: the worlds' short lines keep clear of the "View case study" button */
@media (max-width: 700px) {
  .tile--hero-tidhar .hero-line { max-width: 11.5em; }
  .tile--hero-rebar .hero-line { position: relative; top: -9px; }
}
/* Maccabiah case, English headings fitted: "The Maccabiah" on one line above the "app" label */
.mc-title span { font-size: .72em; }
/* the feedback lines have no paragraph beside them now, so each takes the whole row */
.mc-voices li > b:last-child { grid-column: 2 / -1; }
/* the half-column headings stay within three lines */
.mc-lang .mc-h { font-size: clamp(2rem, 3.5vw, 3rem); }
/* the ending: "View the Maccabiah app" on two lines, no lone "app" */
.mc-end-h { font-size: clamp(2.5rem, 4.8vw, 4.375rem); text-wrap: balance; }
.cs-mac[data-lang="he"] .mc-title span { font-size: 1em; }

/* copying the email: no floating message, the toast stays only for screen readers; the button shows a tick instead */
.toast { position: fixed; inset: auto; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.about-btn--mail { position: relative; }
.about-btn--mail > :not(.copy-tick) { transition: opacity .2s; }
.about-btn--mail .copy-tick { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; color: #fff; font-weight: 400; opacity: 0; pointer-events: none; }
.about-btn--mail .copy-tick svg { width: 18px; height: 18px; flex: none; stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.about-btn--mail.is-copied { color: transparent; transition: transform .4s var(--ease-bounce), background .3s, color .2s; }
.about-btn--mail.is-copied .copy-tick { opacity: 1; }
.about-btn--mail.is-copied .copy-tick svg { animation: copy-tick .4s cubic-bezier(.32, .72, 0, 1) .08s forwards; }
@keyframes copy-tick { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .about-btn--mail.is-copied .copy-tick svg { animation: none; stroke-dashoffset: 0; } }
/* rebar case, English headings fitted: two lines at most on a desktop, three on a phone */
.cs-rb .rb-title { font-size: clamp(2.25rem, 5vw, 4.75rem); }
.cs-rb .rb-h { max-width: none; font-size: clamp(2.25rem, 5.8vw, 5.25rem); }
.cs-rb .rb-end-h { text-wrap: balance; }

/* the back button is only an arrow, everywhere (case pages included); its label stays as the accessible name */
.nav-inner .back-pill { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; }
.nav-inner .back-pill::before, html[data-page="case"] .nav-inner .back-pill::before { content: "←"; font: 600 .9375rem/1 var(--font-text); }
@media (max-width: 700px) { .nav-inner .back-pill { width: 44px; height: 44px; } }

/* the intro, round 2: the halo sits exactly on the cyan circle (measured in hero.jpg: centre 49.88% / 49.42%, 40.05% wide),
   the name on one line, and the pointer reads clearly - the light, the portrait and the circle's rim all answer it */
.intro-photo { transform-origin: 49.88% 49.42%; }
.intro-glow { display: none; }
.intro-photo::after { inset-inline-start: 49.88%; inset-block-start: 49.42%; width: 40.05%; }
@keyframes aperture { from { clip-path: circle(0% at 49.88% 49.42%); } to { clip-path: circle(75% at 49.88% 49.42%); } }
.intro-h { white-space: nowrap; font-size: clamp(3.5rem, 6.4vw, 7.5rem); }
/* on a desktop the name runs up to the circle and stops 80px short: the circle's left edge is
   1.12 × the intro's width less the photo's height (the name is 4.8em wide) */
@media (min-width: 1101px) {
  .intro-h { font-size: clamp(4.5rem, calc((1.12 * min(1320px, 100vw - 152px) - min(100dvh - 120px, 880px) - 80px) / 4.8), 7.5rem); }
}
@media (max-width: 700px) { .intro-h { font-size: clamp(2.5rem, 16.5vw, 4.5rem); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) and (min-width: 701px) {
  .intro-photo {
    translate: calc(var(--hx, 0) * 16px) calc(-50% + var(--hy, 0) * 12px);
    transition: translate 1s var(--ease-spring);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .intro-glow {   /* the circle's light, slipped toward the pointer: only the part outside the circle shows, a crescent that fades */
    display: block; position: absolute; z-index: 1; left: 49.88%; top: 49.42%; width: 64.08%; aspect-ratio: 1; translate: -50% -50%;
    mix-blend-mode: screen; pointer-events: none; opacity: 0; transition: opacity 1.4s var(--ease-apple);
    -webkit-mask: radial-gradient(closest-side, transparent 61.8%, #000 63%); mask: radial-gradient(closest-side, transparent 61.8%, #000 63%);
  }
  .intro-glow > i { position: absolute; inset: 18.75%; border-radius: 50%; filter: blur(16px);
    background: radial-gradient(closest-side, rgba(120, 220, 255, .95) 72%, rgba(26, 120, 255, .5) 90%, transparent);
    translate: var(--ox, 0px) var(--oy, 0px); transition: translate .9s var(--ease-spring); }
  .intro-photo.is-lit .intro-glow { opacity: 1; transition-duration: .45s; }
  html[data-scene="intro"] .ambient-glow {
    background: radial-gradient(30vmax circle at 50% 50%, color-mix(in srgb, var(--amb-a) 30%, transparent), transparent 70%);
    transition-duration: .7s;
  }
}

/* ══ FLYALL · round 3: the deal is only its photo; Sol centred over a chat that plays; a split-flap board ══ */
.tile--fa-deal { padding: 0; background: #1b2240; }
.fa-deal-photo { position: absolute; inset: 0; overflow: hidden; }
.fa-deal-photo img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-spring); }
.tile--fa-deal:hover .fa-deal-photo img { scale: 1.05; }

/* Sol: the title centred, the chat under it - bubbles pop in from their tails, older ones rise and fade under the title */
.tile--fa-sol { padding: 0; background: linear-gradient(90deg, #e2e8f6, #f9e6f9); }
.fa-sol { position: absolute; inset: 0; display: flex; flex-direction: column; padding: clamp(18px, 2vw, 26px) clamp(12px, 1.3vw, 18px) clamp(12px, 1.3vw, 18px); font-family: 'SimplerPro', var(--font-text); color: var(--fa-ink); container-type: size; }
.fa-sol-h { display: flex; flex-direction: column; align-items: center; gap: 5px; margin: 0; text-align: center; font: 400 .8125rem/1.3 'SimplerPro', var(--font-text); color: #5b6478; }
.fa-sol-h b { font: 700 clamp(1.25rem, 8cqw, 1.625rem)/1.1 'SimplerPro', var(--font-text); color: var(--fa-ink); }
.fa-sol-h b span { background: var(--fa-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fa-sol-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; margin-block-start: 12px; overflow: hidden;
  -webkit-mask: linear-gradient(transparent, #000 14px); mask: linear-gradient(transparent, #000 14px); transition: opacity .5s var(--ease-apple), translate .6s var(--ease-apple); }
.fa-sol-log.is-out { opacity: 0; translate: 0 -12px; }
.sol-row { display: grid; grid-template-rows: 1fr; flex: none; animation: sol-room .45s var(--ease-spring) both; }
@keyframes sol-room { from { grid-template-rows: 0fr; } }
.sol-row.is-gone { animation: sol-gone .45s var(--ease-apple) forwards; }
@keyframes sol-gone { to { grid-template-rows: 0fr; opacity: 0; translate: 0 -10px; } }
.sol-msg { min-height: 0; display: flex; align-items: flex-end; gap: 6px; padding: 2px 3px 4px; }
.sol-row--sol .sol-msg { justify-content: flex-end; }
.sol-bubble { max-width: 88%; padding: 7px 11px; border: 1.5px solid transparent; border-radius: 16px; font: 400 .8125rem/1.4 'SimplerPro', var(--font-text);
  box-shadow: 0 8px 18px -12px rgba(40, 30, 110, .35); animation: sol-pop .55s var(--ease-bounce) .06s both; }
.sol-bubble p { margin: 0; }
.sol-row--me .sol-bubble { background: #fff; border-color: #3f5ab3; border-end-start-radius: 4px; transform-origin: 100% 100%; }
.sol-row--sol .sol-bubble { background: linear-gradient(#fff, #fff) padding-box, var(--fa-g) border-box; border-end-end-radius: 4px; transform-origin: 0 100%; }
@keyframes sol-pop { from { opacity: 0; scale: .55; translate: 0 8px; } }
.sol-orb { width: 22px; height: 22px; flex: none; animation: sol-pop .5s var(--ease-bounce) both; }
.sol-dots { display: flex; gap: 4px; padding: 5px 2px; }
.sol-dots i { width: 5px; height: 5px; border-radius: 50%; background: #824aea; animation: sol-dot 1s ease-in-out infinite; }
.sol-dots i:nth-child(2) { animation-delay: .15s; } .sol-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes sol-dot { 0%, 60%, 100% { translate: 0 0; opacity: .35; } 30% { translate: 0 -4px; opacity: 1; } }
/* the options sit inside the answer, each one tappable */
.sol-opts { display: flex; flex-direction: column; gap: 5px; margin: 7px 0 2px; padding: 0; list-style: none; }
.sol-opts li { display: flex; align-items: center; gap: 8px; padding: 5px 9px; border: 1px solid transparent; border-radius: 10px; font-size: .75rem; line-height: 1.3;
  background: linear-gradient(#f5f6fc, #f5f6fc) padding-box, linear-gradient(#e6e9f4, #e6e9f4) border-box; animation: sol-opt .4s var(--ease-apple) both; }
.sol-opts li:nth-child(1) { animation-delay: .35s; } .sol-opts li:nth-child(2) { animation-delay: .45s; } .sol-opts li:nth-child(3) { animation-delay: .55s; }
@keyframes sol-opt { from { opacity: 0; translate: 0 6px; } }
.sol-opts li b { font-weight: 700; }
.sol-opts li span { margin-inline-start: auto; color: #6b7387; }
.sol-opts--row { flex-direction: row; flex-wrap: wrap; }
.sol-opts--row li { padding: 4px 10px; border-radius: 99px; }
.sol-opts li.is-picked { background: linear-gradient(#f6f1ff, #f6f1ff) padding-box, var(--fa-g) border-box; animation: sol-pick .6s var(--ease-bounce) both; }
.sol-opts li.is-picked::after { content: '✓'; display: grid; place-items: center; width: 15px; height: 15px; flex: none; border-radius: 50%; background: var(--fa-g); color: #fff; font: 700 .5625rem/1 var(--font-text); }
.sol-opts li:not(:has(span)).is-picked::after { margin-inline-start: -2px; }
@keyframes sol-pick { 0% { scale: 1; box-shadow: 0 0 0 0 rgba(130, 74, 234, .4); } 35% { scale: .95; } 100% { scale: 1; box-shadow: 0 0 0 9px rgba(130, 74, 234, 0); } }
@container (max-height: 360px) {   /* a short card: the chat a size down, so a question and its answer still fit */
  .fa-sol-log { gap: 6px; margin-block-start: 8px; }
  .sol-bubble { padding: 5px 9px; font-size: .75rem; border-radius: 14px; }
  .sol-opts { gap: 4px; margin-block-start: 5px; }
  .sol-opts li { padding: 3px 8px; font-size: .6875rem; }
  .sol-orb { width: 18px; height: 18px; }
}
@container (max-height: 300px) { .fa-sol-h { font-size: 0; gap: 0; } .fa-sol-h b { font-size: 1.125rem; } }

/* departures: every letter on its own card, split across the middle; the cards flip to the next flight */
#checkin .tile--board-fa { gap: 14px; }
#checkin .tile--board-fa .board-rows { container-type: size; min-height: 0; justify-content: space-evenly; gap: 6px; padding-block-end: 30px; }   /* clear of the link's arrow */
#checkin .tile--board-fa .board-row { display: flex; justify-content: space-between; align-items: center; gap: 0; }
#checkin .tile--board-fa .board-row > .sf-word { display: flex; gap: .7cqw; }
.sf { --w: min(5.9cqw, 16cqh); position: relative; display: block; width: var(--w); aspect-ratio: .74; border-radius: 3px; background: #070e24; perspective: 120px; }
.sf b { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: linear-gradient(180deg, #1f2d58 0 50%, #172449 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); font: 700 calc(var(--w) * .73)/1 'SF Mono', ui-monospace, Menlo, monospace; color: #fff; backface-visibility: hidden; }
.sf::after { content: ''; position: absolute; z-index: 1; inset-inline: 0; top: 50%; height: 1px; background: rgba(4, 10, 30, .7); }
.sf--sep { width: calc(var(--w) * .3); background: none; }
.sf--sep b { background: none; box-shadow: none; color: var(--fa-ink); }
.sf--sep::after { display: none; }
@container (max-width: 230px) {
  #checkin .tile--board-fa .board-row > .sf-word--time { display: none; }
  .sf { --w: min(9.6cqw, 16cqh); }
}
@media (max-width: 700px) { #checkin .tile--board-fa .board-rows { padding-block-end: 48px; } }

/* rebar, round 3: the world a soft lime so the white cards stand out; behind the hero's words, rebar's cup running off the card */
.tile--hero-rebar :is(.hero-top, .hero-foot) { position: relative; z-index: 3; }
.rb-hero-glass { position: absolute; z-index: 2; inset-block-start: 30cqh; inset-inline-end: -10cqw; height: min(80cqh, 98cqw); width: auto; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .12)); pointer-events: none; }   /* the cup is already tilted in its picture */
@media (prefers-reduced-motion: no-preference) {
  .js .rb-hero-glass { opacity: 0; translate: 0 24px; transition: opacity .8s var(--ease-apple) .3s, translate 1.2s var(--ease-spring) .3s; }
  .js .scene.is-active .rb-hero-glass { opacity: 1; translate: 0 0; }
}
@media (max-width: 700px) { .rb-hero-glass { display: none; } }   /* the phone's hero is a short strip: words and the button only */
/* rebar's one-row hero on a phone: the line goes under the mark, clear of the case-study button */
@media (max-width: 700px) {
  #rebar .tile--hero .hero-main { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; margin-block: 24px auto; }
  #rebar .tile--hero .hero-line { width: max-content; max-width: calc(100cqw - 152px); text-align: start; }
}
/* departures in negative, on a light board: white cards with ink letters, each framed */
#checkin .tile--board-fa .sf { background: #e4e7f1; }
#checkin .tile--board-fa .sf b { background: linear-gradient(180deg, #ffffff 0 50%, #f2f3f9 50% 100%); box-shadow: inset 0 0 0 1px #dde1ee, 0 1px 2px rgba(4, 15, 33, .08); color: var(--fa-ink); }
#checkin .tile--board-fa .sf::after { background: rgba(4, 15, 33, .14); }
#checkin .tile--board-fa .sf--sep { background: none; }
#checkin .tile--board-fa .sf--sep b { background: none; box-shadow: none; color: var(--fa-ink); }
/* rebar's screen plays Daniel's own recording of the site, at the recording's width: a wide monitor, nothing cropped */
.tile--devices-rebar .monitor-screen { aspect-ratio: 3000 / 1458; }
/* the phone steps aside so the hero's menu on the right of the screen stays readable */
.tile--devices-rebar .dev-stage { --mw: min(calc(100cqw - var(--pw) * .9 - 48px), calc(72cqh * 2.06)); }
.tile--devices-rebar .dev-phone { margin-inline-start: calc(var(--pw) * -.1); margin-block-start: calc(var(--mw) * .16); }
/* rebar: the case-study button lines up with the words, on the left; the cup keeps the right */
@media (min-width: 701px) { #rebar .tile--hero > .tile-btn--label { inset-inline: clamp(18px, 2vw, 30px) auto; } }

/* ══ THE GRID · every case page on one type area ══════════════════════════════════════════════
   Müller-Brockmann: a fixed type area with constant margins, twelve columns, a gutter of one line of leading;
   Tondreau: one measure for reading and one rhythm between sections, so each case keeps its own voice
   (its type, colour and art) on the same structure. The phone: four columns, 20px margins. */
.cs-inline {
  --g-max: 1200px;
  --g-margin: clamp(20px, 5vw, 64px);
  --g-area: min(var(--g-max), 100vw - 2 * var(--g-margin));
  --g-gutter: clamp(16px, 1.8vw, 24px);
  --g-col: calc((var(--g-area) - 11 * var(--g-gutter)) / 12);
  --g-measure: calc(7 * var(--g-col) + 6 * var(--g-gutter));   /* text reads across seven of the twelve columns */
  --g-sec: clamp(80px, 9vw, 128px);                             /* one interval between sections */
  --g-body: clamp(1.0625rem, 1.1vw, 1.125rem);                  /* 17-18px, at 1.7 */
  --g-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
}
@media (max-width: 1100px) { .cs-inline { --g-measure: 40em; } }   /* below the twelve columns: a comfortable line, never a sliver */
/* the chapters' pages (roomie, Balcony, 40 weeks): a hierarchical grid on the same type area -
   the contents in columns 1-3, the chapters in columns 4-11 */
@media (min-width: 1001px) {
  .csi-grid { width: min(var(--g-max), calc(100% - 2 * var(--g-margin))); margin-inline: auto; padding-inline: 0; justify-content: start; column-gap: var(--g-gutter);
    grid-template-columns: calc(3 * var(--g-col) + 2 * var(--g-gutter)) calc(8 * var(--g-col) + 7 * var(--g-gutter)); }
  .csi-wires { margin-inline-end: calc(-1 * ((100vw - var(--g-area)) / 2 + var(--g-col) + var(--g-gutter))); }
  .csi-top { width: min(var(--g-max), calc(100% - 2 * var(--g-margin))); margin-inline: auto; padding-inline: 0; justify-content: start; column-gap: var(--g-gutter);
    grid-template-columns: calc(3 * var(--g-col) + 2 * var(--g-gutter)) calc(8 * var(--g-col) + 7 * var(--g-gutter)); }
}
@media (max-width: 1000px) { :is(.csi-grid, .csi-top) { width: min(var(--g-max), calc(100% - 2 * var(--g-margin))); margin-inline: auto; padding-inline: 0; grid-template-columns: minmax(0, 1fr); } }
.csi-cover--top { width: min(var(--g-max), calc(100% - 2 * var(--g-margin))); }
@media (max-width: 700px) { .csi-cover--top { width: calc(100% - 2 * var(--g-margin)); } .csi-body p { font-size: var(--g-body); } }

/* ══ THE HOME ON A PHONE · the same bento, on a grid that holds ══════════════════════════════════
   Six rows on two columns, as before - but a row never drops below what a tile needs (80px: the words and a
   44px button), so on a short screen (Safari's bars, a phone on its side) the world grows and scrolls instead
   of cutting its case-study button. Every control you can tap is at least 44px. */
@media (max-width: 700px) {
  .bento { --rh: max(80px, calc((100svh - 100px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5 * var(--gap)) / 6)); }
  html:is([data-page="lab"], [data-page="ai"]) .bento { --rh: max(72px, calc((100svh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 5 * var(--gap)) / 6)); }
  .board-k { font-size: .6875rem; }
}
@media (max-width: 700px) and (max-height: 600px) { html { scroll-snap-type: none; } }   /* worlds taller than the screen: no snapping past their bottom */
@media (pointer: coarse) {
  .tile-btn--label { height: 44px !important; padding-inline: 16px 12px !important; }
  .tile-btn:not(.tile-btn--label) { width: 44px; height: 44px; }
  .side-dots button::after { inset: -19px -6px; }
  .tp-chaps button { position: relative; }
  .tp-chaps button::after { content: ''; position: absolute; inset: -9px -3px; }
}

/* ══ MOTION · with GSAP (motion.js) ══ */
/* the chapters' pages rise in batches too: what arrives together follows in reading order */
@media (prefers-reduced-motion: no-preference) {
  .js .cs-inline :is(.csi-head, .csi-sec, .csi-fig, .csi-feature, .csi-card, .csi-end) { transition-delay: calc(var(--i, 0) * 80ms); }
}
/* where ScrollTrigger plays the tide, the CSS one stands down */
html.gsap-tide :is(.bento, .intro-copy, .split, .about, .cv) { animation: none !important; }

/* ══ DEPARTURES · press the board: the cards turn in a quick wave, each catching a touch of FlyAll's purple ══ */
#checkin .tile--board-fa { cursor: pointer; overflow: hidden; text-align: start; font: inherit; }
#checkin .tile--board-fa .sf b { transition: background .5s var(--ease-apple), box-shadow .5s var(--ease-apple), color .5s var(--ease-apple); }
#checkin .tile--board-fa .sf.is-turn b { background: linear-gradient(180deg, #fbf8ff 0 50%, #f2ebff 50% 100%); box-shadow: inset 0 0 0 1px #d9c9fb, 0 1px 3px rgba(130, 74, 234, .18); color: #3a1f8f; transition-duration: .12s; }
.board-sheen { position: absolute; z-index: 3; inset: -10% -30%; opacity: 0; pointer-events: none; mix-blend-mode: multiply;
  background: linear-gradient(100deg, transparent 30%, rgba(27, 94, 206, .07) 42%, rgba(130, 74, 234, .12) 50%, rgba(246, 61, 228, .08) 58%, transparent 70%); }
#checkin .tile--board-fa:focus-visible { outline: 2px solid #824aea; outline-offset: 3px; }
/* rebar's screen: the recording is a browser at full width (about 2:1), so it sits in a browser window - not a
   monitor stretched to that shape. A slim title bar with the three dots; no neck, no foot. */
.tile--devices-rebar .monitor-neck, .tile--devices-rebar .monitor-foot { display: none; }
.tile--devices-rebar .monitor-screen { aspect-ratio: auto; padding-top: clamp(16px, 2.4cqw, 22px); border: 0; border-radius: clamp(8px, 1.4cqw, 12px);
  background: #f3f3f1 radial-gradient(circle at 0 0, transparent 0) no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 60px -28px rgba(20, 40, 10, .35); }
.tile--devices-rebar .monitor-screen::before { content: ''; position: absolute; z-index: 2; top: 0; inset-inline-start: clamp(8px, 1.4cqw, 12px); width: 40px; height: clamp(16px, 2.4cqw, 22px);
  background: radial-gradient(circle, #ff5f57 0 3px, transparent 3.5px) 0 50% / 12px 100% no-repeat, radial-gradient(circle, #febc2e 0 3px, transparent 3.5px) 13px 50% / 12px 100% no-repeat, radial-gradient(circle, #28c840 0 3px, transparent 3.5px) 26px 50% / 12px 100% no-repeat; }
.tile--devices-rebar .rb-scroll-video { height: auto; aspect-ratio: 3000 / 1458; border-radius: 0 0 clamp(8px, 1.4cqw, 12px) clamp(8px, 1.4cqw, 12px); }
.tile--devices-rebar .dev-phone { margin-block-start: calc(var(--mw) * .2); }
/* the phone in the browser window's language: the same light chrome, hairline and shadow, no black bezel or island */
.tile--devices-rebar .dev-phone { padding: clamp(4px, .8cqw, 6px); background: #f3f3f1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 30px 60px -28px rgba(20, 40, 10, .35); }
.tile--devices-rebar .dev-phone .screen { box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.tile--devices-rebar .dev-phone .screen::after { content: none; }

/* ══ THE COVERS ON A PHONE · one template for every project (Tondreau: a fixed heading area, a folio, one flowline) ══
   Two rows high in every world. The folio (01 / 05) at the top end; the logo and the line at the top start; the
   case-study button at the bottom start - one left edge for all three. Behind them, each brand moves a little. */
.hero-m { display: none; }
@media (min-width: 701px) { .hero--btn-m > .tile-btn--label { display: none; } }
@media (max-width: 700px) {
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile.tile--hero { --cv-pad: 18px; --cv-logo: 30px; position: relative; display: block; padding: 0; overflow: hidden; isolation: isolate; border-radius: 22px; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero > .hero-top { position: absolute; z-index: 3; inset: var(--cv-pad) var(--cv-pad) auto; display: flex; justify-content: flex-end; margin: 0; max-width: none; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-k { display: none; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-idx { display: block; margin: 0; font: 600 .6875rem/1 var(--font-text); letter-spacing: .14em; color: currentColor; opacity: .72; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero > .hero-main { position: absolute; z-index: 3; inset: var(--cv-pad) var(--cv-pad) auto; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; max-width: 66%; margin: 0; text-align: start; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-name { margin: 0; font-size: 1.75rem; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-name--logo { height: var(--cv-logo); line-height: 0; padding: 0; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-name--logo img { display: block; width: auto; height: var(--cv-logo); max-width: 100%; object-fit: contain; object-position: left center; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-line { position: static; width: auto; max-width: 28ch; margin: 0; font: 500 .875rem/1.38 var(--font-text); text-align: start; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-line .l-h { display: block; font-weight: 600; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-line:has(.l-short) .l-full { display: none; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero .hero-line .l-short { display: inline; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero > .hero-foot { display: none; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero > .tile-btn--label { position: absolute; z-index: 4; inset: auto auto var(--cv-pad) var(--cv-pad); margin: 0; }
  .scenes :is(#checkin, #hapoalim, #rebar, #tidhar, #maccabiah) .tile--hero > .hero-m { display: block; position: absolute; z-index: 0; inset: 0; overflow: hidden; pointer-events: none; }
  /* each brand's ground */
  .scenes #maccabiah .tile--hero { --cv-logo: 46px; }
  .scenes #tidhar .tile.tile--hero { background: linear-gradient(160deg, #ffffff 0%, #eef5f1 100%); box-shadow: 0 0 0 1px rgba(15, 61, 49, .08), 0 24px 40px -30px rgba(15, 61, 49, .35); color: #0f3d31; }
  .scenes #hapoalim .tile--hero :is(.pf-card, .pf-img) { display: none; }
  .scenes #hapoalim .tile.tile--hero { background: linear-gradient(160deg, #ec2a3c 0%, #e7192e 50%, #c3101f 100%) !important; box-shadow: 0 24px 44px -30px rgba(160, 10, 25, .55); color: #fff; }   /* the photo's card is gone here, so the tile itself is the red */
  .scenes #maccabiah .tile--hero .tile-btn--flow { display: none; }
  .scenes #maccabiah .tile--mac-kit .tile-btn--flow { display: none; }
  /* the motion behind the words: FlyAll's clouds and plane already fly; the others get one quiet move each */
  .scenes #hapoalim .hero-m::before { content: ''; position: absolute; top: 68%; inset-inline-end: -38%; width: 60%; aspect-ratio: 1; translate: 0 -50%; rotate: 45deg; border: clamp(10px, 3.6cqw, 15px) solid rgba(255, 255, 255, .9); border-radius: 24%; }
  .scenes #rebar .hero-m svg { position: absolute; inset: auto -12% 10% -6%; width: 118%; height: 58%; overflow: visible; }
  .scenes #rebar .hero-m path { fill: none; stroke: #5ea531; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
  .scenes #tidhar .hero-m { background-image: linear-gradient(rgba(15, 61, 49, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 61, 49, .07) 1px, transparent 1px); background-size: 24px 24px;
    -webkit-mask: linear-gradient(110deg, transparent 30%, #000 75%); mask: linear-gradient(110deg, transparent 30%, #000 75%); }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .scenes #hapoalim .hero-m::before { animation: cv-turn 14s ease-in-out infinite alternate; }
  .scenes #rebar .hero-m path { stroke-dasharray: 1; animation: cv-draw 11s cubic-bezier(.65, 0, .35, 1) infinite; }
  .scenes #tidhar .hero-m { animation: cv-grid 36s linear infinite; }
  .scenes #maccabiah .tile--hero .collage { animation: cv-drift 28s ease-in-out infinite alternate; }
}
@keyframes cv-turn  { from { rotate: 45deg; scale: 1; } to { rotate: 57deg; scale: 1.07; } }
@keyframes cv-draw  { 0% { stroke-dashoffset: 1; } 42% { stroke-dashoffset: 0; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes cv-grid  { to { background-position: 48px 48px, 48px 48px; } }
@keyframes cv-drift { from { scale: 1.02; translate: 0 0; } to { scale: 1.12; translate: -4% -3%; } }
/* back to the top on tablets and phones too: on a phone it floats at the end, just above the tab bar */
@media (max-width: 1099px) { .to-top { display: grid; } }
@media (max-width: 700px) { .to-top { inset: auto 16px calc(84px + env(safe-area-inset-bottom)) auto; width: 44px; height: 44px; } }

/* ══ TIDHAR · the prototype's opening, rebuilt in layers over the video (app.js: introTl) ══ */
.tp-intro { position: absolute; inset: 0; z-index: 2; overflow: hidden; pointer-events: none; }
.tp-intro[hidden] { display: none; }
.tpi { position: absolute; left: 0; top: 0; width: 390px; height: 844px; transform-origin: 0 0; }
.tpi > img, .tpi-drawer { position: absolute; display: block; max-width: none; }
.tpi-base { left: 0; top: 0; width: 390px; height: 844px; }
.tpi-dial { left: 0; top: 66px; width: 176px; }
.tpi-eyebrow { left: 250px; top: 110px; width: 128px; }
.tpi-title { left: 200px; top: 131px; width: 178px; }
.tpi-sub { left: 180px; top: 165px; width: 198px; }
.tpi-building { left: 150px; top: 200px; width: 240px; }
.tpi-dashes { left: 0; top: 104px; width: 150px; }
.tpi-drawer { left: 0; top: 168px; width: 390px; height: 676px; overflow: hidden; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 28px -14px rgba(0, 30, 20, .35); }
.tpi-drawer img { display: block; width: 390px; height: 676px; }
.tpi-tabbar { left: 0; top: 744px; width: 390px; }

/* ══ MACCABIAH · before and after launch: the interviews side by side (2026-11-02) ══
   Two columns in two of the Games' lanes: before in light blue, after in yellow. On a phone each row becomes a card,
   its two answers labelled */
.mc-ba { border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px rgba(40, 35, 103, .08); overflow: hidden; }
.mc-ba-t { width: 100%; border-collapse: collapse; table-layout: fixed; font: 400 1.0313rem/1.6 var(--font-text); color: #3c3a66; }
.mc-ba-t th, .mc-ba-t td { padding: 20px 24px; text-align: start; vertical-align: top; border-top: 1px solid rgba(40, 35, 103, .1); }
.mc-ba-t thead th { border-top: 0; padding-block: 22px 18px; font: 800 .875rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--mi); }
.mc-ba-t thead th:first-child { width: 20%; }
.mc-ba-t thead .mc-ba-c--0 { box-shadow: inset 0 4px 0 var(--mc); }
.mc-ba-t thead .mc-ba-c--1 { box-shadow: inset 0 4px 0 var(--my); }
.mc-ba-t tbody th { font: 700 .875rem/1.45 var(--font-text); color: #8a87ad; }
.mc-ba-t td.mc-ba-c--1 { background: #fffaf0; }
.mc-ba-l { display: none; }
.mc-ba-metric { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 28px; }
.mc-ba-metric b { font: 800 clamp(3rem, 6vw, 4.5rem)/.9 var(--font-display); letter-spacing: -.04em; color: var(--mp); }
.mc-ba-metric span { max-width: 40ch; font: 500 1.0625rem/1.5 var(--font-text); color: #3c3a66; }
@media (max-width: 760px) {
  .mc-ba { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
  .mc-ba-t, .mc-ba-t tbody, .mc-ba-t tr, .mc-ba-t th, .mc-ba-t td { display: block; width: auto; }
  .mc-ba-t thead { display: none; }
  .mc-ba-t tr { margin: 0 0 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(40, 35, 103, .08); overflow: hidden; }
  .mc-ba-t th, .mc-ba-t td { border-top: 0; padding: 16px 18px; }
  .mc-ba-t tbody th { padding-bottom: 4px; }
  .mc-ba-t td { padding-top: 10px; }
  .mc-ba-t td + td { border-top: 1px solid rgba(40, 35, 103, .08); }
  .mc-ba-l { display: block; margin: 0 0 6px; font: 800 .75rem/1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--mi); }
  .mc-ba-t td.mc-ba-c--0 .mc-ba-l { color: #0089b8; }
  .mc-ba-t td.mc-ba-c--1 .mc-ba-l { color: #b67a0b; }
}

/* ══ REBAR · 13 measuring it (2026-11-02): a signal for each flow, numbered by its chapter, and the first test ══ */
.rb-sig { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.rb-sig li { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 24px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 17, 17, .08); }
.rb-sig-k { display: flex; align-items: center; gap: 10px; margin: 0; font: 700 .9375rem/1.25 var(--font-text); color: var(--ink); }
.rb-sig-k span { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--rg); color: #fff; font: 700 .8125rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.rb-sig-m { margin: 0; font: 700 1.0625rem/1.4 var(--font-text); color: var(--ink); text-wrap: pretty; }
.rb-sig-g { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(17, 17, 17, .1); }
.rb-sig-g p { margin: 0; font: 400 .9375rem/1.5 var(--font-text); color: var(--soft); text-wrap: pretty; }
.rb-sig-g .rb-sig-gk { margin-bottom: 4px; font: 700 .8125rem/1.3 var(--font-text); color: var(--rg2); }
.rb-tests { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(22px, 4vw, 60px); align-items: start; margin-top: clamp(40px, 5vw, 60px); padding: clamp(22px, 3vw, 36px); border-radius: 26px; background: var(--ink); color: #fff; }
.rb-tests .rb-k { margin-bottom: 14px; }
.rb-tests .rb-p { margin: 0; color: rgba(255, 255, 255, .75); }
.rb-tests ol { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rb-tests li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.rb-tests li p { margin: 4px 0 0; font: 400 1.0313rem/1.5 var(--font-text); color: #fff; }
@media (max-width: 1080px) { .rb-sig { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .rb-tests { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .rb-sig { grid-template-columns: minmax(0, 1fr); } }

/* ══ TIDHAR · the prototype's player on a phone (2026-11-02): slimmer beside the small phone - a 32px button that
   still takes a 44px tap, thinner padding and bars ══ */
@media (max-width: 700px) {
  .scenes #tidhar .tp-player { padding: 6px 12px 6px 6px; gap: 10px; border-radius: 22px; box-shadow: 0 12px 24px -14px rgba(15, 61, 49, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }
  [dir="rtl"] .scenes #tidhar .tp-player { padding: 6px 6px 6px 12px; }
  .scenes #tidhar .tp-play { position: relative; width: 32px; height: 32px; }
  .scenes #tidhar .tp-play::after { content: ''; position: absolute; inset: -6px; }
  .scenes #tidhar .tp-play svg { width: 11px; height: 11px; }
  .scenes #tidhar .tp-chaps button { padding: 6px 0; }
  .scenes #tidhar .tp-bar { height: 3px; }
}

/* back to top: no progress ring beside the button (Daniel, 2026-11-02) - the button alone */
.to-top-ring { display: none; }

/* Tidhar hero: the button follows the words at a set 20px gap (the flex gap + 6px), instead of meeting them from the
   bottom; it comes straight after the words, whether or not the foot is showing */
@media (min-width: 701px) {
  #tidhar .tile--hero-tidhar > .tile-btn--label { position: relative; inset: auto; flex: none; align-self: flex-start; order: 1; margin-block-start: 6px; }
  #tidhar .tile--hero-tidhar > .hero-foot { order: 2; }
}

/* ══ Bank Hapoalim: the app home, live in the phone (2026-11-04). The old screen image rebuilt from its own layers, laid
   out on the 390×886 screen in em (1em = 10px of it), so it scales with the phone exactly as the image did; every part
   arrives in turn when the world comes into view (app.js) ══ */
.phone--pa .screen { container-type: inline-size; background: #fff; }
.pa { position: absolute; inset: 0; overflow: hidden; font-size: calc(100cqw / 39); }
.pa img { display: block; max-width: none; }
.pa-l { position: absolute; height: auto; }
:where(.pa) button { all: unset; box-sizing: border-box; cursor: pointer; }
.pa-tab { cursor: pointer; }
.pa-line { position: absolute; background: #e3182d; border-radius: .1em; transform-origin: right; }
.pa-head { position: absolute; inset-inline: 0; overflow: hidden; clip-path: inset(0 0 0 0); }
.pa-head img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 70%; }
.pa-chip { position: absolute; display: grid; place-items: center; border-radius: 99em; background: #fff; transition: scale .18s ease; }
.pa-chip img { height: auto; }
.pa-chip.is-pressed { scale: .94; }
.pa-card { position: absolute; overflow: hidden; border-radius: 1.6em; background: #fff; box-shadow: 0 .4em 1.8em rgba(0, 0, 0, .12); }
.pa-card-h { position: absolute; inset: 0 0 auto; height: 7.4em; }
.pa-card-b { position: absolute; inset: 0; pointer-events: none; }
.pa-rule { transform-origin: right; }
.pa-band { position: absolute; inset-inline: 0; }
.pa-pend, .pa-nav { position: absolute; inset: 0; pointer-events: none; }

/* ══ FlyAll home tile: the phone is a working prototype (faProto in app.js). Everything is in the screens' own units:
   1u = 1px of the 750px-wide captures */
#checkin .tile--checkin-phone .fp.ci-stack, .fx-fa .fp.ci-stack { position: absolute; inset: 0; overflow: hidden; background: #fff; container-type: inline-size; --u: calc(100cqw / 750); }
.fp img { display: block; width: 100%; height: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.fp-pane { position: relative; }
.fp-scroll { position: absolute; inset: 0; overflow: hidden auto; overscroll-behavior: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.fp-scroll::-webkit-scrollbar { display: none; }
/* the tabs: the form's image swaps (fade) while the page below slides to the new form's height */
.fp-heads { position: relative; height: calc(var(--hh) * var(--u)); transition: height .55s cubic-bezier(.22, 1, .36, 1); }
.fp-head { position: absolute; inset: 0 0 auto; opacity: 0; visibility: hidden; transition: opacity .32s ease, visibility 0s .32s; }
.fp-head.is-on { opacity: 1; visibility: visible; transition: opacity .32s ease; }
.fp-hs { position: absolute; z-index: 2; padding: 0; border: 0; border-radius: calc(26 * var(--u)); background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fp-hs:focus-visible { outline: 2px solid #824aea; outline-offset: 1px; }
.fp-hs.is-focus { animation: fp-focus 1.2s ease-out; }
@keyframes fp-focus { 0%, 60% { box-shadow: inset 0 0 0 calc(3 * var(--u)) #1b5ece; } 100% { box-shadow: inset 0 0 0 calc(3 * var(--u)) rgba(27, 94, 206, 0); } }
/* the next tap, when it waits: a soft pulsing ring */
.fp-hint { position: absolute; z-index: 1; border-radius: calc(26 * var(--u)); pointer-events: none; opacity: 0; }
.fp-hint.is-on { opacity: 1; animation: fp-hint 1.6s ease-in-out infinite; }
@keyframes fp-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(130, 74, 234, .55), inset 0 0 0 calc(3 * var(--u)) rgba(130, 74, 234, .7); } 50% { box-shadow: 0 0 0 calc(14 * var(--u)) rgba(130, 74, 234, 0), inset 0 0 0 calc(3 * var(--u)) rgba(130, 74, 234, .25); } }
.fp-ripple { position: absolute; z-index: 3; width: calc(110 * var(--u)); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(130, 74, 234, .3), rgba(130, 74, 234, 0) 70%); pointer-events: none; animation: fp-ripple .6s ease-out forwards; }
@keyframes fp-ripple { from { scale: .2; opacity: 1; } to { scale: 1.6; opacity: 0; } }
/* the other screens sit over the home: the search steps cross-fade; the results page comes in from the left, as RTL pages do */
.fp-layer { position: absolute; inset: 0; z-index: 2; background: #fff; opacity: 0; visibility: hidden; transition: opacity .3s ease, translate .45s cubic-bezier(.22, 1, .36, 1), visibility 0s .45s; }
.fp-step { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s .28s; }
.fp-step.is-on { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.fp[data-view="step"] .fp-steps, .fp[data-view="load"] .fp-load, .fp[data-view="res"] .fp-res { opacity: 1; visibility: visible; transition: opacity .3s ease, translate .45s cubic-bezier(.22, 1, .36, 1); }
.fp-load, .fp-res { translate: -8% 0; }
.fp[data-view="load"] .fp-load, .fp[data-view="res"] .fp-res { translate: 0 0; }
.fp[data-view="res"] .fp-load { opacity: 1; visibility: visible; }   /* stays under the results while they fade in */
/* loading, as the site does it: a line runs along the header's edge, a spinner turns, the prices shimmer */
.fp-top { position: absolute; inset: 0 0 auto; z-index: 4; pointer-events: none; }
.fp-top > img { filter: drop-shadow(0 calc(4 * var(--u)) calc(10 * var(--u)) rgba(130, 74, 234, .16)); }
.fp-top .fp-hs { pointer-events: auto; }
.fp-line { position: absolute; inset: 0; width: 100%; height: auto; overflow: visible; }
.fp-line path { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; opacity: 0; transition: opacity .3s; }
.fp[data-view="load"] .fp-line path { opacity: 1; animation: fp-line 2.4s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes fp-line { to { stroke-dashoffset: 0; } }
.fp-spin { position: absolute; width: calc(38 * var(--u)); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: calc(4 * var(--u)) solid #e9e3fb; border-top-color: #824aea; animation: fp-spin .8s linear infinite; }
@keyframes fp-spin { to { rotate: 1turn; } }
.fp-shim { position: absolute; border-radius: calc(10 * var(--u)); background: linear-gradient(90deg, #e8e8ee 0%, #f7f7fa 45%, #e8e8ee 90%) 0 0 / 220% 100%; animation: fp-shim 1.1s linear infinite; }
@keyframes fp-shim { from { background-position: 110% 0; } to { background-position: -110% 0; } }
.fp-toast { position: absolute; z-index: 6; inset-inline: 7%; bottom: 4.5%; margin: 0; padding: calc(22 * var(--u)) calc(28 * var(--u)); border-radius: calc(26 * var(--u)); background: #040f21; color: #fff; font: 500 calc(26 * var(--u))/1.4 var(--font-text); text-align: center; opacity: 0; translate: 0 calc(14 * var(--u)); pointer-events: none; transition: opacity .25s, translate .35s cubic-bezier(.22, 1, .36, 1); }
.fp-toast.is-on { opacity: 1; translate: 0 0; }
#checkin .tile--checkin-phone .fp .fab, .fx-fa .fp .fab { z-index: 5; }
@media (prefers-reduced-motion: reduce) {
  .fp-heads, .fp-head, .fp-layer, .fp-step, .fp-toast { transition: none; }
  .fp-hint.is-on, .fp-spin, .fp-shim, .fp[data-view="load"] .fp-line path { animation: none; }
  .fp[data-view="load"] .fp-line path { stroke-dashoffset: 0; }
}

/* ══ FlyAll: Sol, live - her real card from the results page, between the hotels around it (app.js 'checkin-book') */
.fa-sol--live { gap: 0; }
.fa-sol-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding-block-start: 4px; overflow: hidden; margin: clamp(8px, 3cqh, 16px) 0 0; }
.fa-sol-ctx { flex: none; display: block; width: 84%; height: auto; max-width: none; margin-inline: auto; border-radius: 10px; opacity: .55; filter: saturate(.75); }
.fa-sol-ctx--a { -webkit-mask-image: linear-gradient(to top, #000, transparent 92%); mask-image: linear-gradient(to top, #000, transparent 92%); margin-block-end: -3%; }
.fa-sol-ctx--b { -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%); mask-image: linear-gradient(to bottom, #000, transparent 88%); margin-block-start: -1%; }
.fa-sol-card { position: relative; z-index: 1; flex: none; display: block; width: 100%; container-type: inline-size; filter: drop-shadow(0 14px 22px rgba(90, 50, 170, .22)); translate: 0 10px; opacity: 0; transition: translate .9s cubic-bezier(.22, 1, .36, 1), opacity .5s; }
.fa-sol-card > img { display: block; width: 100%; height: auto; max-width: none; }
.tile--fa-sol.is-awake .fa-sol-card { translate: 0 0; opacity: 1; }
/* her orb wakes: two soft rings leave it, once */
.fa-sol-wake { position: absolute; left: 11.1%; top: 17.3%; width: 11.5%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; }
.tile--fa-sol.is-awake .fa-sol-wake { animation: fa-sol-wake 1.3s ease-out .5s 2 both; }
@keyframes fa-sol-wake { from { box-shadow: 0 0 0 0 rgba(130, 74, 234, .55); } to { box-shadow: 0 0 0 7cqi rgba(130, 74, 234, 0); } }
/* her field: the placeholder gives way to a question being typed */
.fa-sol-type { position: absolute; left: 20.2%; width: 62.3%; top: 70.7%; height: 13.8%; display: flex; align-items: center; background: #fff; opacity: 0; transition: opacity .25s 1.35s; font: 400 3.9cqi/1 'SimplerPro', var(--font-text); color: #040f21; white-space: nowrap; overflow: hidden; }
.tile--fa-sol.is-awake .fa-sol-type { opacity: 1; }
.fa-sol-type b { font-weight: 400; }
.fa-sol-type b::after { content: ''; display: inline-block; width: 1px; height: 1.1em; margin-inline-start: 2px; vertical-align: -.2em; background: #824aea; animation: fa-caret 1s steps(1) infinite; }
@keyframes fa-caret { 50% { opacity: 0; } }
/* Sol tile, three directions (temporary, app.js SOLV / ?sol=a|b|c): no gradient button - the tile itself asks */
.tile--fa-sol { cursor: pointer; }
.tile--fa-sol:focus-visible { outline: 2px solid #824aea; outline-offset: 3px; }
.fa-sol-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin: clamp(6px, 2.4cqh, 12px) 0 0; font: 500 .75rem/1.3 var(--font-text); color: #5b6478; text-align: center; transition: color .25s; }
.fa-sol-hint i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #824aea; box-shadow: 0 0 0 3px rgba(130, 74, 234, .16); }
.tile--fa-sol:hover .fa-sol-hint { color: #4b2fa8; }
/* her own send button: a ring breathes once the question is typed; a press when the tile is tapped */
.fa-sol-send { position: absolute; left: 14.4%; top: 77.3%; width: 6%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; }
.tile--fa-sol.is-typed .fa-sol-send { animation: fa-sol-send 1.8s ease-out infinite; }
.tile--fa-sol.is-sent .fa-sol-send { animation: fa-sol-press .5s ease-out both; }
@keyframes fa-sol-send { 0% { box-shadow: 0 0 0 0 rgba(130, 74, 234, .5); } 70%, 100% { box-shadow: 0 0 0 4.5cqi rgba(130, 74, 234, 0); } }
@keyframes fa-sol-press { 40% { scale: .78; background: rgba(255, 255, 255, .4); } 100% { scale: 1; } }
.tile--fa-sol:hover .fa-sol-card { filter: drop-shadow(0 18px 26px rgba(90, 50, 170, .3)); }

/* B: where she lives - a window on the real results; it scrolls to her card, the rest steps back, she lifts */
.fa-sol-win { position: relative; flex: 1; min-height: 0; margin-top: clamp(8px, 3cqh, 14px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(91, 100, 120, .12), 0 14px 26px -18px rgba(60, 40, 120, .4); container-type: size; }
.fa-sol-strip { position: absolute; inset: 0 0 auto; translate: 0 calc(-600 / 600 * 100cqw); transition: translate 2.4s cubic-bezier(.65, 0, .35, 1) .3s; }
.fa-sol-strip > img { display: block; width: 100%; height: auto; max-width: none; }
.fa-sol-strip::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(244, 241, 252, 0); transition: background .7s 2.5s; pointer-events: none; }
.tile--fa-sol.is-awake .fa-sol-strip { translate: 0 calc(-1331 / 600 * 100cqw + (100cqh - 319 / 600 * 100cqw) / 2); }
.tile--fa-sol.is-awake .fa-sol-strip::after { background: rgba(244, 241, 252, .66); }
.fa-sol--b .fa-sol-card { position: absolute; z-index: 2; left: calc(13 / 600 * 100%); top: calc(1331 / 600 * 100cqw); width: calc(571 / 600 * 100%); opacity: 1; translate: 0 0; filter: none; transition: scale .6s cubic-bezier(.22, 1, .36, 1) 2.6s, filter .6s 2.6s; }
.tile--fa-sol.is-awake .fa-sol--b .fa-sol-card { scale: 1.025; filter: drop-shadow(0 12px 20px rgba(90, 50, 170, .28)); }
.fa-sol--b .fa-sol-type { transition-delay: 3s; }

/* C: the idea - the live search's 1,088 hotels and its filters, or one sentence to her */
.fa-sol-count { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; text-align: center; font: 400 .8125rem/1.3 'SimplerPro', var(--font-text); color: #5b6478; }
.fa-sol-count b { font: 700 clamp(1.75rem, 14cqw, 2.625rem)/1 'SimplerPro', var(--font-text); letter-spacing: -.02em; color: var(--fa-ink); font-variant-numeric: tabular-nums; }
.fa-sol-pills { display: flex; justify-content: center; gap: 5px; margin: clamp(8px, 2.8cqh, 14px) 0 0; transition: opacity .6s 1.3s, filter .6s 1.3s; }
.fa-sol-pills span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border: 1px solid #1b5ece; border-radius: 99px; background: #fff; font: 400 clamp(.5625rem, 3.7cqw, .6875rem)/1 'SimplerPro', var(--font-text); color: var(--fa-ink); white-space: nowrap; }
.fa-sol-pills svg { width: 1.25em; height: 1.25em; fill: none; stroke: #1b5ece; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile--fa-sol.is-awake .fa-sol-pills { opacity: .4; filter: saturate(.2); }
.fa-sol-or { margin: clamp(10px, 3.6cqh, 18px) 0 0; text-align: center; font: 500 .875rem/1.3 'SimplerPro', var(--font-text); color: #5b6478; }
.fa-sol-or b { font-weight: 700; background: var(--fa-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fa-sol--c { justify-content: center; }
/* the card's shadow needs room: the stage clips (for the hotel below), so it gets padding instead of a cut edge */
.fa-sol--a .fa-sol-stage { padding: 10px 16px 0; margin-inline: -16px; }
.fa-sol--c .fa-sol-stage { overflow: visible; }
.fa-sol--c .fa-sol-stage { flex: none; margin-top: clamp(6px, 2cqh, 10px); }
.fa-sol--c .fa-sol-card { transition-delay: 1.5s; }
.fa-sol--c .fa-sol-type { transition-delay: 2.4s; }
@media (prefers-reduced-motion: reduce) { .fa-sol-strip, .fa-sol-strip::after, .fa-sol--b .fa-sol-card, .fa-sol-pills { transition: none; } .tile--fa-sol.is-typed .fa-sol-send { animation: none; } }
@container (max-height: 300px) { .fa-sol-ctx { display: none; } }
@media (prefers-reduced-motion: reduce) { .fa-sol-card { transition: none; translate: 0 0; opacity: 1; } .fa-sol-type { transition: none; } .fa-sol-type b::after { animation: none; } }
/* inside the phone: when the search lands on her, her card is lit */
.fp-glow { position: absolute; z-index: 1; border-radius: calc(40 * var(--u)); pointer-events: none; }
.fp-glow.is-on { animation: fp-glow 1.6s ease-out 2; }
@keyframes fp-glow { from { box-shadow: 0 0 0 0 rgba(130, 74, 234, .6); } to { box-shadow: 0 0 0 calc(34 * var(--u)) rgba(130, 74, 234, 0); } }
