:root {
  color-scheme: dark;
  --ink: #070814;
  --panel: #0d1020;
  --panel-soft: #11162a;
  --text: #f7f8ff;
  --muted: #a9b0c9;
  --line: rgba(168, 178, 229, 0.18);
  --blue: #25a7ff;
  --violet: #7657ff;
  --magenta: #e64ff3;
  --warm: #ffd7b1;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 78% 8%, rgba(118, 87, 255, 0.14), transparent 30rem),
    radial-gradient(circle at 12% 38%, rgba(37, 167, 255, 0.1), transparent 32rem),
    var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
a { color: inherit; }
img { max-width: 100%; }
[data-lang="en"] { display: none; }
html[data-language="en"] [data-lang="he"] { display: none; }
html[data-language="en"] [data-lang="en"] { display: block; }

.skip-link { position: fixed; inset-inline-start: 1rem; top: -5rem; z-index: 100; padding: .7rem 1rem; background: white; color: black; }
.skip-link:focus { top: 1rem; }
.section-shell { width: min(calc(100% - 3rem), var(--max)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding-inline: max(1.5rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 8, 20, .82);
  backdrop-filter: blur(20px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; justify-self: start; direction: ltr; }
.brand-mark { display: grid; place-items: center; width: 38px; aspect-ratio: 1; border-radius: 11px; background: linear-gradient(135deg, var(--violet), var(--blue)); font-weight: 900; box-shadow: 0 0 28px rgba(81, 107, 255, .35); }
.brand strong { display: block; font-size: .95rem; letter-spacing: .18em; }
.brand small { display: block; color: var(--blue); font-size: .62rem; letter-spacing: .45em; }
.site-header nav { display: flex; gap: 2rem; font-size: .86rem; color: var(--muted); }
.site-header nav a { text-decoration: none; transition: color .2s ease; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: white; }
.language-switch { justify-self: end; border: 1px solid var(--line); color: var(--text); background: rgba(255,255,255,.04); border-radius: 999px; min-width: 52px; padding: .55rem .8rem; font: inherit; cursor: pointer; }

.hero { min-height: calc(100svh - 76px); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); padding-block: 7rem 5rem; }
.eyebrow { margin: 0 0 1.2rem; color: var(--blue); font-size: .72rem; letter-spacing: .28em; font-weight: 800; direction: ltr; text-align: start; }
.hero h1 { margin: 0; max-width: 780px; font-size: clamp(3.4rem, 7.3vw, 7.6rem); line-height: .92; letter-spacing: -.065em; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #fff, #9dcbff 48%, #df84ff); background-clip: text; -webkit-background-clip: text; }
.hero-lead { max-width: 670px; margin: 2rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }
.hero-detail { max-width: 700px; margin: 1.15rem 0 0; color: #c8cee3; font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.4rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font-weight: 750; }
.button-primary { background: linear-gradient(120deg, var(--violet), #4b8dff); border-color: transparent; box-shadow: 0 15px 45px rgba(77, 93, 255, .26); }
.button-quiet { background: rgba(255,255,255,.04); }
.signal-list { display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 3rem 0 0; list-style: none; color: var(--muted); font-size: .76rem; }
.signal-list li { display: flex; align-items: center; gap: .45rem; }
.signal-list span { color: var(--magenta); font: 700 .66rem ui-monospace, monospace; }
.signal-list b { font-weight: 600; }

.hero-portrait { position: relative; justify-self: center; width: min(100%, 520px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-portrait img { position: relative; z-index: 2; width: 86%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 40px 100px rgba(0,0,0,.7); }
.portrait-orbit { position: absolute; inset: 0; border: 1px solid rgba(125, 113, 255, .28); border-radius: 50%; box-shadow: inset 0 0 100px rgba(70, 74, 255, .08); }
.portrait-orbit::before, .portrait-orbit::after { content: ""; position: absolute; border-radius: 50%; background: var(--blue); box-shadow: 0 0 20px var(--blue); }
.portrait-orbit::before { width: 8px; height: 8px; top: 11%; left: 20%; }
.portrait-orbit::after { width: 6px; height: 6px; bottom: 12%; right: 18%; background: var(--magenta); box-shadow: 0 0 20px var(--magenta); }
.portrait-caption { position: absolute; z-index: 3; inset-inline-end: 0; bottom: 8%; min-width: 220px; padding: .8rem 1rem; border: 1px solid var(--line); background: rgba(7,8,20,.78); backdrop-filter: blur(14px); direction: ltr; text-align: left; }
.portrait-caption strong { display: block; letter-spacing: .14em; }
.portrait-caption span { color: var(--muted); font-size: .72rem; }

.departments, .system-map, .method, .trust, .founder { padding-block: 8rem; border-top: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: 4rem; }
.section-heading h2, .founder h2, .closing h2, .stats-header h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 5.4rem); line-height: 1; letter-spacing: -.055em; }
.section-intro { max-width: 780px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.05rem; }
.department-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); }
.department { position: relative; min-height: 470px; padding: clamp(2rem, 5vw, 4rem); border-bottom: 1px solid var(--line); overflow: hidden; }
.department:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.department:nth-last-child(-n+2) { border-bottom: 0; }
.department::before { content: ""; position: absolute; width: 220px; aspect-ratio: 1; inset-inline-end: -100px; top: -120px; border-radius: 50%; filter: blur(15px); opacity: .12; background: var(--blue); }
.department-nexus::before { background: var(--magenta); }
.department-retail::before { background: var(--warm); }
.department-index { color: var(--muted); font: 700 .72rem ui-monospace, monospace; }
.department-kicker { margin: 4.2rem 0 .6rem; color: var(--blue); letter-spacing: .22em; font-size: .72rem; font-weight: 800; }
.department h3 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.department > p[data-lang] { max-width: 590px; color: var(--muted); }
.department-details { max-width: 590px; margin: 1.45rem 0 0; padding-inline-start: 1.1rem; color: #d7dbea; }
.department-details li { padding-inline-start: .35rem; margin-top: .55rem; }
.department-details li::marker { color: var(--blue); }
.text-link { display: inline-block; margin-top: 1.5rem; color: #a9cfff; text-underline-offset: .35em; }

.connection-line { min-height: 200px; display: flex; align-items: center; gap: 1rem; overflow-x: auto; padding: 3rem 0; direction: ltr; white-space: nowrap; }
.connection-line span, .connection-line strong { flex: 0 0 auto; border: 1px solid var(--line); padding: 1rem 1.2rem; letter-spacing: .12em; font-size: .75rem; }
.connection-line strong { background: linear-gradient(120deg, rgba(118,87,255,.2), rgba(37,167,255,.12)); border-color: rgba(118,87,255,.45); }
.connection-line i { flex: 1 0 70px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--blue), transparent); }
.capability-row { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.capability { padding: 2rem; border-inline-end: 1px solid var(--line); }
.capability:last-child { border: 0; }
.capability b { display: block; color: var(--magenta); letter-spacing: .12em; font-size: .72rem; direction: ltr; }
.capability span { display: block; margin-top: .5rem; color: var(--muted); }

.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; border: 1px solid var(--line); list-style: none; }
.method-step { min-height: 290px; padding: clamp(1.6rem, 3vw, 2.6rem); border-inline-end: 1px solid var(--line); }
.method-step:last-child { border-inline-end: 0; }
.method-step > span { color: var(--magenta); font: 800 .72rem ui-monospace, monospace; letter-spacing: .14em; }
.method-step h3 { margin: 3.3rem 0 .8rem; font-size: 1.45rem; }
.method-step p { margin: 0; color: var(--muted); }

.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); }
.trust-item { min-height: 240px; padding: clamp(2rem, 4vw, 3.2rem); border-bottom: 1px solid var(--line); }
.trust-item:nth-child(odd) { border-inline-end: 1px solid var(--line); }
.trust-item:nth-last-child(-n+2) { border-bottom: 0; }
.trust-item h3 { margin: 0 0 1rem; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.trust-item p { max-width: 580px; margin: 0; color: var(--muted); }

.founder { display: grid; grid-template-columns: .65fr 1.35fr; align-items: center; gap: 6rem; }
.founder-number { font-size: clamp(8rem, 22vw, 20rem); font-weight: 900; line-height: .7; color: transparent; -webkit-text-stroke: 1px rgba(152,163,220,.22); direction: ltr; }
.founder blockquote { margin: 2.2rem 0; font-size: clamp(1.35rem, 2.4vw, 2.2rem); line-height: 1.45; font-weight: 620; }
.founder-copy > p:last-child { color: var(--muted); max-width: 720px; }
.closing { padding-block: 9rem; text-align: center; border-top: 1px solid var(--line); }
.closing .eyebrow { text-align: center; }
.closing > p:not(.eyebrow) { max-width: 700px; margin: 1.5rem auto; color: var(--muted); }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .7rem; margin-top: 2.2rem; }
.social-links a { padding: .6rem 1rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem max(1.5rem, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; letter-spacing: .08em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.stats-body { min-height: 100vh; }
.stats-shell { width: min(calc(100% - 2rem), 1180px); margin: 0 auto; padding: 4rem 0; }
.stats-header { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 3rem; }
.stats-header h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); }
.metric-grid article { padding: 1.5rem; border-inline-end: 1px solid var(--line); }
.metric-grid article:last-child { border: 0; }
.metric-grid span { color: var(--muted); }
.metric-grid strong { display: block; margin-top: .4rem; font-size: 2.5rem; }
.stats-panel, .stats-empty { margin-top: 1rem; padding: 1.5rem; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.stats-panel h2, .stats-empty h2 { margin-top: 0; }
.stats-empty p { color: var(--muted); }
.stats-columns { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.daily-bars { min-height: 180px; display: flex; align-items: end; gap: .45rem; direction: ltr; overflow-x: auto; }
.daily-bars > div { min-width: 22px; min-height: 180px; flex: 1; display: flex; flex-direction: column; justify-content: end; text-align: center; color: var(--muted); font-size: .6rem; }
.daily-bars meter { width: 100%; height: 152px; writing-mode: vertical-lr; direction: rtl; background: rgba(255,255,255,.04); border: 0; }
.daily-bars meter::-webkit-meter-bar { background: rgba(255,255,255,.04); border: 0; border-radius: 4px 4px 0 0; }
.daily-bars meter::-webkit-meter-optimum-value { background: linear-gradient(var(--magenta), var(--blue)); border-radius: 4px 4px 0 0; }
.daily-bars meter::-moz-meter-bar { background: linear-gradient(var(--magenta), var(--blue)); border-radius: 4px 4px 0 0; }
.rank-list { padding: 0; margin: 0; list-style-position: inside; }
.rank-list li { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.rank-list li:last-child { border: 0; }
.rank-list b { color: var(--text); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-portrait { width: min(100%, 430px); order: -1; }
  .department-grid, .stats-columns { grid-template-columns: 1fr; }
  .department, .department:nth-child(odd), .department:nth-last-child(-n+2) { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .department:last-child { border-bottom: 0; }
  .capability-row, .founder { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .method-step { border-bottom: 1px solid var(--line); }
  .method-step:nth-child(2) { border-inline-end: 0; }
  .method-step:nth-last-child(-n+2) { border-bottom: 0; }
  .founder-number { display: none; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid article:nth-child(2) { border-inline-end: 0; }
  .metric-grid article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 560px) {
  .section-shell { width: min(calc(100% - 2rem), var(--max)); }
  .site-header { height: 66px; padding-inline: 1rem; }
  .hero { min-height: auto; gap: 3rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .portrait-caption { inset-inline: 5%; bottom: 1%; }
  .departments, .system-map, .method, .trust, .founder { padding-block: 5rem; }
  .department { min-height: 0; padding: 2rem; }
  .department-kicker { margin-top: 2.8rem; }
  .method-grid, .trust-grid { grid-template-columns: 1fr; }
  .method-step, .method-step:nth-child(2), .method-step:nth-last-child(-n+2), .trust-item, .trust-item:nth-child(odd), .trust-item:nth-last-child(-n+2) { min-height: 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .method-step:last-child, .trust-item:last-child { border-bottom: 0; }
  .method-step h3 { margin-top: 2rem; }
  .capability-row, .metric-grid { grid-template-columns: 1fr; }
  .capability, .metric-grid article { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .site-footer, .stats-header { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
