/* ==========================================================================
   TechRS — home.css · the homepage (design spec v4 §8 "Home")
   --------------------------------------------------------------------------
   Built on core.css components (.section, .section-header, .card, .panel-ink,
   .window, .btn*, .chip, .eyebrow, .idx, .checklist) and field.css hosts.
   Everything here is home-* scoped; logical properties only (the Hebrew page
   mirrors for free). Shared partials (cta_band, finding_card, intel_stats)
   are styled by site.css; this file only places them.

   Sections, in page order
     1  .home-hero      hero on data-field="hero": the H1 is two lines set in
                        paper cut-outs (per-line boxes via box-decoration-break)
     2  .home-engage    split card pulled up over the hero (z-index 1); ink
                        half on data-field="panel" holds the typed console
     3  .home-services  2×2 stretched-link cards
     4  .home-zero      ink section on a panel field: paper card + giant "0"
     5  .home-why       four hairline columns
     6  .home-process   5-step timeline, teal node rings on a hairline track
     7  .home-report    copy + the sample finding on a field "desk"
     8  .home-bounty    profile ink band with a small field (rendered only
                        when the profile switch is on, docs/site-editing.md)
     9  .home-intel     intel stats (partial) + KEV hairline list
     10 .home-faq       ink heading panel + numbered <details> accordion
   Hero entrance hook (end of file): [data-intro-item="1..7"] hide while
   html[data-intro="play"|"run"], stagger in on data-intro="in"; without the
   intro they rise in once on first render (@starting-style, so removing
   data-intro after the intro never replays it). Off with reduced motion.
   ========================================================================== */

/* ─────────────────────────────────────────────
   Shared bits
   ───────────────────────────────────────────── */
.home-h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.25rem + 2.5vw, 3.5rem);
  font-weight: var(--weight-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.home-head--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 48px;
  max-inline-size: none;
}
.home-head-main {
  display: flex;
  flex: 1 1 30rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-inline-size: 780px;
}
.home-head--split > .text-link {
  margin-block-end: 0.6em;
}
.home-head-aside {
  flex: 0 1 25rem;
  margin-block-end: 0.35em;
}
/* A section header set as one paper cut-out over a field */
.home-head--cut {
  --cut-pad: clamp(16px, 2.2vw, 32px);
  inline-size: fit-content;
  max-inline-size: calc(780px + 2 * var(--cut-pad));
  margin-inline-start: calc(-1 * var(--cut-pad));
  padding: var(--cut-pad);
  background: var(--bg-page);
}
/* Reveal stagger for card rows (core.css reads --reveal-i) */
.home-services-grid > :nth-child(2),
.home-why-grid > :nth-child(2) { --reveal-i: 1; }
.home-services-grid > :nth-child(3),
.home-why-grid > :nth-child(3) { --reveal-i: 2; }
.home-services-grid > :nth-child(4),
.home-why-grid > :nth-child(4) { --reveal-i: 3; }

/* ─────────────────────────────────────────────
   1. Hero — cut-outs over the signal field
   ───────────────────────────────────────────── */
.home-hero {
  --home-overlap: 80px;              /* how far the engagement card climbs in */
  --cut-x: clamp(12px, 0.35rem + 1.3vw, 28px); /* cut-out padding, inner side */
  /* outer side (toward the viewport edge): wide screens keep a deliberate
     margin of field; below 1360px the boxes run to the edge instead of
     leaving a thin strip of ticks there */
  --cut-outer: max(var(--container-pad), (100vw - var(--container-max)) / 2);
  /* the type scale, held down on short laptop screens (1366×768) so the
     composition still fits the first screen; the 6rem floor keeps the cap
     out of the way of text zoom (browser zoom, the a11y toolbar) */
  --hero-fs: min(var(--step-hero), max(13vh, 6rem));
  --body-w: calc(31.5rem + var(--cut-x)); /* lead block, inside the container */
  --cut-k: 0.15;                     /* glyph box overflow of a 0.98 line, ×fs */
  --cut-rise: calc(var(--hero-fs) * var(--cut-k));
  display: flex;
  flex-direction: column;
  min-block-size: max(640px, 86svh);
  padding-block: clamp(28px, 5vh, 72px) calc(var(--home-overlap) + clamp(32px, 4.5vh, 56px));
}
:root:lang(he) .home-hero {
  --cut-k: 0.225;                    /* Heebo's taller glyph box */
}
@media (min-width: 1360px) {
  .home-hero {
    --cut-outer: var(--cut-x);
  }
}
.home-hero-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
}

/* Block A: chip tab + line A */
.home-hero-chip {
  inline-size: fit-content;
  max-inline-size: calc(100% + var(--cut-outer));
  margin-inline-start: calc(-1 * var(--cut-outer));
  padding-block: clamp(12px, 1.2vw, 16px) clamp(10px, 0.9vw, 13px);
  padding-inline: var(--cut-outer) var(--cut-x);
  background: var(--bg-page);
}
.home-hero-chip .chip {
  position: relative;               /* paints above the line cut-outs */
  white-space: normal;
}

