/* =========================================================
   Lucas Campos Queiroz · portfolio
   One visual world: navy hero/contact, light content.
   ========================================================= */
:root {
  --navy: #050e1f;
  --navy-2: #0b1a33;
  --navy-line: rgba(255, 255, 255, .12);
  --on-navy: #f4f6fa;
  --on-navy-2: rgba(244, 246, 250, .66);

  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #e3e6eb;
  --line-2: #eef0f3;
  --ink: #0b1220;
  --ink-2: #4a5465;
  --ink-3: #7c8595;

  --brand: #0b8f68;        /* green on light */
  --brand-bright: #1ad598; /* green on navy */
  --blue: #086ef9;
  --warn: #c27a06;
  --bad: #d4453b;
  --info: #5b6b85;

  --ok-bg: #e3f5ee; --warn-bg: #fbf0da; --bad-bg: #fbe5e3; --info-bg: #eaeef5;

  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --r: 14px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 32px; }
@media (max-width: 560px) { .wrap { padding-inline: 18px; } }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.dark { background: var(--navy); color: var(--on-navy); }
.dark .muted { color: var(--on-navy-2); }

.kicker { font-size: 14px; font-weight: 500; color: var(--brand-bright); margin-bottom: 20px; }
.kicker-dark { color: var(--brand); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px); color: var(--on-navy); transition: background .25s, color .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); color: var(--ink); border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { font-weight: 600; letter-spacing: -.01em; text-decoration: none; font-size: 16px; }
.nav nav { display: flex; align-items: center; gap: 6px; }
.nav nav a { text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 99px; opacity: .8; }
.nav nav a:hover { opacity: 1; }
.nav .nav-cta { opacity: 1; border: 1px solid currentColor; padding: 7px 16px; }
@media (max-width: 640px) { .nav nav a:not(.nav-cta) { display: none; } }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 99px; font-weight: 500; font-size: 16px; text-decoration: none; transition: background .2s, color .2s; }
.btn-light { background: var(--on-navy); color: var(--navy); }
.btn-light:hover { background: var(--brand-bright); }
.btn-ghost { color: var(--on-navy); border: 1px solid var(--navy-line); }
.btn-ghost:hover { border-color: var(--on-navy-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--brand); }
.btn-outline { color: var(--ink); border: 1px solid var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }

