/* GD Project: the lab's pages (index, blog). Tokens in :root; light and dark both designed. */
:root {
  --ground: #121821;
  --panel: #19212d;
  --line: #2b3646;
  --ink: #e7ecf3;
  --muted: #95a2b6;
  --mint: #5fd3b0;     /* Agent Manager */
  --sky: #a6cdf6;      /* Second Brain */
  --wire: #f0b264;     /* the lab */
  --plum: #c7a6f2;     /* Project Management GD */
  --rose: #f3a6b6;     /* Client GD */
  --display: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --shot-shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #f3f5f8; --panel: #ffffff; --line: #d6dce5; --ink: #162030; --muted: #556378;
    --mint: #0f7f63; --sky: #2b68a6; --wire: #a85f0c; --plum: #6b3fb0; --rose: #b03a5a; --shot-shadow: 0 24px 50px -30px rgba(20, 32, 48, .5);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #f3f5f8; --panel: #ffffff; --line: #d6dce5; --ink: #162030; --muted: #556378;
  --mint: #0f7f63; --sky: #2b68a6; --wire: #a85f0c; --plum: #6b3fb0; --rose: #b03a5a; --shot-shadow: 0 24px 50px -30px rgba(20, 32, 48, .5);
  color-scheme: light;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--wire); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--display); text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
.muted { color: var(--muted); }
.lede { font-size: 19px; color: var(--muted); max-width: 58ch; }
.path { font-family: var(--mono); font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.label { font-family: var(--mono); font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.shot { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shot-shadow); background: var(--panel); }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
@media (max-width: 640px) { .nav a:not(.gh) { display: none; } }

/* intro */
.intro { padding-block: 80px 48px; display: grid; gap: 18px; }
.intro h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -.03em; max-width: 22ch; }
.intro h1 em { font-style: normal; color: var(--wire); }

/* the lab: windows side by side, alone or plugged together (owner, 2026-11-10) */
.state { font-style: normal; font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--accent) 60%, var(--line)); color: var(--accent); justify-self: center; margin-top: 4px; }
.state.live { border-style: solid; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.intro h1 .soft { display: block; margin-top: .25em; font-size: .56em; letter-spacing: -.02em; color: var(--muted); font-weight: 700; }

/* the switch */
.lab { display: grid; gap: 22px; }
.lab-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.lab-head h2.say { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.lab-head h2.say [data-together] { display: none; }
.lab[data-mode="together"] h2.say [data-alone] { display: none; }
.lab[data-mode="together"] h2.say [data-together] { display: inline; }
.switch { display: inline-flex; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.switch button { font: 600 14px/1 var(--mono); color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .25s ease, color .25s ease; }
.switch button[aria-pressed="true"] { background: color-mix(in srgb, var(--wire) 20%, var(--panel)); color: var(--ink); }
.switch svg { width: 18px; height: 18px; }

/* the desk: windows side by side, as equals */
.desk { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 64px 48px; }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.win { position: relative; z-index: 1; grid-column: span 2; display: grid; grid-template-rows: auto 1fr auto; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 14px; background: var(--panel); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .3s ease, box-shadow .4s ease, transform .25s ease; }
.win.live { grid-column: span 3; }
a.win:hover { transform: translateY(-3px); border-color: var(--accent); }
.win.plan { border-style: dashed; background: color-mix(in srgb, var(--accent) 4%, var(--ground)); }
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); }
.win.plan .bar { border-bottom-style: dashed; }
.bar img, .bar .mark { width: 22px; height: 22px; flex: none; }
.bar b { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.bar .state { margin: 0 0 0 auto; white-space: nowrap; }
.view { position: relative; display: block; padding: 18px 18px 0; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 20%, var(--panel)), transparent 75%); overflow: hidden; min-height: 150px; }
.win.plan .view { padding: 18px; background-image: linear-gradient(color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 1px); background-size: 16px 16px; }
.view .shot { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; transform: translateY(6px); transition: transform .3s ease; }
a.win:hover .view .shot { transform: translateY(0); }
.view svg.sketch { width: 100%; height: auto; display: block; color: var(--accent); }
.sketch * { vector-effect: non-scaling-stroke; }
.say-box { display: grid; padding: 14px 16px 16px; font-size: 15px; line-height: 1.45; min-height: 96px; }
.say-box p { grid-area: 1 / 1; transition: opacity .35s ease, transform .35s ease; }
.say-box .tag { display: block; font: 600 11.5px/1.6 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.say-box [data-together] { opacity: 0; transform: translateY(6px); }
.say-box [data-together] .tag { color: var(--accent); }
.lab[data-mode="together"] .say-box [data-alone] { opacity: 0; transform: translateY(-6px); }
.lab[data-mode="together"] .say-box [data-together] { opacity: 1; transform: none; }

/* the Brain lights up when plugged in, it does not own the others */
.lab[data-mode="together"] .win.brain { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sky) 10%, transparent), 0 0 70px -12px color-mix(in srgb, var(--sky) 50%, transparent); border-color: var(--sky); }

