/* Maamikim marketing site — shared styles.
   Only variables from design-system/tokens.css, the generated
   assets/tokens-dark.css and the site tokens in assets/tokens-site.css.
   No colour literals in this file. */

@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.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: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-hebrew-500-normal.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: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.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: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-hebrew-700-normal.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: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans Hebrew";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../design-system/fonts/ibm-plex-sans-hebrew-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Arabic pages: IBM Plex Sans Arabic, the same family as the Hebrew face (OFL,
   assets/fonts/, Avi 24.11.2026); Latin and Hebrew still come from the Hebrew face. */
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC;
}
html[lang="ar"] { --font-sans: "IBM Plex Sans Arabic", "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif; }

/* ---------- Base ---------- */

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

html {
  scroll-padding-top: 88px; /* anchors land below the sticky header */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: var(--type-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

main { flex: 1 0 auto; }

h1, h2, h3 { color: var(--ink); text-wrap: balance; margin: 0 0 var(--space-3); }
h1 { font: var(--type-h1); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); }
h2 { font: var(--type-h2); font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem); }
h3, .h3 { font: var(--type-body-strong); font-size: 1.0625rem; }
p { margin: 0 0 var(--space-4); max-width: 65ch; }

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; height: auto; }

bdi { unicode-bidi: isolate; }

/* Focus ring: navy 2px with a 2px halo, as in the design system. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--surface-raised);
  border-radius: var(--radius-field);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Skip link ---------- */

.skip-link {
  position: absolute;
  inset-inline-start: var(--space-4);
  top: -100px;
  z-index: 10;
  background: var(--primary);
  color: var(--on-primary);
  font: var(--type-control);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--width-list);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container { padding-inline: var(--space-8); }
}

.reading { max-width: var(--width-reading); }

.section { padding-block: var(--space-12); }
.section + .section { padding-top: 0; }

/* Moving between pages: a short soft fade instead of a hard redraw (Avi,
   24.11.2026). Browsers without cross-document view transitions just load. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Language switch (Avi, 24.11.2026) ----------
   Each language in its own name, the current one in ink; short names on
   phones. In the header after the menu; on phones beside the menu button. */
.site-nav { grid-column: 2; justify-self: start; margin-inline-start: clamp(var(--space-6), 3vw, var(--space-12)); }
.brand { grid-column: 1; }
.lang-switch { grid-column: 3; justify-self: end; grid-row: 1; }
.lang-switch ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.lang-switch li + li::before { content: ""; display: inline-block; width: 1px; height: 0.9em; margin-inline: 2px; vertical-align: middle; background: var(--line-strong); opacity: 0.5; }
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-size);
  min-width: var(--tap-size);
  justify-content: center;
  padding-inline: var(--space-2);
  color: var(--ink-muted);
  font: var(--type-control);
  font-size: 0.8125rem;
  text-decoration: none;
  border-radius: var(--radius-field);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang-switch .abbr { display: none; }
@media (max-width: 860px) {
  .lang-switch { grid-column: 2; }
  .nav-toggle { grid-column: 3; grid-row: 1; }
  .lang-switch .full { display: none; }
  .lang-switch .abbr { display: inline; }
}

/* ---------- Header ----------
   In the spirit of apple.com (Avi, 24.11.2026): a thin bar that stays on
   top, translucent over the page; small quiet links in the middle; the
   products open as a full-width panel under the bar, the page blurred
   behind it. On phones the menu opens as a full screen of large links. */

.site-header {
  --bar: 74px;
  position: sticky;
  top: 0;
  z-index: 50;
  contain: layout; /* the header holds its fixed panels (also without backdrop-filter) */
  background: var(--surface-raised);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header {
    background: color-mix(in srgb, var(--surface-raised) 80%, transparent);
    backdrop-filter: saturate(1.8) blur(20px);
  }
}
/* The bar runs the full width: logo and languages near the screen edges, with
   the page gutter (Avi, 24.11.2026); the content below stays in its column. */
.site-header .container {
  max-width: none;
  padding-inline: clamp(var(--space-4), 2.5vw, var(--space-12));
  display: grid;
  /* logo and menu together at the start, the languages at the end (Avi, 24.11.2026) */
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: var(--bar);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-field);
}
.brand img { display: block; height: 60px; width: auto; } /* larger (Avi, 24.11.2026) */
/* The menu sits on the logo's bottom line (Avi, 24.11.2026): the links keep their
   44px target but carry their words at its foot. */
@media (min-width: 861px) {
  .site-nav { align-self: end; }
  .site-nav > ul > li > a, .site-nav .sub-toggle { align-items: flex-end; padding-bottom: 10px; }
  /* the languages on the same line */
  .lang-switch { align-self: end; }
  .lang-switch a { align-items: flex-end; padding-bottom: 10px; }
  .lang-switch li + li::before { vertical-align: bottom; margin-bottom: 13px; }
}
/* Phones keep a slimmer bar. */
@media (max-width: 860px) {
  .site-header { --bar: 62px; }
  .brand img { height: 48px; }
}

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav > ul { display: flex; align-items: center; gap: clamp(8px, 2.4vw, 36px); }
.site-nav a,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap-size);
  padding-inline: var(--space-1);
  border: 0;
  background: none;
  color: var(--ink-muted);
  font: var(--type-control);
  font-size: 1rem; /* larger (Avi, 24.11.2026) */
  font-weight: 500; /* medium (Avi, 24.11.2026) */
  text-decoration: none;
  cursor: pointer;
  transition: color var(--dur-fast);
}
.site-nav a:hover,
.sub-toggle:hover,
.sub-toggle[aria-expanded="true"],
.site-nav > ul > li > a[aria-current="page"],
.has-sub.is-current > .sub-toggle { color: var(--ink); }
.site-nav > ul > li > a[aria-current="page"], .has-sub.is-current > .sub-toggle { font-weight: 600; }

/* «מוצרים»: a disclosure button; its list shows plainly without JS. */
.has-sub { position: relative; }
.caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor; /* physical: the chevron points down in RTL too */
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur-base) var(--ease-out);
}
.sub-toggle[aria-expanded="true"] .caret { transform: translateY(1px) rotate(-135deg); }
/* The products: plain links in the same type and size as the menu (Avi, 24.11.2026). */
.sub-nav { display: grid; }
.site-nav .sub-nav a[aria-current="page"] { color: var(--ink); }
/* Pointing at a product underlines it (Avi, 24.11.2026). */
.site-nav .sub-nav a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--gold); text-underline-offset: 6px; }
/* Closed from the first paint, until the script takes the toggle over. */
.js .sub-toggle:not([data-ready]) + .sub-nav,
.js .sub-toggle[aria-expanded="false"] + .sub-nav { display: none; }

.nav-toggle { display: none; }

@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } }

@media (min-width: 861px) {
  .js .caret { display: none; } /* as on apple.com: the list opens on pointing, no chevron */
  /* Right under «מוצרים», its items in the same type and size. */
  .js .site-nav .sub-nav {
    position: absolute;
    top: 100%;
    inset-inline-start: calc(-1 * var(--space-3));
    min-width: max-content;
    padding: var(--space-1) var(--space-3);
    background: var(--surface-raised);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-raised);
    animation: drop-in 0.2s var(--ease-out);
  }
}

