/* =====================================================================
   AgentOS for enterprise — scoped theme
   Loaded after styles.css and scoped to .ent, so the main site is
   untouched. Quieter than the product site: cream and white ground,
   near-black type, forest green as the only accent, and more air.
   ===================================================================== */
.ent {
  --paper: #fbfaf7;
  --paper-2: #f3f1ea;
  --card: #ffffff;
  --ink: #12140f;
  --muted: #a8a79e;
  --muted-2: #5f6058;
  --line: rgba(18, 20, 15, 0.09);
  --line-2: rgba(18, 20, 15, 0.14);
  --forest: #1e4034;
  --forest-2: #2a5947;
  --forest-soft: #edf2ef;
  background: var(--paper);
}

/* ---- Type: a touch tighter and more composed than the product site ---- */
.ent h1 { font-size: clamp(42px, 5.4vw, 68px); letter-spacing: -0.028em; line-height: 1.04; }
.ent h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.024em; }
.ent h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.012em; }
.ent .kicker { color: var(--forest); }
.ent .kicker::before { background: var(--forest); opacity: 0.45; }
.ent .lead { font-size: 18.5px; line-height: 1.6; color: var(--muted-2); }

/* ---- Buttons: forest is the only accent ---- */
.ent .btn-green,
.ent .btn-dark { background: var(--forest); color: #fff; }
.ent .btn-green:hover,
.ent .btn-dark:hover { background: var(--forest-2); box-shadow: 0 12px 30px rgba(30, 64, 52, 0.22); }
.ent .btn-frost { background: transparent; border: 1px solid var(--line-2); box-shadow: none; }
.ent .btn-frost:hover { background: #fff; border-color: var(--forest); color: var(--forest); }
.ent .nav-signin { color: var(--ink); }

/* ---- Layout ---- */
.ent-wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(22px, 5vw, 56px); }
.ent-sec { padding: clamp(64px, 8vw, 118px) 0; border-top: 1px solid var(--line); }
.ent-sec--cream { background: var(--paper-2); }
.ent-sec--flush { border-top: none; }
.ent-head { max-width: 720px; }
.ent-head h2 { margin: 12px 0 0; }
.ent-head .lead { margin-top: 18px; }

/* ---- Hero ---- */
.ent-hero { padding: clamp(120px, 13vw, 180px) 0 clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
.ent-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 12% 0%, rgba(30, 64, 52, 0.07), transparent 68%),
    radial-gradient(50% 50% at 88% 8%, rgba(30, 64, 52, 0.05), transparent 70%);
}
/* The constellation is the one piece of atmosphere this page takes from the
   product site: a network of connected nodes is what orchestration looks
   like. Kept quieter here, and no office photograph, so the page stays
   restrained and the product story does not follow the metaphor. */
.ent-hero > .dotfield { z-index: 1; opacity: 0.55; }
.ent-hero .ent-wrap { position: relative; z-index: 2; }
.ent-hero h1 { max-width: 17ch; margin: 14px 0 0; }
.ent-hero .lead { max-width: 620px; margin-top: 22px; }
.ent-hero .cta-row { justify-content: flex-start; margin-top: 34px; }
.ent-verbs {
  margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted-2);
}
.ent-verbs span { display: inline-flex; align-items: center; gap: 9px; }
.ent-verbs span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--forest); opacity: 0.5; }

/* ---- Definition block: what orchestration decides ---- */
.ent-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(32px, 5vw, 76px); align-items: start; }
.ent-decides { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ent-decides li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ent-decides b { display: block; font-weight: 500; color: var(--ink); font-size: 16px; }
.ent-decides p { font-size: 15px; color: var(--muted-2); margin-top: 4px; line-height: 1.55; }
.ent-num { font-family: var(--font-mono); font-size: 12px; color: var(--forest); padding-top: 3px; letter-spacing: 0.06em; }

/* ---- Positioning clarifier under the hero ---- */
.ent-not {
  margin-top: 16px; font-size: 14.5px; color: var(--muted-2);
  padding-left: 14px; border-left: 2px solid var(--forest);
}

/* ---- System diagram ----
   The page needs one picture of how the pieces fit, or "orchestration
   layer" stays an abstraction. Built in markup so it stays sharp and
   reflows on a phone. */
.ent-diagram { margin-top: clamp(48px, 6vw, 76px); }
.ent-layer {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px;
}
.ent-layer-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 13px;
}
.ent-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ent-chips span {
  font-size: 13.5px; color: var(--muted-2);
  border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 14px;
}
/* the middle band is the product, so it carries the colour */
.ent-layer--core { background: var(--forest); border-color: var(--forest); }
.ent-layer--core .ent-layer-label { color: rgba(255,255,255,0.6); }
.ent-core { display: flex; flex-wrap: wrap; gap: 8px; }
.ent-core span {
  font-size: 13.5px; font-weight: 500; color: #fff;
  border: 1px solid rgba(255,255,255,0.28); border-radius: 99px; padding: 6px 14px;
}
.ent-flow { display: flex; justify-content: center; padding: 9px 0; }
.ent-flow i { display: block; width: 1px; height: 22px; background: var(--line-2); }
.ent-diagram-note {
  margin: 20px auto 0; max-width: 620px; text-align: center;
  font-size: 14.5px; line-height: 1.6; color: var(--muted-2);
}