.home-hero-title {
  font-size: var(--hero-fs);
  font-weight: var(--weight-display);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  /* the line cut-outs overflow the line box by --cut-rise; this keeps the
     line A box flush under the chip tab instead of overlapping it */
  margin-block-start: var(--cut-rise);
}
.home-hero-line {
  display: block;
}
.home-hero-line--a {
  margin-inline-start: calc(-1 * var(--cut-outer));
}
/* Hebrew line A runs long: hold it to block A's columns so the two blocks
   keep their diagonal instead of merging into one slab (8 of 12 still sets
   it on one line, so Hebrew gets the same three-line rhythm as English) */
:root:lang(he) .home-hero-line--a {
  max-inline-size: calc(8 / 12 * 100% + var(--cut-outer));
}
@media (max-width: 1023.98px) {
  :root:lang(he) .home-hero-line--a {
    max-inline-size: calc(9 / 12 * 100% + var(--cut-outer));
  }
}
@media (max-width: 639.98px) {
  :root:lang(he) .home-hero-line--a {
    max-inline-size: none;
  }
}
/* Block B: end side, lower, right-aligned (left in RTL) */
.home-hero-line--b {
  max-inline-size: calc(7 / 12 * 100% + var(--cut-outer));
  margin-inline: auto calc(-1 * var(--cut-outer));
  text-align: end;
}
/* One paper box per rendered line: the field shows between the steps */
.home-cut {
  padding-block: 0.03em;
  background: var(--bg-page);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.home-hero-line--a .home-cut {
  padding-inline: var(--cut-outer) var(--cut-x);
}
.home-hero-line--b .home-cut {
  padding-inline: var(--cut-x) var(--cut-outer);
}
.home-cut-text {
  position: relative;               /* text above every box (no clipping) */
}

/* Block B body: lead + actions, a separate cut-out under the headline (the
   field shows in the gap, so its edges never have to line up with line B) */
.home-hero-body {
  inline-size: min(100% + var(--cut-outer), var(--body-w) + var(--cut-outer));
  margin-block: calc(var(--cut-rise) + clamp(12px, 1.6vw, 24px)) clamp(24px, 3.5vh, 48px);
  margin-inline: auto calc(-1 * var(--cut-outer));
  background: var(--bg-page);
}
.home-hero-body > * {
  padding-inline: var(--cut-x) var(--cut-outer);
}
.home-hero-lead {
  max-inline-size: calc(44ch + var(--cut-x) + var(--cut-outer)); /* 44ch measure */
  padding-block-start: clamp(14px, 1.4vw, 20px);
  color: var(--text-secondary);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.6;
  text-wrap: pretty;
}
.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-block: clamp(18px, 1.6vw, 24px) clamp(14px, 1.3vw, 18px);
}

/* Hero foot (start side, bottom): proof points over the methodology strip,
   two stepped cut-outs like a legend on a drawing */
.home-hero-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-block-start: auto;
  margin-inline-start: calc(-1 * var(--cut-outer));
}
.home-hero-foot > * {
  max-inline-size: calc(100% + var(--cut-outer));
  margin-block-end: -1px;           /* seamless join between the steps */
  padding-inline: var(--cut-outer) var(--cut-x);
  background: var(--bg-page);
}
.home-hero-foot > :last-child {
  margin-block-end: 0;
}
.home-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-block: 12px 7px;
  color: var(--text-secondary);
  font-size: var(--step--1);
  line-height: 1.4;
}
.home-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.home-proof .icon {
  inline-size: 1em;
  block-size: 1em;
  color: var(--accent-text);
}
.home-standards-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-block: 9px 13px;
}
.home-standards-label {
  color: var(--text-primary);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: var(--eyebrow-case);
}
/* Every item carries a leading divider; the list is pulled back by one
   divider + gap and clipped, so no row ever starts with a dangling rule */
.home-standards-clip {
  min-inline-size: 0;
  overflow: hidden;
}
.home-standards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin-inline-start: -13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.home-standards li {
  padding-inline: 12px;
  border-inline-start: 1px solid var(--border-strong);
  white-space: nowrap;
}

/* Desktop: the legend moves up beside the lead block (start column, bottom
   edges aligned), filling the corner under line A instead of adding a row,
   so the whole hero fits the first screen. Spare height (tall screens)
   splits above and below the composition. */
