@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/heebo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.site-shell {
  --sh-bar: #0038b8;
  --sh-bar-ink: #ffffff;
  --sh-accent: #0038b8;
  --sh-bg: #ffffff;
  --sh-ink: #0a1f5c;
  --sh-muted: #4a5a80;
  --sh-hairline: #0038b8;
  --sh-bar-h: 88px;
  --sh-max: 1120px;
}

/* Per-page palettes. */
.theme-yashar {
  --sh-bar: #091e5c;
  --sh-bar-ink: #ffffff;
  --sh-accent: #1450dc;
  --sh-bg: #eff4f9;
  --sh-ink: #091e5c;
  --sh-muted: #113d9c;
  --sh-hairline: #64b9e1;
}
.theme-beytenu {
  --sh-bar: #07134a;
  --sh-bar-ink: #ffffff;
  --sh-accent: #47a7a6;
  --sh-bg: #f2f5f7;
  --sh-ink: #07134a;
  --sh-muted: #3e3e3e;
  --sh-hairline: #22c2eb;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-shell main {
  flex: 1;
}

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

html,
body {
  margin: 0;
}
html {
  -webkit-tap-highlight-color: transparent;
}
:focus:not(:focus-visible) {
  outline: none;
}

.site-shell {
  font-family: 'Heebo', system-ui, sans-serif;
  background: var(--sh-bg);
  color: var(--sh-ink);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  inset-inline-start: 8px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--sh-ink);
  color: #ffffff;
}
.skip-link:focus {
  top: 8px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--sh-bar-h);
  background: var(--sh-bar);
}
.topbar-inner {
  max-width: var(--sh-max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-logo {
  order: 2;
  align-self: flex-start;
  display: block;
  line-height: 0;
  margin-top: 10px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
.topbar-logo img {
  display: block;
  width: 120px;
  height: 120px;
}

.menu-toggle {
  order: 1;
  appearance: none;
  border: 0;
  background: none;
  padding: 10px 4px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 48px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--sh-bar-ink);
  border-radius: 2px;
  transition:
    transform 0.22s ease,
    opacity 0.18s ease;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--sh-bar-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
.menu-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}
.menu-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* Menu */
.menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(10, 14, 30, 0.42);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
}
.menu-scrim[data-open='true'] {
  opacity: 1;
  visibility: visible;
}

.menu-panel {
  position: fixed;
  top: var(--sh-bar-h);
  inset-inline: 0;
  z-index: 41;
  background: #ffffff;
  border-top: 3px solid var(--sh-accent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  padding: 12px 24px 20px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}
.menu-panel[data-open='true'] {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.menu-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--sh-max);
  display: grid;
  gap: 2px;
}
.menu-list a {
  display: block;
  padding: 12px 8px;
  font-size: 18px;
  font-weight: 500;
  color: var(--sh-ink);
  border-bottom: 1px solid #f0eeee;
  text-decoration: none;
}
.menu-list li:last-child a {
  border-bottom: 0;
}
.menu-list a:hover,
.menu-list a[aria-current='page'] {
  color: var(--sh-accent);
}
.menu-list a[aria-current='page'] {
  font-weight: 700;
}
.menu-list a:focus-visible {
  outline: 2px solid var(--sh-accent);
  outline-offset: -2px;
}

@media (min-width: 760px) {
  .menu-panel {
    inset-inline-start: max(24px, calc((100vw - var(--sh-max)) / 2 + 24px));
    inset-inline-end: auto;
    width: 320px;
    border-radius: 0 0 14px 14px;
    padding: 8px 20px 14px;
  }
}

/* Content */
.band {
  padding: 48px 0;
}
.band-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}
.page-title {
  margin: 0;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}
.page-subtitle {
  margin: 12px 0 0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 500;
  color: var(--sh-muted);
  text-align: center;
}
.hairline {
  width: 80px;
  margin: 28px auto;
  border: 0;
  border-top: 2px solid var(--sh-hairline);
}

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000000;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.video.video-vertical {
  width: min(100%, 360px, calc(80svh * 9 / 16));
  margin: 24px auto 0;
  aspect-ratio: 9 / 16;
}
.shorts {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.shorts .video.video-vertical {
  flex: 1 1 0;
  width: auto;
  max-width: 320px;
  margin: 0;
}
@media (max-width: 760px) {
  .shorts {
    justify-content: flex-start;
    margin-inline: -16px;
    padding: 0 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .shorts .video.video-vertical {
    flex: 0 0 min(72vw, calc(70svh * 9 / 16));
    scroll-snap-align: start;
  }
}
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.page-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.page-links a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--sh-hairline);
  border-radius: 12px;
  color: var(--sh-ink);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
}
.page-links a:hover {
  border-color: var(--sh-accent);
  color: var(--sh-accent);
}

