/*
  Concerto — site styles. Principles and sources: website/DESIGN.md.
  Pattern language borrowed from Notion and Cursor: a plain sticky bar with a centred menu, a short headline,
  small pill buttons, product windows over public-domain paintings, and a closing line instead of a banner.
  The product screens are monochrome on purpose. Comfort rules hold: 17-18px text, ~66 characters a line, nothing lighter than 400.
*/

@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/assets/fonts/newsreader-latin-wght-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;

  --paper: #fff;
  --ink: #1a1a19;
  --muted: #5f5b57;       /* about 6.9:1 on white */
  --line: rgba(0, 0, 0, .1);
  --line-strong: rgba(0, 0, 0, .22);
  --tile: #f6f5f4;
  --tile-2: #efeeeb;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(20px, 5vw, 40px);
  --gap: clamp(1rem, 2.5vw, 1.5rem);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 18px 48px rgba(0, 0, 0, .18);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; text-decoration-color: var(--line-strong); transition: text-decoration-color .15s; }
a:hover { text-decoration-color: var(--ink); }
button { font: inherit; color: inherit; cursor: pointer; }

.skip { position: absolute; left: -9999px; top: .5rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-weight: 600; border-radius: 8px; }
.skip:focus { left: var(--gutter); z-index: 50; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.container { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
h2 { font-size: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem); line-height: 1.15; letter-spacing: -.028em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.01em; }
p { text-wrap: pretty; }
p + p { margin-top: 1em; }
.lede { font-size: clamp(1.125rem, 1.05rem + .4vw, 1.25rem); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; line-height: 1.5; color: var(--muted); }
.eyebrow { font-size: .9375rem; font-weight: 500; color: var(--muted); }
.serif { font-family: var(--serif); }

/* ---------- top bar: brand left, menu centred, one action right ---------- */

.topbar { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar .container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 1rem; min-height: 3.75rem; }
.brand { justify-self: start; display: inline-flex; align-items: center; padding-block: .7rem; text-decoration: none; }
.brand img { display: block; height: auto; }
.brand-wordmark { min-height: 3.2rem; }
.brand-wordmark img { width: 8.25rem; }
.brand-logo img { width: 7.5rem; }
.menu { display: flex; list-style: none; padding: 0; gap: .15rem; }
.menu a { display: block; padding: .5rem .85rem; border-radius: 999px; font-size: .9375rem; font-weight: 500; text-decoration: none; transition: background-color .15s; }
.menu a:hover { background: var(--tile); }
.menu a[aria-current="page"] { background: var(--tile-2); }
.topbar .btn { justify-self: end; }
@media (max-width: 40rem) {
  .topbar .container { grid-template-columns: 1fr auto; grid-template-areas: "brand cta" "menu menu"; row-gap: 0; padding-bottom: .5rem; }
  .brand { grid-area: brand; }
  .topbar .btn { grid-area: cta; }
  .topbar nav { grid-area: menu; justify-self: center; }
}

/* ---------- buttons: small pills, as on Cursor. 32px in the bar, 40px in the page ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.25rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: #3a3835; border-color: #3a3835; }
.btn.quiet { background: var(--tile-2); border-color: transparent; color: var(--ink); }
.btn.quiet:hover { background: #e5e3df; }
.btn.big { min-height: 2.5rem; padding: 0 1.25rem; }
.btn.sm { min-height: 2rem; padding: 0 .9rem; font-size: .875rem; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }

/* ---------- hero and page heads ---------- */

.hero { text-align: center; padding-block: clamp(2.75rem, 6vw, 4.75rem) clamp(1.5rem, 3.5vw, 2.5rem); }
.hero h1 { max-width: 28ch; margin: .75rem auto 0; }
.hero .lede { max-width: 38rem; margin: 1.1rem auto 0; }
.hero .actions { justify-content: center; margin-top: 1.75rem; }
.page-head { padding-block: clamp(2.75rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem); }
.page-head h1 { max-width: 20ch; margin-top: .75rem; }
.page-head .lede { max-width: 40rem; margin-top: 1.1rem; }
/* Use ordinary line breaks at narrow widths, including Safari's page zoom. */
@media (max-width: 40rem) { .page-head h1 { text-wrap: wrap; overflow-wrap: break-word; } }

/* ---------- sections ---------- */

.band { padding-block: clamp(2rem, 4.5vw, 3.5rem); }
.band-head { max-width: 42rem; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.band-head h2 + p { margin-top: .8rem; color: var(--muted); }
.prose { max-width: 66ch; font-size: 1.125rem; }

/* one grid for text sections: a heading column, then the text. Used on Company and Contact */
.sec { display: grid; gap: .75rem var(--gap); padding-block: clamp(1.75rem, 4vw, 2.75rem); border-top: 1px solid var(--line); }
@media (min-width: 56rem) { .sec { grid-template-columns: 13rem minmax(0, 1fr); } }
.sec > h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -.01em; }
.sec .body { max-width: 44rem; }
.sec .body > p { font-size: 1.125rem; }
.sec .body > p.quote { font: italic 400 clamp(1.5rem, 1.15rem + 1.2vw, 2rem)/1.3 var(--serif); letter-spacing: -.005em; max-width: 26ch; text-wrap: balance; }
.sec .quote + p { margin-top: 1rem; color: var(--muted); font-family: var(--serif); }

.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: .2rem 2rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .row { grid-template-columns: 11rem minmax(0, 1fr); } }
.row dt { font-weight: 600; }
.row dd { color: var(--muted); }
.sec .rows { max-width: 44rem; }