/* Phones and narrow windows: a menu button; the menu opens as a full screen
   of large links. Without JS (no .js class) the links simply wrap. */
@media (max-width: 860px) {
  .site-header .container { grid-template-columns: minmax(0, 1fr) auto auto; gap: 0 var(--space-2); }
  .site-nav { grid-column: 1 / -1; margin-inline-start: 0; justify-self: stretch; }
  .site-nav > ul { flex-wrap: wrap; padding-bottom: var(--space-2); }
  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: var(--tap-size);
    height: var(--tap-size);
    padding: 0;
    border: 0;
    border-radius: var(--radius-field);
    background: none;
    color: var(--ink);
    cursor: pointer;
  }
  /* Two lines that turn into a cross when open. */
  .nav-toggle .bars { position: relative; width: 18px; height: 8px; }
  .nav-toggle .bars::before,
  .nav-toggle .bars::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1.5px;
    border-radius: 1px;
    background: currentColor;
    transition: transform var(--dur-base) var(--ease-out), top var(--dur-base) var(--ease-out);
  }
  .nav-toggle .bars::before { top: 0; }
  .nav-toggle .bars::after { top: 6.5px; }
  .nav-toggle[aria-expanded="true"] .bars::before { top: 3.25px; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { top: 3.25px; transform: rotate(-45deg); }

  /* Closed from the first paint; the script only ever opens it. */
  .js .site-nav:not([data-open="true"]) { display: none; }
  .js .site-nav[data-open="true"] {
    position: fixed; /* fixed to the header, which contains it */
    top: 100%;
    inset-inline: 0;
    height: calc(100vh - var(--bar));
    height: calc(100dvh - var(--bar));
    overflow-y: auto;
    padding: var(--space-6) var(--space-6) var(--space-12);
    background: var(--surface-raised);
    animation: drop-in 0.3s var(--ease-out);
  }
  .js .site-nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .js .site-nav > ul > li > a,
  .js .sub-toggle {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    color: var(--ink);
    font-size: 1.6rem;
    font-weight: 600;
  }
  .js .caret { width: 9px; height: 9px; }
  .js .site-nav .sub-nav { padding: 0 var(--space-4) var(--space-4); animation: drop-in 0.25s var(--ease-out); }
  .js .site-nav .sub-nav a { font-size: 1.25rem; min-height: 48px; color: var(--ink); }
  .js.menu-open { overflow: hidden; } /* the page does not scroll under the open menu */
}

/* ---------- Bands (direction «נקי», Avi 24.11.2026) ----------
   .hero opens every page; .band is a further section (home and הישגים).
   Clean white bands with dark ink; colours from assets/tokens-site.css. */

.hero,
.band {
  position: relative;
  overflow: hidden;
  overflow: clip; /* clip, not hidden: keeps the story stage sticky */
  background: var(--band-bg);
  color: var(--band-ink);
}
.band-deep { background: var(--band-alt-bg); }

/* :where() keeps these weak, so a light card inside a band keeps its own colours. */
:where(.hero, .band) :is(h1, h2, h3) { color: var(--band-ink); }
:where(.hero, .band) p { color: var(--band-ink-muted); }
:where(.hero, .band) a:not(.btn, .live-card a) {
  color: var(--band-ink);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
}
.hero :focus-visible, .band :focus-visible {
  outline-color: var(--gold);
  box-shadow: none;
}

.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero .container { position: relative; }
.hero h1 {
  font-weight: 500;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 3.5rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 20ch;
  margin-bottom: var(--space-6);
}
.hero .lead {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.65;
  max-width: 52ch;
}

/* Home: the one bold moment — gold contour lines (a depth map) draw once. */
.hero-home {
  min-height: min(88vh, 820px);
  display: flex;
  align-items: center;
}
.hero-home .container { width: 100%; }
/* Phones (to 700px): the contour summit and its star sit in the top corner,
   above the words, with room for them over the heading (Avi, 27.11.2026). */
@media (max-width: 700px) {
  .hero-home { min-height: 0; align-items: flex-start; padding-block: calc(var(--space-8) * 2.5) var(--space-12); }
}
.hero-home h1 { max-width: none; margin-bottom: 0; }
/* The gold line separates the claim from its line, at the start like the words. */
.hero-home .gold-rule { margin-inline: 0; }
/* Inner pages: title, a short gold line at its start, then the opening line (Avi, 26.11.2026). */
.hero-page h1 { margin-bottom: 0; }
.hero-page .gold-rule { margin-inline: 0; }
/* A line break kept for wide screens; on a phone the lead flows as one paragraph (Avi, 26.11.2026). */
@media (max-width: 700px) { .br-wide { display: none; } }
/* The new type, in the old layout (Avi, 24.11.2026): calm, airy paragraphs. */
.hero-home .lead, .hero-page .lead, .band .lead { line-height: 1.85; color: var(--ink-muted); }
.product-band h2 { margin-bottom: 0; }
.product-band .gold-rule { margin: var(--space-6) 0; }
.hero-home h1 .claim {
  display: block;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem); /* smaller (Avi, 24.11.2026) */
  line-height: 1.04;
  max-width: 13ch;
}

.contours {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.contours path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.2;
}
/* On a clean white band the depth map is a watermark, never louder than the words. */
.contours { opacity: 0.45; }
.contours .star { fill: var(--gold); stroke: none; }
.contours[data-animate] path {
  stroke-dashoffset: var(--len);
  animation: contour-draw 2.6s var(--ease-out) forwards;
}
.contours[data-animate] .star {
  opacity: 0;
  animation: contour-appear 0.8s 1.6s forwards;
}
.contours-quiet { opacity: 0.22; }
@media (max-width: 800px) {
  .contours { opacity: 0.3; }
  .contours-quiet { opacity: 0.15; }
}
@keyframes contour-draw { to { stroke-dashoffset: 0; } }
@keyframes contour-appear { to { opacity: 1; } }

.band { padding-block: clamp(64px, 10vw, 128px); }
.band h2 {
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); /* smaller (Avi, 24.11.2026) */
  line-height: 1.1;
  margin-bottom: var(--space-6);
}
.band .lead { font-size: 1.15rem; max-width: 44ch; }

/* A product page opens quietly and centred: the logo on white, a large light
   headline, a short gold line, the words in a calm column (Avi, 24.11.2026:
   «מראה יותר יוקרתי»). */
