/* Generated by tools/sync-ascent.mjs from sbennito/referencearchitecture src/security-evolution.html. Do not edit here. */
/* Layout: the classic "march of progress" across the top (one figure per maturity stage), a step / play control, and a detail card that pairs the figure with a picture of that stage's security architecture. Motion is calm: one draw-in per stage change; only the current figure moves, and nothing moves under reduced motion.
   Look: the lgkm brand (sbennito/branding). Colours are its token values; the one accent, signal orange, marks the current stage. The
   stages behind it climb a neutral ramp from line-strong to slate, so maturity reads as depth, not as seven hues. */
:root {
  --bg: #f6f7f8;
  --surface: #ffffff;
  --surface-2: #eceef1;
  --ink: #0f1419;
  --muted: #4a5361;
  --line: #d5d9df;
  --ghost: #848e9d;
  --bad: #b42318;
  --signal: #f26419;
  --on-signal: #0f1419;
  --signal-ink: #c2410c;
  --signal-tint: #ffe6d6;
  --s1: #a9b1bc;
  --s2: #929ba8;
  --s3: #7b8594;
  --s4: #646f7f;
  --s5: #4e5a6a;
  --s6: #374455;
  --s7: #1e2a38;
  --c-idf: #1e2a38;
  --c-sail: #52606f;
  --c-pppm: #848e9d;
  --focus: #c2410c;
  --accent: var(--signal-ink);
  --dg: var(--ink);
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216; --surface: #1a1f26; --surface-2: #0a0c0f; --ink: #eef1f4; --muted: #9aa4b1; --line: #2a3039; --ghost: #626c7a;
    --bad: #ff8a80; --signal: #ff7a33; --on-signal: #0f1419; --signal-ink: #ff8a4c; --signal-tint: #3a1f12;
    --s1: #4f5967; --s2: #626c7a; --s3: #758090; --s4: #8a94a3; --s5: #9ea8b5; --s6: #b3bcc7; --s7: #c9d1db;
    --c-idf: #c9d1db; --c-sail: #8d9aab; --c-pppm: #626c7a; --focus: #ff8a4c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #1a1f26; --surface-2: #0a0c0f; --ink: #eef1f4; --muted: #9aa4b1; --line: #2a3039; --ghost: #626c7a;
  --bad: #ff8a80; --signal: #ff7a33; --on-signal: #0f1419; --signal-ink: #ff8a4c; --signal-tint: #3a1f12;
  --s1: #4f5967; --s2: #626c7a; --s3: #758090; --s4: #8a94a3; --s5: #9ea8b5; --s6: #b3bcc7; --s7: #c9d1db;
  --c-idf: #c9d1db; --c-sail: #8d9aab; --c-pppm: #626c7a; --focus: #ff8a4c; color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; margin: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 18px 40px;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg.i { width: 1em; height: 1em; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1240px; margin: 0 auto; display: grid; gap: 12px; }

.masthead { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 24px; }
.title { display: grid; gap: 4px; margin-right: auto; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.1; margin: 0; text-wrap: balance; }
.scale-note { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 5px 12px; }
.scale-note .i { font-size: 16px; }

/* The march */
.march { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px 8px; }
.figs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.figs::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--fig-h) - 6px); border-top: 2px solid var(--line); }
.figs { --fig-h: clamp(74px, 10.4vw, 130px); }
.stage-btn { border: 0; background: transparent; padding: 0 2px 6px; cursor: pointer; display: grid; align-content: start; justify-items: center; gap: 6px; border-radius: var(--radius); position: relative; }
.stage-btn:hover .figsvg { transform: translateY(-2px); }
.figsvg { width: 100%; height: var(--fig-h); display: block; overflow: visible; transition: color .6s ease, opacity .6s ease, transform .4s ease; }
.stage-btn .lbl { display: grid; justify-items: center; gap: 1px; text-align: center; min-height: 3.2em; }
.stage-btn .num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.stage-btn .nm { font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 1.8vw, 19px); line-height: 1.1; transition: color .6s ease; }
.stage-btn.past .figsvg { color: var(--ink); opacity: .78; }
.stage-btn.future .figsvg { color: var(--ghost); opacity: .7; }
.stage-btn.future .nm { color: var(--muted); }
.stage-btn.now .figsvg { color: var(--accent); opacity: 1; }
.stage-btn.now .nm { color: var(--accent); }
/* The highlighted figure walks slowly on the spot: legs swing from the hip, arms swing against them, the body
   rises a little with each step and the head looks around. */