/* tiles */
.tiles { display: grid; gap: var(--gap); }
@media (min-width: 52rem) { .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; background: var(--tile); border-radius: var(--radius); padding: clamp(1.25rem, 2.5vw, 1.6rem); }
.tile .k { font-size: .875rem; font-weight: 500; color: var(--muted); }
.tile h3 { margin-top: .3rem; font-size: 1.25rem; line-height: 1.25; }
.tile p { margin-top: .5rem; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.tile .mini { margin-top: auto; padding-top: 1.25rem; }

/* the same small list in every tile: three rows, label left, state right */
.mini-list { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: .875rem; line-height: 1.3; }
.mini-list > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.6rem; padding: .35rem .9rem; border-top: 1px solid var(--line); }
.mini-list > div:first-child { border-top: 0; }
.mini-list .state { flex: none; width: 5.9rem; display: inline-flex; align-items: center; justify-content: flex-start; gap: .5rem; font-size: .8125rem; font-weight: 500; color: var(--ink); }
.mini-list .state::before { content: ""; flex: none; width: .6rem; height: .6rem; border-radius: 50%; border: 1.5px solid var(--ink); }
.mini-list .state.full::before { background: var(--ink); }
.mini-list .state.half::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }

/* closing line, as on Cursor: big words, one pill beneath, no banner */
.closing-cta { text-align: center; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 3vw, 2rem); }
.closing-cta h2 { font-size: clamp(2.25rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.05; letter-spacing: -.035em; }
.closing-cta p { max-width: 30rem; margin: 1rem auto 0; color: var(--muted); }
.closing-cta .actions { justify-content: center; }

/* the quote line on Home */
.quote-line { text-align: center; padding-block: clamp(1.5rem, 4vw, 3rem); }
.quote-line p:first-child { font: italic 400 clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem)/1.3 var(--serif); max-width: 28ch; margin-inline: auto; text-wrap: balance; }
.quote-line .small { margin-top: .75rem; }

/* ---------- product page ---------- */

.feature-head { max-width: 42rem; margin-bottom: 1rem; }
.feature-head .k { font-size: .875rem; font-weight: 500; color: var(--muted); }
.feature-head h2 { margin-top: .25rem; }
.feature-head p { margin-top: .6rem; color: var(--muted); }
.demo-block { padding-block: clamp(1.5rem, 3.5vw, 2.5rem); }
.band.tight { padding-bottom: 0; }
.band.tight .band-head { margin-bottom: 0; }

