/* =========================================================
   Nafiul Data — brand tokens
   Black and white, with one signal yellow that only ever
   means "recovered or flagged".
========================================================= */
:root {
  --ink: #000000;
  --paper: #ffffff;
  --stone: #f2f2f0;      /* quiet section ground */
  --rule: #d6d6d3;       /* lines on paper */
  --rule-dark: #2e2e2e;  /* lines on ink */
  --muted: #5c5c59;      /* secondary text on paper (7:1) */
  --muted-dark: #a3a3a0; /* secondary text on ink */
  --signal: #ffd43b;     /* recovered / flagged */

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-sm: 4px;
  --r-md: 10px;
  --r-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: var(--mono); font-size: 0.9em; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.section--ink :focus-visible, .foot :focus-visible, .runlog :focus-visible { outline-color: var(--signal); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

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

/* ---------- type scale (1.25 ratio, display widened) ---------- */
.h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.02em;
}
.h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  font-weight: 750;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: background-color .2s, color .2s;
}
.btn--sm { padding: 9px 16px; font-size: 0.9375rem; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--paper); color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   HEADER
========================================================= */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__word { font-size: 1.25rem; font-weight: 500; font-variation-settings: "wdth" 115; letter-spacing: -0.01em; }
.brand__word b { font-weight: 850; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-bottom-color: var(--ink); }

.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
========================================================= */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__kicker { color: var(--muted); font-size: 1rem; max-width: 46ch; margin-bottom: 20px; }
.hero__title {
  font-size: clamp(2.3rem, 4.9vw, 4rem);
  line-height: 1;
  font-weight: 850;
  font-variation-settings: "wdth" 112;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead { margin-top: 28px; font-size: 1.1875rem; max-width: 54ch; color: #1f1f1f; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- run log (the signature element) ---------- */
.runlog {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: 20px 0 16px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.55);
}
.runlog__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 22px 14px; border-bottom: 1px solid var(--rule-dark);
}
.runlog__title { color: var(--muted-dark); }
.runlog__live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.runlog__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); animation: pulse 1.6s ease-in-out infinite; }
.runlog.is-done .runlog__live i { animation: none; }
@keyframes pulse { 50% { opacity: .25; } }

.runlog__rows { padding: 8px 0; }
.runlog__rows li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  grid-template-areas: "dot task state" ". note note";
  column-gap: 12px;
  padding: 9px 22px;
  border-bottom: 1px solid #161616;
}
.runlog__rows li::before {
  content: ""; grid-area: dot; align-self: center;
  width: 10px; height: 10px; border-radius: 2px;
  border: 1.5px solid #5a5a5a;
}
.runlog__rows .t { grid-area: task; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runlog__rows .s { grid-area: state; color: var(--muted-dark); }
.runlog__rows .n { grid-area: note; color: var(--muted-dark); font-size: 0.75rem; }

/* states, revealed once by script.js */
.runlog__rows li.is-run[data-state="success"]::before { background: var(--paper); border-color: var(--paper); }
.runlog__rows li.is-run[data-state="retry"]::before,
.runlog__rows li.is-run[data-state="flag"]::before { background: var(--signal); border-color: var(--signal); }
.runlog__rows li.is-run[data-state="retry"] .s,
.runlog__rows li.is-run[data-state="flag"] .s { color: var(--signal); }
.runlog__rows li.is-run[data-state="blocked"]::before { border-color: var(--paper); background: repeating-linear-gradient(45deg, var(--paper) 0 2px, transparent 2px 4px); }
.runlog__rows li.is-run[data-state="blocked"] .s { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.runlog__rows li.is-run .s { color: var(--paper); }
.runlog__rows li.is-pending .s, .runlog__rows li.is-pending .n { opacity: 0; }
.runlog__rows li.is-current .s { opacity: 1; color: var(--muted-dark); }

.runlog__legend {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  padding: 12px 22px 0; color: var(--muted-dark); font-size: 0.75rem;
}
.runlog__legend span { display: inline-flex; align-items: center; gap: 7px; }
.k { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.k--success { background: var(--paper); }
.k--retry { background: var(--signal); }
.k--blocked { border: 1.5px solid var(--paper); background: repeating-linear-gradient(45deg, var(--paper) 0 2px, transparent 2px 4px); }

/* ---------- delivered-for strip ---------- */
.clients {
  margin-top: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.clients li { padding: 18px 18px 22px 0; border-right: 1px solid var(--rule); }
.clients li + li { padding-left: 18px; }
.clients li:last-child { border-right: 0; }
.clients b { display: block; font-weight: 700; font-size: 0.9875rem; line-height: 1.3; }
.clients span { display: block; color: var(--muted); font-size: 0.875rem; margin-top: 4px; }

/* =========================================================
   SECTIONS
========================================================= */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--ink { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--stone); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__lead { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.section--ink .section__lead { color: var(--muted-dark); }

/* =========================================================
   CASE STUDIES
========================================================= */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.case--flip .case__text { order: 2; }
.case--flip .case__media { order: 1; }

.case__meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 18px; }
.case__meta div { display: flex; flex-direction: column; }
.case__meta dt { font-size: 0.8125rem; color: var(--muted); }
.case__meta dd { font-size: 0.9375rem; font-weight: 600; }
.case__summary { margin-top: 14px; font-size: 1.1875rem; line-height: 1.5; max-width: 58ch; }
.case__points { margin-top: 20px; display: grid; gap: 12px; max-width: 62ch; }
.case__points li { padding-left: 22px; position: relative; color: #262626; }
.case__points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 2px; background: var(--ink); }

.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.stack li { font-size: 0.8125rem; font-weight: 500; padding: 4px 10px; border: 1px solid var(--ink); border-radius: 999px; }

.case__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.case__links a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.case__links a:hover { text-decoration-color: transparent; }
.case__links i { margin-right: 4px; }
.install { margin-top: 18px; display: inline-block; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-sm); font-size: 0.875rem; }

/* media */
.media { position: relative; display: block; width: 100%; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--rule); background: var(--stone); }
.media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.media__play {
  position: absolute; left: 18px; bottom: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ink); color: var(--paper); font-size: 1.1rem;
  transition: transform .2s;
}
.media__play i { margin-left: 3px; }
.media:hover .media__play, .media:focus-visible .media__play { transform: scale(1.08); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.shots--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot { display: block; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--rule); background: var(--stone); }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; transition: opacity .2s; }
.shot:hover img { opacity: .8; }

