/* yehudagelb.com — main site, opening screen.
   The page is a camera monitor. Black info bars above and below, the picture between them.
   Inside the picture there are three depths: the wall (name, clips, lists), him, and the glass
   (focus boxes, labels, the text you read). hero.js moves the focus between the wall and him.

   Views: "home" is the calm first screen (him in focus, a mode menu). "film", "security" and
   "apps" are the detailed views: the focus goes to the wall and the wall fills with that work. */

:root {
  --ink: #050404;
  --cream: #f4e2c8;
  --cream-dim: rgba(244, 226, 200, .7);
  --dim: #8f877c;
  --maroon: #240b0d;
  --rec: #ff3b30;
  --lock: #7dff8a;
  --warn: #ff5545;

  --bar-t: 46px;
  --bar-b: 58px;
  --hf: max(440px, calc(100svh - var(--bar-t) - var(--bar-b)));   /* picture height */
  --px: calc(30vw - var(--hf) * 0.403);                           /* left edge of his photo */
  --rz: calc(30vw + var(--hf) * 0.44);                            /* where the wall is clear to his right */
  --rw: calc(100vw - var(--rz) - 3.4vw);                          /* width of that clear wall */
  --F: calc(var(--rw) / 4.6);                                     /* name size; hero.js measures and sets it */
  /* one clip in the film grid: a third of the clear wall, or less when the picture is short,
     so three rows and the text under them always fit */
  --cw: min(calc((var(--rw) - 28px) / 3), calc(((var(--hf) - var(--rtop) - var(--film-b, 232px) - 46px) / 3 - var(--cap-h)) * 1.7778));
  --cap-h: 19px;                                                  /* a caption line under a clip */
  /* the two lines everything on the wall hangs from: the left column's edge, and the top of the
     small name's capitals, where the left column starts */
  --lx: max(1.4vw, calc(var(--px) - var(--hf) * 0.115));
  --ltop: calc(var(--hf) * 0.06 + var(--F) * 0.0247);
  /* and where the right column starts: a fixed step under the small name's second line */
  --rtop: calc(var(--hf) * 0.085 + var(--F) * 0.5745);

  /* set every frame by hero.js. These defaults are the resting first screen. */
  --wall-blur: 5.5px;
  --person-blur: 0px;
  --breath: 1;
  --frame-op: 1;
  --name-k: 1;
  --lean-x: 0;                                                    /* where the pointer is, -1..1 */
  --lean-y: 0;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.mono, .bar, .eyebrow, .cap, .af-tag, .card small, .player-close {
  font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 87.5%;
}

.monitor {
  height: 100vh; height: 100svh;
  min-height: 544px;
  display: grid;
  grid-template-rows: var(--bar-t) 1fr var(--bar-b);
  grid-template-columns: minmax(0, 1fr);            /* the bars never push the picture wider than the window */
  background: var(--ink);
  overflow: hidden; overflow: clip;
}

/* ---------- info bars ---------- */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 clamp(14px, 2vw, 30px);
  font-size: 12px; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase;
  color: #ece4d8;
  white-space: nowrap;
  min-width: 0; overflow: hidden;
  z-index: 5;
}
@media (max-width: 1240px) { .bar-top .grp.dim, .meters { display: none !important; } }
.grp { display: flex; align-items: center; gap: clamp(12px, 1.5vw, 24px); }
.dim { color: var(--dim); }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--rec); font-weight: 600; }
.rec i { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 10px rgba(255,59,48,.7); }
.rec.blink i { opacity: .25; box-shadow: none; }
.rec.stby { color: #ece4d8; }
.rec.stby i { background: transparent; box-shadow: inset 0 0 0 2px #ece4d8; }
.tc { font-variant-numeric: tabular-nums; }
.batt { display: inline-flex; align-items: center; gap: 7px; color: #ece4d8; }
.batt i {
  position: relative; width: 24px; height: 11px; border: 1.5px solid currentColor; border-radius: 2.5px;
  background: linear-gradient(90deg, currentColor 0 80%, transparent 80%) content-box; padding: 1.5px;
}
.batt i::after { content: ""; position: absolute; right: -4.5px; top: 2px; width: 2px; height: 4px; background: currentColor; border-radius: 0 1px 1px 0; }
.contact {
  padding: 7px 14px; border-radius: 999px;
  background: var(--cream); color: var(--ink);
  font-weight: 600; letter-spacing: .02em;
  transition: background .2s ease;
}
.contact:hover { background: #fff; }
/* the other language */
.lang {
  padding: 6px 11px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .38); color: #ece4d8;
  font-weight: 600; letter-spacing: .02em; transition: color .2s, box-shadow .2s;
}
.lang[lang="he"] { font-family: "Heebo", "Arial Hebrew", Arial, sans-serif; font-size: 13.5px; letter-spacing: 0; padding: 5px 12px; }
.lang:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .85); }

/* the dial stays in the middle of the bottom bar whatever sits beside it */
.bar-bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
.bar-bottom > :last-child { justify-self: end; }
.bar-bottom .dial { grid-column: 2; }
.dial { display: flex; gap: 8px; }
.dial button {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .3);
  color: #e3dbcf; text-transform: uppercase; font-size: 13.5px; letter-spacing: .08em; font-weight: 600;
}
.dial button[data-view="home"] { padding-left: 12px; }
.dial button i {
  font-style: normal; width: 19px; height: 19px; border-radius: 4px;
  display: grid; place-items: center; font-size: 11px;
  background: rgba(236, 228, 216, .14);
}
.dial button[data-view="home"] i { color: var(--rec); font-size: 9px; }
.dial button:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(236, 228, 216, .6); }
.dial button.on { background: var(--cream); color: var(--ink); box-shadow: none; font-weight: 600; }
.dial button.on i { background: var(--ink); color: var(--cream); }
.dial button.on[data-view="home"] i { color: var(--rec); }