@media (min-width: 1024px) {
  .home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--body-w);
    align-content: center;
    column-gap: clamp(24px, 3vw, 48px);
  }
  .home-hero-chip,
  .home-hero-title {
    grid-column: 1 / -1;
  }
  .home-hero-body,
  .home-hero-foot {
    grid-row: 3;
    align-self: end;
  }
  .home-hero-body {
    grid-column: 2;
    margin-block-end: 0;
  }
  .home-hero-foot {
    grid-column: 1;
    margin-block-start: 0;
  }
  .home-hero-foot > * {
    max-inline-size: 100%;
  }
  .home-proof {
    flex-direction: column;
  }
}

@media (max-width: 1023.98px) {
  .home-hero {
    --home-overlap: 56px;
  }
  .home-hero-line--b {
    max-inline-size: calc(9 / 12 * 100% + var(--cut-outer));
  }
}
@media (max-width: 639.98px) {
  .home-hero {
    --home-overlap: 40px;
    min-block-size: 0;
    padding-block-start: 28px;
  }
  .home-hero-line--b {
    max-inline-size: none;
  }
  .home-hero-body {
    inline-size: auto;
    margin-inline-start: calc(-1 * var(--cut-outer));
  }
  .home-hero-body > * {
    padding-inline: var(--cut-outer);
  }
  .home-hero-actions .btn {
    flex: 1 1 auto;
  }
  .home-proof {
    flex-direction: column;
    padding-block-end: 12px;
  }
  .home-standards {
    margin-inline-start: -10px;
  }
  .home-standards li {
    padding-inline: 9px;
  }
}

/* ─────────────────────────────────────────────
   2. Engagement panel — pulled up over the hero
   ───────────────────────────────────────────── */
.home-engage {
  position: relative;
  z-index: 1;                       /* above the hero's isolated field */
  margin-block-start: calc(-1 * var(--home-overlap, 80px));
  /* paper between the card and the services field below */
  padding-block-end: clamp(56px, 8vw, 120px);
}
@media (max-width: 1023.98px) {
  .home-engage { --home-overlap: 56px; }
}
@media (max-width: 639.98px) {
  .home-engage { --home-overlap: 40px; }
}
.home-engage-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  border-radius: var(--radius-lg);
}
.home-engage-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
  padding: clamp(28px, 4.6vw, 68px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-inline-end: 0;
  border-start-start-radius: var(--radius-lg);
  border-end-start-radius: var(--radius-lg);
}
.home-engage-text {
  max-inline-size: 46ch;
  color: var(--text-secondary);
  font-size: var(--step-0);
  line-height: 1.65;
}
.home-engage-copy .btn {
  margin-block-start: 8px;
}
.home-engage-stage {
  display: grid;
  place-items: center;
  padding: clamp(28px, 4.4vw, 64px) clamp(20px, 4vw, 56px);
  background: var(--ink-panel);
  border: 1px solid var(--ink-edge);
  border-start-end-radius: var(--radius-lg);
  border-end-end-radius: var(--radius-lg);
}

/* The engagement console (.window.window--ink) */
.home-console {
  inline-size: 100%;
  max-inline-size: 540px;
  text-align: start;                /* the console is dir="ltr" in both languages */
}
.home-console .window-title {
  color: var(--text-muted);
}
.home-console-body {
  padding: 18px 20px 10px;
  color: var(--on-ink-2);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.8;
}
.home-console .ln {
  padding-inline-start: 1.25em;
  text-indent: -1.25em;             /* wrapped lines hang under the text */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.home-console .ln-cmd { color: var(--on-ink); }
.home-console .ln-prompt { color: var(--on-ink-accent); }
.home-console .ln-dim { color: var(--on-ink-muted); }
.home-console .ln-crit { color: var(--on-ink-danger); font-weight: 600; }
.home-console .ln-high { color: var(--on-ink-sev-high); font-weight: 600; }
.home-console .ln-med { color: var(--on-ink-warn); }
.home-console .ln-ok { color: var(--on-ink-ok); }
.home-console .ln-caret {
  display: inline-block;
  inline-size: 0.55em;
  block-size: 1.05em;
  vertical-align: -0.18em;
  background: var(--on-ink-accent);
  animation: home-caret 1.1s steps(1, end) infinite;
}
@keyframes home-caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
/* site.js types the lines in once the console is on screen */
.home-console.is-animating .ln {
  opacity: 0;
}
.home-console.is-animating .ln.is-shown {
  opacity: 1;
  transition: opacity 0.18s linear;
}
.home-console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 14px;
  border-block-start: 1px solid var(--border-subtle);
}
.home-sev {
  --sev: var(--sev-info);
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--sev) 55%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--sev) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.home-sev--critical { --sev: var(--sev-critical); color: var(--sev-critical-text); }
.home-sev--high { --sev: var(--sev-high); color: var(--sev-high-text); }
.home-sev--medium { --sev: var(--sev-medium); color: var(--sev-medium-text); }
.home-console-meta {
  margin-inline-start: auto;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

@media (max-width: 899.98px) {
  .home-engage-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-engage-copy {
    border-inline-end: 1px solid var(--border-subtle);
    border-block-end: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .home-engage-stage {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
}
@media (max-width: 479.98px) {
  .home-console-body {
    padding-inline: 14px;
    font-size: 0.7rem;
  }
  .home-console-foot {
    padding-inline: 14px;
  }
  /* too narrow for one status line: the meta gets its own row under the
     pills instead of wrapping as a stray right-aligned fragment */
  .home-console-meta {
    flex-basis: 100%;
    margin-inline-start: 0;
  }
}

/* ─────────────────────────────────────────────
   3. Services — 2×2 stretched-link cards
   ───────────────────────────────────────────── */
.home-services {
  padding-block: clamp(64px, 8vw, 112px);
}
.home-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;                        /* one tick cell of field between cards */
}
.home-service {
  padding: clamp(24px, 3vw, 40px);
}
/* keep the card's hover transitions alongside the reveal (core.css) */
.reveal-ready .home-service[data-reveal] {
  transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out),
    border-color var(--transition-fast), background-color var(--transition-fast);
  transition-delay: calc(var(--reveal-i, 0) * 70ms), calc(var(--reveal-i, 0) * 70ms), 0s, 0s;
}
.home-service-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-block-end: clamp(28px, 3.4vw, 48px);
  padding-block-end: 16px;
  border-block-end: 1px solid var(--border-subtle);
}
/* code + icon pushed to the end as one group (the code is dir="ltr", so
   it can't carry the logical auto margin itself: in Hebrew it would land
   next to the index) */