.hero-product { padding-block: clamp(80px, 12vw, 168px) clamp(64px, 9vw, 128px); text-align: center; }
.hero-product .container { display: grid; justify-items: center; }
.hero-product .logo-chip { border-color: transparent; padding: var(--space-2) var(--space-4); margin-bottom: clamp(24px, 4vw, 48px); }
.hero-product h1 {
  font-size: clamp(1.9rem, 1.1rem + 3vw, 3.4rem); /* smaller (Avi, 24.11.2026) */
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: none;
  margin-bottom: 0;
}
.hero-product .lead { max-width: 54ch; line-height: 1.85; color: var(--ink-muted); }
/* The one phrase that says the system acts: in ink, not muted. */
.hero-product .lead strong { color: var(--ink); font-weight: 600; }
.gold-rule { display: block; width: 48px; height: 2px; border-radius: 1px; background: var(--gold); margin: clamp(24px, 3.5vw, 40px) auto; }
.band-centered > .container > h2 { text-align: center; font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.8rem); font-weight: 500; color: var(--ink-muted); }
/* The section title is for screen readers; the first topic opens the band. */
.band-centered .flow { margin-top: 0; }
.band-centered .flow-item:first-child { padding-top: 0; }

/* הישגים opening, two columns from 1000px (Avi, 24.11.2026: «נראה ריק מדי»):
   the words at the start, a still shot of the system beside them, lying
   slightly back like a screen on a desk. Stacked and centred on phones. */
.hero-split { gap: clamp(40px, 6vw, 88px); }
.hero-words { display: grid; justify-items: center; }
.hero-shot {
  --t2: 1;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 5 / 4;
  container-type: size;
  font-size: clamp(10px, 3.4cqh, 15px);
  line-height: 1.4;
  color: var(--ink);
  text-align: start;
  margin-top: clamp(32px, 6vw, 56px);
  transform: perspective(1800px) rotateY(10deg) rotateX(4deg);
  filter: drop-shadow(0 30px 40px color-mix(in srgb, var(--ink) 16%, transparent));
}
@media (min-width: 1000px) {
  .hero-product { text-align: start; }
  .hero-product .container.hero-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; justify-items: stretch; }
  .hero-words { justify-items: start; }
  .hero-words .gold-rule { margin-inline: 0; }
  .hero-product .logo-chip { padding-inline: 0; }
  .hero-shot { margin-top: 0; justify-self: end; }
}
/* With motion, the shot settles in once as the page opens. */
.motion .hero-shot { animation: shot-in 1.1s 0.2s var(--ease-out) both; }
@keyframes shot-in {
  from { transform: perspective(1800px) rotateY(18deg) rotateX(8deg) translateY(24px); } /* never hidden: a capture at any moment shows it */
}
@media (prefers-reduced-motion: reduce) { .hero-shot { animation: none !important; } }
/* Phones: a squarer shot, so the five rows fit inside its card (Avi, 27.11.2026). */
@media (max-width: 480px) { .hero-shot { aspect-ratio: 1 / 1; } }
/* The product logo sits on a white chip: there is no light-on-dark logo file. */
.logo-chip {
  display: inline-block;
  background: var(--logo-white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: var(--space-3) var(--space-6);
  margin-bottom: var(--space-6);
}
.logo-chip img { display: block; height: 64px; width: auto; }

/* Home product band: words on one side, the live card on the other. */
.product-band {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}
@media (min-width: 960px) {
  .product-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
/* One column: the product logo comes first, so «הישגים» under it reads as the
   product's name, not as "achievements" (Avi, 27.11.2026). */
@media (max-width: 959.98px) {
  .product-band { gap: var(--space-8); }
  .product-band .logo-panel { order: -1; justify-self: center; width: min(100%, 320px); }
  /* The logo right above already names the product: the heading stays for screen readers only (Avi, 27.11.2026). */
  .product-band h2 { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .product-band .gold-rule { margin: 0 auto var(--space-6); } /* centred under the centred logo (Avi) */
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding-block: var(--space-6);
  font: var(--type-small);
  font-size: 0.875rem;
  color: var(--band-ink-muted);
}
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3) var(--space-6);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-size);
  padding-inline: var(--space-2);
  color: var(--band-ink);
}
.site-footer :focus-visible { outline-color: var(--gold); box-shadow: none; }
.site-footer p { margin: 0; }

/* ---------- Buttons ---------- */

/* Buttons (Avi, 24.11.2026: «יפה יותר»): deep ink, generous, a soft shadow;
   pointing lifts it a little and turns it the brand blue. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: var(--space-3) clamp(36px, 4vw, 48px);
  border-radius: var(--radius-pill);
  font: var(--type-control);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  transition: transform var(--dur-base) var(--ease-out), background-color var(--dur-base), box-shadow var(--dur-base);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--ink);
  color: var(--surface-raised);
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--ink) 70%, transparent), inset 0 1px 0 color-mix(in srgb, var(--surface-raised) 14%, transparent);
}
.btn-primary:hover {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--primary) 70%, transparent);
}
.btn-primary:active { transform: none; }

.actions { margin-top: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Home, in the הישגים band: three short benefits (Avi, 24.11.2026): a thin
   gold line icon, a short title, one sentence; one row on a computer,
   stacked on a phone, divided by gold hairlines. */
.band .benefits-list { margin-top: clamp(40px, 6vw, 72px); }
/* The way in comes after the reasons (Avi, 27.11.2026). */
.band-more { margin: var(--space-6) 0 0; }
.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.benefits-list li { padding-block: var(--space-6); border-top: 1px solid var(--gold-hairline); }
.benefit-ico { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: var(--space-3); }
.benefits-list h3 { font-weight: 500; font-size: 1.3rem; margin: 0 0 var(--space-2); }
.benefits-list p { margin: 0; color: var(--ink-muted); line-height: 1.7; }
@media (min-width: 800px) {
  .benefits-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefits-list li { border-top: 0; border-inline-start: 1px solid var(--gold-hairline); padding: var(--space-2) var(--space-8); }
  .benefits-list li:first-child { border-inline-start: 0; padding-inline-start: 0; }
}

/* Closing call to action at the end of a product page (Avi, 24.11.2026):
   centred like the page opening; the only button on the page. */
.cta { padding-block: clamp(64px, 9vw, 120px); text-align: center; background: var(--band-bg); }
.cta .container { display: grid; justify-items: center; }
.cta h2 { font-weight: 500; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); letter-spacing: -0.01em; margin: 0; }
.cta .gold-rule { margin: var(--space-6) auto; }
.cta p { max-width: 52ch; line-height: 1.85; color: var(--ink-muted); margin: 0 0 var(--space-8); }

/* ---------- Panels (inner pages) ---------- */

.grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  padding: 0;
  margin: 0;
  list-style: none;
}

.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius);
  padding: var(--space-6);
}
.card h3 { margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.section-intro { color: var(--ink-muted); }

.more-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-size);
  font: var(--type-control);
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- Lists ---------- */

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-3);
}
.feature-list li {
  position: relative;
  padding: var(--space-4) var(--space-4);
  padding-inline-start: calc(var(--space-4) + 28px);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 80ch;
}
.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: var(--space-4);
  top: calc(var(--space-4) + 0.55em);
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--primary);
}
.feature-list strong { font-weight: 600; }

/* ---------- Notices ---------- */

.notice {
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--status-chance);
  background: var(--status-chance-bg);
  color: var(--ink);
  border-radius: var(--radius);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  max-width: 80ch;
}
.notice p:last-child { margin-bottom: 0; }

