@font-face { font-family: Manrope; src: url('assets/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: Fraunces; src: url('assets/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --ink: #172f29;
  --muted: #50635a;
  --line: #d7dcd0;
  --green: #214638;
  --mint: #e4f2c8;
  --serif: Fraunces, Georgia, serif;
  font-family: Manrope, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.45;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #477f64; outline-offset: 3px; }
.skip { position: fixed; top: -100px; z-index: 8; padding: 12px; background: var(--paper); }
.skip:focus { top: 8px; }
.top {
  padding: 11px clamp(18px, 4vw, 66px);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 14px; border-bottom: 1px solid #dfe1d7;
}
.brand, .chat-heading, .guide-head { display: flex; align-items: center; gap: 9px; }
.brand { width: fit-content; white-space: nowrap; }
.brand strong { font-family: var(--serif); font-size: 25px; letter-spacing: -.06em; font-weight: 600; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 700; }
.mark { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: none; font-size: 23px; color: var(--mint); background: var(--green); border-radius: 50%; }
.top nav { display: flex; gap: 4px; align-items: center; }
.top nav a, .quiet, .accent, .icon, .segments button, .org-menu summary {
  min-height: 44px; border: 1px solid transparent; border-radius: 999px;
  padding: 10px 15px; background: none; font-size: 13px; font-weight: 800;
}
.top nav a { display: grid; place-items: center; color: var(--muted); }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); background: #e8ebdf; }
.top > button { justify-self: end; }
.quiet { background: #fdfcf8; border-color: var(--line); }
.quiet:hover { background: #edf1e8; }
.top-chat { display: flex; gap: 6px; align-items: center; }
.accent { background: var(--green); color: #fff; padding-inline: 18px; }
.accent:hover { background: #345b4a; }
main, .footer { width: min(1580px, 100%); margin: auto; padding-inline: clamp(18px, 4vw, 66px); }
.hero { padding: clamp(22px, 3.2vw, 48px) 0 24px; }
.eyebrow { color: #405d4f; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.status-dot { flex: none; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5b8064; }
h1 { overflow-wrap: anywhere; margin: 6px 0 5px; font: 475 clamp(41px, 6vw, 85px)/1.01 var(--serif); letter-spacing: -.065em; }
p { color: var(--muted); margin: 0; }
.hero p { font-size: 15px; }
.studio { display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 21vw, 306px); align-items: stretch; gap: 15px; }
.workspace { min-width: 0; display: flex; flex-direction: column; border: 1px solid #ccd5c8; border-radius: 24px; background: #fcfcf7; }
.workspace-head, .workspace-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 19px; }
.workspace-head { position: relative; z-index: 2; }
.workspace-head h2, .guide h2, .dialog-head h2 { margin: 0; font-size: 19px; letter-spacing: -.04em; font-weight: 800; }
.workspace-title p { font-size: 11px; margin-top: 3px; }
.studio-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.segments { display: flex; padding: 3px; gap: 2px; background: #e9eee4; border-radius: 999px; }
.segments button { color: #435d4f; white-space: nowrap; }
.segments button[aria-pressed="true"] { color: white; background: var(--green); box-shadow: 0 3px 8px #18342a26; }
.segments button span { color: #6a805e; }
.segments button[aria-pressed="true"] span { color: var(--mint); }
.org-menu { position: relative; }
.org-menu summary { list-style: none; cursor: pointer; border-color: var(--line); display: flex; gap: 6px; align-items: center; }
.org-menu summary::-webkit-details-marker { display: none; }
.org-menu summary:hover, .org-menu[open] summary { background: #eef2e9; }
.org-menu summary span:first-child { font-size: 19px; line-height: 1; }
.menu-items {
  position: absolute; z-index: 3; top: calc(100% + 6px); right: 0; width: max-content; min-width: 184px;
  border: 1px solid var(--line); border-radius: 15px; padding: 5px; display: grid; gap: 2px;
  background: #fefef9; box-shadow: 0 12px 30px #173a2729;
}
.menu-items button { background: none; border: 0; border-radius: 10px; min-height: 44px; font-size: 13px; font-weight: 800; text-align: left; padding: 8px 11px; }
.menu-items button:hover { background: #eaf0e5; }
.zoom { display: flex; justify-content: center; border-top: 1px solid var(--line); }
.zoom button { text-align: center; }
.zoom button:disabled { opacity: .43; cursor: default; }
.canvas {
  position: relative; overflow: auto; flex: 1; max-height: 690px; min-height: 470px;
  border-block: 1px solid #d8e0d4;
  background: radial-gradient(ellipse at 50% 0, #f8fbeb 0, transparent 72%),
    radial-gradient(#8ba29057 1px, transparent 1px) #ebf0e5;
  background-size: auto, 21px 21px;
}
.canvas[data-view="future"] {
  background: radial-gradient(ellipse at 50% -6%, #e5f4c8 0, transparent 77%),
    radial-gradient(#819f8a70 1px, transparent 1px) #edf2e8;
  background-size: auto, 21px 21px;
}
.tree { position: relative; padding: 27px 19px 24px; min-width: 100%; }
#edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#edges path { fill: none; stroke: #718b79; stroke-width: 1.35; }
#edges .flow { stroke: #306749; stroke-width: 2.8; stroke-dasharray: 6 13; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -38; } }
.leadership { display: flex; align-items: stretch; justify-content: center; gap: 23px; position: relative; }
.services { position: relative; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 13px; margin: 34px auto 0; max-width: 1150px; }
.branch, .people, .squad { display: grid; align-content: start; gap: 13px; min-width: 0; }
.node, .agent-card { min-width: 0; width: 100%; text-align: left; border: 1px solid #cbd6c9; border-radius: 14px; background: #fefef9; padding: 10px 11px; display: flex; align-items: center; gap: 9px; min-height: 61px; box-shadow: 0 3px 8px #2843330b; }
.node:hover { border-color: #709681; box-shadow: 0 4px 12px #2843331a; }
.node strong, .agent-card strong { display: block; font-size: 14px; letter-spacing: -.025em; overflow-wrap: anywhere; }
.node small, .agent-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; line-height: 1.25; overflow-wrap: anywhere; }
.leadership .node { width: min(215px, 46%); }
.leadership .claudia { background: var(--green); border-color: var(--green); color: white; }
.leadership .claudia small { color: #dcebd8; }
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e1ece0; color: #284a38; font-size: 12px; font-weight: 800; object-fit: cover; }
.avatar.ct { color: var(--green); background: var(--mint); font-size: 23px; }
.service { border-color: color-mix(in srgb, var(--tone), #809488 39%); background: var(--tone); }
.service .avatar { width: 32px; height: 32px; color: #274938; background: #fff8; font-size: 18px; }
.people { padding-inline: 6px; }
.person.human { background: #fdfdf7; }
.agent-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 7px; }
.person.ai { position: relative; min-height: 118px; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 4px; text-align: center; background: #ffffffc9; }
.person.ai .avatar { width: 49px; height: 49px; border: 2px solid #e3eedb; }
.person.ai small { max-width: 16ch; }
.person.ai.is-live, .person.human.is-live { outline: 2px solid #4d876b; outline-offset: 1px; }
.person.ai.is-live .avatar { animation: signal 1.65s ease-in-out infinite alternate; }
@keyframes signal { to { box-shadow: 0 0 0 5px #8dc39360; } }
.node-state { display: block; margin-top: 3px; font-size: 10px; line-height: 1.15; font-weight: 800; color: #235b40; }
.workspace-foot { min-height: 46px; color: var(--muted); font-size: 11px; }
#counts { font-weight: 800; }
.guide {
  min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 21px;
  padding: clamp(15px, 2vw, 25px);
  border-radius: 24px; color: #fafbf2;
  background: radial-gradient(ellipse at 95% -8%, #426452 0, transparent 65%), #1a382e;
}
.guide :focus-visible { outline-color: #cbe8b6; }
.guide .mark { color: var(--green); background: var(--mint); }
.guide h2 { font-size: 17px; }
.guide-head small, .guide p { color: #d4e4d7; }
.guide-head small { font-size: 11px; }
.guide h3 { margin: 0 0 9px; font: 490 clamp(22px, 2.3vw, 34px)/1.03 var(--serif); letter-spacing: -.045em; }
.guide p { font-size: 13px; line-height: 1.5; }
.guide-action, .live-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 11px;
  color: var(--ink); background: var(--mint); border: 1px solid transparent; font-size: 12px; font-weight: 800;
}
.guide-action { margin-top: 13px; }
.guide-action.secondary { color: #f2f7e9; background: #ffffff0b; border-color: #729180; margin-top: 6px; }
.guide-action:hover { filter: brightness(1.09); }
.live-panel { border-top: 1px solid #719080; padding-top: 17px; margin-top: auto; }
.live-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; }
.live-head h3 { margin: 0; font: 800 14px/1.3 Manrope, sans-serif; letter-spacing: -.025em; }
.live-head > span { font-size: 10px; color: #e3efda; border: 1px solid #789685; border-radius: 999px; padding: 3px 8px; }
.live-toggle { color: #f1f8eb; border-color: #779787; background: #ffffff0e; margin-block: 9px 12px; justify-content: start; }
.live-toggle:hover { background: #ffffff1e; }
.live-toggle .status-dot { background: #b6d89d; }
.live-toggle[aria-pressed="true"] .status-dot { box-shadow: 0 0 0 3px #bbdca448; }
#live-title { font-size: 12px; color: var(--mint); }
#live-copy { font-size: 12px; }
.footer { display: flex; justify-content: space-between; gap: 10px; padding-block: 16px 21px; color: var(--muted); font-size: 11px; }
.library-hero h1 { font-size: clamp(40px, 5.2vw, 76px); }
.library-tools { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.library-tools label:first-child { width: min(330px, 100%); }
#results { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.catalogue { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 13px; }
.agent-card {
  position: relative; display: flex; flex-direction: column; align-items: start; gap: 0;
  padding: 0; overflow: hidden; border-radius: 15px; background: #fefefb;
}
.agent-card:hover { border-color: #709681; box-shadow: 0 7px 22px #2843331b; }
.agent-card .avatar { width: 100%; height: auto; aspect-ratio: 1.1; border-radius: 0; object-position: center 35%; }
.agent-card > span { padding: 12px 13px; width: 100%; }
.agent-card strong { font: 550 22px/1 var(--serif); }
.agent-card small { min-height: 2.5em; margin-top: 5px; }
dialog { background: var(--paper); color: var(--ink); border: 1px solid #aebeb0; border-radius: 22px; width: min(500px, calc(100% - 24px)); padding: 21px; box-shadow: 0 14px 45px #172f292b; }
dialog::backdrop { background: #132d2380; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 9px; margin-bottom: 15px; }
.icon { min-width: 44px; color: var(--ink); padding: 4px; font-size: 24px; }
.icon:hover { background: #e7eee2; }
.fields, .fields label, .library-tools label { display: grid; gap: 7px; }
.fields { gap: 13px; }
.fields ul { margin-block: 0; padding-left: 21px; color: var(--muted); }
.profile { display: flex; gap: 13px; align-items: center; }
.profile .avatar { width: 66px; height: 66px; border-radius: 13px; }
label { font-size: 13px; color: var(--muted); font-weight: 700; }
input, select { padding: 9px 11px; min-height: 44px; min-width: 0; border-radius: 10px; border: 1px solid #99ae9e; background: #fefefa; color: var(--ink); font-size: 16px; }
.error { color: #942a24; padding: 7px 0; font-size: 13px; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: none; width: min(440px, 100%); max-width: none; border-radius: 20px 0 0 20px; }
.drawer[open] { display: flex; flex-direction: column; animation: reveal .24s ease-out; }
@keyframes reveal { from { transform: translateX(100%); } }
.chat-heading small { color: var(--muted); font-size: 12px; }
.messages { display: flex; flex-direction: column; flex: 1; overflow: auto; gap: 10px; padding: 8px 0; }
.bubble { background: #e8eee1; border-radius: 12px; padding: 12px; max-width: 92%; overflow-wrap: anywhere; font-size: 14px; }
.bubble.user { align-self: end; background: #dceacb; color: var(--ink); }
.composer { border-top: 1px solid var(--line); padding-top: 14px; }
.composer label { display: block; margin-bottom: 8px; }
.composer div { display: flex; gap: 7px; }
.composer input { flex: 1; width: 100%; }
.notice { position: fixed; z-index: 3; bottom: 17px; right: 17px; max-width: calc(100% - 34px); padding: 12px 16px; border-radius: 12px; background: var(--green); color: white; font-size: 14px; }
@media (max-width: 1050px) {
  .studio { grid-template-columns: minmax(0,1fr); }
  .guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px 24px; }
  .guide-head { grid-column: 1 / -1; }
  .live-panel { margin: 0; padding: 0 0 0 14px; border-top: 0; border-left: 1px solid #719080; }
}
@media (max-width: 680px) {
  main, .footer { padding-inline: 12px; }
  .top { gap: 4px; padding: 6px 12px; }
  .brand { gap: 4px; }
  .brand strong { font-size: 21px; }
  .brand small { display: none; }
  .brand .mark { width: 26px; height: 26px; font-size: 17px; }
  .top nav { gap: 0; }
  .top nav a { padding-inline: 8px; font-size: 12px; }
  .top-chat { justify-content: center; width: 44px; padding: 0; font-size: 18px; }
  .top-chat span:last-child { display: none; }
  .hero { padding-block: 16px 13px; }
  .hero p { font-size: 12px; }
  .workspace, .guide { border-radius: 17px; }
  .workspace-head { padding: 7px; flex-wrap: wrap; gap: 5px; }
  .workspace-title { display: contents; }
  .workspace-title h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .workspace-title p { order: 2; width: 100%; padding: 0 6px 2px; margin: 0; }
  .studio-controls { width: 100%; justify-content: space-between; }
  .segments button { padding-inline: 11px; font-size: 12px; }
  .org-menu summary { width: 44px; justify-content: center; padding: 0; }
  .add-label { display: none; }
  .canvas { max-height: none; min-height: 0; }
  .tree { padding: 14px 11px; }
  .services { grid-template-columns: minmax(0, 1fr); max-width: 385px; gap: 15px; margin-top: 22px; padding-left: 13px; }
  .leadership { gap: 18px; }
  .leadership .node { padding-inline: 7px; }
  .leadership .avatar { width: 28px; height: 28px; }
  .person.ai { min-height: 109px; }
  .workspace-foot { padding: 9px 10px; flex-wrap: wrap; gap: 4px; font-size: 10px; }
  .guide { grid-template-columns: 1fr; }
  .guide-head { grid-column: auto; }
  .live-panel { border: 0; border-top: 1px solid #719080; padding: 12px 0 0; }
  .catalogue { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .drawer { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
}
.unassigned { font-size: 11px; font-weight: 750; padding-left: 3px; }
.canvas {
  background: radial-gradient(ellipse at 50% -23%, #f6f9ea 0, transparent 72%),
    radial-gradient(#8ba29057 1px, transparent 1px) #ebf0e5;
  background-size: auto, 21px 21px;
}
.canvas[data-view="future"] {
  background: radial-gradient(ellipse at 54% -11%, #def0bd 0, transparent 65%),
    radial-gradient(ellipse at 80% 75%, #f4eddd 0, transparent 58%),
    radial-gradient(#819f8a70 1px, transparent 1px) #edf2e8;
  background-size: auto, auto, 21px 21px;
}
.person.ai { min-height: 133px; }
.person.ai .avatar { width: 65px; height: 65px; }
.scene-live { display: none; }
.chat-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 9px; }
.chat-actions button { min-height: 44px; }
@media (max-width: 680px) {
  .scene-live { display: flex; justify-content: space-between; align-items: center; padding: 2px 9px; gap: 5px; background: #e4efd8; font-size: 11px; font-weight: 800; }
  .scene-live button { min-height: 44px; padding: 0 7px; border: 0; border-radius: 11px; background: none; font-size: 11px; font-weight: 800; }
  .scene-live button:hover { background: #d3e4c1; }
  .person.ai { min-height: 118px; }
  .person.ai .avatar { width: 57px; height: 57px; }
}