.home-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-inline-start: auto;
}
.home-service-code {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.home-service-icon {
  display: inline-flex;
  color: var(--accent-text);
}
.home-service-icon .icon {
  inline-size: 22px;
  block-size: 22px;
}
.home-service-title {
  max-inline-size: 22ch;
  font-size: var(--step-2);
  font-weight: var(--weight-display);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;               /* no "ל-" / "Web ול-API" splits */
}
.home-service-title a {
  color: var(--text-primary);
}
.home-service-text {
  max-inline-size: 54ch;
  margin-block-start: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.home-service-list {
  margin-block: 24px 32px;
}
.home-service-more {
  align-self: flex-start;
  margin-block-start: auto;
  font-size: var(--step--1);
}
.home-service:hover .home-service-more {
  color: var(--accent-text-strong);
  text-decoration-color: currentColor;
}
.home-service:hover .home-service-more .icon-fwd {
  translate: 3px 0;
}
[dir="rtl"] .home-service:hover .home-service-more .icon-fwd {
  translate: -3px 0;
}
@media (max-width: 767.98px) {
  .home-services-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Phones: the cut-outs run edge to edge, so the field shows between the
   panels instead of as thin strips down both sides */
@media (max-width: 639.98px) {
  .home-head--cut,
  .home-services-grid {
    margin-inline: calc(-1 * var(--container-pad));
  }
  .home-head--cut {
    inline-size: auto;
    max-inline-size: none;
    padding-inline: var(--container-pad);
  }
  .home-services-grid {
    gap: 18px;
  }
  .home-service {
    padding-inline: var(--container-pad);
    border-inline: 0;
    border-radius: 0;
  }
}

/* ─────────────────────────────────────────────
   4. Zero statement — ink section, paper card, giant "0"
   ───────────────────────────────────────────── */
.home-zero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-inline-size: calc(1080px + 2 * var(--container-pad));
}
.home-zero-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: clamp(28px, 4vw, 60px);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}
html[data-theme="dark"] .home-zero-card {
  border: 1px solid var(--border-subtle);
}
.home-zero-text {
  max-inline-size: 42ch;
  color: var(--text-secondary);
  line-height: 1.65;
}
.home-zero-card .btn {
  margin-block-start: 10px;
}
.home-zero-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.4vw, 48px);
  padding: clamp(28px, 4vw, 56px);
  background: var(--ink-panel);
  border: 1px dashed var(--on-ink-line-2);
  border-radius: var(--radius-sm);
}
.home-zero-num {
  flex: none;
  color: var(--on-ink);
  font-family: var(--font-display);
  font-size: clamp(10rem, 22vw, 20rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.home-zero-labels {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.6vw, 22px);
  color: var(--on-ink-2);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: var(--tracking-tight);
}
.home-zero-labels li {
  position: relative;
  padding-inline-start: 18px;
}
.home-zero-labels li::before {      /* teal caret on the highlighted label */
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block: 0.12em 0.1em;
  inline-size: 2px;
  background: var(--on-ink-accent);
  opacity: 0;
}
/* site.js cycles .is-active once it runs (static with reduced motion) */
.home-zero-labels.is-cycling li {
  color: var(--on-ink-muted);
  transition: color 0.7s var(--ease-out);
}
.home-zero-labels.is-cycling li::before {
  transition: opacity 0.7s var(--ease-out);
}
.home-zero-labels.is-cycling li.is-active {
  color: var(--on-ink);
}
.home-zero-labels.is-cycling li.is-active::before {
  opacity: 1;
}
@media (max-width: 899.98px) {
  .home-zero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 639.98px) {
  .home-zero-grid {                 /* the grid is the .container itself */
    padding-inline: 0;
  }
  .home-zero-card,
  .home-zero-stat {
    padding-inline: var(--container-pad);
    border-inline: 0;
    border-radius: 0;
  }
}
@media (max-width: 479.98px) {
  .home-zero-stat {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─────────────────────────────────────────────
   5. Why — four hairline columns, no boxes
   ───────────────────────────────────────────── */
.home-why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block-start: 1px solid var(--border-strong);
}
.home-why-item {
  /* rows shared across the columns (subgrid): a one-line title still lets
     every text start on the same line as its neighbours */
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  padding: 26px clamp(16px, 2vw, 28px) 6px;
  border-inline-start: 1px solid var(--border-subtle);
}
.home-why-item:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}
.home-why-item:last-child {
  padding-inline-end: 0;
}
.home-why-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: clamp(36px, 5vw, 64px);
}
.home-why-icon {
  display: inline-flex;
  color: var(--accent-text);
}
.home-why-icon .icon {
  inline-size: 22px;
  block-size: 22px;
}
.home-why-title {
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}
.home-why-text {
  margin-block-start: 12px;
  color: var(--text-secondary);
  font-size: var(--step--1);
  line-height: 1.65;
}
@media (max-width: 1023.98px) {
  .home-why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-why-item:nth-child(odd) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
  .home-why-item:nth-child(even) {
    padding-inline-end: 0;
  }
  .home-why-item:nth-child(n + 3) {
    margin-block-start: 28px;
    border-block-start: 1px solid var(--border-subtle);
  }
  .home-why-item:nth-child(4) {
    border-inline-start: 1px solid var(--border-subtle);
  }
}
@media (max-width: 599.98px) {
  .home-why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-why-item,
  .home-why-item:nth-child(4) {
    padding-inline: 0;
    padding-block-end: 22px;
    border-inline-start: 0;
  }
  .home-why-item + .home-why-item {
    margin-block-start: 0;
    border-block-start: 1px solid var(--border-subtle);
  }
  .home-why-top {
    margin-block-end: 22px;
  }
}