/* what you start from: layers, not a grid of cards */
.stack { display: grid; gap: .6rem; }
.stack > div, .stack .pair > div { border: 1px solid var(--line-strong); border-radius: 12px; padding: .9rem 1.1rem; background: var(--paper); }
.stack b { display: block; font-size: .9375rem; }
.stack span { color: var(--muted); font-size: .9375rem; line-height: 1.45; display: block; margin-top: .15rem; }
.stack .custom { border-style: dashed; border-color: var(--ink); }
.stack .agents { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.stack .agents span { color: #cfcdca; }
.stack > .pair { display: grid; gap: .6rem; border: 0; padding: 0; background: none; border-radius: 0; }
@media (min-width: 40rem) { .stack .pair { grid-template-columns: 1fr 1fr; } }
.stack .base { background: var(--tile); border-color: transparent; }
.split { display: grid; gap: 1.5rem clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split h2 + p { margin-top: .8rem; color: var(--muted); }

/* the process as a line of five steps */
.flow { list-style: none; padding: 0; display: grid; gap: 1.5rem; counter-reset: f; }
.flow li { counter-increment: f; position: relative; padding-left: 2.4rem; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: 0; width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-size: .8125rem; font-weight: 600; }
.flow li::after { content: ""; position: absolute; left: calc(.8rem - .5px); top: 1.75rem; bottom: -1.35rem; border-left: 1px solid var(--line-strong); }
.flow li:last-child::after { display: none; }
.flow li:last-child::before { background: var(--ink); color: var(--paper); }
.flow h3 { font-size: 1.0625rem; }
.flow p { margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 56rem) {
  .flow { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 1.5rem; }
  .flow li { padding: 2.4rem 0 0; text-align: center; }
  .flow li::before { left: calc(50% - .8rem); }
  .flow li::after { left: calc(50% + 1.1rem); right: calc(-50% - .4rem); top: calc(.8rem - .5px); bottom: auto; border-left: 0; border-top: 1px solid var(--line-strong); }
}

/* ---------- the stage: the product over a painting ---------- */

.stage { position: relative; border-radius: 20px; overflow: hidden; background: #9a9a92 center / cover no-repeat; padding: clamp(.75rem, 4.5vw, 3.5rem); }
.stage.corot { background-image: url("/assets/art/corot.webp"); background-image: image-set(url("/assets/art/corot.avif") type("image/avif"), url("/assets/art/corot.webp") type("image/webp")); }
.stage.cole { background-image: url("/assets/art/cole.webp"); background-image: image-set(url("/assets/art/cole.avif") type("image/avif"), url("/assets/art/cole.webp") type("image/webp")); }
.stage.clouds { background-image: url("/assets/art/clouds.webp"); background-image: image-set(url("/assets/art/clouds.avif") type("image/avif"), url("/assets/art/clouds.webp") type("image/webp")); }
.stage.alt { background-size: 170%; background-position: 85% 15%; }
.stage-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-top: .75rem; font-size: .8125rem; color: var(--muted); }
.link-btn { min-height: 2rem; padding: 0 .85rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--paper); font-size: .8125rem; font-weight: 500; color: var(--ink); transition: background-color .15s; }
.link-btn:hover { background: var(--tile); }

/* the application window: monochrome, like Cursor's own demo */
.win { position: relative; background: var(--paper); border-radius: 12px; box-shadow: var(--shadow); font-size: .8125rem; line-height: 1.45; color: var(--ink); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .85rem; border-bottom: 1px solid var(--line); background: #fbfaf9; }
.win-bar i { width: .6rem; height: .6rem; border-radius: 50%; background: #d8d6d1; }
.win-bar span { margin-left: .6rem; font-size: .75rem; color: var(--muted); }
.app { display: grid; height: 29rem; }
.app > * { min-height: 0; }
.app.tall { height: 31.5rem; }
.app .side { display: none; }
.app .view { display: none; }
@media (min-width: 56rem) {
  .app { grid-template-columns: 9.5rem minmax(0, 1fr) 20.5rem; }
  .app.wide-side { grid-template-columns: 12.25rem minmax(0, 1fr) 20.5rem; }
  .app .side, .app .view { display: block; }
}
.side { padding: .8rem .5rem; border-right: 1px solid var(--line); background: #fbfaf9; }
.side b { display: block; padding: .2rem .55rem .55rem; font-size: .75rem; color: var(--muted); font-weight: 600; }
.side span { display: block; padding: .38rem .55rem; border-radius: 6px; color: #4a4846; }
.side span.on { background: var(--tile-2); font-weight: 600; color: var(--ink); }
.view { padding: .9rem 1rem; min-width: 0; overflow: hidden; }
.ttl { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.ttl h3 { font-size: 1rem; letter-spacing: -.01em; }
.ttl span { font-size: .75rem; color: var(--muted); }

.tbl { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tbl .r { display: grid; grid-template-columns: var(--cols); gap: .6rem; align-items: center; padding: .5rem .75rem; border-top: 1px solid var(--line); transition: background-color .25s, box-shadow .25s; }
.tbl .r:first-child { border-top: 0; }
.tbl .head { background: #faf9f8; font-size: .6875rem; font-weight: 600; color: var(--muted); }
.tbl .id { font-weight: 600; font-variant-numeric: tabular-nums; }
.t-del { --cols: 4.4rem minmax(0, 1fr) 3.6rem 5.6rem; }
.t-inv { --cols: 5rem minmax(0, 1fr) 3.6rem 5.4rem; }
.t-wo2 { --cols: 4.3rem minmax(0, 1fr) 2.6rem 2.8rem 3.4rem 5.6rem; }
.r.hl { background: var(--tile); box-shadow: inset 0 0 0 1.5px var(--ink); }
.t-inv .r.new.hl { position: relative; border-radius: 0 0 7px 7px; box-shadow: none; }
.t-inv .r.new.hl::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--ink); border-radius: inherit; pointer-events: none; }
.st { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; white-space: nowrap; }
.st::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; border: 1.5px solid var(--ink); flex: none; }
.st.full::before { background: var(--ink); }
.st.half::before { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); }
.st.idle { color: var(--muted); }
.st.idle::before { border-color: #9b9894; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.col { background: #faf9f8; border: 1px solid var(--line); border-radius: 8px; padding: .55rem; min-height: 14rem; }
.col h4 { font-size: .6875rem; font-weight: 600; color: var(--muted); margin-bottom: .5rem; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: .5rem .55rem; margin-bottom: .45rem; font-size: .75rem; line-height: 1.35; }
.kcard small { display: block; color: var(--muted); font-size: .6875rem; margin-top: .15rem; }
.kcard.new { box-shadow: inset 0 0 0 1.5px var(--ink); }
.kcard.task-transfer { position: absolute; left: 0; top: 0; z-index: 6; margin: 0; pointer-events: none; transform-origin: 0 0; box-shadow: inset 0 0 0 1.5px var(--ink), 0 12px 30px rgba(0, 0, 0, .2); }

/* the side panel: agent chat, or the engagement plan */
.agent { display: flex; flex-direction: column; min-width: 0; min-height: 0; height: 100%; border-left: 1px solid var(--line); background: #fbfaf9; }
.agent-head { display: flex; align-items: center; justify-content: space-between; padding: .65rem .9rem; border-bottom: 1px solid var(--line); font-weight: 600; font-size: .75rem; }
.agent-head span:last-child { font-weight: 500; color: var(--muted); }
.agent-log { flex: 1; min-height: 0; overflow: hidden; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .6rem; }
[data-scn="close"] .app { height: auto; min-height: 29rem; }
[data-scn="close"] .agent { height: auto; }
[data-scn="close"] .agent-log { flex: 1 0 auto; overflow: visible; }
.msg { padding: .5rem .7rem; border-radius: 8px; }
.msg.you { align-self: flex-end; max-width: 92%; background: var(--tile-2); }
.msg.ai { background: var(--paper); border: 1px solid var(--line); }
.msg .src { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .5rem; }
.src span { padding: .1rem .5rem; border-radius: 999px; background: var(--tile); border: 1px solid var(--line); font-size: .6875rem; font-weight: 500; }
.t-rest { visibility: hidden; }
.work { list-style: none; padding: 0; display: grid; gap: .3rem; color: var(--muted); font-size: .75rem; }
.work li { display: flex; align-items: center; gap: .5rem; }
.work li::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid #c9c6c1; border-top-color: var(--ink); flex: none; }
.js .work li.done::before { border-color: var(--ink); background: var(--ink); }
.work li.done { color: var(--ink); }
.js .work li:not(.done)::before { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sum { display: grid; gap: .25rem; margin-top: .45rem; }
.sum div { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.sum div:first-child { border-top: 0; }
.proposal { border: 1.5px solid var(--ink); border-radius: 8px; background: var(--paper); padding: .65rem .75rem; }
.proposal b { display: block; font-size: .75rem; margin-bottom: .2rem; }
.proposal ul { list-style: none; padding: 0; color: var(--muted); font-size: .75rem; display: grid; gap: .1rem; }
.proposal .foot { display: grid; margin-top: .6rem; }
.proposal .foot > * { grid-area: 1 / 1; align-self: center; }
.proposal .btns { display: flex; gap: .45rem; }
.proposal .ok-note { visibility: hidden; font-weight: 600; font-size: .75rem; }
.proposal.approved .btns { visibility: hidden; }
.proposal.approved .ok-note { visibility: visible; }
.fbtn { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 .8rem; border-radius: 999px; font-size: .75rem; font-weight: 500; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); transition: transform .12s; }
.fbtn.o { background: var(--paper); color: var(--ink); border-color: var(--line-strong); }
.fbtn.press { transform: scale(.94); }
.agent-input { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: .6rem .9rem .9rem; padding: .5rem .5rem .5rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); min-height: 2.5rem; transition: box-shadow .15s; }
.agent-input.focus { box-shadow: 0 0 0 2px var(--ink); }
.field { flex: 1; min-width: 0; color: var(--ink); }
.field:empty::before { content: attr(data-ph); color: #8a8682; }
.send { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; transition: transform .12s; }
.send.press { transform: scale(.88); }

/* the engagement: consult, agree, build, deliver */
.phase-strip { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem .85rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.ph { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem .2rem .3rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.ph b { display: grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; border: 1px solid currentColor; font-size: .6875rem; font-weight: 600; }
.ph.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.notes .note { display: block; padding: .45rem .55rem; border-radius: 6px; line-height: 1.35; color: #4a4846; }
.notes .note.sel { background: var(--tile-2); color: var(--ink); font-weight: 600; }
.notes .note.done::after { content: " ✓"; font-weight: 700; }
.view .gap { margin-top: .9rem; }
.delivered { margin-top: .9rem; border: 1.5px solid var(--ink); border-radius: 8px; padding: .7rem .85rem; }
.delivered b { display: block; font-size: .8125rem; margin-bottom: .3rem; }
.delivered ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; color: var(--muted); font-size: .75rem; }
.delivered li::before { content: "✓ "; color: var(--ink); font-weight: 700; }
.plan { list-style: none; padding: 1rem .9rem; display: grid; gap: 1.1rem; }
.plan li { position: relative; padding-left: 1.7rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: .15rem; width: .95rem; height: .95rem; border-radius: 50%; border: 1.5px solid #a9a59e; background: var(--paper); transition: background-color .2s, border-color .2s; }
.plan li::after { content: ""; position: absolute; left: calc(.475rem - .5px); top: 1.2rem; bottom: -1.2rem; border-left: 1px solid var(--line-strong); }
.plan li:last-child::after { display: none; }
.plan li.on::before { border-color: var(--ink); background: linear-gradient(90deg, var(--ink) 50%, var(--paper) 50%); }
.plan li.done::before { border-color: var(--ink); background: var(--ink); }
.plan b { display: block; font-size: .8125rem; color: var(--muted); }
.plan li.on b, .plan li.done b { color: var(--ink); }
.plan span { display: block; font-size: .75rem; color: var(--muted); margin-top: .1rem; }

/* reveal: everything is visible without JS; with JS, steps appear as the script reaches them */
.js [data-scn]:not(.final) [data-at]:not(.in) { display: none; }
.js [data-scn]:not(.final) [data-vis]:not(.in) { visibility: hidden; }
.js [data-scn] [data-at].in, .js [data-scn] [data-vis].in { animation: appear .3s ease-out; }
@keyframes appear { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* The new task opens a slot only when it arrives at the board. */
.js [data-scn="act"] .kcard.new.task-slot-opening { display: block; visibility: hidden; animation: none; overflow: hidden; }
.js [data-scn="act"] .kcard.new.in, .js [data-scn="act"].final .kcard.new { visibility: visible; animation: none; }

/* the cursor */
.cursor { position: absolute; left: 0; top: 0; z-index: 5; width: 1.3rem; height: 1.3rem; pointer-events: none; transform: translate(105%, 105%); transition: transform .85s cubic-bezier(.35, 0, .2, 1); opacity: 0; }
.cursor.on { opacity: 1; }
.cursor svg { position: absolute; left: 0; top: 0; width: 1.1rem; height: 1.5rem; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.cursor::after { content: ""; position: absolute; left: -.55rem; top: -.55rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--ink); background: rgba(26, 26, 25, .08); opacity: 0; transform: scale(.4); }
.cursor.click::after { animation: ring .45s ease-out; }
@keyframes ring { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.5); } }
.final .cursor { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-scn] [data-at].in, .js [data-scn] [data-vis].in, .cursor.click::after { animation: none; }
  .js .work li:not(.done)::before { animation: none; }
  .cursor { transition: none; }
}

/* ---------- the engagement, told as four cards over a painting ---------- */

.journey { display: grid; gap: 1rem; }
.cards4 { list-style: none; padding: 0; display: grid; gap: .9rem; }
@media (min-width: 40rem) { .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .cards4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.jcard { display: flex; flex-direction: column; gap: .5rem; min-height: 14rem; padding: 1.1rem 1.1rem 1.15rem; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); font-size: .9375rem; line-height: 1.45; }
.jhead { display: flex; align-items: center; gap: .6rem; }
.jn { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1.5px solid var(--ink); font-size: .8125rem; font-weight: 600; }
.jcard h3 { font-size: 1.125rem; }
.jsub { color: var(--muted); font-size: .8125rem; margin-top: -.25rem; }
.fieldnotes { list-style: none; padding: 0 0 0 .8rem; border-left: 2px solid var(--line-strong); display: grid; gap: .55rem; font: italic 400 1.0625rem/1.35 var(--serif); }
.req { font: 400 1.0625rem/1.4 var(--serif); }
.stamp { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; padding: .2rem .75rem; border: 1.5px solid var(--ink); border-radius: 999px; font-size: .8125rem; font-weight: 600; transform: rotate(-2deg); }
.meter { height: 6px; border-radius: 3px; background: var(--tile-2); overflow: hidden; }
.meter .fill { display: block; height: 100%; width: 0; background: var(--ink); transition: width 1s ease-out; }
.meter .fill.go { width: 100%; }
.ticks { list-style: none; padding: 0; display: grid; gap: .45rem; }
.ticks li { display: flex; align-items: center; gap: .55rem; }
.ticks li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .7rem; font-weight: 700; }
.jfoot { margin-top: auto; color: var(--muted); font-size: .8125rem; }
.track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; align-items: start; padding: .55rem 0; font-size: .8125rem; font-weight: 500; }
.tn { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: rgba(255, 255, 255, .8); text-align: center; text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .45); transition: color .3s; }
.tn::before { content: ""; flex: none; width: .7rem; height: .7rem; border-radius: 50%; border: 1.5px solid var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: background-color .3s; }
.tn::after { content: ""; position: absolute; left: calc(50% + .8rem); top: .35rem; width: calc(100% + .9rem - 1.6rem); height: 1px; background: rgba(255, 255, 255, .75); box-shadow: 0 1px 3px rgba(0, 0, 0, .45); }
.tn:last-child::after { display: none; }
.tn.done { color: var(--paper); }
.tn.done::before { background: var(--paper); }
@media (max-width: 40rem) {
  .journey { grid-template-columns: max-content minmax(0, 1fr); gap: .65rem; align-items: start; }
  .journey .cards4 { grid-column: 2; grid-row: 1; min-width: 0; }
  .journey .jcard { padding: .85rem .75rem; }
  .journey .track { grid-column: 1; grid-row: 1; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, 1fr); gap: 0; align-self: stretch; align-items: stretch; min-width: 4.5rem; padding: .9rem .6rem; }
  .journey .tn { position: relative; display: grid; place-items: center; flex: none; font-size: .75rem; white-space: nowrap; text-align: center; isolation: isolate; }
  .journey .tn-label { position: relative; z-index: 1; padding: .3rem .2rem; }
  .journey .tn::before { position: absolute; z-index: 1; left: 50%; top: calc(50% - 1.8rem); transform: translateX(-50%); }
  .journey .tn::after { position: absolute; z-index: 0; left: calc(50% - .5px); top: calc(50% + 1.25rem); width: 1px; height: calc(100% - 3.3rem); margin: 0; }
}

/* ---------- company: paintings, a drawing, very few words ---------- */

.stage.musicians { padding: 0; min-height: clamp(17rem, 40vw, 30rem); background-image: url("/assets/art/musicians.webp"); background-image: image-set(url("/assets/art/musicians.avif") type("image/avif"), url("/assets/art/musicians.webp") type("image/webp")); background-position: 50% 35%; }
.pit { position: relative; display: grid; place-items: center; text-align: center; min-height: clamp(18rem, 36vw, 27rem); padding: clamp(1.5rem, 6vw, 4rem); border-radius: 20px; overflow: hidden; color: #fff; background: #1b1511 center / cover no-repeat; background-image: url("/assets/art/pit.webp"); background-image: image-set(url("/assets/art/pit.avif") type("image/avif"), url("/assets/art/pit.webp") type("image/webp")); }
.pit::before { content: ""; position: absolute; inset: 0; background: rgba(12, 9, 6, .5); }
.pit p { position: relative; max-width: 24ch; font: italic 400 clamp(1.6rem, 1.1rem + 2vw, 2.75rem)/1.25 var(--serif); text-wrap: balance; }
.draw-tile { padding-block: clamp(.75rem, 3vw, 2rem) clamp(1rem, 3vw, 1.5rem); text-align: center; }
.draw-tile figcaption { margin-top: .5rem; font: italic 400 clamp(1.25rem, 1rem + 1vw, 1.75rem)/1.3 var(--serif); }
.d-line { stroke: var(--line-strong); fill: none; stroke-width: 1.5; }
.d-ink { stroke: var(--ink); fill: none; stroke-width: 1.5; }
.d-note { stroke: var(--ink); fill: var(--tile); stroke-width: 1.5; }
.d-solo { fill: var(--ink); }
.canvas-wrap { position: relative; aspect-ratio: 5 / 2; }
@media (max-width: 40rem) { .canvas-wrap { aspect-ratio: 1 / .9; } }
.canvas-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.art-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.art-ready .art-still { visibility: hidden; }
.draw-tile figcaption { min-height: 2.6em; display: grid; place-items: center; text-wrap: balance; }
[data-say].swap { animation: appear .4s ease-out; }
@media (prefers-reduced-motion: reduce) { [data-say].swap { animation: none; } }
.statements { display: grid; gap: 1.75rem var(--gap); padding-block: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 52rem) { .statements { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.statements > div { border-top: 1px solid var(--ink); padding-top: 1rem; }
.statements h2 { white-space: nowrap; }
.statements h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.75rem); line-height: 1.2; }
.statements p { margin-top: .4rem; color: var(--muted); }
.fine { padding-block: 1rem; font-size: .875rem; color: var(--muted); max-width: 52rem; }
.fine + .fine { padding-top: 0; }

/* ---------- contact ---------- */

.contact-card { background: var(--tile); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2rem); display: grid; gap: 1.25rem; }
.contact-card .mail { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); font-weight: 600; letter-spacing: -.025em; text-decoration: none; overflow-wrap: anywhere; }
.facts { display: grid; gap: 1.25rem 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
@media (min-width: 44rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facts dt { font-size: .875rem; font-weight: 500; color: var(--muted); margin-bottom: .25rem; }
.facts address { font-style: normal; }
.contact-card .actions { margin-top: 0; }

/* ---------- footer ---------- */

.footer { margin-top: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); padding-block: 2.5rem 2.25rem; font-size: .9375rem; }
.foot { display: grid; gap: 2rem var(--gap); }
@media (min-width: 52rem) { .foot { grid-template-columns: 1.6fr 1fr 1fr; } }
.foot h2 { font-size: .875rem; font-weight: 600; letter-spacing: 0; margin-bottom: .6rem; }
.foot ul { list-style: none; padding: 0; }
.foot li a { display: inline-block; padding-block: .2rem; color: var(--muted); text-decoration: none; }
.foot li a:hover { color: var(--ink); text-decoration: underline; }
.foot address { font-style: normal; color: var(--muted); margin-top: .75rem; }
.foot .legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.foot .legal + .legal { padding-top: 0; border-top: 0; margin-top: -.5rem; }

@media print { .topbar, .footer, .closing-cta, .stage-ctl { display: none; } }