/* Candidate page */
.bio {
  margin: 0 auto 28px;
  font-size: 18px;
  text-align: center;
  transition: opacity 0.25s ease;
}
.bio-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.bio.is-swapping {
  opacity: 0;
}
.truth-mark {
  padding: 0 2px;
  background-image: linear-gradient(transparent 55%, rgba(255, 210, 0, 0.6) 55%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: truth-sweep 1.2s ease-out 0.2s both;
}
@keyframes truth-sweep {
  from {
    background-size: 0% 100%;
  }
}

.scratch-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--sh-bar);
  background-size: cover;
  background-position: center;
  user-select: none;
  -webkit-user-select: none;
}
.scratch-frame.is-painting {
  background-image: none !important;
}
.scratch-frame.is-painting > :not(canvas) {
  visibility: hidden;
}
.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
  transition: opacity 0.45s ease;
}
.scratch-canvas:active {
  cursor: grabbing;
}
.scratch-canvas.is-cleared {
  opacity: 0;
  pointer-events: none;
}

.portrait {
  width: min(100%, 380px);
  aspect-ratio: 5 / 6;
  margin: 0 auto;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  container-type: inline-size;
}
.portrait.portrait-wide {
  width: min(100%, 720px);
  aspect-ratio: 1357 / 784;
}
.portrait-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scratch-cta {
  position: absolute;
  inset-inline: 0;
  bottom: 20px;
  z-index: 2;
  width: max-content;
  margin: 0 auto;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--sh-accent);
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.portrait.cta-on .scratch-cta,
.portrait.hint-on .scratch-cta {
  opacity: 1;
  transform: translateY(0);
  animation: cta-pulse 1.2s ease-in-out infinite;
}
.portrait.cta-done .scratch-cta {
  display: none;
}
@keyframes cta-pulse {
  50% {
    transform: scale(1.06);
  }
}

.portrait-sticker {
  position: absolute;
  inset-inline: 0;
  bottom: 8%;
  z-index: 2;
  width: max-content;
  max-width: 92%;
  margin: 0 auto;
  padding: 0.15em 0.5em;
  border-radius: 10px;
  background: #e10600;
  color: #ffffff;
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transform: rotate(-8deg);
  animation: sticker-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.2s both;
}
@keyframes sticker-pop {
  from {
    opacity: 0;
    transform: rotate(-8deg) scale(0.3);
  }
}

.scratch-shine,
.scratch-hand {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portrait.hint-on .scratch-shine,
.portrait.hint-on .scratch-hand {
  opacity: 1;
}
.scratch-shine {
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0.35) 47%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.35) 53%,
    rgba(255, 255, 255, 0.05) 60%,
    transparent 70%
  );
  background-size: 250% 100%;
  animation: shine-sweep 2.8s ease-in-out infinite;
}
.scratch-hand {
  bottom: 24%;
  left: 14%;
  font-size: clamp(52px, 20cqw, 76px);
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.55));
  animation: hand-rub 1.6s ease-in-out infinite;
}
@keyframes shine-sweep {
  0% {
    background-position: 130% 0;
  }
  60%,
  100% {
    background-position: -30% 0;
  }
}
@keyframes hand-rub {
  0%,
  100% {
    transform: translate(0, 0) rotate(-10deg);
  }
  25% {
    transform: translate(42cqw, -30cqw) rotate(10deg);
  }
  50% {
    transform: translate(6cqw, -4cqw) rotate(-10deg);
  }
  75% {
    transform: translate(48cqw, -34cqw) rotate(10deg);
  }
}
.scratch-frame.is-painting .scratch-shine,
.scratch-frame.is-painting .scratch-hand {
  visibility: hidden;
}

