/* cgsireland.com
 *
 * One idea runs the system: software drafts, people decide. Work the
 * software prepared has a dashed edge; work a person approved is solid ink.
 * Signal orange means "a person is needed here" and nothing else.
 */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("/assets/fonts/martian-mono.woff2") format("woff2");
  font-weight: 300 700;
  font-stretch: 75% 112.5%;
  font-display: swap;
}

:root {
  --paper: #EDEFF1;
  --sheet: #FAFBFB;
  --ink: #101318;
  --graphite: #5C636E;
  --rule: #CDD2D8;
  --signal: #F2551D;
  --rust: #B8410F;
  --wash: #FBE3D9;

  --sans: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 6vw, 120px);
  --card-pad: clamp(28px, 4vw, 48px);
  --section: clamp(72px, 8vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-stretch: 100%;
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--rust); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.label { font-size: 0.9375rem; color: var(--graphite); }
.mono { font-family: var(--mono); font-stretch: 75%; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ header */

.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding-block: 18px; position: sticky; top: 0; z-index: 20;
  background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax);
}
.nav { align-items: center; }
.nav .nav-cta { min-height: 40px; padding: 8px 20px; font-size: 0.9375rem; color: var(--paper); text-decoration: none; }
.nav .nav-cta:hover { color: var(--ink); }
[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.site-header .logo img { height: 28px; width: auto; }
/* the main nav sits in one soft pill; the current section is marked as you scroll */
.nav {
  display: flex; gap: 2px; padding: 5px; font-size: 0.9688rem; font-weight: 550;
  background: var(--sheet); border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(16, 19, 24, 0.06), 0 10px 30px -18px rgba(16, 19, 24, 0.35);
}
.nav a { text-decoration: none; white-space: nowrap; }
.nav a:not(.nav-cta) {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px; border-radius: 999px;
  color: var(--graphite); transition: background-color 0.2s, color 0.2s;
}
.nav a:not(.nav-cta):hover, .nav a.is-active { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta { margin-left: 6px; border-radius: 999px; gap: 8px; }
.lang-switch { font-family: var(--mono); font-stretch: 75%; font-size: 0.8125rem; letter-spacing: 0.04em; }
.nav .lang-switch { padding: 0 14px; }
.nav .nav-cta span { transition: transform 0.2s; }
.nav .nav-cta:hover span { transform: translateX(3px); }
.site-header { transition: padding 0.2s; }
.site-header.scrolled { padding-block: 10px; }
.menu { display: none; }

@media (max-width: 1080px) {
  .site-header { padding-block: 14px; }
  .site-header .logo img { height: 20px; }
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary {
    list-style: none; cursor: pointer; width: 44px; height: 44px;
    display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
  }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary span { display: block; width: 24px; height: 2px; background: var(--ink); }
  .menu[open] summary span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu[open] summary span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .menu nav {
    position: absolute; right: 0; top: 52px; z-index: 5; min-width: 220px;
    background: var(--sheet); border-radius: 14px; box-shadow: 0 24px 48px -20px rgba(16, 19, 24, 0.35); overflow: hidden; display: flex; flex-direction: column;
  }
  .menu nav a { padding: 12px 18px; min-height: 48px; text-decoration: none; border-bottom: 1px solid var(--rule); font-weight: 600; }
  .menu nav a:last-child { border-bottom: 0; }
  .menu nav .nav-cta { margin: 10px 14px 14px; border-radius: 10px; justify-content: center; color: var(--paper); }
}

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

.display {
  font-weight: 640; line-height: 1.04; letter-spacing: -0.022em;
  font-size: clamp(2.5rem, 1.5rem + 3.6vw, 4.75rem);
}
.h2 {
  font-weight: 620; line-height: 1.12; letter-spacing: -0.015em;
  font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.5rem);
}
.h2-big {
  font-weight: 640; line-height: 1.08; letter-spacing: -0.02em;
  font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.5rem);
}
.h3 { font-weight: 620; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem); line-height: 1.25; }
.lede { font-size: clamp(1.125rem, 1rem + 0.45vw, 1.4375rem); line-height: 1.5; color: var(--graphite); }
.body-lg { font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem); line-height: 1.6; }
.muted { color: var(--graphite); }