/* ---------- Live card (fictitious data) ----------
   One orchestrated sequence: the meter fills, the rows resolve one by one,
   then the verdict. With JS it waits until the card is on screen. */

.live-figure { margin: 0; width: 100%; max-width: 560px; justify-self: center; }
.live-figure figcaption {
  margin-top: var(--space-3);
  font: var(--type-small);
  font-size: 0.875em;
  text-align: center;
  color: var(--ink-muted);
}
.band .live-figure figcaption { color: var(--band-ink-muted); }

.live-card {
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
  padding: clamp(var(--space-4), 4vw, 28px);
}
.lc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.lc-name { font-weight: 700; font-size: 1.2em; }
.lc-meta { color: var(--ink-muted); font-size: 0.9em; }
.lc-verdict {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--status-expected-bg);
  color: var(--status-expected);
  font-weight: 700;
  font-size: 0.95em;
  animation: lc-pop 0.5s 2.9s both;
}
.lc-meter {
  margin-top: 20px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--status-open-bg);
  overflow: hidden;
}
.lc-meter span {
  display: block;
  height: 100%;
  width: 78%;
  background: linear-gradient(to left, var(--primary), var(--status-eligible));
  border-radius: inherit;
  animation: lc-fill 2.4s 0.4s var(--ease-out) both;
}
.lc-meter-label {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: 0.85em;
  color: var(--ink-muted);
  margin-top: 6px;
}
.lc-rows { list-style: none; margin: 18px 0 0; padding: 0; }
.lc-rows li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding-block: var(--space-3);
  border-top: 1px solid var(--line);
  animation: lc-row 0.45s both;
}
.lc-rows li:nth-child(1) { animation-delay: 0.6s; }
.lc-rows li:nth-child(2) { animation-delay: 1.1s; }
.lc-rows li:nth-child(3) { animation-delay: 1.6s; }
.lc-rows li:nth-child(4) { animation-delay: 2.1s; }
.lc-ico {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.lc-what { font-weight: 600; }
.lc-why { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.88em; }
.lc-tag {
  font-size: 0.85em;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.is-met { background: var(--status-eligible-bg); color: var(--status-eligible); }
.is-open { background: var(--status-open-bg); color: var(--status-open); }
.is-not { background: var(--status-not-bg); color: var(--status-not); }
.lc-source { margin: 14px 0 0; font-size: 0.8em; color: var(--ink-muted); }

.js .live-figure .live-card:not(.is-playing) .lc-verdict,
.js .live-figure .live-card:not(.is-playing) .lc-meter span,
.js .live-figure .live-card:not(.is-playing) .lc-rows li { animation-play-state: paused; }

@keyframes lc-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes lc-fill { from { width: 0; } to { width: 78%; } }
@keyframes lc-pop { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .contours[data-animate] path { animation: none; stroke-dashoffset: 0; }
  .contours[data-animate] .star { animation: none; opacity: 1; }
  .lc-verdict, .lc-meter span, .lc-rows li { animation: none; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}

/* ---------- Content pages ---------- */

/* Legal pages: section titles just above the text size (Avi, 24.11.2026). */
.prose h2 { font-size: 1.1rem; font-weight: 600; margin: var(--space-8) 0 var(--space-3); }
.prose ul { padding-inline-start: var(--space-6); margin: 0 0 var(--space-4); max-width: 65ch; }
.prose li { margin-bottom: var(--space-2); }
.updated { font: var(--type-small); font-size: 0.875rem; color: var(--ink-muted); }

/* Contact (Avi, 24.11.2026): a small title and one line, then sales and
   service, each with its email. No buttons. */
/* Contact opens like the policy pages: a white band with the quiet contours and the title. */
.contact .lead { font-size: 1.15rem; max-width: 46ch; margin: 0 0 var(--space-8); color: var(--ink-muted); }
/* Two white cards (sales first), a short gold line on top of each and the
   address at its foot. */
.depts { display: grid; gap: var(--space-4); grid-template-columns: minmax(0, 1fr); max-width: 560px; }
/* From 960px the two cards sit side by side, half each, the same height (Avi, 24.11.2026). */
@media (min-width: 960px) { .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 960px; } }
.dept {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-raised);
  position: relative;
}
.dept::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: var(--space-6);
  width: 40px;
  height: 3px;
  border-radius: 0 0 2px 2px;
  background: var(--gold);
}
.dept h2 { font-size: 1.35rem; font-weight: 500; margin-bottom: var(--space-3); }
.dept > p { margin: 0; color: var(--ink-muted); }
.dept > .dept-mail { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.dept-mail a { font-size: 1.15rem; font-weight: 600; }

@media print {
  .lc-verdict, .lc-meter span, .lc-rows li { animation: none; }
  .scene, .scene *, .flow-text { transition: none !important; animation: none !important; }
  .flow .story-stage { display: block; break-inside: avoid; }
  .contours { display: none; }
}

/* The company logo always sits on white: in dark mode it gets a small white
   panel instead of the -dark file with its teal box (Avi, 19.11.2026). */
.brand { background: var(--logo-white); padding: 2px var(--space-2); }

/* ---------- Story: «מה המערכת עושה» as a plain flow of topics ----------
   Natural scrolling, as on apple.com (Avi, 24.11.2026): no pinning, no
   snapping, the wheel is the browser's. Each topic is its own block, its
   words above and its scene below; as a topic comes on screen its words
   rise in and its scene plays (site.js adds .is-in and .is-on, once).
   The spreadsheet plays by itself when fully on screen: it breaks apart
   and rebuilds as the system, and topic 2's words follow under it.
   Without JS, and on short screens (200% zoom), the scenes are hidden and
   the topics read as a plain numbered list. Scenes are decoration
   (aria-hidden): every fact in them is also in the topic's words. */

.flow { list-style: none; margin: var(--space-12) 0 0; padding: 0; }
.flow-item { padding-block: clamp(40px, 9vh, 112px); }
.flow-item:first-child { padding-top: var(--space-4); }
/* Between topics: a fine gold line fading at both ends, a small gold diamond
   at its centre (Avi, 24.11.2026). */
.flow-item + .flow-item { position: relative; }
.flow-item + .flow-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(70%, 640px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(to right, transparent, var(--gold-hairline), transparent);
}
.flow-item + .flow-item::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--band-alt-bg);
  border: 1px solid var(--gold);
}
.flow-text {
  display: grid;
  justify-items: center;
  gap: var(--space-6); /* more air between a topic and its line (Avi, 24.11.2026) */
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.flow-text h3 {
  font-weight: 500; /* lighter (Avi, 24.11.2026) */
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); /* smaller (Avi, 24.11.2026) */
  line-height: 1.12;
  margin: 0;
}
/* A short gold line between each topic and its line (Avi, 24.11.2026). */
.flow-text .gold-rule { margin: 0; }
.flow-text p { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); margin: 0; max-width: 58ch; }
/* Short screens (200% zoom): the topics read as a list, without the scenes. */
.flow .story-stage { display: none; }