/* diagrams for systems without screenshots */
.diagram {
  background: var(--stone);
  border-radius: var(--r-md);
  padding: clamp(20px, 3vw, 32px);
  font-size: 0.875rem;
}
.diagram__lane-name { font-size: 0.8125rem; color: var(--muted); margin: 14px 0 8px; }
.diagram__lane-name:first-child { margin-top: 0; }
.lane { display: flex; align-items: stretch; flex-wrap: nowrap; }
.lane .node { flex: 1 1 0; min-width: 0; }
.lane > * + .node { margin-left: 22px; position: relative; }
.lane > .node + .node::before {
  content: ""; position: absolute; left: -18px; top: 50%; width: 14px; height: 2px; background: var(--ink);
}
.lane > .node + .node::after {
  content: ""; position: absolute; left: -8px; top: calc(50% - 4px);
  border: 5px solid transparent; border-left: 6px solid var(--ink); border-right: 0;
}
.lane--wrap { flex-wrap: wrap; gap: 8px; }
.lane--wrap > .node { margin-left: 0; flex: 1 1 calc(50% - 8px); }
.lane--wrap > .node::before, .lane--wrap > .node::after { display: none; }
.lane--branch { margin-top: 10px; }
.lane--branch .ghost { flex: 1 1 0; }
.lane--branch > .node::before, .lane--branch > .node::after { display: none; }
.node {
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 10px 8px; min-height: 48px;
  background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--r-sm);
  font-weight: 600; line-height: 1.25; overflow-wrap: anywhere;
}
.node--src { border-style: dashed; font-weight: 500; }
.node--out { background: var(--ink); color: var(--paper); }
.node--flag { background: var(--signal); border-color: var(--ink); font-weight: 500; font-size: 0.8125rem; }
.diagram__note { margin-top: 18px; font-size: 0.8125rem; color: var(--muted); }

/* ---------- index table ---------- */
.index { margin-top: clamp(40px, 6vw, 64px); padding-top: clamp(40px, 6vw, 64px); border-top: 2px solid var(--ink); }
.index__scroll { margin-top: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.index__table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.9375rem; }
.index__table th, .index__table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.index__table thead th { font-size: 0.8125rem; font-weight: 500; color: var(--muted); border-bottom: 1px solid var(--ink); }
.index__table tbody th { font-weight: 700; }
.index__table tbody th a { text-decoration: none; border-bottom: 1.5px solid var(--ink); }
.index__table tbody th a:hover { border-bottom-color: transparent; }
.index__table td:nth-child(3) { color: var(--muted); }
.index__note { margin-top: 18px; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }

.st { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.st::before { content: ""; width: 9px; height: 9px; border-radius: 2px; }
.st--live::before { background: var(--ink); }
.st--wip::before { background: var(--signal); border: 1px solid var(--ink); }

/* ---------- labs ---------- */
.labs { margin-top: clamp(56px, 8vw, 88px); }
.labs__lead { color: var(--muted); margin-top: 8px; }
.labs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.lab { border: 1.5px dashed var(--ink); border-radius: var(--r-md); padding: 26px; }
.lab h4 { font-size: 1.25rem; font-weight: 750; font-variation-settings: "wdth" 110; margin: 10px 0 8px; }
.lab p:not(.st) { color: #262626; }
.lab__fine { margin-top: 12px; font-size: 0.8125rem; color: var(--muted) !important; }

/* =========================================================
   SERVICES
========================================================= */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
.service { padding: 32px 32px 36px 0; border-bottom: 1px solid var(--rule-dark); }
.service:nth-child(odd) { border-right: 1px solid var(--rule-dark); }
.service:nth-child(even) { padding-left: 32px; padding-right: 0; }
.service dt { font-size: 1.5rem; font-weight: 750; font-variation-settings: "wdth" 112; line-height: 1.2; }
.service dd { margin-top: 12px; color: #d9d9d6; max-width: 48ch; }
.service .service__tools { color: var(--muted-dark); font-size: 0.875rem; }

/* =========================================================
   PROCESS (a real sequence, so it is numbered)
========================================================= */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--rule); }
.steps li::before {
  content: counter(step);
  display: block;
  font-size: 4.5rem; line-height: 1; font-weight: 300;
  font-variation-settings: "wdth" 62;
  margin-bottom: 20px;
}
.steps h3 { font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.steps p { margin-top: 10px; color: var(--muted); font-size: 0.9875rem; }

/* =========================================================
   FOUNDER
========================================================= */
.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder__photo img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 3 / 4; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.founder__text > p { margin-top: 18px; max-width: 62ch; }
.founder__text > .h2 { margin-bottom: 8px; }
.timeline { margin-top: 32px; border-top: 1px solid var(--ink); }
.timeline li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 0.9375rem; }
.timeline__when { color: var(--muted); }
.timeline__what { font-weight: 600; }
.founder__certs { color: var(--muted); font-size: 0.9375rem; }
.founder__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px !important; }
.founder__note { font-size: 0.9375rem; color: var(--muted); }

/* =========================================================
   CONTACT + FOOTER
========================================================= */
.contact__title {
  font-size: clamp(2.2rem, 5.5vw, 4.25rem); line-height: 1; font-weight: 850;
  font-variation-settings: "wdth" 120; letter-spacing: -0.03em; max-width: 16ch;
}
.contact__lead { margin-top: 24px; color: #d9d9d6; font-size: 1.1875rem; max-width: 56ch; }
.contact__mail {
  display: inline-block; margin-top: 40px;
  font-size: clamp(1.25rem, 3.4vw, 2.5rem); font-weight: 600;
  font-variation-settings: "wdth" 105;
  text-decoration: none; border-bottom: 3px solid var(--signal); padding-bottom: 4px;
  overflow-wrap: anywhere;
}
.contact__mail:hover { color: var(--signal); }
.contact__list { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 40px; color: #d9d9d6; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact__list i { margin-right: 6px; }

.foot { background: var(--ink); color: var(--muted-dark); border-top: 1px solid var(--rule-dark); padding: 28px 0; font-size: 0.875rem; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.brand--light { color: var(--paper); }
.brand--light .brand__word { font-size: 1.125rem; }

/* =========================================================
   LIGHTBOX
========================================================= */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.88); }
.lightbox__box { position: relative; width: min(1000px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-md); }
.lightbox__img, .lightbox__video { width: 100%; max-height: 70vh; object-fit: contain; background: var(--ink); }
.lightbox__info { padding: 18px 22px 22px; }
.lightbox__info h3 { font-size: 1.25rem; font-weight: 750; }
.lightbox__info p { color: var(--muted); margin-top: 6px; }
.lightbox__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.1rem; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .runlog { max-width: 640px; }
  .clients { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients li { padding: 16px 16px 18px 0 !important; border-right: 0; border-bottom: 1px solid var(--rule); }
  .clients li:nth-child(even) { padding-left: 16px !important; border-left: 1px solid var(--rule); }
  .case { grid-template-columns: 1fr; }
  .case--flip .case__text, .case--flip .case__media { order: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 780px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 16px; justify-content: center; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(even) { padding: 28px 0; border-right: 0; }
  .labs__grid { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; }
  .founder__photo { max-width: 320px; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .clients { grid-template-columns: 1fr; }
  .clients li:nth-child(even) { padding-left: 0 !important; border-left: 0; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); padding-top: 24px; }
  .lane:not(.lane--wrap):not(.lane--branch) { flex-direction: column; }
  .lane:not(.lane--wrap):not(.lane--branch) > * + .node { margin-left: 0; margin-top: 18px; }
  .lane:not(.lane--wrap):not(.lane--branch) > .node + .node::before { left: 50%; top: -15px; width: 2px; height: 12px; }
  .lane:not(.lane--wrap):not(.lane--branch) > .node + .node::after { left: calc(50% - 4px); top: -7px; border: 5px solid transparent; border-top: 6px solid var(--ink); border-bottom: 0; }
  .lane--branch { flex-direction: column; gap: 8px; }
  .lane--branch > .node { margin-left: 0; }
  .lane--branch .ghost { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .runlog__rows li { padding: 9px 16px; }
  .runlog__bar, .runlog__legend { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
