/* ===== מסך הפתיחה בתלת מימד: בניין המשרדים ===== */
@font-face { font-family: "Birzia"; font-weight: 300; font-display: swap; src: url("../Birzia_Family_1.2/Birzia-Light.woff2") format("woff2"); }
@font-face { font-family: "Birzia"; font-weight: 500; font-display: swap; src: url("fonts/Birzia-Medium.woff2") format("woff2"); }
@font-face { font-family: "Birzia"; font-weight: 700; font-display: swap; src: url("fonts/Birzia-Bold.woff2") format("woff2"); }

:root {
  --navy: #0d3b4d;
  --blue: #006482;
  --green: #4eaa48;
  --red: #d0162d;
  --gold: #d8b878;
  --cream: #fbf7ef;
  --ink: #1d3a47;
  --sky: #0b2433;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Birzia", Arial, sans-serif; background: var(--sky); color: var(--ink); overflow: hidden; }
button { font: inherit; }

.skip-old { position: absolute; top: -60px; right: 16px; z-index: 60; padding: 10px 18px; border-radius: 30px; background: #fff; color: var(--navy); font-weight: 700; }
.skip:focus { top: 12px; }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 28px; pointer-events: none; transition: opacity .5s;
}
.top__logo { height: 54px; padding: 8px 14px; border-radius: 16px; background: rgba(255, 255, 255, .92); pointer-events: auto; }
.top__title {
  margin: 0; flex: 1; text-align: center; padding: 0;   /* centred over the building */
  color: rgba(255, 255, 255, .78);   /* a little see-through */ font-size: clamp(26px, 4.2vw, 62px); font-weight: 700;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

/* ---------- 3D world ---------- */
.world { position: fixed; inset: 0; }
.world__canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.world__canvas:active { cursor: grabbing; }
.world.is-pointing .world__canvas { cursor: pointer; }

.loading {
  position: absolute; inset: 0; z-index: 40; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(circle at 50% 40%, #21506a, #0b2433 70%); color: #fff; transition: opacity .8s;
}
.loading img { height: 64px; padding: 10px 16px; border-radius: 16px; background: #fff; }
.loading p { margin: 0; font-size: 20px; }
.loading__bar { width: 220px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.loading__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.loading.is-done { opacity: 0; pointer-events: none; }

/* ---------- tags (tickets) pointing at each floor ---------- */
.tags { position: absolute; inset: 0; pointer-events: none; }
.tag {
  position: absolute; left: 0; top: 0; display: flex; align-items: center; gap: 10px;
  white-space: nowrap; cursor: pointer; padding: 0; border: 0; background: none;
  direction: ltr; pointer-events: auto; transition: opacity .35s;
  will-change: transform;
}
.tag__line { width: 46px; border-top: 2px dashed rgba(255, 255, 255, .9); }
.tag__dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); flex: none; }
.tag__pill {
  direction: rtl; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 22px; border-radius: 40px; background: #fff;
  color: var(--navy); font-size: clamp(15px, 1.3vw, 21px); font-weight: 700;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .3); transition: transform .3s, background .3s, color .3s;
}
.tag__arrow { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #e9f2f5; color: var(--blue); font-size: 15px; transition: background .3s, color .3s; }
.tag.is-left { flex-direction: row-reverse; }
.tag:hover .tag__pill, .tag.is-hot .tag__pill, .tag:focus-visible .tag__pill { transform: scale(1.06); background: var(--navy); color: #fff; }
.tag:hover .tag__arrow, .tag.is-hot .tag__arrow, .tag:focus-visible .tag__arrow { background: var(--gold); color: var(--navy); }
.tag:focus-visible { outline: none; }
.tag:focus-visible .tag__pill { outline: 3px solid #fff; outline-offset: 3px; }
.tag.is-away { opacity: 0; pointer-events: none; }
.tag.is-center .tag__line, .tag.is-center .tag__dot { display: none; }

.hint {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 10;
  padding: 8px 18px; border-radius: 30px; background: rgba(13, 59, 77, .75); color: #fff;
  font-size: 15px; white-space: nowrap; transition: opacity .6s; pointer-events: none;
}
.hint.is-gone { opacity: 0; }

/* ---------- time dial and season card (drag them) ---------- */
.clock {
  position: fixed; left: 18px; top: 18px; z-index: 28;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 196px;
  transition: opacity .5s;
}
.dial, .season { display: block; border-radius: 18px; cursor: grab; touch-action: none; outline: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .3)); }
.dial:active, .season:active { cursor: grabbing; }
.dial svg, .season svg { display: block; width: 100%; height: auto; overflow: visible; }
.dial:focus-visible, .season:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.dial__frame, .season__frame { fill: none; stroke: #e2cfa6; stroke-width: 3.5; }
.dial__orbit, .season__arc { fill: none; stroke: rgba(29, 58, 71, .55); stroke-width: 1.6; stroke-dasharray: 1.5 4.5; stroke-linecap: round; }
.dial__horizon { stroke: rgba(29, 58, 71, .45); stroke-width: 1.2; }
.dial__stars circle { fill: #fff; }
.dial__text, .season__text { font-family: "Birzia", Arial, sans-serif; font-weight: 700; font-size: 19px; fill: #1d3a47; paint-order: stroke; stroke: rgba(255, 255, 255, .55); stroke-width: 3px; }
.dial.is-dark .dial__text { fill: #fff; stroke: rgba(0, 0, 0, .35); }
.season__tick { fill: rgba(29, 58, 71, .55); }
.live {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px;
  border: 0; border-radius: 30px; background: rgba(251, 247, 239, .95); color: var(--navy);
  font-weight: 700; font-size: 15px; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.live__dot { width: 10px; height: 10px; border-radius: 50%; background: #9aa7ad; }
.live[aria-pressed="true"] { background: var(--navy); color: #fff; }
.live[aria-pressed="true"] .live__dot { background: #7fe07a; box-shadow: 0 0 0 4px rgba(127, 224, 122, .25); }
.live:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ---------- inside a floor ---------- */
.room { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.room__panel {
  pointer-events: auto;
  position: absolute; top: 50%; right: clamp(16px, 5vw, 80px); transform: translate(0, -46%);
  width: min(440px, calc(100% - 32px)); padding: 30px 32px 34px;
  border-radius: 26px; background: rgba(251, 247, 239, .95); color: var(--ink);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); opacity: 0; transition: opacity .5s, transform .5s;
}
.room.is-open .room__panel { opacity: 1; transform: translate(0, -50%); }
.room__back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  margin: 0 0 14px; padding: 0 18px; border: 2px solid var(--navy); border-radius: 30px;
  background: transparent; color: var(--navy); font-weight: 700; cursor: pointer;
}
.room__back:hover { background: var(--navy); color: #fff; }
.room__back:focus-visible, .room__cta:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.room__title { margin: 0 0 10px; color: var(--navy); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.room__text { margin: 0 0 16px; font-size: 19px; line-height: 1.55; }
.room__points { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 10px; }
.room__points li { display: flex; gap: 10px; align-items: baseline; font-size: 18px; }
.room__points li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); transform: translateY(-2px); }
.room__cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
  border-radius: 40px; background: #2e7d32; color: #fff; font-weight: 700; font-size: 19px; text-decoration: none;
}
.room__cta:hover { background: var(--navy); }
.room__cta[aria-disabled="true"] { background: #6b7c84; cursor: default; }

body.in-room .top, body.in-room .clock, body.in-room .hint, body.in-room .tags { opacity: 0; pointer-events: none; }
body.in-room .tag { pointer-events: none; }



/* the title comes down a little when the page opens (the hummingbird then sits on it) */
.top__title { transform: translateY(0); transition: transform 1.4s cubic-bezier(.22, .8, .25, 1); }
.top__title.is-down { transform: translateY(clamp(70px, 13vh, 130px)); }
@media (prefers-reduced-motion: reduce) { .top__title { transition: none; } }

/* the hint bubble: a small rounded square with three soft dots, see-through, pops up and fades away */
.bubble { position: absolute; left: 0; top: 0; z-index: 9; pointer-events: none; opacity: 0; }
.bubble::before {
  content: ""; position: absolute; left: -17px; bottom: 7px; width: 34px; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, .62); box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}
.bubble::after { content: ""; position: absolute; left: -4px; bottom: 2px; border: 5px solid transparent; border-top-color: rgba(255, 255, 255, .62); border-bottom: 0; }
.bubble span { position: absolute; bottom: 16px; width: 4px; height: 4px; border-radius: 50%; background: #0d3b4d; opacity: .5; animation: dot 1.1s ease-in-out infinite; }
.bubble span:nth-child(1) { left: -9px; } .bubble span:nth-child(2) { left: -2px; animation-delay: .15s; } .bubble span:nth-child(3) { left: 5px; animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-2px); opacity: .7; } }
.bubble.is-on { animation: bubble 2.6s ease forwards; }
@keyframes bubble { 0% { opacity: 0; scale: .6; } 14% { opacity: 1; scale: 1.05; } 22% { scale: 1; } 72% { opacity: 1; } 100% { opacity: 0; scale: .9; } }

/* ---------- the hummingbird (from the contact section of the site) ---------- */
.flybird {
  position: fixed; left: 0; top: 0; z-index: 36; width: 170px; aspect-ratio: 470 / 290;
  pointer-events: none; opacity: 0; will-change: transform; transform-origin: 45% 80%;
}
.flybird.is-on { opacity: 1; }
.flybird img { position: absolute; inset: 0; width: 100%; height: auto; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .35)); }
.flybird__body { clip-path: polygon(0 0, 45.74% 0, 43.62% 30.34%, 44.04% 35.86%, 50.64% 46.9%, 63.83% 50.34%, 100% 40.69%, 100% 100%, 0 100%); }
.flybird__wing { clip-path: polygon(45.74% 0, 100% 0, 100% 40.69%, 63.83% 50.34%, 50.64% 46.9%, 44.04% 35.86%, 43.62% 30.34%); transform-origin: 45.1% 33.8%; }
.flybird.is-flying .flybird__wing { animation: bird-wing .1s ease-in-out infinite alternate; }
@keyframes bird-wing { from { transform: scaleY(1) rotate(0deg); } to { transform: scaleY(-.5) rotate(-6deg); } }
body.in-room .flybird { opacity: 0; transition: opacity .4s; }

/* ---------- contact panel on the right ---------- */
:root { --panel-w: 0px; }   /* the form opens from the side icon, so the scene uses the whole screen */
.contact {
  position: fixed; top: 18px; right: 18px; z-index: 45; width: clamp(330px, 25vw, 430px);
  transform: translateX(calc(100% + 40px)); opacity: 0; pointer-events: none;
  max-height: calc(100vh - 36px);   /* only as tall as the form; scrolls only on a very short screen */
  display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  padding: 26px 28px 24px; border-radius: 28px; background: rgba(251, 247, 239, .96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: opacity .5s, transform .5s;
}
.contact.is-open { transform: none; opacity: 1; pointer-events: auto; }
.contact__close {
  display: grid; place-items: center; position: absolute; top: 14px; left: 14px; width: 40px; height: 40px;
  border: 0; border-radius: 50%; background: #e9eef1; color: var(--navy); font-size: 24px; cursor: pointer;
}
.contact__close:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.contact-open {
  position: fixed; right: 18px; top: 50%; translate: 0 -50%; z-index: 27; display: grid; place-items: center; gap: 2px;
  width: 74px; min-height: 74px; padding: 10px 6px; border: 0; border-radius: 20px; cursor: pointer;
  background: rgba(251, 247, 239, .95); color: var(--navy); font-weight: 700; font-size: 13px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: transform .25s;
}
.contact-open svg { width: 34px; height: 34px; }
.contact-open:hover { transform: scale(1.06); }
.contact-open:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body.in-room .contact-open { opacity: 0; pointer-events: none; }
.contact__logo { display: block; width: 88%; max-width: 330px; height: auto; margin: 6px auto 14px; }
.contact__title { margin: 0 0 6px; text-align: center; color: var(--navy); font-size: clamp(24px, 1.9vw, 30px); }
.contact__sub { margin: 0 0 16px; text-align: center; font-size: 17px; line-height: 1.5; color: #3b5260; }
.contact__form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 15px; font-weight: 700; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 10px 14px; border: 1.5px solid #c9d3d8; border-radius: 14px; background: #fff;
  font: inherit; font-size: 17px; color: var(--ink); resize: vertical;
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 100, 130, .25); }
.field.is-bad input, .field.is-bad textarea { border-color: var(--red); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #3b5260; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent.is-bad { color: var(--red); }
.contact__trap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }   /* hidden from people, no sideways scroll */
.contact__send {
  min-height: 56px; margin-top: 4px; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  background: linear-gradient(#f2f5f7, #f2f5f7) padding-box, linear-gradient(90deg, #d0162d, #4eaa48 50%, #006482) border-box;
  color: var(--blue); font-weight: 700; font-size: 19px; transition: transform .2s, box-shadow .2s;
}
.contact__send:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 100, 130, .25); }
.contact__send:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.contact__send:disabled { opacity: .6; cursor: default; }
.contact__status { margin: 0; min-height: 22px; font-size: 15px; }
.contact__status.is-ok { color: #2e7d32; font-weight: 700; }
.contact__status.is-err { color: var(--red); }
body.in-room .contact { opacity: 0; pointer-events: none; transform: translateX(20px); }


/* short screens: a tighter form so it fits without scrolling */
@media (min-width: 1000px) and (max-height: 860px) {
  .contact { padding: 18px 24px 16px; }
  .contact__logo { width: 62%; margin: 0 auto 8px; }
  .contact__title { font-size: 23px; margin-bottom: 4px; }
  .contact__sub { font-size: 15px; margin-bottom: 10px; }
  .contact__form { gap: 8px; }
  .field input, .field textarea { padding: 7px 12px; font-size: 16px; }
  .field textarea { height: 64px; }
  .consent { font-size: 13px; }
  .contact__send { min-height: 48px; font-size: 17px; }
}

/* narrower screens */
@media (max-width: 999px) {
  .contact { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; max-height: 86vh; max-height: 86dvh; transform: translateY(110%); }
  .contact.is-open { transform: none; }
  .contact__logo { width: 70%; max-width: 240px; }
  .contact-open { top: auto; bottom: 14px; right: 14px; translate: none; width: 64px; min-height: 64px; }
}
}

/* ---------- the simple view: hero background and three circles ---------- */
@property --btn-angle { syntax: "<angle>"; initial-value: 0deg; inherits: true; }
.view-switch {
  position: relative; isolation: isolate; display: block; width: 100%; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: none; cursor: pointer;
  color: var(--navy); font-weight: 700; font-size: 15px; transition: opacity .4s, transform .15s;
}
.view-switch::after {   /* the face: white, with a frame in the brand gradient */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #d0162d, #4eaa48 50%, #006482) border-box;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}
.view-switch::before {  /* the glow in the brand colours, it follows the mouse */
  content: ""; position: absolute; inset: -8px; z-index: -2; border-radius: inherit;
  background: conic-gradient(from calc(var(--btn-angle) - 260deg), transparent 0deg, transparent 150deg, #006482 200deg, #4eaa48 260deg, #d0162d 320deg, transparent 360deg);
  filter: blur(9px); opacity: 0; transition: opacity .35s ease; pointer-events: none;
}
.view-switch:hover::before, .view-switch:focus-visible::before { opacity: 1; }
.view-switch:active { transform: scale(.97); }
.view-switch:active::before { opacity: 1; inset: -12px; background: conic-gradient(#006482, #4eaa48, #d0162d, #006482); filter: blur(12px); }
.view-switch:focus-visible { outline: none; }
.view-switch:focus-visible::after { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
body.in-room .view-switch { opacity: 0; pointer-events: none; }
.simple {
  position: fixed; inset: 0; z-index: 15; display: grid; place-items: center;
  padding: clamp(150px, 20vh, 220px) 120px 60px 120px;
  background: linear-gradient(180deg, rgba(0, 85, 130, .6), rgba(0, 105, 145, .5)), url("images/hero-bg.jpg") center / cover no-repeat, #071a2e;
  background-blend-mode: multiply, normal, normal;
}
.simple[hidden] { display: none; }
body.is-simple :is(.dial, .season, .live), body.is-simple .tags, body.is-simple .hint, body.is-simple .bubble { display: none; }
.simple__circles { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(60px, 7vw, 140px); }
.circle {
  --c: #006482; --size: clamp(220px, 19vw, 340px);
  position: relative; width: var(--size); height: var(--size); display: grid; place-items: center;
  border: 0; padding: 0; background: none; cursor: pointer; text-decoration: none; color: var(--navy);
}
.circle--blue { --c: #006482; } .circle--green { --c: #4eaa48; } .circle--red { --c: #d0162d; }
.circle__rings { position: absolute; inset: -16%; width: 132%; height: 132%; overflow: visible; pointer-events: none; }
.circle__rings .ring { transform-box: view-box; transform-origin: 50% 50%; }
.circle__rings .ring--a { animation: ring-spin 14s linear infinite; animation-delay: var(--spin-delay, 0s); }
.circle__rings .ring--b { animation: ring-spin 9s linear infinite reverse; animation-delay: var(--spin-delay, 0s); }
.circle__rings .ring--c { animation: ring-spin 6s linear infinite; animation-delay: var(--spin-delay, 0s); }
.circle__rings .ring--dots { animation: ring-spin 40s linear infinite reverse; }
.circle__rings .orb { filter: drop-shadow(0 0 4px currentColor); }
.circle__rings .orb--blue { fill: #006482; color: #006482; } .circle__rings .orb--red { fill: #d0162d; color: #d0162d; } .circle__rings .orb--green { fill: #4eaa48; color: #4eaa48; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.circle__disc {
  position: relative; width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: #fff; border: 3px solid var(--c); box-shadow: 0 10px 30px rgba(0, 30, 50, .35), inset 0 0 0 6px color-mix(in srgb, var(--c) 12%, #fff);
  font-size: clamp(24px, 2vw, 34px); font-weight: 700; line-height: 1.2; padding: 18%;
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
  animation: disc-breathe 3.2s ease-in-out infinite; animation-delay: var(--spin-delay, 0s);
}
@keyframes disc-breathe { 50% { transform: scale(1.03); } }
.circle__go { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; color: var(--c); }
.circle--green .circle__go { color: #2f7d2a; }   /* הירוק של המותג בהיר מדי לטקסט קטן על לבן (נגישות) */
.circle:hover .circle__disc, .circle:focus-visible .circle__disc { animation: none; transform: scale(1.07); box-shadow: 0 14px 40px rgba(0, 30, 50, .45), inset 0 0 0 6px color-mix(in srgb, var(--c) 18%, #fff); }
.circle:focus-visible { outline: none; }
.circle:focus-visible .circle__disc { outline: 4px solid #fff; outline-offset: 6px; }
.circle[aria-disabled="true"] { cursor: default; }
@media (max-width: 999px) {
  .simple { padding: 170px 24px 110px; overflow-y: auto; place-items: start center; }
}
@media (max-width: 760px) {
  .simple__circles { flex-direction: column; gap: 100px; padding-top: 30px; }
  .circle { --size: 200px; }
  .clock { width: 170px; }
  .view-switch { white-space: nowrap; font-size: 14px; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) { .circle__rings .ring, .circle__disc { animation: none; } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .top { padding: 12px 16px; flex-direction: column; gap: 6px; }
  .top__title { padding: 0; font-size: 23px; }
  .tag__pill { padding: 8px 16px; font-size: 15px; }
  .clock { top: auto; bottom: 14px; left: 12px; width: 150px; gap: 6px; }
  .live { font-size: 13px; min-height: 38px; }
  .hint { bottom: auto; top: 112px; font-size: 13px; }
  .room__panel { top: auto; bottom: 16px; right: 16px; transform: translateY(12px); padding: 22px 22px 24px; }
  .room.is-open .room__panel { transform: none; }
  .room__text { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .room__panel, .tag, .loading { transition: none; }
}

/* ===== נגישות: דילוג לתוכן ותפריט נגישות (a11y.js, אותו רכיב כמו באתר) ===== */
.skip-link {
  position: fixed; top: 10px; right: 10px; z-index: 10000; padding: 12px 22px; border-radius: 50px;
  background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; outline: 3px solid #fff; outline-offset: 2px; }
#main:focus { outline: none; }
.a11y { position: fixed; bottom: 16px; left: 16px; z-index: 9000; font-family: Arial, sans-serif; direction: rtl; }
.a11y__btn {
  width: 52px; height: 52px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%;
  background: var(--blue); color: #fff; cursor: pointer; box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
}
.a11y__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.a11y__btn svg { width: 30px; height: 30px; fill: currentColor; }
.a11y__panel {
  position: absolute; bottom: 64px; left: 0; width: 260px; max-height: calc(100vh - 100px); overflow-y: auto;
  display: grid; gap: 8px; padding: 16px; border-radius: 16px; background: #fff; color: #1d3a47; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.a11y__panel[hidden] { display: none; }
.a11y__title { margin: 0 0 4px; font-size: 20px; color: var(--blue); }
.a11y__size { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; }
.a11y__panel button {
  min-height: 44px; padding: 0 14px; border: 1.5px solid #6f8792; border-radius: 10px; background: #fff;
  color: #1d3a47; font: 700 16px Arial, sans-serif; text-align: right; cursor: pointer;
}
.a11y__panel button:focus-visible, .a11y__link:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.a11y__size button { min-width: 52px; text-align: center; }
.a11y__panel button:disabled { opacity: .4; cursor: default; }
.a11y__panel button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.a11y__panel button[aria-pressed="true"]::before { content: "✓ "; }
.a11y__reset { color: #b3122a !important; }
.a11y__link { color: var(--blue); font-size: 16px; font-weight: 700; text-align: center; padding: 10px 0 2px; }
.contact__legal { margin: 2px 0 0; text-align: center; font-size: 14px; }
.contact__legal a { color: var(--blue); }
body.in-room .a11y { opacity: .9; }
@media (max-width: 999px) {
  .a11y { bottom: 14px; left: 14px; }
  .a11y__btn { width: 48px; height: 48px; }
  .a11y__btn svg { width: 26px; height: 26px; }
  .a11y__panel { bottom: 58px; }
  .clock { bottom: 74px; }   /* above the accessibility button */
}
/* bigger text */
.a11y-big :is(.top__title, .tag__pill, .contact, .room__panel, .circle__disc, .view-switch, .live, .hint, .contact-open) { zoom: var(--a11y-zoom, 1); }
.a11y-big .contact :is(*) { zoom: 1; }
/* high contrast */
.a11y-contrast :is(.world__canvas, .simple) { filter: contrast(1.35) saturate(1.1); }
.a11y-contrast .top__title { color: #fff; text-shadow: 0 0 4px #000, 0 2px 14px #000; }
.a11y-contrast :is(.tag__pill, .contact, .room__panel) { box-shadow: 0 0 0 3px #0d3b4d; }
/* highlighted links and buttons */
.a11y-links a:not(.a11y__link) { text-decoration: underline !important; text-underline-offset: 3px; }
.a11y-links :is(a, button, [role="slider"]):not(.a11y *) { outline: 2px dashed #ffbf00; outline-offset: 2px; }
/* readable font */
.a11y-font body, .a11y-font body :not(svg, svg *) { font-family: Arial, "Arial Hebrew", sans-serif !important; letter-spacing: normal !important; }
.a11y-font svg text { font-family: Arial, sans-serif !important; }
/* line spacing */
.a11y-spacing :is(p, li, label, .room__text) { line-height: 1.9 !important; word-spacing: .12em; }
/* stop animations (the 3D scene stops too, in app3d.js) */
.a11y-still *, .a11y-still *::before, .a11y-still *::after {
  animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition: none !important; scroll-behavior: auto !important;
}
.a11y-still .bubble { display: none !important; }
.a11y-still .flybird__wing { animation: none !important; }

/* ===== תיקונים מבדיקת ה-QA (טלפון וטאבלט) ===== */
.clock__more { display: none; }
@media (max-width: 760px) {
  /* 2. the help line sits under the title, wraps, and does not cover it */
  .hint { top: calc(clamp(70px, 13vh, 130px) + 70px); bottom: auto; width: calc(100% - 32px); white-space: normal; text-align: center; font-size: 13px; line-height: 1.4; }
  /* 3. the time and season open from one small button, so they do not cover the square */
  .clock { width: auto; max-width: calc(100% - 160px); bottom: 14px !important; left: 74px; }
  .clock :is(.dial, .season, .live) { display: none; }
  .clock.is-open { width: 170px; }
  /* closed: "תצוגה מהירה" sits to the right of "שעה ועונה" in one row, under "קצת עליי" */
  .clock:not(.is-open) { flex-direction: row; align-items: center; gap: 6px; max-width: calc(100% - 150px); }
  .clock:not(.is-open) .view-switch { width: auto; padding: 0 12px; }
  .clock:not(.is-open) .clock__more { padding: 0 12px; }
  .clock.is-open :is(.dial, .season, .live) { display: block; }
  .clock.is-open .live { display: inline-flex; }
  .clock__more {
    display: block; min-height: 44px; padding: 0 16px; border: 0; border-radius: 30px; cursor: pointer;
    background: rgba(13, 59, 77, .9); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
  }
  .clock__more[aria-expanded="true"] { background: var(--gold); color: var(--navy); }
  .clock__more:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
  body.is-simple .clock__more { display: none; }
}
@media (max-width: 999px) {
  /* 1. the accessibility button moves to the top corner when the form or a floor is open */
  body:is(.contact-on, .in-room) .a11y { bottom: auto; top: 14px; left: auto; right: 14px; }
  body:is(.contact-on, .in-room) .a11y__panel { bottom: auto; top: 58px; left: auto; right: 0; }
  body.contact-on .contact { top: 72px; max-height: calc(100dvh - 86px); }   /* the form starts below the button */
}

/* a closed form cannot be reached with Tab (it is hidden, not only see-through) */
.contact:not(.is-open) { visibility: hidden; transition: opacity .5s, transform .5s, visibility 0s .5s; }
.contact.is-open { visibility: visible; transition: opacity .5s, transform .5s, visibility 0s; }

/* ===== דפדפן בלי תלת מימד: הודעה, והדף נשאר בתצוגה הפשוטה ===== */
.no3d {
  position: fixed; left: 50%; top: 50%; translate: -50% -50%; z-index: 50; width: min(420px, calc(100% - 32px));
  padding: 26px 26px 22px; border-radius: 22px; background: rgba(251, 247, 239, .97); color: var(--ink);
  text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.no3d[hidden] { display: none; }
.no3d p { margin: 0 0 16px; font-size: 18px; line-height: 1.5; }
.no3d__btn {
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 30px; background: var(--navy); color: #fff;
  font-weight: 700; font-size: 17px; cursor: pointer;
}
.no3d__btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
body.no-3d .world__canvas { display: none; }

/* ===== האייקונים בעיגולים של התצוגה הפשוטה: קו דק במעבר צבעים, ובמעבר עכבר נצבעים כולם ===== */
.circle__disc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 14%; }
.circle__icon { display: flex; align-items: center; justify-content: center; width: 62%; aspect-ratio: 1.5; line-height: 0; }   /* same box for every icon, so the names line up */
.circle__icon svg { width: 100%; height: 100%; overflow: visible; }
.circle__name { display: block; }
.circle__go { margin-top: 2px; }
.circle__icon .ic-fill { opacity: 0; transition: opacity .4s ease; }
.circle__icon .ic-inner { transition: stroke .4s ease; }
.circle:hover .circle__icon .ic-fill, .circle:focus-visible .circle__icon .ic-fill { opacity: 1; }
.circle:hover .circle__icon .ic-inner, .circle:focus-visible .circle__icon .ic-inner { stroke: #fff; }
@media (max-width: 760px) { .circle__icon { width: 58%; } .circle__disc { font-size: 22px; } }
.circle:hover .circle__icon .ic-dash, .circle:focus-visible .circle__icon .ic-dash { stroke-dasharray: 2.4 2.4; }

/* ===== "קצת עליי": כפתור בתחתית, ומסך שעולה מלמטה עם הטקסט ושלושת האתרים ===== */
.about-open {
  position: fixed; left: 50%; bottom: 18px; translate: -50% 0; z-index: 26;
  display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 22px 4px;
  border: 0; border-radius: 30px; background: rgba(251, 247, 239, .95); color: var(--navy);
  font-family: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3); transition: opacity .4s, transform .25s;
}
.about-open svg { width: 22px; height: 22px; animation: about-nudge 1.8s ease-in-out infinite; }
@keyframes about-nudge { 50% { transform: translateY(4px); } }
.about-open:hover { transform: translateY(-3px); }
.about-open:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
body:is(.in-room, .in-about, .contact-on) .about-open { opacity: 0; pointer-events: none; }
body:not(.is-simple) .hint { bottom: 86px; }   /* the help line sits above the button */

.about {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
  color: #fff; text-align: center;
  background: linear-gradient(180deg, rgba(7, 26, 46, .82), rgba(0, 60, 90, .78)), url("images/hero-bg.jpg") center / cover fixed no-repeat, #071a2e;
  transform: translateY(100%); transition: transform .85s cubic-bezier(.7, 0, .2, 1);
}
.about[hidden] { display: none; }
.about.is-open { transform: none; }
body.in-about :is(.top, .clock, .hint, .tags, .contact-open, .flybird, .view-switch) { opacity: 0; pointer-events: none; transition: opacity .4s; }
.about__back {
  position: sticky; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; margin: 16px auto 0;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 30px; cursor: pointer;
  background: rgba(251, 247, 239, .95); color: var(--navy); font-family: inherit; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.about__back svg { width: 20px; height: 20px; }
.about__back:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.about__inner { width: min(1100px, calc(100% - 40px)); margin: 0 auto; padding: clamp(24px, 5vh, 56px) 0 clamp(50px, 8vh, 90px); }
.about__logo { width: clamp(150px, 16vw, 210px); height: auto; margin-bottom: clamp(18px, 3vh, 30px); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35)); }
.about__title { margin: 0 0 clamp(22px, 4vh, 36px); font-weight: 700; line-height: 1.15; }
.about__line1 { display: block; font-size: clamp(36px, 5.2vw, 70px); }
.about__line2 {
  display: block; margin-top: 8px; font-size: clamp(22px, 2.8vw, 36px);
  background: linear-gradient(90deg, #ff8a98, #8fdc87 50%, #7cc8f0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__text { max-width: 1040px; margin: 0 auto; }
.about__text p { margin: 0 0 18px; font-size: clamp(19px, 1.65vw, 25px); font-weight: 300; line-height: 1.7; color: rgba(255, 255, 255, .95); }
.about__invite { margin: clamp(26px, 5vh, 44px) 0 22px; font-size: clamp(21px, 2vw, 27px); font-weight: 700; color: var(--gold); }
.about__worlds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 26px); }
.world-card {
  --c: #006482; position: relative; height: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 22px 22px;
  border-radius: 22px; background: #fff; color: var(--navy); text-decoration: none;
  border-top: 6px solid var(--c); box-shadow: 0 14px 34px rgba(0, 20, 40, .35);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), box-shadow .35s;
}
.world-card--blue { --c: #006482; } .world-card--green { --c: #4eaa48; } .world-card--red { --c: #d0162d; }
.world-card__title { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; line-height: 1.3; }
.world-card__text { flex: 1; font-size: 16px; font-weight: 500; line-height: 1.6; color: #4a5f69; }
.world-card__go {
  margin-top: 6px; padding: 8px 18px; border-radius: 30px; background: var(--c); color: #fff;
  font-size: 15px; font-weight: 700; transition: padding .3s;
}
.world-card:hover, .world-card:focus-visible { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0, 20, 40, .45); }
.world-card:hover .world-card__go, .world-card:focus-visible .world-card__go { padding: 8px 24px; }
.world-card:focus-visible { outline: 4px solid #fff; outline-offset: 4px; }
/* the text comes in line by line once the screen has risen */
.about__inner > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.about.is-open .about__inner > * { opacity: 1; transform: none; }
.about.is-open .about__inner > :nth-child(1) { transition-delay: .45s; }
.about.is-open .about__inner > :nth-child(2) { transition-delay: .6s; }
.about.is-open .about__inner > :nth-child(3) { transition-delay: .75s; }
.about.is-open .about__inner > :nth-child(4) { transition-delay: .9s; }
.about.is-open .about__inner > :nth-child(5) { transition-delay: 1.05s; }
@media (max-width: 860px) {
  .about__worlds { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .about { background-attachment: scroll; }
}
@media (max-width: 760px) {
  .about-open { bottom: 80px; font-size: 15px; }   /* above the time button and the accessibility button */
  body:not(.is-simple) .hint { bottom: auto; }
}
.a11y-big :is(.about__inner, .about-open) { zoom: var(--a11y-zoom, 1); }

/* ===== הלוגו של יעל בפינה הימנית העליונה (כמו באתרים). הכותרת נשארת באמצע ===== */
.top__logo {
  position: absolute; right: 28px; top: 18px; width: auto; height: clamp(48px, 5.2vw, 76px);
  box-sizing: content-box; padding: 8px 16px; border-radius: 16px;
  background: #fff; pointer-events: none;   /* מלבן לבן מלא עם פינות מעוגלות */
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  animation: top-logo-in 1s cubic-bezier(.2, .8, .2, 1) .3s both;
}
@keyframes top-logo-in { from { opacity: 0; transform: translateY(-14px); } }
body:is(.in-room, .in-about) .top__logo { opacity: 0; transition: opacity .4s; }
@media (max-width: 760px) {
  .top__logo { position: static; height: 36px; padding: 6px 12px; border-radius: 12px; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .top__logo { animation: none; } }
.a11y-still .top__logo { animation: none !important; }
