/* ============ stack — the toolkit ============
   One opaque stage with its own world (so it carries [data-film-cover] and the
   film sleeps while it is pinned). Back to front:
     .tk__world   WebGL constellation (aria-hidden)
     .tk__track   the opening beat (chapter title) above the map; it rises by
                  --tk-d as the pin begins: the title leaves, then the stage's
                  own title (played) and the columns (--in) arrive
     .tk__ui      centred header · three columns (categories, skills, shipped in)
                  · the ask prompt
   Pills are true pills (the one place this system rounds things); the active
   layer inverts to paper. Dotted wires and accent signal carry the edges; the
   accent marks only what is live: signal, landings, the full pass.
   ≥761 × 600 the map is absolute (columns at fixed fractions); below that the
   same DOM becomes chips + a two-column tree. */

.stack {
  --tk-mute: rgba(236, 232, 225, 0.6);
  --tk-line: rgba(236, 232, 225, 0.12);
  /* pills are (nearly) solid: the sky passes behind them, never through them */
  --tk-pill: rgba(18, 18, 20, 0.97);
  /* a soft scrim of the ground behind every line of copy on the sky */
  --tk-scrim: 0 0 18px var(--bg), 0 0 6px var(--bg);
  position: relative;
  padding-bottom: clamp(4rem, 2.5rem + 5vw, 8rem);
  background: var(--bg);
}

.stack__figure { position: relative; margin: 0; }
.stack__figure:not(.is-built) .tk__ui,
.stack__figure:not(.is-built) .tk__world { display: none; }

.tk {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
}
.tk__world {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---------- the opening beat: the chapter title ---------- */

.stack__head { padding-top: calc(var(--nav-h) + clamp(2.5rem, 7vh, 4.5rem)); padding-bottom: clamp(1.5rem, 4vh, 2.5rem); }
.stack__meta,
.stack__title,
.stack__intro,
.tk__label,
.tk__title,
.tk__desc,
.tk__colhead { text-shadow: var(--tk-scrim); }
.stack__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; }
.stack__tally { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--tk-mute); }
.stack__title {
  margin-top: clamp(0.9rem, 2vh, 1.4rem);
  font-size: clamp(3.4rem, 1.4rem + 5.4vw, 6.5rem);
  font-weight: 800;
  font-stretch: 100%;
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.stack__title-mask { display: block; overflow: hidden; padding: 0.04em 0 0.12em; margin: -0.04em 0 -0.12em; }
.stack__title-text { display: inline-block; }
.stack__intro {
  margin-top: clamp(1rem, 2.4vh, 1.5rem);
  max-width: 27rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--tk-mute);
}

/* ---------- the map ---------- */

.tk__ui {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: calc(var(--nav-h) + clamp(0.4rem, 1.6vh, 1rem)) var(--gutter) clamp(1rem, 3vh, 1.75rem);
}

/* pinned: the stage is one viewport; the track carries the title above the map */
.tk.is-pin { height: 100vh; height: 100svh; }
.tk.is-pin .tk__track { position: absolute; inset: 0; will-change: transform; }
.tk.is-pin .stack__head { position: absolute; left: 0; right: 0; top: calc(-1 * var(--tk-d, 50vh)); }
.tk.is-pin .tk__ui { position: absolute; inset: 0; height: auto; min-height: 0; }
/* the hand-off (js): the chapter title leaves, then the stage's own title rises
   into its mask (.tk__title-rise, played by GSAP), then the columns arrive.
   Never two titles at once. */
.tk.is-pin .tk__colhead { opacity: var(--in, 1); }

.tk__head { display: grid; justify-items: center; text-align: center; }
.tk__label { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--tk-mute); }
.tk__title {
  margin-top: 0.45rem;
  font-size: clamp(2.1rem, 1rem + 2.4vw, 3rem);
  font-weight: 800;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: -0.03em;
}
.tk__title-mask { display: block; overflow: hidden; padding: 0.06em 0.15em 0.14em; margin: -0.06em -0.15em -0.14em; }
.tk__title-rise { display: block; }
.tk__title-text { display: inline-block; white-space: nowrap; }
.tk__desc {
  margin-top: 0.55rem;
  max-width: 29rem;
  min-height: 2.8em;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--tk-mute);
  text-wrap: balance;
}