/* The scenes show finished by default: without JS, with reduced motion, in
   print and in a full-page capture. With .motion, site.js resets a scene just
   before it comes on screen and plays it into the same finished state. */
@media (min-height: 500px) { /* small phones too (Avi, 27.11.2026); 200% zoom stays below it */
  .flow .story-stage {
    display: block;
    width: min(100%, 1000px);
    margin: clamp(24px, 5vh, 48px) auto 0;
    text-align: start;
  }
  /* Scenes keep a readable width inside the wide stage. */
  .scene > * { width: min(100%, 760px); margin-inline: auto; }
  .scene-morph > * { width: auto; }
  /* Words rise in as they come on screen (is-in is in the markup; site.js takes it off just before). */
  .flow-text { opacity: 0; transform: translateY(32px); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
  .flow-text.is-in { opacity: 1; transform: none; }
}

.story-stage {
  position: relative;
  height: min(460px, 68vh);
  container-type: size;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
  overflow: hidden;
}
.story-stage:has(.scene-morph) { background: transparent; border-color: transparent; box-shadow: none; }
/* Lined up with the edge of the scene above it (the stage is 1000px wide, centred). */
.story-note { width: min(100%, 1000px); max-width: none; margin: var(--space-6) auto 0; font-size: 0.85rem; text-align: start; color: var(--ink-muted); }

.scene {
  position: absolute;
  inset: 0;
  padding: clamp(14px, 5cqh, 28px);
  font-size: clamp(10px, 3.6cqh, 16px);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 3cqh, 16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.45s;
}
.scene.is-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s;
}
/* site.js resets a scene to its start without any transition. */
.no-trans, .no-trans * { transition: none !important; animation: none !important; }
/* Leaving is quick: inner delays apply only on the way in. */
.scene:not(.is-on) * { transition-delay: 0s !important; }
.scene-title { font-weight: 700; font-size: 1.15em; }

/* ---- Scene: the spreadsheet turns smoothly into the system ----
   Plays each time it comes fully on screen (site.js): the noise fades, the
   names and grades the system keeps glide to their places in its table,
   and the system's panel and table come in around them. */
.scene-morph { padding: 0; --t2: 1; }
/* The spreadsheet shows only while the transformation runs (site.js). */
.sheet-box { visibility: hidden; }
.scene-morph.is-sheet .sheet-box { visibility: visible; }
.sheet-box {
  position: absolute;
  inset: clamp(12px, 4cqh, 24px);
  display: flex;
  flex-direction: column;
}
.sheet-view { position: relative; flex: 1; }
.sheet {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.8fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.7fr) minmax(0, 0.5fr) minmax(0, 0.9fr);
  grid-auto-rows: minmax(0, 1fr);
  font-size: 0.8em;
  border: 1px solid var(--line);
}
.sheet > span {
  border-inline-start: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0 4px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  background: var(--surface-raised);
  transform-origin: center;
  will-change: transform, opacity;
}
.sheet .h { background: var(--surface-sunken); color: var(--ink-muted); font-weight: 600; }
.sheet .x-err { background: var(--status-not-bg); color: var(--status-not); font-weight: 700; }
.sheet .x-warn { background: var(--status-chance-bg); color: var(--status-chance); font-weight: 700; }
/* While it turns, the sheet loses its grid and the moving cells their frames,
   so only the names and grades travel; they move above the system. */
.sheet, .sheet > span { transition: border-color 0.5s, background-color 0.5s; }
.is-morphing .sheet { border-color: transparent; }
.is-morphing .sheet > .is-kept { background-color: transparent; border-color: transparent; }
.is-morphing .sheet-box { z-index: 1; }
/* The sheet stands on its own, without the stage's card. */
.story-stage:has(.scene-morph) { overflow: visible; }

/* The system that the pieces rebuild. */
.sys {
  position: absolute;
  isolation: isolate;
  inset: clamp(12px, 4cqh, 24px);
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 2cqh, 10px);
}
.sys::before {
  content: "";
  position: absolute;
  inset: calc(-1 * clamp(12px, 4cqh, 24px));
  border-radius: 20px;
  box-shadow: var(--shadow-raised);
  background: var(--surface);
  opacity: var(--t2, 0);
  z-index: -1;
}
.sys > *, .sys-row > * { will-change: transform, opacity; }
.sys-bar { display: flex; align-items: center; gap: 10px; }
.sys-name { color: var(--gold); font-size: 1.25em; } /* gold, as in the product logo (Avi, 24.11.2026) */
.sys-bar .sys-sub { margin-inline-start: auto; color: var(--ink-muted); font-size: 0.85em; }
.sys-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(6px, 2cqh, 10px); }
.sys-kpi {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(4px, 1.6cqh, 10px) 12px;
}
.sys-kpi b { display: block; font-size: 1.5em; line-height: 1.1; }
.sys-kpi span { font-size: 0.8em; color: var(--ink-muted); }
/* Expected to be eligible: soft green (Avi, 24.11.2026). */
.sys-kpi.is-exp { background: var(--grade-pass); border-color: color-mix(in srgb, var(--grade-pass-ink) 30%, transparent); }
.sys-kpi.is-exp b, .sys-kpi.is-exp span { color: var(--grade-pass-ink); }
.sys-kpi.is-near b { color: var(--status-chance); }
.sys-kpi.is-gap b { color: var(--status-not); }
.sys-table {
  flex: 1;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 4px;
  /* The frame fades in as the pieces land (--t2 runs 0 to 1). */
  background: color-mix(in srgb, var(--surface-raised) calc(var(--t2, 0) * 100%), transparent);
  border: 1px solid color-mix(in srgb, var(--line) calc(var(--t2, 0) * 100%), transparent);
  border-radius: 12px;
  padding: 6px;
}
.sys-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 0.55fr)) minmax(0, 1.3fr);
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: 8px;
}
.sys-row:not(.sys-head):nth-child(even) { background: color-mix(in srgb, var(--surface) calc(var(--t2, 0) * 100%), transparent); }
.sys-head { font-size: 0.78em; font-weight: 700; color: var(--ink-muted); }
.sys-row > :not(:first-child) { justify-self: center; }
.sys-row > span:first-child { font-weight: 600; }
.sys-row i {
  font-style: normal;
  font-weight: 700;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9em;
}
.verdict {
  font-size: 0.82em;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.v-exp { background: var(--status-expected-bg); color: var(--status-expected); }
.v-near { background: var(--status-chance-bg); color: var(--status-chance); }
.v-gap { background: var(--status-not-bg); color: var(--status-not); }
.v-open { background: var(--status-open-bg); color: var(--status-open); }
@container (max-width: 460px) {
  .sys-row { grid-template-columns: minmax(0, 1.25fr) repeat(4, 2.2em) minmax(0, 1.1fr); gap: 3px; padding: 0 4px; }
  .sys-row > span:first-child { white-space: nowrap; font-size: 0.85em; }
  .sys-head > span { white-space: nowrap; overflow: hidden; }
  .verdict { font-size: 0.7em; padding: 2px 6px; }
  .sys-head { font-size: 0.64em; }
  .sys-row i { width: 1.6em; height: 1.6em; }
}
/* A more premium panel (Avi, 24.11.2026): white with a fine frame, a deep soft
   shadow and a thin gold line along the top; large light numbers; the table
   with fine row lines instead of stripes. */
.sys::before {
  background: var(--surface-raised);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 22px;
  box-shadow: inset 0 2px 0 var(--gold), 0 28px 56px -28px color-mix(in srgb, var(--ink) 30%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--ink) 8%, transparent);
}
.sys-name { font-weight: 600; letter-spacing: 0.01em; }
.sys-bar .sys-sub { font-size: 0.8em; letter-spacing: 0.02em; }
.sys-kpi { border-radius: 14px; border-color: color-mix(in srgb, var(--line) 70%, transparent); padding: clamp(6px, 2cqh, 12px) 14px; }
.sys-kpi b { font-size: 1.9em; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.sys-kpi span { font-size: 0.76em; letter-spacing: 0.01em; }
.sys-table { background: transparent; border-color: transparent; padding: 0 2px; gap: 0; }
.sys-row { border-radius: 0; border-bottom: 1px solid color-mix(in srgb, var(--line) calc(var(--t2, 0) * 70%), transparent); }
.sys-row:last-child { border-bottom: 0; }
.sys-row:not(.sys-head):nth-child(even) { background: transparent; }
.sys-head { font-weight: 500; font-size: 0.74em; letter-spacing: 0.02em; }
/* Full subject names (Avi, 24.11.2026); short ones only on a narrow panel. */
.sys-head .abbr { display: none; }
@container (max-width: 460px) { .sys-head .full { display: none; } .sys-head .abbr { display: inline; } }
.sys-row > span:first-child { font-weight: 500; }
.sys-row i { width: 1.6em; height: 1.6em; font-weight: 600; font-size: 0.82em; }
.verdict { font-weight: 600; font-size: 0.78em; padding: 3px 11px; }
/* A narrow panel (phones), again after the premium rules above, which would
   otherwise undo it: the badges smaller so they never run over the marks. */
@container (max-width: 460px) {
  /* The rows share the table's columns (subgrid), and the last column is as
     wide as the longest badge, so every row lines up and no badge overlaps. */
  .sys-table { grid-template-columns: minmax(0, 1fr) repeat(4, 1.9em) max-content; }
  .sys-row { grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: 3px; padding: 0 2px; }
  .sys-row > span:first-child { overflow: hidden; text-overflow: ellipsis; }
  .sys-head { font-size: 0.64em; }
  .sys-head > span:not(:first-child):not(:last-child) { justify-self: stretch; text-align: center; overflow: hidden; }
  .verdict { font-size: 0.68em; padding: 2px 6px; }
  .sys-row > :last-child { justify-self: end; }
}

/* Once built, a gold light passes over the system, once. */
.sys::after {
  content: "";
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: 30%;
  background: linear-gradient(to left, transparent, var(--gold-hairline), transparent);
  opacity: 0;
  pointer-events: none;
}
.scene-morph.is-built .sys::after { animation: sys-sweep 1.2s var(--ease-out) 1; }
@keyframes sys-sweep { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(-340%); } }