.meters { gap: 16px; }
.meter { display: inline-flex; align-items: center; gap: 8px; color: var(--dim); }
.meter b { font-weight: 500; }
.meter i {
  --l: .5;
  position: relative; width: 108px; height: 8px; display: block;
  background: rgba(236, 228, 216, .13);
}
.meter i::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--lock) 0 68%, #ffd95a 68% 86%, var(--rec) 86%);
  clip-path: inset(0 calc((1 - var(--l)) * 100%) 0 0);
}
.meter i::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 6px, var(--ink) 6px 8px);
}

/* ---------- the picture ---------- */
.frame {
  position: relative; overflow: hidden; overflow: clip;   /* clip: nothing, not even keyboard focus, can scroll the picture */
  background: #2a1a10;
  isolation: isolate;
}
.frame > .plate, .frame > .shade, .frame > .wall, .frame > .person, .frame > .glass { opacity: var(--frame-op); }

.plate {
  position: absolute; inset: -2%; width: 104%; height: 104%;
  object-fit: cover; object-position: 50% 50%;
  filter: brightness(.6) saturate(1.1) contrast(1.05);
  transform: translate(calc(var(--lean-x) * 4px), calc(var(--lean-y) * 2px)) scale(var(--breath));
  z-index: 0;
}
.shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 32% 42%, transparent 35%, rgba(8, 4, 2, .5) 100%),
    linear-gradient(90deg, transparent 55%, rgba(8, 4, 2, .28));
}

.wall {
  position: absolute; inset: 0; z-index: 2;
  filter: blur(var(--wall-blur));
}

.wall-name {
  position: absolute;
  left: var(--rz); top: calc(var(--hf) * 0.06);
  margin: 0 0 0 -0.0084em;                 /* the Y's own side bearing, so its stroke sits on the edge */
  font-size: calc(var(--F) * var(--name-k));
  font-weight: 800; font-stretch: 106%;
  line-height: .84; letter-spacing: -0.035em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--cream);
  opacity: .93;
}
.wall-name span { display: block; width: max-content; }

.set { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.item { position: absolute; display: block; }

/* captions under clips and screens */
.cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 6px 1px 0;
  font-size: 10.5px; line-height: 13px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--cream); white-space: nowrap; overflow: hidden;
}
.cap b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.cap i {                              /* a small label on the picture's corner: AI, edit, views */
  position: absolute; left: 6px; top: 6px;
  padding: 3px 6px 3px; border-radius: 3px;
  background: rgba(5, 4, 4, .74); color: var(--cream);
  font-style: normal; font-size: 9.5px; letter-spacing: .05em;
}