/* ------------------------------------------------------------ controls */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 10px;
  padding: 12px 22px; font: inherit; font-weight: 650; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.chip {
  font-family: var(--mono); font-stretch: 75%; font-size: 0.6875rem; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
.chip-done { color: var(--graphite); border: 1px solid var(--rule); }
.chip-wait { color: var(--ink); background: var(--signal); border: 1px solid var(--signal); }
.chip-ok { color: var(--paper); background: var(--ink); border: 1px solid var(--ink); }

.approve {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  font: inherit; font-weight: 650; font-size: 0.875rem; color: var(--ink);
  background: transparent; border: 1px dashed var(--ink); border-radius: 2px; cursor: pointer;
}
.approve:hover { border-style: solid; background: var(--ink); color: var(--paper); }

/* ------------------------------------------------------------ layout */

.section { padding-top: var(--section); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.split > :first-child { grid-column: span 5; }
.split > :last-child { grid-column: 6 / span 7; }
.split-4 > :first-child { grid-column: span 4; }
.split-4 > :last-child { grid-column: 6 / span 6; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ruled { padding-top: 0; }
.head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; }
.pad-top { padding-top: 30px; }

@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .split > *, .split-4 > * { grid-column: 1 / -1 !important; }
  .cols-2, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .pad-top { padding-top: 0; }
}

/* ------------------------------------------------------------ hero */

.hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; }
.hero h1 { max-width: 20ch; }
.hero .grid { align-items: end; }
.hero .lede { grid-column: span 7; }
.hero .actions { grid-column: 8 / span 5; justify-content: flex-end; }
@media (max-width: 860px) {
  .hero .lede, .hero .actions { grid-column: 1 / -1; justify-content: flex-start; }
  .hero .actions .btn { flex: 1 1 100%; }
}

