/* ==========================================================================
   Voitta · Tools for working with AI
   Editorial dark layout on a 12-column grid that widens to 1440px.
   Gutters scale with the window; cards in a row share row lines via subgrid.
   ========================================================================== */

:root {
  color-scheme: dark;

  --bg:      #0B1517;
  --bg-2:    #0F1C1F;
  --bg-3:    #142427;
  --line:    rgba(236, 231, 222, 0.12);
  --line-2:  rgba(236, 231, 222, 0.24);

  --text:    #ECE7DE;
  --mute:    #ABB6B3;
  --dim:     #95A3A0;

  --brass:   #CDA86C;
  --brass-2: #E2C38E;
  --blue:    #0071E3;   /* Voitta logo blue: logo and robot cursor only */

  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --max:    1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --gap:    clamp(20px, 2.2vw, 32px);
  --section: clamp(52px, 4.8vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video, svg { display: block; max-width: 100%; }
::selection { background: var(--brass); color: var(--bg); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 4px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Grid ---------- */
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }

/* ---------- Small type ---------- */
.cover-meta, .chapter-num, .tag, .tool-kicker, .demo-tag, .lab-k, .person-role, .mast-links a, .cmd-bar, .chips-k, .ti-num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Masthead ---------- */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(11, 21, 23, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.mast-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-tile { width: 30px; height: 30px; border-radius: 7px; }
.brand-word { font-family: var(--serif); font-size: 26px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
.mast-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.mast-links a { text-decoration: none; color: var(--mute); letter-spacing: .07em; }
.mast-links a:hover { color: var(--text); }
@media (max-width: 760px) { .mast-links { display: none; } }

/* ---------- Buttons & links ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 3px; font: 600 15.5px/1 var(--sans); text-decoration: none; letter-spacing: .01em; transition: background .2s, color .2s, border-color .2s; }
.btn-solid { background: var(--text); color: var(--bg); }
.btn-solid:hover { background: var(--brass-2); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-line { min-height: 40px; padding: 0 16px; font-size: 14.5px; border: 1px solid var(--line-2); }
.btn-line:hover { border-color: var(--text); }
.link-under { font-size: 16px; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; text-decoration-thickness: 1px; color: var(--text); }
.link-under:hover { color: var(--brass-2); }
.cover-lede--quiet { color: var(--mute); }
.cover-aside .actions { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

/* ---------- Cover ---------- */
.cover { padding-block: clamp(36px, 4vw, 64px) var(--section); }
.bar { height: 10px; background: var(--text); margin-bottom: 14px; }
.cover-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.cover-grid { margin-top: clamp(32px, 4vw, 56px); align-items: center; row-gap: 32px; }
.cover-title {
  grid-column: 1 / span 6;
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 6.6vw, 108px);
  line-height: .98;
  letter-spacing: -.026em;
}
.cover-aside { grid-column: 7 / -1; display: flex; flex-direction: column; gap: 18px; padding-bottom: .5em; }
.cover-lede { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.3vw, 20px); line-height: 1.55; font-weight: 350; }
@media (max-width: 1023px) {
  .cover-title, .cover-aside { grid-column: 1 / -1; }
  .cover-aside { max-width: 640px; padding-bottom: 0; }
}

.tool-index { list-style: none; margin: clamp(56px, 6vw, 96px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); border-top: 4px solid var(--text); }
.tool-index a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; row-gap: 6px; padding: 20px 0 6px; text-decoration: none; }
.ti-num { grid-column: 1; color: var(--brass); }
.ti-name { grid-column: 1; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 28px); font-weight: 500; line-height: 1.15; }
.ti-what { grid-column: 1; font-size: 14.5px; color: var(--mute); }
.ti-go { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 20px; color: var(--dim); transition: transform .2s, color .2s; }
.tool-index a:hover .ti-name { color: var(--brass-2); }
.tool-index a:hover .ti-go { color: var(--brass-2); transform: translateY(3px); }
@media (max-width: 760px) {
  .tool-index { grid-template-columns: 1fr; }
  .tool-index li + li a { border-top: 1px solid var(--line); }
  .tool-index a { padding-bottom: 18px; }
}