.tk__graph {
  --cat-x: 13%;
  --mid-x: 50%;
  --proj-x: 86%;
  position: relative;
  width: min(100%, 76rem);
  min-height: 0;
  margin: clamp(2.2rem, 6vh, 3.4rem) auto 0;
}
.tk__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.tk__colhead {
  position: absolute;
  top: -1.85rem;
  translate: -50% 0;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--tk-mute);
  white-space: nowrap;
}
.tk__colhead--in { left: var(--cat-x); }
.tk__colhead--hid { left: var(--mid-x); }
.tk__colhead--out { left: var(--proj-x); }
.tk__col,
.tk-panels,
.tk-panel,
.tk-cats,
.tk-skills,
.tk-projs { position: absolute; inset: 0; pointer-events: none; }
/* the columns overlap edge to edge: only the pills themselves take the pointer */
.tk-cat-li,
.tk-skill,
.tk-proj-li { pointer-events: auto; }

/* every pill is placed by its centre: its column's x, its row's y */
.tk-cat-li,
.tk-skill,
.tk-proj-li {
  position: absolute;
  top: calc((var(--k) + 0.5) / var(--n) * 100%);
  translate: -50% -50%;
}
.tk-cat-li { left: var(--cat-x); }
.tk-cat-li--all { display: none; }
.tk-proj-li { left: var(--proj-x); }
.tk.is-pin .tk-cat-li,
.tk.is-pin .tk-proj-li { opacity: var(--in, 1); scale: calc(0.82 + 0.18 * var(--in, 1)); }

.tk-node { outline-offset: 3px; transition: opacity 240ms var(--ease-ui); }

/* ---------- categories ---------- */

