/* Nunito, self-hosted — same font as the platform, same reason: no third-party
   request, so it is not blocked or throttled for visitors in Russia. */
@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/nunito-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/nunito-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/nunito-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/nunito-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/nunito-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Nunito';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/nunito-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Nunito';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/nunito-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Nunito';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/nunito-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
/* ============================================================
   ATUM landing — design system
   Structure carries hierarchy: spacing, scale, surface steps.
   No gradients, no glass, no shadows except under product art.
   ============================================================ */
:root {
  /* Ink & surfaces */
  --ink:           #1d1d1f;
  --ink-2:         #4a4a4f;
  --ink-muted:     #6b6b70;   /* 4.87:1 on the tint, was 4.21:1 */
  --canvas:        #ffffff;
  --canvas-tint:   #f5f5f7;
  --tile-dark:     #1a1b1e;
  --tile-dark-2:   #222327;
  --on-dark:       #ffffff;
  --on-dark-muted: #b6b7bb;
  --hairline:      #e2e2e5;
  --hairline-dark: rgba(255,255,255,0.14);

  /* One accent, split by job: the brand hue stays on graphics (3.22:1 clears
     the 3:1 bar for UI graphics); text and controls use a darker tint that
     clears 4.5:1, so the mark and the copy can both be right. */
  --brand:         #e9692c;   /* logo, chart fills, SVG strokes — never text */
  --action:        #c84f15;   /* links, CTA surface            4.58:1 on white */
  --action-tint:   #b8480f;   /* small text on the tinted tile 4.86:1 */
  --action-press:  #a8420f;
  --action-on-dark:#ff8348;   /* 7.05:1 on the dark tile */

  /* Spacing — 8px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 80px;
  --s-section: 96px;

  /* Radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-pill: 9999px;

  /* The only shadow in the system */
  --product-shadow: 0 0 0 1px rgba(29,29,31,0.05), 0 2px 6px -2px rgba(29,29,31,0.10), 0 14px 32px -10px rgba(29,29,31,0.18);

  --measure: 62ch;
  --lock: 1120px;
  --lock-prose: 860px;

  /* Easing: entrances decelerate, on-screen movement does both */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--action); text-decoration: none; }
img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; border-radius: 4px; }

/* ---------- Type ladder ---------- */
.t-hero    { font-size: clamp(34px, 5.6vw, 56px); font-weight: 600; line-height: 1.07; letter-spacing: -0.02em; }
.t-tile    { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; line-height: 1.10; letter-spacing: -0.015em; }
.t-section { font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; line-height: 1.18; letter-spacing: -0.012em; }
.t-lead    { font-size: clamp(19px, 2vw, 24px); font-weight: 400; line-height: 1.45; letter-spacing: 0; color: var(--ink-2); }
.t-sub     { font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: -0.008em; }
.t-body    { font-size: 17px; font-weight: 400; line-height: 1.47; }
.t-cap     { font-size: 14px; font-weight: 400; line-height: 1.43; letter-spacing: -0.224px; color: var(--ink-muted); }
.t-fine    { font-size: 12px; font-weight: 400; line-height: 1.4; letter-spacing: 0; color: var(--ink-muted); }

.eyebrow {
  font-size: 13px; font-weight: 600; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--action-tint);
}
.on-dark .eyebrow { color: var(--action-on-dark); }
.on-dark { color: var(--on-dark); }
.on-dark .t-lead, .on-dark .t-cap, .on-dark .t-fine { color: var(--on-dark-muted); }

