@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@300;400;500;700&display=swap');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Noto Sans Hebrew', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: #fff4f7;
  background: #140c0c;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -25%;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 34% at 18% 22%, rgba(255, 0, 0, 0.62), transparent 68%),
    radial-gradient(34% 30% at 78% 12%, rgba(255, 20, 147, 0.58), transparent 70%),
    radial-gradient(46% 40% at 62% 84%, rgba(255, 20, 147, 0.34), transparent 72%),
    radial-gradient(30% 28% at 30% 68%, rgba(255, 96, 64, 0.3), transparent 70%);
  background-size: 180% 180%, 190% 190%, 200% 200%, 170% 170%;
  filter: saturate(1.25);
  animation: aurora 12s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(75% 65% at 50% 15%, #000 0%, transparent 100%);
  mask-image: radial-gradient(75% 65% at 50% 15%, #000 0%, transparent 100%);
}

@keyframes aurora {
  0% { background-position: 0% 0%, 100% 0%, 60% 100%, 20% 60%; }
  100% { background-position: 22% 18%, 78% 16%, 38% 76%, 36% 44%; }
}

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(8%, -12%, 0) scale(1.15); }
  100% { transform: translate3d(-6%, 10%, 0) scale(0.95); }
}

a { color: inherit; }

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem clamp(0.9rem, 3.5vw, 2.6rem);
  flex-wrap: wrap;
  background: rgba(20, 12, 12, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.topbar.is-stuck {
  box-shadow: 0 12px 34px rgba(8, 2, 6, 0.55);
}

.mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(140deg, #ff0000, #ff1493);
  box-shadow: 0 10px 26px rgba(255, 0, 80, 0.36);
  overflow: hidden;
}

.mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.mark-sm {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  font-size: 1rem;
}

.topbar nav {
  flex: 1 1 auto;
  min-width: 0;
}

.topbar ul,
.rail-nav ul,
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topbar ul {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar ul::-webkit-scrollbar { display: none; }

.topbar li {
  animation: rise 0.5s ease both;
}

.topbar li:nth-child(1) { animation-delay: 0.03s; }
.topbar li:nth-child(2) { animation-delay: 0.08s; }
.topbar li:nth-child(3) { animation-delay: 0.13s; }
.topbar li:nth-child(4) { animation-delay: 0.18s; }
.topbar li:nth-child(5) { animation-delay: 0.23s; }
.topbar li:nth-child(6) { animation-delay: 0.28s; }
.topbar li:nth-child(7) { animation-delay: 0.33s; }

.topbar nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.94rem;
  white-space: nowrap;
  text-decoration: none;
  color: #ffe4ec;
  background: rgba(255, 255, 255, 0.07);
  transition: background 0.25s ease, color 0.25s ease;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  background: linear-gradient(120deg, #ff0000, #ff1493);
  color: #fff;
}

.ping {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: #261717;
  background: #fff4f7;
  box-shadow: 0 8px 22px rgba(255, 20, 147, 0.32);
}

.ping:hover { background: #fff; }

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.8rem, 6vw, 3.4rem) clamp(1rem, 4vw, 3rem) clamp(1.4rem, 4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  min-height: 45vh;
  will-change: transform, opacity;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  font-size: 0.86rem;
  text-decoration: none;
  color: #ffd8e6;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  animation: rise 0.6s ease both;
}

.chips a:nth-child(2) { animation-delay: 0.1s; }
.chips a:nth-child(3) { animation-delay: 0.2s; }

.chips a:hover { border-color: #ff1493; }

h1 {
  font-size: clamp(2.35rem, 8.5vw, 5.6rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0;
  background: linear-gradient(115deg, #ffffff 12%, #ffd0e2 46%, #ff5a9c 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 18px 46px rgba(255, 20, 147, 0.22);
}

.lede {
  max-width: 48ch;
  margin: 0.35rem 0 0;
  font-size: 1.06rem;
  font-weight: 300;
  color: rgba(255, 240, 245, 0.78);
}

.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17rem;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem) clamp(2rem, 6vw, 4rem);
  align-items: start;
}

.stage > section {
  grid-column: 1;
  min-width: 0;
  scroll-margin-top: 6.5rem;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: rise 0.7s ease both;
}

.stage > section:first-child { border-top: 0; }

.stage > section > small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: #ff89b9;
  margin-bottom: 0.35rem;
}

.stage > section > h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  color: #fff;
}

.stage > section > h3 {
  font-size: 1.16rem;
  color: #ffdce9;
  margin-top: 1.6em;
}

.stage > section > p,
.stage > section > ul,
.stage > section > ol,
.stage > section > blockquote {
  max-width: 68ch;
}

.stage > section > ul,
.stage > section > ol {
  padding-left: 1.2rem;
}

.stage > section li { margin-bottom: 0.45em; }

.stage > section blockquote {
  margin: 1.4rem 0;
  padding: 0.9rem 1.2rem;
  border-left: 4px solid #ff1493;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #ffe1ec;
}

.stage figure { margin: 1.4rem 0; }

.stage img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.stage a {
  color: #ffb3d0;
  text-decoration-color: rgba(255, 179, 208, 0.5);
  text-underline-offset: 3px;
}

.stage a:hover { color: #fff; }

.rail {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: start;
  position: sticky;
  top: 5.6rem;
  display: grid;
  gap: 1rem;
  animation: rise 0.8s ease both;
}

.rail-art {
  position: relative;
  margin: 0;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  background: #3a1d24;
  isolation: isolate;
}

.orb {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(40% 45% at 30% 30%, #ff0000, transparent 70%),
    radial-gradient(45% 45% at 72% 66%, #ff1493, transparent 72%),
    linear-gradient(160deg, #4a1a1a, #261717);
  filter: saturate(1.3) blur(2px);
  animation: drift 10s ease-in-out infinite alternate;
}

.rail-art figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.rail-nav {
  padding: 0.9rem 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.rail-nav small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: #ff9dc5;
  margin-bottom: 0.2rem;
}

.rail-nav h2 {
  font-size: 1.1rem;
  margin: 0 0 0.6rem;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
  font-size: 0.92rem;
  text-decoration: none;
  color: rgba(255, 244, 247, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rail-nav li:last-child a { border-bottom: 0; }

.rail-nav a:hover {
  background: rgba(255, 20, 147, 0.22);
  color: #fff;
}

.foot {
  display: flex;
  align-items: center;
  gap: 0.9rem 1.4rem;
  flex-wrap: wrap;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: rgba(255, 243, 246, 0.7);
}

.foot-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: #fff;
}

.foot nav { flex: 1 1 auto; min-width: 0; }

.foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: inherit;
}

.foot a:hover { color: #ff9dc5; }

.foot-copy { flex: 0 0 auto; }

@media (max-width: 960px) {
  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .rail {
    grid-column: 1;
    grid-row: auto;
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    margin-bottom: 1.6rem;
  }

  .rail-art { height: 100%; min-height: 128px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

  .topbar { gap: 0.5rem; }

  .hero {
    min-height: auto;
    padding-top: 1.6rem;
    padding-bottom: 1.4rem;
  }

  h1 { font-size: clamp(2rem, 11vw, 3rem); }

  .stage > section { scroll-margin-top: 8.5rem; }

  .rail {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  body::before { animation: none; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