.tk-cat {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  background: var(--tk-pill);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--tk-mute);
  transition: color 240ms var(--ease-ui), background-color 240ms var(--ease-ui), border-color 240ms var(--ease-ui), opacity 240ms var(--ease-ui), box-shadow 400ms var(--ease-ui);
}
.tk-cat__idx,
.tk-cat__n,
.tk-proj__idx {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}
.tk-cat:hover { color: var(--ink); border-color: rgba(236, 232, 225, 0.26); }
.tk-cat.is-active { background: var(--ink); border-color: var(--ink); color: #0c0c0d; font-weight: 700; }
.tk-cat.is-active .tk-cat__idx,
.tk-cat.is-active .tk-cat__n { opacity: 0.6; }
.tk.is-final .tk-cat.is-lit-layer {
  background: #0c0c0d;
  border-color: color-mix(in oklab, var(--signal) 62%, transparent);
  color: var(--ink);
  font-weight: 600;
}
/* a layer with nothing in the pass steps back by its ink, not by going
   see-through: the pill stays solid, so the sky never shows through it */
.tk.is-final .tk-cat.is-off { color: rgba(236, 232, 225, 0.4); border-color: rgba(236, 232, 225, 0.07); }

/* ---------- skills ---------- */

.tk-panel { visibility: hidden; }
.tk-panel.is-current { visibility: visible; }
.tk-panel--final { display: none; } /* the wide map's full pass shows bundles, not skills */
.tk-skills { --brick: 0px; margin: 0; padding: 0; }
.tk-skills.is-brick { --brick: clamp(5.4rem, 7.6vw, 6.9rem); }
.tk-skill {
  left: calc(var(--mid-x) + var(--side, 0) * var(--brick));
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  background: var(--tk-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ink);
  transition: opacity 240ms var(--ease-ui), border-color 240ms var(--ease-ui), box-shadow 300ms var(--ease-ui);
}
.tk-skills.is-brick .tk-skill { height: 34px; }
.tk-skill.is-l { --side: -1; }
.tk-skill.is-r { --side: 1; }
.tk-skill__n { font-family: var(--font-mono); font-size: 0.625rem; color: var(--tk-mute); text-transform: uppercase; letter-spacing: 0.04em; }
.tk-skill.is-kit { color: var(--ink-2); }
.tk-skill.is-kit .tk-skill__n { opacity: 0.75; }
.tk-skill:is(:hover, :focus-visible) { border-color: rgba(236, 232, 225, 0.3); }
.tk-skill.is-hit { border-color: color-mix(in oklab, var(--signal) 70%, transparent); box-shadow: 0 0 18px color-mix(in oklab, var(--signal) 35%, transparent); }

/* marks: monochrome; a brand's own colour shows on hover or focus */
.tk-logo {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 15px;
  height: 15px;
  color: inherit;
  transition: color 220ms var(--ease-ui);
}
.tk-logo svg { display: block; width: 100%; height: 100%; fill: currentColor; }
.tk-logo.is-mono {
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 4px;
}
.tk-logo.is-mono::before {
  content: attr(data-mono);
  content: attr(data-mono) / "";
  font-family: var(--font-mono);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}
.tk-skill:is(:hover, :focus-visible) .tk-logo,
.layer li:hover .tk-logo { color: var(--brand, var(--ink)); }

/* ---------- shipped in ---------- */

.tk-proj {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  padding: 0 17px;
  border: 1px solid var(--tk-line);
  border-radius: 16px;
  background: var(--tk-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  color: var(--ink);
  text-decoration: none;
  transition: box-shadow 520ms var(--ease-ui), border-color 300ms var(--ease-ui), opacity 240ms var(--ease-ui);
}
.tk-proj__name { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.tk-proj__act { font-family: var(--font-mono); font-size: 0.625rem; color: var(--signal); font-variant-numeric: tabular-nums; }
.tk-proj__act:empty { display: none; }
.tk-proj:hover { border-color: rgba(236, 232, 225, 0.3); }
.tk-proj.is-lit {
  border-color: color-mix(in oklab, var(--signal) 30%, var(--tk-line));
  box-shadow: 0 0 34px 4px color-mix(in oklab, var(--signal) 50%, transparent), 0 10px 30px rgba(0, 0, 0, 0.2);
}
.tk-proj.is-hit { border-color: color-mix(in oklab, var(--signal) 75%, transparent); }

/* ---------- wires + signal ---------- */

.tk-g { visibility: hidden; }
.tk-g.is-current { visibility: visible; }
.tk-w {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.35;
  stroke-width: 1.4;
  stroke-dasharray: 1 1;
  transition: stroke-opacity 240ms var(--ease-ui), opacity 240ms var(--ease-ui);
}
.tk-w--kit { stroke-opacity: 0.17; }
.tk-w--bundle {
  stroke: var(--signal);
  stroke-opacity: 0.6;
  stroke-dasharray: none;
  stroke-linecap: round;
}
.tk-g--final .tk-gin { filter: drop-shadow(0 0 5px color-mix(in oklab, var(--signal) 55%, transparent)); }
.tk__dots { will-change: transform; }
.tk-w.is-tree,
.tk-dot.is-tree { display: none; }
.tk-dot { fill: var(--signal); visibility: hidden; }
.tk-dot--bundle { fill: color-mix(in oklab, var(--signal) 45%, white); }

/* trace: everything off the traced path steps back */
.tk.is-tracing .tk-node:not(.is-lit-trace) { opacity: 0.26; }
.tk.is-tracing .tk-w:not(.is-lit-trace),
.tk.is-tracing .tk-dot:not(.is-lit-trace) { opacity: 0.1; }
.tk.is-tracing .tk-w.is-lit-trace:not(.tk-w--bundle) { stroke-opacity: 0.75; }

/* ---------- foot: the assistant ---------- */

.tk__foot { display: flex; justify-content: center; padding-top: clamp(0.8rem, 2.6vh, 1.6rem); }
.tk-try {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  height: 42px;
  padding: 0 1.1rem 0 7px;
  border: 1px solid var(--tk-line);
  border-radius: 999px;
  background: rgba(18, 18, 20, 0.92);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 240ms var(--ease-ui), background-color 240ms var(--ease-ui);
}
.tk-try__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--signal);
  color: #111113;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.tk-try__arrow { transition: translate 260ms var(--ease-ui); }
.tk-try:hover { border-color: rgba(236, 232, 225, 0.3); background: rgba(26, 26, 29, 0.97); }
.tk-try:hover .tk-try__arrow { translate: 3px 0; }

/* ---------- the index: one small connected graph per layer ---------- */

.stack__index {
  /* the field's bleed: up into the gap below the stage and down into the section's
     own padding (never past either), out to the viewport's sides (set in JS) */
  --fx-t: clamp(3rem, 1.5rem + 5vw, 6rem);
  --fx-b: clamp(2.5rem, 1.5rem + 4vw, 6rem);
  --fx-l: 0px;
  --fx-r: 0px;
  position: relative;
  isolation: isolate;
  margin-top: clamp(4rem, 2rem + 6vw, 7.5rem);
}

/* its own world (js/gl/index-field.js): silk tracts between the hubs, field
   lines in the margins; behind every card, never under the pointer */
.stack__field {
  position: absolute;
  z-index: -1;
  top: calc(-1 * var(--fx-t));
  left: calc(-1 * var(--fx-l));
  display: block;
  width: calc(100% + var(--fx-l) + var(--fx-r));
  max-width: none;
  height: calc(100% + var(--fx-t) + var(--fx-b));
  pointer-events: none;
}
.stack__index-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline-strong);
}
/* the index's title, in the site's heading voice (Mona Sans, one weight, one width) */
.stack__index-title {
  max-width: 22ch;
  font-size: clamp(2rem, 1.1rem + 2.4vw, 3rem);
  font-weight: var(--fw-head, 600);
  font-stretch: var(--wd-head, 104%);
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.stack__index-sub { color: var(--ink-3); }
.stack__index-meta { color: var(--tk-mute); }

.stack__layers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 23rem), 1fr));
  align-items: start;
  gap: 2.75rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.stack__layers.is-graph { grid-auto-rows: 4px; grid-auto-flow: row dense; row-gap: 0; }

