/* Demo F: Evidence Stage.
   Sky-blue page, deep-blue stage panel replaying an annotated audit
   finding after Abnormal's detection scenes; serif display headlines
   (deliberate demo experiment), mono uppercase metadata after Trail of
   Bits and Expel, floating callouts after SentinelOne. */
@font-face {
  font-family: "Carlito";
  src: url("assets/carlito-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Carlito";
  src: url("assets/carlito-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("assets/noto-sans-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --sky: #D9EAFB;
  --sky-soft: #EAF3FD;
  --stage: #0A2F6B;
  --stage-deep: #072252;
  --coral: #FF5A45;
  --ink: #10233F;
  --ink-soft: #40536E;
  --line: #B9D2EE;
  --card: #FFFFFF;
  /* Serif display via system stack: no serif family is self-hosted for
     web surfaces in the house set; this demo tests the voice. */
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  --font: "Noto Sans", sans-serif;
  --body: "Carlito", "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sky); color: var(--ink);
  font-family: var(--body); font-size: 19px; line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--stage); }
a:hover { color: var(--stage-deep); }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
.mono {
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: 0.09em; font-size: 13.5px;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--stage); color: #fff; padding: 10px 18px;
  font-family: var(--font); font-weight: 600; text-decoration: none;
  transition: top 200ms ease;
}
.skip-link:focus { top: 12px; color: #fff; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Buttons: full house state set, shine sweep on primaries. */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 16.5px; line-height: 1.2;
  padding: 13px 24px; border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background 200ms ease, color 200ms ease, transform 120ms ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.5) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn-deep { background: var(--stage); color: #fff; }
.btn-stage { background: #fff; color: var(--stage); }
.btn-stage-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
@media (hover: hover) {
  .btn-deep:hover { background: var(--stage-deep); color: #fff; }
  .btn-stage:hover { background: var(--sky); color: var(--stage-deep); }
  .btn-stage-ghost:hover { border-color: #fff; color: #fff; }
  .btn:hover::after { transform: translateX(120%); transition: transform 600ms ease; }
}
.btn:active { transform: scale(0.97); }
.btn:active::after { transform: translateX(-120%); transition: none; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 3px solid rgba(128,128,128,0.4); border-top-color: currentColor;
  animation: btn-spin 800ms linear infinite;
}
.btn.is-success { pointer-events: none; }
.btn.is-success::before { content: "✓"; font-weight: 700; }
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* Header */
.site-header { padding: 20px 0 4px; }
.header-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.brand img { width: 168px; display: block; }
.site-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.site-nav a:hover { color: var(--stage); text-decoration: underline; }
.header-cta { margin: 0 0 0 auto; }

/* Hero */
.hero { padding: 30px 0 10px; }
.eyebrow { color: var(--stage); margin: 0 0 14px; font-weight: 700; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(42px, 6.4vw, 72px); line-height: 1.04;
  letter-spacing: -0.01em; margin: 0 0 16px; max-width: 820px;
}
.lede { font-size: 21px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 34px; max-width: 760px; }

/* The stage */
.stage {
  background: var(--stage); color: #EAF2FE; border-radius: 20px;
  padding: 26px 34px 30px; box-shadow: 0 24px 54px rgba(7, 34, 82, 0.35);
}
.stage-head {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: #9DB9E4; border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 14px; margin-bottom: 26px;
}
.diagram {
  position: relative; display: flex; align-items: stretch; gap: 0;
  margin-bottom: 28px;
}
.node {
  flex: 1 1 0; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 12px;
  padding: 18px 12px; text-align: center; position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: border-color 250ms ease, background 250ms ease, opacity 250ms ease;
  background: rgba(255,255,255,0.04);
}
.node-label { color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.5; }
.link { flex: 0 0 44px; position: relative; display: flex; align-items: center; }
.link-line { display: block; height: 1.5px; width: 100%; background: rgba(255,255,255,0.55); }
.link::after {
  content: ""; position: absolute; right: 0; top: 50%;
  border: 5px solid transparent; border-left-color: rgba(255,255,255,0.75);
  border-right: none; transform: translateY(-50%);
}
.marker {
  position: absolute; top: -13px; right: -9px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); color: #fff;
  font-family: var(--font); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.3; transform: scale(0.85); transition: opacity 250ms ease, transform 250ms ease;
}
.link .marker { top: -22px; right: 6px; }
.stage[data-active="1"] .marker[data-marker="1"],
.stage[data-active="2"] .marker[data-marker="2"],
.stage[data-active="3"] .marker[data-marker="3"] { opacity: 1; transform: scale(1.12); }
.stage[data-active="1"] .node[data-node="agent"] { border-color: var(--coral); background: rgba(255,90,69,0.12); }
.stage[data-active="2"] .node[data-node="content"],
.stage[data-active="2"] .node[data-node="data"],
.stage[data-active="2"] .node[data-node="send"] { border-color: var(--coral); }
.stage[data-active="2"] .link .link-line { background: var(--coral); }
.stage[data-active="3"] .node { border-color: #fff; background: rgba(255,255,255,0.1); }
.stage-stamp {
  position: absolute; right: 6px; bottom: -14px; margin: 0;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 12.5px; font-weight: 700; color: var(--stage);
  background: var(--sky); border: 2px solid var(--stage);
  padding: 4px 12px; transform: rotate(-2.5deg);
  opacity: 0; transition: opacity 300ms ease;
}
.stage[data-active="3"] .stage-stamp { opacity: 1; }
.stage-body { max-width: 780px; }
.stage-step-label { color: var(--coral); font-weight: 700; margin: 0 0 8px; }
.stage-title {
  font-family: var(--serif); font-size: clamp(26px, 3.6vw, 38px);
  line-height: 1.15; margin: 0 0 12px; color: #fff;
}
.stage-text { font-size: 19.5px; line-height: 1.55; margin: 0 0 10px; color: #EAF2FE; }
.stage-sub { color: #B9CFEF; font-size: 18px; }
.stage-controls {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap; margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.22); padding-top: 22px;
}
.stage-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.stage-tab {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.07em;
  font-size: 13px; font-weight: 700; color: #C9DBF5;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.45);
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease;
}
.stage-tab:hover { border-color: #fff; color: #fff; }
.stage-tab:active { transform: scale(0.96); }
.stage-tab.is-active { background: #fff; color: var(--stage); border-color: #fff; }
.stage-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.stage-note { font-size: 16.5px; color: var(--ink-soft); margin: 16px 4px 0; max-width: 820px; }

/* Sections */
.section { padding: 52px 0 6px; }
.sec-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 44px); line-height: 1.1;
  margin: 0 0 26px; color: var(--ink);
}
.sub-title { font-family: var(--serif); font-size: 28px; margin: 0 0 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ev-card, .artefact, .ticket {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px 26px; display: flex; flex-direction: column;
  box-shadow: 0 6px 22px rgba(10, 47, 107, 0.07);
}
.ev-meta { color: var(--stage); font-weight: 700; margin: 0 0 10px; }
.ev-card h3, .artefact h3, .ticket h3 {
  font-family: var(--font); font-size: 22px; margin: 0 0 10px; color: var(--ink);
}
.first-step, .what { margin: 0 0 16px; color: var(--ink-soft); }
.time-cost { font-family: var(--font); font-weight: 600; font-size: 15px; color: var(--stage); margin: 0 0 20px; }
.status { font-family: var(--font); font-weight: 700; font-size: 16px; margin: 0 0 20px; }
.row-action { margin: auto 0 0; }
.artefact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Fix ticket artefact */
.ticket { margin-bottom: 22px; }
.ticket-rows { margin: 6px 0 0; display: flex; flex-direction: column; }
.ticket-rows > div {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.ticket-rows > div:last-child { border-bottom: none; }
.ticket-rows dt { color: var(--coral); font-weight: 700; padding-top: 3px; }
.ticket-rows dd { margin: 0; color: var(--ink-soft); }
.ticket-rows dd:first-letter { text-transform: uppercase; }
.prose-block {
  background: var(--sky-soft); border: 1px solid var(--line); border-radius: 16px;
  padding: 26px 30px;
}
.prose { max-width: 820px; color: var(--ink-soft); margin: 0 0 18px; }
.prose:last-child { margin-bottom: 0; }

/* Seal: blueprint panel */
.seal {
  background: var(--stage); color: #EAF2FE; border-radius: 16px;
  padding: 24px 28px; margin-top: 24px;
}
.seal-head h3 { font-family: var(--font); margin: 0 0 4px; color: #fff; font-size: 20px; }
.seal-meta { color: #9DB9E4; margin: 0 0 14px; }
.seal-scroll { overflow-x: auto; }
.seal table { border-collapse: collapse; width: 100%; font-size: 15px; }
.seal th, .seal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,0.2); }
.seal th { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.07em; font-size: 12.5px; color: #9DB9E4; }
.hash { font-family: var(--mono); font-size: 12px; word-break: break-all; text-transform: none; letter-spacing: 0; }
.state { font-family: var(--font); font-weight: 600; color: #fff; white-space: nowrap; }
.seal-foot { display: flex; align-items: center; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.stamp {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 700; font-size: 13px; color: #fff;
  border: 2px solid #fff; border-radius: 6px; padding: 4px 12px;
  transform: rotate(-3deg); opacity: 0; transition: opacity 250ms ease;
}
.stamp.show { opacity: 1; }
.note-line { font-size: 16px; color: #B9CFEF; margin: 16px 0 0; }

/* Footer */
.site-footer { margin-top: 60px; background: var(--sky-soft); border-top: 1px solid var(--line); padding: 40px 0 48px; }
.footer-in { display: flex; flex-direction: column; gap: 16px; }
.site-footer .brand img { width: 150px; }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-nav a:hover { color: var(--stage); text-decoration: underline; }
.footer-line { margin: 0; font-size: 16px; color: var(--ink-soft); max-width: 820px; }

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .artefact-list { grid-template-columns: 1fr; }
  .diagram { flex-direction: column; gap: 10px; }
  .link { flex: 0 0 22px; justify-content: center; }
  .link-line { width: 1.5px; height: 100%; }
  .link::after {
    right: auto; top: auto; bottom: 0; left: 50%;
    border: 5px solid transparent; border-top-color: rgba(255,255,255,0.75);
    border-bottom: none; transform: translateX(-50%);
  }
  .link .marker { top: -6px; right: auto; left: calc(50% + 10px); }
  .stage-stamp { bottom: -10px; }
  .ticket-rows > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 640px) {
  .stage { padding: 20px 18px 24px; }
  .btn { width: 100%; }
  .header-cta { margin-left: 0; }
  .header-cta .btn, .seal-foot .btn, .stage-ctas .btn { width: auto; }
  .stage-controls { flex-direction: column; align-items: stretch; }
  .stage-tabs { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn::after, .node, .marker, .stage-stamp { transition: none; }
  .btn:hover::after { transform: translateX(-120%); }
  .btn.is-loading::before { animation: none; }
}
@media (forced-colors: active) {
  .btn { border: 1px solid ButtonText; }
}