/* ---- Scene: insights ---- */
.bars { flex: 1; display: grid; align-content: center; gap: clamp(12px, 7cqh, 36px); }
.bar { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 2.2em; align-items: center; gap: 10px; }
.bar-label { font-weight: 600; }
.bar-track { height: clamp(12px, 6cqh, 28px); border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; }
.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--status-eligible);
  transition: width 1.1s var(--ease-out);
  transition-delay: calc(0.2s + var(--i, 0) * 0.18s);
}
.bar-fill.is-near { background: var(--primary); }
.bar-fill.is-gap { background: var(--status-chance); }
.bar-num { font-weight: 700; font-size: 1.5em; text-align: end; }
.is-on .bar-fill { width: var(--to); }
.insight {
  margin: 0;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 10px;
  border-inline-start: 4px solid var(--status-chance);
  background: var(--status-chance-bg);
  color: var(--ink);
  font-weight: 600;
  max-width: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  transition-delay: 1.1s;
}
.insight b { color: var(--status-chance); font-size: 1.2em; }
.is-on .insight { opacity: 1; transform: none; }

/* ---- Scenes: actions, tasks ---- */
.acts, .tasks { flex: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: minmax(0, 1fr); gap: clamp(6px, 2.4cqh, 12px); font-size: 1.08em; }
.acts li, .tasks li {
  display: grid;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
  transition-delay: calc(0.15s + var(--i, 0) * 0.14s);
}
.acts li { grid-template-columns: 1.6em minmax(0, 1fr) auto; }
.acts li > span:nth-child(2), .tasks li > span:first-child { font-weight: 600; }
.cnt, .role {
  font-size: 0.85em;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  white-space: nowrap;
}
.box {
  width: 1.5em;
  height: 1.5em;
  border: 2px solid var(--line-strong);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: background-color 0.3s, border-color 0.3s;
  transition-delay: 1.1s;
}
.box b { color: var(--on-primary); font-size: 0.9em; opacity: 0; transform: scale(0.4); transition: opacity 0.3s, transform 0.3s var(--ease-out); transition-delay: 1.2s; }
.is-on .acts li, .is-on .tasks li { opacity: 1; transform: none; }
.is-on .box:has(b) { background: var(--primary); border-color: var(--primary); }
.is-on .box b { opacity: 1; transform: none; }
.tasks li { grid-template-columns: minmax(0, 1fr) auto 3.4em; }
.due { color: var(--ink-muted); font-size: 0.9em; text-align: end; }

/* ---- Scene: explanation of one result ---- */
.ex { flex: 1; display: grid; align-content: center; gap: clamp(6px, 2.4cqh, 14px); }
.ex-row {
  display: grid;
  grid-template-columns: 2.2em minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-bottom: clamp(8px, 3cqh, 14px);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transition: opacity 0.4s;
  transition-delay: calc(0.15s + var(--i, 0) * 0.2s);
}
.ex-row .lc-ico { width: 2.2em; height: 2.2em; }
/* The student and the verdict, then each subject with its reason. */
.ex-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ex-name { font-weight: 700; font-size: 1.15em; }
.ex-verdict {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--status-chance-bg);
  color: var(--status-chance);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  transition-delay: 1.3s;
}
.is-on .ex-row, .is-on .ex-verdict { opacity: 1; transform: none; }