/* cables */
.wp { fill: none; stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity .5s ease; }
.wp.live { stroke: color-mix(in srgb, var(--sky) 70%, var(--line)); }
.wp.soon { stroke: color-mix(in srgb, var(--accent-c) 60%, var(--line)); stroke-dasharray: 2 7; }
.wp-pulse { fill: none; stroke: var(--sky); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .06 1; opacity: 0; }
.plug { opacity: 0; transition: opacity .4s ease .25s; }
.plug circle { stroke-width: 2; }
.lab[data-mode="together"] .wp, .lab[data-mode="together"] .plug { opacity: 1; }
.lab[data-mode="together"] .wp-pulse { opacity: .95; animation: travel 2.6s linear infinite; }
.lab[data-mode="together"] .wp-pulse.back { animation-direction: reverse; animation-delay: -1.3s; }
@keyframes travel { from { stroke-dashoffset: 1.06; } to { stroke-dashoffset: 0; } }

.lab-note { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--muted); }
.lab-note span { display: inline-flex; align-items: center; gap: 8px; }
.lab-note i { display: inline-block; width: 26px; border-top: 2px solid color-mix(in srgb, var(--sky) 70%, var(--line)); }
.lab-note i.d { border-top-style: dotted; border-color: var(--muted); }
.lab-note [data-alone] { display: inline; }
.lab-note [data-together] { display: none; }
.lab[data-mode="together"] .lab-note [data-together] { display: inline-flex; }
.lab[data-mode="together"] .lab-note [data-alone] { display: none; }

/* phone: windows stacked; a plug strip replaces the cables */
.strip { display: none; }
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; gap: 18px; }
  .win, .win.live { grid-column: auto; }
  .wires { display: none; }
  .strip { display: flex; align-items: center; gap: 8px; font: 600 12px/1 var(--mono); color: var(--sky); padding: 0 14px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
  .strip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
  .win.plan .strip { color: var(--muted); }
  .win.plan .strip::before { background: none; border: 1.5px dashed var(--muted); }
  .lab[data-mode="together"] .strip { max-height: 40px; padding: 10px 14px 0; }
}
@media (max-width: 520px) { .switch button { padding: 9px 12px; } .bar .state { font-size: 10.5px; } }
@media (prefers-reduced-motion: reduce) {
  .win, .say-box p, .wp, .plug, .view .shot, .switch button, .strip { transition: none; }
  .lab[data-mode="together"] .wp-pulse { animation: none; opacity: 0; }
}
.go { font-family: var(--mono); font-size: 13px; color: var(--accent); margin-top: 8px; grid-area: 2 / 1; }
.win .say-box { grid-template-rows: 1fr auto; }
.lab-note b { color: var(--ink); }
.lab-proto { font-size: 14.5px; max-width: 72ch; margin-top: -8px; }

/* the link between the apps: « Together, up close », in the same windows and cables as the lab */
.link { padding-block: 88px 0; display: grid; gap: 28px; }
.link-head { display: grid; gap: 12px; max-width: 62ch; }
.link-title { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; line-height: 1.12; text-wrap: balance; }
.link-title em { font-style: normal; color: var(--wire); }
.duo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, .55fr) minmax(0, 1fr); align-items: center; }
.duo .win { grid-column: auto; grid-template-rows: auto 1fr auto; }
.duo .win.brain { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sky) 10%, transparent), 0 0 70px -12px color-mix(in srgb, var(--sky) 45%, transparent); border-color: var(--sky); }
.rows { display: grid; gap: 8px; padding: 16px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 12%, var(--panel)), transparent 75%); }
.sess, .row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13.5px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--ground); transition: border-color .35s ease, background .35s ease, box-shadow .35s ease; }
.sess b, .row b { font-weight: 600; }
.sess .run { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mint) 25%, transparent); }
.sess .k { margin-left: auto; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; border: 1px dashed var(--line); color: var(--muted); transition: all .35s ease; }
.grp { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.grp:first-child { margin-top: 0; }
.row .ok { margin-left: auto; font-size: 11.5px; padding: 3px 9px; border-radius: 6px; background: color-mix(in srgb, var(--sky) 22%, transparent); color: var(--sky); border: 1px solid color-mix(in srgb, var(--sky) 50%, var(--line)); }
.foot { font-size: 13.5px; color: var(--muted); padding: 0 16px 14px; }
.mid { position: relative; z-index: 1; display: grid; gap: 10px; justify-items: center; font-family: var(--mono); font-size: 12.5px; }
.mid .mcp { padding: 4px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--wire) 60%, var(--line)); background: var(--ground); color: var(--wire); font-weight: 600; }
.lane { padding: 2px 8px; border-radius: 6px; background: var(--ground); transition: color .35s ease, opacity .35s ease; }
.lane.in { color: var(--sky); }
.lane.out { color: var(--mint); }
.wp-end { stroke: var(--ground); stroke-width: 2; }
.wp-pk { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: .05 1; opacity: 0; transition: opacity .3s ease; }
.wp-pk.in { stroke: var(--sky); animation: pk-back 1.8s linear infinite; }
.wp-pk.out { stroke: var(--mint); animation: pk-fwd 1.8s linear infinite; }
@keyframes pk-fwd { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1.05; } }
@keyframes pk-back { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 1.05; } }
.duo .wp { opacity: 1; }