/* ---- Product proof ---- */
.ent-shot {
  margin-top: 44px; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; background: var(--card);
  box-shadow: 0 2px 4px rgba(18,20,15,0.03), 0 30px 70px rgba(18,20,15,0.10);
}
.ent-shot img { display: block; width: 100%; height: auto; }
.ent-shot-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  border-bottom: 1px solid var(--line); background: var(--paper);
  font-size: 12.5px; font-weight: 500; color: var(--ink);
}
.ent-shot-bar .url { color: var(--muted); font-weight: 400; }

/* ---- Cards ---- */
.ent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.ent-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ent-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ent-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
.ent-card h3 { margin: 0 0 8px; }
.ent-card p { font-size: 15px; color: var(--muted-2); line-height: 1.6; }
.ent-card .ent-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 12px;
}

/* ---- Engagement steps ---- */
.ent-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border-top: 1px solid var(--line-2); }
.ent-step { padding: 30px 30px 34px; border-right: 1px solid var(--line); }
.ent-step:last-child { border-right: none; }
.ent-step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--forest-soft); color: var(--forest);
  font-family: var(--font-mono); font-size: 12.5px; margin-bottom: 16px;
}
.ent-step h3 { margin-bottom: 8px; }
.ent-step p { font-size: 15px; color: var(--muted-2); line-height: 1.6; }
.ent-step .ent-when {
  margin-top: 14px; font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
}

/* ---- Outcome figures ---- */
.ent-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.ent-fig { border-left: 2px solid var(--forest); padding: 4px 0 4px 20px; }
.ent-fig b { display: block; font-family: var(--font-head); font-weight: 300; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.ent-fig span { display: block; margin-top: 9px; font-size: 14.5px; color: var(--muted-2); line-height: 1.5; }

/* ---- Worked example timeline ----
   A continuous rail with the automated steps as hollow markers and the two
   human decisions filled in, so the shape of the engagement is legible
   before a word is read: the system runs, and stops where you decide. */
.ent-track { list-style: none; margin: 48px 0 0; padding: 0; position: relative; }
.ent-track::before {
  content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px;
  width: 1px; background: var(--line-2);
}
.ent-tstep { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 22px; padding: 0 0 32px; }
.ent-tstep:last-child { padding-bottom: 0; }
.ent-tmark {
  width: 15px; height: 15px; border-radius: 50%; margin-top: 4px;
  background: var(--paper-2); border: 1px solid var(--line-2); position: relative; z-index: 1;
}
.ent-tstep--human .ent-tmark { background: var(--forest); border-color: var(--forest); }
.ent-tbody { min-width: 0; padding-bottom: 4px; }
.ent-tmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 7px; }
.ent-who {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink);
}
.ent-auto, .ent-gate {
  font-size: 11.5px; border-radius: 99px; padding: 3px 10px;
  border: 1px solid var(--line-2); color: var(--muted-2);
}
.ent-gate { color: var(--forest); border-color: rgba(30,64,52,0.3); background: var(--forest-soft); }
.ent-tstep h3 { margin: 0 0 6px; }
.ent-tstep p { font-size: 15px; color: var(--muted-2); line-height: 1.6; max-width: 620px; }
.ent-track-note {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted-2); max-width: 640px;
}

/* ---- Governance list ---- */
.ent-gov { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; margin-top: 40px; }
/* direct children only: the inner wrapper must not inherit the grid, or the
   label lands in the 20px tick column and the text overlaps it */