.layer {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(2.75rem, 1fr) minmax(0, max-content);
  align-items: center;
  align-content: start;
  align-self: start;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}
.layer__wires {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.layer__w { fill: none; stroke: var(--ink); stroke-opacity: 0.2; stroke-width: 1.2; stroke-dasharray: 1 1; }
.layer__w.is-shipped { stroke-opacity: 0.55; }

/* the hub */
.layer__name {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--hairline-strong);
  border-radius: 999px;
  background: var(--surface-1);
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
  color: var(--ink);
}
.layer:has(> .layer__sub) > .layer__name { grid-row: 1 / span 3; }
.layer__name::before,
.layer__name::after {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}
.layer__name::before { content: attr(data-index); content: attr(data-index) / ""; }
.layer__name::after { content: attr(data-count); content: attr(data-count) / ""; }

/* the skills */
.layer > ul { grid-column: 3; display: grid; justify-items: start; gap: 6px; margin: 0; padding: 0; }
.layer__sub { grid-column: 3; margin: 0.9rem 0 0.5rem 0.25rem; font-size: 0.625rem; color: var(--ink-4); }
.layer li {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  max-width: 100%;
  padding: 0 12px 0 10px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface-1);
  font-size: 0.8125rem;
  font-weight: 550;
  white-space: nowrap;
  color: var(--ink-2);
}
.layer li .tk-logo { width: 14px; height: 14px; }
.layer li .tk-logo.is-mono { width: 15px; height: 15px; }
.layer li .tk-logo.is-mono::before { font-size: 6px; }
.layer li.is-shipped { border-color: var(--hairline-strong); color: var(--ink); }
.layer__to { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 0.04em; color: var(--tk-mute); }

/* ---------- tablet ---------- */

@media (max-width: 1100px) {
  .tk__graph { --cat-x: 12%; --proj-x: 85%; }
  .tk-cat { padding: 0 12px; gap: 0.4rem; font-size: 0.8125rem; }
  .tk-skills.is-brick { --brick: 5.3rem; }
  .tk-skill { padding: 0 11px 0 10px; font-size: 0.75rem; }
  .tk-proj { padding: 0 13px; }
  .tk-proj__name { font-size: 0.875rem; }
}
@media (max-width: 960px) {
  .tk-proj__idx { display: none; }
  .tk-skill .tk-logo { display: none; }
}

/* ---------- short desktop viewports: the same map, a size denser ---------- */

@media (min-width: 761px) and (min-height: 600px) and (max-height: 780px) {
  .tk__title { font-size: clamp(1.9rem, 0.9rem + 2vw, 2.5rem); }
  .tk__desc { margin-top: 0.4rem; }
  .tk__graph { margin-top: 2rem; }
  .tk-cat { height: 31px; padding: 0 12px; font-size: 0.8125rem; }
  .tk-skill { height: 32px; font-size: 0.78rem; }
  .tk-skills.is-brick .tk-skill { height: 28px; padding: 0 10px 0 9px; font-size: 0.75rem; gap: 6px; }
  .tk-skills.is-brick .tk-logo { width: 13px; height: 13px; }
  .tk-proj { height: 42px; border-radius: 14px; }
  .tk-proj__name { font-size: 0.9375rem; }
  .tk-try { height: 38px; }
}