/* ---------- Chapters ---------- */
.chapter { padding-block: var(--section); border-top: 1px solid var(--line); }
.chapter--alt { background: var(--bg-2); }
.chapter-head { border-top: 4px solid var(--text); padding-top: 22px; margin-bottom: clamp(36px, 4vw, 56px); row-gap: 22px; }
.ch-title { grid-column: 1 / span 5; }
.ch-intro { grid-column: 7 / -1; }
.chapter-num { display: block; color: var(--brass); margin-bottom: 14px; }
.chapter-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.5vw, 54px); line-height: 1.04; letter-spacing: -.018em; }
.byline { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 15px; color: var(--mute); }
.byline--flat { margin: 0; }
.ch-intro p { margin: 0; padding-top: 32px; max-width: 60ch; font-family: var(--serif); font-size: clamp(19px, 1.4vw, 21px); line-height: 1.55; font-weight: 350; }
@media (max-width: 959px) {
  .ch-title, .ch-intro { grid-column: 1 / -1; }
  .ch-intro p { padding-top: 0; }
}

/* ---------- Tools: three columns that share row lines ---------- */
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.tool { display: grid; grid-row: span 8; grid-template-rows: subgrid; align-content: start; }
.tool > * { margin: 0; min-width: 0; }
.tool-img { aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg-3); margin-bottom: 26px; }
.tool-img img { width: 100%; height: 100%; object-fit: cover; }
.tool-img--light { background: #fff; }
.tool-img--ui { background: #1D1D1F; }
.tool-img--ui img { object-position: left top; }
.tool-img--mascot { display: grid; place-items: center; background: #0B1517; }
.tool-img--mascot img { width: auto; height: 50%; object-fit: contain; }
.tool-kicker { color: var(--brass); margin-bottom: 8px; }
.tool-name { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.3vw, 36px); line-height: 1.08; letter-spacing: -.015em; }
.tool-tag { margin: 6px 0 16px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.35; color: var(--brass-2); }
.tool-desc { margin-bottom: 22px; font-size: 17px; line-height: 1.6; color: var(--mute); }
.tool-note { margin-bottom: 16px; font-size: 16px; line-height: 1.55; color: var(--mute); }
.tool-note a { color: var(--text); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.tool code { font-family: var(--mono); font-size: .88em; color: var(--text); background: rgba(236, 231, 222, .07); padding: 1px 5px; border-radius: 3px; overflow-wrap: anywhere; }
.tool-links { display: flex; flex-wrap: wrap; gap: 10px 26px; align-self: start; }

.cmd { align-self: stretch; margin-bottom: 14px; border: 1px solid var(--line-2); border-radius: 6px; background: #071012; overflow: hidden; }
.cmd-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; padding: 0 8px 0 14px; border-bottom: 1px solid var(--line); color: var(--dim); letter-spacing: .06em; }
.cmd pre { margin: 0; padding: 14px 16px 16px; font-family: var(--mono); font-size: 14px; line-height: 1.65; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.cmd .ln { display: block; padding-left: 2ch; text-indent: -2ch; }
.cmd .nw { white-space: nowrap; }
@media (max-width: 520px) { .cmd pre { font-size: 12.5px; padding: 12px 12px 14px; } }
.copy { font: 600 13px/1 var(--sans); letter-spacing: .03em; color: var(--text); background: transparent; border: 1px solid var(--line-2); border-radius: 3px; padding: 6px 10px; cursor: pointer; text-transform: none; }
.copy:hover { border-color: var(--text); }

@media (max-width: 1279px) {
  .tools { grid-template-columns: 1fr; row-gap: 56px; }
  .tool { grid-row: auto; grid-template-rows: none; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--gap); align-items: start; padding-top: 40px; border-top: 1px solid var(--line-2); }
  .tool:first-child { padding-top: 0; border-top: 0; }
  .tool > * { grid-column: 2; }
  .tool > .tool-img { grid-column: 1; grid-row: 1 / span 7; margin: 0; }
  .tool-desc, .tool-note { max-width: 64ch; }
}
@media (max-width: 760px) {
  .tool { grid-template-columns: 1fr; }
  .tool > *, .tool > .tool-img { grid-column: 1; grid-row: auto; }
  .tool > .tool-img { margin-bottom: 22px; }
}

/* ---------- Exhibits ---------- */
.exhibit { margin: 0; min-width: 0; }
.exhibits { margin-top: clamp(56px, 5vw, 80px); row-gap: 72px; }
.exhibit--table { grid-column: 1 / span 7; }
.exhibit--kpis { grid-column: 9 / -1; }
@media (max-width: 1279px) { .exhibit--table, .exhibit--kpis { grid-column: 1 / -1; } }
.exhibit-head { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.tag { flex: none; background: var(--text); color: var(--bg); padding: 4px 9px 3px; font-size: 12.5px; letter-spacing: .1em; }
.exhibit-title { font-family: var(--serif); font-size: 21px; line-height: 1.3; font-weight: 500; text-wrap: balance; }
.exhibit-source { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--dim); max-width: 860px; }

.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 18px 16px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.5; }
.compare td:last-child, .compare th:last-child { padding-right: 0; }
.compare thead th { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--text); padding-top: 14px; }
.compare tbody th { width: 17%; font-weight: 600; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--mute); padding-top: 18px; }
.compare td { color: var(--mute); }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.kpis div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 22px 20px 22px 0; border-bottom: 1px solid var(--line); }
.kpis div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--line); }
.kpis dt { font-size: 16px; color: var(--mute); line-height: 1.45; }
.kpis dd { margin: 0; font-family: var(--sans); font-size: clamp(36px, 3.4vw, 50px); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 761px) and (max-width: 1279px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis div { padding-left: 22px; border-left: 1px solid var(--line); }
  .kpis div:first-child { padding-left: 0; border-left: 0; }
}