.ent-gov > div { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.ent-gov b { font-weight: 500; font-size: 15.5px; color: var(--ink); }
.ent-gov p { font-size: 14.5px; color: var(--muted-2); margin-top: 3px; line-height: 1.55; }
.ent-check { color: var(--forest); font-size: 13px; padding-top: 2px; }

/* ---- Quote ---- */
.ent-quote { max-width: 860px; }
.ent-quote blockquote {
  font-family: var(--font-head); font-weight: 300; font-size: clamp(22px, 2.6vw, 31px);
  line-height: 1.35; letter-spacing: -0.02em; color: var(--ink);
}
.ent-quote figcaption { margin-top: 20px; font-size: 14.5px; color: var(--muted-2); }

/* ---- Closing CTA ---- */
.ent-final { background: var(--forest); color: #fff; padding: clamp(72px, 9vw, 128px) 0; position: relative; overflow: hidden; }
.ent-final > .dotfield { z-index: 1; opacity: 0.42; }
.ent-final .ent-wrap { position: relative; z-index: 2; }
.ent-final h2 { color: #fff; max-width: 18ch; }
.ent-final .kicker { color: rgba(255,255,255,0.62); }
.ent-final .kicker::before { background: rgba(255,255,255,0.4); opacity: 1; }
.ent-final .lead { color: rgba(255,255,255,0.76); max-width: 560px; margin-top: 18px; }
.ent-final .cta-row { justify-content: flex-start; margin-top: 32px; }
.ent-final .btn-green { background: #fff; color: var(--forest); }
.ent-final .btn-green:hover { background: #f2f5f3; box-shadow: none; }
.ent-final .btn-frost { border-color: rgba(255,255,255,0.35); color: #fff; }
.ent-final .btn-frost:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.ent-final-note { margin-top: 26px; font-size: 14px; color: rgba(255,255,255,0.6); }

/* ================= Scroll cascade =================
   The shared .reveal fades a whole block in at once, so a six-card grid
   arrives as one slab and the page feels static. Here the container is
   only the trigger: its children carry the motion and arrive in turn, so
   sections assemble as you reach them. Motion is opt-in. */
@media (prefers-reduced-motion: no-preference) {
  .ent-cascade.reveal { opacity: 1; transform: none; transition: none; }
  .ent-cascade.reveal > * {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .ent-cascade.reveal.in > * { opacity: 1; transform: none; }
  .ent-cascade.reveal.in > *:nth-child(1) { transition-delay: 0.00s; }
  .ent-cascade.reveal.in > *:nth-child(2) { transition-delay: 0.07s; }
  .ent-cascade.reveal.in > *:nth-child(3) { transition-delay: 0.14s; }
  .ent-cascade.reveal.in > *:nth-child(4) { transition-delay: 0.21s; }
  .ent-cascade.reveal.in > *:nth-child(5) { transition-delay: 0.28s; }
  .ent-cascade.reveal.in > *:nth-child(6) { transition-delay: 0.35s; }
  .ent-cascade.reveal.in > *:nth-child(7) { transition-delay: 0.42s; }
  .ent-cascade.reveal.in > *:nth-child(8) { transition-delay: 0.49s; }
  /* the connector rules between diagram bands should not slide */
  .ent-diagram.reveal > .ent-flow { transform: none; }

  /* The hero is above the fold, so it plays on load rather than on scroll. */
  .ent-hero .reveal { transition-delay: 0s; }
  .ent-hero .kicker.reveal.in { transition-delay: 0.02s; }
  .ent-hero h1.reveal.in { transition-delay: 0.10s; }
  .ent-hero .lead.reveal.in { transition-delay: 0.20s; }
  .ent-hero .ent-not.reveal.in { transition-delay: 0.28s; }
  .ent-hero .ent-verbs.reveal.in { transition-delay: 0.35s; }
  .ent-hero .cta-row.reveal.in { transition-delay: 0.42s; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .ent-split { grid-template-columns: 1fr; gap: 30px; }
  .ent-grid, .ent-grid--2, .ent-figs { grid-template-columns: 1fr 1fr; }
  .ent-grid--4 { grid-template-columns: 1fr 1fr; }
  .ent-steps { grid-template-columns: 1fr; border-top: none; }
  .ent-step { border-right: none; border-top: 1px solid var(--line-2); padding: 26px 0 30px; }
  .ent-gov { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 620px) {
  .ent-grid, .ent-grid--2, .ent-grid--4, .ent-figs { grid-template-columns: 1fr; }
  .ent-hero .cta-row .btn { width: 100%; }
  .ent-verbs { gap: 8px 16px; font-size: 11px; }
}