/* ---------- Layout ---------- */
.section { padding: var(--s-section) var(--s-5); }
.section--tint { background: var(--canvas-tint); }
.section--dark { background: var(--tile-dark); color: var(--on-dark); }
.section--dark-2 { background: var(--tile-dark-2); color: var(--on-dark); }
.wrap { max-width: var(--lock); margin: 0 auto; }
.wrap--prose { max-width: var(--lock-prose); margin: 0 auto; }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }
.head { max-width: var(--measure); }
.head.center { margin-left: auto; margin-right: auto; }
.head > .eyebrow + * { margin-top: var(--s-4); }
.head > .t-tile + .t-lead,
.head > .t-section + .t-lead { margin-top: var(--s-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 var(--s-5);
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; text-decoration: none;
  transition: transform 100ms ease-out, background-color 150ms ease, color 150ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--action); color: #fff; }
.btn--quiet { background: transparent; color: var(--action); padding: 0 var(--s-3); }
.on-dark .btn--quiet { color: var(--action-on-dark); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.btn-row.center { justify-content: center; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav[data-scrolled] { border-bottom-color: var(--hairline); }
.nav__inner {
  max-width: var(--lock); margin: 0 auto;
  height: 56px; padding: 0 var(--s-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.wordmark svg { display: block; }
.nav__links { display: flex; align-items: center; gap: var(--s-5); }
.nav__links a { color: var(--ink-2); font-size: 14px; letter-spacing: -0.01em; }
/* Current section — colour plus a hairline, never a weight change: bolding
   would reflow the nav every time the marker moves. */
.nav__links a:not(.btn) { position: relative; padding: 7px 0; }   /* 24px AA minimum */
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px; border-radius: 2px; background: var(--action);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .3s var(--ease-out); }
.nav__links a[data-current] { color: var(--ink); }
.nav__links a[data-current]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .nav__links a:not(.btn)::after { transition: none; }
}
/* Small screens keep the CTA — losing the only call to action is worse than
   losing the section links, which the page order already provides. */
@media (max-width: 834px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__links { gap: 0; }
}

/* ---------- Hero ---------- */
.hero { padding: var(--s-9) var(--s-5) 0; text-align: center; }
.hero__head { max-width: 22ch; margin: 0 auto; }
.hero__lead { max-width: 56ch; margin: var(--s-5) auto 0; }
.hero .btn-row { margin-top: var(--s-6); }
.hero__note { margin-top: var(--s-5); }
.hero__art { margin-top: var(--s-8); }

/* ---------- Product frame ---------- */
.frame {
  border-radius: var(--r-lg);
  background: var(--canvas);
  box-shadow: var(--product-shadow);
  overflow: hidden;
  text-align: left;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
}
.frame__bar {
  height: 34px; display: flex; align-items: center; gap: 6px;
  padding: 0 var(--s-3);
  background: #f0f0f2; border-bottom: 1px solid var(--hairline);
}
.dot { width: 9px; height: 9px; border-radius: var(--r-pill); background: #d4d4d8; }
.frame__url {
  margin-left: 10px; padding: 3px 10px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink-muted); font-size: 11px; letter-spacing: 0;
}
.frame__body { display: flex; min-height: 340px; }

/* app sidebar */
.side { width: 176px; flex: none; background: var(--tile-dark); color: #d7d8dc; padding: var(--s-4) var(--s-3); }
.side__project { display: flex; align-items: center; gap: 8px; padding-bottom: var(--s-3); margin-bottom: var(--s-3); border-bottom: 1px solid var(--hairline-dark); }
.side__avatar { width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--action); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 11px; flex: none; }
.side__name { font-size: 12px; font-weight: 600; color: #fff; }
.side__meta { font-size: 10px; color: #8a8b91; }
.side__item { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: var(--r-sm); color: #b9bac0; font-size: 12px; }
.side__item[data-active] { background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; }
.side__item svg { flex: none; }
.side__badge { margin-left: auto; background: var(--action); color: #fff; border-radius: var(--r-pill); font-size: 9px; font-weight: 600; padding: 1px 6px; }

/* app main */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--canvas); }
.main__top { height: 44px; flex: none; display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4); border-bottom: 1px solid var(--hairline); }
.crumb { color: var(--ink-muted); font-size: 11px; }
.segmented { margin-left: auto; display: flex; background: var(--canvas-tint); border-radius: var(--r-sm); padding: 2px; }
.segmented span { padding: 3px 10px; border-radius: 6px; font-size: 11px; color: var(--ink-muted); }
.segmented span[data-active] { background: #fff; color: var(--ink); font-weight: 600; }
.main__body { padding: var(--s-4); flex: 1; }

/* gantt */
.gantt__months { display: grid; grid-template-columns: 150px repeat(5, 1fr); font-size: 10px; color: var(--ink-muted); padding-bottom: 6px; border-bottom: 1px solid var(--hairline); }
.gantt__row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: var(--s-3); padding: 5px 0; }
.gantt__label { font-size: 11px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt__label[data-group] { font-weight: 600; color: var(--ink); }
.gantt__row[data-done] .gantt__label { color: var(--ink); }
.gantt__track { position: relative; height: 14px; }
.gantt__bar { position: absolute; top: 2px; height: 10px; border-radius: var(--r-pill); background: #d7d7db; overflow: hidden; }
.gantt__bar[data-ghost] { background: #e6e6ea; }
/* A task is either open or done — the whole bar flips when today clears it */
.gantt__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--action);
  opacity: var(--f, 0); transition: opacity .28s ease; }
.gantt__today { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--action);
  transform: translateX(var(--x, 0px)); will-change: transform; }
.gantt__today::after { content: ""; position: absolute; top: -3px; left: -3px; width: 7px; height: 7px;
  border-radius: var(--r-pill); background: var(--action); }
.gantt__rows { position: relative; }

/* kanban */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.kanban__col-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; margin-bottom: var(--s-2); }
.kanban__count { color: var(--ink-muted); font-weight: 400; }
.card { border: 1px solid var(--hairline); border-radius: var(--r-md); padding: 9px 10px; margin-bottom: 8px; background: #fff; }
.card__tag { display: inline-block; font-size: 9px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.card__title { font-size: 11.5px; font-weight: 600; line-height: 1.3; margin-top: 3px; }
.card__foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.chip { font-size: 9px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--canvas-tint); color: var(--ink-muted); }
.who { width: 18px; height: 18px; border-radius: var(--r-pill); background: var(--canvas-tint); color: var(--ink-2); display: grid; place-items: center; font-size: 9px; font-weight: 600; }
.card__date { margin-left: auto; font-size: 9px; color: var(--ink-muted); }

/* inbox */
.inbox__head { display: flex; align-items: center; gap: 8px; padding-bottom: var(--s-3); border-bottom: 1px solid var(--hairline); margin-bottom: var(--s-3); }
.msg { display: flex; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.msg:last-child { border-bottom: 0; }
.msg__who { width: 26px; height: 26px; flex: none; border-radius: var(--r-pill); background: var(--canvas-tint); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--ink-2); }
.msg__meta { display: flex; align-items: baseline; gap: 8px; }
.msg__name { font-size: 11.5px; font-weight: 600; }
.msg__time { font-size: 10px; color: var(--ink-muted); }
.msg__text { font-size: 11.5px; color: var(--ink-2); margin-top: 2px; }
.msg__act { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 10.5px; font-weight: 600; color: var(--action); }
.msg__done { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 10.5px; color: var(--ink-muted); }
/* A drawn site photo, sized and cropped like a chat thumbnail — not a grey placeholder. */
.photo { margin-top: 8px; width: 168px; max-width: 100%; aspect-ratio: 168 / 108; border-radius: var(--r-md);
  overflow: hidden; box-shadow: 0 0 0 1px rgba(29,29,31,0.08); }
.photo svg { display: block; width: 100%; height: 100%; }

/* file tree */
.tree { font-size: 11.5px; }
.tree__row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; color: var(--ink-2); }
.tree__row[data-active] { background: var(--canvas-tint); color: var(--ink); font-weight: 600; }
.tree__row[data-depth="1"] { padding-left: 22px; }
.tree__row[data-depth="2"] { padding-left: 38px; }

/* ---------- Feature tile ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-8); align-items: center; }
/* Grid items default to min-width:auto, so a wide child (the 430px board)
   would widen its column and push the whole section past the viewport. */
.tile-grid > * { min-width: 0; }
.frame { max-width: 100%; }
.tile-grid--flip .tile-grid__art { order: -1; }
@media (max-width: 900px) { .tile-grid { grid-template-columns: 1fr; gap: var(--s-6); } .tile-grid--flip .tile-grid__art { order: 0; } }

/* ---------- Problem → fix ---------- */
.pf { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-8); }
@media (max-width: 900px) { .pf { grid-template-columns: 1fr; gap: var(--s-7); } }
.pf__item > svg { display: block; margin-bottom: var(--s-4); }
.pf__problem { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.pf__arrow { display: block; margin: var(--s-3) 0 var(--s-2); }
.pf__fix { font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); }
.pf__fix b { color: var(--on-dark); font-weight: 600; }

/* ---------- Spec row ---------- */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); text-align: center; }
@media (max-width: 736px) { .spec { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-5); } }
.spec__num { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; }   /* counts up — no width jitter */
.spec__num--text { font-size: clamp(21px, 2.6vw, 28px); }
.spec__label { margin-top: var(--s-2); font-size: 14px; color: var(--ink-muted); }
.spec svg { display: block; margin: 0 auto var(--s-3); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); margin-top: var(--s-8); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-7) var(--s-5); } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }
.step__n { font-size: 12px; font-weight: 600; color: var(--action); letter-spacing: .06em; }
.step__t { margin-top: var(--s-2); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step__d { margin-top: var(--s-2); font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.step svg { display: block; margin-bottom: var(--s-4); }

/* ---------- Connections ---------- */
.conn { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-7); margin-top: var(--s-8); }
@media (max-width: 736px) { .conn { grid-template-columns: 1fr; gap: var(--s-6); } }
.conn__group { text-align: center; }
.conn__group svg { display: block; margin: 0 auto var(--s-4); }
.conn__t { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.conn__d { margin: var(--s-2) auto 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); max-width: 38ch; }
.conn__names { margin-top: var(--s-4); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.conn__names span + span::before { content: "·"; color: var(--ink-muted); font-weight: 400; margin: 0 var(--s-3); }

/* ---------- Phases (scroll-driven) ---------- */
.phase-scroll { height: 260vh; }
.phase-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; align-items: center;
  padding: var(--s-9) var(--s-5); }
.phase-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-4); margin-top: var(--s-8); }
.phase { padding-top: var(--s-4); border-top: 2px solid var(--hairline);
  transition: border-color .35s ease, opacity .35s ease; opacity: .45; }