/* Home hero: words on the left, the demo loop on the right. */
.hero-split { padding-block: clamp(28px, 4vw, 56px) 8px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: center; }
.hero-text { grid-column: span 6; display: flex; flex-direction: column; gap: 26px; }
.eyebrow {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--sheet);
  box-shadow: 0 0 0 1px rgba(16, 19, 24, 0.06); font-size: 0.875rem; font-weight: 600;
}
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px rgba(16, 19, 24, 0.1); }
.proof {
  list-style: none; margin: 8px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.proof li { display: flex; flex-direction: column; gap: 4px; font-size: 0.875rem; line-height: 1.4; color: var(--graphite); }
.proof li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.proof strong { font-size: 1.25rem; font-weight: 650; color: var(--ink); letter-spacing: -0.01em; }
@media (max-width: 600px) {
  .proof { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .proof li + li { padding-left: 0; border-left: 0; }
}
.hero-split h1 { font-size: clamp(2.4rem, 1.4rem + 2.7vw, 4.25rem); }
.hero-split .actions { justify-content: flex-start; }
.hero-demo { grid-column: 7 / -1; margin: 0; display: flex; flex-direction: column; gap: 14px; }
/* the demo sits in an app window, with a soft grid behind it */
.hero-demo { position: relative; }
.hero-demo::before {
  content: ""; position: absolute; z-index: -1; inset: -48px -48px 40px -48px; border-radius: 32px;
  background-image: radial-gradient(rgba(16, 19, 24, 0.28) 1.2px, transparent 1.7px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at center, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 65% at center, #000 40%, transparent 100%);
}
.hero-window {
  background: #0e0d14; border-radius: 16px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(16, 19, 24, 0.12), 0 50px 90px -40px rgba(16, 19, 24, 0.6), 0 18px 36px -24px rgba(16, 19, 24, 0.35);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #1a1b24; border-bottom: 1px solid #262833; }
.window-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3d4a; }
.window-bar em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: #8C939E; letter-spacing: 0.01em; }
.hero-video { aspect-ratio: 16 / 9; background: #0e0d14; overflow: hidden; }
.hero-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo-steps li { border-top: 2px solid var(--rule); border-radius: 1px; padding-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--graphite); display: flex; gap: 8px; align-items: baseline; transition: color 0.3s, border-color 0.3s; }
.demo-steps li .mono { font-size: 0.75rem; font-weight: 400; }
.demo-steps li.on { border-top-color: var(--ink); color: var(--ink); }
.demo-jump { all: unset; box-sizing: border-box; display: flex; gap: 8px; align-items: baseline; width: 100%; cursor: pointer; min-height: 32px; }
.demo-jump:hover { color: var(--ink); }
.demo-jump:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.demo-steps li:has(.demo-jump):hover { border-top-color: var(--graphite); }
.demo-steps li.on:has(.demo-jump):hover { border-top-color: var(--ink); }
.hero-demo .caption { margin-top: 0; }
@media (max-width: 960px) {
  .hero-window { border-radius: 14px; }
  .hero-demo::before { display: none; }
  .hero-split { grid-template-columns: minmax(0, 1fr); }
  .hero-text, .hero-demo { grid-column: 1 / -1; }
}
@media (max-width: 860px) { .hero-split .actions .btn { flex: 1 1 100%; } }

/* ------------------------------------------------------------ run sheet */

.run { background: var(--sheet); border: 1px solid var(--rule); }
.run-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--rule); }
.run ol { list-style: none; margin: 0; padding: 0; }
.run li {
  display: grid; grid-template-columns: 70px 250px minmax(0, 1fr) auto; gap: 6px 16px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--rule); font-size: 1.0625rem;
}
.run li:last-child { border-bottom: 0; }
.run .t { font-family: var(--mono); font-stretch: 75%; font-size: 0.8125rem; color: var(--graphite); font-variant-numeric: tabular-nums; }
.run .what { font-weight: 600; }
.run .state { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.run li.waiting { background: var(--wash); }
.run li.waiting .what { color: var(--rust); }
.caption { font-size: 0.875rem; color: var(--graphite); margin-top: 12px; }
@media (max-width: 860px) {
  .run-head { padding: 12px 14px; }
  .run li { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 14px; align-items: start; font-size: 1rem; }
  .run .t { padding-top: 3px; }
  .run .detail, .run .state { grid-column: 2; }
  .run .detail { font-size: 0.9375rem; }
  .run .state { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .run li.just { animation: settle 0.5s ease-out; }
  @keyframes settle { from { background: var(--wash); } to { background: transparent; } }
}

/* ------------------------------------------------------------ cards and lists */

.card { background: var(--sheet); border-radius: 22px; overflow: hidden; padding: var(--card-pad); display: flex; flex-direction: column; gap: 14px; }
.card .h2 { font-size: clamp(1.5rem, 1.3rem + 0.6vw, 1.875rem); }
.card-row { display: flex; justify-content: space-between; gap: 12px; }
.draft { border: 1px dashed var(--graphite); border-radius: 12px; background: var(--sheet); color: var(--ink); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.final { border: 1px solid var(--ink); border-radius: 12px; background: var(--sheet); color: var(--ink); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.also { display: grid; grid-template-columns: 180px repeat(3, minmax(0, 1fr)); gap: 12px 24px; border-top: 1px solid var(--rule); padding-top: 18px; align-items: baseline; font-size: 1rem; }
@media (max-width: 860px) { .also { grid-template-columns: minmax(0, 1fr); } }

.ledger { list-style: none; margin: 0; padding: 8px var(--card-pad); background: var(--sheet); border-radius: 22px; }
.ledger li { display: grid; grid-template-columns: 300px minmax(0, 1fr) 200px; gap: 6px 24px; padding: 22px 0; border-bottom: 1px solid #E4E7EB; align-items: baseline; }
.ledger li:last-child { border-bottom: 0; }
.ledger .name { font-weight: 620; font-size: 1.3125rem; }
.ledger .desc { color: var(--graphite); font-size: 1.0625rem; }
.ledger .amt { font-family: var(--mono); font-stretch: 75%; font-size: 1.0625rem; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 860px) {
  .ledger li { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0; }
  .ledger .name { font-size: 1.125rem; }
  .ledger .amt { font-size: 0.875rem; }
  .ledger .desc { grid-column: 1 / -1; grid-row: 2; font-size: 0.9375rem; }
}

.defs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 48px; }
.defs div { display: flex; flex-direction: column; gap: 6px; font-size: 1.0625rem; }
.defs dt { font-weight: 620; font-size: 1.1875rem; }
.defs dd { margin: 0; color: var(--graphite); }
@media (max-width: 600px) { .defs { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: 0.9375rem; background: var(--sheet); padding: 7px 14px; border-radius: 999px; }

.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.meta div { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 860px) { .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr) 56px minmax(0, 1fr); }
.flow > div.box { padding: 24px; border-radius: 16px; display: flex; flex-direction: column; gap: 10px; }
.flow .arrow { display: flex; align-items: center; justify-content: center; }
.flow .box-draft { border: 1px dashed var(--graphite); background: var(--sheet); }
.flow .box-wait { border: 1px solid var(--signal); background: var(--wash); }
.flow .box-done { border: 1px solid var(--ink); background: var(--sheet); }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .arrow { height: 40px; transform: rotate(90deg); }
}

/* workflow chain: a line through the steps; the orange node is where a person decides */
.chain { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px; }
.chain::before { content: ""; position: absolute; left: 10px; right: 0; top: 9px; height: 2px; background: var(--ink); }
.chain li { position: relative; padding-top: 44px; display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; line-height: 1.4; }
.chain li::before { content: ""; position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 7px var(--paper); }
.chain li > .label { display: none; }
.chain li strong { font-weight: 620; font-size: 1.125rem; }
.chain li span:last-child { color: var(--graphite); }
.chain li.wait::before { background: var(--signal); }
.chain li.wait strong { color: var(--rust); }
@media (max-width: 1100px) {
  .chain { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .chain::before { left: 9px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .chain li { padding: 0 0 0 48px; }
}

.part .media { margin: calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad)) 6px; background: var(--ink); aspect-ratio: 16 / 9; overflow: hidden; }
.part .media video, .part .media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.part .caption { margin-top: 0; }
.part .media.contain video, .part .media.contain img { object-fit: contain; object-position: center; }

.prose { max-width: 68ch; display: flex; flex-direction: column; gap: 1em; }
.prose h2 { font-weight: 620; font-size: 1.75rem; line-height: 1.15; margin-top: 1.2em; }
.prose ul { margin: 0; padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

/* ------------------------------------------------------------ form */

.form { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 650; }
.field input, .field textarea {
  font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(16, 19, 24, 0.12); }
.field textarea { min-height: 160px; resize: vertical; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--sheet); border-radius: 14px; padding: 20px 24px; max-width: 640px; }
.notice.problem { background: var(--wash); }

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

.site-footer {
  margin-top: var(--section); border-top: 1px solid var(--rule); padding-block: 26px 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: 0.875rem; color: var(--graphite);
}
.site-footer a { color: var(--graphite); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer .legal { display: flex; align-items: center; }

/* notes */

.note-title { max-width: 22ch; font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem); }

.note-body { max-width: 68ch; font-size: 1.1875rem; line-height: 1.6; }
.note-body h2 { font-weight: 620; line-height: 1.2; margin-top: 1.4em; margin-bottom: 0.2em; }
.note-body h2:first-child { margin-top: 0; }
.note-body p, .note-body ul, .note-body ol, .note-body pre, .note-body blockquote { margin: 0; }
.note-body ul, .note-body ol { padding-left: 1.2em; }
.note-body li { margin-bottom: 0.4em; }
.note-body a { text-decoration: underline; text-decoration-thickness: 1px; }
.note-body img { max-width: 100%; }
.note-body blockquote {
  font-style: italic; background: var(--paper); border: 1px dashed var(--graphite);
  border-radius: 2px; padding: 16px 20px;
}
.note-body code {
  font-family: var(--mono); font-stretch: 75%; font-size: 0.9em; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: 2px; padding: 0.1em 0.35em;
}
.note-body pre { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 16px 18px; }
.note-body pre code { background: none; border: 0; padding: 0; }
@media (max-width: 860px) {
  .note-body { font-size: 1.0625rem; }
}

.notes-list { list-style: none; margin: 0; padding: 0; }
.notes-list li {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 4px 24px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline;
}
.notes-list h3 { font-size: 1.3125rem; }
.notes-list h3 a { text-decoration: none; }
.notes-list h3 a:hover { text-decoration: underline; }
.notes-list p { grid-column: 2; margin: 0; }
@media (max-width: 860px) {
  .notes-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .notes-list p { grid-column: 1; }
}

/* ------------------------------------------------------------ home flow
 * The home page is one continuous read: no boxes or rules between sections,
 * just space, two full-width bands, and a timeline for the one real sequence. */

.flow-sec { padding-top: var(--section); }
.band {
  --band: var(--paper);
  margin-top: var(--section); padding-block: clamp(64px, 8vw, 120px);
  background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
}
.band-ink { --band: #101318; color: var(--paper); }
.band-mist { --band: #DEE3E9; }

/* what we automate: a pinned intro beside a two-column list */
.automate, .security { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 96px; align-items: start; }
.security .actions { margin-top: 6px; }

/* what we do: three practices as equal soft panels */
.practices-sec { display: flex; flex-direction: column; gap: 36px; }
.practices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.practice {
  height: 100%; display: flex; flex-direction: column; gap: 12px; padding: clamp(24px, 3vw, 36px);
  background: var(--sheet); border-radius: 22px; color: var(--ink); text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.practice:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(16, 19, 24, 0.35); }
.practice p { color: var(--graphite); }
.practice .tile-more { margin-top: auto; }
.automate-intro { position: sticky; top: 40px; display: flex; flex-direction: column; gap: 22px; }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.tasks li { display: flex; flex-direction: column; gap: 8px; }
.tasks p { color: var(--graphite); }

/* control: the one dark moment, with the run sheet floating on it */
.control { display: grid; grid-template-columns: 5fr 7fr; gap: 48px 72px; align-items: center; }
.control-text { display: flex; flex-direction: column; gap: 22px; }
.control .body-lg { color: #C9CED6; }
.control-note { color: #8C939E; font-size: 0.9375rem; max-width: 44ch; }
.control .run { border: 0; border-radius: 16px; overflow: hidden; color: var(--ink); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.7); }
.control .run-head { font-size: 0.875rem; font-weight: 600; color: var(--graphite); padding: 18px 24px; border-bottom-color: #E4E7EB; }
.control .run li { grid-template-columns: 52px 168px minmax(0, 1fr) auto; padding: 14px 24px; font-size: 1rem; border-bottom-color: #E4E7EB; }
.control .run .detail { color: var(--graphite); font-size: 0.9375rem; }
.control .chip { border-radius: 999px; padding: 5px 11px; }
.control .chip-done { border: 0; background: #EDEFF1; }
.control .approve { border: 0; border-radius: 999px; background: var(--signal); color: var(--ink); padding: 8px 18px; min-height: 40px; }
.control .approve:hover { background: var(--ink); color: var(--paper); }

/* work: two soft panels side by side, same height */
.work-sec { display: flex; flex-direction: column; gap: 36px; }
.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: stretch; }
.showcase-one { grid-template-columns: minmax(0, 1fr); }
.showcase-one .tile { min-height: 0; }
.tile {
  display: flex; flex-direction: column; gap: 14px; min-height: 380px;
  padding: clamp(28px, 4vw, 56px); background: var(--sheet); border-radius: 22px;
  color: var(--ink); text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tile:hover { color: var(--ink); transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(16, 19, 24, 0.35); }
.tile-kind { color: var(--graphite); font-size: 0.9375rem; }
.tile-name { font-size: clamp(2.75rem, 1.6rem + 3.4vw, 5rem); font-weight: 640; letter-spacing: -0.035em; line-height: 1; }
.tile-text { color: var(--graphite); max-width: 40ch; font-size: 1.0625rem; }
.tile-more { margin-top: auto; padding-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }

/* process: one line running through three steps */
.process { display: flex; flex-direction: column; gap: 56px; }
.process-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; }
.process-head .h2 { max-width: 18ch; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; right: 0; top: 9px; height: 2px; background: var(--ink);
  -webkit-mask-image: linear-gradient(to right, #000 75%, transparent); mask-image: linear-gradient(to right, #000 75%, transparent);
}
.timeline li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-top: 48px; }
.timeline .node { position: absolute; top: 0; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 7px var(--paper); }
.timeline .node-loop { background: var(--paper); border: 2px solid var(--ink); }
.timeline .when { color: var(--graphite); font-size: 0.9375rem; }
.timeline p { max-width: 36ch; }
.timeline .price { margin-top: auto; padding-top: 10px; font-family: var(--mono); font-stretch: 75%; font-size: 1.125rem; font-variant-numeric: tabular-nums; }

/* closing */
.closing { display: grid; grid-template-columns: 7fr 5fr; gap: 32px 72px; align-items: end; }
.closing .h2-big { max-width: 16ch; }
.closing-side { display: flex; flex-direction: column; gap: 24px; }
main:has(> .band:last-child) + .site-footer { margin-top: 0; border-top: 0; }

@media (max-width: 960px) {
  .automate, .security, .control, .showcase, .closing, .practices { grid-template-columns: minmax(0, 1fr); }
  .automate-intro { position: static; }
  .practice { height: auto; }
  .tile { min-height: 0; }
}
@media (max-width: 860px) {
  .control .run li { grid-template-columns: 44px minmax(0, 1fr); padding: 12px 16px; }
  .control .run-head { padding: 14px 16px; }
  .timeline { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .timeline::before { left: 9px; right: auto; top: 10px; bottom: 0; width: 2px; height: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent); mask-image: linear-gradient(to bottom, #000 80%, transparent); }
  .timeline li { padding: 0 0 0 48px; }
}
@media (max-width: 600px) {
  .tasks { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (prefers-reduced-motion: reduce) { .tile, .practice { transition: none; } .tile:hover, .practice:hover { transform: none; } }

/* single-column definition list, and the space that holds one beside a tile */
.defs-single { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.defs-tile { padding: var(--card-pad) 0; }
/* the dark band can hold the draft and approved pair */
.band-ink .draft { background: #1C2129; color: var(--paper); border-color: #5C636E; }
/* case study footer: next study beside a call to action, as two soft panels */
.next-row > div { background: var(--sheet); border-radius: 22px; padding: var(--card-pad); }

/* pricing notes beside the timeline, and the contact form in the closing band */
.price-notes dt { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.price-notes .price { font-family: var(--mono); font-stretch: 75%; font-weight: 400; font-size: 1rem; font-variant-numeric: tabular-nums; }
.closing-form { align-items: start; }
@media (min-width: 961px) { .closing-form { grid-template-columns: 6fr 6fr; } }
.closing-text { display: flex; flex-direction: column; gap: 22px; }
/* topic choice as pills, and the three steps after sending */
.choice { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice legend { font-weight: 650; padding: 0; margin-bottom: 8px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper); font-size: 0.9688rem; font-weight: 550; color: var(--graphite);
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.choice label:hover span { border-color: var(--graphite); color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 3px; }
.next-steps { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 18px; }
.next-steps li { counter-increment: step; position: relative; padding-left: 48px; display: flex; flex-direction: column; gap: 2px; }
.next-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-stretch: 75%; font-size: 0.8125rem;
}
.next-steps strong { font-weight: 620; }
.next-steps span { color: var(--graphite); font-size: 1rem; }
.closing-form .form { background: var(--sheet); border-radius: 22px; padding: var(--card-pad); max-width: none; }

/* ------------------------------------------------------------ pricing
 * The price is the headline of each step; other work sits in its own row,
 * and the terms are fine print underneath. */
.pricing { display: flex; flex-direction: column; gap: 40px; }
.pricing-head { display: flex; flex-direction: column; gap: 14px; max-width: 46ch; }
.price-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pcard { position: relative; background: var(--sheet); border-radius: 22px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 10px; }
.pcard + .pcard::before {
  content: "→"; position: absolute; left: -20px; top: 38px; width: 20px; text-align: center;
  color: var(--graphite); font-size: 1rem;
}
.pcard-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.pcard-n {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--paper); font-family: var(--mono); font-stretch: 75%; font-size: 0.8125rem;
}
.pcard-when { color: var(--graphite); font-size: 0.9375rem; }
.pcard-price, .owork-price {
  font-weight: 640; letter-spacing: -0.025em; line-height: 1.05; font-variant-numeric: tabular-nums;
  font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3rem);
}
.pcard-price small, .owork-price small { font-size: 0.4em; font-weight: 550; letter-spacing: 0; color: var(--graphite); }
.pcard-text { color: var(--graphite); font-size: 1.0625rem; margin-top: 6px; }
.pcard-note {
  margin-top: auto; padding-top: 16px; border-top: 1px solid #E4E7EB; font-size: 0.9375rem; font-weight: 600;
}
.pcard-text + .pcard-note { margin-top: auto; }
.pcard .pcard-text { flex: 1 0 auto; }
.other-work { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.owork-wide { grid-column: 1 / -1; }
.owork .owork-scoped { font-size: 1.125rem; white-space: normal; text-align: right; font-weight: 600; letter-spacing: 0; }
.owork {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: clamp(22px, 2.6vw, 32px) clamp(24px, 3vw, 36px); border-radius: 22px;
  border: 1px solid var(--rule); color: var(--ink); text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.owork:hover { background: var(--sheet); border-color: var(--sheet); color: var(--ink); }
.owork > div { display: flex; flex-direction: column; gap: 6px; }
.owork p:not(.owork-price) { color: var(--graphite); font-size: 1rem; }
.owork .h3::after { content: " →"; color: var(--graphite); }
.owork-price { font-size: clamp(1.75rem, 1.4rem + 0.9vw, 2.25rem); white-space: nowrap; }
.fine { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; font-size: 0.9375rem; }
.fine div { display: flex; flex-direction: column; gap: 4px; }
.fine dt { font-weight: 620; }
.fine dd { margin: 0; color: var(--graphite); }
@media (max-width: 960px) {
  .price-steps, .other-work, .fine { grid-template-columns: minmax(0, 1fr); }
  .pcard + .pcard::before { content: "↓"; left: 0; right: 0; top: -20px; width: auto; }
}
@media (max-width: 600px) {
  .owork { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* who you will work with */
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.person img { width: 220px; height: 220px; border-radius: 22px; object-fit: cover; }
.person-text { display: flex; flex-direction: column; gap: 12px; max-width: 62ch; }
@media (max-width: 640px) {
  .person { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .person img { width: 160px; height: 160px; }
}

/* ------------------------------------------------------------ service pages (2026-11-20) */

/* a page-level intro row: heading left, text right */
.intro { display: grid; grid-template-columns: 5fr 7fr; gap: 24px 96px; align-items: start; }
.intro .body-lg { color: var(--graphite); }
@media (max-width: 860px) { .intro { grid-template-columns: minmax(0, 1fr); } }

/* the path a piece of work takes, left to right; the step where a person
 * decides is the only orange one */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: path; }
.path li { position: relative; background: var(--sheet); border-radius: 22px; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 8px; }
.path li + li::before { content: "→"; position: absolute; left: -20px; top: 34px; width: 20px; text-align: center; color: var(--graphite); }
.path .step { font-family: var(--mono); font-stretch: 75%; font-size: 0.8125rem; color: var(--graphite); }
.path p { color: var(--graphite); font-size: 1rem; }
.path li.person { background: var(--wash); }
.path li.person .step, .path li.person h3 { color: var(--rust); }
.band-ink .path li { background: #1C2129; }
.band-ink .path p, .band-ink .path .step { color: #A9B0BA; }
.band-ink .path li.person { background: var(--signal); color: var(--ink); }
.band-ink .path li.person p, .band-ink .path li.person .step, .band-ink .path li.person h3 { color: var(--ink); }
@media (max-width: 960px) {
  .path { grid-template-columns: minmax(0, 1fr); }
  .path li + li::before { content: "↓"; left: 0; right: 0; top: -20px; width: auto; }
}

/* two doors: startups and SMEs */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 860px) { .doors { grid-template-columns: minmax(0, 1fr); } }

/* a labelled strip of plain facts under the hero */
.facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 32px; }
.facts li { display: flex; flex-direction: column; gap: 4px; }
.facts strong { font-weight: 620; font-size: 1.0625rem; }
.facts span { color: var(--graphite); font-size: 0.9375rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ: native disclosure, one per question */
.faqs { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; min-height: 44px; font-weight: 620; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--graphite); }
.faq[open] summary::after { content: "−"; }
.faq > div { padding: 0 0 22px; color: var(--graphite); max-width: 70ch; }

/* demo builds say so before anything else */
.demo-note { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px; border: 1px dashed var(--graphite); border-radius: 999px; font-size: 0.9375rem; }
.tile-demo { border: 1px dashed var(--graphite); background: transparent; }
.tile-demo .tile-name { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.showcase-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.showcase-3 .tile { min-height: 300px; }
@media (max-width: 960px) { .showcase-3 { grid-template-columns: minmax(0, 1fr); } .showcase-3 .tile { min-height: 0; } }

/* a single framed video on a study page */
.study-video { border-radius: 18px; overflow: hidden; background: #0e0d14; }
.study-video video { display: block; width: 100%; height: auto; }
.study-video.contain { background: var(--sheet); }
.study-video.contain video { max-height: 70vh; width: auto; margin-inline: auto; }

/* tap targets for contact lines */
.contact-lines { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.contact-lines a { display: inline-flex; align-items: center; min-height: 44px; }