.figsvg .up, .figsvg .arm-f, .figsvg .arm-b, .figsvg .hd, .figsvg .leg-f, .figsvg .leg-b { transform-box: view-box; }
.stage-btn.now .figsvg .leg-f { animation: stride 2.4s ease-in-out infinite; }
.stage-btn.now .figsvg .leg-b { animation: stride 2.4s ease-in-out infinite reverse; }
.stage-btn.now .figsvg .arm-f { animation: stride-arm 2.4s ease-in-out infinite reverse; }
.stage-btn.now .figsvg .arm-b { animation: stride-arm 2.4s ease-in-out infinite; }
.stage-btn.now .figsvg .up { animation: breathe 1.2s ease-in-out infinite; }
.stage-btn.now .figsvg .hd { animation: look 7.2s ease-in-out infinite; }
.stage-btn.now .figsvg .orb { transform-box: fill-box; transform-origin: center; animation: hover 2.4s ease-in-out infinite; }
/* Standing to sitting: the standing figure sinks back towards the chair as it fades, the seated one settles in. */
.figsvg .pose-sit, .figsvg .pose-stand { transform-box: view-box; transform-origin: 40px 187px; }
.figsvg .pose-stand { transition: opacity .9s ease .1s, transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.figsvg .pose-sit { opacity: 0; transform: translate(14px, -6px) rotate(3deg); transition: opacity .9s ease, transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.stage-btn.now .figsvg .pose-stand { opacity: 0; transform: translate(-16px, 10px) rotate(-6deg); transition: opacity .9s ease, transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.stage-btn.now .figsvg .pose-sit { opacity: 1; transform: none; transition: opacity 1s ease .3s, transform 1.4s cubic-bezier(.2, .8, .2, 1) .2s; }
.mini .pose-sit { opacity: 1; transform: none; }
.mini .pose-stand { opacity: 0; }
.stage-btn.now .figsvg .pose-sit :is(.leg-f, .leg-b, .arm-f, .arm-b) { animation: none; }
.stage-btn.now .figsvg .pose-sit .up { animation: lean 4s ease-in-out infinite; }
.stage-btn.now .figsvg .pose-sit .ai-on { animation: think 1.6s ease-in-out infinite; }
@keyframes lean { 0%, 100% { transform: none; } 50% { transform: rotate(-3deg); } }
@keyframes think { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes hover { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.stage-btn.now .figsvg .flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.3s ease-in-out infinite alternate; }
@keyframes breathe { 0%, 100% { transform: none; } 50% { transform: translateY(-2px); } }
@keyframes stride { 0%, 100% { transform: none; } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
@keyframes stride-arm { 0%, 100% { transform: none; } 25% { transform: rotate(-7deg); } 75% { transform: rotate(7deg); } }
@keyframes look { 0%, 100% { transform: none; } 30% { transform: rotate(4deg); } 60% { transform: rotate(-2deg); } }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(.88, 1.12); } }
.figsvg .halo { opacity: 0; transition: opacity .8s ease .2s; }
.stage-btn.now .figsvg .halo, .stage-btn.past .figsvg .halo { opacity: 1; }

/* Maturity ribbon */
.ribbon { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-top: 6px; position: relative; }
.ribbon .seg { height: 8px; background: var(--line); transition: background .6s ease; }
.ribbon .seg:first-child { border-radius: 2px 0 0 2px; }
.ribbon .seg:last-child { border-radius: 0 2px 2px 0; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.ribbon .seg.on { background: var(--seg); }
.ribbon .seg.next { background: transparent; border: 2px dashed var(--line); clip-path: none; }
.ribbon .seg.next.on { background: transparent; border-color: var(--seg); }
.ribbon .seg.now { background: var(--signal); }
.ribbon .seg.next.now { background: transparent; border-color: var(--signal); }
.ribbon-lbl { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; padding-inline: 2px; }

/* Controls */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ctl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 6px 13px; cursor: pointer; font-weight: 500; }
.ctl .i { font-size: 17px; }
.ctl.primary { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.ctl:disabled { opacity: .4; cursor: default; }
.dots { display: inline-flex; gap: 6px; margin-left: 4px; }
.dots span { width: 9px; height: 9px; border-radius: 2px; background: var(--line); transition: background .4s ease, transform .4s ease; }
.dots span.on { background: var(--signal); transform: scale(1.25); }
.controls .hint { margin-left: auto; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }

/* Detail card */
.card { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-top: 4px solid var(--signal); transition: border-color .6s ease; }
.pic { background: var(--surface-2); padding: 10px; display: grid; align-content: center; border-right: 1px solid var(--line); min-height: 190px; }
.pic svg.dg { width: 100%; height: auto; max-height: 230px; display: block; overflow: visible; }
.info { padding: 12px 16px; display: grid; gap: 7px; align-content: start; }
.kicker { font-family: var(--font-mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.info h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.1; margin: 2px 0 0; color: var(--accent); }
.tagline { font-size: 16px; font-weight: 500; margin: 0; text-wrap: pretty; }
.like { display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: var(--radius); padding: 6px 10px; color: var(--muted); font-size: 14px; }
.like .mini { width: 30px; height: 50px; flex: none; color: var(--accent); }
.like b { color: var(--ink); font-weight: 600; }
.traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.traits li { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.traits .ti { width: 28px; height: 28px; border-radius: var(--radius); display: grid; place-items: center; flex: none; background: var(--signal-tint); color: var(--ink); font-size: 16px; }
.pressure { display: flex; gap: 10px; align-items: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: 7px 10px; font-size: 14px; }
.pressure .i { font-size: 20px; color: var(--muted); }
.pressure .pl { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); display: block; }
.more-btn { justify-self: start; border: 0; background: none; padding: 0; color: var(--accent); cursor: pointer; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.more-btn .i { transition: transform .3s ease; }
.more-btn[aria-expanded="true"] .i { transform: rotate(90deg); }
.more { color: var(--muted); margin: 0; font-size: 14px; }
.cta { display: inline-flex; align-items: center; gap: 8px; justify-self: start; background: var(--signal); color: var(--on-signal); text-decoration: none; padding: 8px 14px; border-radius: var(--radius); font-weight: 500; }
.cta .i { font-size: 17px; }

.fade-in { animation: fade .6s ease-out both; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Diagram primitives */
.dg .nd { fill: var(--surface); stroke-width: 2.2; }
.dg .ii { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dg .ln { fill: none; stroke-width: 2; stroke-linecap: round; }
.dg .ln.dash { stroke-dasharray: 5 6; }
.dg .ln.faint { opacity: .45; }
.dg .bd { stroke: var(--surface); stroke-width: 1.5; }
.dg .dr { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s ease-out forwards; animation-delay: var(--d, 0ms); }
.dg .dr.dash { stroke-dasharray: 1; }
.dg .dr.dash.done { stroke-dasharray: 5 6; stroke-dashoffset: 0; animation: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.dg .pop { opacity: 0; animation: pop .6s ease-out forwards; animation-delay: var(--d, 0ms); }
@keyframes pop { to { opacity: 1; } }
.dg .band { fill: var(--surface); stroke: currentColor; stroke-width: 2; }

/* Years overlay */
.yrs { display: grid; justify-items: center; gap: 2px; margin-top: 3px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); line-height: 1.25; }
.yrs span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.yrs .i { font-size: 11px; }
.stage-btn.now .yrs { color: var(--ink); }
.pace { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 6px; display: grid; gap: 0; }
.pace-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.pace-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0; }
.pace-head p { margin: 0; color: var(--muted); font-size: 13px; }
#pace-svg { width: 100%; display: block; overflow: visible; }
#pace-svg text { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); }
#pace-svg .row-lbl { font-family: var(--font-body); font-size: 12px; font-weight: 600; fill: var(--ink); }
#pace-svg .dl { fill: var(--ink); }
#pace-svg .dl.now { font-weight: 600; fill: var(--accent); }
#pace-svg .axis { stroke: var(--line); stroke-width: 2; }
#pace-svg .tick { stroke: var(--line); stroke-width: 1.5; }
#pace-svg .link { stroke: var(--ghost); stroke-width: 1.5; stroke-dasharray: 3 4; }
#pace-svg .dot { transform-box: fill-box; transform-origin: center; transition: transform .5s ease, opacity .5s ease; }
#pace-svg .dot.future { opacity: .35; }
#pace-svg .dot.now { transform: scale(1.5); fill: var(--signal); }
#pace-svg .today { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 2 3; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.when div { background: var(--surface-2); border-radius: var(--radius); padding: 6px 10px; display: grid; gap: 1px; font-size: 13px; color: var(--muted); }
.when b { color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.when b .i { color: var(--accent); }
.when .gap { font-family: var(--font-mono); font-size: 11px; }
body.no-years .pace { display: none; }
#years[aria-pressed="true"] { border-color: var(--ink); }

.foot { color: var(--muted); font-size: 12px; margin: 0; max-width: 90ch; }

@media (max-width: 820px) {
  .card { grid-template-columns: 1fr; }
  .pic { border-right: 0; border-bottom: 1px solid var(--line); min-height: 0; }
  .controls .hint { display: none; }
}
@media (max-width: 520px) {
  .yrs { font-size: 9.5px; }
  .yrs .i, .yrs .ago { display: none; }
  .when { grid-template-columns: 1fr; }
  .pace-head p { font-size: 12px; }
  .wrap { gap: 10px; }
  .stage-btn .num { display: none; }
  .stage-btn .nm { font-size: 11px; letter-spacing: -.03em; hyphens: auto; } /* below the type scale: seven names share a phone width, and Instrument Sans is wider than a condensed face */
  .stage-btn { padding-inline: 0; }
  .ribbon-lbl span:nth-child(2) { display: none; }
  .ctl .t { display: none; }
  .ctl { padding: 8px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dg .dr, .dg .pop, .fade-in, .stage-btn.now .figsvg * { animation: none !important; }
  .dg .dr { stroke-dashoffset: 0; }
  .dg .pop { opacity: 1; }
  .figsvg, .stage-btn .nm, #pace-svg .dot { transition: none; }
}