/* ---------- hero ---------- */
.hero { padding-top: calc(68px + 88px); padding-bottom: 96px; background: radial-gradient(1000px 520px at 85% 20%, #0f2a4e 0%, rgba(15, 42, 78, 0) 70%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 600; letter-spacing: -.035em; line-height: 1.02; }
.lead { font-size: 19px; line-height: 1.6; color: var(--on-navy-2); max-width: 56ch; margin-top: 28px; }
.about { margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--navy-line); padding-top: 24px; }
.about dt { font-size: 13px; color: var(--brand-bright); font-weight: 500; }
.about dd { margin: 4px 0 0; font-size: 15px; color: var(--on-navy-2); }
.photo { position: relative; width: 340px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--navy-2); border: 1px solid var(--navy-line); display: grid; place-items: center; }
.photo span { font-size: 88px; font-weight: 600; letter-spacing: -.03em; color: var(--brand-bright); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); }
.legend i { display: inline-block; vertical-align: middle; margin-right: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-before { background: var(--surface); border: 2px solid var(--ink-3); }
.dot-now { background: var(--brand); }

/* ---------- sections ---------- */
.section { padding-block: 120px; }
.section-tint { background: var(--bg); }
.section:not(.section-tint) { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2, .contact h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; }
.sub { font-size: 18px; color: var(--ink-2); margin-top: 18px; max-width: 60ch; }
.h-sm { font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }

/* ---------- projects timeline ---------- */
.tl-head { margin-bottom: 40px; }
.tl-head h2 { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -.03em; }

/* rail + arrows stay pinned under the nav while a slide is being read */
.tl-bar { position: sticky; top: 68px; z-index: 5; display: flex; align-items: center; gap: 28px; padding: 10px 0; margin-bottom: 14px; background: rgba(245, 246, 248, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.tl-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tl-count { font: 13px var(--mono); color: var(--ink-3); margin-right: 6px; min-width: 44px; text-align: right; }
.tl-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 18px var(--font); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tl-btn:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); }
.tl-btn:disabled { opacity: .35; cursor: default; }

.tl-rail { --p: 0; flex: 1; min-width: 0; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tl-rail::before, .tl-rail::after { content: ""; position: absolute; top: 7px; left: 7px; height: 2px; border-radius: 2px; }
.tl-rail::before { width: calc(100% - 100% / var(--n, 7)); background: var(--line); }
.tl-rail::after { width: calc((100% - 100% / var(--n, 7)) * var(--p)); background: var(--brand); transition: width .35s ease; }
.tl-rail button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 0 8px 0 0; border: 0; background: none; font: inherit; color: var(--ink-3); text-align: left; cursor: pointer; }
.tl-rail i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: background .2s, border-color .2s, transform .2s; }
.tl-rail .tl-date { font: 11.5px/1.2 var(--mono); white-space: nowrap; }
.tl-rail .tl-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.tl-rail button:hover { color: var(--ink); }
.tl-rail .past i { background: var(--brand); border-color: var(--brand); }
.tl-rail [aria-current="true"] { color: var(--ink); font-weight: 600; }
.tl-rail [aria-current="true"] i { background: var(--surface); border: 4px solid var(--brand); transform: scale(1.15); }

/* prev / next at the bottom of each slide */
.slide-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); }
.slide-nav button { display: grid; gap: 2px; max-width: 48%; padding: 12px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font: 600 15px/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .2s, background .2s; }
.slide-nav button:hover { border-color: var(--ink); }
.slide-nav small { font: 400 12.5px var(--mono); color: var(--ink-3); }
.slide-nav .sn-next { margin-left: auto; text-align: right; background: var(--ink); border-color: var(--ink); color: #fff; }
.slide-nav .sn-next small { color: rgba(255, 255, 255, .6); }
.slide-nav .sn-next:hover { background: var(--brand); border-color: var(--brand); }

.tl-track { position: relative; display: flex; align-items: flex-start; gap: 24px; overflow-x: auto; overflow-y: hidden; transition: height .35s ease; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; cursor: grab; border-radius: 22px; }
.tl-track::-webkit-scrollbar { display: none; }
.tl-track.dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.tl-track.dragging * { pointer-events: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 44px; min-width: 0; }
.slide .panel { background: var(--bg); border-color: var(--line-2); }
.slide-next { display: grid; place-items: center; text-align: center; min-height: 420px; }
.next { max-width: 620px; display: grid; justify-items: center; }
.next h3 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.03em; }
.next .actions { justify-content: center; }

.case { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
.case-tag { font-size: 14px; font-weight: 500; color: var(--brand); margin-bottom: 14px; }
.case h3 { font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.025em; }
.case .where { margin-top: 12px; font-size: 15px; color: var(--brand); font-weight: 500; }
.case-facts { margin: 28px 0 0; display: grid; gap: 18px; }
.case-facts dt { font-size: 13px; font-weight: 600; color: var(--ink); text-transform: uppercase; letter-spacing: .06em; }
.case-facts dd { margin: 4px 0 0; color: var(--ink-2); font-size: 16px; }
.case-facts dd + dd { margin-top: -8px; }
.case-visual { display: grid; gap: 20px; min-width: 0; align-content: start; }

.actions-sm { margin-top: 24px; }
.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 15px; font-weight: 500; }
.links a { color: var(--brand); text-decoration: none; }
.links a:hover { text-decoration: underline; }
.actions-sm .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