/* ---- Scene (הישגים): files come in ---- */
.files { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 3cqh, 14px); }
.file {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: clamp(8px, 3cqh, 14px) 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-raised);
  font-size: 0.82em;
  text-align: center;
  opacity: 0;
}
.file-ico {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 3.2em;
  border-radius: 6px 14px 6px 6px;
  background: var(--surface-sunken);
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 0.85em;
  color: var(--ink-muted);
}
.scene-files.is-on .file { animation: file-in 0.7s var(--ease-out) both; animation-delay: calc(0.1s + var(--i, 0) * 0.25s); }
@keyframes file-in {
  from { opacity: 0; transform: translateY(-24px) rotate(-3deg); }
  60% { opacity: 1; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}
.intake {
  flex: 1;
  display: grid;
  align-content: center;
  gap: clamp(6px, 2.4cqh, 12px);
  padding: clamp(10px, 4cqh, 18px);
  border: 2px dashed var(--primary);
  border-radius: 16px;
  background: var(--primary-soft);
}
.intake-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; color: var(--primary); }
.intake-bar { height: 10px; border-radius: var(--radius-pill); background: var(--surface-raised); overflow: hidden; }
.intake-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--primary); }
.scene-files.is-on .intake-bar span { animation: grow-x 1.6s 0.5s var(--ease-out) both; }
@keyframes grow-x { from { width: 0; } }
.intake ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.intake li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 0.9em; }
.intake li i { font-style: normal; font-weight: 700; width: 1.5em; height: 1.5em; border-radius: 50%; display: grid; place-items: center; }
.intake li em { font-style: normal; color: var(--ink-muted); font-size: 0.9em; }
.scene-files.is-on .intake li { animation: lc-row 0.4s both; animation-delay: calc(1.3s + var(--i, 0) * 0.25s); }

/* ---- Scene (הישגים): the live card ---- */
.scene-card { align-items: center; justify-content: center; }
.scene-card .live-card { width: min(100%, 480px); font-size: clamp(10px, 3.2cqh, 15px); padding: clamp(12px, 4cqh, 24px); box-shadow: none; }
.scene-card .lc-rows li, .scene-card .lc-meter span, .scene-card .lc-verdict { animation: none; }
.motion .scene-card.is-live.is-on .lc-rows li { animation: lc-row 0.45s both; animation-play-state: running; }
.motion .scene-card.is-live.is-on .lc-rows li:nth-child(1) { animation-delay: 0.4s; }
.motion .scene-card.is-live.is-on .lc-rows li:nth-child(2) { animation-delay: 0.8s; }
.motion .scene-card.is-live.is-on .lc-rows li:nth-child(3) { animation-delay: 1.2s; }
.motion .scene-card.is-live.is-on .lc-rows li:nth-child(4) { animation-delay: 1.6s; }
.motion .scene-card.is-live.is-on .lc-meter span { animation: lc-fill 1.8s 0.2s var(--ease-out) both; animation-play-state: running; }
.motion .scene-card.is-live.is-on .lc-verdict { animation: lc-pop 0.5s 2.1s both; animation-play-state: running; }
@container (max-height: 400px) {
  .scene-card .lc-rows li:nth-child(n+4), .scene-card .lc-source { display: none; }
  .scene-card .lc-rows li { padding-block: 6px; }
}

/* ---- Scene (הישגים): upcoming dates on a line ---- */
.timeline { flex: 1; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: center; }
.timeline::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: calc(50% - 1px);
  height: 2px;
  background: var(--line-strong);
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-out);
}
.scene-dates.is-on .timeline::before { transform: none; }
.tl-item { position: relative; display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; gap: 10px; text-align: center; }
.tl-top { align-self: end; display: grid; justify-items: center; gap: 10px; }
.tl-date { font-weight: 700; font-size: 1.3em; }
/* How urgent each date is: the labels drop in after the line is drawn. */
.tl-urg {
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95em;
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  transition-delay: calc(1.1s + var(--i, 0) * 0.25s);
}
.tl-urg.is-hot { background: var(--status-not-bg); color: var(--status-not); }
.tl-urg.is-soon { background: var(--status-chance-bg); color: var(--status-chance); }
.tl-urg.is-later { background: var(--status-open-bg); color: var(--status-open); }
.scene-dates.is-on .tl-urg { opacity: 1; transform: none; }
/* The nearest date's dot pulses a few times to draw the eye. */
.tl-item:first-child .tl-dot { position: relative; }
.tl-item:first-child .tl-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--status-not);
  opacity: 0;
}
.motion .scene-dates.is-live.is-on .tl-item:first-child .tl-dot::after { animation: tl-pulse 1.4s 1.6s ease-out 3; }
@keyframes tl-pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
.tl-dot {
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
  transform: scale(0);
  transition: transform 0.4s var(--ease-out);
  transition-delay: calc(0.5s + var(--i, 0) * 0.25s);
}
.tl-card {
  align-self: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-raised);
  font-size: 1em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  transition-delay: calc(0.7s + var(--i, 0) * 0.25s);
}
.tl-card b { display: block; }
.tl-card span { color: var(--ink-muted); }
.tl-card span { display: block; }
/* What the system says to do: a clear instruction that appears after each item. */
.tl-card .tl-do {
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.35s, transform 0.45s var(--ease-out);
  transition-delay: calc(1.5s + var(--i, 0) * 0.35s);
}
.scene-dates.is-on .tl-do { opacity: 1; transform: none; }
.scene-dates.is-on .tl-dot { transform: none; }
.scene-dates.is-on .tl-card { opacity: 1; transform: none; }

/* ---- Scene (הישגים): outlook by class ---- */
.cols { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 5cqw, 36px); align-items: end; padding-top: 8px; border-bottom: 2px solid var(--line-strong); }
.col-group { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-items: end; height: 100%; }
.col { position: relative; border-radius: 6px 6px 0 0; background: var(--status-eligible); height: 0; transition: height 1s var(--ease-out); transition-delay: calc(0.2s + var(--i, 0) * 0.15s); }
.col.is-near { background: var(--status-chance); }
/* Soft fills with a stronger top edge (Avi, 24.11.2026: «צבעים רכים יותר»). */
.col.is-one { background: var(--status-chance-bg); box-shadow: inset 0 3px 0 var(--status-chance); }
.col.is-two { background: var(--status-none-bg); box-shadow: inset 0 3px 0 var(--status-none); }
.col b { position: absolute; inset-inline: 0; top: -1.5em; text-align: center; font-size: 0.9em; opacity: 0; transition: opacity 0.3s; transition-delay: 1.1s; }
.scene-classes.is-on .col { height: var(--h); }
.scene-classes.is-on .col b { opacity: 1; }
.col-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 5cqw, 36px); text-align: center; font-weight: 600; }
.legend { display: flex; gap: 16px; font-size: 0.85em; color: var(--ink-muted); }
.legend span::before { content: ""; display: inline-block; width: 0.8em; height: 0.8em; border-radius: 2px; margin-inline-end: 6px; background: var(--status-eligible); vertical-align: -0.05em; }
.legend span.is-near::before { background: var(--status-chance); }
.legend span.is-one::before { background: var(--status-chance-bg); box-shadow: inset 0 0 0 1.5px var(--status-chance); }
.legend span.is-two::before { background: var(--status-none-bg); box-shadow: inset 0 0 0 1.5px var(--status-none); }
/* After the bars grow, one line says what to look at. */
.col-note { font-size: 0.9em; color: var(--ink-muted); opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--ease-out); transition-delay: 1.5s; }
.scene-classes.is-on .col-note { opacity: 1; transform: none; }
.col-note b { color: var(--ink); }

/* ---- Scene: the forms grid ----
   Students in rows, forms in columns, each cell its state; the cells come in
   one after another, then one cell is picked and its actions open under the grid. */