/* film: screens on the wall, playing */
.reel, .shot img {
  display: block; width: 100%;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(20, 9, 6, .9), 0 16px 34px rgba(0, 0, 0, .5);
  background-color: #120a07;
}
.reel { aspect-ratio: 16 / 9; background-size: 600% 500%; background-position: 0 0; }
.tall .reel { aspect-ratio: 9 / 16; }
.clip:hover .reel, .shot[data-slot="front"]:hover img { box-shadow: 0 0 0 2px var(--cream), 0 16px 34px rgba(0, 0, 0, .5); }
.shot img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 0; }

.bin {
  position: absolute; left: var(--rz); top: var(--rtop);
  display: grid; grid-template-columns: repeat(3, var(--cw)); gap: 12px 14px;
}
.bin .item { position: relative; }
/* three upright screens to his left; the third slips behind his shoulder */
.tall-1 { left: var(--lx); top: var(--ltop); width: calc(var(--hf) * 0.155); }
.tall-2 { left: calc(var(--lx) + var(--hf) * 0.172); top: var(--ltop); width: calc(var(--hf) * 0.155); }
.tall-3 { left: calc(var(--lx) + var(--hf) * 0.172); top: calc(var(--ltop) + var(--hf) * 0.3226 + 19px); width: calc(var(--hf) * 0.155); }