.phase[data-active] { border-top-color: var(--action); opacity: 1; }
.phase__n { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.phase__d { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.phase__c { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: var(--s-3); }
/* Stage drawing — appears when the phase becomes current. Space is reserved
   whether or not it's shown, so nothing on the row moves. */
.phase__vis { display: block; margin-bottom: var(--s-4); opacity: 0;
  transform: translateY(10px) scale(.97); transform-origin: left bottom;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.phase__vis svg { display: block; width: 100%; height: auto; }
.phase[data-active] .phase__vis { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .phase-scroll { height: auto; }
  .phase-sticky { position: static; min-height: 0; padding: var(--s-section) var(--s-5); }
  .phase-row { grid-template-columns: 1fr; gap: var(--s-5); }
  .phase { opacity: 1; }
  .phase__vis { opacity: 1; transform: none; max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .phase-scroll { height: auto; }
  .phase-sticky { position: static; min-height: 0; padding: var(--s-section) var(--s-5); }
  .phase { opacity: 1; transition: none; }
  .phase__vis { opacity: 1; transform: none; transition: none; }
}

/* ---------- Bespoke list ---------- */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); margin-top: var(--s-7); }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; gap: var(--s-6); } }
.col__t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.col__d { margin-top: var(--s-2); font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.col svg { display: block; margin-bottom: var(--s-3); }

/* ---------- Facts under a tile ---------- */
.facts { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); margin-top: var(--s-5); }
.fact { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink-muted); }
.on-dark .fact { color: var(--on-dark-muted); }
.fact svg { flex: none; }