/* ─────────────────────────────────────────────
   6. Process — node rings on a hairline track
   ───────────────────────────────────────────── */
.home-steps {
  --node: 15px;
  --steps-gap: clamp(18px, 2.6vw, 36px);
  --seg: 0.36s;                     /* signal travel time per segment */
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0 var(--steps-gap);
}
.home-step {
  --i: 0;                           /* step index: times the signal */
  position: relative;
  /* rows shared across the steps (subgrid), so the texts start level even
     where a title wraps to two lines */
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  justify-items: start;
  padding-block-start: calc(var(--node) + 26px);
}
.home-step:nth-child(2) { --i: 1; }
.home-step:nth-child(3) { --i: 2; }
.home-step:nth-child(4) { --i: 3; }
.home-step:nth-child(5) { --i: 4; }
/* The track: one segment from each node to the next, so it starts and ends
   on a node (as the methodology page timeline does); on reveal the teal
   signal runs over it segment by segment */
.home-step:not(:last-child)::before,
.home-step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(var(--node) / 2);
  inline-size: calc(100% + var(--steps-gap));
  pointer-events: none;
}
.home-step:not(:last-child)::before {
  inset-block-start: calc(var(--node) / 2 - 0.5px);
  block-size: 1px;
  background: var(--border-strong);
}
.home-step:not(:last-child)::after {
  inset-block-start: calc(var(--node) / 2 - 1px);
  block-size: 2px;
  background: var(--accent);
  transform-origin: left center;
}
[dir="rtl"] .home-step::after {
  transform-origin: right center;
}
.home-step-node {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: 1;                       /* the ring covers the segment ends */
  inline-size: var(--node);
  block-size: var(--node);
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--bg-section);
}
.home-step-title {
  margin-block-start: 12px;
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: var(--tracking-tight);
}
.home-step-text {
  margin-block-start: 10px;
  color: var(--text-secondary);
  font-size: var(--step--1);
  line-height: 1.6;
}
/* Before it is revealed (site.js reveal-on-scroll): grey track, idle rings.
   The transitions live on the revealed state only, so hiding at load is
   instant and the signal never replays half-way when you arrive early. */