/* the three steps, played in turn: each lights its part of the picture */
.link[data-step="1"] .sess .k, .link[data-step="0"] .sess .k { color: var(--wire); border-style: solid; border-color: color-mix(in srgb, var(--wire) 60%, var(--line)); background: color-mix(in srgb, var(--wire) 14%, transparent); }
.link[data-step="2"] .wp-pk.in, .link[data-step="3"] .wp-pk.out { opacity: 1; }
.link[data-step="2"] .row.know, .link[data-step="0"] .row.know { border-color: color-mix(in srgb, var(--sky) 60%, var(--line)); background: color-mix(in srgb, var(--sky) 10%, var(--ground)); }
.link[data-step="3"] .row.prop, .link[data-step="3"] .row.tl, .link[data-step="0"] .row.prop { border-color: color-mix(in srgb, var(--mint) 60%, var(--line)); background: color-mix(in srgb, var(--mint) 10%, var(--ground)); }
.link[data-step="3"] .row.prop { box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint) 12%, transparent); }
.link[data-step="2"] .lane.out, .link[data-step="3"] .lane.in { opacity: .35; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--line); padding-top: 14px; color: var(--muted); font-size: 16px; cursor: pointer; transition: border-color .35s ease, color .35s ease; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--mono); font-size: 12.5px; color: var(--wire); margin-bottom: 6px; }
.steps b { color: var(--ink); }
.link[data-step="1"] .steps li[data-go="1"], .link[data-step="2"] .steps li[data-go="2"], .link[data-step="3"] .steps li[data-go="3"] { border-color: var(--wire); color: var(--ink); }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pair figure { margin: 0; display: grid; gap: 10px; }
.pair figcaption { font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .duo { grid-template-columns: 1fr; }
  .duo .wires { display: none; }
  .mid { padding: 18px 0; grid-auto-flow: column; gap: 8px; }
  .mid::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: linear-gradient(180deg, var(--mint), var(--sky)); z-index: -1; }
  .steps, .pair { grid-template-columns: 1fr; }
}
@media (max-width: 420px) { .mid { grid-auto-flow: row; } }
@media (prefers-reduced-motion: reduce) { .wp-pk { animation: none; } .sess, .row, .steps li, .lane, .sess .k { transition: none; } }

/* stack */
.stack { padding-block: 64px 0; display: grid; gap: 16px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { font-family: var(--mono); font-size: 14px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); }
.stack p { max-width: 70ch; }

/* closing */
.closing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding-block: 56px 88px; }
.closing div { border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 8px; }
.closing a { color: var(--wire); text-decoration: none; font-weight: 700; }
.closing a:hover { text-decoration: underline; }
@media (max-width: 640px) { .closing { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); }
footer .wrap { padding-block: 26px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* blog: list */
.sec-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(32px, 4.5vw, 48px); font-weight: 800; letter-spacing: -.02em; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.post { border: 1px solid var(--line); border-radius: 12px; padding: 22px; background: var(--panel); text-decoration: none; display: grid; gap: 8px; align-content: start; }
.post:hover { border-color: var(--muted); }
.post h3 { font-size: 21px; }
.post time { font-family: var(--mono); font-size: 12.5px; color: var(--wire); }

/* blog: a post */
.article { max-width: 700px; margin: 0 auto; padding-block: 64px 96px; }
.article h1 { font-size: clamp(36px, 6vw, 56px); font-weight: 800; letter-spacing: -.03em; margin-top: 14px; }
.article .meta { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 10px; }
.article .body { margin-top: 32px; display: grid; gap: 18px; }
.article .body h2 { font-size: 26px; margin-top: 22px; }
.article .body ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.article .body a { color: var(--wire); }
.article .body figure { margin: 8px 0; display: grid; gap: 8px; }
.article .body figcaption { font-size: 14px; color: var(--muted); }
.crumb { font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: none; }
.crumb:hover { color: var(--ink); }