/* ---------- CTA ---------- */
.cta__mail { margin-top: var(--s-4); }

/* ---------- Footer ---------- */
.footer { background: var(--canvas-tint); padding: var(--s-7) var(--s-5); border-top: 1px solid var(--hairline); }
.footer__inner { max-width: var(--lock); margin: 0 auto; display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: space-between; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-5); line-height: 2.4; }
.footer__links a { color: var(--ink-2); font-size: 14px; }

/* ---------- Kanban: two cards change column ----------
   Each card lives in its DESTINATION column. A ghost holds its old slot; JS
   measures the gap between the two and parks the card there. On play the card
   releases to its real position and the ghost collapses behind it. */
.flies { transform: translate(var(--dx, 0px), var(--dy, 0px));
  transition: transform .8s var(--ease-in-out) var(--delay, 0s);
  will-change: transform; position: relative; z-index: 2; }
.flies[data-landed] { transform: none; }
.ghost { overflow: hidden; max-height: 200px;
  transition: max-height .45s ease var(--gdelay, 0s), opacity .3s ease var(--gdelay, 0s); }
.ghost .card { visibility: hidden; }
.ghost[data-collapsed] { max-height: 0; opacity: 0; }

/* Column counts follow the cards: Done +1 when the first card lands (~1.0s),
   To do −1 when the second lands (~2.05s), In progress dips 2→1→2 across both. */