.reveal {
  margin-top: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.is-shown {
  opacity: 1;
  transform: none;
}
.reveal-text {
  margin: 0 0 20px;
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  text-align: center;
}
.reveal-source {
  display: block;
  margin: 4px 0 10px;
  color: var(--sh-muted);
  font-size: 0.6em;
  font-weight: 500;
}
.reveal-quote {
  display: block;
  margin-top: 10px;
  font-size: 0.8em;
  font-weight: 500;
  font-style: italic;
}
.tweet {
  display: flex;
  justify-content: center;
}
.tweet-frame {
  display: block;
  width: min(100%, 550px);
  height: 640px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
}
.reveal-segment {
  margin: 28px auto 0;
  padding: 20px 22px;
  border-inline-start: 4px solid var(--sh-accent);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}
.reveal-segment-title {
  margin: 0 0 8px;
  font-size: clamp(20px, 3.5vw, 26px);
  line-height: 1.2;
}
.reveal-segment p {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
}
.reveal-points p + p {
  margin-top: 10px;
}
.reveal-points p + .reveal-segment-title {
  margin-top: 24px;
}
.reveal-bottom-line {
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  font-weight: 500;
}
@media (max-width: 560px) {
  .reveal-segment {
    padding: 16px;
  }
  .reveal-segment p {
    font-size: 15px;
  }
}
.punchline {
  width: fit-content;
  max-width: 100%;
  margin: 36px auto 0;
  padding: 0.25em 0.7em;
  border-radius: 10px;
  background: var(--sh-ink);
  color: #ffd200;
  font-size: clamp(22px, 5.4vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: rotate(3deg);
}

.splash-equation .splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.eq-title {
  margin: 0;
  font-size: clamp(32px, 7vw, 56px);
  line-height: 1.1;
}
.equation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.eq-faces {
  display: flex;
  gap: 10px;
}
.eq-face,
.eq-group {
  margin: 0;
  text-align: center;
}
.eq-face img {
  display: block;
  width: 96px;
  height: 96px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
.eq-group img {
  display: block;
  width: 300px;
  aspect-ratio: 1357 / 784;
  border: 3px solid #ffffff;
  border-radius: 12px;
  object-fit: cover;
}
.eq-face figcaption,
.eq-group figcaption {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
}
.eq-op {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}
.eq-result {
  padding: 0.05em 0.35em;
  border-radius: 14px;
  background: #e10600;
  color: #ffffff;
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  transform: rotate(-4deg);
  animation: sticker-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1) 0.4s both;
}
.eq-line {
  margin: 0;
  font-size: clamp(22px, 4.5vw, 32px);
  font-weight: 700;
}
button.next-cta {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
@media (max-width: 560px) {
  .equation {
    flex-direction: column;
    gap: 8px;
  }
  .eq-face img {
    width: 72px;
    height: 72px;
  }
  .eq-group img {
    width: min(100%, 300px);
  }
  .eq-op {
    font-size: 40px;
  }
  .eq-result {
    font-size: 56px;
  }
}

.next-cta-wrap {
  margin: 28px 0 8px;
  text-align: center;
}
.next-cta {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 10px;
  background: #e10600;
  color: #ffffff;
  font-size: clamp(28px, 7vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  animation: cta-hop 2.4s ease-in-out 1s infinite;
}
.next-cta:hover,
.next-cta:focus-visible {
  animation: none;
  transform: rotate(-4deg) scale(1.08);
}
@keyframes cta-hop {
  0%,
  50%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  15% {
    transform: translateY(-14px) rotate(-7deg) scale(1.04);
  }
  25% {
    transform: translateY(0) rotate(-3deg);
  }
  33% {
    transform: translateY(-6px) rotate(-5deg);
  }
  41% {
    transform: translateY(0) rotate(-4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .next-cta,
  .scratch-shine,
  .scratch-hand,
  .scratch-cta,
  .truth-mark {
    animation: none !important;
  }
}
.next-cta:focus-visible {
  outline: 3px solid var(--sh-ink);
  outline-offset: 4px;
}

/* Splash pages */
.splash {
  min-height: calc(100vh - var(--sh-bar-h));
  display: flex;
  align-items: center;
  background: var(--sh-bar);
  color: var(--sh-bar-ink);
  animation: splash-in 0.5s ease;
}
.splash-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
}
.splash-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - var(--sh-bar-h) - 48px);
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.splash-final .splash-inner {
  padding-block: 24px;
}
@keyframes splash-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
}

/* Footer */
.footer {
  background: var(--sh-bar);
  color: var(--sh-bar-ink);
}
.footer-inner {
  max-width: var(--sh-max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.footer-tagline {
  margin: 0;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
}
.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  opacity: 0.7;
}
.footer-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-share-label {
  font-weight: 500;
  opacity: 0.85;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--sh-bar-ink);
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.15s ease;
}
.share-btn svg {
  width: 20px;
  height: 20px;
}
.share-btn:hover,
.share-btn:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
}
.share-whatsapp:hover,
.share-whatsapp:focus-visible {
  color: #25d366;
}
.share-x:hover,
.share-x:focus-visible {
  color: #000000;
}
.share-facebook:hover,
.share-facebook:focus-visible {
  color: #1877f2;
}
.share-telegram:hover,
.share-telegram:focus-visible {
  color: #229ed9;
}
.share-copy:hover,
.share-copy:focus-visible {
  color: var(--sh-bar);
}
.share-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}
.share-toast {
  font-size: 14px;
  opacity: 0.85;
}
.footer-note {
  width: 100%;
  margin: 0;
  font-size: 14px;
  opacity: 0.7;
}
.flag-il {
  display: inline-block;
  width: 1.6em;
  height: auto;
  vertical-align: -0.25em;
  border-radius: 2px;
}

@media (max-width: 560px) {
  .footer-inner {
    padding: 24px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .site-shell {
    --sh-bar-h: 64px;
  }
  .topbar-inner {
    padding: 0 16px;
  }
  .topbar-logo {
    margin-top: 8px;
  }
  .topbar-logo img {
    width: 84px;
    height: 84px;
  }
  .menu-toggle {
    width: 36px;
    gap: 8px;
  }
  .menu-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }
  .band {
    padding: 32px 0;
  }
  .band-inner {
    padding: 0 16px;
  }
  .video {
    border-radius: 8px;
  }

  .candidate .band {
    padding: 16px 0 32px;
  }
  .candidate .page-title {
    font-size: 28px;
  }
  .candidate .page-subtitle {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
  }
  .candidate .hairline {
    margin: 10px auto;
  }
  .candidate .bio {
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
  }
  .portrait {
    width: min(100%, 380px, 32svh);
    border-radius: 12px;
  }
  .portrait.portrait-wide {
    width: 100%;
  }
  .portrait-sticker {
    font-size: 24px;
  }
}
