/* Finchless Research — approved visual layer shared by every live page. */
    /* ═══ Atmosphere overlay on hero only ═══ */
    .hero-atmo {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 40% at 80% 30%, rgba(99, 237, 255, 0.04), transparent),
        radial-gradient(ellipse 40% 30% at 20% 80%, rgba(68, 255, 224, 0.025), transparent);
      pointer-events: none;
      z-index: 0;
    }

    /* ═══ Hero with cage layout ═══ */
    :is(.hero--home, .hero--visual) {
      position: relative;
      padding: 4.5rem 0 4rem;
      overflow: hidden;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    :is(.hero--home, .hero--visual) > .container {
      display: grid;
      grid-template-columns: minmax(0, 1.32fr) minmax(0, 1fr);
      align-items: center;
      gap: 1.5rem;
    }
    .hero--home {
      --wire-h: 190px;
      min-height: calc(100svh - 76px);
      padding-top: 3.5rem;
      /* The line is drawn in the lower part of the band, so the reserved space
         only has to clear the cable and its flock, not the whole band. */
      padding-bottom: 150px;
    }
    /* Keep the line and its flock inside the first screen on a laptop. */
    .hero--home .hero__visual { max-height: min(440px, 52vh); }
    .hero--visual { padding: 2.5rem 0 2rem; }
    .hero--visual > .container {
      grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
      gap: 2rem;
    }
    .hero--visual .hero__scene {
      width: 100%;
      max-width: 320px;
      justify-self: end;
    }
    :is(.hero--home, .hero--visual) .hero__inner {
      position: relative;
      z-index: 2;
      max-width: 44rem;
    }
    .hero__scene {
      min-width: 0;
      text-align: center;
    }
    :is(.hero--home, .hero--visual) .hero__visual {
      position: relative;
      width: 100%;
      aspect-ratio: 1 / 1.08;
      pointer-events: none;
      animation: fadeIn 1.8s ease-out 0.5s both;
    }
    .hero__visual canvas,
    .hero__visual img {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
    }
    .hero__visual img {
      object-fit: contain;
      opacity: 0.7;
    }
    .hero__visual.is-rendered img { visibility: hidden; }

    /* ═══ Overhead line with a perched flock ═══ */
    .hero__wires {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: var(--wire-h);
      pointer-events: none;
      z-index: 1;
    }
    .hero__wires canvas {
      display: block;
      width: 100%;
      height: 100%;
    }
    #hero-motion {
      position: fixed;
      top: 1.5rem;
      right: 1rem;
      z-index: 80;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid rgba(99, 237, 255, 0.28);
      border-radius: 50%;
      background: rgba(5, 7, 10, 0.9);
      cursor: pointer;
    }
    #hero-motion[hidden] { display: none; }
    #hero-motion:hover { border-color: var(--accent); }
    #hero-motion:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; z-index: 80; }
    .hero-motion__indicator {
      width: 12px;
      height: 12px;
      border: 1px solid var(--accent);
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 9px rgba(99, 237, 255, 0.35);
    }
    #hero-motion[aria-pressed="true"] .hero-motion__indicator {
      background: transparent;
      box-shadow: none;
    }
    .hero-motion__label {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
      white-space: nowrap;
    }
    @media (max-width: 1200px) {
      #hero-motion { position: absolute; top: 88px; right: 8px; z-index: 10; }
      .site-header:has(.nav-toggle[aria-expanded="true"]) + #hero-motion { display: none; }
    }
    @media (max-width: 1000px) {
      :is(.hero--home, .hero--visual) { padding: 3.5rem 0 3rem; }
      .hero--home { --wire-h: 170px; padding-bottom: calc(2rem + var(--wire-h)); }
      .hero--visual { padding: 2rem 0 1.5rem; }
      :is(.hero--home, .hero--visual) > .container { grid-template-columns: 1fr; gap: 1rem; }
      .hero__scene { width: min(100%, 480px); justify-self: center; }
      .hero--visual .hero__scene { width: min(100%, 240px); justify-self: center; }
      :is(.hero--home, .hero--visual) .hero__inner { max-width: 44rem; }
    }
    @media (max-width: 600px) {
      :is(.hero--home, .hero--visual) .actions .btn { width: 100%; justify-content: center; }
    }
    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

    /* ═══ Eyebrow accent ═══ */
    :is(.hero-eyebrow, .hero--visual .eyebrow) {
      display: inline-block;
      font-size: 0.72rem;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 1rem;
      animation: fadeUp 0.7s ease-out 0.2s both;
    }

    :is(.hero--home, .hero--visual) h1 {
      font-size: clamp(2rem, 4.2vw, 2.9rem);
      font-weight: 700;
      color: #fff;
      letter-spacing: -0.02em;
      line-height: 1.15;
      margin-bottom: 1.2rem;
      animation: fadeUp 0.7s ease-out 0.35s both;
    }
    :is(.hero--home, .hero--visual) h1 em {
      font-style: normal;
      background: linear-gradient(135deg, var(--accent), var(--text-primary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    :is(.hero--home, .hero--visual) .lead {
      font-size: 1.05rem;
      color: var(--text-secondary);
      max-width: 52ch;
      line-height: 1.7;
      margin-bottom: 0.75rem;
      animation: fadeUp 0.7s ease-out 0.5s both;
    }
    :is(.hero--home, .hero--visual) .lead + p {
      font-size: 0.95rem;
      color: var(--text-secondary);
      max-width: 48ch;
      animation: fadeUp 0.7s ease-out 0.65s both;
    }
    :is(.hero--home, .hero--visual) .actions {
      animation: fadeUp 0.7s ease-out 0.8s both;
      margin-top: 1.5rem;
    }

    /* ═══ Section titles ═══ */
    .section h2 {
      font-size: clamp(1.4rem, 2.4vw, 1.75rem);
      font-weight: 700;
      color: #fff;
      margin-bottom: 1.25rem;
    }
    .section .section-intro {
      font-size: 0.95rem;
      color: var(--text-secondary);
      max-width: 56ch;
      margin-bottom: 1.75rem;
      line-height: 1.65;
    }

    /* ═══ Cards: refined ═══ */
    .card {
      padding: 1.5rem;
      background: var(--card-bg);
      border: 1px solid rgba(99, 237, 255, 0.08);
      border-radius: var(--radius-lg);
      transition: all 0.3s ease;
    }
    .card:hover {
      border-color: rgba(99, 237, 255, 0.18);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    .card .card-icon {
      width: 36px;
      height: 36px;
      border-radius: 8px;
      background: rgba(99, 237, 255, 0.06);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 0.9rem;
      color: var(--accent);
      font-size: 0.95rem;
    }
    .card h3 {
      font-size: 0.95rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 0.5rem;
    }
    .card p {
      font-size: 0.88rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin: 0;
    }

    /* ═══ Focus cards ═══ */
    .focus-card {
      padding: 1.5rem;
      background: rgba(10, 12, 16, 0.5);
      border: 1px solid rgba(99, 237, 255, 0.06);
      border-radius: var(--radius-lg);
      position: relative;
      transition: all 0.3s ease;
    }
    .focus-card:hover {
      border-color: rgba(99, 237, 255, 0.15);
      transform: translateY(-2px);
    }
    .focus-card .fn {
      font-size: 2.4rem;
      font-weight: 800;
      color: var(--accent);
      opacity: 0.07;
      line-height: 1;
      margin-bottom: 0.75rem;
      font-family: var(--font-sans);
    }
    .focus-card h3 {
      font-size: 0.92rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 0.45rem;
    }
    .focus-card p {
      font-size: 0.85rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 0.75rem;
    }
    .focus-card .card__link {
      font-size: 0.82rem;
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      transition: gap 0.2s;
    }
    .focus-card .card__link:hover {
      gap: 7px;
    }

    /* ═══ Project cards ═══ */
    .project-card {
      padding: 1.5rem;
      background: rgba(10, 12, 16, 0.5);
      border: 1px solid rgba(99, 237, 255, 0.06);
      border-radius: var(--radius-lg);
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      transition: all 0.3s ease;
    }
    .project-card:hover {
      border-color: rgba(99, 237, 255, 0.15);
      transform: translateY(-2px);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
    .project-card .card__link {
      font-size: 0.85rem;
      color: var(--accent);
      text-decoration: none;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      margin-top: auto;
      padding-top: 0.5rem;
      transition: gap 0.2s;
    }
    .project-card .card__link:hover {
      gap: 7px;
    }


    /* ═══ Animations ═══ */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ═══ Button override ═══ */
    .btn {
      padding: 0.55rem 1.2rem;
      min-height: 44px;
      font-size: 0.85rem;
      font-weight: 500;
      border-radius: var(--radius-md);
      border: 1px solid transparent;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      transition: all 0.25s ease;
    }
    .btn--primary {
      background: rgba(99, 237, 255, 0.12);
      border-color: rgba(99, 237, 255, 0.3);
      color: var(--accent);
    }
    .btn--primary:hover {
      background: rgba(99, 237, 255, 0.18);
      border-color: var(--accent);
      color: var(--accent-hover);
      box-shadow: 0 0 20px rgba(99, 237, 255, 0.1);
    }
    .btn--ghost {
      background: transparent;
      border-color: rgba(255, 255, 255, 0.12);
      color: var(--text-secondary);
    }
    .btn--ghost:hover {
      border-color: rgba(255, 255, 255, 0.25);
      color: #fff;
    }

    /* ═══ Nav brand tag ═══ */
    .brand__tag {
      display: block;
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-tertiary);
      margin-top: -1px;
    }

    /* ═══ Footer fix ═══ */
    .site-footer .site-footer__col a {
      display: inline-block;
      padding: 0.2rem 0;
    }

    /* ═══ Pointer proximity: elements light up as the cursor nears ═══ */
    .card,
    .focus-card,
    .project-card,
    .btn,
    .site-nav a,
    .site-footer a,
    .card__link {
      transition: border-color .3s ease, box-shadow .3s ease, color .25s ease,
                  text-shadow .3s ease, transform .3s ease, background .3s ease;
    }

    /* Block elements: ring + lift when the cursor comes within reach */
    .card.near,
    .focus-card.near,
    .project-card.near {
      border-color: rgba(99, 237, 255, 0.32);
      box-shadow: 0 0 0 1px rgba(99, 237, 255, 0.12),
                  0 10px 36px rgba(0, 0, 0, 0.28),
                  0 0 46px rgba(99, 237, 255, 0.07);
      transform: translateY(-3px);
    }

    /* Buttons: glow bloom */
    .btn.near {
      border-color: rgba(99, 237, 255, 0.55);
      box-shadow: 0 0 30px rgba(99, 237, 255, 0.22),
                  inset 0 0 18px rgba(99, 237, 255, 0.06);
    }
    .btn--primary.near {
      background: rgba(99, 237, 255, 0.2);
      color: #eafdff;
    }
    .btn--ghost.near {
      color: #fff;
    }

    /* Inline links: text glow + brighten */
    .site-nav a.near,
    .site-footer a.near,
    .card__link.near {
      color: var(--accent-hover);
      text-shadow: 0 0 14px rgba(99, 237, 255, 0.55);
    }

    /* ═══ Click: flash ═══ */
    @keyframes clickFlash {
      0%   { box-shadow: 0 0 0 0 rgba(99, 237, 255, 0.55); }
      100% { box-shadow: 0 0 0 14px rgba(99, 237, 255, 0); }
    }
    .is-clicked {
      animation: clickFlash .55s ease-out;
    }

    /* ═══ Click: ripple from the pointer ═══ */
    .ripple {
      position: absolute;
      border-radius: 50%;
      pointer-events: none;
      transform: translate(-50%, -50%) scale(0);
      background: radial-gradient(circle, rgba(99, 237, 255, 0.42) 0%,
                                  rgba(99, 237, 255, 0.12) 55%,
                                  transparent 70%);
      animation: rippleOut .7s cubic-bezier(.18, .72, .3, 1) forwards;
      z-index: 3;
    }
    @keyframes rippleOut {
      to { transform: translate(-50%, -50%) scale(1); opacity: 0; }
    }

    /* Elements that host a ripple need positioning + clipping */
    .ripple-host {
      position: relative;
      overflow: hidden;
    }
    #cursor-flock {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 60;
      pointer-events: none;
    }
    @media (prefers-reduced-motion: reduce) {
      #cursor-flock { display: none; }
    }

    /* ═══ Cursor spotlight over the hero ═══ */
    :is(.hero--home, .hero--visual) .cursor-light {
      position: absolute;
      width: 520px;
      height: 520px;
      left: 0;
      top: 0;
      border-radius: 50%;
      pointer-events: none;
      z-index: 1;
      opacity: 0;
      transition: opacity .5s ease;
      background: radial-gradient(circle, rgba(211, 162, 79, 0.045), transparent 62%);
      transform: translate(-50%, -50%);
      will-change: transform;
    }
    :is(.hero--home, .hero--visual):hover .cursor-light { opacity: 1; }

    @media (prefers-reduced-motion: reduce) {
      .card:hover, .card.near,
      .focus-card:hover, .focus-card.near,
      .project-card:hover, .project-card.near { transform: none; }
      .ripple, .is-clicked { animation: none; }
      .card, .focus-card, .project-card, .btn,
      .site-nav a, .site-footer a, .card__link { transition: none; }
      :is(.hero-eyebrow, .hero--visual .eyebrow),
      :is(.hero--home, .hero--visual) h1,
      :is(.hero--home, .hero--visual) .lead,
      :is(.hero--home, .hero--visual) .lead + p,
      :is(.hero--home, .hero--visual) .actions,
      :is(.hero--home, .hero--visual) .hero__visual {
        animation: none;
        opacity: 1;
        transform: none;
      }
      :is(.hero--home, .hero--visual) .cursor-light { display: none; }
    }
  

/* Keep the compact corner control below a single-row phone header. */
@media (max-width: 400px) {
  .site-header__inner { min-height: 76px; gap: 0.5rem; }
  .site-header .brand img { width: 36px; height: 36px; }
  .site-header .brand__name,
  .site-header .brand__tag { white-space: nowrap; }
}

/* Retained content uses the same shell, cards and controls. */
.legacy-page .section-header { color: var(--accent); border: 0; padding-left: 0; }
.legacy-page .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
}
.legacy-page .text-gray-200,
.legacy-page .text-gray-300,
.legacy-page .text-gray-400 { color: var(--text-secondary); }
.legacy-page .text-gray-500 { color: var(--text-tertiary); }
.legacy-page .text-accent { color: var(--accent); }
.legacy-page .bg-accent\/20 { background: rgba(var(--accent-rgb), 0.06); }
.legacy-page .faq-item { border-bottom: 1px solid var(--border-color); }
.legacy-page .faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 0;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.legacy-page .faq-answer { padding: 0 0 1rem; color: var(--text-secondary); line-height: 1.65; }
.legacy-page .faq-toggle { transition: transform 0.2s ease; }
.legacy-page .faq-item.open .faq-toggle { transform: rotate(180deg); }
.legacy-page .attack-phase {
  position: relative;
  padding: 1.5rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 1rem;
  background: rgba(var(--accent-rgb), 0.05);
}
.legacy-page .attack-phase::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  transform: translateY(-50%);
}
.legacy-page .technique-badge {
  display: inline-block;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  margin: 0.25rem;
  border: 1px solid var(--border-color);
}
.legacy-page .simulation-metric { text-align: center; padding: 1.5rem; }
.legacy-page .metric-value { display: block; font-size: 2.5rem; font-weight: 700; color: var(--accent); }
.legacy-page .metric-label { color: var(--text-secondary); font-size: 0.875rem; margin-top: 0.5rem; }
@media (prefers-reduced-motion: reduce) {
  .legacy-page .faq-toggle { transition: none; }
}

@media (max-width: 1200px) {
  #main > .tool-header > .container,
  #main > .container > .header {
    padding-right: 4.5rem;
  }
}