.kanban__count { position: relative; display: inline-block; min-width: 7px; font-variant-numeric: tabular-nums; }
.kanban__count i { font-style: normal; transition: opacity .25s ease; }
.kanban__count i[data-b], .kanban__count i[data-c] { position: absolute; left: 0; top: 0; opacity: 0; }
[data-played] .kanban__count i[data-a] { opacity: 0; transition-delay: var(--cd, 1s); }
[data-played] .kanban__count i[data-b] { opacity: 1; transition-delay: var(--cd, 1s); }
/* Three-state column runs on keyframes — one element can't hold two delays */
[data-played] .kanban__count--3 i[data-a] { animation: cnt-a 2.6s linear forwards; }
[data-played] .kanban__count--3 i[data-b] { animation: cnt-b 2.6s linear forwards; }
[data-played] .kanban__count--3 i[data-c] { animation: cnt-c 2.6s linear forwards; }
@keyframes cnt-a { 0%,36% { opacity: 1; } 40%,100% { opacity: 0; } }
@keyframes cnt-b { 0%,36% { opacity: 0; } 40%,77% { opacity: 1; } 81%,100% { opacity: 0; } }
@keyframes cnt-c { 0%,77% { opacity: 0; } 81%,100% { opacity: 1; } }

/* ---------- Inbox: a message becomes a task ----------
   Both states occupy the same reserved box, so nothing reflows. */
.convert { position: relative; display: block; height: 62px; margin-top: 7px; }
.convert__act { position: absolute; inset: 0; font-size: 10.5px; font-weight: 600; color: var(--action);
  transition: opacity .3s ease .55s; }
.convert__card { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(.96);
  transform-origin: left top;
  transition: opacity .45s var(--ease-out) .8s, transform .45s var(--ease-out) .8s; }
.convert__card .card { display: block; }
.convert__card .card__title, .convert__card .card__tag, .convert__card .card__foot { display: block; }
.convert__card .card__foot { display: flex; }
.reveal[data-in] .convert__act { opacity: 0; }
.reveal[data-in] .convert__card { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .flies, .ghost, .kanban__count i, .convert__act, .convert__card { transition: none; }
  .flies { transform: none; }
  .ghost { display: none; }
  [data-played] .kanban__count--3 i[data-a],
  [data-played] .kanban__count--3 i[data-b],
  [data-played] .kanban__count--3 i[data-c] { animation: none; }
  .kanban__count--3 i[data-a], .kanban__count--3 i[data-b] { opacity: 0; }
  .kanban__count--3 i[data-c] { opacity: 1; }
  .convert__act { opacity: 0; }
  .convert__card { opacity: 1; transform: none; }
  .kanban__count i[data-a] { opacity: 0; }
  .kanban__count i[data-b] { opacity: 1; }
}

