@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 100% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("assets/fonts/noto-sans-hebrew.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62.5% 100%;
  font-display: swap;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+20AA;
}

:root {
  --hall: #1b3ab4;
  --hall-deep: #142c8c;
  --hall-ink: #ffffff;
  --hall-ink-2: #c8d2fb;
  --hall-rule: rgb(255 255 255 / 0.24);
  --card: #ffffff;
  --ink: #0b0c10;
  --ink-2: #474c59;
  --rule: #d9dce3;
  --steel: #9aa0ab;

  --cjk: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "WenQuanYi Micro Hei";
  --sans: "Archivo", "Noto Sans Hebrew", var(--cjk), system-ui, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--hall);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--hall-ink-2) var(--hall-deep);
}
html:lang(zh-Hans) { --sans: "Archivo", var(--cjk), "Noto Sans Hebrew", system-ui, sans-serif; }

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  color: var(--hall-ink);
  background: var(--hall);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--hall-ink); color: var(--hall); }
.badge ::selection { background: var(--hall); color: #fff; }

:focus-visible { outline: 3px solid var(--hall-ink); outline-offset: 3px; }
.badge :focus-visible { outline-color: var(--hall); }

img, svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.ico {
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* Hall signage: solid pictograms and arrows, knock-outs in the sign's white. */
.picto svg, .arrow { fill: currentColor; }
.wx-title .ico { fill: currentColor; stroke: none; }
/* Chinese captions break at punctuation, never mid-word. */
:lang(zh-Hans) :is(.lead-cap, .wx-cap, .zoom figcaption) { word-break: keep-all; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Hall ---------- */

.hall {
  position: relative;
  padding: 0 16px max(40px, env(safe-area-inset-bottom));
}

.langs {
  position: absolute;
  inset-block-start: max(10px, env(safe-area-inset-top));
  inset-inline-end: 10px;
  z-index: 3;
  display: flex;
  border: 1.5px solid var(--hall-ink-2);
  border-radius: 999px;
  padding: 2px;
}
.langs button {
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hall-ink);
  font: 700 14px/1 var(--sans);
  font-stretch: 112%;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.langs button:hover { background: rgb(255 255 255 / 0.12); }
.langs button[aria-pressed="true"] { background: var(--hall-ink); color: var(--hall); }

.stage {
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- Lanyard + badge ---------- */

.hang {
  position: relative;
  transform-origin: 50% 0;
}

.lanyard {
  position: relative;
  z-index: 2;
  height: 96px;
  display: grid;
  justify-items: center;
  align-content: start;
}
.strap {
  position: relative;
  width: 30px;
  height: 62px;
  overflow: hidden;
  background: var(--ink);
  color: #e9ebf1;
  font: 800 9.5px/30px var(--sans);
  font-stretch: 125%;
  letter-spacing: 0.16em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  text-align: end;
  box-shadow: inset 2px 0 0 rgb(255 255 255 / 0.08), inset -2px 0 0 rgb(0 0 0 / 0.4);
}
/* One whole EAGLE print, pinned just above the clip; the strap runs on plain past the frame. */
.strap span { position: absolute; bottom: 6px; right: 0; }
.clip {
  width: 30px;
  height: 36px;
  margin-top: -2px;
  fill: none;
  stroke: #c3c8d2;
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.45));
}
.clip .clip-cap { fill: #c3c8d2; stroke: #8b919c; stroke-width: 1; }

.badge {
  position: relative;
  container-type: inline-size;
  margin-top: -22px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.35),
    0 22px 48px -18px rgb(0 0 0 / 0.65);
}
.slot {
  position: absolute;
  inset-block-start: 12px;
  left: 50%;
  width: 54px;
  height: 11px;
  margin-left: -27px;
  border-radius: 999px;
  background: var(--hall-deep);
  box-shadow: inset 0 1.5px 2px rgb(0 0 0 / 0.45);
}

.badge-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 34px 22px 0;
}
.logo { width: 84px; height: auto; }
.country {
  font-weight: 800;
  font-size: 12px;
  font-stretch: 125%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
}
.country:lang(he), :lang(he) .country, :lang(zh-Hans) .country { letter-spacing: 0.04em; font-size: 13px; }

.name {
  margin: 22px 0 0;
  padding: 0 18px;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 15.3cqi;
  line-height: 0.84;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.name span { display: block; }

.role {
  margin: 16px 22px 0;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 19px;
  line-height: 1.2;
}
:lang(he) .role { font-weight: 800; font-size: 21px; }
:lang(zh-Hans) .role { font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }
.org {
  margin: 4px 22px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}

.lead {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 22px 0;
  padding: 16px 0 20px;
  border-top: 1px solid var(--rule);
}
.qr {
  flex: none;
  display: block;
  width: 113px;
  border-radius: 4px;
  outline-offset: 4px;
  cursor: zoom-in;
}
.qr img { width: 100%; height: auto; }
.lead-cap {
  margin: 0;
  text-wrap: balance;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.hint {
  display: block;
  margin-top: 4px;
  font-weight: 500;
  font-size: 13.5px;
  color: var(--ink-2);
}

.band {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}
.band .ico { width: 24px; height: 24px; flex: none; transition: transform 240ms var(--ease-out); }
.band-label {
  flex: 1;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 19px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
:lang(he) .band-label { font-size: 21px; font-weight: 800; }
:lang(zh-Hans) .band-label { font-size: 20px; letter-spacing: 0.1em; }
.band-meta {
  font-size: 12px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b9bdc8;
}
.band:hover { background: #22252e; }
.band:hover .ico { transform: translateY(2px); }
.band:active { background: #000; }
.band:focus-visible { outline: 3px solid var(--hall); outline-offset: -6px; }

/* ---------- Directory (hall wayfinding) ---------- */

.directory { margin-top: 44px; display: flex; flex-direction: column; }
.dir-title {
  margin: 0 0 14px;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
:lang(he) .dir-title { font-size: 32px; }
:lang(zh-Hans) .dir-title { letter-spacing: 0.06em; }

.signs { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--hall-rule); }
.sign {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 7px 2px;
  border-top: 1px solid var(--hall-rule);
  color: var(--hall-ink);
  text-decoration: none;
  transition: background-color 180ms var(--ease-out);
}
.picto {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 5px;
  background: var(--hall-ink);
  color: var(--hall);
}
.picto svg { width: 26px; height: 26px; }
.sign-text { padding-block: 2px; }
.sign-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sign-label {
  font-size: 12.5px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hall-ink-2);
}
:lang(he) .sign-label, :lang(zh-Hans) .sign-label { font-size: 14px; letter-spacing: 0.02em; }
.sign-value {
  font-size: 19px;
  font-weight: 650;
  font-stretch: 108%;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
:lang(he) .sign-value[dir="ltr"] { text-align: end; }
.sign-addr .sign-value { font-size: 17px; }
.arrow { width: 28px; height: 28px; transition: transform 240ms var(--ease-out); }
[dir="rtl"] .arrow { scale: -1 1; }
.sign:hover { background: rgb(255 255 255 / 0.07); }
.sign:hover .arrow { transform: translateX(5px); }
.sign:active { background: rgb(255 255 255 / 0.12); }
.sign:focus-visible { outline-offset: -3px; }

.wx {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 36px;
  padding: 20px 20px 22px;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px -20px rgb(0 0 0 / 0.6);
}
:lang(zh-Hans) .wx { order: -1; margin: 0 0 36px; }
.wx-title {
  justify-self: stretch;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 900;
  font-stretch: 125%;
  font-size: 22px;
  text-transform: uppercase;
}
.wx-title .ico { width: 30px; height: 30px; }
.wx-title [lang] { font-weight: 700; letter-spacing: 0.08em; color: var(--ink-2); }
.wx-code { display: block; width: min(260px, 100%); margin-top: 14px; border-radius: 6px; cursor: zoom-in; }
.wx-code img { width: 100%; height: auto; }
.wx-cap { justify-self: stretch; text-wrap: balance; margin: 12px 0 0; font-size: 15px; font-weight: 600; text-align: center; }

/* ---------- Zoom dialog ---------- */

.zoom {
  width: min(92vw, 560px);
  max-height: 94svh;
  padding: 20px 20px 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.6);
}
.zoom::backdrop { background: rgb(9 20 70 / 0.82); }
.zoom figure { margin: 0; }
.zoom img { width: 100%; height: auto; max-height: 72svh; object-fit: contain; }
.zoom figcaption { text-wrap: balance; margin-top: 12px; font-size: 16px; font-weight: 600; text-align: center; }
.zoom form { margin: 12px 0 0; }
.zoom-close {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font: 800 16px/1 var(--sans);
  font-stretch: 112%;
  cursor: pointer;
}
.zoom-close .ico { width: 20px; height: 20px; }
.zoom-close:focus-visible { outline: 3px solid var(--hall); }
.zoom[open] { animation: zoom-in 260ms var(--ease-out); }
@keyframes zoom-in { from { opacity: 0; transform: scale(0.96); } }

/* ---------- Signature motion: the badge settles, then turns over on language change ---------- */

.hang.settle { animation: settle 1700ms linear both; }
@keyframes settle {
  0%   { rotate: 3.2deg; }
  22%  { rotate: -2.1deg; }
  44%  { rotate: 1.2deg; }
  64%  { rotate: -0.6deg; }
  82%  { rotate: 0.25deg; }
  100% { rotate: 0deg; }
}
.stage { perspective: 1400px; }
.badge.turn-out { animation: turn-out 170ms cubic-bezier(0.5, 0, 0.9, 0.5) forwards; }
.badge.turn-in  { animation: turn-in 380ms var(--ease-out); }
@keyframes turn-out { to { transform: rotateY(90deg); } }
@keyframes turn-in { from { transform: rotateY(-90deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
  .hall { padding-inline: 32px; }
  .lanyard { height: 104px; }
  .strap { height: 70px; }
  .stage { max-width: 480px; }
  .qr { width: 226px; }
}

@media (min-width: 960px) {
  .hall {
    min-height: 100svh;
    display: grid;
    align-items: start;
    padding: 0 48px 56px;
  }
  .langs { inset-block-start: 20px; inset-inline-end: 24px; }
  .stage {
    max-width: 1180px;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(400px, 460px) minmax(0, 560px);
    justify-content: center;
    column-gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
  .lanyard { height: 120px; }
  .strap { height: 86px; }
  .qr { width: 226px; }
  .directory { margin-top: 98px; }
  .dir-title { font-size: 40px; margin-bottom: 16px; }
  :lang(he) .dir-title { font-size: 42px; }
  .sign { min-height: 62px; }
  .wx { margin-top: 28px; }
  :lang(zh-Hans) .wx { margin: 0 0 28px; }
  .wx {
    grid-template-columns: auto 1fr;
    grid-template-areas: "code title" "code cap";
    justify-items: start;
    align-content: center;
    column-gap: 24px;
    padding: 18px 24px 18px 18px;
  }
  [dir="rtl"] .wx { padding: 18px 18px 18px 24px; }
  .wx-title { grid-area: title; align-self: end; }
  .wx-code { grid-area: code; width: 168px; margin: 0; }
  .wx-cap { grid-area: cap; align-self: start; text-align: start; }
}


/* Scroll affordance: the card fills the first viewport, so hint that the
   contact directory continues below. Hidden as soon as the user scrolls. */
.scroll-cue {
  position: fixed;
  left: 50%;
  bottom: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  transform: translateX(-50%);
  border-radius: 999px;
  color: #fff;
  background: rgba(17, 20, 26, 0.72);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
  transition: opacity 0.25s ease;
}
.scroll-cue svg { animation: cue-bob 1.9s ease-in-out infinite; }
.scroll-cue:hover { background: rgba(17, 20, 26, 0.86); }
.scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}


/* Wide screens show both columns at once, so the scroll hint would only sit on
   top of the WeChat panel. It is a phone affordance. */
@media (min-width: 960px) {
  .scroll-cue { display: none; }
}


/* The WeChat code is only scannable from another device: on a phone the visitor
   has to save it and use WeChat's "scan from album". Say the right thing on each. */
.wx-mobile { display: none; }
@media (max-width: 959px) {
  .wx-desktop { display: none; }
  .wx-mobile { display: inline; }
}
.wx-save {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  margin: 6px 22px 0;
  padding: 0 18px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font: 700 14px/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  color: inherit;
}
.wx-save:hover { background: var(--hall-ink); color: var(--hall); }