.reveal-ready .home-steps:not(.is-visible) .home-step::after {
  scale: 0 1;
}
.reveal-ready .home-steps:not(.is-visible) .home-step-node {
  scale: 0.55;
  border-color: var(--border-strong);
}
.reveal-ready .home-steps.is-visible .home-step::after {
  transition: scale var(--seg) linear calc(0.25s + var(--i) * var(--seg));
}
.reveal-ready .home-steps.is-visible .home-step-node {
  /* each ring lights up as the signal reaches it */
  transition: scale 0.5s var(--ease-out), border-color 0.4s var(--ease-out);
  transition-delay: calc(0.25s + var(--i) * var(--seg));
}
/* Vertical below 1024px: five columns get too narrow for the titles
   ("Reconnaissance / & / threat modeling") */
@media (max-width: 1023.98px) {
  .home-steps {
    --steps-row: 34px;
    --rail: calc(var(--node) + 22px); /* track column */
    grid-template-columns: minmax(0, 1fr);
    gap: var(--steps-row);
    padding-inline-start: var(--rail);
  }
  .home-step {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    grid-row: auto;
    padding-block-start: 0;
  }
  .home-step-node {
    inset-block-start: 1px;
    inset-inline-start: calc(-1 * var(--rail));
  }
  /* vertical segments: from this node's centre down to the next one's */
  .home-step:not(:last-child)::before,
  .home-step:not(:last-child)::after {
    inset-block-start: calc(1px + var(--node) / 2);
    inset-inline-start: calc(var(--node) / 2 - var(--rail) - 0.5px);
    inline-size: 1px;
    block-size: calc(100% + var(--steps-row));
  }
  .home-step:not(:last-child)::after {
    inset-inline-start: calc(var(--node) / 2 - var(--rail) - 1px);
    inline-size: 2px;
    transform-origin: center top;
  }
  .reveal-ready .home-steps:not(.is-visible) .home-step::after {
    scale: 1 0;
  }
  .home-step-title {
    margin-block-start: 8px;
  }
  .home-step-text {
    max-inline-size: 60ch;
  }
}

/* ─────────────────────────────────────────────
   7. Report — copy + the sample finding on a field "desk"
   ───────────────────────────────────────────── */
.home-report-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.home-report-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.home-report-list {
  margin-block: 8px 12px;
}
.home-report .section-heading {
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.6rem);
}
.home-report-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-inline-size: 0;
}
/* The "desk": a stone field panel the document floats on */
.home-report-desk {
  padding: clamp(18px, 3.2vw, 48px);
  background: var(--bg-section);
  border-radius: var(--radius-lg);
}
.home-report-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: var(--eyebrow-size);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: var(--eyebrow-case);
}
/* The document runs half again as tall as the copy: the copy starts level
   with it and rides along (sticky) instead of floating mid-height in a
   void. Only where the copy fits the screen under the header. */
@media (min-width: 1024px) and (min-height: 760px) {
  .home-report-grid {
    align-items: start;
  }
  .home-report-copy {
    position: sticky;
    inset-block-start: calc(var(--navbar-height) + 48px);
  }
}
@media (max-width: 1023.98px) {
  .home-report-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ─────────────────────────────────────────────
   8. Profile band — ink panel with a small field. Only rendered when the
      profile switch is on; kept so the band is styled the moment it returns.
   ───────────────────────────────────────────── */
.home-bounty {
  padding-block-start: 0;           /* the report section's padding is the gap */
}
.home-bounty-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  min-block-size: clamp(300px, 30vw, 380px);
  padding: 0;
  overflow: hidden;
}
.home-bounty-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  padding: clamp(28px, 4.4vw, 64px);
}
/* the title may not outgrow the column (an unbreakable "ה-Bug Bounty."
   at the largest text setting on a phone pushed it past the panel) */
.home-bounty-copy .home-h2 {
  max-inline-size: 100%;
}
.home-bounty-text {
  max-inline-size: 52ch;
  color: var(--text-secondary);
  line-height: 1.65;
}
/* the end column is its own small field: its stream runs through here */
.home-bounty-field {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: clamp(18px, 2.6vw, 36px);
  border-inline-start: 1px solid var(--on-ink-line);
}
.home-bounty-cta {
  padding: 10px;
  background: var(--ink-panel);
}
@media (max-width: 767.98px) {
  .home-bounty-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-bounty-field {
    justify-content: flex-start;
    min-block-size: 180px;
    border-inline-start: 0;
    border-block-start: 1px solid var(--on-ink-line);
  }
}
/* Phones: a tighter frame keeps the profile button on one line down to
   ~360px (below that core lets its label wrap rather than clip) */
@media (max-width: 479.98px) {
  .home-bounty-field {
    padding: 12px;
  }
  .home-bounty-cta {
    padding: 6px;
  }
}

/* ─────────────────────────────────────────────
   9. Intel — numbers (partial) + KEV hairline list
   ───────────────────────────────────────────── */