.shot { position: relative; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--line-2); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 60%; pointer-events: none; -webkit-user-drag: none; }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; font-weight: 500; color: #fff; background: rgba(5, 14, 31, .72); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: 99px; }

/* redrawn project boards (Trello) */
.board { display: flex; gap: 8px; padding: 12px; border-radius: 12px; background: linear-gradient(160deg, #1d3a66, #2f6a8a); align-items: start; }
.b-col { flex: 1 1 0; background: #101418; border-radius: 10px; padding: 8px; display: grid; gap: 6px; min-width: 0; }
.b-col:has(.b-empty) { flex-grow: .7; }
.b-col:last-child { flex-grow: 1.5; }
.b-title { display: flex; justify-content: space-between; gap: 4px; font-size: 11.5px; font-weight: 600; color: #e6e9ee; padding: 2px 2px 4px; }
.b-title span { color: #8a93a2; font-weight: 400; }
.b-card { position: relative; display: block; font-style: normal; font-size: 11.5px; line-height: 1.35; color: #d6dae1; background: #22272e; border-radius: 7px; padding: 7px 8px; overflow-wrap: break-word; }
.b-pin { color: #fff; font-weight: 600; padding-block: 12px 7px; }
.b-blue { background: #2563c9; } .b-orange { background: #99511d; } .b-purple { background: #7a45a6; } .b-olive { background: #7a5f1c; }
.b-done::before { content: "✓"; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-right: 5px; border-radius: 50%; background: #4bce97; color: #101418; font-size: 9px; font-weight: 700; vertical-align: 0; }
.b-card em { display: block; width: fit-content; margin-top: 5px; font: 10.5px var(--mono); font-style: normal; border-radius: 4px; padding: 1px 5px; }
.b-date { background: #4bce97; color: #101418; }
.b-check { background: #2c333a; color: #b6bdc8; }
.b-card u { position: absolute; right: 7px; bottom: 7px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #3d4b63; color: #dfe4ec; font: 600 9px var(--font); text-decoration: none; }
.b-empty { display: block; height: 28px; border: 1px dashed #3a414b; border-radius: 7px; }
.b-card:has(.lb) { padding-top: 17px; }
.lb { position: absolute; top: 7px; left: 8px; width: 22px; height: 5px; border-radius: 3px; }
.lb + .lb { left: 34px; }
.lb-orange { background: #c2641f; } .lb-green { background: #3f8f5f; } .lb-yellow { background: #a8851e; } .lb-red { background: #c9372c; }

/* Jira workflow */
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 0; counter-reset: st; }
.flow li { position: relative; font-size: 13px; font-weight: 500; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); margin-right: 20px; }
.flow li:not(:last-child)::after { content: "→"; position: absolute; right: -15px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 400; }
.flow .work { background: var(--info-bg); border-color: #cdd6e4; color: var(--ink); }
.flow .wait { background: transparent; border-style: dashed; border-color: var(--ink-3); color: var(--ink-3); }
.flow .gate { background: var(--warn-bg); border-color: #efd39b; color: #7a4d04; }
.flow .done { background: var(--ok-bg); border-color: #bfe6d4; color: var(--brand); }
.fl { width: 14px; height: 10px; border-radius: 3px; border: 1px solid; }
.fl-work { background: var(--info-bg); border-color: #cdd6e4; }
.fl-wait { border: 1px dashed var(--ink-3); }
.fl-gate { background: var(--warn-bg); border-color: #efd39b; }

/* jira workflow diagram */
.wf-scroll { overflow-x: auto; margin-inline: -4px; padding: 0 4px 4px; scrollbar-width: thin; }
.wf { min-width: 0; }
.wf-hint { display: none; font-size: 12.5px; color: var(--ink-3); margin-top: -6px; }
.wf-lane { fill: var(--surface); }
.wf-lane.alt { fill: #fbfbfc; }
.wf-lane-name { font: 600 11.5px var(--font); fill: var(--ink-2); letter-spacing: .02em; }
.wf-edge { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.wf-back { fill: none; stroke: var(--bad); stroke-width: 1.3; stroke-dasharray: 4 3; opacity: .75; }
#wf-arrow path { fill: var(--ink-3); }
#wf-arrow-back path { fill: var(--bad); }
.wf-node rect { fill: var(--surface); stroke: var(--line); stroke-width: 1.2; }
.wf-node text { font: 500 11.5px var(--font); fill: var(--ink); }
.wf-node.work rect { fill: var(--info-bg); stroke: #cdd6e4; }
.wf-node.wait rect { fill: var(--bg); stroke: var(--ink-3); stroke-dasharray: 3 2.5; }
.wf-node.wait text { fill: var(--ink-2); }
.wf-node.done rect { fill: var(--ok-bg); stroke: #bfe6d4; }
.wf-node.done text { fill: var(--brand); font-weight: 600; }
.wf-note { font: 10px var(--mono); fill: var(--ink-3); }
.wf-note.back { fill: var(--bad); }
.ln.ln-back { border-color: var(--bad); border-top-style: dashed; border-top-width: 2px; }
.wf-stats { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.wf-stats b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.wf-notes { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.wf-notes b { color: var(--ink); font-weight: 600; }

/* automation rules */
.rules-auto { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rules-auto li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1.35; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; }
.rules-auto span::before { font: 600 10px var(--mono); letter-spacing: .06em; margin-right: 6px; padding: 2px 5px; border-radius: 4px; vertical-align: 1px; }
.ra-when::before { content: "WHEN"; background: var(--info-bg); color: var(--info); }
.ra-if::before { content: "IF"; background: var(--warn-bg); color: #7a4d04; }
.ra-then::before { content: "THEN"; background: var(--ok-bg); color: var(--brand); }
.ra-if, .ra-then { color: var(--ink-2); }
.ra-when { font-weight: 500; }
.rules-auto span + span { padding-left: 16px; position: relative; }
.rules-auto span + span::after { content: "→"; position: absolute; left: 0; color: var(--ink-3); }

/* agents + data pipe */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.agents div { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; }
.agents b { font-size: 14.5px; font-weight: 600; }
.agents b::before { content: "✦"; color: var(--blue); margin-right: 6px; }
.agents p { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.pipe { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pipe li { position: relative; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; line-height: 1.3; }
.pipe-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pipe-4 li { font-size: 13.5px; }
.pipe small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.pipe li:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font-weight: 400; }

/* ticket anatomy */
.anatomy { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; }
.j-card { background: #1f2124; color: #dfe1e5; border-radius: 8px; padding: 12px; display: grid; gap: 8px; font-size: 13px; box-shadow: inset 3px 0 0 #c9822b; }
.j-title { font-weight: 500; }
.j-date { font-size: 12.5px; color: #f1a39c; }
.j-pts { display: inline-grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 4px; background: #3a3d42; font: 11px var(--mono); color: #dfe1e5; }
.two-boards { margin-top: 6px; }
.evo.two-boards td:last-child { color: var(--ink-2); font-weight: 400; }
.evo.two-boards thead th:last-child { color: var(--ink-3); }
.j-lbl { display: inline-block; font-size: 11.5px; padding: 1px 6px; border: 1px solid #4a4d52; border-radius: 4px; color: #c9ccd1; }
.j-icons { display: flex; align-items: center; gap: 4px; }
.j-flag { width: 11px; height: 12px; background: #e2483d; clip-path: polygon(0 0, 100% 0, 75% 45%, 100% 90%, 18% 90%, 18% 100%, 0 100%); }
.j-branch { font-style: normal; color: #4bce97; font-size: 14px; }
.j-foot { display: flex; align-items: center; gap: 6px; font: 12px var(--mono); color: #b3b7bd; }
.j-bug { width: 12px; height: 12px; border-radius: 3px; background: #e2483d; }
.j-foot u { margin-left: auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #5a52c7; color: #fff; font: 600 9.5px var(--font); text-decoration: none; }
.j-card sup, .callouts li::marker { font: 600 10px var(--mono); }
.j-card sup { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-bright); color: var(--navy); vertical-align: 2px; margin-left: 3px; }
.callouts { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.callouts li::marker { color: var(--brand); font-size: 13px; }
.callouts b { color: var(--ink); font-weight: 600; }

/* indicator panel */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.kpis div { background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; display: grid; gap: 2px; }
.kpis b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.kpis b.up { color: var(--brand); } .kpis b.warn { color: var(--warn); }
.kpis span { font-size: 13px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.kpis em { font-style: normal; font-size: 12px; color: var(--ink-3); }
.cap-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cap-big b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.cap-big span { font-size: 13.5px; color: var(--ink-2); }
.capbar { position: relative; display: flex; height: 22px; border-radius: 99px; overflow: hidden; background: var(--line-2); }
.capbar s { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--ink); }
.cb-a { background: #6d93d3; } .cb-b { background: var(--warn); } .cb-c { background: #3fb6c9; }
.cb-free { background: repeating-linear-gradient(135deg, var(--ok-bg) 0 6px, #cfeadf 6px 12px); }
.cb-buf { background: repeating-linear-gradient(135deg, var(--line-2) 0 6px, var(--line) 6px 12px); }
.s-created { fill: none; stroke: var(--bad); stroke-width: 2.2; stroke-linejoin: round; }
.legend .ln-created { border-top-color: var(--bad); }
.workload { display: grid; gap: 10px; }
.wl-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) 52px; gap: 12px; align-items: center; }
.wl-name { font-size: 14px; color: var(--ink-2); }
.wl-bar { display: flex; height: 22px; gap: 2px; }
.wl-bar i { display: grid; place-items: center; font: 500 11px var(--mono); color: #fff; font-style: normal; border-radius: 4px; min-width: 18px; }
.wl-work { background: var(--ink); } .wl-review { background: #6d93d3; } .wl-blocked { background: var(--warn); } .wl-queue { background: #b8c1cf; }
.wl-total { font: 12.5px var(--mono); color: var(--ink-3); text-align: right; }

/* board evolution table */
.evo { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.evo th, .evo td { text-align: left; vertical-align: top; padding: 10px 10px 10px 0; border-top: 1px solid var(--line); }
.evo thead th { border-top: 0; font-size: 12.5px; font-weight: 600; color: var(--ink-3); padding-top: 0; }
.evo thead th:last-child { color: var(--brand); }
.evo tbody th { font-weight: 600; width: 92px; }
.evo td { color: var(--ink-2); }
.evo td:last-child { color: var(--ink); font-weight: 500; }

.ways { margin-top: 32px; padding: 18px 20px; border-radius: 14px; background: var(--ok-bg); }
.ways p { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); margin-bottom: 10px; }
.ways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ways li { font-size: 14px; padding: 5px 12px; border-radius: 99px; background: var(--surface); color: var(--ink); }

.panel { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.panel figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.panel figcaption b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.panel figcaption .muted { font-size: 13px; }
.reading { font-size: 14px; color: var(--ink-2); border-top: 1px solid var(--line-2); padding-top: 12px; }

.pill { display: inline-flex; align-items: center; justify-self: end; font-size: 12.5px; font-weight: 500; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--brand); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: var(--info-bg); color: var(--info); }


/* vertical steps (evolution) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; padding: 0 0 18px 28px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 8px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.steps li.now::before { background: var(--brand); box-shadow: 0 0 0 4px var(--ok-bg); }
.steps span { font-size: 12.5px; color: var(--ink-3); }
.steps .now span { color: var(--brand); font-weight: 500; }
.steps b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.steps p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* radar */
.r-ring { fill: none; stroke: var(--line); }
.r-spoke { stroke: var(--line); }
.r-tick { font: 10px var(--mono); fill: var(--ink-3); }
.r-before { fill: var(--ink-3); fill-opacity: .12; stroke: var(--ink-3); stroke-width: 1.5; }
.r-now { fill: var(--brand); fill-opacity: .22; stroke: var(--brand); stroke-width: 2; }
.r-target { fill: none; stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 5 4; }
.r-dot { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; }
.r-label { font: 500 13px var(--font); fill: var(--ink); }
.r-val { font: 11.5px var(--mono); fill: var(--ink-3); }
.r-sq-before { background: rgba(124, 133, 149, .25); border: 1.5px solid var(--ink-3); }
.r-sq-now { background: rgba(11, 143, 104, .3); border: 1.5px solid var(--brand); }
.ln.ln-target { border-color: var(--blue); border-top-style: dashed; border-top-width: 2px; }

/* contracts */
.contracts { display: grid; gap: 4px; }
.ct-head, .ct-row { display: grid; grid-template-columns: 170px minmax(0, 1fr) 110px; gap: 16px; align-items: center; }
.ct-head { font-size: 12.5px; color: var(--ink-3); padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.ct-head span:last-child { text-align: right; }
.ct-row { padding-block: 10px; border-bottom: 1px solid var(--line-2); }
.ct-row:last-child { border-bottom: 0; }
.ct-name b { display: block; font-size: 15px; font-weight: 600; }
.ct-name span { font-size: 13px; color: var(--ink-3); }
.ct-bar { position: relative; height: 12px; background: var(--line-2); border-radius: 99px; }
.ct-fill { position: absolute; inset: 0 auto 0 0; border-radius: 99px; }
.ct-fill.ok { background: var(--brand); } .ct-fill.warn { background: var(--warn); } .ct-fill.bad { background: var(--bad); } .ct-fill.info { background: var(--info); }
.ct-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--ink); transform: translateX(-50%); border-radius: 2px; }
.ct-num { position: absolute; right: 0; top: -22px; font: 12.5px var(--mono); color: var(--ink-2); }

/* svg charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.grid line { stroke: var(--line-2); }
.axis text { font: 11.5px var(--mono); fill: var(--ink-3); }
.s-pace { fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 6 5; }
.s-area { fill: var(--brand); fill-opacity: .1; }
.s-actual { fill: none; stroke: var(--brand); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.s-forecast { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 3 4; }
.p-actual { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.p-warn { fill: var(--warn); stroke: var(--surface); stroke-width: 2; }
.t-warn { font: 500 12px var(--font); fill: var(--warn); }
.t-today { font: 500 12px var(--font); fill: var(--brand); }
.bars rect { fill: var(--ink); fill-opacity: .82; }
.bars rect.over { fill: var(--warn); fill-opacity: 1; }
.cap { stroke: var(--blue); stroke-width: 1.8; stroke-dasharray: 7 5; }
.t-cap { font: 500 12px var(--font); fill: var(--blue); }
.ln { width: 18px; height: 0; border-top: 2.5px solid; }
.ln-actual { border-color: var(--brand); }
.ln-pace { border-color: var(--ink-3); border-top-style: dashed; border-top-width: 2px; }
.ln-forecast { border-color: var(--warn); border-top-style: dotted; }

.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rules li { display: grid; grid-template-columns: 80px minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.rules li:last-child { border-bottom: 0; }
.rules span { font-weight: 600; }
.rules code { font: 13px var(--mono); color: var(--ink); }
.rules em { font-style: normal; color: var(--ink-3); }

/* gantt */
.gantt { display: grid; gap: 8px; }
.g-head, .g-row, .g-foot { display: grid; grid-template-columns: 96px minmax(0, 1fr) 130px; gap: 14px; align-items: center; }
.g-months { display: grid; grid-template-columns: repeat(6, 1fr); font-size: 12.5px; color: var(--ink-3); }
.g-months span { border-left: 1px solid var(--line); padding-left: 6px; }
.g-name { font-size: 14px; font-weight: 500; }
.g-track { position: relative; height: 26px; background: repeating-linear-gradient(to right, transparent 0 calc(100% / 6 - 1px), var(--line-2) calc(100% / 6 - 1px) calc(100% / 6)); border-radius: 6px; }
.g-seg { position: absolute; top: 4px; bottom: 4px; border-radius: 4px; border-right: 2px solid var(--surface); }
.g-today { position: absolute; top: -6px; bottom: -6px; width: 2px; background: var(--bad); transform: translateX(-50%); }
.g-foot > div { position: relative; height: 16px; }
.g-today-label { position: absolute; transform: translateX(-50%); font-size: 12px; font-weight: 500; color: var(--bad); }
.sq { width: 10px; height: 10px; border-radius: 3px; }
.ph-imm { background: #c9d6ea; } .ph-con { background: #9fb6dc; } .ph-map { background: #6d93d3; }
.ph-ui { background: #3f73d6; } .ph-dev { background: #0b8f68; } .ph-dep { background: #0a5c46; } .ph-sup { background: #b8c1cf; }
.legend-phases { font-size: 12.5px; }

/* risk */
.hm-wrap { display: flex; align-items: center; gap: 10px; }
.hm-y { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12.5px; color: var(--ink-3); }
.hm { flex: 1; display: grid; grid-template-columns: 18px repeat(5, minmax(0, 1fr)); gap: 4px; max-width: 460px; }
.hm > i { aspect-ratio: 1.5; border-radius: 6px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 3px; padding: 5px; }
.hm > i.l { background: #e3f5ee; } .hm > i.m { background: #fbf0da; } .hm > i.h { background: #f9dcc4; } .hm > i.c { background: #f5c9c4; }
.hm > i b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font: 500 11px var(--mono); }
.hm-l { display: grid; place-items: center; font: 12px var(--mono); color: var(--ink-3); }
.hm-x { text-align: center; font-size: 12.5px; color: var(--ink-3); max-width: 490px; }
.risk-list { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 13.5px; color: var(--ink-2); }
.risk-list li { break-inside: avoid; margin-bottom: 4px; }
.plan dl { margin: 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px 18px; font-size: 14.5px; }
.plan dt { font-weight: 600; }
.plan dd { margin: 0; color: var(--ink-2); }
.plan ol { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

.draft { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--warn); border-radius: 10px; background: var(--warn-bg); color: #7a4d04; font-size: 14.5px; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.tags li { font-size: 14px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); }

/* ---------- approach ---------- */
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-bottom: 72px; }
.principles div { border-top: 2px solid var(--ink); padding-top: 20px; }
.principles b { display: block; font-size: 19px; font-weight: 600; letter-spacing: -.015em; margin-bottom: 6px; }
.principles p { color: var(--ink-2); font-size: 15.5px; }
.methods { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
.methods div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-top: 1px solid var(--line); }
.methods dt { font-weight: 600; }
.methods dd { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.education { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 12px 40px; font-size: 15px; color: var(--ink-2); }
.education b { color: var(--ink); font-weight: 600; }

/* ---------- contact / footer ---------- */
.contact { padding-block: 120px; }
.contact .lead { margin-top: 18px; }
.contact .small { margin-top: 18px; }
.footer { border-top: 1px solid var(--navy-line); padding-block: 28px; font-size: 13.5px; }
.footer-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--on-navy-2); }

/* tabs: one visual at a time on the right side of a slide */
.v-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--line-2); overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.v-tabs::-webkit-scrollbar { display: none; }
.v-tabs button { flex: 0 0 auto; border: 0; background: none; padding: 7px 14px; border-radius: 9px; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.v-tabs button:hover { color: var(--ink); }
.v-tabs [aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 18, 32, .08); }
.v-group { display: grid; gap: 14px; align-content: start; }
[role="tabpanel"][hidden] { display: none !important; }

/* desktop: every slide fits the screen under the nav and the timeline bar */
@media (min-width: 1001px) {
  .slide { height: clamp(540px, calc(100svh - 68px - 58px - 30px), 780px); padding: 28px 32px; display: flex; flex-direction: column; }
  .slide > .case { flex: 1; min-height: 0; gap: 44px; grid-template-rows: minmax(0, 1fr); }
  .case-text, .case-visual.tabbed > [role="tabpanel"] { min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
  .case-text { padding-right: 8px; }
  .case-visual { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
  .case-visual.tabbed > [role="tabpanel"] { flex: 0 1 auto; }
  .case-visual > .shot, .case-visual.tabbed > .shot[role="tabpanel"] { flex: 1 1 0; min-height: 0; overflow: hidden; }
  .case-visual > .shot img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .case-wide-visual { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); }
  .case h3 { font-size: clamp(22px, 1.8vw, 27px); }
  .case-tag { margin-bottom: 10px; }
  .case .where { font-size: 14px; margin-top: 8px; }
  .case-facts { margin-top: 16px; gap: 10px; }
  .case-facts dt { font-size: 12px; }
  .case-facts dd { font-size: 15px; line-height: 1.55; }
  .ways { margin-top: 18px; padding: 12px 14px; }
  .ways p { margin-bottom: 8px; font-size: 12px; }
  .ways li { font-size: 13px; padding: 4px 11px; }
  .ways { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
  .ways p { margin: 0 4px 0 0; }
  .slide-nav { display: none; }
  .slide-next { height: auto; min-height: 420px; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid, .case { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-grid .photo { order: -1; width: 180px; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 8px; }
  .methods { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 88px; }
  .slide { padding: 32px; }
  .agents { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding-top: calc(68px + 48px); }
  .hero-grid .photo { width: 128px; }
  .photo span { font-size: 48px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .tl-head { margin-bottom: 28px; }
  .tl-bar { gap: 14px; padding: 10px 0; }
  .tl-btn { width: 40px; height: 40px; }
  .tl-rail .tl-date { display: none; }
  .tl-rail i { width: 10px; height: 10px; }
  .tl-rail::before, .tl-rail::after { top: 4px; left: 4px; }
  .tl-rail [aria-current="true"] i { border-width: 3px; }
  .slide-nav { margin-top: 32px; }
  .slide-nav button { padding: 10px 14px; font-size: 14px; }
  .wf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wf { min-width: 600px; }
  .wf-hint { display: block; }
  .pipe { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pipe li:not(:last-child)::after { content: "↓"; right: auto; left: 16px; top: auto; bottom: -19px; transform: none; }
  .tl-track { gap: 12px; }
  .slide { flex-basis: 92%; padding: 22px 18px; border-radius: 18px; }
  .anatomy { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { flex-wrap: wrap; }
  .b-col { flex-basis: 40%; }
  .board .b-col:last-child { flex-basis: 100%; }
  .evo thead { display: none; }
  .evo tr { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
  .evo th, .evo td { display: block; border: 0; padding: 2px 0; width: auto; }
  .evo td::before { content: attr(data-h) " · "; color: var(--ink-3); font-weight: 400; }
  .ct-head { display: none; }
  .ct-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px; }
  .ct-bar { grid-column: 1 / -1; grid-row: 2; }
  .g-head, .g-row, .g-foot { grid-template-columns: 76px minmax(0, 1fr); }
  .g-row .pill, .g-head > span:last-child, .g-foot > span:last-child { display: none; }
  .rules li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .plan dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .plan dd { margin-bottom: 10px; }
  .risk-list { columns: 1; }
  .methods div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .panel { padding: 18px; }
}