/* Phones: the data table becomes one block per tool. */
@media (max-width: 640px) {
  .compare--data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare--data, .compare--data tbody, .compare--data tr { display: block; width: auto; }
  .compare--data tr { padding: 16px 0; border-bottom: 1px solid var(--line); }
  .compare--data tr:last-child { border-bottom: 0; }
  .compare--data tbody th { display: block; width: auto; padding: 0 0 10px; border: 0; }
  .compare--data td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 5px 0; border: 0; font-size: 16.5px; }
  .compare--data td::before { content: attr(data-label); color: var(--dim); font-size: 14px; line-height: 1.5; padding-top: 1px; }
}

/* ---------- Applications ---------- */
.exhibit--app .exhibit-head { margin-bottom: 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: start; }
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; } }
.app-side { display: flex; flex-direction: column; gap: 22px; }
.hero-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hero-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 16.5px; line-height: 1.55; color: var(--mute); }
.hero-steps b { color: var(--text); font-weight: 600; }
.hero-steps .n { font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--brass); }

.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.chips-k { color: var(--dim); font-size: 12.5px; margin-right: 2px; }
.chip { font-size: 14.5px; padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--text); }
.chip em { font-style: normal; color: var(--brass-2); }

.browser { border-radius: 8px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #1C2B2E; border-bottom: 1px solid var(--line); }
.browser-bar i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(236, 231, 222, .22); }
.browser-url { margin-left: 12px; font-size: 12px; color: var(--mute); background: rgba(0, 0, 0, .25); padding: 3px 12px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scene-stage { position: relative; aspect-ratio: 16 / 10; max-width: 100%; overflow: hidden; container-type: inline-size; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot-b { opacity: 0; }
.patch { position: absolute; opacity: 0; display: flex; align-items: center; gap: .4cqw; font-family: Inter, Arial, sans-serif; }
.patch-btn { left: 82.6%; top: 7.2%; width: 12.4%; height: 4.4%; background: #fff; }
.patch-status { left: 76.3%; top: 20.2%; width: 8.6%; height: 2.6%; background: #fff; color: #256F3A; font-size: 1.02cqw; font-weight: 600; }
.patch-status b { font-weight: 700; }
.toast { position: absolute; left: 50%; bottom: 7%; transform: translateX(-50%); opacity: 0; background: #2D3A43; color: #fff; font: 500 1.05cqw/1.3 Inter, Arial, sans-serif; padding: .9cqw 1.6cqw; border-radius: .5cqw; white-space: nowrap; box-shadow: 0 .6cqw 1.6cqw rgba(0, 0, 0, .3); }
.cursor { position: absolute; left: 62%; top: 72%; width: 2.2cqw; height: 2.2cqw; z-index: 4; pointer-events: none; }
.cursor svg { width: 100%; height: 100%; overflow: visible; }
.cursor path { fill: var(--blue); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.cursor-tag { position: absolute; left: 1.9cqw; top: 1.9cqw; font: 600 .95cqw/1 Inter, sans-serif; color: #fff; background: var(--blue); padding: .3cqw .6cqw; border-radius: .3cqw; white-space: nowrap; }
.ripple { position: absolute; left: -1.4cqw; top: -1.4cqw; width: 2.8cqw; height: 2.8cqw; border-radius: 50%; border: .22cqw solid var(--blue); opacity: 0; }
.scene-ctl { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.scene-toggle { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-2); color: var(--text); cursor: pointer; padding: 0; }
.scene-toggle:hover { border-color: var(--text); }
.i-pause { width: 8px; height: 9px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.i-play { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px; }
.scene-track { flex: 1; height: 1px; background: var(--line-2); overflow: hidden; }
.scene-progress { display: block; height: 100%; width: 100%; background: var(--brass); transform-origin: left; transform: scaleX(.6); }

/* Demos: three columns sharing row lines */
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); margin-top: clamp(48px, 4.5vw, 72px); }
.demo { display: grid; grid-row: span 5; grid-template-rows: subgrid; }
.demo > * { margin: 0; min-width: 0; }
.demo-frame { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 6px; overflow: hidden; background: #051030; border: 1px solid var(--line-2); margin-bottom: 20px; }
.demo-video { width: 100%; height: 100%; object-fit: cover; }
.demo-open { position: absolute; inset: 0; border: 0; padding: 14px; cursor: pointer; display: flex; align-items: flex-end; background: linear-gradient(180deg, transparent 55%, rgba(5, 12, 14, .65)); }
.demo-chip { display: inline-flex; align-items: center; gap: 9px; font: 600 13.5px/1 var(--sans); color: var(--bg); background: var(--text); padding: 8px 12px; border-radius: 3px; }
.demo-tag { color: var(--brass); text-wrap: balance; }
.demo-title { font-family: var(--serif); font-size: clamp(21px, 1.6vw, 24px); font-weight: 500; line-height: 1.22; margin: 10px 0 10px; }
.demo-body { color: var(--mute); font-size: 17px; margin-bottom: 16px; }
@media (max-width: 1023px) {
  .demo-grid { grid-template-columns: 1fr; row-gap: 56px; max-width: 680px; }
  .demo { grid-row: auto; grid-template-rows: none; }
}

/* ---------- Lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.lab-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; text-decoration: none; }
.lab-card > * { min-width: 0; }
.lab-img { display: block; aspect-ratio: 960 / 556; max-width: 100%; overflow: hidden; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; margin-bottom: 18px; }
.lab-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s ease; }
.lab-card:hover .lab-img img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .lab-img img { transition: none; } }
.lab-k { color: var(--brass); }
.lab-title { font-family: var(--serif); font-size: clamp(21px, 1.6vw, 24px); font-weight: 500; line-height: 1.2; margin: 6px 0 10px; text-wrap: balance; }
.lab-desc { font-size: 16.5px; line-height: 1.55; color: var(--mute); }
.lab-go { justify-self: start; margin-top: 14px; font-size: 16px; text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 5px; }
.lab-go::after { content: " \2192"; }
.lab-card:hover .lab-title { color: var(--brass-2); }
@media (max-width: 1279px) {
  .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-card:nth-child(n + 3) .lab-img { margin-top: 56px; }
}
@media (max-width: 640px) {
  .lab-grid { grid-template-columns: 1fr; row-gap: 48px; }
  .lab-card { grid-row: auto; grid-template-rows: none; }
  .lab-card:nth-child(n + 3) .lab-img { margin-top: 0; }
}

.blog { margin-top: clamp(56px, 5.5vw, 88px); padding-top: 32px; border-top: 4px solid var(--text); align-items: start; row-gap: 28px; }
.blog-img { grid-column: 1 / span 6; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: #fff; }
.blog-img img { width: 100%; height: auto; }
.blog-body { grid-column: 8 / -1; min-width: 0; }
.blog-title { margin: 14px 0 10px; font-family: var(--serif); font-size: clamp(30px, 2.6vw, 40px); font-weight: 400; line-height: 1.1; }
.blog-lede { margin: 0 0 14px; font-size: 17px; color: var(--mute); }
.ruled { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ruled li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; }
.blog-body .tool-links { margin: 20px 0 0; }
@media (max-width: 959px) { .blog-img, .blog-body { grid-column: 1 / -1; } }

/* ---------- Team ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); font-family: var(--serif); color: var(--brass-2); letter-spacing: .02em; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 28px; height: 28px; font-size: 12px; }
.avatar--lg { width: 112px; height: 112px; font-size: 36px; border-radius: 4px; }

.team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 40px; }
.person { border-top: 1px solid var(--line-2); padding-top: 24px; }
.person h3 { font-family: var(--serif); font-size: 25px; font-weight: 500; margin: 20px 0 4px; }
.person-role { color: var(--brass); margin: 0 0 12px; }
.person p:last-child { margin: 0; font-size: 16.5px; color: var(--mute); max-width: 36ch; }
.person-todo { font-style: italic; }
@media (max-width: 1023px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .team { grid-template-columns: 1fr; }
  .person { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .person .avatar--lg { width: 72px; height: 72px; font-size: 24px; grid-row: 1 / span 3; }
  .person h3 { margin-top: 0; }
  .person > :not(.avatar) { grid-column: 2; }
}

/* ---------- Finale & footer ---------- */
.finale { padding-block: var(--section); border-top: 1px solid var(--line); }
.finale-grid { margin-top: clamp(32px, 4vw, 56px); }
.finale-title { grid-column: 1 / span 6; margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.4vw, 88px); line-height: 1; letter-spacing: -.022em; }
@media (max-width: 1023px) { .finale-title { grid-column: 1 / -1; } }

.footer { border-top: 1px solid var(--line); padding-block: 44px 52px; background: #091214; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 24px 40px; align-items: center; }
.footer .brand-tile { width: 26px; height: 26px; border-radius: 6px; }
.footer .brand-word { font-size: 22px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a, .footer-legal a { color: var(--mute); text-decoration: none; font-size: 15px; }
.footer-links a:hover, .footer-legal a:hover { color: var(--text); }
.footer-legal { grid-column: 1 / -1; display: flex; gap: 22px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.footer-legal a { font-size: 14px; }
@media (max-width: 720px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { justify-content: flex-start; } }

/* ---------- Demo lightbox (driven by ../assets/js/demos.js) ---------- */
.demo-lightbox { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px; }
.demo-lightbox[hidden] { display: none; }
.demo-lightbox-backdrop { position: absolute; inset: 0; background: rgba(4, 9, 10, .9); }
.demo-lightbox-panel { position: relative; width: min(1200px, 100%); background: #0D1A1D; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.demo-lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.demo-lightbox-title { font-family: var(--serif); font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-lightbox-close { flex: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 3px; padding: 6px 14px; font: 500 13px var(--sans); cursor: pointer; }
.demo-lightbox video { width: 100%; max-height: 80vh; background: #000; }
body.demo-lightbox-open { overflow: hidden; }

/* ---------- Cookie banner (injected by ../assets/js/consent.js) ---------- */
.consent-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; max-width: 880px; margin: 0 auto; background: #0F1C1F; color: var(--text); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.consent-inner { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.consent-text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--mute); flex: 1 1 360px; }
.consent-text a { color: var(--text); }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { font: 600 13px var(--sans); padding: 10px 16px; border-radius: 3px; cursor: pointer; }
.consent-accept { background: var(--text); color: var(--bg); border: 1px solid var(--text); }
.consent-decline { background: transparent; color: var(--mute); border: 1px solid var(--line-2); }

/* ---------- Refinements ---------- */
/* Hero sits closer to section 01. */
.cover { padding-bottom: clamp(56px, 5vw, 88px); }

/* Exhibits side by side share their header and source lines. */
@media (min-width: 1280px) {
  .exhibits { row-gap: 0; }
  .exhibits .exhibit { display: grid; grid-row: span 3; grid-template-rows: subgrid; }
  .exhibits .exhibit-head { margin-bottom: 8px; align-items: end; }
  .exhibits .exhibit-source { align-self: start; }
}
.exhibit-source { max-width: none; }

/* ERP note sits under the steps instead of under the whole row. */
.app-side .exhibit-source { margin-top: 0; }

/* Blog text starts on the same line as the section intros. */
.blog-img { grid-column: 1 / span 5; }
.blog-body { grid-column: 7 / -1; }
@media (max-width: 959px) { .blog-img, .blog-body { grid-column: 1 / -1; } }

/* ---------- Why we started ---------- */

/* ---------- Work with us ---------- */
.price { color: var(--brass-2); white-space: nowrap; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; padding-top: 22px; border-top: 1px solid var(--line-2); position: relative; }
.step > * { margin: 0; min-width: 0; }
.step-num { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.step-name { margin-top: 10px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); line-height: 1.05; }
.step-when { margin: 6px 0 14px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--brass-2); }
.step-desc { font-size: 17px; line-height: 1.6; color: var(--mute); max-width: 44ch; }
.step:not(:last-child)::after { content: "\2192"; position: absolute; top: 18px; right: 0; font-size: 18px; color: var(--dim); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; row-gap: 36px; }
  .step { grid-row: auto; grid-template-rows: none; }
  .step:not(:last-child)::after { content: "\2193"; }
}
.work-foot { margin-top: clamp(48px, 5vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); align-items: center; row-gap: 24px; }
.work-after { grid-column: 1 / span 6; margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.4vw, 21px); line-height: 1.5; }
.work-actions { grid-column: 7 / -1; justify-content: flex-start; }
.work-mail, .finale-mail { font-size: 16px; color: var(--mute); }
.mail-text, .finale-mail { user-select: all; }
.mail-text { color: var(--text); }
.finale-mail { margin: 0; }
@media (max-width: 1023px) { .work-after, .work-actions { grid-column: 1 / -1; } }

/* ---------- How we work: three-step flow ---------- */
.flow { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.flow::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 1px; background: var(--line-2); }
.flow-step { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.flow-step > * { margin: 0; min-width: 0; }
.flow-node { position: relative; z-index: 1; width: 46px; height: 46px; margin-bottom: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); border: 1px solid var(--line-2); font-family: var(--serif); font-size: 21px; line-height: 1; color: var(--brass-2); }
.flow-step:last-child .flow-node { background: var(--brass); border-color: var(--brass); color: var(--bg); }
.flow-step:not(:last-child)::after { content: "\2192"; position: absolute; top: 11px; right: 0; padding-left: 10px; background: var(--bg-2); font-size: 18px; line-height: 1; color: var(--dim); }
.flow .step-name { margin: 0; }
.flow .step-when { margin: 8px 0 14px; }
@media (max-width: 1023px) {
  .flow { grid-template-columns: 1fr; row-gap: 40px; }
  .flow::before { display: none; }
  .flow-step:not(:last-child)::before { content: ""; position: absolute; left: 23px; top: 46px; bottom: -40px; width: 1px; background: var(--line-2); }
  .flow-step { grid-row: auto; grid-template-rows: none; grid-template-columns: 46px minmax(0, 1fr); column-gap: 22px; }
  .flow-node { grid-column: 1; grid-row: 1 / span 3; margin: 0; }
  .flow-step > :not(.flow-node) { grid-column: 2; }
  .flow-step:not(:last-child)::after { display: none; }
}