.mini-grid {
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
}
.mini-grid > span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.3em;
  padding: 0 0.5em;
  border-top: 1px solid var(--line);
  border-inline-start: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.35s var(--ease-out), background-color 0.4s, box-shadow 0.4s;
  transition-delay: calc(0.15s + var(--i, 0) * 0.035s);
}
.mini-grid > .n { justify-content: flex-start; font-weight: 600; border-inline-start: 0; }
.mini-grid > .h { border-top: 0; background: var(--surface-sunken); color: var(--ink-muted); font-weight: 600; font-size: 0.9em; }
.mini-grid > .ok { color: var(--ink); }
.mini-grid > .low { background: var(--grade-fail); color: var(--grade-fail-ink); font-weight: 700; }
.mini-grid > .miss { color: var(--ink-muted); }
.mini-grid > .open { background: var(--status-open-bg); color: var(--status-open); font-size: 0.85em; font-weight: 600; }
.scene-grid.is-on .mini-grid > span { opacity: 1; }
/* A narrow stage: short form names, room for the student names. */
.mini-grid .abbr { display: none; }
@container (max-width: 480px) {
  .mini-grid { grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr)); font-size: 0.85em; }
  .mini-grid > span { padding: 0 0.3em; }
  .mini-grid .full { display: none; }
  .mini-grid .abbr { display: inline; }
}
.scene-grid.is-on .mini-grid > .is-pick { box-shadow: inset 0 0 0 2px var(--primary); transition-delay: calc(0.15s + var(--i, 0) * 0.035s), 1.6s, 1.6s; }
.grid-pop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 0.7em 0.9em;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--primary);
  border-radius: 10px;
  background: var(--surface);
  font-size: 0.9em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
  transition-delay: 1.9s;
}
.scene-grid.is-on .grid-pop { opacity: 1; transform: none; }
.grid-acts { display: flex; gap: 6px; }
.grid-acts > span {
  padding: 0.25em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
}

/* Home product band: the product logo on a large white panel. */
/* A smaller card for the logo (Avi, 24.11.2026). */
.logo-panel {
  background: var(--logo-white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 56px);
  display: grid;
  place-items: center;
  justify-self: center;
  width: min(100%, 440px);
}
.logo-panel img { width: 100%; max-width: 320px; height: auto; }

/* ---------- הישגים, premium pass (Avi, 24.11.2026) ----------
   Every illustration card speaks the system panel's language: a fine frame,
   a deep soft shadow, a thin gold line along the top, rounder corners; inside,
   lighter type and quieter marks. */
.story-stage {
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: 24px;
  box-shadow: inset 0 2px 0 var(--gold), 0 32px 64px -32px color-mix(in srgb, var(--ink) 28%, transparent), 0 2px 6px -2px color-mix(in srgb, var(--ink) 8%, transparent);
}
.scene { padding: clamp(18px, 6cqh, 36px); }
.scene-title { font-weight: 500; font-size: 1.08em; letter-spacing: 0.01em; color: var(--ink-muted); }
/* The student card */
.scene-card .live-card { border-color: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 18px; }
.lc-name { font-weight: 600; }
.lc-verdict, .lc-tag { font-weight: 600; }
.lc-what { font-weight: 500; }
.lc-ico { font-weight: 600; }
.lc-rows li { border-top-color: color-mix(in srgb, var(--line) 70%, transparent); }
/* The explanation */
.ex-name { font-weight: 600; }
.ex-verdict { font-weight: 600; }
.ex-row { border-bottom-color: color-mix(in srgb, var(--line) 70%, transparent); }
.ex-row b { font-weight: 600; }
/* What to do now */
.tl-card { border-color: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 14px; }
.tl-card b { font-weight: 600; }
.tl-date { font-weight: 500; letter-spacing: 0.02em; }
.tl-urg, .tl-card .tl-do { font-weight: 600; }
/* Who is close */
.col-labels { font-weight: 500; }
.col b { font-weight: 600; }
/* The forms table */
.mini-grid { border-color: color-mix(in srgb, var(--line) 70%, transparent); border-radius: 14px; font-size: 0.95em; }
.mini-grid > span { border-color: color-mix(in srgb, var(--line) 60%, transparent); }
.mini-grid > .h { background: var(--surface); font-weight: 500; letter-spacing: 0.01em; }
.mini-grid > .n { font-weight: 500; }
.mini-grid > .low { font-weight: 600; }
.grid-pop { border-radius: 14px; border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.grid-acts > span { font-weight: 600; }
/* A narrow stage (phones): smaller dates and cards so all three fit. */
@container (max-width: 480px) {
  .scene-dates { padding: 16px 10px; }
  .scene-dates .scene-title { padding-inline: 6px; }
  /* The line sits under the dates, not in the middle of the panel: the dates
     get a fixed row and the cards hang under the line, so no empty half above. */
  .timeline { gap: 6px; flex: 0 0 auto; margin-top: clamp(16px, 6cqh, 32px); align-content: start; }
  .tl-item { gap: 6px; grid-template-rows: 3.6em auto auto; }
  .timeline::before { top: calc(3.6em + 6px + 0.55em - 1px); }
  .tl-date { font-size: 1em; }
  .tl-urg { font-size: 0.78em; padding: 2px 8px; }
  .tl-card { font-size: 0.78em; padding: 6px 6px; }
  .tl-card .tl-do { padding: 3px 6px; margin-top: 6px; }
}
/* Left to right (English): the same effects, mirrored. */
[dir="ltr"] .lc-meter span { background: linear-gradient(to right, var(--primary), var(--status-eligible)); }
[dir="ltr"] .timeline::before { transform-origin: left; }
[dir="ltr"] .sys::after { background: linear-gradient(to right, transparent, var(--gold-hairline), transparent); }
[dir="ltr"] .scene-morph.is-built .sys::after { animation-name: sys-sweep-ltr; }
@keyframes sys-sweep-ltr { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(340%); } }
[dir="ltr"] .hero-shot { transform: perspective(1800px) rotateY(-10deg) rotateX(4deg); }
@keyframes shot-in-ltr { from { transform: perspective(1800px) rotateY(-18deg) rotateX(8deg) translateY(24px); } }
[dir="ltr"].motion .hero-shot, .motion [dir="ltr"] .hero-shot { animation-name: shot-in-ltr; }

/* The note under the story */
.story-note { font-size: 0.8rem; letter-spacing: 0.01em; }

/* ---- 404: the ways back, in a row under the words. */
/* The white band fills the window down to the footer, with the words in its middle. */
body:has(.hero-notfound) { min-height: 100vh; display: flex; flex-direction: column; }
body:has(.hero-notfound) main { flex: 1; display: flex; flex-direction: column; }
.hero-notfound { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-notfound .container { width: 100%; }
.hero-notfound .gold-rule { margin-inline: 0; }
.hero-notfound h1 { margin-bottom: 0; }
.notfound-links { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-8); }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, .flow-text { transition: none !important; animation: none !important; }
  .scene { transform: none; }
}