/* ---------- Files: the tree writes itself, phase then room ----------
   Rows arrive top to bottom; room sub-folders slide in from further left so
   the indent reads as nesting rather than a list appearing. */
.tree__row { opacity: 0; transform: translateX(-6px);
  transition: opacity .3s ease, transform .4s var(--ease-out); }
.tree__row[data-depth="2"] { transform: translateX(-16px); }
[data-played] .tree__row { opacity: 1; transform: none; }
[data-played] .tree__row:nth-child(1)  { transition-delay: .05s; }
[data-played] .tree__row:nth-child(2)  { transition-delay: .16s; }
[data-played] .tree__row:nth-child(3)  { transition-delay: .27s; }
[data-played] .tree__row:nth-child(4)  { transition-delay: .42s; }
[data-played] .tree__row:nth-child(5)  { transition-delay: .50s; }
[data-played] .tree__row:nth-child(6)  { transition-delay: .58s; }
[data-played] .tree__row:nth-child(7)  { transition-delay: .66s; }
[data-played] .tree__row:nth-child(8)  { transition-delay: .80s; }
[data-played] .tree__row:nth-child(9)  { transition-delay: .91s; }
[data-played] .tree__row:nth-child(10) { transition-delay: 1.02s; }

/* ---------- Phase drawing: room progress fills when the phase is current ---------- */
.bar-fill { transform: scaleX(0); transform-box: fill-box; transform-origin: left center;
  transition: transform .7s var(--ease-out) .3s; }
.phase[data-active] .bar-fill { transform: scaleX(1); }

/* ---------- Problem → fix: the arrows draw ---------- */
.pf__arrow path { stroke-dasharray: 34; stroke-dashoffset: 34;
  transition: stroke-dashoffset .5s var(--ease-out) .25s; }
.reveal[data-in] .pf__arrow path { stroke-dashoffset: 0; }

/* ---------- Hero: the inbox badge arrives after the frame settles ---------- */
.side__badge { animation: badge-in .45s var(--ease-out) 1.5s both; }
@keyframes badge-in { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .tree__row { opacity: 1; transform: none; transition: none; }
  .bar-fill { transform: scaleX(1); transition: none; }
  .pf__arrow path { stroke-dashoffset: 0; transition: none; }
  .side__badge { animation: none; }
}

/* ---------- Diagram: two compositions, one idea ----------
   A 900-wide viewBox scaled to a phone renders its labels at ~5px, so the
   narrow screen gets a stacked version rather than a shrunken one. */
.diagram--tall { display: none; }
@media (max-width: 736px) {
  .diagram--wide { display: none; }
  .diagram--tall { display: block; }
}

/* ---------- Diagram: connectors draw in once ---------- */
.flow path { stroke-dasharray: 260; stroke-dashoffset: 260;
  transition: stroke-dashoffset 1s var(--ease-out); }
.reveal[data-in] .flow path { stroke-dashoffset: 0; }
.flow path:nth-child(2) { transition-delay: .10s; }
.flow path:nth-child(3) { transition-delay: .20s; }
.flow path:nth-child(4) { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .flow path { stroke-dashoffset: 0; transition: none; }
}