.home-kev {
  margin-block-start: clamp(56px, 7vw, 96px);
}
.home-kev-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--border-strong);
}
.home-kev-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
}
.home-live {
  position: relative;
  flex: none;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.home-live::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: live-ping 2.4s var(--ease-out) infinite;
}
.home-kev-head .text-link {
  font-size: var(--step--1);
}
.home-kev-row {
  position: relative;
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr) auto 6.5rem;
  align-items: center;
  gap: 8px 24px;
  margin-inline: -12px;             /* the hover fill bleeds past the rules */
  padding: 15px 12px;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}
.home-kev-row::after {              /* the hairline stays on the grid */
  content: "";
  position: absolute;
  inset-inline: 12px;
  inset-block-end: 0;
  block-size: 1px;
  background: var(--border-subtle);
}
.home-kev-row:hover {
  background: var(--bg-card);
}
.home-kev-row:focus-visible {
  outline-offset: -2px;
}
/* The id and the name are LTR runs (dir="ltr"): justify-self keeps them on
   the row's start edge in both languages (their own text-align would put
   them on the left of an RTL cell) */
.home-kev-id,
.home-kev-name {
  justify-self: start;
  max-inline-size: 100%;            /* fit-content would ignore the cell */
}
.home-kev-id {
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.home-kev-row:hover .home-kev-id {
  color: var(--accent-text);
}
.home-kev-name {
  overflow: hidden;
  color: var(--text-secondary);
  font-size: var(--step--1);
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-kev-row .badge {
  justify-self: end;
}
.home-kev-date {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-align: end;
  font-variant-numeric: tabular-nums;
}
/* No row carries a KEV date (feed not synced yet): drop the empty column so
   the badges sit on the end edge */
@media (min-width: 720px) {
  .home-kev-list:not(:has(.home-kev-date)) .home-kev-row {
    grid-template-columns: 10.5rem minmax(0, 1fr) auto;
  }
}
@media (max-width: 719.98px) {
  .home-kev-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .home-kev-name {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .home-kev-date {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   10. FAQ — ink heading panel + numbered accordion on a band field
   ───────────────────────────────────────────── */
.home-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}
.home-faq-panel {
  position: sticky;
  inset-block-start: calc(var(--navbar-height) + 24px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-block-size: clamp(300px, 28vw, 380px);
}
.home-faq-panel-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-block-start: auto;
  padding-block-start: 40px;
}
.home-faq-panel-text {
  color: var(--text-secondary);
  font-size: var(--step--1);
}
.home-faq-list {
  --faq-pad: clamp(18px, 2vw, 26px);
  --faq-idx: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  interpolate-size: allow-keywords;
}
.home-faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}
.home-faq-item:hover,
.home-faq-item[open] {
  border-color: var(--border-strong);
}
.home-faq-q {
  display: grid;
  grid-template-columns: var(--faq-idx) minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 4px;
  padding: var(--faq-pad);
  border-radius: inherit;
  cursor: pointer;
  list-style: none;
}
.home-faq-q::-webkit-details-marker {
  display: none;
}
.home-faq-q:focus-visible {
  outline-offset: -2px;
}
.home-faq-q .idx {
  padding-block-start: 0.32em;
}
.home-faq-title {
  font-size: var(--step-0);
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.005em;
}
:root:lang(he) .home-faq-title {
  font-weight: 600;
}
/* +/× drawn with two bars; [open] turns + into × */
.home-faq-icon {
  position: relative;
  flex: none;
  inline-size: 26px;
  block-size: 26px;
  margin-inline-start: 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.home-faq-icon::before,
.home-faq-icon::after {
  content: "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  inline-size: 11px;
  block-size: 1.5px;
  margin-block-start: -0.75px;
  margin-inline-start: -5.5px;
  background: currentColor;
  transition: rotate 0.3s var(--ease-out);
}
.home-faq-icon::after {
  rotate: 90deg;
}
.home-faq-q:hover .home-faq-icon {
  color: var(--text-primary);
}
.home-faq-item[open] .home-faq-icon {
  background: var(--sand);
  color: var(--sand-ink);
}
.home-faq-item[open] .home-faq-icon::before {
  rotate: 45deg;
}
.home-faq-item[open] .home-faq-icon::after {
  rotate: 135deg;
}
.home-faq-a {
  /* the answer hangs under the question text, clear of the +/× column */
  padding-block: 0 var(--faq-pad);
  padding-inline: calc(var(--faq-pad) + var(--faq-idx) + 4px) calc(var(--faq-pad) + 42px);
  color: var(--text-secondary);
  line-height: 1.65;
}
.home-faq-a p {
  max-inline-size: 62ch;
}
/* Smooth open/close where ::details-content + interpolate-size exist
   (progressive: elsewhere it simply snaps open) */
.home-faq-item::details-content {
  block-size: 0;
  overflow-y: clip;
  transition: block-size 0.4s var(--ease-out), content-visibility 0.4s allow-discrete;
}
.home-faq-item[open]::details-content {
  block-size: auto;
}
@media (max-width: 899.98px) {
  .home-faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .home-faq-panel {
    position: relative;
    inset-block-start: auto;
    min-block-size: 0;
  }
  .home-faq-panel-foot {
    padding-block-start: 12px;
  }
}
@media (max-width: 639.98px) {
  .home-faq-grid {                  /* the grid is the .container itself */
    padding-inline: 0;
  }
  .home-faq-panel {
    padding-inline: var(--container-pad);
    border-inline: 0;
    border-radius: 0;
  }
  .home-faq-list {
    --faq-pad: var(--container-pad);
  }
  .home-faq-item {
    border-inline: 0;
    border-radius: 0;
  }
}
@media (max-width: 479.98px) {
  .home-faq-list {
    --faq-idx: 2.1rem;
  }
  .home-faq-a {
    padding-inline-end: var(--faq-pad);
  }
}

/* ─────────────────────────────────────────────
   Accessibility toolbar + reduced motion
   ───────────────────────────────────────────── */
:root.a11y-readable-font .home-standards,
:root.a11y-readable-font .home-service-code,
:root.a11y-readable-font .home-kev-id,
:root.a11y-readable-font .home-kev-date,
:root.a11y-readable-font .home-standards-label {
  font-family: Arial, Tahoma, "Segoe UI", sans-serif !important;
  letter-spacing: 0.02em !important;
}
:root.a11y-high-contrast .home-zero-card,
:root.a11y-high-contrast .home-zero-stat,
:root.a11y-high-contrast .home-engage-stage,
:root.a11y-high-contrast .home-bounty-field {
  border: 1px solid #ffffff;
}
:root.a11y-high-contrast .home-zero-stat {
  border-style: dashed;
}
/* Motion switched off from the toolbar after load: the timeline shows its
   finished state instead of waiting for a reveal */
:root.a11y-reduce-motion .home-step::after {
  scale: none !important;
}
:root.a11y-reduce-motion .home-step-node {
  scale: none !important;
  border-color: var(--accent) !important;
}
@media (prefers-reduced-motion: reduce) {
  .home-console .ln-caret,
  .home-live::after {
    animation: none;
  }
  /* the global reduced-motion rules (core) don't reach ::details-content */
  .home-faq-item::details-content {
    transition: none;
  }
}
:root.a11y-reduce-motion .home-faq-item::details-content {
  transition: none !important;
}

/* ─────────────────────────────────────────────
   Hero entrance — intro hand-off + first-render rise
   ───────────────────────────────────────────── */
.home-hero [data-intro-item] {
  --rise-d: 0ms;
  /* the short head start lets the first paint land before the rise */
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) calc(120ms + var(--rise-d)),
    translate 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) calc(120ms + var(--rise-d));
}
.home-hero [data-intro-item="2"] { --rise-d: 50ms; }
.home-hero [data-intro-item="3"] { --rise-d: 100ms; }
.home-hero [data-intro-item="4"] { --rise-d: 150ms; }
.home-hero [data-intro-item="5"] { --rise-d: 200ms; }
.home-hero [data-intro-item="6"] { --rise-d: 250ms; }
.home-hero [data-intro-item="7"] { --rise-d: 300ms; }
/* No intro: each piece rises once, on first render only */
@starting-style {
  html:not([data-intro]) .home-hero [data-intro-item] {
    opacity: 0;
    translate: 0 14px;
  }
}
/* Intro playing: hidden, waiting under the overlay */
html[data-intro="play"] .home-hero [data-intro-item],
html[data-intro="run"] .home-hero [data-intro-item] {
  opacity: 0;
  translate: 0 24px;
  transition: none;
  /* failsafe: if the intro ever stalls, the hero still shows up */
  animation: home-intro-failsafe 0s linear 7s forwards;
}
@keyframes home-intro-failsafe {
  to {
    opacity: 1;
    translate: none;
  }
}
/* Logo docks: the pieces stagger in, 80 ms apart */
html[data-intro="in"] .home-hero [data-intro-item] {
  transition: opacity 0.7s var(--ease-out), translate 0.9s var(--ease-out);
}
html[data-intro="in"] .home-hero [data-intro-item="2"] { transition-delay: 80ms; }
html[data-intro="in"] .home-hero [data-intro-item="3"] { transition-delay: 160ms; }
html[data-intro="in"] .home-hero [data-intro-item="4"] { transition-delay: 240ms; }
html[data-intro="in"] .home-hero [data-intro-item="5"] { transition-delay: 320ms; }
html[data-intro="in"] .home-hero [data-intro-item="6"] { transition-delay: 400ms; }
html[data-intro="in"] .home-hero [data-intro-item="7"] { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .home-hero [data-intro-item],
  html[data-intro] .home-hero [data-intro-item] {
    opacity: 1;
    translate: none;
    transition: none;
  }
}
:root.a11y-reduce-motion .home-hero [data-intro-item] {
  opacity: 1 !important;
  translate: none !important;
}