/* ---------- small or short screens: no pin; chips + a tree ---------- */

@media (max-width: 760px), (max-height: 599px) {
  .tk { overflow: clip; }
  .tk__world { position: sticky; inset: auto; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; }
  .stack__head { padding-top: clamp(3.5rem, 12vw, 5rem); }
  .tk__ui { display: block; height: auto; min-height: 0; padding: 1rem var(--gutter) 2.5rem; }
  .tk__head { justify-items: start; text-align: left; }
  .tk__title { font-size: clamp(2rem, 1.3rem + 3.4vw, 2.6rem); }
  .tk__title-text { white-space: normal; }
  .tk__desc { min-height: 0; }

  .tk__graph {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 0.78fr);
    grid-template-areas: "cats cats cats" "hh . oh" "hid . out";
    align-items: start;
    width: 100%;
    margin-top: 1.4rem;
  }
  .tk__col,
  .tk-panels,
  .tk-panel,
  .tk-cats,
  .tk-skills,
  .tk-projs { position: relative; inset: auto; }
  .tk__colhead { position: static; translate: none; margin: 1.6rem 0 0.8rem; }
  .tk__colhead--in { display: none; }
  .tk__colhead--hid { grid-area: hh; padding-left: 14px; }
  .tk__colhead--out { grid-area: oh; }
  .tk__col--in { grid-area: cats; }
  .tk__col--hid { grid-area: hid; }
  .tk__col--out { grid-area: out; }

  .tk-cats { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; padding: 0; }
  .tk-cat-li,
  .tk-skill,
  .tk-proj-li { position: relative; left: auto; top: auto; translate: none; }
  .tk-cat-li--all { display: block; }
  /* the floating ask orb owns the bottom-right corner: the chip row is a guard
     ([data-ask-guard] in the markup), so the orb rises above it while it passes
     the bottom edge, and a chip focused from the keyboard scrolls clear of it */
  .tk-cat { height: 34px; padding: 0 12px; font-size: 0.8125rem; scroll-margin-bottom: 96px; }
  .tk-cat.is-active { box-shadow: 0 0 0 3px rgba(236, 232, 225, 0.08); }

  /* the tree: a spine from the label, an elbow into every skill */
  .tk-panel { display: none; visibility: visible; padding-left: 14px; }
  .tk-panel.is-current { display: block; }
  .tk-panel::before {
    content: "";
    position: absolute;
    left: 3px;
    top: -0.4rem;
    bottom: 17px;
    width: 1px;
    background: var(--hairline-strong);
  }
  .tk-skills { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
  .tk-skill { height: 34px; max-width: 100%; padding: 0 11px 0 10px; font-size: 0.75rem; }
  .tk-skill .tk-logo { display: inline-grid; }
  .tk-skill::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 50%;
    width: 11px;
    height: 1px;
    margin-right: 1px;
    background: var(--hairline-strong);
  }
  .tk-skill__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

  .tk-projs { display: flex; flex-direction: column; gap: 0.75rem; margin: 0; padding: 0; }
  .tk-proj { height: auto; min-height: 44px; padding: 8px 12px; border-radius: 14px; white-space: normal; }
  .tk-proj__name { font-size: 0.875rem; line-height: 1.2; }
  .tk-proj__idx { display: none; }
  .tk-w--in,
  .tk-w--kit,
  .tk-w--bundle,
  .tk-dot--in,
  .tk-dot--bundle { display: none; }
  .tk-w.is-tree,
  .tk-dot.is-tree { display: inline; }
  .tk-g--final .tk-gin { filter: none; }
  .tk-panel--final { display: none; }
  .tk-panel--final.is-current { display: block; }
  .tk__foot { justify-content: flex-start; padding-top: 2rem; }
}

@media (max-width: 420px) {
  .layer { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .layer__name,
  .layer:has(> .layer__sub) > .layer__name { grid-column: 1 / -1; grid-row: auto; margin-bottom: 0.7rem; }
  .layer > ul,
  .layer__sub { grid-column: 2; }
}

/* ---------- reduced motion: the finished map, nothing drawing ---------- */

html.is-reduced .tk-node,
html.is-reduced .tk-cat,
html.is-reduced .tk-proj,
html.is-reduced .tk-w,
html.is-reduced .tk-logo { transition-duration: 0s; }