/* security */
.card {
  padding: 12px 13px 13px;
  background: #f1e6d4; color: #1c120d;
  border-radius: 3px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
  font-size: clamp(11px, .9vw, 13.5px); line-height: 1.38;
}
.card small { display: block; font-size: .78em; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.card b { display: block; margin: 3px 0 5px; font-size: 1.55em; font-weight: 800; font-stretch: 106%; letter-spacing: -.01em; }
.card span { display: block; }
.card:hover { background: #fff; }
.cards { position: absolute; left: var(--lx); top: var(--ltop); width: max(calc(var(--hf) * 0.24), 150px); display: grid; gap: 14px; }
.cards .card { position: relative; }

/* certifications and the degree: one maroon card with the rest of the pack behind it; a press flips it */
.creds {
  position: relative; display: block; width: 100%;
  margin-top: 6px;
  perspective: 700px;
  font-size: clamp(11px, .9vw, 13.5px); line-height: 1.38; text-align: left;
}
.creds::before, .creds::after {       /* the cards underneath */
  content: ""; position: absolute; inset: 0; border-radius: 3px; background: #2a0d10;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .35);
}
.creds::before { transform: translate(8px, 8px); opacity: .55; }
.creds::after { transform: translate(4px, 4px); opacity: .8; }
.creds-face {
  position: relative; z-index: 1; display: block;
  padding: 12px 13px 30px;
  min-height: 9.4em;
  background: linear-gradient(160deg, #4a171b, #2f0e11); color: var(--cream);
  border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(244, 226, 200, .22), 0 16px 34px rgba(0, 0, 0, .45);
  transition: transform .17s ease-in;
  backface-visibility: hidden;
}
.creds.turn .creds-face { transform: rotateY(90deg); }
.creds-face small {
  display: flex; justify-content: space-between; gap: 8px; white-space: nowrap;
  font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 87.5%;
  font-size: .78em; letter-spacing: .06em; text-transform: uppercase; opacity: .75;
}
.creds-face b { display: block; margin: 4px 0 4px; font-size: 1.9em; font-weight: 800; font-stretch: 106%; letter-spacing: -.01em; line-height: 1.05; }
.creds-face > span { display: block; }
.creds-face em { display: block; margin-top: 3px; font-style: normal; opacity: .72; }
.creds-flip {
  position: absolute; z-index: 2; left: 13px; bottom: 9px;
  font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 87.5%;
  font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--lock);
}
.creds-flip span { display: inline-block; transition: transform .3s; }
.creds:hover .creds-flip span { transform: rotate(180deg); }
.creds:hover .creds-face { box-shadow: inset 0 0 0 1px rgba(244, 226, 200, .6), 0 16px 34px rgba(0, 0, 0, .45); }

/* the right-hand column: three blocks spread evenly between the name and the headline.
   hero.js measures where the headline starts (--sec-b, from the picture's bottom edge). */
.file {
  position: absolute; left: var(--rz); top: var(--rtop); width: var(--rw);
  bottom: calc(var(--sec-b, 30%) + var(--hf) * 0.045);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
}
.file .item { position: relative; }
.file { --rowpad: clamp(.28em, calc(var(--hf) * 0.0085), .5em); }
.career {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 18.5px); line-height: 1.3; font-weight: 550;
}
.career div { display: flex; gap: 18px; align-items: baseline; padding: var(--rowpad) 0; border-top: 1px solid rgba(244, 226, 200, .3); }
.career div:last-child { border-bottom: 1px solid rgba(244, 226, 200, .3); }
.career dt {
  flex: none; width: 9.4em; white-space: nowrap;
  font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 87.5%;
  font-size: .72em; font-weight: 500; letter-spacing: .05em; color: var(--cream-dim);
}
.career dd { margin: 0; }
.file .hunts { margin: 0 0 10px; }
.cases {
  margin: 0; padding: 0; list-style: none;
  font-size: clamp(13px, 1.08vw, 16.5px); line-height: 1.3; font-weight: 550;
}
.cases li { border-top: 1px solid rgba(244, 226, 200, .3); }
.cases li:last-child { border-bottom: 1px solid rgba(244, 226, 200, .3); }
.cases a { display: flex; gap: 14px; align-items: baseline; padding: var(--rowpad) 0; transition: padding .25s, box-shadow .25s; }
.cases a:hover { color: #fff; }
.cases li.hit a { box-shadow: inset 3px 0 0 var(--warn); padding-left: 12px; }      /* the hunter has been here */
/* the press: two figures and the outlets that ran the research */
.press { display: flex; flex-wrap: wrap; align-items: center; column-gap: clamp(22px, 2.6vw, 48px); row-gap: 10px; }
.stat { display: flex; align-items: center; gap: 10px; margin: 0; flex: none; }
.stat b { font-size: clamp(26px, min(2.5vw, calc(var(--hf) * 0.05)), 44px); font-weight: 800; font-stretch: 106%; letter-spacing: -.025em; line-height: 1; }
.stat span, .outlets {
  font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 87.5%;
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5;
  color: var(--cream-dim);
}
.stat span { color: var(--cream); }
.outlets { margin: 0; flex-basis: 100%; }

/* apps */
/* apps: a carousel on the wall. The app in front is large and sharp; the next waits soft at the
   right edge; the one before has gone round behind him and shows small on his other side. */
.set-apps {
  --sa: min(calc(var(--rw) * 0.84), calc((var(--hf) - var(--rtop) - var(--apps-b, 190px) - 50px) * 1.6));
}
.deck .shot {
  position: absolute; left: var(--rz); top: var(--rtop); width: var(--sa);
  transition: left .75s cubic-bezier(.3, .7, .15, 1), top .75s cubic-bezier(.3, .7, .15, 1), width .75s cubic-bezier(.3, .7, .15, 1), filter .6s, opacity .5s;
  cursor: pointer;
}
.deck .shot .cap { padding-top: 10px; font-size: 12px; line-height: 16px; transition: opacity .35s; }
.deck .shot .cap b { font-size: 13.5px; letter-spacing: .06em; }
.deck .shot .cap u { text-decoration: none; color: var(--lock); font-weight: 600; margin-left: auto; padding-right: 2px; }
.deck .shot .cap i { left: 10px; top: 10px; font-size: 10.5px; padding: 4px 8px; }
.deck .shot[data-slot="front"] { z-index: 2; }
.deck span.shot[data-slot="front"] { cursor: default; }
.deck .shot:not([data-slot="front"]) .cap { opacity: 0; }
.deck .shot[data-slot="next"] {
  left: calc(var(--rz) + var(--sa) + 20px); top: calc(var(--rtop) + var(--sa) * 0.0781); width: calc(var(--sa) * 0.75);
  filter: blur(3px) brightness(.62);
}
.deck .shot[data-slot="prev"] {
  left: var(--lx); top: var(--ltop); width: calc(var(--hf) * 0.3);
  filter: blur(2.5px) brightness(.66);
}
.deck .shot[data-slot="far"] {
  left: calc(var(--rz) + var(--sa) * 1.9); top: calc(var(--rtop) + var(--sa) * 0.125); width: calc(var(--sa) * 0.6);
  filter: blur(6px) brightness(.5); opacity: 0; pointer-events: none;
}
.deck .shot[data-slot="next"]:hover, .deck .shot[data-slot="prev"]:hover { filter: blur(1.5px) brightness(.85); }
/* the arrows sit on the front screen's two edges, and the count under its right corner */
.deck-nav { position: absolute; left: var(--rz); top: var(--rtop); width: var(--sa); height: calc(var(--sa) * 0.625); pointer-events: none; z-index: 3; }
.deck-btn {
  position: absolute; top: 50%; width: clamp(40px, 3.4vw, 54px); aspect-ratio: 1; margin-top: calc(clamp(40px, 3.4vw, 54px) / -2);
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cream); color: var(--ink); font-size: clamp(18px, 1.5vw, 24px); font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .5); pointer-events: auto;
  transition: transform .15s, background .2s;
}
.deck-btn[data-step="-1"] { left: calc(clamp(40px, 3.4vw, 54px) / -2); }
.deck-btn[data-step="1"] { right: calc(clamp(40px, 3.4vw, 54px) / -2); }
.deck-btn:hover { background: #fff; transform: scale(1.08); }
.deck-count {                         /* which app is up, on the picture's top right corner */
  position: absolute; right: 10px; top: 10px;
  padding: 4px 8px; border-radius: 3px; background: rgba(5, 4, 4, .74);
  font-family: "Martian Mono", ui-monospace, Menlo, monospace; font-stretch: 87.5%;
  font-size: 10.5px; font-weight: 500; letter-spacing: .08em; color: var(--cream);
}

/* him */
.person {
  position: absolute; z-index: 3;
  left: var(--px); bottom: -4%;
  height: 104%; width: auto;
  filter: blur(var(--person-blur));
  transform: translate(calc(var(--lean-x) * -7px), calc(var(--lean-y) * -3px));
  pointer-events: none; user-select: none;
}

/* ---------- the glass ---------- */
.glass { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.glass a, .glass button { pointer-events: auto; }

.guide { position: absolute; width: 26px; height: 26px; border: 0 solid rgba(255, 255, 255, .62); }
.g-tl { left: 20px; top: 18px; border-left-width: 1.5px; border-top-width: 1.5px; }
.g-tr { right: 20px; top: 18px; border-right-width: 1.5px; border-top-width: 1.5px; }
.g-bl { left: 20px; bottom: 18px; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.g-br { right: 20px; bottom: 18px; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.af {
  --c: #fff;
  position: absolute; left: 0; top: 0; width: 0; height: 0;
  border: 2px solid var(--c);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .35);
  opacity: 0;
}
.af.is-lock { --c: var(--lock); }
.af.is-warn { --c: var(--warn); }
.af-tag {
  position: absolute; left: -2px; top: calc(100% + 6px);
  padding: 4px 8px 4px;
  background: var(--c); color: #0b0705;
  font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  opacity: var(--tag, 1);
}
.af-tag:empty { display: none; }
.af[data-tag="in"] .af-tag { top: 6px; left: 6px; }
.af[data-tag="side"] .af-tag { top: -2px; left: calc(100% + 8px); }
.af[data-tag="none"] .af-tag { display: none; }
.af[data-tag="right"] .af-tag { left: auto; right: 6px; top: 50%; transform: translateY(-50%); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--cream-dim);
}

/* first screen: the menu. Three rows, each a title with its line under it. Every size is a share
   of the menu's own width (cqw), and the menu is exactly as wide as the name above it. */
.menu {
  position: absolute; left: var(--rz); bottom: 6.5%;
  width: var(--nw, min(var(--rw), 720px));              /* hero.js measures the name */
  container-type: inline-size;
  opacity: 1;
  text-shadow: 0 1px 14px rgba(8, 4, 2, .55);
}
.menu button {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 3cqw; row-gap: 1cqw; align-items: center;
  width: 100%;
  padding: 2.5cqw 0;
  border-top: 1px solid rgba(244, 226, 200, .34);
}
.menu button:last-child { border-bottom: 1px solid rgba(244, 226, 200, .34); }
.menu button::before {                /* the highlight reaches past the text, so the text itself stays on the left edge */
  content: ""; position: absolute; inset: 0 -14px; z-index: -1;
  background: rgba(244, 226, 200, .1); opacity: 0; transition: opacity .2s;
}
.menu button b { grid-column: 1; font-size: 7cqw; font-weight: 780; font-stretch: 106%; letter-spacing: -.025em; line-height: .92; }
.menu button span { grid-column: 1; grid-row: 2; font-size: clamp(13px, 2.55cqw, 20px); line-height: 1.3; font-weight: 450; color: rgba(244, 226, 200, .9); }
.menu button::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; font-size: 4.4cqw; line-height: 1; color: rgba(244, 226, 200, .5); transition: color .2s; }
.menu button:hover::before, .menu button:focus-visible::before { opacity: 1; }
.menu button:hover::after, .menu button:focus-visible::after { color: var(--cream); }

/* a mode's text */
.panel {
  position: absolute;
  left: var(--rz); bottom: 9%;
  width: var(--rw);
  opacity: 0; visibility: hidden;
  filter: blur(var(--panel-blur, 0px));
  text-shadow: 0 1px 14px rgba(8, 4, 2, .55);
}
.panel h2 {
  margin: 0;
  font-size: clamp(21px, min(2.25vw, calc(var(--hf) * 0.046)), 36px);
  font-weight: 750; font-stretch: 104%;
  line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}
.say {
  margin: 8px 0 0; max-width: 36em;
  font-size: clamp(14px, 1.08vw, 17.5px); line-height: 1.42; font-weight: 450;
  color: rgba(244, 226, 200, .92);
}
.acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.go {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--cream); color: var(--maroon);
  font-size: 14.5px; font-weight: 700; font-stretch: 104%;
  text-shadow: none;
  transition: background .2s, gap .2s;
}
.go:hover { background: #fff; gap: 14px; }
.go-line { background: rgba(8, 4, 2, .28); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(244, 226, 200, .75); }
.go-line:hover { background: var(--cream); color: var(--maroon); box-shadow: none; }

.below { display: none; }
@media (max-height: 780px) and (min-aspect-ratio: 5/4) { .panel-apps .say { display: none; } }
/* Security's column gives things up when the window is short (hero.js sets data-tight) */
:root[data-tight] .panel-security .say { display: none; }
:root[data-tight="2"] .outlets, :root[data-tight="3"] .outlets { display: none; }
:root[data-tight="3"] .file { --rowpad: .2em; gap: 7px; }
:root[data-tight="3"] .file .hunts { margin-bottom: 5px; }
@media (max-height: 700px) and (min-aspect-ratio: 5/4) { .card span { display: none; } .card b { margin-bottom: 0; } .creds-face { min-height: 0; } }
/* short windows: the clips drop their caption line (pointing at one still names it) and grow */
@media (max-height: 740px) and (min-aspect-ratio: 5/4) {
  :root { --cap-h: 0px; }
  .set-film .cap { padding: 0; }
  .set-film .cap b { display: none; }
  .tall-3 { top: calc(var(--ltop) + var(--hf) * 0.3226); }
}

/* playback */
.player {
  position: absolute; inset: 0; z-index: 6;
  display: grid; place-items: center;
  background: rgba(5, 4, 4, .94);
}
.player[hidden] { display: none; }
.player-box { width: min(92%, calc((var(--hf) - 96px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; box-shadow: 0 0 0 1px rgba(244, 226, 200, .25); }
.player-box.is-tall { width: auto; height: calc(var(--hf) - 96px); aspect-ratio: 9 / 16; }
.player-box iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-close {
  position: absolute; top: 16px; right: 20px;
  padding: 8px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase;
  color: var(--cream); box-shadow: inset 0 0 0 1px rgba(244, 226, 200, .4);
}
.player-close:hover { background: var(--cream); color: var(--ink); }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- phones and tall screens: picture on top, everything else under it ---------- */
@media (max-aspect-ratio: 5/4), (max-width: 820px) {
  :root {
    --bar-t: 44px; --bar-b: 58px;
    --hf: clamp(300px, 54svh, 640px);
    --px: calc(42vw - var(--hf) * 0.403);
    --F: 11.6vw;
  }
  .wide-only { display: none !important; }
  .monitor { height: auto; min-height: 100svh; grid-template-rows: var(--bar-t) auto var(--bar-b); overflow: visible; }
  .bar { padding: 0 12px; font-size: 11.5px; }
  .bar-top { position: sticky; top: 0; background: var(--ink); }
  .bar-bottom { position: sticky; bottom: 0; background: var(--ink); display: flex; justify-content: center; }
  .contact { padding: 6px 10px; }
  /* the top bar holds the language link here, so the battery goes and the gaps close up */
  .batt { display: none; }
  .bar-top .grp { gap: 8px; }
  .lang, .lang[lang="he"] { padding: 5px 9px; }
  .dial { width: 100%; gap: 5px; }
  .dial button, .dial button[data-view="home"] { flex: 1; justify-content: center; padding: 11px 2px; gap: 6px; font-size: 11.5px; letter-spacing: .05em; }

  .frame { overflow: visible; background: var(--ink); }
  .plate { inset: 0; width: 100%; height: var(--hf); }
  .shade { height: var(--hf); inset: 0 0 auto 0; }
  .wall { height: var(--hf); inset: 0 0 auto 0; overflow: hidden; overflow: clip; }
  .person { bottom: auto; top: calc(var(--hf) * 0.06); height: calc(var(--hf) * 0.94); clip-path: inset(0); }
  .glass { position: relative; inset: auto; padding-top: var(--hf); }
  .guide { display: none; }

  .wall-name { left: 14px; top: calc(var(--hf) * 0.022); line-height: 1; }
  .wall-name span { display: inline; }
  .wall-name span + span::before { content: " "; }

  .menu, .panel { position: relative; left: auto; bottom: auto; width: auto; text-shadow: none; }
  .menu { padding: 20px 14px 22px; display: none; }
  .monitor[data-view="home"] .menu { display: block; }
  .menu button { column-gap: 12px; row-gap: 4px; padding: 15px 0; }
  .menu button b { font-size: 30px; }
  .menu button span { font-size: 14.5px; }
  .menu button::after { font-size: 20px; }
  .menu button::before { inset: 0 -8px; }
  .person, .plate { transform: none; }
  .panel { padding: 20px 16px 6px; display: none; }
  .monitor[data-view="film"] .panel-film,
  .monitor[data-view="security"] .panel-security,
  .monitor[data-view="apps"] .panel-apps { display: block; }
  .panel h2 { font-size: clamp(24px, 6.8vw, 38px); }
  .say { font-size: 16px; }

  /* the mode's content, moved under the text by hero.js */
  .below { display: block; pointer-events: auto; padding: 0 16px 26px; }
  .below .set { position: relative; inset: auto; display: none; pointer-events: auto; }
  .monitor[data-view="film"] .below .set-film,
  .monitor[data-view="security"] .below .set-security,
  .monitor[data-view="apps"] .below .set-apps { display: block; }
  .below .item { position: relative; left: auto; top: auto; width: auto; }
  .below .set-film { display: none; }
  .monitor[data-view="film"] .below .set-film { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px 10px; margin-top: 16px; }
  .below .bin { position: static; display: contents; }
  .below .bin .item { grid-column: span 3; }
  .below .tall { grid-column: span 1; }
  .below .tall-1 { order: 1; } .below .tall-2 { order: 1; } .below .tall-3 { order: 1; }
  .below .bin .item:nth-child(n+4) { order: 2; }
  .below .set-security > *, .below .file > * { margin-top: 18px; }
  .below .cards, .below .file { position: static; width: auto; }
  .below .file { display: block; }
  .below .cases, .below .outlets, .below .certs, .below .career { width: auto; white-space: normal; }
  .below .hunts { margin-top: 22px; }
  /* apps on a phone: a strip you swipe sideways; the next screen shows at the edge */
  .below .deck { display: flex; gap: 12px; margin: 18px -16px 0; padding: 0 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .below .deck::-webkit-scrollbar { display: none; }
  .below .deck .shot, .below .deck .shot[data-slot] { position: relative; left: auto; top: auto; width: auto; flex: 0 0 86%; scroll-snap-align: center; filter: none; opacity: 1; pointer-events: auto; transition: none; }
  .below .deck .shot .cap, .below .deck .shot:not([data-slot="front"]) .cap { opacity: 1; flex-wrap: wrap; white-space: normal; }
  .below .deck-nav { display: none; }
  .below .cards .creds { margin-top: 2px; }
  .below .creds-face { min-height: 0; }
  .below .press { flex-wrap: wrap; row-gap: 12px; }
  .below .outlets { display: block; white-space: normal; }
  .cap { font-size: 11px; }
  .player-box { width: 94%; }
  .player-box.is-tall { height: min(calc(100svh - 190px), 150vw); }
}
@media (max-width: 370px) { .tc { display: none; } }
@media (max-aspect-ratio: 5/4) and (min-width: 600px), (max-width: 820px) and (min-width: 600px) {
  :root { --hf: clamp(300px, 62svh, 760px); }
  .below .bin .item { grid-column: span 1; }
  .monitor[data-view="film"] .below .set-film { grid-template-columns: 1fr 1fr 1fr; }
}