/* ---------- Hover, only where a fine pointer can hover ----------
   On touch these stick after a tap, so they stay out of that world. */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; }
  .btn:hover { text-decoration: none; }
  .btn--primary:hover { background: var(--action-press); }
  .btn--quiet:hover { text-decoration: underline; }
  .wordmark:hover { text-decoration: none; }
  .nav__links a:hover { color: var(--ink); text-decoration: none; }
  .footer__links a:hover { color: var(--ink); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.reveal[data-in] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
@media (prefers-contrast: more) {
  :root { --hairline: #9a9a9f; --ink-muted: #55555a; --on-dark-muted: #e4e4e6; }
}
@media (max-width: 736px) {
  :root { --s-section: 56px; }
  body { font-size: 16px; }
  .frame__body { min-height: 0; }
  .side { display: none; }

  /* The Gantt was giving 150px to labels and 133px to the actual chart */
  .gantt__months { grid-template-columns: 92px repeat(5, 1fr); font-size: 9px; }
  .gantt__row { grid-template-columns: 92px 1fr; gap: var(--s-2); }
  .gantt__label { font-size: 10px; }

  /* Three 111px columns are unreadable — let the board scroll instead */
  .main__body { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .kanban { min-width: 430px; }
}

/* ============================================================
   FAQ — native <details>, no script. One hairline between items.
   ============================================================ */
.faq { margin-top: var(--s-7); border-top: 1px solid var(--hairline); }
.faq__item { border-bottom: 1px solid var(--hairline); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-5); padding: var(--s-5) 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.6px solid var(--ink-muted); border-bottom: 1.6px solid var(--ink-muted);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s var(--ease-out);
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__item summary:focus-visible { outline: 2px solid var(--action); outline-offset: 4px; border-radius: var(--r-sm); }
.faq__a { padding: 0 var(--s-7) var(--s-5) 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
@media (max-width: 736px) { .faq__item summary { font-size: 17px; } .faq__a { padding-right: 0; } }
@media (prefers-reduced-motion: reduce) { .faq__item summary::after { transition: none; } }

/* ============================================================
   Guide cards
   ============================================================ */
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); margin-top: var(--s-7); }
.gcards > * { min-width: 0; }
@media (max-width: 900px) { .gcards { grid-template-columns: 1fr; } }
.gcard { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--r-lg); color: var(--ink); }
.gcard__t { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
.gcard__d { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.gcard__more { margin-top: auto; padding-top: var(--s-2); font-size: 14px; font-weight: 600; color: var(--action); }
@media (hover: hover) and (pointer: fine) {
  .gcard { transition: border-color .2s var(--ease-out); }
  .gcard:hover { border-color: #c9c9ce; text-decoration: none; }
}

/* ============================================================
   Footer base row + language switch
   ============================================================ */
.footer__base { margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--hairline); }
.lang { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.lang a { color: var(--ink-muted); font-size: 14px; padding: 5px 0; }
.lang a[aria-current] { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .lang a:hover { color: var(--ink); text-decoration: none; } }

/* ============================================================
   Document pages (guides, 404): static nav hairline, reading column
   ============================================================ */
.doc .nav { border-bottom-color: var(--hairline); }
.head--left { text-align: left; }
.article { padding-top: var(--s-8); }
.prose { overflow-wrap: break-word; max-width: 68ch; margin: 0 auto; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.prose > * + * { margin-top: var(--s-5); }
.prose h1 { hyphens: auto; font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.022em; color: var(--ink); text-wrap: balance; }
.prose h2 { margin-top: var(--s-8); font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; line-height: 1.2; letter-spacing: -0.014em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin-top: var(--s-6); font-size: 21px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: var(--s-3); }
.prose p, .prose li { text-wrap: pretty; }
.prose a { color: var(--action); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: var(--s-2); }
.prose .lede { font-size: clamp(19px, 2vw, 22px); line-height: 1.5; color: var(--ink); }
.crumbs { font-size: 14px; color: var(--ink-muted); }
.prose .crumbs a { color: var(--ink-muted); text-decoration: none; }
.byline { margin-top: var(--s-4) !important; font-size: 14px; color: var(--ink-muted); }
.prose .answer { padding: var(--s-5); background: var(--canvas-tint); border-radius: var(--r-lg); color: var(--ink); }
.prose .answer > * + * { margin-top: var(--s-3); }
.prose .table { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 520px; }
.prose th { text-align: left; font-weight: 600; color: var(--ink); padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
.prose td { padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.prose pre { padding: var(--s-5); background: var(--tile-dark); color: #e7e7ea; border-radius: var(--r-lg); overflow-x: auto;
  font: 400 14px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.cta-box { margin-top: var(--s-8) !important; padding: var(--s-6); background: var(--canvas-tint); border-radius: var(--r-lg); }
.cta-box__t { font-size: 21px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.cta-box__d { margin-top: var(--s-2); color: var(--ink-2); }
.cta-box .btn { margin-top: var(--s-5); text-decoration: none; color: #fff; }
