/* EvidentABA — shared design system (tokens, nav, buttons, footer, reveal) */

    :root {
      --ink:      #2A1F15;
      --paper:    #F2E4D0;
      --cream:    #EEDDC5;
      --card:     #FFFFFF;
      --primary:  #D94A2B;
      --primary-d:#B93E23;
      --rust:     #9E4E2F;
      --muted:    #8A7460;
      --line:     #E2CBAD;
      --grad-a:   #FF9F5E;
      --grad-b:   #D94A2B;
      --stage-0:  #1C130C;
      --stage-1:  #3A2A1C;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      font-family: "Inter", system-ui, sans-serif;
      background: var(--paper);
      color: var(--ink);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    h1, h2, h3 { font-family: "Archivo", sans-serif; letter-spacing: -0.03em; }
    .mono { font-family: "IBM Plex Mono", monospace; }
    a { color: inherit; }
    .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }


    /* ================= Scroll reveal ================= */
    .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1); }
    .rv.in { opacity: 1; transform: none; }
    .rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; } .rv.d3 { transition-delay: .3s; }

    /* ================= Nav ================= */
    header {
      position: sticky; top: 0; z-index: 100;
      background: rgba(251, 244, 236, 0.8);
      backdrop-filter: blur(16px) saturate(1.4);
      -webkit-backdrop-filter: blur(16px) saturate(1.4);
      border-bottom: 1px solid rgba(240, 223, 204, 0.7);
    }
    .nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
    .logo {
      font-family: "Archivo", sans-serif; font-weight: 800; font-size: 1.15rem;
      text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em;
    }
    .logo-mark {
      width: 32px; height: 32px; border-radius: 9px;
      background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
      display: grid; place-items: center;
      box-shadow: 0 4px 12px -4px rgba(217, 74, 43, 0.5);
    }
    .logo-mark svg { display: block; }
    .nav-links { display: flex; gap: 30px; align-items: center; }
    .nav-links a {
      text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--muted);
      transition: color .15s;
    }
    .nav-links a:hover { color: var(--ink); }

    .btn {
      display: inline-block; text-decoration: none; font-weight: 600;
      padding: 12px 24px; border-radius: 999px; font-size: 0.95rem;
      transition: transform .2s cubic-bezier(.2,.6,.2,1), box-shadow .2s, filter .2s, border-color .2s;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--grad-a), var(--grad-b)); color: #fff;
      box-shadow: 0 10px 26px -10px rgba(217, 74, 43, 0.55);
    }
    .btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px -12px rgba(217, 74, 43, 0.6); filter: brightness(1.05); }
    .btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: rgba(255,255,255,0.6); }
    .btn-ghost:hover { border-color: var(--muted); transform: translateY(-2px); }
    .btn-sm { padding: 9px 18px; font-size: 0.88rem; }
    .btn:focus-visible, a:focus-visible { outline: 3px solid var(--amber, #D98F26); outline-offset: 3px; }

    /* ---- Mobile nav: hide text links, shrink logo + buttons so they fit ---- */
    @media (max-width: 620px) {
      .nav-links { gap: 8px; }
      .nav-links a:not(.btn) { display: none; }
      .btn-sm { padding: 8px 12px; font-size: 0.8rem; white-space: nowrap; }
    }
    @media (max-width: 440px) {
      .logo { font-size: 0.9rem; gap: 6px; letter-spacing: -0.03em; }
      .logo-mark { width: 28px; height: 28px; }
      .nav-links { gap: 6px; }
      .btn-sm { padding: 7px 10px; font-size: 0.72rem; }
    }

    /* ================= Footer ================= */
    footer { background: var(--ink); color: #C9B89E; padding: 56px 0 40px; font-size: 0.88rem; }
    .foot-grid {
      display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center;
      padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 24px;
    }
    footer .logo { color: #fff; }
    footer a { color: #C9B89E; text-decoration: none; transition: color .15s; }
    footer a:hover { color: #fff; }
    .foot-links { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
    .legal { text-align: center; color: #A8937B; font-size: 0.82rem; line-height: 1.8; }

    /* ================= Reduced motion ================= */
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      * { animation: none !important; }
      .doors { display: none; }
      .rv, .w i, .hero .eyebrow, .hero .lead, .hero-ctas, .scroll-hint,
      .rig, .stage-title, .beam-wrap, .motes, .stage-floor, .float-wrap, .float-card, .rail, .rail-item, .scr {
        opacity: 1 !important; transform: none !important; transition: none !important;
      }
      .theater { height: auto; }
      .theater-sticky { position: relative; height: auto; padding: 80px 0; }
      .scr { position: relative; }
      .scr-1, .scr-2 { display: none; }
    }


@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
}

/* ================= Content patterns (for new pages) ================= */
.page-hero { padding: 100px 0 70px; text-align: center; }
.page-hero .eyebrow-line {
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--primary);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.2rem); font-weight: 800;
  letter-spacing: -0.045em; line-height: 1.04; margin: 20px auto 22px; max-width: 18ch;
}
.page-hero .lead { color: var(--muted); font-size: 1.1rem; max-width: 36rem; margin: 0 auto; }
.section { padding: 90px 0; }
.section-eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); display: block; margin-bottom: 18px;
}
.section h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; margin-bottom: 20px; max-width: 24ch; }
.section .prose { color: var(--muted); max-width: 44rem; line-height: 1.75; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px;
  transition: transform .3s cubic-bezier(.2,.6,.2,1), box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(42,31,21,0.22); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { font-size: 0.93rem; color: var(--muted); }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

/* ================= Contact modal (all "Request a demo" buttons) ================= */
.cmodal {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(23, 15, 8, 0.62);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.cmodal.open { display: flex; animation: cmodal-in .22s ease; }
@keyframes cmodal-in { from { opacity: 0; } to { opacity: 1; } }
.cmodal-card {
  background: var(--paper); border-radius: 26px; max-width: 460px; width: 100%;
  padding: 44px 40px 36px; position: relative; text-align: center;
  box-shadow: 0 60px 120px -40px rgba(23, 15, 8, 0.55);
  animation: cmodal-card-in .3s cubic-bezier(.16,1,.3,1);
}
@keyframes cmodal-card-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.cmodal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none; color: var(--muted);
  font-size: 1rem; line-height: 1; cursor: pointer;
}
.cmodal-close:hover { background: rgba(42, 31, 21, 0.06); color: var(--ink); }
.cmodal-eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--primary);
}
.cmodal-card h3 {
  font-family: "Archivo", sans-serif; font-weight: 800; letter-spacing: -0.03em;
  font-size: 1.55rem; margin: 14px 0 8px; color: var(--ink);
}
.cmodal-card .cm-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 28px; }
.cm-email {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  padding: 13px 12px 13px 18px; margin-bottom: 14px;
}
.cm-email span {
  font-family: "IBM Plex Mono", monospace; font-size: 0.86rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cm-copy {
  flex-shrink: 0; border: 1px solid var(--line); background: var(--paper);
  border-radius: 999px; padding: 7px 14px; cursor: pointer;
  font-family: "IBM Plex Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink);
}
.cm-copy:hover { border-color: var(--muted); }
.cm-copy.ok { color: var(--primary); border-color: var(--primary); }
.cmodal-card .btn { display: block; text-align: center; }
.cm-note {
  margin-top: 18px;
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
